:root {
    /* Палитра «Утро у реки» — светлая тема */
    --pine-night: #14201a;
    --pine-deep: #1d2b24;
    --moss: #4a6a58;
    --larch: #c9924e;        /* мёд лиственницы — единственный акцент */
    --larch-soft: #e0b97f;
    --birch: #eceee7;         /* берёста / тёплый туман */
    --birch-2: #e2e5dc;
    --ink: #17211c;

    /* Единая тёмная тема для всех устройств («ночной бор») — по решению заказчика 14.09.2026 */
    --bg: #101915;
    --bg-2: #15201a;
    --surface: #1a251f;
    --text: #ece9df;
    --text-2: rgba(236, 233, 223, 0.64);
    --text-3: rgba(236, 233, 223, 0.6);
    --line: rgba(236, 233, 223, 0.13);
    --line-strong: rgba(236, 233, 223, 0.3);
    --accent: var(--larch-soft);
    --accent-ink: var(--larch-soft);

    /* Тёмные блоки (хиро, дорога) не зависят от темы — это «ночной бор» */
    --dark-bg: var(--pine-night);
    --dark-bg-2: var(--pine-deep);
    --dark-text: #ece9df;
    --dark-text-2: rgba(236, 233, 223, 0.62);
    --dark-text-3: rgba(236, 233, 223, 0.6);
    --dark-line: rgba(236, 233, 223, 0.14);

    --font-display: 'Prata', 'Times New Roman', Georgia, serif;
    --font-body: 'Golos Text', 'Segoe UI', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
    --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);      /* iOS-like drawer curve — меню */

    --gutter: clamp(20px, 5vw, 72px);
    --measure: 62ch;
    color-scheme: dark;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #101915;
      --bg-2: #15201a;
      --surface: #1a251f;
      --text: #ece9df;
      --text-2: rgba(236, 233, 223, 0.64);
      --text-3: rgba(236, 233, 223, 0.6);
      --line: rgba(236, 233, 223, 0.13);
      --line-strong: rgba(236, 233, 223, 0.3);
      --accent: var(--larch-soft);
      --accent-ink: var(--larch-soft);
      color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --bg: #101915;
    --bg-2: #15201a;
    --surface: #1a251f;
    --text: #ece9df;
    --text-2: rgba(236, 233, 223, 0.64);
    --text-3: rgba(236, 233, 223, 0.6);
    --line: rgba(236, 233, 223, 0.13);
    --line-strong: rgba(236, 233, 223, 0.3);
    --accent: var(--larch-soft);
    --accent-ink: var(--larch-soft);
    color-scheme: dark;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  html.lenis, html.lenis body { height: auto; }
  .lenis.lenis-smooth { scroll-behavior: auto !important; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }
  ::selection { background: var(--larch); color: var(--pine-night); }
  :root { caret-color: var(--larch); scrollbar-color: var(--moss) transparent; scrollbar-width: thin; }
  ::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--moss); border-radius: 0; border: 3px solid var(--bg); }
  a { text-underline-offset: 0.18em; }
  a { color: inherit; text-decoration: none; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
  img, svg { max-width: 100%; display: block; }
  [hidden] { display: none !important; } /* атрибут hidden сильнее любого display */
  h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
  p { margin: 0; }

  .eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
  }
  .num { font-variant-numeric: tabular-nums; }

  /* ---------- Река: нить, сшивающая страницу ---------- */
  #river {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
  }
  #river path {
    fill: none;
    stroke: var(--larch);
    stroke-width: 1.5;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    opacity: 0.85;
  }
  #page { position: relative; }
  #page > :not(#river) { position: relative; z-index: 2; }

  /* ---------- Прелоадер ---------- */
  .loader {
    position: fixed; inset: 0; z-index: 100;
    background: var(--pine-night);
    color: var(--dark-text);
    display: none;
    grid-template-rows: 1fr auto;
    padding: 28px var(--gutter);
    transform: translateY(0);
  }
  .js .loader { display: grid; }
  .loader.is-done { transition: transform 1s var(--ease-in-out-expo); transform: translateY(-100%); }
  .loader__coords {
    align-self: end;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 1.6rem + 5vw, 7rem);
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
  }
  .loader__coords small { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dark-text-3); margin-bottom: 14px; }
  .loader__bottom { display: flex; justify-content: space-between; align-items: end; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--dark-line); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dark-text-2); }
  .loader__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--larch); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease-out-expo); }
  .loader.is-running .loader__bar { transform: scaleX(1); }
  /* хиро ждёт, пока уйдёт прелоадер */
  .js:not(.is-loaded) .hero__title .w span,
  .js:not(.is-loaded) .hero .rise-in { animation-play-state: paused; }

  /* ---------- Прогресс прокрутки ---------- */
  .progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: var(--larch); transform: scaleX(0); transform-origin: left; pointer-events: none; }

  /* ---------- Подсказка «листайте» ---------- */
  .hint {
    position: fixed; right: var(--gutter); bottom: 28px; z-index: 40;
    display: flex; align-items: center; gap: 12px;
    font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--dark-text-2);
    mix-blend-mode: difference; color: #fff;
    opacity: 0; transition: opacity 0.6s var(--ease-out-quart);
    pointer-events: none;
  }
  .is-loaded .hint { opacity: 0.7; }
  .is-scrolled .hint { opacity: 0; }
  .hint i { width: 1px; height: 36px; background: currentColor; position: relative; overflow: hidden; display: block; }
  .hint i::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--larch); animation: hintRun 1.8s var(--ease-in-out-expo) infinite; }
  @keyframes hintRun { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

  /* ---------- Навигация ---------- */
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px var(--gutter);
    mix-blend-mode: difference;
    color: #fff;
  }
  .nav__logo {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.01em;
  }
  .nav__logo small {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-top: 2px;
  }
  .nav__links { display: flex; gap: 32px; font-size: 0.9rem; }
  .nav__links a { position: relative; padding-block: 10px; }
  .nav__links a::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 100%; height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.3s var(--ease-out-quart);
  }
  @media (hover: hover) and (pointer: fine) { .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; } }
  .nav__burger {
    display: none;
    background: none; border: 0; color: inherit; cursor: pointer;
    font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
    padding: 8px 0; align-items: center; gap: 12px;
  }
  .nav__burger i { display: block; width: 26px; height: 1px; background: currentColor; position: relative; transition: transform 0.25s var(--ease-out-quart); }
  .nav__burger i::before, .nav__burger i::after { content: ''; position: absolute; left: 0; width: 100%; height: 1px; background: currentColor; transition: transform 0.25s var(--ease-out-quart); }
  .nav__burger i::before { top: -7px; } .nav__burger i::after { top: 7px; }
  .menu-open .nav__burger i { background: transparent; }
  .menu-open .nav__burger i::before { transform: translateY(7px) rotate(45deg); }
  .menu-open .nav__burger i::after { transform: translateY(-7px) rotate(-45deg); }
  @media (max-width: 760px) { .nav__links { display: none; } .nav__burger { display: inline-flex; } }

  .menu {
    position: fixed; inset: 0; z-index: 45;
    background: var(--pine-night); color: var(--dark-text);
    display: grid; grid-template-rows: 1fr auto;
    padding: 110px var(--gutter) 32px;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.45s var(--ease-drawer), visibility 0s linear 0.45s;
    visibility: hidden;
  }
  .menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.45s var(--ease-drawer), visibility 0s; }
  .menu-open body { overflow: hidden; }
  .menu__links { display: grid; gap: 6px; align-content: start; }
  .menu__links a {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 11vw, 4.2rem);
    line-height: 1.05; letter-spacing: -0.025em;
    display: flex; align-items: baseline; gap: 16px;
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.3s var(--ease-out-quart), transform 0.4s var(--ease-out-quart);
  }
  .menu-open .menu__links a { opacity: 1; transform: none; }
  .menu-open .menu__links a:nth-child(1) { transition-delay: 0.12s; }
  .menu-open .menu__links a:nth-child(2) { transition-delay: 0.16s; }
  .menu-open .menu__links a:nth-child(3) { transition-delay: 0.2s; }
  .menu-open .menu__links a:nth-child(4) { transition-delay: 0.24s; }
  .menu-open .menu__links a:nth-child(5) { transition-delay: 0.28s; }
  .menu-open .menu__links a:nth-child(6) { transition-delay: 0.32s; }
  .menu__links a:active { scale: 0.98; }
  .menu__foot { display: grid; gap: 6px; padding-top: 20px; border-top: 1px solid var(--dark-line); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--dark-text-2); }

  /* ---------- Хиро ---------- */
  .hero {
    background: var(--dark-bg);
    color: var(--dark-text);
    min-height: 88svh;
    display: grid;
    grid-template-rows: 1fr auto;
    padding: 140px var(--gutter) 40px;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    /* лунный свет между стволами */
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(60% 50% at 78% 20%, rgba(201,146,78,0.14), transparent 70%),
      radial-gradient(40% 60% at 10% 90%, rgba(74,106,88,0.28), transparent 70%);
    pointer-events: none;
  }
  #forest {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: block;
    z-index: 0;
    pointer-events: none;
  }
  .hero > *:not(#forest) { position: relative; z-index: 2; }
  .hero::after {
    /* туман у нижней кромки — чтобы текст всегда читался */
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
    background: linear-gradient(180deg, transparent, rgba(20,32,26,0.75) 60%, rgba(20,32,26,0.92));
    z-index: 1;
    pointer-events: none;
  }
  .hero__top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: start;
  }
  .hero__eyebrow { color: var(--dark-text-3); max-width: 40ch; line-height: 1.7; }
  .hero__coords { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--dark-text-3); text-align: right; line-height: 1.8; }

  .hero__title {
    font-family: var(--font-display);
    font-size: clamp(3.6rem, 15.2vw, 17rem);
    line-height: 0.86;
    letter-spacing: -0.035em;
    margin-left: -0.06em;
    margin-top: clamp(24px, 6vh, 80px);
    position: relative;
    z-index: 2;
  }
  .hero__title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; }
  .hero__title .w span {
    display: inline-block;
    transform: translateY(110%);
    animation: rise 1.4s var(--ease-out-expo) forwards;
  }
  .hero__title .w:nth-child(2) span { animation-delay: 0.08s; }
  .hero__title .w:nth-child(3) span { animation-delay: 0.16s; }
  @keyframes rise { to { transform: translateY(0); } }

  .hero__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: end;
    margin-top: clamp(24px, 5vh, 56px);
    padding-top: 28px;
    border-top: 1px solid var(--dark-line);
  }
  .hero__lede {
    font-size: clamp(1.15rem, 1rem + 0.9vw, 1.65rem);
    line-height: 1.35;
    max-width: 30ch;
    color: var(--dark-text);
    letter-spacing: -0.01em;
  }
  .hero__lede em { font-family: var(--font-display); font-style: normal; color: var(--larch-soft); }
  .hero__facts {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 32px;
    justify-content: end;
  }
  .fact { display: grid; gap: 6px; }
  .fact b {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
    line-height: 1;
    letter-spacing: -0.02em;
  }
  .fact b sup { font-size: 0.45em; vertical-align: top; margin-left: 2px; color: var(--dark-text-2); }
  .fact span { font-size: 0.78rem; color: var(--dark-text-2); line-height: 1.4; max-width: 14ch; }

  .hero .rise-in {
    opacity: 0; transform: translateY(24px);
    animation: fadeUp 1s var(--ease-out-expo) forwards;
  }
  .hero__eyebrow.rise-in { animation-delay: 0.5s; }
  .hero__coords.rise-in { animation-delay: 0.6s; }
  .hero__lede-wrap.rise-in { animation-delay: 0.75s; }
  .hero__facts.rise-in { animation-delay: 0.9s; }
  @keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

  .scroll-hint {
    position: absolute;
    left: var(--gutter);
    bottom: 40px;
    display: none;
  }

  @media (max-width: 760px) {
    .hero { min-height: auto; padding-top: 110px; }
    .hero__top { grid-template-columns: 1fr; }
    .hero__coords { text-align: left; }
    .hero__bottom { grid-template-columns: 1fr; gap: 28px; }
    .hero__facts { grid-template-columns: repeat(3, 1fr); justify-content: start; gap: 16px; }
    .fact span { max-width: none; }
  }

  /* ---------- Общая секция ---------- */
  .section { padding: clamp(80px, 12vh, 160px) var(--gutter); }
  .section__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 32px;
    align-items: end;
    margin-bottom: clamp(40px, 6vh, 80px);
  }
  .section__head h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 1.6rem + 3.4vw, 5.2rem);
    line-height: 1;
    letter-spacing: -0.025em;
  }
  .section__head .eyebrow { padding-bottom: 0.4em; }
  @media (max-width: 760px) { .section__head { grid-template-columns: 1fr; gap: 14px; } }

  /* ---------- Манифест ---------- */
  .manifest {
    padding: clamp(96px, 16vh, 200px) var(--gutter);
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
  }
  .manifest__statement {
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.3rem + 3.6vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin-left: 8.33%;
  }
  .manifest__statement .line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
  .manifest__statement .line span { display: inline-block; }
  .manifest__statement .quiet { color: var(--text-3); }
  .manifest__text {
    display: grid;
    gap: 24px;
    padding-top: clamp(0px, 4vh, 48px);
    max-width: 40ch;
    color: var(--text-2);
    justify-self: end;
  }
  .manifest__text p:first-child { color: var(--text); font-size: 1.1em; }
  .manifest__text .eyebrow { color: var(--accent-ink); }
  @media (max-width: 900px) {
    .manifest { grid-template-columns: 1fr; }
    .manifest__statement { margin-left: 0; }
    .manifest__text { justify-self: start; }
  }

  /* ---------- Дома ---------- */
  .houses { background: var(--bg-2); }
  .houses__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(20px, 3vw, 40px);
    align-items: start;
  }
  .house { position: relative; display: grid; gap: 20px; }
  .house--a { grid-column: 1 / span 5; }
  .house--b { grid-column: 7 / span 6; margin-top: clamp(40px, 8vh, 120px); }
  .house--c { grid-column: 3 / span 6; margin-top: clamp(-20px, -2vh, 0px); }
  @media (max-width: 900px) {
    .house--a, .house--b, .house--c { grid-column: 1 / -1; margin-top: 0; }
  }
  .house__figure {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
  }
  .house__figure svg { width: 100%; height: 100%; }
  .house__figure .house__img { width: 100%; height: 100%; object-fit: cover; }
  .house__plan img { width: 100%; height: 100%; object-fit: contain; }
  .house__figure .ground { fill: var(--bg-2); }
  .house__figure .wall { fill: none; stroke: var(--text); stroke-width: 1.4; }
  .house__figure .roof { fill: var(--pine-deep); }
  .house__figure .wood { fill: var(--larch); opacity: 0.9; }
  .house__figure .glass { fill: var(--moss); opacity: 0.55; }
  .house__figure .tree { stroke: var(--text-3); stroke-width: 1.2; fill: none; }
  .house__figure::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(23,33,28,0.06));
    pointer-events: none;
  }
  .house__figure .art { transition: transform 0.6s var(--ease-out-quart); transform-origin: 50% 100%; }
  @media (hover: hover) and (pointer: fine) { .house:hover .house__figure .art { transform: scale(1.035); } }
  /* планировка появляется поверх иллюстрации при наведении */
  .house__plan {
    position: absolute; inset: 0;
    background: var(--pine-night);
    opacity: 0;
    transition: opacity 0.25s var(--ease-out-quart);
    display: grid; place-items: center;
    padding: 8%;
  }
  .house__plan svg { width: auto; height: 100%; max-height: 100%; }
  .house__plan .room { fill: none; stroke: rgba(236,233,223,0.85); stroke-width: 1.2; }
  .house__plan .terrace { fill: rgba(201,146,78,0.25); stroke: rgba(201,146,78,0.9); stroke-width: 1; stroke-dasharray: 3 3; }
  .house__plan .door { stroke: var(--larch); stroke-width: 1.4; }
  .house__plan text { font-family: var(--font-mono); font-size: 5.6px; letter-spacing: 0.06em; text-transform: uppercase; fill: rgba(236,233,223,0.7); }
  .house__plan .area { font-family: var(--font-display); font-size: 11px; fill: #ece9df; letter-spacing: 0; text-transform: none; }
  @media (hover: hover) and (pointer: fine) { .house:hover .house__plan { opacity: 1; } }
  .house:focus-within .house__plan { opacity: 1; }
  .house__plan-hint { position: absolute; right: 16px; bottom: 14px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
  @media (hover: none) { .house__plan-hint { display: none; } }
  .house__tag {
    position: absolute; top: 16px; left: 16px;
    font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-2);
    background: var(--bg-2);
    padding: 6px 10px;
    border: 1px solid var(--line);
  }
  .house__meta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: baseline;
  }
  .house__name {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.6rem);
    line-height: 1;
    letter-spacing: -0.02em;
  }
  .house__name small { display: block; font-family: var(--font-body); font-size: 0.85rem; color: var(--text-2); letter-spacing: 0; margin-top: 8px; }
  .house__price { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-2); white-space: nowrap; text-align: right; line-height: 1.6; }
  @media (max-width: 560px) { .house__meta { grid-template-columns: 1fr; gap: 8px; } .house__price { white-space: normal; text-align: left; } }
  .house__specs {
    display: flex; flex-wrap: wrap; gap: 8px 22px;
    font-size: 0.88rem; color: var(--text-2);
    padding-top: 14px; border-top: 1px solid var(--line);
  }
  .house__specs span b { color: var(--text); font-weight: 500; }
  .house__actions { display: flex; flex-wrap: wrap; gap: 10px 28px; }
  .house__link { background: none; border: 0; padding: 6px 0; font: inherit; cursor: pointer; }
  .house.is-plan .house__plan { opacity: 1; }
  .house__link {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 0.92rem; color: var(--text);
    width: fit-content;
  }
  .house__link .arrow { width: 28px; height: 1px; background: var(--text); position: relative; transform-origin: left; transition: transform 0.3s var(--ease-out-quart); }
  .house__link .arrow::after { content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-right: 1px solid var(--text); border-top: 1px solid var(--text); transform: rotate(45deg); }
  @media (hover: hover) and (pointer: fine) { .house__link:hover .arrow { transform: scaleX(1.5); } }
  .house__link .arrow::after { transform-origin: right; }

  .houses__note {
    margin-top: clamp(48px, 8vh, 96px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    color: var(--text-2);
    font-size: 0.95rem;
  }
  .houses__note p { max-width: 58ch; }
  @media (max-width: 760px) { .houses__note { grid-template-columns: 1fr; gap: 12px; } }

  /* ---------- Место ---------- */
  .place__list { display: grid; border-top: 1px solid var(--line); }
  .place__item {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 5fr) minmax(0, 4fr);
    gap: 24px;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
    transition: transform 0.3s var(--ease-out-quart);
  }
  @media (hover: hover) and (pointer: fine) { .place__item:hover { transform: translateX(12px); } }
  .place__item .eyebrow { color: var(--accent-ink); }
  .place__item h3 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2.1rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
  }
  .place__item p { color: var(--text-2); font-size: 0.95rem; max-width: 46ch; }
  @media (max-width: 760px) {
    .place__item { grid-template-columns: 1fr; gap: 10px; }
  }

  /* ---------- История: закреплённая секция ---------- */
  .story {
    background: var(--bg-2);
    position: relative;
  }
  .story__sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 100px var(--gutter) 40px;
    overflow: hidden;
  }
  .story__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
  .story__counter { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--text-3); }
  .story__stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(24px, 5vw, 80px);
    align-items: center;
  }
  .story__years { position: relative; height: clamp(120px, 20vw, 300px); }
  .story__year {
    position: absolute; left: 0; top: 0;
    font-family: var(--font-display);
    font-size: clamp(6rem, 18vw, 19rem); /* 4 цифры Prata ≈ 2.5em — умещаются в колонку 7/12 без наезда на текст */
    line-height: 1;
    letter-spacing: -0.04em;
    margin-left: -0.05em;
    white-space: nowrap;
    color: var(--text);
    opacity: 0;
    transform: translateY(40%) skewY(3deg);
    transition: opacity 0.7s var(--ease-out-expo), transform 1s var(--ease-out-expo);
    font-variant-numeric: tabular-nums;
    will-change: transform, opacity;
  }
  .story__year.is-active { opacity: 1; transform: none; }
  .story__year.is-past { opacity: 0; transform: translateY(-40%) skewY(-3deg); }
  .story__texts { position: relative; min-height: 12em; z-index: 1; }
  .story__text {
    position: absolute; inset: 0;
    display: grid; gap: 14px; align-content: start;
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
    pointer-events: none;
  }
  .story__text.is-active { opacity: 1; transform: none; pointer-events: auto; transition-delay: 0.15s; }
  .story__text h3 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
  }
  .story__text p { color: var(--text-2); max-width: 40ch; }
  .story__text .eyebrow { color: var(--accent-ink); }
  .story__track { position: relative; height: 1px; background: var(--line); margin-top: 24px; }
  .story__bar { position: absolute; left: 0; top: 0; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease-out-expo); }
  .story__steps { position: relative; }
  .story__step { height: 90svh; }
  .story__step:last-child { height: 120svh; } /* последний год задерживается на экране, как предыдущие */
  @media (max-width: 900px) {
    .story__sticky { padding-top: 90px; grid-template-rows: auto auto 1fr auto; }
    .story__stage { grid-template-columns: 1fr; align-content: start; gap: 20px; }
    .story__years { height: clamp(90px, 22vw, 160px); }
    .story__year { font-size: clamp(5rem, 22vw, 10rem); }
    .story__texts { min-height: 14em; }
  }

  /* ---------- Дорога ---------- */
  .road {
    background: var(--dark-bg);
    color: var(--dark-text);
    position: relative;
    overflow: hidden;
  }
  .road::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(50% 40% at 90% 100%, rgba(201,146,78,0.12), transparent 70%);
    pointer-events: none;
  }
  .road .eyebrow { color: var(--dark-text-3); }
  .road__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: end;
    margin-bottom: clamp(56px, 10vh, 120px);
  }
  .road__head h2 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 1.6rem + 4vw, 6rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
  }
  .road__head h2 em { font-style: normal; color: var(--larch-soft); }
  .road__head p { color: var(--dark-text-2); max-width: 40ch; justify-self: end; }
  @media (max-width: 760px) {
    .road__head { grid-template-columns: 1fr; }
    .road__head p { justify-self: start; }
  }

  .route { position: relative; padding: 40px 0 0; }
  .route__track {
    position: relative;
    height: 1px;
    background: var(--dark-line);
  }
  .route__progress {
    position: absolute; left: 0; top: 0; height: 100%;
    width: 100%;
    background: var(--larch);
    transform: scaleX(0);
    transform-origin: left;
  }
  .route__stops {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin-top: 0;
  }
  .stop { position: relative; padding-top: 28px; }
  .stop::before {
    content: '';
    position: absolute; top: -4px; left: 0;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--dark-bg);
    border: 1px solid var(--dark-text-2);
  }
  .stop--end::before { background: var(--larch); border-color: var(--larch); }
  .stop--end { text-align: right; }
  .stop--end::before { left: auto; right: 0; }
  .stop--mid { text-align: center; }
  .stop--mid::before { left: 50%; transform: translateX(-50%); }
  .stop b {
    display: block;
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(1.2rem, 1rem + 1vw, 1.9rem);
    letter-spacing: -0.015em;
    line-height: 1.1;
  }
  .stop span { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--dark-text-3); margin-top: 8px; }

  .road__grid {
    margin-top: clamp(64px, 10vh, 120px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--dark-line);
  }
  .road__grid .fact span { color: var(--dark-text-2); }
  @media (max-width: 760px) { .road__grid { grid-template-columns: 1fr 1fr; } }

  /* ---------- Карта ---------- */
  .map { padding-bottom: 0; }
  .map .section__head { margin-bottom: clamp(28px, 4vh, 48px); }
  .map__frame {
    position: relative;
    margin: 0 calc(-1 * var(--gutter));
    aspect-ratio: 21 / 9;
    max-width: none;
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
  }
  @media (max-width: 760px) { .map__frame { aspect-ratio: 4 / 5; } }
  .map__frame iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
    filter: grayscale(0.4) sepia(0.12) contrast(0.96);
    transition: filter 0.4s ease;
  }
  @media (hover: hover) and (pointer: fine) { .map__frame:hover iframe { filter: none; } }
  .map__scheme {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: none;
  }
  .map--fallback iframe { display: none; }
  .map--fallback .map__scheme { display: block; }
  .map__scheme .land { fill: var(--bg-2); }
  .map__scheme .forest { fill: var(--moss); opacity: 0.16; }
  .map__scheme .water { fill: none; stroke: var(--moss); stroke-width: 1.4; opacity: 0.7; }
  .map__scheme .road { fill: none; stroke: var(--text-3); stroke-width: 1.2; stroke-dasharray: 4 5; }
  .map__scheme .city { fill: var(--text); }
  .map__scheme .pin { fill: var(--larch); }
  .map__scheme text { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--text-2); }
  .map__card {
    position: absolute;
    left: var(--gutter); bottom: clamp(20px, 4vh, 40px);
    z-index: 3;
    width: min(360px, calc(100% - 2 * var(--gutter)));
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 24px 26px 22px;
    display: grid; gap: 14px;
    box-shadow: 0 24px 60px -30px rgba(20, 32, 26, 0.5);
  }
  .map__card b { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; line-height: 1.15; letter-spacing: -0.01em; }
  .map__card p { font-size: 0.9rem; color: var(--text-2); }
  .map__links { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.88rem; }
  .map__links a { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
  .map__links a .arrow { width: 22px; height: 1px; background: var(--text); position: relative; transform-origin: left; transition: transform 0.3s var(--ease-out-quart); }
  .map__links a .arrow::after { content: ''; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-right: 1px solid var(--text); border-top: 1px solid var(--text); transform: rotate(45deg); }
  @media (hover: hover) and (pointer: fine) { .map__links a:hover .arrow { transform: scaleX(1.5); } }
  .map__legend {
    display: flex; flex-wrap: wrap; gap: 12px 32px;
    padding: 20px 0 0;
    font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3);
  }

  /* ---------- CTA в хиро ---------- */
  .hero__cta { display: inline-flex; align-items: center; gap: 14px; margin-top: 22px; font-size: 0.95rem; color: var(--dark-text); }
  .hero__cta .arrow { width: 32px; height: 1px; background: var(--larch-soft); position: relative; transform-origin: left; transition: transform 0.3s var(--ease-out-quart); }
  .hero__cta .arrow::after { content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-right: 1px solid var(--larch-soft); border-top: 1px solid var(--larch-soft); transform: rotate(45deg); }
  @media (hover: hover) and (pointer: fine) { .hero__cta:hover .arrow { transform: scaleX(1.4); } }

  /* ---------- Как это происходит ---------- */
  .how { background: var(--bg); }
  .how__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); border-top: 1px solid var(--line); }
  .how__step { padding-top: 28px; display: grid; gap: 14px; align-content: start; position: relative; }
  .how__step::before { content: ''; position: absolute; top: -1px; left: 0; width: 48px; height: 1px; background: var(--accent); }
  .how__step .eyebrow { color: var(--accent-ink); }
  .how__step h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem); line-height: 1.1; letter-spacing: -0.015em; }
  .how__step p { color: var(--text-2); font-size: 0.95rem; max-width: 34ch; }
  .how__promise { margin-top: clamp(48px, 8vh, 96px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
  .how__promise ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; }
  .how__promise li { display: grid; gap: 4px; font-size: 0.95rem; color: var(--text-2); }
  .how__promise li b { font-weight: 500; color: var(--text); }
  .how__cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; }
  .how__cta small { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
  @media (max-width: 900px) { .how__steps { grid-template-columns: 1fr; } .how__promise { grid-template-columns: 1fr; } .how__promise ul { grid-template-columns: 1fr; } }

  /* ---------- Кто строит ---------- */
  .builder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
  .builder__quote { font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.8rem); line-height: 1.12; letter-spacing: -0.02em; }
  .builder__quote span { color: var(--text-3); }
  .builder__docs { display: grid; gap: 18px; padding-top: 6px; }
  .builder__docs p { color: var(--text-2); max-width: 48ch; }
  .builder__docs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
  .builder__docs li { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
  .builder__docs li i { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--accent-ink); font-style: normal; padding-top: 4px; }
  @media (max-width: 900px) { .builder { grid-template-columns: 1fr; } }

  /* ---------- Вопросы ---------- */
  .faq__list { display: grid; border-top: 1px solid var(--line); }
  .faq__item { border-bottom: 1px solid var(--line); }
  .faq__item summary {
    list-style: none; cursor: pointer; min-height: 44px;
    display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 24px; align-items: center;
    padding: 24px 0;
    font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + 0.7vw, 1.6rem); line-height: 1.2; letter-spacing: -0.01em;
  }
  .faq__item summary::-webkit-details-marker { display: none; }
  .faq__item summary i { width: 14px; height: 14px; position: relative; justify-self: end; }
  .faq__item summary i::before, .faq__item summary i::after { content: ''; position: absolute; background: var(--text); left: 0; top: 50%; width: 100%; height: 1px; transition: transform 0.25s var(--ease-out-quart); }
  .faq__item summary i::after { transform: rotate(90deg); }
  .faq__item[open] summary i::after { transform: rotate(0deg); }
  .faq__item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
  .faq__item p { color: var(--text-2); max-width: 62ch; padding: 0 0 26px; }

  /* ---------- Липкая панель (мобильный) ---------- */
  .sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: none;
    grid-template-columns: 1fr auto;
    gap: 1px;
    background: var(--line-strong);
    transform: translateY(100%);
    transition: transform 0.3s var(--ease-out-quart);
  }
  .sticky-cta a { display: flex; align-items: center; justify-content: center; padding: 16px 20px; font-size: 0.92rem; font-weight: 500; background: var(--pine-night); color: var(--dark-text); }
  .sticky-cta a:last-child { background: var(--larch); color: var(--pine-night); }
  .is-past-houses:not(.is-at-visit) .sticky-cta { transform: none; }
  @media (max-width: 760px) { .sticky-cta { display: grid; } .menu-open .sticky-cta { display: none; } }

  /* ---------- Форма: чипы ---------- */
  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .field .chips label { position: relative; cursor: pointer; font-family: var(--font-body); font-size: 0.88rem; letter-spacing: 0; text-transform: none; color: inherit; }
  .chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .chips span { display: inline-block; padding: 11px 16px; border: 1px solid var(--line-strong); font-size: 0.88rem; color: var(--text-2); transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease; }
  .chips input:checked + span { border-color: var(--text); color: var(--text); background: var(--surface); }
  .chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
  .form__scarcity { font-size: 0.9rem; color: var(--text-2); padding: 18px 0 0; border-top: 1px solid var(--line); max-width: 44ch; }
  .form__scarcity b { color: var(--text); font-weight: 500; }

  /* ---------- Генплан ---------- */
  .plan { background: var(--bg-2); }
  .plan__intro { color: var(--text-2); max-width: 52ch; margin-top: 20px; }
  .plan__filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin: clamp(28px, 4vh, 48px) 0 28px; }
  .plan__filters .chips label { position: relative; cursor: pointer; }
  .plan__legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
  .plan__legend li { display: flex; align-items: center; gap: 8px; }
  .plan__key { width: 14px; height: 10px; border: 1px solid var(--line-strong); box-sizing: border-box; }
  .plan { --st-free: #7fb98a; --st-reserved: var(--larch-soft); --st-sold: #b0563f; }
  .plan__key--free { border-color: var(--st-free); }
  .plan__key--reserved { border-color: var(--st-reserved); }
  .plan__key--sold { background: var(--st-sold); border-color: var(--st-sold); opacity: 0.7; }
  .plan__key--demo { border-color: var(--st-free); background: var(--st-free); }
  .plan__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
  .plan__map { border: 1px solid var(--line); background: var(--bg); position: relative; }
  .plan__svg { display: block; width: 100%; height: auto; }
  .plan__forest { fill: var(--moss); opacity: 0.12; }
  .plan__road { fill: var(--text); opacity: 0.14; }
  .plan__lane { fill: var(--text); opacity: 0.1; }
  .plan__street, .plan__north text { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--text-3); }
  .plan__north circle { fill: none; stroke: var(--line-strong); }
  .plan__north path { fill: var(--accent); }
  .plan__plot { cursor: pointer; outline: none; transition: opacity 0.3s var(--ease-out-quart); }
  .plan__cell { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; transition: fill 0.25s ease, stroke 0.25s ease; }
  .plan__house { fill: none; stroke: var(--st-free); stroke-width: 1.4; stroke-linejoin: round; transition: fill 0.25s ease, stroke 0.25s ease; }
  .plan__num { font-family: var(--font-mono); font-size: 12px; fill: var(--text); letter-spacing: 0.06em; }
  .plan__demo, .plan__price { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; fill: var(--text-2); text-transform: uppercase; }
  .plan__demo { fill: var(--st-free); }
  .plan__plot--free .plan__cell { stroke: var(--st-free); }
  .plan__plot--reserved .plan__cell { stroke: var(--st-reserved); }
  .plan__plot--reserved .plan__house { stroke: var(--st-reserved); fill: var(--st-reserved); fill-opacity: 0.25; }
  .plan__plot--reserved .plan__price { fill: var(--st-reserved); }
  .plan__plot--sold .plan__cell { fill: var(--st-sold); fill-opacity: 0.16; stroke: var(--st-sold); }
  .plan__plot--sold .plan__house { fill: var(--st-sold); stroke: var(--st-sold); }
  .plan__plot--sold .plan__num, .plan__plot--sold .plan__price { fill: var(--text-2); }
  .plan__plot--soon .plan__cell { stroke: var(--line); stroke-dasharray: 2 4; }
  .plan__plot--soon .plan__house { stroke: var(--line-strong); stroke-dasharray: 2 2; }
  .plan__plot--demo .plan__house { fill: var(--st-free); fill-opacity: 0.35; }
  .plan__plot:hover .plan__cell, .plan__plot:focus-visible .plan__cell { fill: var(--bg-2); stroke: var(--text); }
  .plan__plot.is-active .plan__cell { fill: var(--text); fill-opacity: 0.1; stroke: var(--text); stroke-width: 2; }
  .plan__plot.is-dim { opacity: 0.22; }
  .plan__card { position: sticky; top: 96px; border-top: 1px solid var(--line-strong); padding-top: 24px; display: grid; gap: 16px; }
  .plan__card-empty p, .plan__note { color: var(--text-2); }
  .plan__card-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); line-height: 1.05; letter-spacing: -0.02em; }
  .plan__card-project { color: var(--text); font-weight: 500; }
  .plan__facts { display: grid; gap: 0; margin: 8px 0; border-top: 1px solid var(--line); }
  .plan__facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .plan__facts dt { color: var(--text-2); font-size: 0.9rem; }
  .plan__facts dd { margin: 0; font-weight: 500; }
  .plan__actions { display: grid; gap: 14px; justify-items: start; margin-top: 8px; }
  .plan__fine { font-size: 0.85rem; color: var(--text-3); }
  .form__plot { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 0.9rem; color: var(--text-2); }
  .form__plot b { color: var(--text); font-weight: 500; }
  .form__plot-x { font: inherit; background: none; border: 1px solid var(--line-strong); color: var(--text-2); width: 26px; height: 26px; cursor: pointer; line-height: 1; }
  @media (max-width: 900px) {
    .plan__body { grid-template-columns: 1fr; }
    .plan__card { position: static; }
  }
  .plan__scroll { display: none; margin-top: 10px; }
  @media (max-width: 700px) {
    .plan__map { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .plan__svg { min-width: 620px; }
    .plan__scroll { display: block; }
  }

  /* ---------- Заявка ---------- */
  .visit {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(40px, 8vw, 120px);
    align-items: start;
  }
  .visit h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 1.6rem + 3.4vw, 5.2rem);
    line-height: 1;
    letter-spacing: -0.025em;
  }
  .visit__intro { color: var(--text-2); margin-top: 24px; max-width: 34ch; }
  .visit__aside { margin-top: 40px; display: grid; gap: 8px; font-size: 0.92rem; color: var(--text-2); }
  .visit__aside a { color: var(--text); border-bottom: 1px solid var(--line-strong); transition: border-color 0.2s ease; }
  .visit__aside a:hover { border-color: var(--text); }
  .form { display: grid; gap: 28px; padding-top: 12px; }
  .field { display: grid; gap: 10px; }
  .field label, .field__label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
  .field input, .field select {
    font: inherit;
    color: var(--text);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    padding: 10px 0 12px;
    border-radius: 0;
    width: 100%;
    transition: border-color 0.2s ease;
    appearance: none;
  }
  .field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
  .field input::placeholder { color: var(--text-3); }
  .field select { background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(-45deg, transparent 50%, var(--text-2) 50%); background-position: calc(100% - 8px) 55%, 100% 55%; background-size: 6px 6px; background-repeat: no-repeat; }
  /* выпадающий список в цветах сайта (иначе браузер рисует светлый текст на белом) */
  .field select { color-scheme: dark; }
  .field select option { background: var(--pine-deep); color: var(--birch); padding: 8px 6px; }
  .field select option:checked { background: var(--larch); color: var(--pine-night); }
  .field--row { grid-template-columns: 1fr 1fr; gap: 28px; }
  @media (max-width: 560px) { .field--row { grid-template-columns: 1fr; } }
  .btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 14px;
    padding: 20px 34px;
    background: var(--text);
    color: var(--bg);
    font: inherit; font-size: 0.95rem; font-weight: 500;
    border: 0; cursor: pointer;
    width: fit-content;
    overflow: hidden;
    isolation: isolate;
  }
  .btn::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: var(--larch);
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.3s var(--ease-out-quart);
  }
  .btn { transition: scale 0.16s var(--ease-out-quart), color 0.2s ease; } /* scale отдельно от transform — магнитный эффект (GSAP) пишет transform сам */
  @media (hover: hover) and (pointer: fine) {
    .btn:hover::before { transform: scaleX(1); transform-origin: left; }
    .btn:hover { color: var(--pine-night); }
  }
  .btn:active { scale: 0.97; }
  .btn span { position: relative; }
  .form__fine { font-size: 0.8rem; color: var(--text-3); max-width: 40ch; }
  .form__done { display: none; padding: 28px 0; border-top: 1px solid var(--line); }
  .form.is-sent .form__done { animation: doneIn 0.4s var(--ease-out-quart) both; }
  @keyframes doneIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .form__done b { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; display: block; margin-bottom: 8px; }
  .form.is-sent .form__fields { display: none; }
  .form.is-sent .form__done { display: block; }
  @media (max-width: 900px) { .visit { grid-template-columns: 1fr; } }

  /* ---------- Подвал ---------- */
  .footer {
    padding: 40px var(--gutter) 32px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: end;
    font-size: 0.85rem;
    color: var(--text-2);
  }
  .footer__word {
    font-family: var(--font-display);
    font-size: clamp(3rem, 12vw, 13rem);
    line-height: 0.85;
    letter-spacing: -0.035em;
    color: var(--text);
    opacity: 0.08;
    margin-left: -0.05em;
    margin-bottom: 24px;
    user-select: none;
  }
  .footer__right { text-align: right; display: grid; gap: 4px; }
  @media (max-width: 760px) { .footer { grid-template-columns: 1fr; } .footer__right { text-align: left; } }

  /* ---------- Появление при скролле ---------- */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  .js [data-reveal="stagger"] > * {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
  }
  .js [data-reveal="stagger"] { opacity: 1; transform: none; }
  .js [data-reveal="stagger"].is-visible > * { opacity: 1; transform: none; }
  .js [data-reveal="stagger"].is-visible > *:nth-child(1) { transition-delay: 0.05s; }
  .js [data-reveal="stagger"].is-visible > *:nth-child(2) { transition-delay: 0.15s; }
  .js [data-reveal="stagger"].is-visible > *:nth-child(3) { transition-delay: 0.25s; }
  .js [data-reveal="stagger"].is-visible > *:nth-child(4) { transition-delay: 0.35s; }
  .js [data-reveal="stagger"].is-visible > *:nth-child(5) { transition-delay: 0.45s; }
  .js [data-reveal="stagger"].is-visible > *:nth-child(6) { transition-delay: 0.55s; }

  .js .manifest__statement .line span { transform: translateY(110%); transition: transform 1.2s var(--ease-out-expo); }
  .js .manifest__statement.is-visible .line span { transform: none; }
  .js .manifest__statement.is-visible .line:nth-child(2) span { transition-delay: 0.1s; }
  .js .manifest__statement.is-visible .line:nth-child(3) span { transition-delay: 0.2s; }

  @media (prefers-reduced-motion: reduce) {
    /* мягче, а не ноль: движение убираем, короткие фейды оставляем */
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-delay: 0s !important;
      transition-duration: 0.01ms !important;
      transition-delay: 0s !important;
      scroll-behavior: auto !important;
    }
    .house__plan, .form__done, .menu__links a, .story__text, .field input, .field select { transition-duration: 0.2s !important; animation-duration: 0.2s !important; transform: none !important; }
    .js [data-reveal], .js [data-reveal="stagger"] > *, .js .manifest__statement .line span, .hero .rise-in, .hero__title .w span { opacity: 1 !important; transform: none !important; }
  }
