/* ==========================================================================
   Company Batumi — оформление темы.
   Токены из ТЗ: белый фон, морской основной, песочные подложки,
   оранжевый только на кнопках действия. Inter, радиус 12, сетка 1200.
   ========================================================================== */

:root {
	--sea: #0E7490;
	--sea-dark: #0A5C73;
	--sea-soft: #E6F1F4;
	--sand: #F3EDE2;
	--sand-deep: #EAE1D1;
	--action: #F97316;
	--action-dark: #E2620B;
	--ink: #12212B;
	--ink-soft: #35505F;
	--muted: #5E7280;
	--line: #E4E9ED;
	--white: #fff;

	--radius: 12px;
	--radius-sm: 8px;
	--radius-lg: 20px;
	--radius-pill: 999px;

	--wrap: 1200px;
	--gap: 24px;

	--shadow-xs: 0 1px 2px rgba(18, 33, 43, .06);
	--shadow-sm: 0 2px 10px rgba(18, 33, 43, .07);
	--shadow-md: 0 10px 28px rgba(18, 33, 43, .10);
	--shadow-lg: 0 22px 50px rgba(18, 33, 43, .14);

	--ease: cubic-bezier(.2, .7, .3, 1);
	--fast: .16s var(--ease);
	--slow: .45s var(--ease);

	--font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	--bar-h: 124px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--sea); text-decoration: none; transition: color var(--fast); }
a:hover { color: var(--sea-dark); }

h1, h2, h3, h4 { margin: 0 0 12px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(30px, 3.4vw + 14px, 52px); }
h2 { font-size: clamp(23px, 1.6vw + 14px, 34px); }
h3, .h3 { font-size: clamp(19px, .8vw + 14px, 24px); }

p { margin: 0 0 14px; }
strong { font-weight: 600; }

::selection { background: var(--sea); color: #fff; }

:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--sea); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; }

/* --------------------------------------------------------------- Шапка */
.site-header {
	position: sticky; top: 0; z-index: 60;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(150%) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color var(--fast), box-shadow var(--fast);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-xs); }

.header-inner { display: flex; align-items: center; gap: 18px; min-height: var(--bar-h); }
.brand { display: flex; align-items: center; }
.brand img,
.brand .custom-logo {
	height: 100px; width: auto; max-height: 100px; object-fit: contain;
	transition: height var(--fast);
}
.site-header.is-scrolled .brand img,
.site-header.is-scrolled .brand .custom-logo { height: 68px; }
.brand-text { font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -.02em; }
.brand-text:hover { color: var(--sea); }

