/* Дом на воде — лендинг. Токены по DESIGN.md (Samara), шрифт Regola заменён на Manrope: в Regola нет кириллицы */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --sky: #0096f7;
  --sky-hover: #0084da;
  --orange: #ff4000;
  --ink: #000;
  --white: #fff;
  --parchment: #fdfdf7;
  --parchment-2: #f7f7f0;
  --sand: #f5f2de;
  --driftwood: #e7e3e1;
  --ash: #d3d3d3;
  --stone: #999;
  --graphite: #666;
  --evergreen: #375033;
  --line: rgba(0, 0, 0, 0.1);

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 24px;

  --shadow-subtle: rgba(0, 0, 0, 0.12) 0 0.5px 2px 0;
  --shadow-sm: rgba(0, 0, 0, 0.2) 0 2px 4px 0;
  --shadow-md: rgba(0, 0, 0, 0.08) 0 2px 10px 0;

  --page: 1280px;
  --gutter: clamp(16px, 4vw, 42px);
  --section: clamp(80px, 10vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  font-feature-settings: "lnum", "tnum";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 300; text-wrap: balance; }

.wrap { width: 100%; max-width: calc(var(--page) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0 0; }
main > .section:last-of-type { padding-bottom: var(--section); }

/* Типографика */
.display { font-size: clamp(40px, 6.6vw, 88px); line-height: 0.94; letter-spacing: -0.045em; font-weight: 300; }
.h2 { font-size: clamp(34px, 4.8vw, 60px); line-height: 1; letter-spacing: -0.04em; font-weight: 300; }
.h3 { font-size: clamp(23px, 2.4vw, 30px); line-height: 1.14; letter-spacing: -0.03em; font-weight: 300; }
.lead { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.3; letter-spacing: -0.02em; }
.eyebrow { font-size: 14px; line-height: 1.5; letter-spacing: -0.02em; color: var(--graphite); margin: 0 0 18px; }
.muted { color: var(--graphite); }
.small { font-size: 14px; line-height: 1.5; letter-spacing: -0.02em; }
.xsmall { font-size: 12px; line-height: 1.5; color: var(--graphite); }
.section-head { max-width: 860px; margin-bottom: clamp(32px, 4vw, 54px); }
.section-head .h2 + p { margin-top: 24px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 22px;
  border: 0; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .2s, box-shadow .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sky); color: var(--white); box-shadow: var(--shadow-subtle); }
.btn-primary:hover { background: var(--sky-hover); box-shadow: var(--shadow-md); }
.btn-ghost { background: rgba(0, 0, 0, 0.04); color: var(--ink); border-radius: var(--radius-pill); }
.btn-ghost:hover { background: rgba(0, 0, 0, 0.08); }
.btn-drift { background: var(--driftwood); color: var(--ink); }
.btn-drift:hover { background: #ddd8d5; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }

.icon-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: rgba(0, 0, 0, 0.04); text-decoration: none; transition: background-color .2s;
}
.icon-btn:hover { background: rgba(0, 0, 0, 0.09); }
.icon-btn svg { width: 22px; height: 22px; }

/* Шапка */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--white);
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; font-weight: 500; letter-spacing: -0.03em; }
.logo svg { width: 28px; height: 28px; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { text-decoration: none; font-size: 15px; font-weight: 500; }
.header.is-solid { background: rgba(253, 253, 247, 0.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); color: var(--ink); box-shadow: var(--shadow-subtle); }
.header .btn-sm { background: var(--sky); color: var(--white); }
.header .header-tg { width: 40px; height: 40px; background: rgba(255,255,255,.14); color: inherit; }
.header .header-tg:hover { background: rgba(255,255,255,.24); }
.header.is-solid .header-tg { background: rgba(0,0,0,.05); }
.header.is-solid .header-tg:hover { background: rgba(0,0,0,.1); }
.header .header-tg svg { width: 20px; height: 20px; }
@media (max-width: 720px) { .header-phone, .header .btn-sm { display: none; } }

/* Первый экран */
.hero { background: var(--ink); color: var(--white); }
.hero-media { position: relative; min-height: min(92svh, 900px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media img { object-position: 62% 50%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 70%),
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%);
}
@media (max-width: 720px) {
  .hero-media::after { background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.85) 100%); }
}
.hero-title { position: relative; z-index: 1; padding-bottom: clamp(28px, 4vw, 54px); padding-top: 120px; }
.hero-title .display { max-width: 15ch; }
.hero-title .lead { max-width: 640px; margin-top: 22px; color: rgba(255,255,255,.88); }
.hero-where { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; margin-bottom: 18px; color: rgba(255,255,255,.85); }
.hero-where::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgba(0,150,247,.25); }

