/* Сады Морей: атлас хвойного парка */
:root {
  --sheet: #f1f3ec;
  --sheet-2: #e3e9de;
  --sheet-3: #d4dccf;
  --pine: #1e3a2c;
  --pine-2: #264837;
  --pine-3: #142a1f;
  --needle: #5c7f4e;
  --sea: #2a6b8a;
  --roof: #b5452f;
  --roof-dark: #93351f;
  --ink: #17251d;
  --ink-2: #44554a;
  --ink-3: #55645a;
  --rule: rgba(23, 37, 29, 0.28);
  --rule-soft: rgba(23, 37, 29, 0.14);
  --on-pine: #eef2ea;
  --on-pine-2: #bccbb8;
  --rule-pine: rgba(238, 242, 234, 0.26);
  --display: "Old Standard TT", "Times New Roman", serif;
  --text: "Golos Text", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 18px 40px -22px rgba(14, 33, 23, 0.45), 0 4px 12px -6px rgba(14, 33, 23, 0.18);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--sheet);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}
body.menu-open, body.has-dialog { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
button { font: inherit; color: inherit; }
::selection { background: var(--needle); color: #fff; }
:focus-visible { outline: 2px solid var(--roof); outline-offset: 3px; }
.on-pine :focus-visible, .site-footer :focus-visible { outline-color: #f0b8a6; }
html { scrollbar-color: var(--needle) var(--sheet-2); }
input { caret-color: var(--roof); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 400; background: var(--pine); color: var(--on-pine); padding: 10px 14px; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 136px); position: relative; }
.on-pine { background: var(--pine); color: var(--on-pine); }
.on-pine-deep { background: var(--pine-3); color: var(--on-pine); }
.on-sheet-2 { background: var(--sheet-2); }

/* Типографика */
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
.title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -0.012em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6; color: var(--ink-2); max-width: 62ch; margin: 22px 0 0; text-wrap: pretty; }
.on-pine .lead, .on-pine-deep .lead { color: var(--on-pine-2); }
p { margin: 0; text-wrap: pretty; }
.section-head { display: grid; gap: 0; max-width: 820px; margin-bottom: clamp(36px, 5vw, 64px); }
.plate-no { font: 500 12px/1 var(--text); letter-spacing: 0.08em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.on-pine .plate-no { color: var(--on-pine-2); }

/* Кнопки */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 26px; border: 0; border-radius: 2px;
  background: var(--roof); color: #fff; font: 600 16px/1 var(--text); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 10px 22px -14px rgba(147, 53, 31, 0.9);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.button:hover { background: var(--roof-dark); transform: translateY(-1px); box-shadow: 0 14px 26px -14px rgba(147, 53, 31, 0.95); }
.button:active { transform: translateY(1px); }
.button .icon { transition: transform 0.3s var(--ease); }
.button:hover .icon { transform: translateX(3px); }
.button:disabled { opacity: 0.6; cursor: progress; transform: none; }
.button.consent-pending { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; opacity: 0.8; }
.button.consent-pending:hover { background: transparent; transform: none; }
.consent-hint { font-size: 13px; line-height: 1.4; color: var(--ink-3); margin-top: -6px; }
.consent-hint[hidden] { display: none; }
.on-pine .consent-hint { color: var(--on-pine-2); }
.button-quiet {
  background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule);
}
.button-quiet:hover { background: var(--sheet-2); box-shadow: inset 0 0 0 1px var(--ink); }
.on-pine .button-quiet, .on-pine-deep .button-quiet { color: var(--on-pine); box-shadow: inset 0 0 0 1px var(--rule-pine); }
.on-pine .button-quiet:hover { background: var(--pine-2); box-shadow: inset 0 0 0 1px var(--on-pine); }
.button-small { min-height: 42px; padding: 0 18px; font-size: 15px; }
.full-width { width: 100%; }

/* Табличка-этикетка: двойная рамка атласа */
.label-card {
  position: relative; background: var(--sheet); color: var(--ink);
  border: 1px solid var(--ink); outline: 1px solid var(--rule); outline-offset: -7px;
  box-shadow: var(--shadow);
}
.label-corner { position: absolute; top: 16px; right: 18px; }

/* Шапка */
.reading-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 260; pointer-events: none; }
.reading-progress span { display: block; height: 100%; background: var(--roof); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); }
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 200; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter); color: #fff;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(10, 24, 17, 0.55), rgba(10, 24, 17, 0));
  transition: opacity 0.35s var(--ease);
}
.site-header.is-scrolled { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 0 var(--rule-soft); }
.site-header.is-scrolled::before { opacity: 0; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand-name { font: 400 25px/1 var(--display); letter-spacing: 0.01em; }
.brand-place { font: 500 12px/1 var(--text); letter-spacing: 0.08em; opacity: 0.78; }
.desktop-nav { display: flex; gap: clamp(16px, 2.2vw, 32px); }
.desktop-nav a { font: 500 15px/1 var(--text); text-decoration: none; padding: 8px 0; position: relative; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.35s var(--ease); }
.desktop-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid currentColor; border-radius: 2px; background: transparent; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 26px; }
.menu-open .menu-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 22px; transform: rotate(-45deg); }
.menu-open .site-header { background: var(--pine); color: var(--on-pine); box-shadow: none; }
.menu-open .site-header::before { opacity: 0; }
.mobile-menu {
  position: fixed; inset: 68px 0 0; z-index: 300; background: var(--pine); color: var(--on-pine);
  padding: 24px var(--gutter) 40px; overflow-y: auto; display: flex; flex-direction: column; gap: 28px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { font: 400 30px/1.2 var(--display); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--rule-pine); }