.primary-nav { margin-left: auto; }
.menu { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.menu a { position: relative; display: inline-block; padding: 6px 0; color: var(--ink); font-weight: 500; font-size: 15px; }
.menu a::after {
	content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
	height: 2px; background: var(--sea); border-radius: 2px;
	transition: right var(--fast);
}
.menu a:hover::after, .menu .current-menu-item > a::after { right: 0; }
.menu .sub-menu { display: none; }

.nav-head, .nav-close, .nav-contacts, .nav-backdrop { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-call { white-space: nowrap; }

.nav-toggle {
	display: none; position: relative; width: 44px; height: 44px; margin-left: auto;
	border: 1px solid var(--line); border-radius: var(--radius-sm);
	background: var(--white); cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
	content: ''; position: absolute; left: 12px; width: 18px; height: 2px;
	background: var(--ink); border-radius: 2px; transition: transform var(--fast), opacity var(--fast);
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -6px; left: 0; }
.nav-toggle-bar::after { top: 6px; left: 0; }
.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* -------------------------------------------------------------- Кнопки */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 24px; border: 0; border-radius: var(--radius);
	font: 600 15px/1 var(--font); cursor: pointer; text-align: center;
	transition: background var(--fast), color var(--fast), box-shadow var(--fast), transform var(--fast);
}
.btn:active { transform: translateY(1px); }
.btn-action { background: var(--action); color: #fff; box-shadow: 0 6px 16px rgba(249, 115, 22, .28); }
.btn-action:hover { background: var(--action-dark); color: #fff; box-shadow: 0 10px 22px rgba(249, 115, 22, .34); }
.btn-ghost { background: var(--white); color: var(--sea); box-shadow: inset 0 0 0 1.5px var(--sea); }
.btn-ghost:hover { background: var(--sea); color: #fff; }
.btn-small { padding: 10px 16px; font-size: 14px; }
.btn-wide { width: 100%; }

.cur-switch { display: inline-flex; padding: 3px; background: var(--sand); border-radius: var(--radius-pill); }
.cur-btn {
	padding: 7px 13px; border: 0; border-radius: var(--radius-pill); background: transparent;
	font: 600 13px var(--font); color: var(--muted); cursor: pointer; transition: background var(--fast), color var(--fast);
}
.cur-btn:hover { color: var(--ink); }
.cur-btn.is-active { background: var(--white); color: var(--sea); box-shadow: var(--shadow-xs); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--radius-pill);
	background: var(--white); font: 500 14px var(--font); color: var(--ink-soft); cursor: pointer;
	transition: background var(--fast), color var(--fast), border-color var(--fast), transform var(--fast);
}
.chip:hover { border-color: var(--sea); color: var(--sea); }
.chip.is-active { background: var(--sea); border-color: var(--sea); color: #fff; }


/* --------------------------------------------------- Слайдер на главной */
.hero.has-slider {
	position: relative; isolation: isolate;
	min-height: clamp(520px, 66vh, 720px);
	display: flex; align-items: center;
	padding: clamp(48px, 6vw, 88px) 0;
	background: var(--sand);
}
.hero.has-slider .hero-inner { position: relative; z-index: 3; width: 100%; }
.hero.has-slider .hero-sub { color: var(--ink); }

.hero-slider { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-slides { position: absolute; inset: 0; }

.hero-slide {
	position: absolute; inset: 0; margin: 0; z-index: 1;
	clip-path: inset(50% 0 50% 0);
	will-change: clip-path;
}
.hero-slide.is-prev { z-index: 2; clip-path: inset(0 0 0 0); }
.hero-slide.is-active {
	z-index: 3; clip-path: inset(0 0 0 0);
	transition: clip-path 1s cubic-bezier(.65, 0, .2, 1);
}
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide.is-active .hero-img,
.hero-slide.is-prev .hero-img { transform: scale(1.05); transition: transform 9s linear; }
.hero-slide.is-active .hero-img { transform: scale(1); }

/* Линия горизонта: подсвечивается в момент раскрытия */
.hero-slide::after {
	content: ''; position: absolute; left: 0; right: 0; top: 50%;
	height: 2px; background: var(--sea); opacity: 0; transform: translateY(-1px);
}
.hero-slide.is-active::after { animation: horizon 1s cubic-bezier(.65, 0, .2, 1) both; }
@keyframes horizon {
	0% { opacity: .9; transform: translateY(-1px) scaleX(.15); }
	45% { opacity: .6; transform: translateY(-1px) scaleX(1); }
	100% { opacity: 0; transform: translateY(-1px) scaleX(1); }
}

/* Подложка под текст: слева плотная, справа прозрачная */
.hero-veil {
	position: absolute; inset: 0; z-index: 4; pointer-events: none;
	background:
		linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .88) 34%, rgba(255, 255, 255, .35) 62%, rgba(243, 237, 226, .12) 100%),
		linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, transparent 22%);
}

.hero-dots { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 5; display: flex; justify-content: center; gap: 10px; }
.hero-dot {
	width: 34px; height: 4px; padding: 0; border: 0; border-radius: 2px;
	background: rgba(18, 33, 43, .25); cursor: pointer;
	transition: background var(--fast), transform var(--fast);
}
.hero-dot:hover { transform: scaleY(1.6); }
.hero-dot.is-active { background: var(--sea); }

/* --------------------------------------------------------------- Экраны */
.hero {
	position: relative; overflow: hidden;
	padding: clamp(40px, 6vw, 84px) 0 clamp(36px, 5vw, 64px);
	background:
		radial-gradient(1100px 380px at 82% -10%, rgba(14, 116, 144, .12), transparent 60%),
		linear-gradient(180deg, var(--sand) 0%, #fff 78%);
}
.hero-text { max-width: 780px; }
.hero-sub { font-size: clamp(16px, .5vw + 15px, 19px); color: var(--ink-soft); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 32px; }

.trust { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 44px); }
.trust-item { display: flex; flex-direction: column; }
.trust-num { font-size: clamp(28px, 2.4vw + 16px, 40px); font-weight: 700; color: var(--sea); line-height: 1.05; letter-spacing: -.03em; }
.trust-label { font-size: 14px; color: var(--muted); }

.section { padding: clamp(36px, 5vw, 64px) 0; }
.section-sand { background: var(--sand); }
.section-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.section-more { margin-top: 26px; }
.section-inline { margin: 36px 0; }

.page-head { padding: 26px 0 18px; }
.page-lead { color: var(--ink-soft); font-size: clamp(16px, .4vw + 15px, 18px); max-width: 760px; }

.crumbs { font-size: 13px; color: var(--muted); padding: 16px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--sea); }

/* -------------------------------------------------------------- Карточки */
.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.is-loading { opacity: .45; pointer-events: none; }

.card {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
	transition: box-shadow var(--slow), transform var(--slow), border-color var(--slow);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.045); }
