/* CSS Variables - Новая цветовая палитра */
:root {
	/* Основные цвета */
	--color-link: #FFB636;
	--color-text: #263238;
	--color-button: #55686e9c;
	--color-secondary: #55686E;

	/* Дополнительные оттенки из Figma */
	--color-icon: #8EA0A5;
	--color-border: #DEE3E6;
	--color-bg-light: #F0F3F5;
	--color-accent-light: #B2C7CB;
	--color-accent-lighter: #CED9DB;

	/* Фоны */
	--bg-primary: #55686E;
	--bg-secondary: #F0F3F5;
	--bg-card: rgba(255, 255, 255, 0.8);
	--bg-watermark-dark: #708389;
	--bg-panel: rgba(255, 255, 255, 0.11);

	/* Тени */
	--shadow-panel: 0 0 5px 1px rgba(85, 104, 110, 0.59);

	/* Текст */
	--text-primary: #263238;
	--text-secondary: #55686E;
	--text-muted: #8EA0A5;
	--text-link: #FFB636;
	--text-link-hover: #FFA015;
	--text-link-light: #FFD47A;

	/* Границы */
	--border-primary: #aaadae;
	--border-secondary: #708389;

	/* Кнопки */
	--btn-primary: #55686e;
	--btn-primary-hover: #3e4c52;
	--btn-secondary: #55686E;
	--btn-secondary-hover: #4A5A5F;
}

html {
	height: 100%;
	min-height: 100%;
}

body {
	height: 100%;
	margin: 0px;
	padding: 0px;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
	background: var(--bg-primary);
	color: var(--text-primary)
}

:focus {
	outline: 0;
}

a {
	color: var(--text-link);
	text-decoration: underline;
}

a:hover {
	text-decoration: none;
	color: var(--text-link-hover)
}

#watermark {
	background: linear-gradient(to bottom, var(--bg-watermark-dark) 0%, var(--bg-primary) 100%);
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 478px;
	z-index: -1000;
}

/* Mobile-bar section - только для планшета и мобильных */
.mobile-bar {
	background: rgb(62 76 82 / 95%);
	padding: 5px 0;
	position: relative;
	z-index: 100;
	display: none;
}

.mobile-bar__container {
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	padding: 0 15px;
}

.mobile-bar__content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.mobile-bar__logo {
	max-width: 165px;
}

.mobile-bar__logo img {
	height: auto;
	width: 100%;
	max-width: 100%;
}

.mobile-bar .menu-link {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	margin: 0;
}

#container {
	min-height: 100%;
	width: 1200px;
	max-width: 100%;
	margin: 0px auto;
	position: relative;
	height: auto;
}

.site-header {
	display: flex;
	position: relative;
	gap: 20px;
	justify-content: space-between;
	align-items: center;
}

.site-header .logo {
	position: relative;
	margin: 0 10px;
	max-width: 295px;
	overflow: inherit;
}

.site-header .logo img {
	height: auto;
	width: 100%;
}

.site-header .logo .logo-text {
	font-size: 12px;
	color: var(--color-accent-light);
	font-weight: 300;
	margin-top: 8px;
	text-align: center;
	line-height: 1.4;
}

.site-header .header-contacts {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	margin: 0 20px;
}

.site-header .header-phone {
	font-size: 20px;
	font-weight: 700;
}

.site-header .header-phone a {
	color: var(--text-link-light);
	text-decoration: none;
	transition: color 0.2s ease;
	white-space: nowrap;
}

.site-header .header-phone a:hover {
	color: var(--text-link-hover);
	text-decoration: underline;
}

.site-header .header-email {
	font-size: 14px;
	color: #DEE3E6;
}

.site-header .worktime {
	position: relative;
	margin-top: -90px;
	font-size: 12px;
	margin-left: 80px;
}

.site-header .contacts {
	position: relative;
	margin-top: 0;
	font-size: 18px;
	margin-left: 80px;
}

.site-header .announcement {
	position: relative;
	max-width: 450px;
	height: auto;
	background: url(images/announcement.gif) no-repeat;
	background-size: cover;
	font-size: 20px;
	margin: 15px;
	width: 100%;
}

.site-header .announcement img {
	border: none;
	width: 100%;
	max-width: 100%;
	height: auto;
}



.site-header .announcement #event-time {
	color: var(--text-muted);
	margin-left: 40px;
}

.site-header .announcement #event-type {
	color: var(--text-muted);
	margin-left: 40px;
}

.site-header .announcement #event-name {
	font-size: 34px;
	margin-left: 30px;
}

.site-header .announcement #event-price {
	color: var(--text-muted);
	font-size: 16px;
	margin-left: 120px;
}