/* Первый экран */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; align-items: flex-end; overflow: hidden; background: var(--pine-3); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 28, 20, 0.5) 0%, rgba(12, 28, 20, 0.08) 52%, rgba(12, 28, 20, 0) 70%), linear-gradient(0deg, rgba(12, 28, 20, 0.45), rgba(12, 28, 20, 0) 38%); }
.hero-inner { position: relative; z-index: 1; width: 100%; padding: 120px var(--gutter) clamp(28px, 5vw, 64px); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero-caption { color: #fff; font-size: 13px; line-height: 1.4; text-align: right; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); max-width: 260px; }
.hero-caption b { display: block; font: 400 15px/1.2 var(--display); letter-spacing: 0.02em; }

.hero-label { flex: 0 1 660px; min-width: 0; max-width: 660px; padding: clamp(28px, 3.4vw, 44px); }
.hero-label h1 { font-size: clamp(3rem, 6vw, 5.1rem); line-height: 0.95; letter-spacing: -0.02em; font-weight: 400; margin-right: 56px; white-space: nowrap; }
.hero-descr { margin-top: 18px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.5; color: var(--ink-2); max-width: 34ch; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 26px 0 28px; border-block: 1px solid var(--rule); }
.hero-facts div { padding: 14px 22px 14px 0; margin-right: 22px; border-right: 1px solid var(--rule-soft); }
.hero-facts div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-facts dt { font: 500 13px/1.3 var(--text); color: var(--ink-3); order: 2; }
.hero-facts dd { margin: 0 0 4px; font: 700 clamp(1.25rem, 2vw, 1.6rem)/1.1 var(--display); white-space: nowrap; }
.hero-facts div { display: flex; flex-direction: column-reverse; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.agent-line { margin-top: 20px; font-size: 13px; line-height: 1.45; color: var(--ink-3); }

/* Паспорт комплекса */
.passport-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.passport { padding: clamp(28px, 4vw, 52px); }
.passport h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.05; margin-right: 64px; }
.passport-list { margin: 26px 0 0; display: grid; }
.passport-list div { display: grid; grid-template-columns: minmax(130px, 0.9fr) 1.4fr; gap: 16px; padding: 13px 0; border-bottom: 1px dotted var(--rule); align-items: baseline; }
.passport-list div:last-child { border-bottom: 0; }
.passport-list dt { font: 500 14px/1.35 var(--text); color: var(--ink-3); }
.passport-list dd { margin: 0; font: 400 1.18rem/1.3 var(--display); }
.passport-list dd b { font-weight: 700; }
.passport-note { margin-top: 18px; font-size: 13px; color: var(--ink-3); }

/* Рамка-лист для фото */
.plate { margin: 0; }
.plate-frame { position: relative; overflow: hidden; background: var(--sheet-3); box-shadow: var(--shadow); }
.plate-frame img { width: 100%; height: 100%; object-fit: cover; }
.plate figcaption { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; margin-top: 12px; font-size: 14px; line-height: 1.4; color: var(--ink-3); }
.on-pine .plate figcaption, .on-pine-deep .plate figcaption { color: var(--on-pine-2); }
.plate figcaption .plate-no { flex: none; }
.ratio-wide { aspect-ratio: 3 / 2; }
.ratio-tall { aspect-ratio: 4 / 5; }
.ratio-pano { aspect-ratio: 16 / 9; }

/* Атлас территории */
.atlas { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.atlas-map { position: relative; }
.atlas-sheet { background: var(--sheet); border: 1px solid var(--rule); padding: clamp(10px, 1.6vw, 18px); box-shadow: var(--shadow); }
.atlas-svg { width: 100%; height: auto; display: block; }
.atlas-svg .sea { fill: #cfe0e2; }
.atlas-svg .sea-line { fill: none; stroke: var(--sea); stroke-width: 1; opacity: 0.55; }
.atlas-svg .park { fill: #dbe5d3; }
.atlas-svg .path { fill: none; stroke: #b8ad95; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.atlas-svg .pine { fill: #7f9e6e; }
.atlas-svg .pine-rays { fill: none; stroke: var(--pine); stroke-width: 0.9; opacity: 0.7; }
.atlas-svg .legend-title { font: 400 15px var(--display); fill: var(--ink); }
.atlas-svg .body-legend { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.2; }
.atlas-svg .pool { fill: #9cc7d3; stroke: var(--sea); stroke-width: 1; }
.atlas-svg .court { fill: #a9bf9a; stroke: #fff; stroke-width: 1.2; }
.atlas-svg .draw { fill: none; stroke: var(--ink); stroke-width: 1.1; }
.atlas-svg .map-text { font: 500 12px var(--text); fill: var(--ink-3); letter-spacing: 0.04em; }
.atlas-svg .sea-text { font: 400 italic 18px var(--display); fill: var(--sea); }
.corps { cursor: pointer; outline: none; }
.corps .body { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.4; transition: fill 0.3s var(--ease); }
.corps .roof { fill: var(--roof); opacity: 0; transition: opacity 0.3s var(--ease); }
.corps .tag { font: 600 12.5px var(--text); fill: var(--ink); paint-order: stroke; stroke: var(--sheet); stroke-width: 4px; stroke-linejoin: round; }
.corps:hover .body, .corps:focus-visible .body { fill: #f7d9cf; }
.corps.is-active .body { fill: var(--roof); stroke: var(--roof-dark); }
.corps.is-active .tag { fill: var(--roof-dark); }
.corps:focus-visible .tag { text-decoration: underline; }
.atlas-note { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.atlas-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.atlas-legend span { display: inline-flex; align-items: center; gap: 8px; }
.atlas-legend i { display: inline-block; flex: none; }
.lg-corps { width: 14px; height: 12px; background: var(--sheet); border: 1.2px solid var(--ink); }
.lg-pine { width: 12px; height: 12px; border-radius: 50%; background: #7f9e6e; box-shadow: inset 0 0 0 1px rgba(30, 58, 44, 0.5); }
.lg-pool { width: 16px; height: 10px; border-radius: 2px; background: #9cc7d3; border: 1px solid var(--sea); }
.lg-court { width: 16px; height: 10px; background: #a9bf9a; border: 1px solid #fff; outline: 1px solid rgba(23, 37, 29, 0.2); }
.lg-path { width: 18px; height: 5px; border-radius: 3px; background: #b8ad95; }
.corps-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.corps-list button {
  border: 1px solid var(--rule); background: transparent; padding: 9px 14px; border-radius: 2px;
  font: 500 14px/1 var(--text); cursor: pointer; transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.corps-list button:hover { border-color: var(--ink); }
.corps-list button[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: var(--on-pine); }
.corps-panel { padding: 0; overflow: hidden; }
.corps-panel .plate-frame { box-shadow: none; aspect-ratio: 3 / 2; }
.corps-body { padding: clamp(22px, 2.6vw, 32px); }
.corps-body h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.05; margin-right: 58px; }
.corps-kind { margin-top: 8px; font: 500 14px/1.4 var(--text); color: #44663a; }
.corps-text { margin-top: 14px; color: var(--ink-2); }
.corps-panel img { transition: opacity 0.35s var(--ease), transform 0.6s var(--ease); }
.corps-panel.is-changing img { opacity: 0; transform: scale(1.02); }

/* Галерея видов */
.views-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(32px, 4vw, 52px); }
.gallery { position: relative; }
.gallery-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--pine-3); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); touch-action: pan-y; }
.gallery-frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s var(--ease), transform 0.9s var(--ease); }
.gallery-frame img.is-changing { opacity: 0; transform: scale(1.015); }
.gallery-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; }
.gallery-caption { font-size: 15px; line-height: 1.45; color: var(--on-pine-2); min-height: 2.9em; max-width: 62ch; }
.gallery-controls { display: flex; align-items: center; gap: 10px; flex: none; }
.gallery-counter { font: 500 14px/1 var(--text); font-variant-numeric: tabular-nums; min-width: 4.2em; text-align: center; }
.round-button {
  width: 48px; height: 48px; display: inline-grid; place-items: center; border-radius: 50%;
  border: 1px solid currentColor; background: transparent; cursor: pointer; transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.on-pine .round-button:hover, .on-pine-deep .round-button:hover { background: var(--on-pine); color: var(--pine); }
.round-button:hover { background: var(--ink); color: var(--sheet); }
.thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); gap: 8px; margin-top: 18px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.thumbs button { padding: 0; border: 0; background: none; cursor: pointer; aspect-ratio: 3 / 2; overflow: hidden; opacity: 0.55; outline-offset: 2px; transition: opacity 0.25s var(--ease); position: relative; }
.thumbs button::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow 0.25s var(--ease); }
.thumbs button:hover { opacity: 0.85; }
.thumbs button[aria-pressed="true"] { opacity: 1; }
.thumbs button[aria-pressed="true"]::after { box-shadow: inset 0 0 0 2px var(--on-pine); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Парк и территория */
.park-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.park-intro { grid-column: 1 / span 5; align-self: center; }
.park-list { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.park-list li { display: flex; gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--rule-soft); }
.park-list .park-key { flex: none; width: 2.2em; font: 700 15px/1 var(--display); color: var(--needle); font-variant-numeric: tabular-nums; }
.park-list svg.park-key { width: 22px; height: 22px; align-self: center; }
.park-a { grid-column: 7 / span 6; }
.park-b { grid-column: 1 / span 4; }
.park-c { grid-column: 5 / span 4; }
.park-d { grid-column: 9 / span 4; }

/* Без отделки */
.raw-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.raw-media { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(12px, 2vw, 22px); align-items: end; }
.raw-media .plate:last-child { margin-bottom: clamp(24px, 5vw, 64px); }
.raw-points { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule-pine); }
.raw-points li { padding: 14px 0; border-bottom: 1px solid var(--rule-pine); color: var(--on-pine-2); }
.raw-points b { color: var(--on-pine); font-weight: 600; }

/* Планировки */
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); margin-bottom: clamp(32px, 4vw, 48px); }
.price-card { padding: clamp(22px, 2.8vw, 34px); }
.price-card h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.1; margin-right: 56px; }
.price-meta { margin-top: 8px; color: var(--ink-3); font-size: 15px; }
.price-from { margin-top: 18px; font: 700 clamp(1.8rem, 3.2vw, 2.6rem)/1 var(--display); white-space: nowrap; }
.price-from small { font: 500 15px/1 var(--text); color: var(--ink-3); margin-right: 6px; }
.plans-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.plans-tabs button { border: 1px solid var(--rule); background: transparent; padding: 11px 16px; border-radius: 2px; font: 500 15px/1.1 var(--text); cursor: pointer; text-align: left; transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease); }
.plans-tabs button:hover { border-color: var(--ink); }
.plans-tabs button[aria-selected="true"] { background: var(--pine); color: var(--on-pine); border-color: var(--pine); }
.plans-tabs small { display: block; margin-top: 4px; font-size: 13px; opacity: 0.8; }
.plan-panel { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.plan-panel[hidden] { display: none; }
.plan-sheet { background: #fff; border: 1px solid var(--rule); padding: clamp(16px, 3vw, 36px); display: flex; gap: clamp(12px, 2vw, 28px); align-items: center; justify-content: center; box-shadow: var(--shadow); min-height: 360px; }
.plan-sheet figure { margin: 0; display: grid; gap: 10px; justify-items: center; flex: 1 1 0; min-width: 0; }
.plan-sheet img { width: auto; max-width: 100%; max-height: 440px; object-fit: contain; mix-blend-mode: multiply; }
.plan-sheet figcaption { font: 500 13px/1 var(--text); color: var(--ink-3); letter-spacing: 0.04em; }
.plan-spec { padding: clamp(22px, 2.6vw, 30px); align-self: start; }
.plan-spec h3 { font-size: 1.6rem; line-height: 1.1; margin-right: 56px; }
.plan-spec dl { margin: 18px 0 22px; }
.plan-spec dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dotted var(--rule); }
.plan-spec dt { color: var(--ink-3); font-size: 15px; }
.plan-spec dd { margin: 0; font: 700 1.05rem/1.3 var(--display); text-align: right; }
.plans-note { margin-top: 22px; font-size: 14px; color: var(--ink-3); max-width: 80ch; }
.reveal-ready .plan-draw:not(.is-drawn) { clip-path: inset(0 100% 0 0); }
.reveal-ready .plan-draw.is-drawn { clip-path: inset(0 0 0 0); transition: clip-path 1.6s var(--ease); }

/* Покупка */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule-pine); }
.steps li { padding: 28px clamp(16px, 2.4vw, 32px) 28px 0; border-right: 1px solid var(--rule-pine); }
.steps li + li { padding-left: clamp(16px, 2.4vw, 32px); }
.steps li:last-child { border-right: 0; }
.step-no { font: 400 3rem/1 var(--display); color: var(--on-pine-2); }
.steps h3 { margin-top: 18px; font-size: 1.6rem; line-height: 1.1; }
.steps p { margin-top: 10px; color: var(--on-pine-2); }
.pay { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--rule-pine); }
.pay h3 { font-size: 1.6rem; line-height: 1.1; }
.pay p { margin-top: 8px; color: var(--on-pine-2); max-width: 62ch; }

/* Вопросы */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); }
.faq-list { border-top: 1px solid var(--rule); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; font: 400 1.32rem/1.25 var(--display); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { transition: transform 0.3s var(--ease); }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 22px; color: var(--ink-2); max-width: 64ch; }