.thumb-empty { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--sand), var(--sand-deep)); }
.card-body { display: flex; flex-direction: column; gap: 7px; padding: 18px; }
.card-title { margin: 0; font-size: 17px; line-height: 1.3; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--sea); }
.card-price { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.card-place, .card-date, .card-excerpt { margin: 0; font-size: 14px; color: var(--muted); }
.card-specs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 6px 0 0; padding: 0; }
.card-specs li {
	padding: 4px 10px; border-radius: var(--radius-pill);
	background: var(--sea-soft); color: var(--ink-soft); font-size: 13px;
}

.price-per { font-size: 14px; font-weight: 500; color: var(--muted); }
.price-empty { font-size: 17px; color: var(--muted); }

.badge {
	position: absolute; left: 14px; top: 14px; z-index: 2;
	padding: 6px 12px; border-radius: var(--radius-pill);
	font-size: 12px; font-weight: 600; color: #fff; letter-spacing: .01em;
	backdrop-filter: blur(4px);
}
.badge-reserved { background: rgba(14, 116, 144, .92); }
.badge-sold { background: rgba(71, 85, 105, .92); }

/* --------------------------------------------------------------- Каталог */
.deal-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 22px; }
.deal-tab {
	padding: 10px 18px; border-radius: var(--radius-pill);
	background: var(--sand); color: var(--ink); font-weight: 500; font-size: 15px;
	transition: background var(--fast), color var(--fast);
}
.deal-tab:hover { background: var(--sand-deep); color: var(--ink); }
.deal-tab.is-active { background: var(--sea); color: #fff; }

.filters-toggle { display: none; }

.filters {
	display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
	padding: 18px; margin-bottom: 22px;
	background: var(--sand); border-radius: var(--radius-lg);
}
.filters-actions { display: flex; align-items: flex-end; gap: 10px; grid-column: span 2; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 13px; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
	width: 100%; padding: 12px 13px;
	border: 1px solid var(--line); border-radius: var(--radius-sm);
	font: 15px var(--font); color: var(--ink); background: var(--white);
	transition: border-color var(--fast), box-shadow var(--fast);
}
.field input:focus, .field select:focus, .field textarea:focus {
	outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(14, 116, 144, .14);
}
.field textarea { resize: vertical; min-height: 88px; }
.field-wide { grid-column: 1 / -1; }

.view-tabs { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.view-tab {
	padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--radius-pill);
	background: var(--white); font: 600 14px var(--font); color: var(--muted); cursor: pointer;
	transition: background var(--fast), color var(--fast), border-color var(--fast);
}
.view-tab.is-active { background: var(--sea); border-color: var(--sea); color: #fff; }
.found { margin-left: auto; font-size: 14px; color: var(--muted); }

.objects-map { height: min(70vh, 640px); border-radius: var(--radius-lg); overflow: hidden; }
.object-map { height: 340px; border-radius: var(--radius); overflow: hidden; }
.map-note { font-size: 13px; color: var(--muted); }
.map-pop { display: block; width: 180px; color: var(--ink); }
.map-pop img { border-radius: var(--radius-sm); margin-bottom: 6px; }
.map-pop span { display: block; font-weight: 700; }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0; }
.page-numbers {
	display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center;
	padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
	background: var(--white); color: var(--ink); font-weight: 600; cursor: pointer;
	transition: background var(--fast), color var(--fast), border-color var(--fast);
}
.page-numbers:hover { border-color: var(--sea); color: var(--sea); }
.page-numbers.current { background: var(--sea); border-color: var(--sea); color: #fff; }

/* -------------------------------------------------------- Карточка объекта */
.object-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; padding: 22px 0; }
.object-place { margin: 0; color: var(--muted); }
.object-price { display: flex; align-items: center; gap: 12px; font-size: clamp(24px, 2vw + 14px, 34px); font-weight: 700; letter-spacing: -.02em; }
.object-price .badge { position: static; }

.object-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 36px; align-items: start; }
.object-side { position: sticky; top: calc(var(--bar-h) + 16px); }
.object-cta { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--sand); border-radius: var(--radius-lg); }
.object-code { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-size: 22px; font-weight: 700; }
.object-code span { font-size: 13px; font-weight: 500; color: var(--muted); }
.object-code-note { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.sold-note { padding: 12px; background: var(--white); border-radius: var(--radius-sm); font-size: 14px; }

.gallery-main img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.gallery-thumbs { display: flex; gap: 8px; padding: 12px 0; overflow-x: auto; scrollbar-width: thin; }
.gallery-thumb { flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); background: none; cursor: pointer; transition: border-color var(--fast), transform var(--fast); }
.gallery-thumb img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; }
.gallery-thumb:hover { transform: translateY(-2px); }
.gallery-thumb.is-active { border-color: var(--sea); }