.hero-panel { padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 5vw, 64px); }
.hero-grid { display: grid; gap: 32px 54px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.price { font-size: clamp(44px, 5.4vw, 64px); line-height: 1; letter-spacing: -0.045em; font-weight: 300; }
.price-note { margin-top: 12px; color: rgba(255,255,255,.8); font-size: 16px; }
.price-note + .price-note { margin-top: 6px; color: rgba(255,255,255,.55); font-size: 14px; }
.offer-pill {
  display: inline-flex; align-items: flex-start; gap: 10px; margin-top: 22px;
  padding: 10px 16px; border-radius: var(--radius); background: var(--orange); color: var(--white);
  font-size: 15px; line-height: 1.35; font-weight: 500;
}
.offer-pill svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.facts li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: 17px; line-height: 1.35; display: flex; gap: 14px; }
.facts li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.facts b { font-weight: 400; color: rgba(255,255,255,.5); font-size: 14px; min-width: 22px; padding-top: 2px; }
.seller-line { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.62); }
.seller-line a { color: rgba(255,255,255,.85); }

.switch { margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: flex-start; }
.switch-q { font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.02em; font-weight: 400; }
/* Две кнопки с белой обводкой, высотой как основные: пока выбор не сделан, обе выглядят нажимаемыми */
.seg { display: inline-flex; gap: 8px; }
.seg button { min-height: 52px; border: 1.5px solid rgba(255,255,255,.75); background: transparent; color: var(--white); padding: 12px 26px; border-radius: 26px; cursor: pointer; font-size: 16px; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.seg button:hover { background: rgba(255,255,255,.14); border-color: var(--white); }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); border-color: var(--white); }
.hero-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .btn-ghost { background: rgba(255,255,255,.1); color: var(--white); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.18); }
.hero .icon-btn { background: rgba(255,255,255,.1); color: var(--white); }
.hero .icon-btn:hover { background: rgba(255,255,255,.18); }
.hero-micro { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.6); }
@media (max-width: 560px) {
  .hero-cta .btn { width: 100%; }
  .seg { width: 100%; } .seg button { flex: 1; padding: 12px 8px; }
}

/* Режимы "для себя / для бизнеса" */
main { display: flex; flex-direction: column; }
.only-biz { display: none !important; }
[data-mode="biz"] .only-biz { display: revert !important; }
[data-mode="biz"] .only-self { display: none !important; }
[data-mode="biz"] #newyear { display: none; }
[data-mode="biz"] #gallery { order: 1 !important; }
[data-mode="biz"] #business { order: 2 !important; }
[data-mode="biz"] #docs { order: 3 !important; }
[data-mode="biz"] .after-biz { order: 4 !important; }
.hide-season { display: none !important; }

/* Галерея */
.gallery { position: relative; }
.gallery-track {
  position: relative; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: 0 var(--gutter) 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { display: none; }
/* Мышь: колесо и перетаскивание, прилипание к кадру мешало бы плавной прокрутке */
@media (pointer: fine) {
  .gallery-track { scroll-snap-type: none; cursor: grab; }
  .gallery-track.is-drag { cursor: grabbing; user-select: none; }
  .gallery-track.is-drag * { pointer-events: none; }
  .gallery-track img { -webkit-user-drag: none; }
}
.g-item { flex: none; scroll-snap-align: start; margin: 0; }
.g-item picture { display: block; }
.g-item button { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.g-item img, .g-item video { height: clamp(360px, 44vw, 560px); width: auto; object-fit: cover; border-radius: var(--radius); background: var(--driftwood); }
.g-item.land img { aspect-ratio: 16 / 9; }
.g-item.port img, .g-item.port video { aspect-ratio: 3 / 4; }
.g-item.vert video { aspect-ratio: 9 / 16; }
.g-item figcaption { margin-top: 10px; font-size: 14px; color: var(--graphite); }
.g-video { position: relative; }
.g-video .play {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: rgba(0,0,0,.18); cursor: pointer; border-radius: var(--radius); color: var(--white);
}
.g-video .play span { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--ink); box-shadow: var(--shadow-md); }
.g-video.is-playing .play { display: none; }
.gallery-nav { display: flex; gap: 8px; }
.gallery-nav button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.05); cursor: pointer; display: grid; place-items: center; }
.gallery-nav button:hover { background: rgba(0,0,0,.1); }
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
@media (max-width: 720px) { .gallery-nav { display: none; } .g-item img, .g-item video { height: min(64vh, 520px, 107vw); } .g-item.land img { aspect-ratio: 3 / 4; object-position: 38% 50%; } }
.gallery-foot { margin-top: 32px; }