/* Заявка */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 640px; }
.contact-media { position: relative; overflow: hidden; }
.contact-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-panel { padding: clamp(56px, 7vw, 104px) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.contact-panel .lead { margin-bottom: 28px; }
.lead-form { display: grid; gap: 16px; max-width: 520px; }
.field { display: grid; gap: 8px; }
.field label { font: 500 14px/1.2 var(--text); }
.field input {
  width: 100%; min-height: 54px; padding: 0 16px; border-radius: 2px;
  border: 1px solid var(--rule); background: #fff; color: var(--ink); font: 400 17px/1 var(--text);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input::placeholder { color: #626f66; }
.field input:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(92, 127, 78, 0.28); }
.on-pine .field input { border-color: transparent; }
.field-help { font-size: 13px; color: var(--ink-3); }
.on-pine .field-help { color: var(--on-pine-2); }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.checkbox-label { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.checkbox-label input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--roof); }
.on-pine .checkbox-label { color: var(--on-pine-2); }
.on-pine .checkbox-label a { color: var(--on-pine); }
.form-status { min-height: 1.4em; font-size: 15px; }
.form-status[data-state="success"] { color: #3f6235; font-weight: 600; }
.form-status[data-state="error"] { color: var(--roof); font-weight: 600; }
.on-pine .form-status[data-state="success"] { color: #b9e0a5; }
.on-pine .form-status[data-state="error"] { color: #f4b4a2; }
.contact-email { margin-top: 18px; font-size: 14px; color: var(--on-pine-2); }

/* Подвал */
.site-footer { background: var(--pine-3); color: var(--on-pine-2); padding: clamp(48px, 6vw, 80px) 0 32px; font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--rule-pine); }
.footer-top .brand { color: var(--on-pine); }
.footer-top p { max-width: 36ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 24px 0; }
.footer-links a { color: var(--on-pine); }
.footer-legal { font-size: 13px; line-height: 1.6; max-width: 110ch; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; font-size: 13px; }
.back-top { display: inline-flex; gap: 8px; align-items: center; color: var(--on-pine); }
.back-top .icon { width: 16px; height: 16px; }

/* Диалоги */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(10, 24, 17, 0.62); backdrop-filter: blur(3px); }
.lead-dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; background: var(--sheet); border: 1px solid var(--ink); outline: 1px solid var(--rule); outline-offset: -7px; padding: clamp(28px, 4vw, 44px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.lead-dialog h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.05; margin-right: 52px; }
.dialog-intro { margin: 12px 0 24px; color: var(--ink-2); }
.dialog-close { position: absolute; top: 16px; right: 16px; color: var(--ink); }
.lead-dialog[open] { animation: dialog-in 0.4s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px); } }

