/* Шапка, подвал и ширина контейнера по Figma «ГАЛЕРЕЯ» — на всех страницах сайта. */

/* ---------- Контейнер 1600 ---------- */
@media (min-width: 1200px) {
	.wp-theme-gallery_crimea .container { max-width: 1680px; padding: 0 40px; }
}
@media (min-width: 1700px) {
	.wp-theme-gallery_crimea .container { max-width: 1630px; padding: 0 15px; }
}
/* ---------- Шапка ---------- */
@media (min-width: 1200px) {
	.wp-theme-gallery_crimea .header { box-shadow: none; border-bottom: 0; }
	.wp-theme-gallery_crimea .header__top { border-bottom: 0; box-shadow: none; }
	.wp-theme-gallery_crimea .header__top { padding: 12px 0 13px; }
	.wp-theme-gallery_crimea .header-wr { display: flex; align-items: flex-start; gap: 64px; }
	.wp-theme-gallery_crimea .header__top .logo {
		flex: 0 0 173px;
		width: 173px;
		height: 105px;
		margin: 0;
		background-size: contain;
		background-position: left center;
	}
	.wp-theme-gallery_crimea .header-content-wr { flex: 1 1 auto; min-width: 0; }
	.wp-theme-gallery_crimea .header-top {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 24px;
		margin: 0;
	}
	.wp-theme-gallery_crimea .header-txt {
		margin: 0;
		font: 400 14px/1.6 "Manrope", sans-serif;
		letter-spacing: .03em;
		color: #281d23;
	}
	.wp-theme-gallery_crimea .header-top .search-form { flex: 0 1 376px; width: 376px; margin: 0; }
	.wp-theme-gallery_crimea .header-top .search-form .probox {
		height: 46px !important;
		padding: 0 20px !important;
		border: 1px solid #9b9ea0 !important;
		border-radius: 10px !important;
		background: #fff !important;
		box-shadow: none !important;
		align-items: center !important;
	}
	.wp-theme-gallery_crimea .header-top .search-form .promagnifier {
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 24px !important;
		height: 24px !important;
		margin: 0 !important;
		box-shadow: none !important;
		background: none !important;
	}
	.wp-theme-gallery_crimea .header-top .search-form .promagnifier .innericon,
	.wp-theme-gallery_crimea .header-top .search-form .promagnifier svg { display: block; width: 16px !important; height: 16px !important; }
	.wp-theme-gallery_crimea .header-top .search-form input.orig {
		height: 44px !important;
		padding: 0 !important;
		font: 400 14px/1.6 "Manrope", sans-serif !important;
		letter-spacing: .03em !important;
		color: #2a2a2a !important;
	}
	.wp-theme-gallery_crimea .header-top .circle-group { display: flex; align-items: center; gap: 22px; margin: 0; }
	.wp-theme-gallery_crimea .header-top .phone__number { margin: 0; }
	.wp-theme-gallery_crimea .header-top .phone__number p { margin: 0; }
	.wp-theme-gallery_crimea .header-top .phone__number a {
		font: 700 16px/1.4 "Manrope", sans-serif;
		color: #2a2a2a;
	}
	.wp-theme-gallery_crimea .header-bottom { display: flex; align-items: center; gap: 34px; margin-top: 11px; }
	.wp-theme-gallery_crimea .sandwich-box { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 10px; }
	.wp-theme-gallery_crimea .top__nav { flex: 1 1 auto; margin: 0; }
	.wp-theme-gallery_crimea .top__nav .container { max-width: none; padding: 0; }
	.wp-theme-gallery_crimea .top__nav ul { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0; }
	.wp-theme-gallery_crimea .top__nav li { margin: 0; }
	.wp-theme-gallery_crimea .top__nav li a {
		display: block;
		height: auto;
		padding: 10px 16px;
		border-radius: 10px;
		font: 500 16px/1.6 "Manrope", sans-serif;
		letter-spacing: .04em;
		text-transform: uppercase;
		color: #3b2c34;
	}
}