/* Сетки */
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.wide-left { grid-template-columns: 1.1fr .9fr; } }
.photo { border-radius: var(--radius); overflow: hidden; background: var(--driftwood); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.photo-pair .photo:first-child { aspect-ratio: 3 / 4; }
.photo-pair .photo:last-child { aspect-ratio: 3 / 4.6; }
.dots { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; padding: 0; list-style: none; }
.dots li { padding: 8px 14px; border-radius: var(--radius-pill); background: rgba(0,0,0,.04); font-size: 14px; }

/* Карточки */
.card { background: var(--parchment-2); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; }
.card-sand { background: var(--sand); border-radius: var(--radius-lg); box-shadow: var(--shadow-subtle); padding: clamp(24px, 3.4vw, 36px); }

/* Новый год: ночная подложка на всю ширину */
.ny-section { --night: #06101d; --warm: #ffc867; position: relative; margin-top: var(--section); background: var(--night); color: var(--white); overflow: hidden; overflow: clip; }
.ny-garland { position: absolute; inset: 0 0 auto; height: 26px; z-index: 3; pointer-events: none;
  background:
    radial-gradient(circle at 50% 60%, #ffd98a 0 3px, rgba(255,200,103,.55) 4px, transparent 9px) 0 0 / 46px 26px repeat-x,
    radial-gradient(circle at 50% 30%, #ffb0a0 0 2.5px, rgba(255,120,90,.45) 3.5px, transparent 8px) 23px 0 / 46px 26px repeat-x;
  animation: ny-twinkle 2.4s ease-in-out infinite alternate; }
.ny-garland::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, #fff3cf 0 2px, rgba(255,230,160,.5) 3px, transparent 8px) 11px 0 / 46px 26px repeat-x; animation: ny-twinkle 1.7s ease-in-out infinite alternate-reverse; }
@keyframes ny-twinkle { from { opacity: .45; } to { opacity: 1; } }
.ny-hero { position: relative; min-height: min(86svh, 820px); display: flex; align-items: flex-end; }
.ny-hero picture, .ny-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ny-hero img { object-position: 38% 55%; }
.ny-hero::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6,16,29,.55) 0%, rgba(6,16,29,0) 22%, rgba(6,16,29,0) 45%, var(--night) 100%),
              linear-gradient(90deg, rgba(6,16,29,.6) 0%, rgba(6,16,29,0) 55%); }
.ny-snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.ny-title { position: relative; z-index: 3; padding-top: 140px; padding-bottom: 8px; }
.ny-title .display { max-width: 13ch; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.ny-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 15px; color: var(--warm); letter-spacing: 0; }
.ny-star { font-size: 18px; animation: ny-twinkle 1.6s ease-in-out infinite alternate; }
.ny-body { position: relative; z-index: 3; display: grid; gap: 36px; padding-top: 32px; }
@media (min-width: 960px) { .ny-body { grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: start; } }
.ny-text .lead { color: rgba(255,255,255,.86); margin-bottom: 24px; }
.ny-gift { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; margin: 0 0 28px; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.75); font-size: 16px; }
.ny-gift svg { flex: none; width: 22px; height: 22px; color: var(--warm); margin-top: 1px; }
.ny-count { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 959px) { .ny-count { order: -1; } }
.ny-counter { border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: 22px 20px 20px; background: rgba(255,255,255,.04); }
.ny-counter b { display: block; font-weight: 300; font-size: clamp(54px, 6vw, 84px); line-height: .9; letter-spacing: -0.05em; color: var(--warm); text-shadow: 0 0 24px rgba(255,200,103,.35); }
.ny-counter span { display: block; margin-top: 12px; font-size: 14px; line-height: 1.4; color: rgba(255,255,255,.72); }
.ny-counter.js-offer b { color: #ff8a5c; text-shadow: 0 0 24px rgba(255,64,0,.35); }
.ny-strip { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 48px; padding-bottom: var(--section); }
.ny-strip .photo { aspect-ratio: 4 / 5; background: #0d1a2b; }
@media (max-width: 720px) {
  .ny-hero { min-height: 560px; }
  .ny-hero img { object-position: 30% 50%; }
  .ny-strip { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
  .ny-strip::-webkit-scrollbar { display: none; }
  .ny-strip .photo { flex: none; width: 70vw; scroll-snap-align: start; }
}
/* узкое окно с мышью: лента листается колесом и перетаскиванием, как галерея */
@media (pointer: fine) and (max-width: 720px) {
  .ny-strip { scroll-snap-type: none; cursor: grab; }
  .ny-strip.is-drag { cursor: grabbing; user-select: none; }
  .ny-strip.is-drag * { pointer-events: none; }
  .ny-strip img { -webkit-user-drag: none; }
}
@media (prefers-reduced-motion: reduce) { .ny-garland, .ny-garland::before, .ny-star { animation: none; } .ny-snow { display: none; } }

/* Крыша */
.roof-photo { aspect-ratio: 16 / 8; border-radius: var(--radius); overflow: hidden; }
.roof-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) { .roof-photo { aspect-ratio: 4 / 3; } }
.roof-grid { display: grid; gap: 32px; margin-top: 36px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.stat { border-top: 1px solid var(--ink); padding-top: 12px; }
.stat b { display: block; font-weight: 300; font-size: clamp(30px, 3.4vw, 43px); letter-spacing: -0.04em; line-height: 1; }
.stat span { font-size: 14px; color: var(--graphite); }
.roof-sum { margin: 24px 0 0; }
/* На широком экране цифры идут строками во всю высоту фото палубы, чтобы под текстом не оставалось пустоты */
@media (min-width: 900px) {
  .roof-grid { grid-template-columns: 1.3fr .7fr; align-items: stretch; }
  .roof-text { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
  .roof-text .lead, .roof-text .roof-sum { margin: 0; }
  .roof-text .stat-row { grid-template-columns: 1fr; gap: 0; margin-top: 0; }
  .roof-text .stat { display: flex; align-items: baseline; gap: 32px; padding: 22px 0; }
  .roof-text .stat:last-child { border-bottom: 1px solid var(--ink); }
  .roof-text .stat b { font-size: clamp(48px, 5vw, 68px); min-width: 3.6em; }
  .roof-text .stat span { font-size: 19px; }
}

/* Показ */
.dates { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 24px; }
.dates span { padding: 10px 16px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-subtle); font-size: 15px; }
.offer-line { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--ink); margin: 20px 0 28px; }
.offer-line::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); margin-top: 7px; }
.show-photo { aspect-ratio: 4 / 5; }