.announcement-content {
	position: absolute;
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
	text-align: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.site-header .announcement:hover .announcement-content {
	opacity: 1;
	background: rgb(0 0 0 / 39%);
}

.awhite {
	color: var(--text-primary);
}

.announcement-title {
	font-size: 22px;
	color: var(--color-border);
	margin: 0 0 5px;
	text-shadow: none;
	font-weight: 600;
}

.announcement-link:hover .announcement-title {
	color: var(--color-border);
}

.announcement-desc {
	color: var(--text-link);
	text-shadow: none;
	font-style: normal;
	font-size: 18px;
	line-height: 30px;
	font-weight: 300;
}

.announcement-desc2 {
	color: var(--text-primary);
	text-shadow: none;
	font-style: normal;
	font-size: 20px;
	line-height: 25px;
	font-weight: 300;
}

.announcement-desc3 {
	color: var(--text-primary);
	text-shadow: none;
	font-weight: 300;
	font-size: 17px;
	line-height: 22px;
}

.announcement-link:hover .announcement-desc,
.announcement-link:hover .announcement-desc2,
.announcement-link:hover .announcement-desc3 {
	color: var(--text-link);
}

/* Desktop: Flex layout для панелей */
#panels {
	display: flex;
	flex-direction: row;
	gap: 18px;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto 0;
	align-items: flex-start;
}

#panels #left {
	flex: 0 0 250px;
	background: var(--bg-panel);
	box-shadow: var(--shadow-panel);
}

#panels #left2 {
	flex: 0 0 330px;
	background: none;
}

#panels #left #menu {
	padding: 15px;
	font-size: 14px;
	margin-bottom: 20px;
}

#panels #right {
	flex: 1;
	font-size: 14px;
	padding: 20px 15px;
	min-height: 300px;
	background: var(--bg-panel);
	box-shadow: var(--shadow-panel);
}

#panels #right2 {
	flex: 1;
	font-size: 12px;
	padding: 20px;
	min-height: 300px;
	background: var(--bg-panel);
	box-shadow: var(--shadow-panel);
}

#panels #left #menu a {
	color: var(--text-primary);
}

#panels #left #menu a:hover {
	color: var(--text-link)
}

#panels #left #menu ul {
	margin: 0px;
	padding: 0px;
	list-style-type: none;
}

#panels #left #menu ul li {
	display: inline-block;
	width: 225px;
	vertical-align: top;
	padding: 7px 0px 7px 15px;
	background: url(images/marker.png) no-repeat 0px 13px;

}

#panels #right h1,
#panels #right2 h1 {
	padding: 0px 0 20px;
	margin: 0px;
	font-size: 21px;
	font-weight: 600;
}

hr {
	border: none;
}

#undermenu {
	margin: 0;
	font-size: 14px;
	width: 100%;
	border-top: 1px solid rgba(222, 227, 230, 0.3);
	border-bottom: 1px solid rgba(222, 227, 230, 0.3);
	border-left: none;
	border-right: none;
	padding: 15px 0;
}

#undermenu ul {
	list-style-type: none;
	padding: 0px;
	margin: 0px;
}

#undermenu ul li {
	padding: 5px 0px 5px 15px;
	background: url(images/marker.png) no-repeat 0px 12px;
}

#left2 #newcollection {
	position: relative;
	padding: 15px;

}

#newcollection h1,
#newcollection h3 {
	font-size: 16px;
	padding: 0px;
	margin: 0 0 15px 0;
	font-weight: normal;
}

#mycollection {
	position: relative;
	padding: 10px 0;
	column-count: 4;
	column-gap: 20px;
	column-fill: balance;
}

#mycollection td {
	padding: 0px;
	width: 25%;
	vertical-align: top;
}

#mycollection h1 {
	font-size: 16px;
	padding: 0px;
	margin-top: 5px;
	font-weight: normal
}

#mycollection .picture {
	overflow: hidden;
	padding: 4px;
	display: flex;
	flex-direction: column;
	margin: 0 0 20px;
	background: #55686e9c;
}

#mycollection .picture:hover {
	background: #55686e;
}

#mycollection .picture .img {
	width: 100%;
	padding: 0 0 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

#mycollection img {
	width: 100%;
	height: auto;
	border: none;
	box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.5);
	display: block;
}

#mycollection a:hover img {
	border: none;
	box-shadow: 0px 0px 3px var(--color-accent);
}

#mycollection .text {
	font-size: 16px;
	display: block;
	padding: 0px 0 3px 10px;
	line-height: 18px;
}

.desc_cat {
	margin: 25px 0 0 0;
	border-top: 1px solid #7e8e92;
}

.desc_cat a,
#text a {
	color: var(--text-muted);
}

.desc_cat a:hover,
#text a:hover {
	color: var(--text-link-hover);
}

#mycollection .author {
	font-size: 14px;
	font-style: normal;
	color: var(--text-muted);
	display: block;
	padding: 0 0 0 8px;
}

#etc {
	background: var(--bg-primary);
	padding: 15px 0;
}

#left2 #etc {
	background: var(--bg-primary);
	padding: 0 0 20px;
}

#text,
p {
	font-size: 14px;
	margin-top: 20px;
	line-height: 20px;
}

#panels #right #text h1 {
	padding: 0px;
	margin: 15px 0px 5px 0px;
	font-size: 30px;
	font-weight: normal
}