/* Плашка cookie */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; max-width: 560px; margin-left: auto; display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; background: var(--pine-3); color: var(--on-pine); font-size: 14px; line-height: 1.4; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6); }
.cookie-banner[hidden] { display: none; }
.cookie-banner a { color: var(--on-pine); }
.cookie-primary { flex: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--on-pine); background: transparent; color: var(--on-pine); border-radius: 2px; cursor: pointer; font-weight: 600; }
.cookie-primary:hover { background: var(--on-pine); color: var(--pine); }
.noscript-note { position: fixed; bottom: 0; left: 0; right: 0; padding: 12px; background: var(--roof); color: #fff; text-align: center; z-index: 500; }
.noscript-note a { color: #fff; }

/* Анимации: появление по прокрутке. Без JS и при reduced-motion всё видно сразу */
.reveal-ready [data-reveal="title"] { clip-path: inset(0 0 100% 0); transform: translateY(14px); }
.reveal-ready [data-reveal="title"].is-visible { clip-path: inset(0 0 -10% 0); transform: none; transition: clip-path 1s var(--ease), transform 1s var(--ease); }
.reveal-ready [data-reveal="photo"] { opacity: 0; }
.reveal-ready [data-reveal="photo"] img { transform: scale(1.06); }
.reveal-ready [data-reveal="photo"].is-visible { opacity: 1; transition: opacity 0.9s var(--ease); }
.reveal-ready [data-reveal="photo"].is-visible img { transform: scale(1); transition: transform 1.6s var(--ease); }
.reveal-ready [data-reveal="fade"] { opacity: 0; transform: translateY(18px); }
.reveal-ready [data-reveal="fade"].is-visible { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-ready [data-stagger] > * { opacity: 0; transform: translateY(16px); }
.reveal-ready [data-stagger].is-visible > * { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.atlas-svg .draw-line { stroke-dasharray: var(--len, 2000); stroke-dashoffset: 0; }
.reveal-ready .atlas-map:not(.is-visible) .draw-line { stroke-dashoffset: var(--len, 2000); }
.reveal-ready .atlas-map.is-visible .draw-line { transition: stroke-dashoffset 2.2s var(--ease); }
.reveal-ready .atlas-map:not(.is-visible) .corps { opacity: 0; }
.reveal-ready .atlas-map.is-visible .corps { opacity: 1; transition: opacity 0.6s var(--ease) calc(0.5s + var(--i, 0) * 120ms); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Адаптив */
@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-block; }
  .atlas { grid-template-columns: 1fr; }
  .corps-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .corps-panel .plate-frame { aspect-ratio: auto; min-height: 100%; }
  .park-intro { grid-column: 1 / -1; }
  .park-a { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .desktop-cta { display: none; }
  .passport-grid, .raw-grid, .faq-grid, .contact, .plan-panel { grid-template-columns: 1fr; }
  .contact-media { min-height: 300px; }
  .price-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--rule-pine); }
  .pay { grid-template-columns: 1fr; }
  .views-head { flex-direction: column; align-items: start; }
  .plan-sheet { min-height: 0; }
}
@media (max-width: 640px) {
  .hero { min-height: max(600px, 100svh); }
  .hero-media img { object-position: 62% 50%; }
  .hero-inner { padding: 96px 12px 12px; }
  .hero-label { padding: 26px 22px 24px; }
  .hero-label h1 { font-size: clamp(2.6rem, 12.5vw, 3.4rem); margin-right: 40px; white-space: normal; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts div { margin-right: 14px; padding-right: 14px; }
  .hero-facts div:nth-child(2) { border-right: 0; margin-right: 0; padding-right: 0; }
  .hero-facts div:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--rule-soft); }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-caption { text-align: left; max-width: none; margin-bottom: 10px; font-size: 12px; }
  .hero-caption b { display: inline; font-size: 13px; margin-right: 6px; }
  .corps-panel { display: block; }
  .corps-panel .plate-frame { aspect-ratio: 3 / 2; }
  .park-a, .park-b, .park-c, .park-d { grid-column: 1 / -1; }
  .park-c, .park-d { display: none; }
  .plans-tabs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .plans-tabs button { min-width: 0; }
  .hero-inner { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 0; }
  .hero-inner .hero-label { flex: none; }
  .passport-list div { grid-template-columns: 1fr; gap: 4px; }
  .gallery-frame { aspect-ratio: 4 / 3; }
  .thumbs { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .gallery-bar { flex-direction: column; align-items: stretch; }
  .gallery-controls { justify-content: space-between; }
  .plan-sheet { flex-direction: column; }
  .plan-sheet img { max-height: 380px; }
  .raw-media { grid-template-columns: 1fr; }
  .raw-media .plate:last-child { margin-bottom: 0; }
  .brand-place { display: none; }
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; }
  .round-button { width: 46px; height: 46px; }
}