/* Планировка: заголовок с моделью в строке */
.inline-render { display: inline-block; vertical-align: middle; width: 2.3em; height: 1em; margin: -0.15em 0.1em 0; position: relative; }
.inline-render img { position: absolute; left: 50%; top: 50%; width: 2.1em; max-width: none; transform: translate(-50%, -50%); }
.plan-layout { display: grid; gap: 24px; }
@media (min-width: 1000px) { .plan-layout { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.plan-sheet { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-subtle); padding: clamp(12px, 2vw, 28px); }
.plan-sheet img { width: 100%; height: auto; }
.plan-legend { list-style: none; margin: 0; padding: 0; }
.plan-legend li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 17px; }
.plan-legend li span:last-child { color: var(--graphite); white-space: nowrap; }
.rooms { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 40px; }
.room { background: var(--parchment-2); border-radius: var(--radius); box-shadow: var(--shadow-subtle); overflow: hidden; }
.room .photo { border-radius: 0; aspect-ratio: 4 / 3.4; }
.room div:last-child { padding: 16px 18px 20px; }
.room h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 6px; }
.room p { font-size: 15px; line-height: 1.45; color: var(--graphite); margin: 0; }
.plan-note { margin-top: 28px; font-size: clamp(19px, 1.9vw, 23px); letter-spacing: -0.02em; }