#panels #right #text h2 {
	padding: 0px;
	margin: 15px 0px 5px 0px;
	font-size: 20px;
	font-weight: normal
}

#panels #right #text h3 {
	padding: 0px;
	margin: 15px 0px 5px 0px;
	font-size: 15px;
	font-weight: normal
}

#panels #right #text table {
	border: 1px solid var(--border-primary);
	margin: 10px 0px 10px 0px;
	border-spacing: 0px;
}

#panels #right #text table td {
	border: 1px solid var(--border-primary);
}

.blog {
	margin-top: 20px;
	line-height: 20px;
}

.blog .date {
	float: left;
	font-size: 11px;
	font-style: normal;
	padding: 2px 10px 0 0;
}

.blog .text {
	color: var(--text-primary)
}

.blog .text a {
	color: var(--text-primary)
}

.blog .text a:hover {
	color: var(--text-primary)
}

.paginator {
	margin: 30px 0;
	font-size: 14px;
	clear: both;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.paginator-label {
	color: var(--text-primary);
	font-weight: 500;
}

.paginator-pages {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.paginator-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	text-decoration: none;
	color: #CED9DB;
	background: #55686e;
	border: 1px solid #4a5a5f;
	border-radius: 4px;
	transition: all 0.2s ease;
	font-weight: 500;
}

.paginator-page:hover {
	background: var(--color-accent);
	color: var(--text-link);
	border-color: #3e4a4e;

	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.paginator-page.paginator-current {
	background: #3e4c52;
	color: var(--text-link);
	border-color: #2f383b;
	cursor: default;
	font-weight: 600;
}

.paginator-ellipsis {
	padding: 0 4px;
	color: var(--text-muted);
}

#footer {
	width: 100%;
	background: #3e4c52;
	margin-top: 20px;
	padding: 15px 0;
	font-size: 14px;
}

.footer-container {
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	padding: 0 15px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 40px;
}

.footer-left {
	flex: 1;
	color: var(--bg-secondary);
}

.footer-org {
	margin-bottom: 10px;
	font-size: 16px;
	color: #b2c7cb;
}

.footer-adr {
	margin-bottom: 0;
	color: var(--bg-secondary);
}

.footer-categories {
	color: var(--text-muted);
	font-size: 12px;
}

.footer-right {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-end;
}

.footer-phone a,
.footer-email a {
	color: var(--bg-secondary);
	text-decoration: none;
	font-size: 16px;
	transition: color 0.3s ease;
	font-weight: 300;
}

.footer-phone a {
	font-weight: 600;
	color: var(--text-link);
}

.footer-phone a:hover,
.footer-email a:hover {
	color: var(--text-link);
	text-decoration: none;
}

.cbl {
	position: absolute;
	color: var(--bg-primary);
	top: 1px;
	right: 1px;
	font-size: 10px;
}

#footer .cbl a {
	color: var(--bg-primary);
	font-size: 10px;
}




/* Главная страница - Text content */
#textcontent {
	font-size: 16px;
	position: relative;
	vertical-align: top;
	padding: 20px;
}

#textcontent h3 {
	font-size: 16px;
	font-weight: normal;
	margin-top: 50px;
	margin-left: 15px;
}

#textcontent a {
	text-decoration: underline;
	color: #b2c7cb;
	font-size: 15px;
}

#textcontent a:hover {
	text-decoration: none;
	color: var(--text-link-hover)
}

#textcontent #menu {
	font-weight: 400;
	padding: 20px 5px;
}

#textcontent #menu ul {
	margin: 0px;
	padding: 0px;
	list-style-type: none;
}

#textcontent #menu ul li {
	display: inline-block;
	width: 43%;
	vertical-align: top;
	padding: 5px 0px 8px 17px;
	background: url(images/marker.png) no-repeat 0px 12px;
}

#textcontent .blog {
	margin-top: 20px;
	margin-left: 15px;
}

#textcontent .blog .date {
	color: var(--text-muted);
	font-size: 11px;
	font-style: normal;
}

#textcontent .blog .text {
	color: var(--text-primary);
	font-weight: normal;
	font-size: 15px;
	margin: 0;
}

#textcontent .blog .post_t {
	font-size: 12px;
	margin: 4px 0;
}

#textcontent .blog .text a {
	color: var(--text-primary)
}

#textcontent .blog .text a:hover {
	color: var(--text-primary)
}

/* Главная страница - New collection */
#newcollection {
	position: relative;
	padding: 15px;
}

#newcollection h3 {
	font-size: 19px;
	padding: 0px;
	margin: 0 0 15px 0;
	text-align: center;
	font-weight: 700;
	color: #263238;
}

.home-collection {
	width: 100%;
	max-width: 100%;
}

.home-collection .newcollection-items {
	display: flex;
	flex-direction: row;
	gap: 15px;
	width: 100%;
	max-width: 100%;
	justify-content: flex-start;
	align-items: flex-start;
}

.home-collection .newcollection-item {
	flex: 0 0 calc(33.333% - 10px);
	max-width: calc(33.333% - 10px);
	min-width: 0;
}