.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 26px 0; }
.spec { padding: 14px; background: var(--sand); border-radius: var(--radius); }
.spec-label { display: block; font-size: 13px; color: var(--muted); }
.spec-value { font-weight: 600; }

.amen-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 26px; padding: 0; }
.amen-list li { padding: 7px 15px; background: var(--sea-soft); border-radius: var(--radius-pill); font-size: 14px; color: var(--ink-soft); }

.object-video { margin: 22px 0; }
.object-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-lg); }
.object-text, .entry { line-height: 1.75; }
.entry h2 { margin-top: 34px; }
.entry ul, .entry ol { padding-left: 22px; }
.entry li { margin-bottom: 6px; }
.object-map-wrap { margin: 30px 0; }
.post-cover img { border-radius: var(--radius-lg); }

/* ---------------------------------------------------------------- Услуги */
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 36px; align-items: start; }
.service-side { position: sticky; top: calc(var(--bar-h) + 16px); }
.side-card { padding: 22px; background: var(--sand); border-radius: var(--radius-lg); }
.service-price { font-size: 21px; }
.service-price strong { color: var(--sea); }

.stage-list { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.stage-list li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; background: var(--sand); border-radius: var(--radius); }
.stage-num {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; border-radius: 50%;
	background: var(--sea); color: #fff; font-size: 14px; font-weight: 700;
}

.faq-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: '+'; position: absolute; right: 4px; top: -2px;
	font-size: 22px; font-weight: 400; color: var(--sea); transition: transform var(--fast);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding-top: 10px; color: var(--ink-soft); }

/* Хаб услуг с переключателем городов */
.city-switch { padding: 22px; margin: 8px 0 28px; background: var(--sand); border-radius: var(--radius-lg); }
.city-switch-title { margin-bottom: 14px; font-size: 16px; font-weight: 600; }
.city-switch-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