/* Цена */
.seller { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .seller { grid-template-columns: 180px 1fr; } }
.avatar { width: 120px; height: 120px; border-radius: 50%; background: var(--evergreen); color: var(--sand); display: grid; place-items: center; font-size: 48px; font-weight: 300; letter-spacing: -0.04em; }
.avatar.sm { width: 64px; height: 64px; font-size: 26px; }
img.avatar { object-fit: cover; }
.quote { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.35; letter-spacing: -0.02em; margin: 0 0 16px; }
.seller-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--graphite); }
.seller-meta a { color: var(--sky); text-decoration: none; }
.rating { color: var(--ink); }

.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th { text-align: left; font-weight: 400; font-size: 14px; color: var(--graphite); padding: 12px 16px 12px 0; border-bottom: 1px solid var(--ink); }
.table td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr.is-this td { background: var(--sand); font-weight: 500; }
.table tr.is-this td:first-child { border-radius: var(--radius) 0 0 var(--radius); padding-left: 16px; }
.table tr.is-this td:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.table-wrap { overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.table-wrap .table { min-width: 720px; }
.caption { margin-top: 12px; font-size: 12px; color: var(--graphite); }
@media (max-width: 720px) {
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; }
  .table-stack { min-width: 0 !important; }
  .table-stack tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .table-stack tr.is-this { background: var(--sand); border-radius: var(--radius); padding: 16px; border: 0; margin-bottom: 8px; }
  .table-stack tr.is-this td { background: none; padding-left: 0 !important; }
  .table-stack td { border: 0; padding: 2px 0; }
  .table-stack td:first-child { font-size: 18px; margin-bottom: 6px; }
  .table-stack td[data-l]::before { content: attr(data-l) ": "; color: var(--graphite); font-weight: 400; }
}
.punch { margin-top: 36px; font-size: clamp(23px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.03em; font-weight: 300; max-width: 900px; }
.punch b { font-weight: 500; }

/* Стоимость владения */
.offer-card { background: var(--ink); color: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 36px); display: grid; gap: 12px 32px; align-items: center; }
@media (min-width: 900px) { .offer-card { grid-template-columns: auto 1fr; } }
.offer-card .tag { justify-self: start; display: inline-block; padding: 6px 12px; border-radius: var(--radius); background: var(--orange); font-size: 14px; font-weight: 500; }
.offer-card p { margin: 0; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.35; }
.offer-card strong { font-weight: 500; }
.rows { display: flex; flex-direction: column; }
.rows .row { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); align-items: baseline; }
.rows .row:last-child { border-bottom: 1px solid var(--line); }
.rows .row b { font-weight: 300; font-size: clamp(23px, 2.4vw, 30px); letter-spacing: -0.03em; white-space: nowrap; }
.rows .row.hl b { color: var(--evergreen); font-weight: 400; }
[data-mode="biz"] .rows .row.own { order: -1; }
.cost-grid { display: grid; gap: 40px; margin-top: 40px; }
@media (min-width: 900px) { .cost-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.cost-grid h3 { margin-bottom: 18px; }

/* Конструкция */
.spec { list-style: none; margin: 0; padding: 0; counter-reset: sp; }
.spec li { counter-increment: sp; display: grid; grid-template-columns: 48px 1fr; padding: 16px 0; border-top: 1px solid var(--line); font-size: 17px; }
.spec li:last-child { border-bottom: 1px solid var(--line); }
.spec li::before { content: counter(sp, decimal-leading-zero); font-size: 14px; color: var(--graphite); padding-top: 3px; }
.winter-strip { display: grid; gap: 12px; grid-template-columns: 1.4fr 1fr; margin-top: 40px; }
.winter-strip .photo { aspect-ratio: 4 / 3; }
.winter-strip .photo:first-child { grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 720px) { .winter-strip { grid-template-columns: 1fr; } .winter-strip .photo:first-child { aspect-ratio: 4 / 3; grid-row: auto; } }

/* Документы и схема воды */
.water-map { background: var(--sand); border-radius: var(--radius-lg); padding: clamp(16px, 2.6vw, 32px); box-shadow: var(--shadow-subtle); }
.water-map svg { width: 100%; height: auto; }
.water-map .legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-size: 13px; color: var(--graphite); }
.water-map .legend i { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin-right: 6px; border-radius: 2px; }