.home-collection #newcollection {
	width: 100%;
	max-width: 100%;
}

.home-collection #newcollection h3 {
	margin-bottom: 15px;
	text-align: left;
}


.home-collection #newcollection .newcollection-item {
	margin-bottom: 0;
}

.home-collection #newcollection .picture {
	max-width: 100%;
	width: 100%;
	height: 155px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
	box-shadow: 0px 0px 10px 1px #3e4c5282;
	overflow: hidden;
}

.home-collection #newcollection .picture img {
	width: 100%;
	height: 100%;
	display: block;
	border: none;
	object-fit: cover;
	object-position: center;
}

.home-collection #newcollection .text {
	max-width: 100%;
}


#newcollection .newcollection-item {
	margin-bottom: 15px;
}

#newcollection .newcollection-item:last-child {
	margin-bottom: 0;
}

#newcollection .picture {
	overflow: hidden;
	height: 155px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 275px;
	margin: 0 auto;
	box-shadow: 0px 0px 10px 1px #3e4c5282;
}

#newcollection .picture img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	display: block;
	border: none;
	object-fit: contain;
}

#newcollection .text {
	font-size: 14px;
	display: block;
	max-width: 270px;
	margin: 3px auto 0;
	color: #b2c7cb;
}

#newcollection .text a {
	color: var(--text-primary);
}

#newcollection .author {
	font-size: 11px;
	font-style: normal;
}

#newcollection .author a {
	color: var(--text-muted)
}

#undermenu {
	font-size: 16px;
	max-width: 340px;
	margin: 20px;
	width: auto;
}

#undermenu ul {
	list-style-type: none;
	padding: 0px;
	margin: 0px;
}

#undermenu ul li {
	padding: 5px 0px 5px 15px;
	background: url(images/marker2.png) no-repeat 0px 12px;
}

#undermenu ul a {
	color: var(--text-primary);
}

#header-text {
	font-size: 15px;
	background: url(images/header-text-bg.png) no-repeat;
	padding-left: 45px;
	padding-top: 5px;
	padding-bottom: 20px;
}

#header-text h1 {
	font-weight: normal;
	font-size: 18px;
	padding: 0px;
	margin: 0px;
}

#panels #right #text .YMaps-layer-container {
	color: var(--text-muted);
}

#panels #right #text .YMaps-layer-container table {
	border: none;
	margin: 0px;
	border-collapse: collapse;
}

#panels #right #text .YMaps-layer-container table td {
	border: none;
	margin: 0px;
}

.YMaps-layer-container a:hover {
	color: var(--text-link);
}

.vcard {
	padding: 10px 0 0 10px;
	float: left;
}

#panels #right #text #mycollection table,
#panels #right #text #mycollection table td {
	border: none;
}

#text ul li a {
	color: var(--text-primary);
	font-size: 14px;
	font-weight: normal;
}

#text ul li a strong {
	font-weight: normal;
}

#text ul li a:hover {
	color: var(--text-link);
}

.like {
	overflow: hidden;
	clear: both;
	text-align: right;
	padding: 12px 0;
}

.inf {
	font-size: 14px;
	list-style: none outside none;
	margin: 0;
	padding: 10px 9px;
	display: block;
	clear: both;
}

.inf li {
	border-bottom: 1px dotted var(--border-primary);
	padding: 4px 0 2px;
}

.inf li a {
	color: var(--text-primary);
}

/* Главная страница - Recommended блок */
#recommended {
	padding: 20px;
}

#recommended #recommended-header {
	font-size: 16px;
	padding: 0 0 10px;

}

#recommended #recommended-header a {
	color: var(--text-primary);
}

#recommended #recommended-header #picture-author,
#recommended #picture-author {
	color: #b2c7cb;
	font-style: normal;
	font-size: 12px;
}

#recommended #recommended-container {
	margin: 0;
	overflow: hidden;
	position: relative;
	padding: 9px;
	width: auto;
	height: auto;
	background: #56656a;
}

#recommended #recommended-container img {
	height: auto;
	width: 100%;
	min-width: 275px;
}

#recommended #picture-name {
	margin: 0px;
	color: var(--text-primary);
	font-size: 16px;
	padding: 3px 0;
	font-weight: 600;
}

#recommended #picture-name a {
	color: var(--text-primary);
	text-decoration: underline;
}

#recommended #picture-name a:hover {
	text-decoration: none;
}

#recommended #picture-author a {
	color: var(--text-link);
	text-decoration: underline;
}

#recommended #picture-author a:hover {
	text-decoration: none;
	color: var(--text-primary)
}

#right2 #mycollection ul {
	list-style-type: none;
	display: block;
	margin: 0;
	padding: 0;
}

#right2 #mycollection ul li {
	background: url("images/marker.png") no-repeat 0 12px;
	padding: 5px 0 5px 15px;
}

#right2 #mycollection ul li a {
	color: var(--text-muted);
	font-size: 16px;
}

#collection {
	width: 100%;
	border-collapse: collapse;
	border: none;
}

.collection {
	width: 100%;
	border-collapse: collapse;
	border: none;
}