.service-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.service-card {
	display: grid; grid-template-columns: 190px minmax(0, 1fr); overflow: hidden;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
	transition: box-shadow var(--slow), transform var(--slow), border-color var(--slow);
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.service-card.is-muted { opacity: .55; }
.service-card-media { position: relative; overflow: hidden; background: var(--sand); }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-card-media img { transform: scale(1.05); }
.service-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; }
.service-card-title { margin: 0; font-size: 20px; }
.service-card-title a { color: var(--ink); }
.service-card-title a:hover { color: var(--sea); }
.service-card-price { margin: 0; font-size: 15px; color: var(--ink-soft); }
.service-card-price strong { color: var(--sea); font-size: 18px; }
.service-card-excerpt { margin: 0; font-size: 14px; color: var(--muted); }
.service-card-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 4px 0; padding: 0; }
.service-card-list a {
	display: inline-block; padding: 5px 12px; border-radius: var(--radius-pill);
	background: var(--sea-soft); color: var(--ink-soft); font-size: 13px;
	transition: background var(--fast), color var(--fast);
}
.service-card-list a:hover { background: var(--sea); color: #fff; }
.service-card-none { margin: 0; font-size: 14px; color: var(--muted); }

/* Гео-блоки и хаб города */
.geo-block { margin: 32px 0; }
.geo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.geo-list a {
	display: block; padding: 11px 16px; border-radius: var(--radius);
	background: var(--sand); color: var(--ink); font-size: 15px;
	transition: background var(--fast), color var(--fast), transform var(--fast);
}
.geo-list a:hover { background: var(--sea); color: #fff; transform: translateY(-2px); }
.geo-parent { margin-top: 16px; font-weight: 600; }
.city-objects { margin: 34px 0; }

/* ---------------------------------------------------------------- Кейсы */
.case-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--muted); }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 26px 0; }
.ba-col img { margin-bottom: 12px; border-radius: var(--radius-lg); }