/* Бизнес */
.biz { border-radius: var(--radius-lg); background: var(--parchment-2); box-shadow: var(--shadow-subtle); }
.biz > summary { list-style: none; cursor: pointer; padding: clamp(24px, 3vw, 36px); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.biz > summary::-webkit-details-marker { display: none; }
.biz > summary .plus { flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.05); display: grid; place-items: center; transition: transform .25s; }
.biz[open] > summary .plus { transform: rotate(45deg); }
.biz-body { padding: 0 clamp(24px, 3vw, 36px) clamp(24px, 3vw, 36px); }
[data-mode="biz"] .biz { background: transparent; box-shadow: none; }
[data-mode="biz"] .biz > summary { padding: 0 0 32px; pointer-events: none; }
[data-mode="biz"] .biz > summary .plus { display: none; }
[data-mode="biz"] .biz-body { padding: 0; }
.biz-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .biz-grid { grid-template-columns: 1fr 1fr; gap: 54px; } }
.scen { display: grid; gap: 12px; }
.scen .card { box-shadow: var(--shadow-subtle); }
.scen .card h3 { font-size: 18px; font-weight: 500; margin-bottom: 6px; letter-spacing: -0.02em; }
.scen .card p { margin: 0; font-size: 15px; color: var(--graphite); }
.big-zero { font-size: clamp(60px, 8vw, 96px); line-height: .9; letter-spacing: -0.05em; font-weight: 300; }

/* Вопросы */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 56px 22px 0; position: relative; font-size: clamp(19px, 1.9vw, 23px); letter-spacing: -0.02em; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { max-width: 760px; color: var(--graphite); font-size: 17px; margin: -6px 0 24px; }

/* Форма */
.form-card { display: grid; gap: clamp(28px, 4vw, 54px); }
@media (min-width: 960px) { .form-card { grid-template-columns: 1.1fr .9fr; } }
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; color: var(--graphite); }
.input { width: 100%; background: rgba(0,0,0,.03); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; font-size: 17px; outline: none; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.input::placeholder { color: var(--stone); }
.input:focus { border-color: var(--sky); background: var(--white); box-shadow: 0 0 0 3px rgba(0,150,247,.15); }
.input[aria-invalid="true"] { border-color: var(--orange); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--graphite); line-height: 1.45; margin-top: 4px; }
.check input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--sky); }
.check a { color: var(--ink); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; margin-top: 4px; }
.form-error { color: var(--orange); font-size: 14px; min-height: 0; margin: 0; }
.form-done { display: none; }
.form.is-done > *:not(.form-done) { display: none; }
.form.is-done .form-done { display: block; }
.form-done .h3 { margin-bottom: 12px; }
.contact-side { display: grid; gap: 20px; align-content: start; }
.contact-person { display: flex; gap: 16px; align-items: center; }
.contact-person b { display: block; font-weight: 500; }
.contact-phone { font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.04em; font-weight: 300; text-decoration: none; }

/* Модальное окно */
dialog.modal { border: 0; padding: 0; border-radius: var(--radius-lg); background: var(--parchment); width: min(480px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); color: var(--ink); }
dialog.modal::backdrop { background: rgba(0,0,0,.55); }
.modal-inner { padding: clamp(24px, 4vw, 36px); position: relative; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0,0,0,.05); cursor: pointer; font-size: 20px; line-height: 1; }
.modal .h3 { padding-right: 40px; margin-bottom: 8px; }
.modal .muted { font-size: 15px; margin-bottom: 20px; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
dialog.lightbox::backdrop { background: rgba(0,0,0,.9); }
dialog.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: var(--radius); }
dialog.lightbox .modal-close { background: rgba(255,255,255,.9); }

/* Подвал */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 54px 0 110px; font-size: 14px; }
.footer .wrap { display: grid; gap: 24px; }
@media (min-width: 900px) { .footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } .footer { padding-bottom: 54px; } }
.footer b { display: block; color: var(--white); font-weight: 500; margin-bottom: 6px; }
.footer a { color: rgba(255,255,255,.9); }

/* Плавающая панель на мобильном */
.dock { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; gap: 8px; padding: 8px; border-radius: 18px; background: rgba(253,253,247,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 24px rgba(0,0,0,.18); transform: translateY(140%); transition: transform .3s; }
.dock.is-on { transform: none; }
.dock .btn { flex: 1; min-height: 48px; }
.dock .icon-btn { width: 48px; height: 48px; }
@media (min-width: 900px) { .dock { display: none; } }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