#left2 .img {
	padding: 0;
}

.imgdesc {
	padding: 10px 0 5px;
	text-align: center;
}

.imgdesc img {
	box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.desc {
	padding: 0 0 15px;
}

.desc h4 {
	background: none repeat scroll 0 0 var(--color-button);
	color: var(--text-primary);
	font-size: 14px;
	font-weight: normal;
	margin: 3px 0;
	overflow: hidden;
	padding: 2px 8px;
}

.desc p {
	margin: 5px 0;
	font-size: 14px;
}


/* Блоки работ художника на странице картины (masonry layout) */
.artist-works {
	padding: 15px 0 10px;
	column-count: 4;
	column-gap: 15px;
	column-fill: balance;
}

/* Если элементов мало (1-3), используем меньше колонок */
.artist-works.artist-works-few {
	column-count: 1;
	max-width: 100%;
	display: flex;
	flex-wrap: wrap;
}

.artist-works.artist-works-few .artist-work-item {
	max-width: 215px;
}


.artist-work-item {
	display: inline-block;
	width: 100%;
	margin-bottom: 15px;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
}

.artist-work-item a {
	display: block;
}

.artist-work-item a img {
	width: 100%;
	height: auto;
	box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.5);
	display: block;
}

.artist-work-item span {
	display: block;
	font-size: 13px;
	padding: 5px 2px 0;
	text-align: center;
}

/* Адаптивная сетка для .artist-works (masonry layout) */
@media (max-width: 1024px) {
	.artist-works {
		column-count: 3;
		column-gap: 12px;
	}

	.artist-work-item {
		margin-bottom: 12px;
	}
}


@media (max-width: 340px) {
	.artist-works {
		column-count: 1;
		column-gap: 10px;
	}

	.artist-work-item {
		margin-bottom: 10px;
	}
}

/* Старые классы .spas и .spa (оставлены для совместимости, если используются в других местах) */
.spas {
	padding: 15px 0 10px;
	overflow: hidden;
}

.spa {
	float: left;
	width: 16%;
	padding: 0 0 15px;
	text-align: center;
}

.clear {
	clear: both;
}


.spa a img {
	width: 70px;
	height: 59px;
	box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.5);
}

.spa span {
	display: block;
	font-size: 11px;
	padding: 0 2px;
	text-align: center;
}

#middle-inner {
	clear: both;
	overflow: hidden;
	padding: 50px 0 0;
}

ul.alh {
	display: block;
	float: left;
	list-style: none outside none;
	padding: 0;
	width: 33%;
}

ul.alh li {
	padding: 0 0 5px 10px;
}

ul.alh li a {
	font-size: 16px;
	color: var(--text-primary);
	text-decoration: none;
}

ul.alh li a:hover {
	text-decoration: underline;
}

#panels #right #text table.portret {
	border: none;
	border-spacing: 0;
	margin: 10px 0;
	width: 100%;
}

#panels #right #text table.portret td {
	border: none;
	text-align: center;
	padding: 5px;
}

.phone {
	padding: 5px 0 5px;
	font-size: 19px;
}

.inf li strong {
	font-size: 17px;
}


.phone-link {
	font-weight: bold;
	color: #ffd47a;
	text-decoration: none;

}

.popup-body {
	font-size: 16px;
}



#modal_form,
#modal-success {
	width: 400px;
	height: auto;

	background: #3f4e55;
	position: fixed;
	top: 35%;
	left: 50%;
	margin-top: -150px;
	margin-left: -200px;
	display: none;
	opacity: 0;
	z-index: 1005;
	padding: 25px 30px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#modal_form #modal_close,
#modal-success #modal_close {
	width: 28px;
	height: 28px;
	position: absolute;
	color: #CED9DB;
	top: 10px;
	right: 10px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 18px;
	z-index: 1006;
	transition: color 0.2s ease;
}

#modal_form #modal_close:hover,
#modal-success #modal_close:hover {
	color: #fff;
}

#overlay {
	z-index: 1000;
	position: fixed;
	background-color: #000;
	opacity: 0.8;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	cursor: pointer;
	display: none;
}

/* Стили формы в модальном окне */
.head-form {
	padding: 0;
}

h3.ft {
	text-align: center;
	margin: 15px 0 19px;
	font-size: 20px;
	font-weight: 600;
	line-height: 30px;
	color: #ffc053;
}

.ft-sub {
	text-align: center;
	margin: 0 0 30px;
	font-size: 15px;
	color: #c9cecf;
	line-height: 1.15;
	font-weight: 300;
}

.fd {
	text-align: center;
	color: #8EA0A5;
	font-size: 12px;
	margin-top: 15px;
}

.form-group {
	margin-bottom: 20px;
}

.form-control {
	width: 100%;
	padding: 12px 15px;
	font-size: 14px;
	color: #263238;
	background: #F0F3F5;
	border: 1px solid #CED9DB;
	box-sizing: border-box;
	transition: all 0.2s ease;
	border-radius: 0;
}