@media (min-width: 1200px) and (max-width: 1699px) {
	.wp-theme-gallery_crimea .header-wr { gap: 32px; }
	.wp-theme-gallery_crimea .header__top .logo { flex-basis: 140px; width: 140px; height: 85px; }
	.wp-theme-gallery_crimea .header-top { gap: 16px; }
	.wp-theme-gallery_crimea .header-txt { font-size: 13px; white-space: nowrap; }
	.wp-theme-gallery_crimea .header-top .search-form { flex-basis: 280px; }
	.wp-theme-gallery_crimea .header-top .circle-group { gap: 14px; }
	.wp-theme-gallery_crimea .header-top .phone__number a { font-size: 15px; white-space: nowrap; }
	.wp-theme-gallery_crimea .header-bottom { gap: 20px; }
	.wp-theme-gallery_crimea .top__nav li a { padding: 10px 6px; font-size: 14px; letter-spacing: .02em; white-space: nowrap; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
	.wp-theme-gallery_crimea .header-txt.header-addr { display: none; }
}

/* ---------- Подвал ---------- */
.wp-theme-gallery_crimea .footer { background: #2c1221; }
.wp-theme-gallery_crimea .footer__top { padding: 25px 0 34px; background: none; }
.wp-theme-gallery_crimea .footer__top .container { display: flex; align-items: center; }
.wp-theme-gallery_crimea .footer__top .logo { width: 143px; height: 87px; margin: 0 auto 0 4px; background-size: contain; background-position: left center; }
.wp-theme-gallery_crimea .footer__top .social { display: flex; gap: 14px; margin: 0 32px 0 0; order: 2; }
.wp-theme-gallery_crimea .footer__top .phone__number { order: 3; margin: 0; }
.wp-theme-gallery_crimea .footer__top .phone__number p { margin: 0; }
.wp-theme-gallery_crimea .footer__top .phone__number a { font: 700 16px/1.6 "Manrope", sans-serif; color: #fff; }
.wp-theme-gallery_crimea .footer__top .social__item {
	width: 58px;
	height: 58px;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	background: #471e34;
	font-size: 18px;
	line-height: 58px;
	text-align: center;
	color: #fff;
}
.wp-theme-gallery_crimea .footer__center { padding: 0 0 40px; border-bottom: 1px solid #471e34; }
.wp-theme-gallery_crimea .footer__menu { display: flex; margin: 0; }
.wp-theme-gallery_crimea .footer__menu aside {
	flex: 1 1 auto;
	min-height: 0;
	margin: 0;
	padding: 0 52px;
	border-left: 1px solid #471e34;
}
.wp-theme-gallery_crimea .footer__menu aside:first-child { flex: 0 0 136px; padding-left: 0; padding-right: 0; border-left: 0; }
.wp-theme-gallery_crimea .footer__menu aside > div {
	margin: 0 0 10px;
	font: 700 16px/1.6 "Manrope", sans-serif;
	color: #fff;
}
.wp-theme-gallery_crimea .footer__menu aside:last-child > div { font: 400 14px/1.6 "Manrope", sans-serif !important; }
.wp-theme-gallery_crimea .footer__menu aside:last-child p { margin: 0 0 10px; }
.wp-theme-gallery_crimea .footer__menu ul { margin: 0; padding: 0; list-style: none; }
.wp-theme-gallery_crimea .footer__menu li { margin: 0 0 10px; }
.wp-theme-gallery_crimea .footer__menu li a { padding: 0; font: 400 14px/1.6 "Manrope", sans-serif; color: #fff; }
.wp-theme-gallery_crimea .footer__menu li a:hover { color: #c9a5b9; }
.wp-theme-gallery_crimea .footer__bottom { padding: 24px 0; border: 0; }
.wp-theme-gallery_crimea .footer__bottom .container { display: flex; justify-content: flex-start; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.wp-theme-gallery_crimea .footer__bottom p { margin: 0; font: 400 14px/21px "Onest", "Manrope", sans-serif; color: #9b9ea0; }
.wp-theme-gallery_crimea .footer__bottom p:nth-child(1) { order: 3; }
.wp-theme-gallery_crimea .footer__bottom p:nth-child(2) { order: 1; }
.wp-theme-gallery_crimea .footer__bottom p:nth-child(3) { order: 2; }
.wp-theme-gallery_crimea .footer__bottom p.create__sheer { order: 4; }
.wp-theme-gallery_crimea .footer__bottom p a[style] { color: #9b9ea0 !important; text-decoration: underline; }

/* ---------- Адаптив подвала ---------- */
@media (max-width: 1699px) {
	.wp-theme-gallery_crimea .footer__menu aside { padding: 0 32px; }
}
@media (max-width: 1399px) {
	.wp-theme-gallery_crimea .footer__menu aside { padding: 0 20px; }
}
@media (max-width: 1199px) {
	.wp-theme-gallery_crimea .footer__menu { flex-wrap: wrap; }
	.wp-theme-gallery_crimea .footer__menu aside { flex: 1 1 30%; min-height: 0; padding: 0 20px 32px; border-left: 0; }
	.wp-theme-gallery_crimea .footer__menu aside:first-child { flex: 1 1 30%; }
}
@media (max-width: 991px) {
	.wp-theme-gallery_crimea .footer__top .container { flex-wrap: wrap; gap: 16px; }
}
@media (max-width: 767px) {
	.wp-theme-gallery_crimea .footer__top .logo { margin-right: 0; }
	.wp-theme-gallery_crimea .footer__top .container { justify-content: center; text-align: center; }
	.wp-theme-gallery_crimea .footer__menu aside,
	.wp-theme-gallery_crimea .footer__menu aside:first-child { flex: 1 1 100%; padding: 0 0 24px; }
	.wp-theme-gallery_crimea .footer__bottom .container { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* Логотип: contain без повтора, иначе справа виден край второй копии */
.wp-theme-gallery_crimea .header__top .logo,
.wp-theme-gallery_crimea .footer__top .logo { background-repeat: no-repeat; }

/* Вложенные пункты меню подвала (Контакты → Блог) с тем же шагом */
.wp-theme-gallery_crimea .footer__menu ul ul { margin: 10px 0 0; padding: 0; }
.wp-theme-gallery_crimea .footer__menu li li:last-child { margin-bottom: 0; }

/* Счётчик избранного у сердечка в шапке */
.wp-theme-gallery_crimea .fav-link { position: relative; display: inline-flex; }
.wp-theme-gallery_crimea .fav-link .simplefavorites-user-count {
	position: absolute;
	top: -8px;
	right: -10px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: #5e2543;
	box-shadow: 0 0 0 2px #fff;
	font: 700 11px/18px "Manrope", sans-serif;
	text-align: center;
	color: #fff;
}
.wp-theme-gallery_crimea .fav-link .simplefavorites-user-count.is-zero { display: none; }
