/* =========================================================
   Lines Capital — main stylesheet
   Concept: architectural drawing sheet
   ========================================================= */

:root{
  /* palette */
  --paper:      #F4F4F1;
  --paper-2:    #EDEDE8;
  --white:      #FFFFFF;
  --ink:        #14161A;
  --ink-soft:   #2A2D33;
  --muted:      #71757C;
  --line:       #E0E0DA;
  --line-soft:  #EBEBE5;
  --accent:     #EC2F39;   /* from the logo */
  --steel:      #58595B;   /* from the logo */

  /* type */
  --font:  "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* metrics */
  --gutter: 40px;
  --maxw:   1320px;
  --r:      18px;
  --r-lg:   26px;
  --header-h: 76px;
  /* расстояние между разделами: от последнего элемента предыдущего блока
     до заголовка следующего (заголовок сам несёт разделительную линию) */
  --seam: 120px;

  /* motion */
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

/* A class that sets `display` outranks the browser's own [hidden] rule, so an
   element left with the attribute stays laid out — and a full-screen overlay
   like .gal then swallows every click on the page. Settle it once, here. */
[hidden]{ display:none !important; }

/* No scroll-behavior here: main.js (§2b) asks for the smooth scroll itself, so
   that an in-page link can stop below the fixed header rather than under it. */
html{ -webkit-text-size-adjust:100%; }

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

img,svg,video{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; }
ul,ol{ margin:0; padding:0; list-style:none; }
h1,h2,h3,p,figure,blockquote{ margin:0; }

.container{
  width:100%;
  max-width:var(--maxw);
  margin-inline:auto;
  padding-inline:var(--gutter);
}

.mono{
  font-family:var(--mono);
  font-size:11px;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
}

/* ---------- shared type ---------- */
.h2{
  font-size:clamp(32px,4.4vw,60px);
  line-height:1.04;
  letter-spacing:-.035em;
  font-weight:600;
}
.section-lead{
  color:var(--muted);
  font-size:clamp(15px,1.25vw,18px);
  max-width:44ch;
}
.eyebrow{
  display:inline-flex;
  align-items:flex-start;
  gap:10px;
  font-family:var(--mono);
  font-size:11px;
  font-weight:500;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:22px;
}
.eyebrow .dot{
  width:6px;height:6px;flex:0 0 6px;border-radius:50%;
  margin-top:5px;                     /* sits on the first line when the label wraps */
  background:var(--accent);
  box-shadow:0 0 0 4px rgba(236,47,57,.14);
}

/* Флекс, а не грид: у грида пустая вторая колонка всё равно резервирует
   gap, и линия заголовка не доходила до края на 40px. У флекса промежуток
   появляется только между реально существующими элементами. */
.sec-head{
  display:flex;
  align-items:center;
  gap:40px;
  margin-bottom:60px;
}
/* У процесса под заголовком сразу идёт своя горизонтальная линия — две
   близкие линии читаются как одна смазанная полоса, поэтому здесь воздуха
   больше, чем у остальных разделов. */
.process .sec-head{ margin-bottom:78px; }
.sec-head .section-lead{ padding-bottom:8px; }

/* ---------- buttons ---------- */
.btn{
  --bg:var(--ink); --fg:#fff;
  display:inline-flex; align-items:center; gap:14px;
  padding:15px 16px 15px 26px;
  background:var(--bg); color:var(--fg);
  border:1px solid transparent; border-radius:999px;
  font-size:15px; font-weight:600; letter-spacing:-.01em;
  white-space:nowrap;
  cursor:pointer;
  transition:transform .35s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:hover{ transform:translateY(-2px); }
.btn__arrow{
  width:30px;height:30px;flex:0 0 30px;
  display:grid;place-items:center;
  border-radius:50%;
  background:rgba(255,255,255,.14);
  transition:transform .4s var(--ease), background .3s;
}
.btn__arrow svg{ width:15px;height:15px; }
.btn:hover .btn__arrow{ transform:translateX(3px); background:var(--accent); }

.btn--dark{ --bg:var(--ink); --fg:#fff; }
.btn--light{ --bg:#fff; --fg:var(--ink); }
.btn--light .btn__arrow{ background:rgba(20,22,26,.08); }
.btn--light:hover .btn__arrow{ background:var(--accent); color:#fff; }
.btn--ghost{
  --bg:transparent; --fg:var(--ink);
  border-color:var(--line);
  padding:15px 26px 15px 16px;
}
.btn--ghost:hover{ border-color:var(--ink); }
.btn--sm{ padding:11px 12px 11px 20px; font-size:14px; }
.btn--sm .btn__arrow{ width:26px;height:26px;flex-basis:26px; }
.btn--full{ width:100%; justify-content:space-between; }
/* same disc and same nudge as .btn__arrow, but keeping the ghost button's
   own dark-on-paper colouring */
.btn__play{
  width:30px;height:30px;flex:0 0 30px;
  display:grid;place-items:center;border-radius:50%;
  background:var(--ink); color:#fff;
  transition:transform .4s var(--ease), background .3s;
}
.btn__play svg{ width:15px;height:15px; }
.btn--ghost:hover .btn__play{ background:var(--accent); transform:translateX(3px); }

/* ---------- reveal ---------- */
.reveal{
  opacity:0;
  transform:translateY(26px);
  transition:opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay:calc(var(--d,0) * 90ms);
}
.reveal.is-in{ opacity:1; transform:none; }

/* Выезд сбоку — для ленты отзывов. Она и так читается слева направо,
   поэтому карточки приходят справа, продолжая движение самой ленты.
   Сдвиг небольшой: лента прокручивается по горизонтали, и карточка,
   уехавшая далеко вправо, на узком экране просто не успеет вернуться. */
.reveal--x{ transform:translateX(44px); }

/* =========================================================
   BOOT SCREEN
   ========================================================= */
body.is-booting{ overflow:hidden; }

/* Спрятана по умолчанию: снять её может только main.js, и если скрипты
   отключены, она осталась бы висеть на весь экран навсегда.
   Отметку has-js ставит js/boot.js в <head>. */
.boot{ display:none; }
.has-js .boot{
  position:fixed; inset:0; z-index:200;
  display:grid; place-items:center;
  background:
    repeating-linear-gradient(0deg,  var(--line-soft) 0 1px, transparent 1px 68px),
    repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 68px),
    var(--paper);
  transition:opacity .55s var(--ease), visibility .55s;
}
.boot.is-done{ opacity:0; visibility:hidden; }

.boot__sheet{ width:min(320px,74vw); }
.boot__mark{
  display:flex; align-items:center; justify-content:center;
  margin-bottom:30px;
}
.boot__mark img{ width:230px; height:auto; }

.boot__bar{ height:2px; background:var(--line); overflow:hidden; }
.boot__bar i{
  display:block; height:100%; width:0%;
  background:var(--accent);
  transition:width .35s var(--ease);
}
.boot__meta{
  display:flex; justify-content:space-between;
  margin-top:12px; color:var(--muted);
}

/* =========================================================
   HEADER
   ========================================================= */
.header{
  position:fixed; inset:0 0 auto 0; z-index:60;
  transition:background .4s var(--ease), border-color .4s, backdrop-filter .4s;
  border-bottom:1px solid transparent;
}
.header.is-stuck{
  background:rgba(244,244,241,.82);
  backdrop-filter:blur(14px) saturate(1.4);
  border-bottom-color:var(--line);
}
.header__inner{
  max-width:var(--maxw); margin-inline:auto;
  padding:0 var(--gutter);
  height:var(--header-h);
  display:flex; align-items:center; justify-content:space-between; gap:28px;
}

.brand{ display:flex; align-items:center; }
.brand__logo{ width:152px; height:auto; }

.nav{ display:flex; gap:34px; }
.nav a{
  position:relative; font-size:14.5px; font-weight:500; color:var(--ink-soft);
  padding:6px 0; transition:color .25s;
}
.nav a::after{
  content:""; position:absolute; left:0; bottom:0; height:1px; width:0;
  background:var(--accent); transition:width .35s var(--ease);
}
.nav a:hover{ color:var(--ink); }
.nav a:hover::after{ width:100%; }

.header__actions{ display:flex; align-items:center; gap:14px; }

.burger{
  display:none;
  width:42px;height:42px;
  border:1px solid var(--line); border-radius:50%;
  background:transparent; cursor:pointer;
  flex-direction:column; align-items:center; justify-content:center; gap:5px;
}
.burger span{
  width:16px;height:1.5px;background:var(--ink);
  transition:transform .35s var(--ease), opacity .25s;
}
.burger[aria-expanded="true"] span:first-child{ transform:translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child{ transform:translateY(-3.25px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.sheet{
  position:relative;
  background:
    linear-gradient(transparent 0 0),
    repeating-linear-gradient(0deg,   var(--line-soft) 0 1px, transparent 1px 68px),
    repeating-linear-gradient(90deg,  var(--line-soft) 0 1px, transparent 1px 68px),
    var(--paper);
}
.sheet::after{
  /* fade the technical grid out toward the bottom */
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg, rgba(244,244,241,0) 40%, var(--paper) 100%);
}
.sheet__ticks{ position:absolute; inset:22px; pointer-events:none; }
.sheet__ticks i{ position:absolute; width:16px; height:16px; }
.sheet__ticks i::before,.sheet__ticks i::after{
  content:""; position:absolute; background:var(--steel); opacity:.35;
}
.sheet__ticks i::before{ width:16px; height:1px; top:0; }
.sheet__ticks i::after{ width:1px; height:16px; left:0; }
.sheet__ticks i:nth-child(1){ top:0; left:0; }
.sheet__ticks i:nth-child(2){ top:0; right:0; }
.sheet__ticks i:nth-child(2)::after{ left:auto; right:0; }
.sheet__ticks i:nth-child(3){ bottom:0; left:0; }
.sheet__ticks i:nth-child(3)::before{ top:auto; bottom:0; }
.sheet__ticks i:nth-child(4){ bottom:0; right:0; }
.sheet__ticks i:nth-child(4)::before{ top:auto; bottom:0; }
.sheet__ticks i:nth-child(4)::after{ left:auto; right:0; }

.hero{
  position:relative; z-index:1;
  padding-top:calc(var(--header-h) + 70px);
  padding-bottom:110px;
  overflow:hidden;
}
.hero__grid{
  position:relative; z-index:2;
  display:grid;
  grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
  gap:70px; align-items:center;
}

.hero__title{
  font-size:clamp(40px,5.6vw,78px);
  line-height:1.0;
  letter-spacing:-.045em;
  font-weight:600;
  margin-bottom:26px;
}
.hero__title em{
  font-style:normal;
  color:var(--accent);
}
.hero__lead{
  color:var(--muted);
  font-size:clamp(15px,1.3vw,18.5px);
  max-width:46ch;
  margin-bottom:38px;
}
.hero__cta{ display:flex; flex-wrap:wrap; gap:14px; margin-bottom:64px; }

.hero__facts{
  display:flex; flex-wrap:wrap; gap:14px 52px;
  padding-top:30px;
}
.hero__facts li{ display:flex; flex-direction:column; }
.hero__facts b{
  font-size:clamp(28px,3vw,40px); font-weight:600; letter-spacing:-.04em; line-height:1;
}
.hero__facts span{
  font-family:var(--mono); font-size:10.5px; letter-spacing:.14em;
  text-transform:uppercase; color:var(--muted); margin-top:9px;
}

/* ---- film panel ---- */
.hero__panel{ position:relative; padding-bottom:72px; }   /* room for the chip below the frame */

/* the film sits inside the drawing sheet, where the plan used to be */
.film{
  position:relative;
  aspect-ratio:16/9;
  margin:18px 0 6px;
  border-radius:14px;
  overflow:hidden;
  background:var(--white);
  border:1px solid var(--line);
}
/* Слайд-шоу на главной. Все кадры лежат друг на друге, виден тот, у
   кого is-on: так переход получается наложением, без мигания белым.
   Длительность задаётся из админки через переменную --fade. */
.film__shot{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover; background:#fff;
  opacity:0;
  transition:opacity var(--fade, 900ms) ease;
}
.film__shot.is-on{ opacity:1; }

/* Просьбу «не двигать» сайт выполняет везде, но смену кадров на главной
   оставляет. Кадр никуда не едет и не дёргается — он проявляется, а от
   этого не укачивает; неподвижная же первая страница выглядит просто
   сломанной, и человек уходит, не поняв, что это настройка его
   компьютера.

   Длительность приходится вернуть своей рукой: общее правило в конце
   файла обнуляет переходы всему подряд. Оно побеждает по порядку, но не
   по весу — у класса вес больше, чем у звёздочки. */
@media (prefers-reduced-motion: reduce) {
  .film__shot{ transition-duration:var(--fade, 900ms) !important; }
}

/* replay lives in the title block, opposite the area figure */
.film__replay{
  width:38px; height:38px;
  display:grid; place-items:center;
  border:1px solid var(--line);
  border-radius:50%;
  background:var(--white);
  color:var(--steel);
  cursor:pointer;
  opacity:0; visibility:hidden;
  transition:opacity .45s var(--ease), visibility .45s,
             background .3s, border-color .3s, color .3s, transform .3s var(--ease);
}
.film__replay svg{ width:18px; height:18px; }
/* available as soon as there is something to replay, whether the viewer
   watched it or scrolled past while it ran */
.film__replay.is-ready{ opacity:1; visibility:visible; }
.film__replay:hover{
  background:var(--accent); border-color:transparent; color:#fff;
  transform:rotate(-40deg);
}
.plan{
  position:relative;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  padding:22px 24px 20px;
  box-shadow:0 40px 80px -50px rgba(20,22,26,.4);
}
.plan__head,.plan__foot{
  display:flex; justify-content:space-between; align-items:center;
  color:var(--muted);
}
.plan__head{ padding-bottom:16px; border-bottom:1px solid var(--line-soft); }
.plan__foot{ padding-top:16px; border-top:1px solid var(--line-soft); }
/* Номер кадра и раздел галереи — одной строкой, тем же мелким шрифтом.
   min-width:0 нужен, чтобы длинное название ужималось многоточием, а не
   растягивало подвал и не выдавливало стрелку за край. */
.plan__meta{ display:flex; align-items:center; gap:10px; min-width:0; }
.plan__from{
  min-width:0;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
/* Точка-разделитель рисуется стилем, а не вписана в текст, и только
   когда разделять есть что: один снимок в слайд-шоу — номера нет, и
   висящей точки перед названием тоже не будет. */
#heroCount:not(:empty) + .plan__from:not(:empty)::before{
  content:'·'; margin-right:10px;
}
.plan__stamp{
  color:var(--accent);
  border:1px solid currentColor; border-radius:999px;
  padding:5px 12px; font-size:9.5px;
}
.plan__svg{
  width:100%; height:auto; display:block;
  padding:22px 0 6px;
  color:var(--ink);
}
.plan__grid{ color:var(--line); opacity:.85; }
.plan__outdoor{ color:var(--muted); opacity:.65; }
.plan__glass{ color:var(--accent); }
.plan__doors,.plan__fixtures{ color:var(--steel); }
.plan__dims,.plan__north{ color:var(--muted); }

/* Every line is measured on its own in main.js and given its own duration and
   start time, so the sheet is drawn one stroke after another at a steady pen
   speed. Linear timing on purpose — easing each stroke is what made it stutter. */
.plan__svg .pen{
  stroke-dasharray:var(--len,1000);
  stroke-dashoffset:var(--len,1000);
}
.is-in .plan__svg .pen{
  animation:draw var(--dur,.6s) linear var(--delay,0s) forwards;
}
@keyframes draw{ to{ stroke-dashoffset:0; } }

/* strokes that are already dashed (the porch, the garage door) cannot be drawn
   with a dash offset without losing their dashes — they fade in on their turn */
.plan__svg .pen--fade{ opacity:0; }
.is-in .plan__svg .pen--fade{
  animation:penFade .4s linear var(--delay,0s) forwards;
}
@keyframes penFade{ to{ opacity:1; } }

.plan__text text{
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.1em;
  opacity:0;
}
.plan__text .dim{ font-size:9px; fill:var(--muted); }
.plan__text .rm { fill:var(--steel); }
.plan__text .sm { font-size:8px; fill:var(--muted); }
.is-in .plan__text text{ animation:fadeLabel .7s var(--ease) var(--delay,2.2s) forwards; }
@keyframes fadeLabel{ from{opacity:0} to{opacity:1} }

.chip{
  display:inline-flex; align-items:center; gap:13px;
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(12px);
  border:1px solid var(--line);
  border-radius:999px;
  padding:12px 22px 12px 12px;
  font-size:13.5px; font-weight:600; line-height:1.3;
  box-shadow:0 24px 46px -30px rgba(20,22,26,.5);
}
.chip i{ display:block; font-style:normal; font-weight:400; color:var(--muted); font-size:12px; }
.chip__ico{
  width:34px;height:34px;flex:0 0 34px;
  display:grid;place-items:center;border-radius:50%;
  background:var(--accent); color:#fff;
}
.chip__ico svg{ width:17px;height:17px; }
/* Centred under the sheet by auto margins, not by a translateX: the float
   animation below owns `transform`, so a translate set on the rule is wiped
   the moment it runs — and the chip slides off-centre the moment it does not. */
.chip--float{
  position:absolute; left:0; right:0; bottom:0;
  width:max-content; margin-inline:auto;
  animation:float 6s ease-in-out infinite;
}
/* carries the stamp that used to sit in the title block. The red outline hugs
   the words only, and matches the height of the check disc beside it. */
.chip--stamp{ padding:12px; }
.chip--stamp .mono{
  display:inline-flex; align-items:center;
  height:34px; padding:0 18px;
  border:1px solid var(--accent); border-radius:999px;
  color:var(--accent);
  font-size:11px; letter-spacing:.16em;
}
@keyframes float{
  0%,100%{ transform:translateY(0); }
  50%    { transform:translateY(-11px); }
}

/* =========================================================
   VALUE STRIP
   ========================================================= */
.strip{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:26px 0;
  background:var(--paper);
}
.strip__track{ display:flex; justify-content:center; }
.strip__row{
  display:flex; align-items:center; flex-wrap:wrap; justify-content:center;
  gap:clamp(18px,3.4vw,52px);
  padding-inline:var(--gutter);
}
.strip__row span{
  font-size:clamp(16px,1.9vw,26px); font-weight:500;
  letter-spacing:-.03em; color:var(--steel); white-space:nowrap;
}
.strip__row i{ width:6px;height:6px;border-radius:50%;background:var(--accent);opacity:.55;flex:0 0 6px; }

/* =========================================================
   SERVICES
   ========================================================= */
.services{ padding:120px 0 0; }

/* all five in one row: the block has to fit on screen without scrolling,
   so the shots stay small and the set reads at a glance */
.svc{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:18px;
}

.svc__shot{
  position:relative;
  aspect-ratio:4/3;
  border-radius:var(--r);
  overflow:hidden;
  margin-bottom:20px;
  border:1px solid var(--line);
  /* hatched stand-in until the photographs land */
  background:
    repeating-linear-gradient(135deg, var(--paper-2) 0 10px, var(--paper) 10px 20px);
  transition:transform .5s var(--ease), box-shadow .5s var(--ease);
}
.svc__shot img{ width:100%; height:100%; object-fit:cover; }
.svc__num{
  position:absolute; left:14px; top:14px;
  padding:5px 11px; border-radius:999px;
  color:rgba(255,255,255,.94);
  background:rgba(16,18,22,.5);
  backdrop-filter:blur(10px) saturate(1.2);
}
.svc__item:hover .svc__shot{
  transform:translateY(-6px);
  box-shadow:0 36px 60px -40px rgba(20,22,26,.42);
}
.svc__shot{ margin-bottom:16px; }
.svc__item h3{
  font-size:clamp(16px,1.25vw,18.5px);
  font-weight:600; letter-spacing:-.025em; line-height:1.25;
  margin-bottom:6px;
}
.svc__item p{ color:var(--muted); font-size:13.5px; line-height:1.5; }

/* Карточек пять, и в сетке из трёх или двух столбцов последний ряд
   оставался недобранным: справа дыра, а карточка выглядела забытой.
   Поэтому ряды добираем руками, а границы диапазонов не пересекаются —
   иначе span из широкого правила тянулся бы в узкое.

   Три столбца — это шесть дорожек: обычной карточке две, последним двум
   по три. Снимок у широких шире кадром, чтобы ряды были одной высоты. */
@media (min-width:861px) and (max-width:1180px){
  .svc{ grid-template-columns:repeat(6,1fr); }
  .svc__item{ grid-column:span 2; }
  .svc__item:nth-child(4),
  .svc__item:nth-child(5){ grid-column:span 3; }
  .svc__item:nth-child(4) .svc__shot,
  .svc__item:nth-child(5) .svc__shot{ aspect-ratio:16/9; }
}
/* Два столбца: четыре парами, пятая во всю ширину широким кадром. */
@media (min-width:561px) and (max-width:860px){
  .svc{ grid-template-columns:repeat(2,1fr); }
  .svc__item:nth-child(5){ grid-column:1 / -1; }
  .svc__item:nth-child(5) .svc__shot{ aspect-ratio:21/9; }
}
@media (max-width:560px){
  .svc{ grid-template-columns:1fr; }
  .services{ padding:80px 0 0; }
}

/* =========================================================
   SPECIALTIES
   ========================================================= */
.specialties{ padding:var(--seam) 0 0; }
.cards{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}
.card{
  position:relative;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r);
  padding:12px 12px 28px;
  display:flex; flex-direction:column;
  transition:transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.card:hover{
  transform:translateY(-7px);
  border-color:transparent;
  box-shadow:0 40px 66px -42px rgba(20,22,26,.45);
}

.card__media{
  position:relative;
  aspect-ratio:4/3;
  border-radius:calc(var(--r) - 6px);
  overflow:hidden;
  background:var(--paper-2);
  margin-bottom:22px;
}
.card__media img{
  width:100%; height:100%; object-fit:cover;
  transform:scale(1.01);
  /* the four photos come from different shoots — pulling the colour back a
     touch lets them sit together, and hover hands it to the one in focus */
  filter:saturate(.68) contrast(1.02);
  transition:transform 1s var(--ease), filter .6s var(--ease);
}
.card:hover .card__media img{
  transform:scale(1.07);
  filter:saturate(1) contrast(1);
}

.card__idx{
  position:absolute; left:12px; top:12px;
  padding:5px 11px;
  border-radius:999px;
  color:rgba(255,255,255,.94);
  background:rgba(16,18,22,.46);
  backdrop-filter:blur(10px) saturate(1.2);
}

.card h3{
  font-size:21px; font-weight:600; letter-spacing:-.03em; line-height:1.2;
  margin:0 12px 10px;
  transition:color .3s;
}
.card p{ color:var(--muted); font-size:14.5px; margin:0 12px; }
.card h3::after{
  content:""; display:block;
  width:0; height:1px; margin-top:10px;
  background:var(--accent);
  transition:width .55s var(--ease);
}
.card:hover h3::after{ width:38px; }

.specialties__cta{ display:flex; justify-content:center; margin-top:44px; }

/* =========================================================
   GALLERY
   ========================================================= */
.gal{
  position:fixed; inset:0; z-index:300;
  display:grid;
  grid-template-rows:minmax(0,1fr);
  padding:clamp(16px,3vw,34px);
  background:rgba(12,13,16,.94);
  backdrop-filter:blur(18px) saturate(1.2);
  opacity:0;
  transition:opacity .3s var(--ease);
}
.gal.is-open{ opacity:1; }
body.gal-open{ overflow:hidden; }

.gal__stage{
  position:relative;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:14px;
  min-height:0;     /* lets the image shrink inside the grid row */
}
.gal__stage img{
  max-width:min(100%,1500px);
  max-height:100%;
  object-fit:contain;
  border-radius:var(--r);
  box-shadow:0 40px 90px -40px rgba(0,0,0,.8);
}
.gal__stage figcaption{
  display:flex; align-items:center; gap:16px;
  color:rgba(255,255,255,.75); font-size:14px;
  flex:0 0 auto;
}
.gal__stage figcaption .mono{ color:rgba(255,255,255,.45); }

.gal__close,.gal__arrow{
  position:absolute; z-index:2;
  display:grid; place-items:center;
  border:1px solid rgba(255,255,255,.2);
  border-radius:50%;
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(10px);
  color:#fff; cursor:pointer;
  transition:background .25s, border-color .25s, transform .25s var(--ease);
}
.gal__close:hover,.gal__arrow:hover{
  background:var(--accent); border-color:transparent; transform:scale(1.06);
}
.gal__close{ top:clamp(16px,3vw,30px); right:clamp(16px,3vw,30px); width:46px; height:46px; }
.gal__close svg{ width:20px; height:20px; }
.gal__arrow{ top:42%; width:50px; height:50px; }
.gal__arrow svg{ width:18px; height:18px; }
.gal__arrow--prev{ left:clamp(10px,2vw,26px); }
.gal__arrow--next{ right:clamp(10px,2vw,26px); }

.gal__strip{
  display:flex; gap:10px;
  overflow-x:auto;
  justify-content:flex-start;
  /* место под обводку активного кадра со всех сторон: без него она
     срезалась краем ленты, особенно у первого и последнего снимка */
  padding:3px 3px 7px;
  scrollbar-width:none;
  scroll-behavior:smooth;

  /* Края растворяются, когда лента продолжается за ними. Без этого
     обрезанный кадр выглядел как сломанная вёрстка, а не как
     «листай дальше». Ширину растворения ставит main.js — отдельно
     слева и справа, по тому, в какую сторону есть что листать. */
  --fade-l:0px;
  --fade-r:0px;
  -webkit-mask-image:linear-gradient(to right,
      transparent 0, #000 var(--fade-l),
      #000 calc(100% - var(--fade-r)), transparent 100%);
  mask-image:linear-gradient(to right,
      transparent 0, #000 var(--fade-l),
      #000 calc(100% - var(--fade-r)), transparent 100%);
}
.gal__strip::-webkit-scrollbar{ display:none; }
.gal__strip button{
  flex:0 0 auto;
  width:clamp(72px,7vw,104px);
  aspect-ratio:4/3;
  padding:0; border:0; border-radius:10px;
  overflow:hidden; cursor:pointer;
  opacity:.45;
  outline:2px solid transparent; outline-offset:2px;
  transition:opacity .25s, outline-color .25s;
}
.gal__strip button:hover{ opacity:.8; }
.gal__strip button.is-on{ opacity:1; outline-color:var(--accent); }
.gal__strip img{ width:100%; height:100%; object-fit:cover; }

@media (max-width:720px){
  .gal__arrow{ top:auto; bottom:calc(clamp(72px,7vw,104px) * 0.75 + 44px); }
  .gal__stage figcaption{ font-size:13px; }
}

/* =========================================================
   PROCESS
   ========================================================= */
.process{ padding:var(--seam) 0 0; }
.steps{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  border-top:1px solid var(--line);
}
.step{
  padding:34px 26px 46px 0;
  border-right:1px solid var(--line);
  position:relative;
}
.step:last-child{ border-right:0; }
.step::before{
  content:""; position:absolute; top:-1px; left:0;
  width:0; height:1px; background:var(--accent);
  transition:width .8s var(--ease);
  transition-delay:calc(var(--d,0) * 120ms);
}
.step.is-in::before{ width:100%; }
.step__n{ display:block; color:var(--accent); margin-bottom:22px; }
.step h3{
  font-size:19px; font-weight:600; letter-spacing:-.025em; margin-bottom:10px;
}
.step p{ color:var(--muted); font-size:14px; }

/* A photo trails the cursor across the steps. The dimming is applied to the
   children, not to .step itself, so it does not fight the staggered reveal. */
.peek{
  position:fixed; top:0; left:0;
  width:clamp(210px,19vw,300px);
  aspect-ratio:16/10;
  border-radius:16px;
  overflow:hidden;
  pointer-events:none;
  z-index:55;
  opacity:0;
  transform:translate3d(-120vw,0,0);
  transition:opacity .4s var(--ease),
             transform .3s cubic-bezier(.22,.61,.36,1);
  box-shadow:0 34px 62px -34px rgba(20,22,26,.6);
  border:1px solid rgba(255,255,255,.7);
  will-change:transform,opacity;
}
.peek.is-on{ opacity:1; }
.peek img{
  position:absolute; inset:0;
  width:100%; height:100%; object-fit:cover;
  opacity:0;
  transition:opacity .25s var(--ease);
}
.peek img.is-on{ opacity:1; }

/* Снимок внутри карточки шага. Его ставит js/main.js — и только там, где
   бегающей за курсором фотографии не будет: на планшете и телефоне
   курсора нет, а у тех, кто просил «не двигать», она отключена. Снимки
   те же самые, их переносят из .peek, поэтому лишней загрузки нет. */
.step__shot{
  display:block; width:100%;
  aspect-ratio:4/3; object-fit:cover;
  border:1px solid var(--line);
  border-radius:var(--r);
  margin-bottom:24px;
  background:var(--paper-2);
}

@media (hover:hover) and (pointer:fine){
  .step > *{ transition:opacity .35s var(--ease); }
  .steps:hover .step > *{ opacity:.38; }
  /* the one under the cursor keeps its full weight — .is-lit is set in JS so
     this never depends on :hover reaching the right element */
  .steps:hover .step:hover > *,
  .steps:hover .step.is-lit > *{ opacity:1; }
}

/* =========================================================
   REVIEWS
   ========================================================= */
.reviews{ padding:var(--seam) 0 0; }

/* A rail rather than a grid: reviews are added one at a time, and a row that
   scrolls sideways reads as deliberate whether there are two of them or ten. */
.rail{
  display:flex;
  gap:20px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-padding-left:var(--gutter);
  scrollbar-width:none;
  /* let the cards run to the edge of the screen, not the container */
  margin-inline:calc(var(--gutter) * -1);
  padding-inline:var(--gutter);
  padding-bottom:6px;
  overscroll-behavior-x:contain;
}
.rail::-webkit-scrollbar{ display:none; }

/* Ленту можно тянуть мышью: курсор над карточками об этом и говорит.
   Над формой — обычная стрелка, там пишут, а не тянут. */
.rev{ cursor:grab; }
.rev--form{ cursor:auto; }
.rail.is-dragging,
.rail.is-dragging .rev{ cursor:grabbing; }
/* Во время ведения ничего не выделяем и не тащим картинки. */
.rail.is-dragging{ user-select:none; -webkit-user-select:none; }
.rail.is-dragging img{ pointer-events:none; }

/* Ширину карточке задаёт не вёрстка, а длина отзыва: класс rev--w1/w2/w3
   ставит main.js по числу символов. Короткий отзыв в широкой карточке
   оставлял половину пустой — теперь он просто уже. */
/* Карточки тёмные все до одной. Светлой в ленте остаётся только форма:
   она не отзыв, и по цвету сразу видно, что в неё пишут, а не читают. */
/* Карточка, которая ещё не выехала, снап-точку не задаёт.
   Область прилипания считается по смещённой рамке: пока карточка стоит
   сдвинутой на 44px, лента при загрузке прилипала к этому сдвигу и
   потом сползала обратно вместе с анимацией. */
.rail .reveal--x:not(.is-in){ scroll-snap-align:none; }

.rev{
  flex:0 0 clamp(280px, 30%, 400px);
  scroll-snap-align:start;
  background:var(--ink);
  border:1px solid var(--ink);
  border-radius:var(--r);
  padding:34px 30px 30px;
  display:flex; flex-direction:column; justify-content:space-between; gap:30px;
}
.rev blockquote{
  font-size:16px; line-height:1.55; letter-spacing:-.015em;
  color:rgba(255,255,255,.92);
}
.rev figcaption{ display:flex; align-items:center; gap:14px; }
.rev figcaption b{
  display:block; font-size:14.5px; font-weight:600; letter-spacing:-.015em;
  color:#fff;
}
.rev figcaption i{
  display:block; font-style:normal; font-size:12px; margin-top:2px;
  color:rgba(255,255,255,.55);
}
.rev__avatar{
  width:42px;height:42px;flex:0 0 42px;
  display:grid;place-items:center;border-radius:50%;
  background:var(--accent); color:#fff;
  font-weight:700; font-size:15px;
}

/* ---- три ширины под длину текста ----
   w1 совпадает с шириной формы: это нижняя граница, уже карточка не
   становится. Длиннее текст — карточка растёт вправо. */
.rev--w1{ flex-basis:clamp(280px, 30%, 400px); }
.rev--w2{ flex-basis:clamp(300px, 38%, 505px); }
.rev--w3{ flex-basis:clamp(320px, 50%, 660px); }

/* Кегль тоже от длины: короткую цитату набираем крупнее, иначе она
   болтается в карточке мелкой строчкой. Приём обычный для вёрстки
   цитат — чем короче, тем крупнее. */
.rev--w1 blockquote{ font-size:18.5px; line-height:1.5; }
.rev--w2 blockquote{ font-size:16.5px; }
.rev--w3 blockquote{ font-size:15.5px; }

/* placeholder card — obviously a slot, not a fake review */
.rev--slot{
  background:none;
  border-style:dashed;
  border-color:#D2D2CB;      /* a shade past --line, so the dashes actually read */
  color:var(--muted);
}
.rev--slot blockquote{ color:var(--muted); }
.rev--slot .rev__slotTag{ display:block; color:var(--accent); margin-bottom:14px; }
.rev--slot .rev__avatar{ background:var(--line); color:var(--muted); }
.rev--slot figcaption b{ color:var(--muted); font-weight:500; }
.rev--slot figcaption i{ color:var(--muted); }

/* arrows, parked next to the section heading */
.rail__nav{ display:flex; gap:8px; padding-bottom:8px; }
.rail__btn{
  width:46px; height:46px;
  display:grid; place-items:center;
  border:1px solid var(--line); border-radius:50%;
  background:var(--white); color:var(--ink);
  cursor:pointer;
  transition:background .3s, border-color .3s, color .3s, opacity .3s;
}
.rail__btn svg{ width:16px; height:16px; }
.rail__btn:hover:not(:disabled){ background:var(--ink); border-color:var(--ink); color:#fff; }
.rail__btn:disabled{ opacity:.32; cursor:default; }

@media (max-width:720px){
  .rev{ flex-basis:min(84%,340px); }
}

/* =========================================================
   TEAM
   ========================================================= */
.team{ padding:var(--seam) 0 0; }
/* one-person feature: portrait beside the bio */
.founder{
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
  gap:clamp(28px,4vw,64px);
  align-items:center;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  padding:clamp(16px,1.6vw,22px);
}
.founder__photo{
  position:relative;
  aspect-ratio:4/5;
  border-radius:calc(var(--r-lg) - 8px);
  overflow:hidden;
  background:var(--paper-2);
}
/* position:absolute — чтобы высоту рамки задавала она сама (пропорция
   или, на планшете, соседняя колонка), а не высота файла. */
.founder__photo img{
  position:absolute; inset:0;
  width:100%; height:100%; object-fit:cover; object-position:50% 22%;
}
.founder__tag{
  position:absolute; left:14px; top:14px;
  padding:5px 12px; border-radius:999px;
  color:rgba(255,255,255,.94);
  background:rgba(16,18,22,.46);
  backdrop-filter:blur(10px) saturate(1.2);
}

.founder__body{ padding:clamp(6px,1.6vw,26px) clamp(6px,2vw,34px) clamp(6px,1.6vw,26px) 0; }
.founder__body h3{
  font-size:clamp(28px,3.2vw,44px);
  font-weight:600; letter-spacing:-.035em; line-height:1.05;
  margin-bottom:22px;
}
.founder__bio{ color:var(--muted); font-size:clamp(15px,1.2vw,17px); max-width:46ch; }
.founder__bio + .founder__bio{ margin-top:15px; }

/* sign-off under the welcome note */
.founder__sign{ margin-top:26px; }
.founder__sign img{
  width:auto; height:clamp(38px,4vw,54px);
  margin-bottom:8px;
  opacity:.9;
}
.founder__sign .mono{ display:block; color:var(--muted); }

.founder__facts{
  display:grid; gap:2px;
  margin-top:30px;
  border-top:1px solid var(--line);
}
.founder__facts li{
  display:flex; align-items:baseline; gap:22px;
  padding:15px 0;
  border-bottom:1px solid var(--line-soft);
}
.founder__facts .mono{ color:var(--muted); width:96px; flex:0 0 96px; }
.founder__facts b{ font-size:16px; font-weight:600; letter-spacing:-.02em; }
.founder__facts a{ transition:color .25s; }
.founder__facts a:hover{ color:var(--accent); }

@media (max-width:980px){
  .founder{ grid-template-columns:1fr; }
  .founder__body{ padding:8px 10px 18px; }
  .founder__photo{ aspect-ratio:3/2; }
  .founder__photo img{ object-position:50% 18%; }
}

/* =========================================================
   CTA / CONTACT
   ========================================================= */
.cta{
  margin-top:var(--seam);   /* зазор до тёмного блока — такой же, как между разделами */
  background:var(--ink);
  color:#fff;
  padding:120px 0;
  border-radius:var(--r-lg) var(--r-lg) 0 0;
}
.cta__inner{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:80px;
  align-items:start;
}
.cta__copy p{
  color:rgba(255,255,255,.6);
  font-size:17px; max-width:44ch;
  margin:24px 0 46px;
}
/* Форма справа заметно выше списка контактов слева. Тянем левую колонку
   на всю высоту строки и разводим содержимое: заголовок остаётся наверху,
   контакты встают по центру свободного места под ним. Иначе список жмётся
   к заголовку, а под ним зияет пустота. */
.cta__copy{
  align-self:stretch;
  display:flex; flex-direction:column;
}
.cta__links{ display:grid; gap:2px; margin-block:auto; }
.cta__link{
  display:flex; align-items:baseline; gap:20px;
  padding:20px 0;
  border-top:1px solid rgba(255,255,255,.14);
  transition:padding-left .4s var(--ease);
}
.cta__link:last-child{ border-bottom:1px solid rgba(255,255,255,.14); }
.cta__link:hover{ padding-left:10px; }
.cta__link--plain{ cursor:default; }
.cta__link--plain:hover{ padding-left:0; }
.cta__link--plain:hover b{ color:inherit; }
.cta__link .mono{ color:rgba(255,255,255,.4); width:70px; flex:0 0 70px; }
.cta__link b{
  font-size:clamp(19px,2vw,26px); font-weight:500; letter-spacing:-.03em;
  transition:color .3s;
}
.cta__link:hover b{ color:var(--accent); }

.quote-form{
  background:#fff; color:var(--ink);
  border-radius:var(--r-lg);
  padding:34px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.quote-form__title{
  grid-column:1/-1; color:var(--muted);
  padding-bottom:16px; border-bottom:1px solid var(--line-soft);
}
.field{ display:grid; gap:8px; }
.field--full{ grid-column:1/-1; }
.field > span{
  font-family:var(--mono); font-size:10px; letter-spacing:.14em;
  text-transform:uppercase; color:var(--muted);
}
.field input,.field select,.field textarea{
  font:inherit; font-size:15px; color:var(--ink);
  background:var(--paper);
  border:1px solid transparent;
  border-radius:12px;
  padding:13px 15px;
  width:100%;
  outline:none;
  transition:border-color .25s, background .25s;
}
.field textarea{ resize:vertical; min-height:92px; }
.field input:focus,.field select:focus,.field textarea:focus{
  border-color:var(--ink); background:#fff;
}
.field input:user-invalid{ border-color:var(--accent); }
.quote-form .btn{ grid-column:1/-1; margin-top:6px; }
.quote-form__note{
  grid-column:1/-1; font-size:13px; color:var(--muted); min-height:18px;
}
.quote-form__note.is-ok{ color:#1a7f4b; }
.quote-form__note.is-err{ color:var(--accent); }

/* =========================================================
   404
   ========================================================= */
.nf{
  position:relative;
  min-height:100vh;
  display:flex; align-items:center;
  padding:calc(var(--header-h) + 70px) 0 90px;
  overflow:hidden;
}
.nf__inner{
  position:relative; z-index:2;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:70px; align-items:center;
}
.nf__sheet{ order:2; }
.nf__copy{ order:1; }
.nf__copy .h2{ margin-bottom:22px; }
.nf__cta{ display:flex; flex-wrap:wrap; gap:14px; margin:34px 0 0; }
.nf__links{ margin-top:38px; padding-top:26px; border-top:1px solid var(--line); }
.nf__links a{ color:var(--ink-soft); transition:color .25s; }
.nf__links a:hover{ color:var(--accent); }
.nf .footer{ margin-top:0; }

@media (max-width:980px){
  .nf__inner{ grid-template-columns:1fr; gap:48px; }
  .nf__sheet{ order:1; }
  .nf__copy{ order:2; }
  .nf{ min-height:0; padding-bottom:70px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer{ background:var(--ink); color:#fff; padding:0 0 30px; }
.footer__inner{
  display:grid;
  grid-template-columns:1.6fr 1fr 1fr 1.1fr;
  gap:50px;
  padding-top:80px;
  padding-bottom:70px;
  border-top:1px solid rgba(255,255,255,.12);
}
.footer__logo{ width:190px; margin-bottom:22px; }
.footer__brand p{ color:rgba(255,255,255,.5); font-size:14.5px; max-width:34ch; }
.footer__nav,.footer__contact{ display:grid; gap:12px; align-content:start; }
.footer__nav .mono,.footer__contact .mono{ color:rgba(255,255,255,.38); margin-bottom:6px; }
.footer__nav a,.footer__contact a{
  font-size:14.5px; color:rgba(255,255,255,.72); transition:color .25s;
}
.footer__contact address{
  font-style:normal; font-size:14.5px; line-height:1.5;
  color:rgba(255,255,255,.72);
}
.footer__nav a:hover,.footer__contact a:hover{ color:var(--accent); }
.footer__social{ display:flex; gap:10px; margin-top:12px; }
.footer__social a{
  width:38px;height:38px;display:grid;place-items:center;border-radius:50%;
  border:1px solid rgba(255,255,255,.16);
  font-family:var(--mono); font-size:10px; letter-spacing:.08em;
  transition:background .3s, border-color .3s, color .3s;
}
.footer__social a:hover{ background:var(--accent); border-color:var(--accent); color:#fff; }

.footer__bottom{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:26px;
  border-top:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.4);
}
.footer__top{
  width:42px;height:42px;display:grid;place-items:center;border-radius:50%;
  border:1px solid rgba(255,255,255,.16); color:#fff;
  transition:background .3s, border-color .3s, transform .3s var(--ease);
}
.footer__top svg{ width:16px;height:16px; }
.footer__top:hover{ background:var(--accent); border-color:var(--accent); transform:translateY(-3px); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:1180px){
  :root{ --gutter:32px; }
  .cards{ grid-template-columns:repeat(2,1fr); }
}

/* Шагов пять, и в трёх столбцах последний ряд стоял недобранным — справа
   дыра. Шесть дорожек: обычному шагу две, четвёртому и пятому по три, и
   оба ряда целые. Границы диапазона не пересекаются с телефонным
   правилом ниже, иначе span дотянулся бы и до одного столбца. */
@media (min-width:721px) and (max-width:1180px){
  .steps{ grid-template-columns:repeat(6,1fr); }
  .step{ grid-column:span 2; }
  .step:nth-child(4),
  .step:nth-child(5){ grid-column:span 3; }
  .step:nth-child(3){ border-right:0; }
  /* широкий шаг — широкий кадр, чтобы ряды были одной высоты */
  .step:nth-child(4) .step__shot,
  .step:nth-child(5) .step__shot{ aspect-ratio:16/9; }
}

/* Планшет лежа: две колонки ещё стоят рядом, но текст слева выше
   карточки справа — низы не совпадали, и под карточкой оставалась
   пустота, в которой висела плашка. Кадр растягиваем на высоту соседней
   колонки: что останется, займёт фотография, а не воздух. */
@media (min-width:981px) and (max-width:1180px){
  .hero__grid{ align-items:stretch; gap:48px; }
  .hero__cta{ margin-bottom:46px; }
  .hero__panel{ display:flex; flex-direction:column; }
  .hero__panel .plan{ flex:1; display:flex; flex-direction:column; }
  .hero__panel .film{ flex:1; aspect-ratio:auto; min-height:230px; }

  /* то же в блоке о Жене: фотография по высоте рассказа рядом */
  .founder{ align-items:stretch; }
  .founder__photo{ aspect-ratio:auto; min-height:380px; }
}

/* Планшет стоя — ширина, на которую сайт не был рассчитан: правила
   телефона, растянутые до 810 пикселей. Текст держался за свои 46
   знаков в строке и занимал половину ширины, кнопки жались к левому
   краю, и справа от них зияла пустота.

   Первый экран: подпись шире, кнопки делят строку поровну и встают
   вровень с фотографией и цифрами над ними.

   Блок о Жене: фотография во всю ширину, как и была, а рассказ под ней
   — в две колонки. Строка остаётся прежней длины, а карточка заполнена;
   растянуть те же три абзаца на всю ширину было бы хуже — в строку
   влезло бы под девяносто знаков, и глаз терял бы начало следующей. */
@media (min-width:721px) and (max-width:980px){
  .hero__lead{ max-width:64ch; }
  .hero__cta{ gap:16px; }
  /* flex:1 1 0 — обе кнопки одной ширины, независимо от длины надписи.
     Предел в половину строки нужен для случая, когда кнопка осталась
     одна: пока в галерее нет снимков, «View our work» скрыта целиком
     (body.no-work), и без предела соседка растянулась бы через весь
     экран. */
  .hero__cta .btn{
    flex:1 1 0; justify-content:center;
    max-width:calc(50% - 8px);     /* половина строки за вычетом полщели */
  }

  .founder__body{
    padding:10px 10px 14px 0;
    columns:2; column-gap:34px;
  }
  .founder__body h3{ column-span:all; }        /* заголовок над обеими */
  .founder__sign{ break-inside:avoid; }        /* подпись не рвётся пополам */
}

@media (max-width:980px){
  .nav{
    position:fixed; inset:var(--header-h) 0 auto 0;
    flex-direction:column; gap:0;
    background:rgba(244,244,241,.97);
    backdrop-filter:blur(16px);
    border-bottom:1px solid var(--line);
    padding:10px var(--gutter) 26px;
    transform:translateY(-12px);
    opacity:0; visibility:hidden; pointer-events:none;
    transition:opacity .3s var(--ease), transform .35s var(--ease), visibility .3s;
  }
  .nav.is-open{ opacity:1; visibility:visible; transform:none; pointer-events:auto; }
  .nav a{ padding:15px 0; border-bottom:1px solid var(--line-soft); font-size:17px; }
  .burger{ display:flex; }

  /* One column, and the reading order changes: headline, the numbers, the
     drawing sheet, and only then the buttons. `display:contents` dissolves
     .hero__copy so its children can be ordered against .hero__panel. */
  .hero__grid{ grid-template-columns:1fr; gap:0; }
  .hero{ padding-bottom:80px; }
  .hero__copy{ display:contents; }
  .hero__title{ order:1; margin-bottom:18px; }
  .hero__lead{ order:2; margin-bottom:32px; }
  .hero__facts{ order:3; margin-bottom:44px; }
  .hero__panel{ order:4; margin-bottom:30px; }
  .hero__cta{ order:5; margin-bottom:0; }

  /* three across, evenly divided, so they sit square to both screen edges */
  .hero__facts{
    display:grid; grid-template-columns:repeat(3,1fr);
    gap:0 14px; padding-top:26px;
  }

  .cta__inner{ grid-template-columns:1fr; gap:52px; }
  /* колонки встали друг под друга — центрировать нечего, но и прижимать
     список вплотную к заголовку нельзя */
  .cta__links{ margin-block:26px 0; }
  .footer__inner{ grid-template-columns:1fr 1fr; gap:44px; }
}

@media (max-width:720px){
  :root{ --gutter:20px; }
  .sec-head{ gap:22px; margin-bottom:40px; }
  .process .sec-head{ margin-bottom:46px; }
  .cards{ grid-template-columns:1fr; }
  .quote-form{ grid-template-columns:1fr; padding:26px 22px; }
  .steps{ grid-template-columns:1fr; }
  .step{ border-right:0; border-top:1px solid var(--line); padding:26px 0 30px; }
  /* во всю ширину экрана 4:3 — это полэкрана на один снимок */
  .step__shot{ aspect-ratio:16/9; margin-bottom:18px; }
  .steps{ border-top:0; }
  .step::before{ display:none; }
  .hero__facts{ gap:22px 36px; }
  .footer__inner{ grid-template-columns:1fr; gap:36px; }
  .cta{ padding:80px 0; }
  .btn{ font-size:14.5px; }

  .header__inner{ gap:12px; }
  .header__actions{ gap:8px; }
  .header .btn--sm{ padding:9px 9px 9px 16px; font-size:13px; }
  .header .btn--sm .btn__arrow{ width:24px;height:24px;flex-basis:24px; }
  .brand__text{ font-size:17px; }
  .hero__title{ font-size:clamp(34px,8.6vw,44px); }
  .hero__cta .btn{ flex:1 1 100%; justify-content:center; }
  .hero__cta .btn--dark{ justify-content:space-between; }
}

@media (max-width:400px){
  .header .btn--sm{ padding:9px; }
  .header .btn--sm .btn__arrow{ display:none; }
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-delay:.01ms !important;      /* the plan is staggered by delay, not duration */
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    transition-delay:0s !important;
  }
  .reveal{ opacity:1; transform:none; }
}

/* =========================================================
   PLANS — catalogue
   ========================================================= */
.cat{ padding:calc(var(--header-h) + 60px) 0 110px; }

.cat__intro{ margin-bottom:34px; }

.cat__bar{
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:18px;
  padding-bottom:22px;
  border-bottom:1px solid var(--line);
  margin-bottom:34px;
}
.cat__count{ font-size:clamp(22px,2.4vw,32px); font-weight:600; letter-spacing:-.03em; }
.cat__tools{ display:flex; align-items:center; flex-wrap:wrap; gap:12px; }

/* image / floor-plan switch */
.seg{
  display:flex;
  border:1px solid var(--line); border-radius:999px;
  background:var(--white);
  padding:3px;
}
.seg__btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:9px 16px; border:0; border-radius:999px;
  background:none; color:var(--ink-soft);
  font-size:14px; font-weight:600; letter-spacing:-.01em;
  cursor:pointer; white-space:nowrap;
  transition:background .25s, color .25s;
}
.seg__btn svg{ width:16px; height:16px; }
.seg__btn.is-on{ background:var(--ink); color:#fff; }

.cat__sort{
  display:inline-flex; align-items:center; gap:10px;
  padding:6px 14px 6px 16px;
  border:1px solid var(--line); border-radius:999px;
  background:var(--white);
}
.cat__sort .mono{ color:var(--muted); }
.cat__sort select{
  font:inherit; font-size:14px; font-weight:600;
  border:0; background:none; color:var(--ink);
  padding:6px 4px; cursor:pointer; outline:none;
}
.cat__filterBtn{ display:none; }

.cat__body{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:40px;
  align-items:start;
}

/* ---- plan cards ---- */
.pgrid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.pcard{
  display:block;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r);
  overflow:hidden;
  transition:transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.pcard:hover{
  transform:translateY(-5px);
  border-color:transparent;
  box-shadow:0 34px 60px -40px rgba(20,22,26,.45);
}
.pcard__shot{ aspect-ratio:4/3; overflow:hidden; background:var(--paper-2); }
.pcard__shot img{ width:100%; height:100%; object-fit:cover; }

.pcard__head{
  display:flex; align-items:flex-start; justify-content:space-between; gap:14px;
  padding:16px 18px 12px;
}
.pcard__head b{ display:block; font-size:13px; letter-spacing:.1em; }
.pcard__head i{
  display:block; font-style:normal; font-size:11.5px; color:var(--muted); margin-top:3px;
}
.pcard__price{ text-align:right; font-size:11.5px; color:var(--muted); }
.pcard__price b{
  display:block; font-size:16px; font-weight:700; color:var(--ink);
  letter-spacing:-.02em; margin-top:2px;
}

.pcard__specs{
  display:grid; grid-template-columns:repeat(5,1fr);
  border-top:1px solid var(--line-soft);
}
.pcard__specs li{
  padding:12px 4px; text-align:center;
  border-right:1px solid var(--line-soft);
}
.pcard__specs li:last-child{ border-right:0; }
.pcard__specs b{ display:block; font-size:15px; font-weight:700; letter-spacing:-.02em; }
.pcard__specs span{
  display:block; font-family:var(--mono); font-size:8.5px;
  letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-top:3px;
}

.pgrid__empty{ padding:60px 0; text-align:center; color:var(--muted); }
.pgrid__empty a{ color:var(--accent); text-decoration:underline; }

/* ---- filter rail ---- */
.filt{
  position:sticky; top:calc(var(--header-h) + 20px);
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r);
  padding:6px 22px 22px;
}
.filt__group{ padding:20px 0; border-bottom:1px solid var(--line-soft); }
.filt__group:last-of-type{ border-bottom:0; }
.filt__title{ font-size:14.5px; font-weight:600; letter-spacing:-.02em; margin-bottom:14px; }

.filt__range{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.filt__range input{
  font:inherit; font-size:14px;
  width:100%; padding:11px 13px;
  border:1px solid var(--line); border-radius:11px;
  background:var(--paper); color:var(--ink);
  outline:none; transition:border-color .25s, background .25s;
}
.filt__range input:focus{ border-color:var(--ink); background:#fff; }

.filt__chips{ display:flex; flex-wrap:wrap; gap:8px; }
.filt__chips label{ cursor:pointer; }
.filt__chips input{ position:absolute; opacity:0; pointer-events:none; }
.filt__chips span{
  display:grid; place-items:center;
  min-width:46px; padding:9px 12px;
  border:1px solid var(--line); border-radius:999px;
  font-size:14px; font-weight:600;
  transition:background .25s, border-color .25s, color .25s;
}
.filt__chips label:hover span{ border-color:var(--steel); }
.filt__chips input:checked + span{
  background:var(--ink); border-color:var(--ink); color:#fff;
}
.filt__chips input:focus-visible + span{ outline:2px solid var(--accent); outline-offset:2px; }

.filt__reset{ width:100%; justify-content:center; margin-top:18px; }

/* Drawer chrome: only ever visible once .filt turns into a drawer, below.
   These live above that media query on purpose — a later base rule of the
   same specificity would win over it and keep the header hidden. */
.filt__head{ display:none; }
.filt__headTitle{ font-size:17px; font-weight:600; letter-spacing:-.02em; }
.filt__done{
  border:0; border-radius:999px;
  background:var(--ink); color:#fff;
  padding:9px 20px;
  font-size:14px; font-weight:600;
  cursor:pointer;
}
.filt__scrim{ display:none; }

@media (max-width:1100px){
  .pgrid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:980px){
  .cat__body{ grid-template-columns:1fr; }
  .cat__filterBtn{ display:inline-flex; }

  /* the rail becomes a drawer off the right edge, with a scrim behind it */
  .filt{
    position:fixed; inset:0 0 0 auto; z-index:120;
    width:min(390px,92vw);
    border-width:0 0 0 1px; border-radius:0;
    padding:0 22px 26px;
    overflow-y:auto; overscroll-behavior:contain;
    transform:translateX(101%);
    transition:transform .4s var(--ease);
  }
  body.filters-open .filt{ transform:none; }
  body.filters-open{ overflow:hidden; }

  .filt__head{
    position:sticky; top:0; z-index:2;
    display:flex; align-items:center; justify-content:space-between; gap:16px;
    padding:18px 0 14px;
    background:var(--white);
    border-bottom:1px solid var(--line-soft);
  }
  .filt__scrim{
    display:block;
    position:fixed; inset:0; z-index:110;
    background:rgba(12,13,16,.5);
    opacity:0; visibility:hidden;
    transition:opacity .3s, visibility .3s;
  }
  body.filters-open .filt__scrim{ opacity:1; visibility:visible; }
}
@media (max-width:640px){
  .pgrid{ grid-template-columns:1fr; }
  .cat__bar{ align-items:flex-start; }
  .cat__tools{ width:100%; }
  .cat__sort{ flex:1 1 auto; }
  .seg__btn{ padding:9px 13px; font-size:13px; }
}
/* =========================================================
   PLANS — one plan
   ========================================================= */
.pdp{ padding:calc(var(--header-h) + 40px) 0 110px; }

.pdp__back{
  display:inline-flex; align-items:center; gap:9px;
  color:var(--muted); font-size:14px; font-weight:500;
  margin-bottom:28px; transition:color .25s;
}
.pdp__back svg{ width:15px; height:15px; }
.pdp__back:hover{ color:var(--accent); }

.pdp__top{
  display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);
  gap:clamp(28px,4vw,56px);
  align-items:start;
  padding-bottom:46px;
  border-bottom:1px solid var(--line);
}
.pdp__shot{
  aspect-ratio:4/3; overflow:hidden;
  border:1px solid var(--line); border-radius:var(--r-lg);
  background:var(--paper-2);
}
.pdp__shot img{ width:100%; height:100%; object-fit:cover; }

.pdp__strip{ display:flex; gap:12px; margin-top:14px; }
.pdp__strip button{
  flex:0 0 auto; width:116px;
  padding:0; border:1px solid var(--line); border-radius:12px;
  background:var(--white); cursor:pointer; overflow:hidden;
  transition:border-color .25s, transform .25s var(--ease);
}
.pdp__strip button img{ width:100%; aspect-ratio:4/3; object-fit:cover; display:block; }
.pdp__strip button span{ display:block; padding:7px 4px; color:var(--muted); }
.pdp__strip button:hover{ transform:translateY(-2px); }
.pdp__strip button.is-on{ border-color:var(--accent); }
.pdp__strip button.is-on span{ color:var(--ink); }

.pdp__name{
  font-size:clamp(26px,3vw,40px); font-weight:600;
  letter-spacing:-.035em; line-height:1.08;
  margin-bottom:16px;
}
.pdp__price{ color:var(--muted); font-size:14px; margin-bottom:26px; }
.pdp__price b{
  display:block; color:var(--ink);
  font-size:clamp(26px,2.6vw,34px); font-weight:700; letter-spacing:-.03em;
  margin-top:2px;
}
.pdp__specs{
  display:grid; grid-template-columns:repeat(5,1fr);
  border:1px solid var(--line); border-radius:var(--r);
  background:var(--white);
  overflow:hidden;
}
.pdp__specs li{ padding:14px 4px; text-align:center; border-right:1px solid var(--line-soft); }
.pdp__specs li:last-child{ border-right:0; }
.pdp__specs b{ display:block; font-size:17px; font-weight:700; letter-spacing:-.02em; }
.pdp__specs span{
  display:block; font-family:var(--mono); font-size:8.5px;
  letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-top:4px;
}
.pdp__cta{ display:flex; flex-wrap:wrap; gap:12px; margin-top:26px; }

.pdp__body{
  display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);
  gap:clamp(28px,4vw,56px);
  padding:46px 0;
  border-bottom:1px solid var(--line);
}
.pdp__h3{
  font-size:clamp(19px,1.8vw,24px); font-weight:600;
  letter-spacing:-.03em; margin-bottom:14px;
}
.pdp__desc{ color:var(--muted); font-size:16px; margin-bottom:34px; max-width:60ch; }

.pdp__facts{ display:grid; gap:2px; border-top:1px solid var(--line); }
.pdp__facts > div{
  display:flex; align-items:baseline; gap:20px;
  padding:14px 0; border-bottom:1px solid var(--line-soft);
}
.pdp__facts dt{ color:var(--muted); width:90px; flex:0 0 90px; }
.pdp__facts dd{ margin:0; font-size:15px; font-weight:600; letter-spacing:-.02em; }

.pdp__more{ padding-top:46px; }
.pdp__more .pgrid{ grid-template-columns:repeat(3,1fr); }

@media (max-width:980px){
  .pdp__top,.pdp__body{ grid-template-columns:1fr; }
  .pdp__more .pgrid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:640px){
  .pdp__more .pgrid{ grid-template-columns:1fr; }
}

/* =========================================================
   HEADER — plans button
   ========================================================= */
/* Кружок со стрелкой слева — набивка под иконку. По вертикали ровно
   столько же, сколько у .btn--sm (11px): иначе эта кнопка ниже соседней
   «Get a quote», и при скруглении 999px выглядит менее круглой. */
.header__plans{ padding:11px 20px 11px 8px; }
.btn--sm .btn__play{ width:26px; height:26px; flex-basis:26px; }
.btn--sm .btn__play svg{ width:13px; height:13px; }
/* the nav is still a row down to 980px; this button is what makes that row
   overflow first, so it steps out earlier and lives in the burger menu */
@media (max-width:1180px){ .header__plans{ display:none; } }

/* =========================================================
   FILTERS — checkbox rows, and the drawer on narrow screens
   ========================================================= */
.filt__checks{ display:grid; gap:2px; }
.filt__check{
  display:grid; grid-template-columns:auto minmax(0,1fr) auto;
  align-items:start; gap:11px;
  padding:7px 0;
  font-size:14px; line-height:1.35;
  cursor:pointer;
}
.filt__check input{ position:absolute; opacity:0; pointer-events:none; }
.filt__box{
  position:relative;
  width:18px; height:18px; margin-top:1px;
  border:1px solid var(--line); border-radius:5px;
  background:var(--paper);
  transition:background .2s, border-color .2s;
}
.filt__check input:checked + .filt__box{ background:var(--ink); border-color:var(--ink); }
.filt__check input:checked + .filt__box::after{
  content:""; position:absolute; left:5.5px; top:1.5px;
  width:5px; height:10px;
  border:solid #fff; border-width:0 2px 2px 0;
  transform:rotate(45deg);
}
.filt__check input:focus-visible + .filt__box{ outline:2px solid var(--accent); outline-offset:2px; }
.filt__check:hover .filt__box{ border-color:var(--steel); }
.filt__n{ color:var(--muted); font-size:11px; padding-top:3px; }
/* a type nobody has drawn yet still shows, with its zero — it tells the
   reader what the catalogue will carry */
.filt__check.is-empty{ cursor:default; opacity:.45; }
.filt__check.is-empty:hover .filt__box{ border-color:var(--line); }
.filt__note{ font-size:12px; color:var(--muted); margin-top:11px; }


/* =========================================================
   PLAN DETAIL — spec sheet, inclusions, buy note
   ========================================================= */
.pdp__h2{
  font-size:clamp(22px,2.4vw,30px); font-weight:600;
  letter-spacing:-.03em; margin-bottom:26px;
}
.pdp__specsheet{ padding:46px 0; border-bottom:1px solid var(--line); }

.specs{
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:18px; align-items:start;
}
.spec{
  background:var(--white);
  border:1px solid var(--line); border-radius:var(--r);
  padding:20px 22px 16px;
}
.spec__h{ font-size:15px; font-weight:700; letter-spacing:-.02em; margin-bottom:10px; }
.spec__list{ margin:0; }
.spec__row{
  display:flex; align-items:baseline; justify-content:space-between; gap:16px;
  padding:9px 0;
  border-top:1px solid var(--line-soft);
}
.spec__row:first-child{ border-top:0; }
.spec__row dt{ color:var(--muted); font-size:13.5px; }
.spec__row dd{
  margin:0; text-align:right;
  font-size:14px; font-weight:700; letter-spacing:-.02em;
}
.spec__row dd span + span{ margin-left:16px; }
.spec__row--head dt,
.spec__row--head dd{
  font-family:var(--mono); font-size:9.5px; font-weight:500;
  letter-spacing:.12em; text-transform:uppercase; color:var(--muted);
}
.spec__row--head{ margin-top:4px; }

.ticks{ display:grid; gap:9px; margin-bottom:34px; }
.ticks li{ position:relative; padding-left:26px; font-size:15px; line-height:1.5; }
.ticks li::before{
  content:""; position:absolute; left:0; top:6px;
  width:13px; height:7px;
  border:solid var(--accent); border-width:0 0 2px 2px;
  transform:rotate(-45deg);
}
/* Запас снизу, иначе следующий заголовок ложится вплотную на последний
   пункт списка. */
.nots{ display:grid; gap:8px; margin-bottom:34px; }
/* Шаг строк кратен четырём: line-height 24 + gap 8 = 32, двухстрочный
   пункт 48 + 8 = 56. При множителе 1.5 строка выходила 22.5px, пункты
   вставали на дробные координаты, и одна и та же полоска на разных строках
   растрировалась по-разному — на site plan она выглядела тоньше. Кратность
   четырём держит все пункты в одной фазе при любом масштабе экрана
   (1.25, 1.5, 1.75, 2). */
.nots li{ position:relative; padding-left:26px; font-size:15px; line-height:24px; }
.nots li::before{
  content:""; position:absolute; left:0; top:11px;
  /* ровно 2px: нецелая толщина (было 1.8) размазывалась по трём рядам
     пикселей и давала разную плотность на соседних строках */
  width:13px; height:2px; background:var(--steel);
}
.nots b{ font-weight:600; }
.nots span{ color:var(--muted); }
.nots span::before{ content:" \2014 "; }

.pdp__note{
  margin-top:14px; max-width:46ch;
  padding:13px 15px;
  background:var(--paper-2);
  border:1px solid var(--line); border-radius:13px;
  color:var(--muted); font-size:14px; line-height:1.5;
}
.pdp__note a{ color:var(--accent); text-decoration:underline; }

/* =========================================================
   GALLERY — the grid it opens on
   ========================================================= */
.gal__browse{
  min-height:0;
  overflow-y:auto; overscroll-behavior:contain;
  padding-top:44px;
  /* Полоса прокрутки поверх тёмной галереи выглядит белой заплаткой,
     особенно на телефоне. Прятать её можно: разделы и так влезают
     целиком, а внутри папок список листается пальцем и колесом. */
  scrollbar-width:none; -ms-overflow-style:none;
}
.gal__browse::-webkit-scrollbar{ display:none; }
.gal__head{
  display:flex; align-items:baseline; justify-content:space-between;
  gap:20px; margin-bottom:20px;
  padding-right:64px;     /* clears the close button */
  color:#fff;
}
.gal__headTitle{ font-size:clamp(20px,2.4vw,30px); font-weight:600; letter-spacing:-.03em; }
.gal__head .mono{ color:rgba(255,255,255,.45); white-space:nowrap; }

/* Ссылка на план каталога: проект из галереи можно купить.
   margin-left:auto прижимает её к правому краю, подальше от счётчика —
   это не подпись к снимкам, а выход со страницы.

   Залита цветом, а не обведена рамкой: на чёрном фоне галереи обводка
   читается как «ещё одна служебная кнопка», вровень с крестиком и
   стрелками. Эта — единственная, по которой что-то покупают, и цвет у
   неё тот же, что у метки на обложке: человек уже видел его минуту назад. */
.gal__buy{
  margin-left:auto;
  display:inline-flex; align-items:center; gap:8px;
  flex:0 0 auto; white-space:nowrap;
  padding:10px 18px;
  border:1px solid transparent; border-radius:999px;
  background:var(--accent); color:#fff;
  font-size:13px; font-weight:600; letter-spacing:-.01em;
  text-decoration:none;
  transition:background .2s, transform .2s var(--ease);
}
.gal__buy:hover{ background:#d0202a; color:#fff; }
.gal__buy:active{ transform:scale(.98); }
.gal__buy[hidden]{ display:none; }   /* inline-flex сильнее hidden, вернём */
.gal__buyArrow{ display:grid; place-items:center; width:14px; height:14px; }
.gal__buyArrow svg{ width:100%; height:100%; }

/* В полном экране кнопка стоит в одной строке с подписью: чуть компактнее,
   но того же цвета — иначе рядом с приглушённой подписью она растворяется
   в чёрном, а это единственное действие на весь экран. */
.gal__buy--view{ padding:8px 15px; font-size:12.5px; }

/* Метка на обложке проекта, который продаётся. Внизу слева: правый
   верхний угол на многих снимках занят небом, а подпись на небе теряется. */
.gal__sale{
  position:absolute; left:10px; bottom:10px; z-index:1;
  padding:5px 10px; border-radius:999px;
  background:var(--accent); color:#fff;
  font-size:9px; letter-spacing:.12em;
}

.gal__tiles{ display:grid; grid-template-columns:repeat(6,1fr); gap:14px; }
.gal__tiles button{
  padding:0; border:0; background:none;
  text-align:left; cursor:pointer;
  border-radius:12px;
  outline:2px solid transparent; outline-offset:3px;
  transition:outline-color .2s;
}
.gal__tiles button:focus-visible{ outline-color:var(--accent); }
.gal__tiles .gal__tileShot{
  /* блочный, а не строчный: строчная обёртка вокруг картинки встаёт по
     базовой линии текста, и плитка с подписью в две строки съезжала вверх
     относительно соседних */
  display:block;
  position:relative;            /* якорь для метки «Available to buy» */
  overflow:hidden; border-radius:12px;
  background:rgba(255,255,255,.06);
}
.gal__tiles img{
  width:100%; aspect-ratio:4/3; object-fit:cover; display:block;
  transition:transform .5s var(--ease);
}
.gal__tiles button:hover img{ transform:scale(1.05); }
.gal__tiles span{
  display:block; margin-top:9px;
  color:rgba(255,255,255,.5);
  transition:color .25s;
}
.gal__tiles button:hover span{ color:#fff; }


/* ---- папки ----
   Разделов пять и больше не станет, проектов внутри тоже немного, поэтому
   колонок пять: обложки мельче и весь список помещается на экран без
   прокрутки. Над плиткой торчит «корешок» — узкая полоска со скруглёнными
   верхними углами: так сразу видно, что это папка, а не одиночная
   фотография. Место под неё даёт padding-top у сетки. */
.gal__tiles.gal__tiles--folders{
  grid-template-columns:repeat(5,1fr);
  gap:22px 16px;
  padding-top:8px;
}
.gal__tiles--folders button{ position:relative; }
.gal__tiles--folders button::before{
  content:"";
  position:absolute; left:9px; right:9px; top:-8px; height:11px;
  border-radius:8px 8px 0 0;
  background:rgba(255,255,255,.16);
  transition:background .25s;
}
.gal__tiles--folders button:hover::before{ background:var(--accent); }

/* второй и третий уровень: кнопка «назад» висит там же, где крестик,
   поэтому заголовку нужен отступ сверху, иначе они накладываются */
.gal__browse--inside{ padding-top:clamp(74px,8vw,88px); }

.gal__view{
  display:grid; grid-template-rows:minmax(0,1fr) auto;
  gap:18px; min-height:0;
}
.gal__back{
  position:absolute; z-index:2;
  top:clamp(16px,3vw,30px); left:clamp(16px,3vw,30px);
  display:inline-flex; align-items:center; gap:9px;
  padding:11px 18px 11px 15px;
  border:1px solid rgba(255,255,255,.2); border-radius:999px;
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(10px);
  color:#fff; font-size:14px; font-weight:600;
  cursor:pointer;
  transition:background .25s, border-color .25s;
}
.gal__back svg{ width:15px; height:15px; }
.gal__back:hover{ background:var(--accent); border-color:transparent; }

/* =========================================================
   RESPONSIVE — the new blocks
   ========================================================= */
@media (max-width:1180px){
  .gal__tiles{ grid-template-columns:repeat(4,1fr); }
  .gal__tiles.gal__tiles--folders{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width:980px){
  .specs{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:860px){
  .gal__tiles{ grid-template-columns:repeat(3,1fr); }
  .gal__tiles.gal__tiles--folders{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width:720px){
  .pdp__cta{ flex-direction:column; align-items:stretch; }
  .pdp__cta .btn{ justify-content:space-between; }
  .pdp__cta .btn--ghost{ justify-content:center; }
  /* five columns of numbers stop being readable around here */
  .pdp__specs,.pcard__specs{ grid-template-columns:repeat(3,1fr); }

  /* Ячеек пять, колонок три — значит нижний ряд неполный, и сетку надо
     дочерчивать вручную:

       | SQ.FT. | BED  | BATH |
       | FLOORS | CARS |      |

     Горизонтальную линию вешаем на НИЖНИЙ край верхнего ряда, а не на
     верхний край нижнего: под третьей ячейкой снизу никого нет, и линия
     обрывалась бы, не доходя до правого края. */
  .pdp__specs li:nth-child(-n+3),
  .pcard__specs li:nth-child(-n+3){ border-bottom:1px solid var(--line-soft); }

  /* правый край полоски — это край карточки, своя линия там не нужна */
  .pdp__specs li:nth-child(3),
  .pcard__specs li:nth-child(3){ border-right:0; }

  /* последняя ячейка стоит в середине нижнего ряда: базовое правило
     "у последней правой линии нет" оставляло её открытой */
  .pdp__specs li:last-child,
  .pcard__specs li:last-child{ border-right:1px solid var(--line-soft); }
  .pdp__strip button{ width:96px; }
  .gal__head{ padding-right:56px; }
}
@media (max-width:560px){
  .specs{ grid-template-columns:1fr; }
  .gal__tiles{ grid-template-columns:repeat(2,1fr); gap:10px; }
  /* на телефоне папки в две колонки: пять штук укладываются в три ряда,
     прокрутки почти нет */
  .gal__tiles.gal__tiles--folders{ grid-template-columns:repeat(2,1fr); gap:18px 10px; }
  .gal__tiles span{ font-size:9.5px; letter-spacing:.1em; }
  /* На узком экране кнопка плана и название не помещаются в строку: название
     ломалось посреди слова. Отдаём ему всю строку, кнопка уходит под него. */
  .gal__head{ flex-wrap:wrap; row-gap:14px; }
  .gal__head .gal__headTitle{ flex:1 1 100%; }
  .gal__buy{ padding:8px 14px; font-size:12.5px; }
  .spec__row{ gap:12px; }
  .spec__row dd span + span{ margin-left:10px; }
  .filt__chips span{ min-width:42px; padding:9px 10px; }
}

/* =========================================================
   PHONES — the hero and the service list
   ========================================================= */
@media (max-width:720px){
  /* the labels wrap to two lines rather than the row breaking to 2 + 1 */
  .hero__facts{ gap:0 12px; }
  .hero__facts span{ font-size:9.5px; letter-spacing:.11em; margin-top:7px; }
  .hero__facts b{ font-size:clamp(24px,7.2vw,30px); }
}

@media (max-width:560px){
  /* A full-width 4:3 photo above two lines of type buried the type — each
     service reads as a row instead, photo beside the words. */
  .svc{ grid-template-columns:1fr; gap:0; }
  .svc__item{
    display:grid;
    grid-template-columns:132px minmax(0,1fr);
    grid-template-rows:auto auto;
    column-gap:16px;
    align-content:center;
    padding:16px 0;
    border-bottom:1px solid var(--line-soft);
  }
  .svc__item:last-child{ border-bottom:0; }
  /* the three children are placed by hand: left to right auto-placement drops
     the paragraph into the second row of the photo column */
  .svc__shot{
    grid-column:1; grid-row:1 / span 2; align-self:center;
    margin-bottom:0; border-radius:13px;
  }
  .svc__item h3{ grid-column:2; grid-row:1; align-self:end; }
  .svc__item p{ grid-column:2; grid-row:2; align-self:start; }
  .svc__num{ left:7px; top:7px; padding:3px 8px; font-size:9px; }
  /* the lift on hover has nowhere to go in a row, and phones do not hover */
  .svc__item:hover .svc__shot{ transform:none; box-shadow:none; }
  .svc__item h3{ font-size:17px; margin-bottom:5px; }
  .svc__item p{ font-size:13.5px; }
  .services{ padding:72px 0 0; }
}

/* =========================================================
   "View Ready-Made Plans" — a ghost button on paper reads as
   half-erased, so this one is filled like the cards and lifted
   off the page by a shadow instead.
   ========================================================= */
.btn--plans{
  --bg:var(--white); --fg:var(--ink);
  border-color:var(--line);
  box-shadow:0 14px 28px -22px rgba(20,22,26,.6);
}
.btn--plans:hover{
  border-color:var(--ink);
  box-shadow:0 20px 34px -22px rgba(20,22,26,.5);
}

/* =========================================================
   BURGER MENU — the header buttons move inside it
   ========================================================= */
.nav__cta{ display:none; }

@media (max-width:980px){
  /* the row has no space for them once the burger appears */
  .header__quote{ display:none; }

  .nav__cta{
    display:grid; gap:10px;
    padding-top:20px;
  }
  /* .header .btn--sm rules further up shrink the header buttons on small
     screens, and <nav> sits inside <header>, so they reach these too — one of
     them hides the arrow outright below 400px. Undo that here. */
  .nav__cta .btn--sm{
    width:100%;
    justify-content:space-between;
    padding:14px 14px 14px 22px;
    font-size:15px;
  }
  .nav__cta .btn--sm .btn__arrow{
    display:grid;
    width:28px; height:28px; flex-basis:28px;
  }
  .nav__cta .btn--plans{ justify-content:center; padding:10px 20px 10px 10px; }
}

/* =========================================================
   VALUE STRIP — even on a phone
   ========================================================= */
@media (max-width:860px){
  /* Four items with three separators between them wrap into an uneven block:
     a dot strands at the end of a line and the next line starts bare. Give
     every item its own dot and lay them out on a grid instead. */
  .strip__row{
    display:grid; grid-template-columns:repeat(2,1fr);
    gap:16px 20px;
    align-items:start;
    justify-content:stretch;
    width:100%;
  }
  .strip__track{ width:100%; }
  .strip__row i{ display:none; }
  .strip__row span{
    position:relative;
    padding-left:17px;
    white-space:normal;
    font-size:clamp(15px,3.9vw,18px);
    line-height:1.3;
  }
  .strip__row span::before{
    content:"";
    position:absolute; left:0; top:.55em;
    width:6px; height:6px; border-radius:50%;
    background:var(--accent); opacity:.55;
  }
}
@media (max-width:430px){
  /* below this the two columns start breaking words apart */
  .strip__row{ grid-template-columns:1fr; gap:13px; }
  .strip{ padding:22px 0; }
}

/* =========================================================
   PHONE HERO — the film runs edge to edge between the words
   and the figures, with no sheet card around it
   ========================================================= */
@media (max-width:980px){
  /* The corner ticks sit 22px in from the top of the hero, which on a phone
     puts them behind the logo and the burger. Drop them clear of the bar. */
  .sheet__ticks{ top:calc(var(--header-h) + 18px); }

  .hero__title{ order:1; }
  .hero__lead{  order:2; margin-bottom:34px; }
  .hero__panel{ order:3; margin-bottom:34px; padding-bottom:0; }
  .hero__facts{ order:4; margin-bottom:38px; }
  .hero__cta{   order:5; }

  /* the drawing-sheet card is a lot of chrome for a 375px screen: drop the
     frame, the title block and the area figure, and let the film itself
     carry the width */
  .hero__panel .plan{
    background:none; border:0; box-shadow:none;
    padding:0; border-radius:0;
  }
  .hero__panel .plan__head{ display:none; }
  .hero__panel .film{
    margin:0 calc(var(--gutter) * -1);
    aspect-ratio:16/10;
    border-radius:0;
    border-left:0; border-right:0;
  }
  /* Подпись — под снимком и по центру: номер кадра и раздел галереи тем
     же мелким шрифтом, что на большом экране. Рамки сверху нет, она тут
     была бы второй линией под краем фотографии. */
  .hero__panel .plan__foot{
    position:relative;          /* якорь для стрелки: она висит над снимком */
    justify-content:center;
    padding:12px 0 0; border:0;
  }
  /* Стрелка осталась без заголовка, в котором жила, — ставим её в угол
     снимка. bottom:100% — это верхний край подписи, он же нижний край
     фотографии; отступы отмеряются от него, без подогнанных чисел. */
  .hero__panel .film__replay{
    position:absolute; z-index:2;
    right:calc(14px - var(--gutter));   /* снимок шире подписи на поля */
    bottom:100%; margin-bottom:14px;
  }
  .hero__panel .chip--float{ display:none; }
}

/* =========================================================
   BURGER MENU — `.nav a` outranks `.btn`, so the buttons inside
   the menu inherit the link colour, the rule, and the underline.
   Undo all three, or "Get a quote" is ink on ink.
   ========================================================= */
@media (max-width:980px){
  .nav .nav__cta a{
    color:var(--fg);
    border-bottom:0;
    padding:14px 14px 14px 22px;
    font-size:15px;
  }
  .nav .nav__cta a:hover{ color:var(--fg); }
  .nav .nav__cta a::after{ display:none; }
  .nav .nav__cta .btn--plans{ padding:10px 20px 10px 10px; }
}

/* =========================================================
   ЗАГОЛОВОК РАЗДЕЛА = РАЗДЕЛИТЕЛЬ

   Крупные заголовки и подписи из разделов убраны, поэтому метка с красной
   точкой теперь и есть заголовок. Отдельной линии между блоками больше нет:
   линия продолжает сам заголовок и уходит к правому краю, заканчиваясь
   засечкой под 45° — как выноска на чертеже. Так на странице остаётся один
   горизонтальный штрих вместо двух.

       ● SPECIALTIES ───────────────────────────/
   ========================================================= */
.eyebrow--head{
  position:relative;
  display:flex; align-items:center;
  width:100%;
  gap:14px;
  font-size:clamp(15px,1.7vw,20px);
  letter-spacing:.18em;
  color:var(--ink);
  margin-bottom:0;
}
.eyebrow--head .dot{
  width:9px; height:9px; flex-basis:9px;
  margin-top:0;
  box-shadow:0 0 0 5px rgba(236,47,57,.14);
}

/* сама линия: занимает всё, что осталось справа от текста */
.eyebrow--head::after{
  content:"";
  flex:1 1 auto;
  height:1px;
  margin-left:4px;
  background:var(--line);
}

/* засечка на дальнем конце */
.eyebrow--head::before{
  content:"";
  position:absolute; right:-1px; top:50%;
  width:1px; height:13px; margin-top:-7px;
  background:var(--steel); opacity:.5;
  transform:rotate(45deg);
}

/* на тёмном фоне блока контактов */
.eyebrow--light{ color:#fff; }
.eyebrow--light::after{ background:rgba(255,255,255,.18); }
.eyebrow--light::before{ background:rgba(255,255,255,.45); opacity:1; }

/* заголовок теперь один и невысокий — прежний отступ был рассчитан
   на двухстрочный крупный заголовок */

@media (max-width:980px){ :root{ --seam:84px; } }
@media (max-width:720px){ :root{ --seam:60px; } }

/* ---- кнопка «More styles» под списком стилей ---- */
.filt__more{
  display:inline-flex; align-items:center; gap:7px;
  margin-top:10px; padding:0;
  border:0; background:none;
  color:var(--ink); font-size:13.5px; font-weight:600;
  cursor:pointer;
}
.filt__more svg{ width:14px; height:14px; transition:transform .25s var(--ease); }
.filt__more.is-open svg{ transform:rotate(180deg); }
.filt__more:hover{ color:var(--accent); }

/* список стилей длинный — ограничиваем высоту и прокручиваем внутри */
#planStylesMore{ max-height:260px; overflow-y:auto; }

/* =========================================================
   СТРАНИЦА ПЛАНА — спецификации колонкой справа
   ========================================================= */
/* Раньше блоки шли сеткой во всю ширину под описанием. Теперь они стоят
   в правой колонке рядом с текстом, друг под другом. */
.specs--rail{
  grid-template-columns:1fr;
  align-content:start;
  gap:14px;
}

/* «Что включено» оформляем так же, как «что не включено»: название плюс
   пояснение — одной строкой непонятно, что внутри каждого пункта. */
.nots--in li::before{
  background:none;
  width:13px; height:7px; top:6px;
  border:solid var(--accent); border-width:0 0 2px 2px;
  transform:rotate(-45deg);
}
.nots b{ display:inline; }
.nots span{ display:inline; }

/* большое фото открывается во весь экран */
.pdp__shot{ cursor:zoom-in; }

@media (max-width:980px){
  .specs--rail{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:640px){
  .specs--rail{ grid-template-columns:1fr; }
}

/* =========================================================
   Правая колонка спецификаций: высота по левой, прокрутка внутри

   Блоков девять, описание слева обычно короче — колонка уезжала далеко
   вниз, и слева оставалось пустое поле. Приём: height:0 исключает колонку
   из расчёта высоты строки (её задаёт левая часть), а min-height:100%
   растягивает обратно ровно на эту высоту. Содержимое, которое не влезло,
   прокручивается внутри.

   Только на широких экранах: ниже 980px колонки встают друг под друга,
   и прятать там спецификации в скролл незачем.
   ========================================================= */
@media (min-width:981px){
  /* высоту строки задаёт левая колонка: height:0 убирает правую из расчёта,
     min-height:100% возвращает ей ровно эту высоту. Приём переехал на
     обёртку, потому что линии разрыва стоят на её кромках. */
  .brk{ height:0; min-height:100%; }
  .specs--rail{
    height:100%;
    overflow-y:auto;
    /* поля под полосу прокрутки, чтобы она не налезала на карточки */
    padding-right:6px;
    scrollbar-width:thin;
    scrollbar-color:var(--line) transparent;
  }
  .specs--rail::-webkit-scrollbar{ width:6px; }
  .specs--rail::-webkit-scrollbar-thumb{
    background:var(--line); border-radius:999px;
  }
  .specs--rail::-webkit-scrollbar-track{ background:transparent; }
}

/* =========================================================
   QUICK QUOTE — анкета поверх страницы

   Подложка такая же, как у галереи, а внутри обычная .quote-form, чтобы
   поля выглядели ровно так же, как в разделе Contact us. Отличие в том,
   что лист прокручивается внутри себя: полей много, и на ноутбуке анкета
   в экран не помещается.
   ========================================================= */
.qm{
  position:fixed; inset:0; z-index:320;
  display:grid; place-items:center;
  padding:clamp(12px,3vw,34px);
  background:rgba(12,13,16,.94);
  backdrop-filter:blur(18px) saturate(1.2);
  opacity:0;
  transition:opacity .3s var(--ease);
}
.qm.is-open{ opacity:1; }
body.qm-open{ overflow:hidden; }

/* Лист — неподвижная рамка: прокручивается только .qm__scroll внутри.
   Иначе крестик, приклеенный к углу листа, уезжал вместе с полями. */
.qm__sheet{
  position:relative;
  display:flex; flex-direction:column;
  width:min(100%,760px);
  max-height:100%;
  overflow:hidden;
  border-radius:var(--r-lg);
  background:#fff;
}
.qm__scroll{
  min-height:0;
  overflow-y:auto; overscroll-behavior:contain;
  /* полосу прокрутки прячем, как в галерее: на тёмном фоне она читается
     как белая заплатка поверх листа */
  scrollbar-width:none; -ms-overflow-style:none;
}
.qm__scroll::-webkit-scrollbar{ display:none; }

.qm__close{
  position:absolute; z-index:2;
  top:18px; right:18px; width:38px; height:38px;
  display:grid; place-items:center;
  border:1px solid var(--line); border-radius:50%;
  background:#fff; color:var(--ink);
  cursor:pointer;
  transition:background .25s, color .25s, border-color .25s;
}
.qm__close svg{ width:17px; height:17px; }
.qm__close:hover{ background:var(--accent); color:#fff; border-color:transparent; }

.quote-form--modal{ padding:38px clamp(22px,4vw,40px); }

.qm__head{
  grid-column:1/-1;
  padding-right:48px;              /* освобождаем место под крестик */
  padding-bottom:18px; margin-bottom:4px;
  border-bottom:1px solid var(--line-soft);
}
.qm__head h2{
  font-size:clamp(22px,2.6vw,30px); font-weight:600; letter-spacing:-.03em;
  margin-bottom:8px;
}
.qm__head p{ color:var(--muted); font-size:14px; max-width:52ch; }

/* «optional» рядом с подписью поля — тем же моноширинным, но бледнее */
.field > span i{ font-style:normal; opacity:.55; }

/* Поля, зависящие от типа проекта. Своя сетка внутри общей: их бывает
   девять, и в две колонки они читаются лучше, чем в одну длинную ленту.
   Сверху отбивка линией — видно, что это блок про сам объект. */
.qm__extra{
  grid-column:1/-1;
  display:grid; grid-template-columns:repeat(3,1fr); gap:16px;
  padding-top:20px; margin-top:4px;
  border-top:1px solid var(--line-soft);
}

@media (max-width:860px){
  .qm__extra{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:620px){
  .quote-form--modal{ padding:30px 20px; }
  .qm__extra{ grid-template-columns:1fr; gap:14px; padding-top:16px; }
  .qm__close{ top:14px; right:14px; width:34px; height:34px; }
}

/* =========================================================
   Линия разрыва у прокручиваемой колонки спецификаций

   Колонка обрезается по высоте левой части, и обрезка выглядела как
   оборванная в пустоту карточка. На чертеже такой обрыв показывают линией
   разрыва — ровная линия с изломом посередине. Здесь то же самое: линия
   появляется с той стороны, где содержимое продолжается за кромкой.

   Класс .brk, а не .rail: .rail уже занят лентой отзывов на главной, и
   обёртка подхватывала её display:flex с отрицательными полями.

   Вся линия — ОДИН SVG на всю ширину, прямые участки и излом внутри него.
   Раньше прямые рисовали ::before и ::after, а излом был отдельной
   картинкой посередине — в одной линии жили три разные толщины, и стык
   было видно. Ширину, viewBox и путь задаёт main.js под ширину колонки:
   растянуть готовую картинку нельзя, излом бы расплющило, а PNG вдобавок
   замылился бы на экранах с высокой плотностью.

   Толщина у прямой и у излома намеренно разная. Наклонная при той же
   толщине кладёт на столбец пикселей больше краски: посчитал в canvas —
   прямая в 1px при плотности 1.5 даёт 1.50 условных пикселя, а излом под
   45° при той же единице 2.11, то есть в полтора раза жирнее. При 0.7 он
   даёт 1.5 — столько же, сколько прямая, и линия читается однородной.
   ========================================================= */
.brk{ position:relative; }

.brk__line{
  position:absolute;
  /* на 10px за кромки колонки с обеих сторон: линия разрыва на чертеже
     всегда выходит за край детали, а не упирается в него.
     Справа отсчёт от края карточек — это полоса прокрутки плюс отступ до
     неё. Ширину полосы меряет main.js и кладёт в --sbw: у разных систем
     и браузеров она разная, 10px здесь только запасное значение. */
  left:-10px;
  right:calc(var(--sbw, 10px) + 6px - 10px);
  z-index:2;
  height:16px;
  color:var(--steel);
  opacity:0;
  transition:opacity .25s var(--ease);
  pointer-events:none;
}
.brk__svg{ display:block; width:100%; height:16px; }
.brk__run{ stroke-width:1; }
.brk__zig{ stroke-width:.7; }

/* Коробка полоски 16px, линия внутри по центру — поэтому её саму надо
   поднять на половину высоты, иначе линия встаёт на 8px внутрь колонки,
   а не на саму кромку обрыва. */
.brk__line--top{ top:-8px; }
.brk__line--bottom{ bottom:-8px; }

.brk.is-up   .brk__line--top{ opacity:.5; }
.brk.is-down .brk__line--bottom{ opacity:.5; }

/* Ниже 981px колонка не прокручивается — обрыва нет, линии не нужны */
@media (max-width:980px){
  .brk__line{ display:none; }
}

/* =========================================================
   Кнопки администратора на сайте

   Появляются только когда выполнен вход в панель — строит их main.js,
   в разметке страниц их нет. Стоят в правом верхнем углу, под шапкой:
   шапка приклеена к верху, и класть что-то поверх неё нельзя.
   Высоту шапки подставляет скрипт, она на разных ширинах своя.
   ========================================================= */
.adminbar{
  position:fixed;
  top:90px; right:clamp(14px,2vw,22px);
  z-index:250;              /* выше шапки, ниже галереи и анкеты */
  display:flex; gap:8px;
}
.adminbar form{ margin:0; display:flex; }
.adminbar__btn{
  display:grid; place-items:center;
  width:38px; height:38px;
  padding:0;
  border:1px solid var(--line);
  border-radius:50%;
  background:var(--white);
  color:var(--ink);
  cursor:pointer;
  box-shadow:0 10px 24px -14px rgba(20,22,26,.5);
  transition:background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.adminbar__btn svg{ width:16px; height:16px; }
.adminbar__btn:hover{
  background:var(--ink); color:#fff; border-color:transparent;
  transform:translateY(-2px);
}
/* выход красим в акцент: действие заметное, пусть и выглядит заметно */
.adminbar form .adminbar__btn:hover{ background:var(--accent); }

@media (max-width:560px){
  .adminbar__btn{ width:34px; height:34px; }
  .adminbar__btn svg{ width:15px; height:15px; }
}

/* =========================================================
   Окно «оставить отзыв» — первая карточка в ленте

   Это .rev, то есть те же размеры и отступы, что у соседних карточек:
   лента прокручивается одним шагом, и форма не должна выбиваться.
   Отличия только внутри — вместо цитаты поля ввода.
   ========================================================= */
/* Форма — самая высокая карточка в ленте, и по ней равняются остальные.
   Поэтому её держим компактной: лишние 100px здесь превращаются в 100px
   пустоты в каждой карточке отзыва. */
.rev--form{
  gap:10px;
  justify-content:flex-start;
  padding:26px 26px 22px;
  /* отзывы тёмные, форма светлая — цветом разделены чтение и ввод */
  background:var(--white);
  border-color:var(--line);
  color:var(--ink);
}
.rev__formTitle{
  font-size:17px; font-weight:600; letter-spacing:-.02em;
}
.rev__formNote{
  font-size:12.5px; line-height:1.45; color:var(--muted); margin-top:-6px;
}
/* Два поля в ряд — только пока ряд шире 300px. На телефоне карточка
   узкая, и две колонки по сотне пикселей бессмысленны. */
.rev__row{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
@media (max-width:560px){
  .rev__row{ grid-template-columns:1fr; }
}
.rev__field{ display:grid; gap:6px; }
.rev__field > span{
  font-family:var(--mono); font-size:10px; letter-spacing:.14em;
  text-transform:uppercase; color:var(--muted);
}
.rev__field > span i{ font-style:normal; opacity:.6; }
.rev__field input,
.rev__field textarea{
  font:inherit; font-size:14.5px; color:var(--ink);
  background:var(--paper);
  border:1px solid transparent; border-radius:11px;
  padding:11px 13px;
  width:100%;
  outline:none;
  transition:border-color .25s, background .25s;
}
.rev__field textarea{ resize:vertical; min-height:74px; }
.rev__field input:focus,
.rev__field textarea:focus{ border-color:var(--ink); background:#fff; }

.rev--form .btn{ margin-top:4px; }

.rev__formMsg{
  font-size:13px; color:var(--muted); min-height:18px;
}
.rev__formMsg.is-ok{ color:#1a7f4b; }
.rev__formMsg.is-err{ color:var(--accent); }

/* Ловушка для ботов. Не display:none и не type=hidden: и то и другое
   боты научились пропускать. Поле настоящее, просто убрано с экрана. */
.rev__trap{
  position:absolute;
  width:1px; height:1px;
  overflow:hidden; clip-path:inset(50%);
  white-space:nowrap;
}

/* =========================================================
   Страницы каталога

   Полсотни планов на одной странице — это тридцать экранов прокрутки,
   поэтому список разбит по двенадцать: ровно четыре ряда по три.
   ========================================================= */
.pager{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
  gap:8px;
  margin-top:40px;
}
.pager__b{
  min-width:40px; height:40px;
  display:grid; place-items:center;
  padding:0 12px;
  border:1px solid var(--line); border-radius:12px;
  background:var(--white); color:var(--ink);
  font-size:14px; font-weight:600;
  cursor:pointer;
  transition:background .2s, color .2s, border-color .2s;
}
.pager__b svg{ width:15px; height:15px; }
.pager__b:hover:not(:disabled){ border-color:var(--ink); }
.pager__b.is-on{
  background:var(--ink); color:#fff; border-color:transparent;
  cursor:default;
}
.pager__b:disabled{ opacity:.35; cursor:default; }
.pager__gap{ color:var(--muted); padding:0 2px; }

@media (max-width:560px){
  .pager{ gap:6px; margin-top:28px; }
  .pager__b{ min-width:36px; height:36px; padding:0 9px; font-size:13px; }
}

/* =========================================================
   Левая колонка страницы плана

   Её высота задаёт высоту таблицы характеристик справа — там приём
   height:0 / min-height:100%. Если у плана нет ни описания, ни списка
   комплекта, колонка схлопывалась до сотни пикселей, и все характеристики
   сжимались в полоску с прокруткой.

   760px — это примерно высота колонки с полным списком: девять пунктов
   «входит» и пять «не входит». Нижняя граница, не фиксированная высота:
   длинное описание растянет колонку дальше.
   ========================================================= */
@media (min-width:981px){
  .pdp__text{ min-height:760px; }
}

/* Подпись на месте незаполненного списка комплекта */
.pdp__gap{
  margin-top:10px;
  padding:16px 18px;
  border:1px dashed var(--line);
  border-radius:var(--r);
  color:var(--muted); font-size:14px;
  max-width:52ch;
}
.pdp__gap a{ color:var(--accent); text-decoration:underline; }

/* =========================================================
   ЭКРАН «ЗАЯВКА ОТПРАВЛЕНА»

   Встаёт вместо формы. Раньше здесь была строчка под кнопкой — её не
   замечали: поля очистились, форма на вид та же, и человек уходил в
   уверенности, что ничего не отправилось.
   ========================================================= */
.sent{
  /* Это та же карточка, что и форма: белый лист на тёмном фоне. Без
     этого панель оказывалась прямо на тёмной секции и выглядела так,
     будто форма просто пропала. */
  background:#fff; color:var(--ink);
  border-radius:var(--r-lg);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center;
  gap:14px;
  padding:56px 28px 50px;
}
.sent__mark{
  width:52px; height:52px;
  display:grid; place-items:center;
  border-radius:50%;
  background:var(--ink); color:#fff;
  margin-bottom:4px;
}
.sent__mark svg{ width:24px; height:24px; }
.sent__title{
  font-size:clamp(22px,2.2vw,28px); font-weight:600; letter-spacing:-.03em;
}
.sent__text{
  max-width:34ch;
  font-size:15px; line-height:1.55; color:var(--muted);
}
.sent .btn{ margin-top:10px; }

/* В модальном окне панель живёт в листе, у которого свои поля. */
.qm .sent{ padding:64px 28px 56px; }

/* ---------- каталог выключен ----------
   Окно уже, чем анкета: здесь две строки текста и одна кнопка, и лист в
   полную ширину выглядел бы пустым. */
.qm__sheet--slim{ max-width:460px; }

/* То же объяснение, но на странице каталога, открытой по прямой ссылке. */
.plansoff{
  max-width:560px;
  margin:0 auto;
  padding:clamp(60px,10vh,120px) 0;
  text-align:center;
}
.plansoff .sent__mark{ margin:0 auto 14px; }
.plansoff .sent__title{ margin-bottom:12px; }
.plansoff .sent__text{ margin:0 auto 22px; }

/* Две кнопки под объяснением на странице плана, которого нет. */
.plansoff__acts{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; }

/* =========================================================
   ЮРИДИЧЕСКАЯ СТРАНИЦА (privacy.html)

   Текст длинный, и читают его не ради удовольствия. Поэтому одна
   колонка в 68 символов, крупный межстрочный интервал и заголовки,
   которые видно при пролистывании: человек ищет свой пункт, а не
   читает подряд.
   ========================================================= */
.legal{ padding:calc(var(--header-h) + 70px) 0 110px; }
.legal__inner{
  max-width:760px;
  /* Над плашкой .sheet::after, которая гасит сетку к низу листа: она
     кладётся на весь лист, и без этого к концу страницы текст тонет
     в ней вместе с сеткой. Так же сделано у .hero. */
  position:relative; z-index:1;
}

.legal__head{
  padding-bottom:28px;
  margin-bottom:40px;
  border-bottom:1px solid var(--line);
}
.legal__head .eyebrow{ margin-bottom:14px; }
.legal__head h1{ margin-bottom:16px; }

/* Дата редакции. У юридического документа это не подпись мелким
   шрифтом, а главное, что проверяют, — ставим её сразу под заголовком. */
.legal__date{
  color:var(--muted);
  letter-spacing:.08em;
  text-transform:uppercase;
  min-height:1em;            /* строка держит место, пока дата грузится */
}

.legal__body{ font-size:16px; line-height:1.72; color:var(--ink-soft); }
.legal__body p{ margin:0 0 18px; max-width:68ch; }
.legal__body h2{
  font-size:clamp(19px,2vw,23px);
  font-weight:600;
  letter-spacing:-.02em;
  color:var(--ink);
  margin:46px 0 14px;
  padding-top:18px;
  border-top:1px solid var(--line-soft);
}
.legal__body h2:first-child{ margin-top:0; border-top:0; padding-top:0; }
.legal__body a{ color:var(--ink); text-decoration:underline; text-underline-offset:3px; }
.legal__body a:hover{ color:var(--accent); }

.legal__list{ list-style:none; margin:0 0 20px; padding:0; max-width:68ch; }
.legal__list li{
  position:relative;
  padding-left:22px;
  margin-bottom:9px;
}
/* Штрих вместо точки — тот же знак, что в выносках на чертеже. */
.legal__list li::before{
  content:""; position:absolute; left:0; top:.72em;
  width:11px; height:1px; background:var(--accent);
}

.legal__wait{ color:var(--muted); }

.legal__foot{
  margin-top:54px;
  padding-top:24px;
  border-top:1px solid var(--line);
  font-size:15px;
}
.legal__foot .mono{ color:var(--muted); margin-bottom:8px; }
.legal__foot a{ color:var(--ink); text-decoration:underline; text-underline-offset:3px; }
.legal__foot a:hover{ color:var(--accent); }

@media (max-width:720px){
  .legal{ padding:calc(var(--header-h) + 40px) 0 80px; }
  .legal__body h2{ margin-top:36px; }
}

/* ---------- ссылка на политику в подвале ----------
   Стоит рядом со строкой об авторских правах, а не в колонке Company:
   это служебная ссылка, её ищут внизу страницы. */
.footer__legal{
  display:flex; align-items:center; flex-wrap:wrap;
  gap:10px 26px;
}
.footer__policy{
  color:rgba(255,255,255,.4);
  transition:color .25s;
}
.footer__policy:hover{ color:#fff; }
/* На самой странице политики ссылка никуда не ведёт — показываем это. */
.footer__policy.is-here{ color:rgba(255,255,255,.62); }

@media (max-width:560px){
  .footer__bottom{ align-items:flex-start; gap:18px; }
}

/* Галерея пуста — кнопки «View our work» прятать. Нажать на них
   означало бы открыть пустой лист; пусть лучше их не будет, пока в
   галерее не появится первая папка с фотографиями. */
body.no-work [data-gallery]{ display:none; }

/* Значки соцсетей, пока ссылок нет.
   Раньше там стоял href="#": нажатие прокручивало страницу вверх и
   дописывало решётку в адрес. Теперь адреса просто нет — значок на месте,
   но ведёт себя как подпись, а не как ссылка. Появятся страницы фирмы в
   соцсетях — подставить href, и всё заработает само. */
.footer__social a:not([href]){ cursor:default; }
.footer__social a:not([href]):hover{
  background:none;
  border-color:rgba(255,255,255,.16);
  color:inherit;
}