.form-control:focus {
	outline: none;
	border-color: var(--text-link);
	background: #fff;
	box-shadow: 0 0 0 2px rgba(255, 182, 54, 0.1);
}

.form-control::placeholder {
	color: #8EA0A5;
}

.form-control.place {
	resize: vertical;
	min-height: 80px;
}

.btn.btn-submit {
	margin: 25px auto 0;
	width: 100%;
}

.btn.btn-submit:hover {
	background-color: #4a5a5f;
}


.btn {
	background-color: var(--btn-primary);
	border: 1px solid #4a5a5f;
	color: #CED9DB;
	font-size: 16px;
	height: 36px;
	margin: 0 auto;
	padding: 0 35px;
	position: relative;
	display: block;
	text-align: center;
	transition: all 0.2s ease;
	font-weight: 500;
}

.btn:hover,
.btn:active,
.btn:link,
.btn:focus {
	background-color: var(--btn-primary-hover);
	border-color: #3e4a4e;
	color: var(--text-link);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transform: translateY(-1px);
}

.btn.btn-link {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	line-height: 1;
	font-weight: 300;
	border: 1px solid #4a5a5f;
	padding: 0 20px;
	margin: 0;
	transition: all 0.2s ease;
}

.btn.btn-link:hover {
	background-color: #405159;
	border-color: #3e4a4e;
	color: var(--text-link-hover);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transform: translateY(-1px);
}


.text-center {
	text-align: center;
}

.mt {
	margin-top: 15px;
}

/* Мобильное меню */
.menu-link {
	right: 0;
	top: 0;
	background: #879095;
	font-size: 10px;
	z-index: 10;
	height: auto;
	padding: 18px 8px;
	cursor: pointer;
}

.menu-link span,
.menu-link span:before,
.menu-link span:after {
	background-color: var(--text-link);
	width: 22px;
	height: 1px;
	transition: all 0.4s;
}

.menu-link span {
	position: relative;
	display: block;
}

.menu-link span:before,
.menu-link span:after {
	position: absolute;
	margin-top: -.6em;
	content: " ";
}

.menu-link span:after {
	margin-top: .6em;
}


.menu-link.active span {
	background: transparent;
}

.menu-link.active span:before {
	transform: rotate(45deg) translate(.5em, .4em);
}

.menu-link.active span:after {
	transform: rotate(-45deg) translate(.45em, -.35em);
}


.picture-item {
	display: inline-block;
	width: 100%;
	margin-bottom: 5px;
	break-inside: avoid;
	page-break-inside: avoid;
}

/* Адаптивная сетка для #mycollection (masonry layout) */
/* Медиа-запросы для адаптивности */
@media (max-width: 1199px) {

	#container {
		min-height: auto;
		width: 100%;
		margin: 0px auto;
		position: relative;
		height: auto;
		padding: 0 15px;
	}
}

@media (max-width: 998px) {
	.mobile-bar {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		width: 100%;
		z-index: 1000;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	}

	/* Добавляем отступ для контента, чтобы он не перекрывался фиксированным mobile-bar */
	body {
		padding-top: 50px;
	}

	.site-header .logo {
		display: none;
	}


	#menu {
		position: fixed;
		top: 0;
		left: -300px;
		width: 300px;
		height: 100%;
		background: #7c8f97;
		color: var(--text-primary);
		padding-top: 0;
		z-index: 888;
		transition: all .3s;
		overflow-y: scroll;
	}


	#panels #left #menu,
	#textcontent #menu {
		padding: 55px 15px 15px;
		font-size: 14px;
		margin: 0px;
	}

	#menu .menu-wrapper {
		padding: 0;
	}

	#menu.open {
		display: block;
		left: 0;
	}

	/* Overlay для мобильного меню */
	#mobile-menu-overlay {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.5);
		z-index: 887;
		opacity: 0;
		transition: opacity 0.3s ease;
	}

	#mobile-menu-overlay.active {
		display: block;
		opacity: 1;
	}

	#textcontent #menu ul {
		display: block;
		float: none;
		height: auto;
		overflow: hidden;
		list-style-type: none;
	}

	#textcontent #menu ul li {
		border: none;
		display: block;
		float: none;
		width: 100%;
		padding: 0;
		background: none;
	}

	#textcontent #menu ul li a {
		color: var(--text-primary);
		text-transform: none;
		padding: 12px 10px 12px 30px;
		background: url(images/marker.png) no-repeat 8px 18px;
		display: block;
		line-height: 16px;
		letter-spacing: 1px;
		font-size: 14px;
		text-align: left;
		text-decoration: underline;
		font-weight: normal;
	}

}

@media (max-width: 1024px) {

	/* Адаптивная сетка для #mycollection (masonry layout) - планшеты */
	#mycollection {
		column-count: 3;
		column-gap: 18px;
	}

	.picture-item {
		margin-bottom: 5px;
		width: 100%;
		float: none;
	}

	/* Адаптивная сетка для .artist-works (masonry layout) - планшеты */
	.artist-works {
		column-count: 3;
		column-gap: 12px;
	}

	.artist-work-item {
		margin-bottom: 12px;
	}
}