/* --------------------------------------------------------------- Отзывы */
.review { margin: 0; padding: 22px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.review blockquote { margin: 10px 0 14px; font-size: 15px; }
.review figcaption { font-size: 14px; color: var(--muted); }
.stars { color: var(--action); letter-spacing: 2px; }
.rating-badge { padding: 5px 14px; background: var(--sea); color: #fff; border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; }

/* ---------------------------------------------------------------- Формы */
.lead-form { padding: 24px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.lead-form-compact { padding: 18px 0 0; box-shadow: none; }
.lead-title { margin-bottom: 4px; }
.lead-sub { font-size: 14px; color: var(--muted); }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.lead-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.lead-result { margin-top: 12px; font-size: 14px; }
.lead-result.is-ok { color: #15803D; font-weight: 600; }
.lead-result.is-error { color: #B91C1C; }
.hp { position: absolute; left: -9999px; }
.cf-turnstile { margin: 12px 0; }

.callback-dialog {
	position: fixed; inset: 0; margin: auto;
	width: min(440px, 92vw); padding: 26px; border: 0; border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}
.callback-dialog::backdrop { background: rgba(18, 33, 43, .55); backdrop-filter: blur(2px); }
.callback-dialog[open] { animation: pop .22s var(--ease); }
.dialog-close {
	position: absolute; right: 12px; top: 8px; border: 0; background: none;
	font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer;
}
.dialog-close:hover { color: var(--ink); }

/* --------------------------------------------------------- Калькуляторы */
.calc { padding: 26px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.calc-title { margin-bottom: 18px; }
.calc-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.calc-result {
	display: flex; flex-direction: column; gap: 6px;
	margin: 22px 0 8px; padding: 20px; border-radius: var(--radius);
	background: linear-gradient(135deg, var(--sand), #fff);
}
.calc-sum { font-size: clamp(22px, 1.6vw + 14px, 30px); font-weight: 700; letter-spacing: -.02em; }
.calc-net { font-size: 17px; color: var(--sea); }
.calc-net strong { color: var(--sea-dark); }
.calc-hint, .calc-empty, .calc-note { font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------- Пустые состояния */
.empty-state { padding: 30px; margin: 22px 0; background: var(--sand); border-radius: var(--radius-lg); }
.empty-inline { grid-column: 1 / -1; color: var(--muted); }

/* --------------------------------------------------------------- Подвал */
.site-footer { margin-top: 64px; padding: 48px 0 26px; background: var(--ink); color: #C7D3DA; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--action); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.footer-brand { font-size: 19px; font-weight: 700; color: #fff; }
.footer-call { margin-top: 6px; }
.footer-call:hover { color: #fff; }
.site-footer .brand img, .footer-logo { height: 100px; width: auto; margin-bottom: 14px; }
.footer-menu { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.footer-note { font-size: 14px; color: #93A6B1; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #93A6B1; }

/* ------------------------------------------------- Мобильная панель действий */
.mobile-bar { display: none; }


/* ------------------------------------------------- Блоки главной страницы */
.section-lead { max-width: 720px; margin: -14px 0 26px; color: var(--ink-soft); font-size: 17px; }

.adv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.adv {
	padding: 24px; background: var(--white); border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm); transition: transform var(--slow), box-shadow var(--slow);
}
.adv:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.adv-icon { color: var(--sea); margin-bottom: 12px; }
.adv-title { margin: 0 0 8px; font-size: 17px; }
.adv-text { margin: 0; font-size: 14px; color: var(--muted); }

.cta-band {
	margin: clamp(36px, 5vw, 64px) 0; padding: clamp(28px, 4vw, 46px) 0;
	background: linear-gradient(120deg, var(--sea-dark), var(--sea)); color: #fff;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta-text h2 { color: #fff; margin-bottom: 6px; }
.cta-text p { margin: 0; color: rgba(255, 255, 255, .88); max-width: 620px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-on-dark { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.btn-on-dark:hover { background: #fff; color: var(--sea-dark); }

.section-text .entry h2 { margin-top: 0; }

/* ------------------------------------------------------------ Подвал */
.footer-top {
	display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px;
	padding-bottom: 30px;
}
.footer-brand-col .footer-note { margin: 14px 0 16px; max-width: 380px; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.footer-contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: #A9BAC4; }
.footer-contacts a { color: #fff; }
.footer-title { margin: 0 0 14px; font-size: 16px; font-weight: 700; color: #fff; }
.footer-title a { color: #fff; }
.footer-title a:hover { color: var(--action); }
.footer-menu { display: grid; gap: 9px; list-style: none; margin: 0 0 14px; padding: 0; font-size: 14px; }
.footer-menu a { color: #C7D3DA; }
.footer-menu a:hover { color: #fff; }
.footer-menu-cities { grid-template-columns: 1fr 1fr; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-legal a { color: #A9BAC4; }

/* ----------------------------------------------- Плавающая кнопка звонка */
.call-fab { position: fixed; right: 20px; bottom: 24px; z-index: 58; }
.call-fab-btn {
	position: relative; display: inline-flex; align-items: center; gap: 0;
	height: 60px; width: 60px; padding: 0; overflow: hidden;
	border-radius: var(--radius-pill); background: var(--action); color: #fff;
	box-shadow: 0 12px 26px rgba(249, 115, 22, .42);
	transition: width var(--slow), gap var(--slow), padding var(--slow), background var(--fast);
}
.call-fab-btn svg { flex: 0 0 auto; width: 60px; }
.call-fab-label { white-space: nowrap; font-weight: 600; font-size: 15px; opacity: 0; transition: opacity var(--fast); }
.call-fab-btn:hover { width: 178px; padding-right: 22px; color: #fff; background: var(--action-dark); }
.call-fab-btn:hover .call-fab-label { opacity: 1; }
.call-fab-btn::after {
	content: ''; position: absolute; inset: 0; border-radius: inherit;
	box-shadow: 0 0 0 0 rgba(249, 115, 22, .5); animation: fab-pulse 2.6s infinite;
}
@keyframes fab-pulse {
	0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, .45); }
	70% { box-shadow: 0 0 0 16px rgba(249, 115, 22, 0); }
	100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------------------ Анимации */
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: 200% 0; } }

.has-js [data-reveal] { opacity: 0; transform: translateY(16px); }
.has-js [data-reveal].is-in {
	opacity: 1; transform: none;
	transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.has-js .grid.is-loading .card { position: relative; }
.has-js .grid.is-loading .card::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
	background-size: 200% 100%; animation: shimmer 1.1s infinite linear;
}

/* ------------------------------------------------------------ Адаптив */
@media (max-width: 1100px) {
	.service-cards { grid-template-columns: 1fr; }
	.object-layout, .service-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 26px; }
}

@media (max-width: 1024px) {
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-top { grid-template-columns: 1fr 1fr; }
	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.object-layout, .service-layout { grid-template-columns: 1fr; }
	.object-side, .service-side { position: static; }
	.filters { grid-template-columns: repeat(3, 1fr); }
	.filters-actions { grid-column: span 3; }
	.calc-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.menu { gap: 16px; }
	.brand img, .brand .custom-logo,
	.site-header.is-scrolled .brand img { height: 64px; }
}

@media (max-width: 860px) {
	:root { --bar-h: 72px; }
	/* backdrop-filter у шапки делает её контейнером для fixed-элементов,
	   из-за чего выдвижное меню схлопывалось в полоску высотой с шапку. */
	.site-header { position: sticky; backdrop-filter: none; background: #fff; }
	.brand img, .brand .custom-logo,
	.site-header.is-scrolled .brand img { height: 48px; }

	.nav-toggle { display: block; order: 3; margin-left: 8px; }
	.header-actions { order: 2; margin-left: auto; }
	.header-actions .btn-ghost { display: none; }
	.header-call { display: inline-flex; }

	/* Выдвижное меню */
	.primary-nav {
		position: fixed; top: 0; right: 0; bottom: 0; z-index: 80;
		display: flex; flex-direction: column;
		width: min(360px, 88vw); margin: 0; padding: 0 0 20px;
		background: #fff; box-shadow: -18px 0 50px rgba(18, 33, 43, .25);
		transform: translateX(103%); visibility: hidden;
		transition: transform .3s var(--ease), visibility .3s;
		overflow-y: auto; overscroll-behavior: contain;
	}
	.primary-nav.is-open { transform: none; visibility: visible; }

	.nav-head {
		position: sticky; top: 0; z-index: 2;
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		padding: 16px 18px; background: var(--sand);
	}
	.nav-head-title { font-weight: 700; font-size: 17px; }
	.nav-close {
		display: flex; align-items: center; justify-content: center;
		width: 42px; height: 42px; border: 0; border-radius: 50%;
		background: #fff; font-size: 26px; line-height: 1; color: var(--ink); cursor: pointer;
		box-shadow: var(--shadow-xs);
	}

	.menu { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px 0; }
	.menu > li { border-bottom: 1px solid var(--line); }
	.menu a {
		display: block; padding: 15px 34px 15px 0; font-size: 16px; font-weight: 500;
	}
	.menu a::after { display: none; }
	.menu > li.menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; }
	.menu > li.menu-item-has-children > a { flex: 1 1 auto; order: 1; padding-right: 8px; }
	.menu > li.menu-item-has-children > .nav-sub-toggle {
		flex: 0 0 auto; order: 2; width: 44px; height: 44px;
		border: 0; background: none; cursor: pointer;
		color: var(--sea); font-size: 24px; line-height: 1;
		transition: transform var(--fast);
	}
	.menu > li.is-open > .nav-sub-toggle { transform: rotate(45deg); }
	.menu .sub-menu {
		display: none; flex: 1 0 100%; order: 3; list-style: none; margin: 0 0 12px; padding: 0 0 0 2px;
	}
	.menu > li.is-open > .sub-menu { display: block; }
	.menu .sub-menu a {
		padding: 11px 0 11px 14px; font-size: 15px; font-weight: 400; color: var(--ink-soft);
		border-left: 2px solid var(--sea-soft);
	}
	.menu .sub-menu a:hover { color: var(--sea); border-left-color: var(--sea); }

	.nav-contacts { display: block; margin-top: auto; padding: 20px 18px 0; }
	.nav-contacts .btn + .btn { margin-top: 10px; }
	.nav-hours { margin: 12px 0 0; font-size: 14px; color: var(--muted); text-align: center; }

	.nav-backdrop {
		display: none; position: fixed; inset: 0; z-index: 75;
		background: rgba(18, 33, 43, .55); border: 0; padding: 0; cursor: pointer;
	}
	body.nav-open .nav-backdrop { display: block; animation: fade-in .2s ease both; }

	.before-after { grid-template-columns: 1fr; }
	.footer-top { grid-template-columns: 1fr 1fr; }
	.cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
	.wrap { padding: 0 16px; }
	.hero.has-slider { min-height: 540px; padding-bottom: 92px; }
	.hero-veil {
		background:
			linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .94) 62%, rgba(255, 255, 255, .74) 82%, rgba(255, 255, 255, .22) 100%);
	}
	.hero-dots { bottom: 14px; }
	.hero-dot { width: 26px; }
	.grid-3, .grid-4 { grid-template-columns: 1fr; }
	.gap { --gap: 16px; }
	.lead-grid { grid-template-columns: 1fr; }
	.calc-fields { grid-template-columns: 1fr; }
	.calc, .lead-form { padding: 18px; }
	.service-card { grid-template-columns: 1fr; }
	.service-card-media { aspect-ratio: 16 / 9; }
	.footer-grid { grid-template-columns: 1fr; }
	.objects-map { height: 60vh; }
	.deal-tabs { margin: 6px -16px 18px; padding: 0 16px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
	.deal-tabs::-webkit-scrollbar { display: none; }
	.deal-tab { flex: 0 0 auto; }
	.view-tabs { flex-wrap: wrap; }
	.found { width: 100%; margin: 4px 0 0; }

	/* Фильтры каталога прячем за кнопкой */
	.filters-toggle {
		display: flex; width: 100%; align-items: center; justify-content: space-between;
		padding: 14px 16px; margin-bottom: 12px;
		border: 1px solid var(--line); border-radius: var(--radius);
		background: var(--sand); font: 600 15px var(--font); color: var(--ink); cursor: pointer;
	}
	.filters { display: none; grid-template-columns: 1fr 1fr; }
	.filters.is-open { display: grid; }
	.filters-actions { grid-column: span 2; }

	.adv-grid { grid-template-columns: 1fr; }
	.footer-top { grid-template-columns: 1fr; gap: 26px; }
	.footer-menu-cities { grid-template-columns: 1fr 1fr; }
	.call-fab { right: 14px; bottom: calc(78px + env(safe-area-inset-bottom)); }
	.call-fab-btn { width: 52px; height: 52px; }
	.call-fab-btn svg { width: 52px; }
	.call-fab-btn:hover { width: 52px; padding-right: 0; }
	.call-fab-btn:hover .call-fab-label { opacity: 0; }
	body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
	.mobile-bar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
		display: flex; gap: 8px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
		backdrop-filter: blur(8px);
	}
	.mobile-btn {
		flex: 1; display: flex; align-items: center; justify-content: center;
		padding: 14px 10px; border-radius: var(--radius); font-weight: 600; font-size: 15px;
	}
	.mobile-call { background: var(--action); color: #fff; }
	.mobile-call:hover { color: #fff; }
	.mobile-wa { background: var(--sand); color: var(--ink); }
	.site-footer { margin-bottom: 0; }
}

@media (max-width: 400px) {
	.filters { grid-template-columns: 1fr; }
	.filters-actions { grid-column: span 1; flex-wrap: wrap; }
	.trust { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.has-js [data-reveal] { opacity: 1; transform: none; }
	.hero-slide { clip-path: none; opacity: 0; }
	.hero-slide.is-active { opacity: 1; }
	.hero-slide::after { display: none; }
	.call-fab-btn::after { animation: none; }
}

@media print {
	.site-header, .site-footer, .mobile-bar, .lead-form, .filters, .view-tabs { display: none !important; }
}