@media (max-width: 768px) {

	/* Адаптивная сетка для #mycollection (masonry layout) - мобильные */
	#mycollection {
		column-count: 2;
		column-gap: 15px;
	}

	.picture-item {
		margin-bottom: 15px;
		width: 100%;
		float: none;
	}

	/* Адаптивная сетка для .artist-works (masonry layout) - мобильные */
	.artist-works {
		column-count: 2;
		column-gap: 10px;
	}

	.artist-work-item {
		margin-bottom: 10px;
	}

	/* Стили для пагинации - мобильные */
	.paginator {
		gap: 8px;
	}

	.paginator-page {
		min-width: 32px;
		height: 32px;
		font-size: 14px;
	}

	/* Стили для футера - мобильные */
	.footer-container {
		flex-direction: column;
		gap: 20px;
	}

	.footer-right {
		align-items: flex-start;
	}

	/* Стили для модального окна - планшеты */
	#modal_form,
	#modal-success {
		width: 310px;
		margin-left: -156px;
	}

	/* Стили для .home-collection - планшеты */
	.home-collection .newcollection-item {
		flex: 0 0 calc(50% - 10px);
		max-width: calc(50% - 10px);
	}

	body {
		min-width: 320px;
	}

	img {
		max-width: 100%;
		height: auto;
	}

	#container {
		min-height: auto;
		width: 100%;
		margin: 0px auto;
		position: relative;
		height: auto;
	}

	.site-header .logo {
		position: static;
		max-width: 290px;
		margin: 0 0 15px;
	}

	.site-header .logo .logo-text {
		font-size: 11px;
		margin-top: 5px;
	}

	.site-header .header-contacts {
		margin: 10px auto;
		align-items: center;
		text-align: center;
	}

	.site-header .header-phone {
		font-size: 16px;
	}

	.site-header .header-email {
		font-size: 13px;
	}

	.site-header .worktime {
		position: static;
		margin-top: 0;
		font-size: 12px;
		margin: 0px auto;
		width: 280px;
	}

	.site-header .contacts {
		position: relative;
		font-size: 16px;
		margin: 10px auto;
		width: 280px;
	}

	.phone {
		font-size: 23px;
		padding: 9px 0 15px;
	}

	.phone span {
		display: block;
	}

	#header-text {
		position: static;
		margin: 0;
		font-size: 14px;
		width: auto;
		padding: 0px 15px 20px 41px;
	}

	.site-header .announcement .announcement-header {
		font-size: 18px;
		text-align: right;
		position: static;
		width: auto;
		margin-top: 0px;
		z-index: 100;
	}

	.site-header .announcement {
		position: relative;
		margin: 6px;
		width: auto;
		height: auto;
		background: none;
		font-size: 15px;
	}

	.announcement-content {
		position: absolute;
		height: auto;
		width: 100%;
		top: 10px;
		left: 0;
		text-align: center;
		padding: 20px;
	}


	h3.ft {
		margin: 10px 0 10px;
		font-size: 15px;
		line-height: 21px;

	}


	.ft-sub {

		margin: 0px 0 20px;
		font-size: 13px;

	}

	.announcement-title {
		font-size: 19px;
		color: var(--text-primary);
		margin: 19px 0 0px;
		text-shadow: none;
	}

	.announcement-desc {
		color: var(--text-primary);
		text-shadow: none;
		font-size: 18px;
		line-height: 22px;
		font-style: normal;
	}

	.announcement-desc2 {
		color: var(--text-primary);
		text-shadow: none;
		font-style: normal;
		font-size: 17px;
		line-height: 21px;
	}

	.announcement-desc3 {
		color: var(--text-primary);
		text-shadow: none;
		font-size: 15px;
		line-height: 21px;
	}

	#recommended {
		display: block;
		position: relative;
		margin-left: 0;
		top: 0;
		height: auto;
		background: none;
		font-size: 20px;
		width: 100%;
		max-width: 440px;
	}

	#recommended #picture-name {
		margin-top: 0px;
		position: static;
		margin-left: 0px;
		color: var(--text-primary);
		font-size: 18px;
		padding: 5px;
	}

	#recommended #picture-author,
	#recommended #recommended-header #picture-author {
		position: static;
		margin-top: 0px;
		margin-left: 0px;
		color: var(--text-primary);
		font-size: 12px;
		font-style: normal;
		padding: 5px;
	}

	#recommended #recommended-header {
		font-size: 18px;
		position: absolute;
		width: auto;
		padding: 5px;
		top: 0;
		z-index: 100;
		background: var(--bg-card);
	}

	#recommended #recommended-container {
		margin: 20px auto;
		height: auto;
		overflow: hidden;
		position: relative;
		top: 0;
		text-align: center;
	}

	#newcollection {
		position: relative;
		overflow: hidden;
		padding: 10px 0;
		box-sizing: border-box;
		margin: 10px 0;
		border-top: 1px solid rgba(222, 227, 230, 0.3);
	}

	.home-collection .newcollection-items {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
	}

	.home-collection .newcollection-item {
		flex: 0 0 calc(50% - 10px);
		max-width: calc(50% - 10px);
		min-width: 0;
	}

	.home-collection #newcollection .picture {
		max-width: max-content;
		width: auto;
	}

	.home-collection #newcollection .text {
		text-align: center;
	}



	#undermenu {
		position: relative;
		top: 0;
		left: 0;
		font-size: 16px;
		width: auto;
		padding: 0 15px;
		margin: 0 0 30px;
	}

	#textcontent {
		width: auto;
		height: auto;
		display: block;
		margin-left: 0;
		margin-top: 0;
		font-size: 15px;
		position: relative;
		padding: 0;
	}

	#footer {
		margin-top: 35px;

	}

	.vcard {
		padding: 10px 15px;
		float: none;
	}

	#textblock {
		padding: 0 15px;
	}

	.menu-link {
		position: absolute;
		display: block;
	}



	#panels {
		width: auto;
		margin: 0px auto;
		margin-top: 28px;
	}

	#panels #right {
		font-size: 12px;
		padding: 15px;
		width: auto;
		min-height: 300px;
		margin-left: 0;
		display: block;
	}

	.spa {
		float: left;
		width: 50%;
		padding: 15px;
		text-align: center;
		box-sizing: border-box;
	}

	.clear {
		clear: none;
	}

	.spa:first-child {
		clear: both;
	}

	.spa:nth-child(2n+3) {
		clear: both;
	}

	.spa a img {
		width: 100%;
		height: auto;
		box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.5);
	}

	#etc {
		width: auto;
		background: var(--bg-primary);
		padding: 15px 0;
	}

	#etc #undermenu {
		position: relative;
		top: 0;
		left: 0;
		font-size: 16px;
		width: auto;
		padding-left: 0px;
	}

	#etc hr {
		margin: 0 auto;
	}


	.xs-hidden {
		display: none;
	}

	/* Адаптивная сетка для #mycollection (masonry layout) - маленькие мобильные */
	#mycollection {
		column-count: 2;
		column-gap: 12px;
	}

	.picture-item {
		width: 100%;
		float: none;
		margin-bottom: 12px;
	}

	/* Адаптивная сетка для .artist-works (masonry layout) - маленькие мобильные */
	.artist-works {
		column-count: 2;
		column-gap: 8px;
	}

	.artist-work-item {
		margin-bottom: 8px;
	}

	#mycollection .picture {
		overflow: hidden;
		padding: 10px 5px;
		text-align: center;
	}

	#mycollection .picture .img {
		width: 100%;
		padding: 0 0 3px;
		text-align: center;
	}

	/* Стили для пагинации - маленькие мобильные */
	.paginator {
		margin-top: 30px;
		font-size: 18px;
		clear: both;
		gap: 6px;
	}

	.paginator a,
	.paginator-page {
		margin: 0 3px;
		min-width: 30px;
		height: 30px;
		font-size: 12px;
	}


	#panels.home_page #left {
		display: flex;
		width: 100%;
		justify-content: space-between;
		align-items: center;
		flex-direction: column;
	}


	.site-header {
		display: flex;
		position: relative;
		gap: 5px;
		justify-content: space-between;
		align-items: center;
		flex-direction: column;
		margin: 10px 0 0;
	}

}

@media (max-width: 480px) {
	#mycollection {
		column-count: 2;
		column-gap: 12px;
	}

	.picture-item {
		margin-bottom: 12px;
	}


	.home-collection .newcollection-item {
		flex: 0 0 100%;
		max-width: 100%;
		min-width: 0;
	}

	.home-collection #newcollection h3 {
		text-align: center;
	}
}

@media (max-width: 340px) {

	/* Адаптивная сетка для #mycollection (masonry layout) - очень маленькие экраны */
	#mycollection {
		column-count: 1;
		column-gap: 15px;
	}

	.picture-item {
		margin-bottom: 15px;
	}

	/* Адаптивная сетка для .artist-works (masonry layout) - очень маленькие экраны */
	.artist-works {
		column-count: 1;
		column-gap: 10px;
	}

	.artist-work-item {
		margin-bottom: 10px;
	}
}



@media (max-width: 999px) {

	#panels.home_page,
	#panels {
		display: flex;
		flex-direction: column;
	}

	#panels:not(.home_page) {
		flex-direction: column-reverse;
	}

	/* На главной показываем только right первой */
	#panels.home_page #right {
		order: -1;
	}

	#panels.home_page #left {
		display: flex;
		width: 100%;
		justify-content: space-between;
		align-items: center;
	}

	#panels #left {
		flex: 1;
		width: 100%;
	}

	#etc {
		display: flex;
		width: 100%;
		justify-content: space-between;
		align-items: center;
		background: rgb(104 121 126);
		box-shadow: var(--shadow-panel);
		flex-direction: column-reverse;

	}

	#etc #newcollection {
		border: none;
	}

	#undermenu {
		border: none;
	}

	.home_page #undermenu {
		border-color: transparent;
	}
}