/* Поток — светлая тема. Палитра: бумага чертежа, тёмная хвоя, тёплый пиломатериал. */
:root {
  --paper: #F4F6F3;
  --surface: #FFFFFF;
  --tint: #E9EFEA;
  --ink: #17231E;
  --ink-2: #4B5A53;
  --ink-3: #7D8A84;
  --pine: #2E5E4B;
  --pine-l: #3B7660;
  --pine-d: #234A3B;
  --timber: #C8873A;
  --timber-ink: #8A5A1E;
  --rule: #D7DED9;

  --f-display: "Geologica", "Golos Text", system-ui, sans-serif;
  --f-body: "Golos Text", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --r: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --sh-1: 0 1px 2px rgb(23 35 30 / .06), 0 2px 6px rgb(23 35 30 / .04);
  --sh-2: 0 2px 4px rgb(23 35 30 / .06), 0 18px 36px -16px rgb(23 35 30 / .28);
  --sh-btn: inset 0 1px 0 rgb(255 255 255 / .22), inset 0 -2px 0 rgb(0 0 0 / .14), 0 1px 2px rgb(23 35 30 / .25), 0 8px 18px -8px rgb(46 94 75 / .65);
  --sh-btn-h: inset 0 1px 0 rgb(255 255 255 / .26), inset 0 -2px 0 rgb(0 0 0 / .14), 0 2px 4px rgb(23 35 30 / .2), 0 16px 28px -10px rgb(46 94 75 / .7);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; }
h3 { font-size: 19px; line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--timber); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

.eyebrow {
  font: 500 12px/1 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--pine);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }

/* ── Кнопки: объём, тень, реакция на наведение и нажатие ── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px;
  background: linear-gradient(180deg, var(--pine-l) 0%, var(--pine) 55%, var(--pine-d) 100%);
  color: #fff;
  font: 600 16px/1 var(--f-body);
  text-decoration: none; border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: var(--sh-btn);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-btn-h); filter: brightness(1.06); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgb(0 0 0 / .2), 0 1px 2px rgb(23 35 30 / .2); filter: none; }
.btn__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn__ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }

.btn--ghost {
  background: var(--surface); color: var(--pine);
  box-shadow: inset 0 0 0 1.5px var(--pine), 0 1px 2px rgb(23 35 30 / .08);
}
.btn--ghost:hover {
  background: linear-gradient(180deg, var(--pine-l), var(--pine) 55%, var(--pine-d)); color: #fff;
  box-shadow: inset 0 0 0 1.5px var(--pine), var(--sh-btn-h);
}
.btn--light {
  background: linear-gradient(180deg, #fff, #EEF3EF); color: var(--pine);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgb(0 0 0 / .06), 0 2px 4px rgb(0 0 0 / .18), 0 14px 26px -12px rgb(0 0 0 / .5);
}
.btn--light:hover { box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgb(0 0 0 / .06), 0 3px 6px rgb(0 0 0 / .18), 0 20px 34px -12px rgb(0 0 0 / .55); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 15px; }

/* ── Шапка ── */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgb(244 246 243 / .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.top__in { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo__mark { width: 30px; height: 30px; fill: none; stroke: var(--pine); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.logo__word { font: 700 24px/1 var(--f-display); letter-spacing: -0.03em; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: 15px; color: var(--ink-2);
  padding: 8px 14px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--tint); color: var(--pine); }
.phone-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px 10px 14px; border-radius: 999px;
  background: var(--surface); color: var(--ink); text-decoration: none;
  font: 600 15px/1 var(--f-body); white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--rule), var(--sh-1);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), color .2s;
}
.phone-pill svg { width: 18px; height: 18px; fill: none; stroke: var(--pine); stroke-width: 1.9; stroke-linejoin: round; }
.phone-pill:hover { transform: translateY(-1px); color: var(--pine); box-shadow: inset 0 0 0 1px var(--pine), var(--sh-2); }

/* ── Первый экран ── */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgb(46 94 75 / .07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(46 94 75 / .07) 1px, transparent 1px),
    linear-gradient(rgb(46 94 75 / .035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(46 94 75 / .035) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px; pointer-events: none;
  background: linear-gradient(transparent, var(--paper));
}
.hero__in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center;
  padding-top: clamp(48px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 112px);
}
.hero h1 { margin-bottom: 26px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 32em; }
.lead--sub { margin-top: 10px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 40px; }
.link-phone { color: var(--ink-2); font-size: 15px; text-underline-offset: 3px; }
.link-phone:hover { color: var(--pine); }
.hero__text > * { animation: rise .8s var(--ease) both; }
.hero__text > :nth-child(2) { animation-delay: .08s; }
.hero__text > :nth-child(3) { animation-delay: .16s; }
.hero__text > :nth-child(4) { animation-delay: .22s; }
.hero__text > :nth-child(5) { animation-delay: .3s; }

/* Чертёж — главный элемент страницы */
.drawing { margin: 0; }
.drawing svg { width: 100%; height: auto; overflow: visible; }
.drawing line, .drawing rect, .drawing path {
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.1s cubic-bezier(.6,.1,.3,1) forwards; animation-delay: var(--d, 0s);
}
.d-main { stroke: var(--pine); stroke-width: 2.2; }
.d-main .d-fill { fill: var(--surface); fill-opacity: 0; animation-name: draw, fillin; animation-duration: 1.1s, .6s; animation-delay: var(--d), calc(var(--d) + .6s); }
.d-light { stroke: var(--pine); stroke-opacity: .32; stroke-width: 1.2; }
.d-dim { stroke: var(--timber); stroke-width: 1.2; }
.d-text text { font: 500 13px var(--f-mono); fill: var(--timber-ink); opacity: 0; animation: fade .6s 2.9s forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; } }
@keyframes fade { to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ── Появление при прокрутке ── */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ── Секции ── */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec--tint { background: var(--tint); }
.sec__head { max-width: 760px; margin-bottom: 48px; }
.sec__head--wide { max-width: none; }
.sec__lead { margin-top: 18px; color: var(--ink-2); font-size: 18px; }
.sec__cta { margin-top: 44px; }

/* Услуги */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.js .card[data-reveal] { transition: opacity .8s var(--ease), transform .8s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--sh-1);
}
.js .card.is-in:hover, .card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); border-color: rgb(46 94 75 / .45); transition-delay: 0s; }
.card__art {
  position: relative; aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--rule);
  background-color: #F7F9F7;
  background-image:
    linear-gradient(rgb(46 94 75 / .06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(46 94 75 / .06) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: -1px -1px;
}
.card__art svg { position: absolute; inset: 6% 6% 4%; width: 88%; height: 90%; overflow: visible; transition: transform .5s var(--ease); }
.card:hover .card__art svg { transform: scale(1.04); }
.card__art :is(path, rect) { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s cubic-bezier(.6,.1,.3,1); }
.card__art .a1 { stroke: var(--pine); stroke-width: 2; }
.card__art .a2 { stroke: var(--pine); stroke-width: 1.6; }
.card__art .a2.lt { stroke-opacity: .35; stroke-width: 1.2; }
.card__art .a3 { stroke: var(--timber); stroke-width: 1.6; }
.card__art .f { fill: var(--surface); fill-opacity: 0; transition: stroke-dashoffset 1.3s cubic-bezier(.6,.1,.3,1), fill-opacity .5s; }
.card.is-in .card__art :is(path, rect) { stroke-dashoffset: 0; }
.card.is-in .card__art .a1 :is(path, rect) { transition-delay: calc(var(--i, 0) * 90ms + .25s); }
.card.is-in .card__art .a2 :is(path, rect) { transition-delay: calc(var(--i, 0) * 90ms + .7s); }
.card.is-in .card__art .a3 :is(path, rect) { transition-delay: calc(var(--i, 0) * 90ms + 1.1s); }
.card.is-in .card__art .a2 :is(path, rect).f { fill-opacity: 1; transition-delay: calc(var(--i, 0) * 90ms + .7s), calc(var(--i, 0) * 90ms + 1.3s); }
html:not(.js) .card__art :is(path, rect) { stroke-dashoffset: 0; }
html:not(.js) .card__art .f { fill-opacity: 1; }
.card__body { padding: 24px 26px 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 16px; }

/* Почему нам доверяют */
.why { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.why__intro h2 { margin-bottom: 22px; }
.why__intro p { color: var(--ink-2); }
.why__intro p + p { margin-top: 14px; }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.why__list li {
  padding: 22px 22px 24px; border-radius: 12px;
  background: rgb(255 255 255 / .6); border: 1px solid rgb(46 94 75 / .14);
  transition: background .25s, transform .25s var(--ease), box-shadow .25s var(--ease);
}
.why__list li:hover { background: var(--surface); transform: translateY(-3px); box-shadow: var(--sh-2); }
.why__list h3 { font-size: 17px; margin-bottom: 6px; }
.why__list p { font-size: 15px; color: var(--ink-2); }

/* Производство */
.prod { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.prod__text { color: var(--ink-2); }
.prod__text p + p { margin-top: 14px; }
.prod__units { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.prod__units li {
  padding: 9px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--rule);
  font: 500 13px/1.2 var(--f-mono); color: var(--ink);
  box-shadow: var(--sh-1);
}
.prod__units li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--timber); margin-right: 9px; vertical-align: 1px; }

/* Этапы — последовательность, номера несут смысл */
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.steps li { counter-increment: step; position: relative; padding: 0 22px 0 0; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface); border: 1.5px solid var(--pine);
  font: 600 17px/1 var(--f-display); color: var(--pine);
  position: relative; z-index: 1; margin-bottom: 22px;
  box-shadow: 0 6px 14px -6px rgb(46 94 75 / .45);
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.steps li:hover::before { background: var(--pine); color: #fff; transform: scale(1.08); }
.steps li::after {
  content: ""; position: absolute; top: 23px; left: 46px; right: 0; height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--pine) 0 6px, transparent 6px 11px); opacity: .5;
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 17px; margin-bottom: 8px; }
.steps p { font-size: 15px; color: var(--ink-2); }

/* Призыв */
.cta {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 140% at 85% 0%, var(--pine-l) 0%, var(--pine) 45%, var(--pine-d) 100%);
}
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cta__in {
  position: relative;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
  padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px);
}
.cta h2 { margin-bottom: 16px; }
.cta p { color: rgb(255 255 255 / .82); max-width: 36em; }
.cta__act { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta__phone { font: 700 clamp(30px, 3.4vw, 44px)/1 var(--f-display); letter-spacing: -0.02em; text-decoration: none; transition: opacity .2s; }
.cta__phone:hover { opacity: .85; }
.cta__hours { font: 400 14px var(--f-mono); color: rgb(255 255 255 / .7); margin-bottom: 10px; }

/* Как добраться */
.route {
  display: grid; grid-template-columns: 1fr 1.5fr;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden;
  box-shadow: var(--sh-2);
}
.route__info { padding: 36px 34px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.route__addr { font: 600 22px/1.3 var(--f-display); letter-spacing: -0.01em; }
.route__office { margin-top: 8px; display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--tint); color: var(--pine); font: 600 14px/1.3 var(--f-body); }
.route__way p:not(.route__label) { font-size: 15px; color: var(--ink-2); }
.route__label { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 8px; }
.route__ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--tint); }
.route__ico svg { width: 18px; height: 18px; fill: none; stroke: var(--pine); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.route__hours { font-size: 15px; color: var(--ink-2); }
.route__map { position: relative; min-height: 540px; background: var(--tint); }
.route__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.photos { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1.5fr 1fr 1.15fr 1fr 1fr; gap: 14px; }
.photos li { position: relative; border-radius: 12px; overflow: hidden; height: 230px; box-shadow: var(--sh-1); }
.photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.photos li:hover img { transform: scale(1.05); }
.photos span {
  position: absolute; left: 10px; bottom: 10px; padding: 4px 9px; border-radius: 6px;
  background: rgb(255 255 255 / .92); font: 500 12px/1.3 var(--f-mono);
}

/* Реквизиты */
.foot { background: var(--surface); border-top: 1px solid var(--rule); padding-top: 56px; }
.foot__in { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding-bottom: 40px; }
.foot__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 15px; color: var(--ink-2); }
.foot__brand a { text-decoration: none; }
.foot__brand a:hover { color: var(--pine); }
.logo--foot { margin-bottom: 12px; }
.foot__phone { font: 600 22px/1.2 var(--f-display); color: var(--ink); }
.req { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; }
.req__wide { grid-column: span 2; }
.req dt { font: 500 11px/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 4px; }
.req dd { margin: 0; font-size: 15px; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--ink-3); }
.foot__bottom::before { content: ""; flex-basis: 100%; height: 1px; background: var(--rule); }
.foot__bottom p { padding-bottom: 24px; }
.foot__bottom a { color: var(--ink-2); text-underline-offset: 3px; }
.foot__bottom a:hover { color: var(--pine); }

/* Заглушка под фото */
.ph {
  position: relative; border-radius: 12px; overflow: hidden;
  background: repeating-linear-gradient(135deg, transparent 0 10px, rgb(46 94 75 / .07) 10px 11px), var(--tint);
  border: 1px solid var(--rule);
  display: flex; align-items: flex-end;
}
.ph span, .shot span {
  margin: 12px; padding: 5px 9px; border-radius: 6px;
  background: rgb(255 255 255 / .94); font: 500 12px/1.3 var(--f-mono); color: var(--ink-2);
}

/* Кнопка-фото с увеличением */
.shot {
  position: relative; display: flex; align-items: flex-end; width: 100%; height: 100%;
  padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--tint);
  box-shadow: var(--sh-1); transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.shot span { position: relative; }
.shot:hover { box-shadow: var(--sh-2); transform: translateY(-3px); }
.shot:hover img { transform: scale(1.05); }

/* Галерея производства */
.gallery { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; gap: 14px; }
.gallery li { min-height: 0; }

/* Отзывы — лента с прокруткой */
.rev__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.rev__nav { display: flex; gap: 10px; flex: none; }
.rev__btn {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  background: var(--surface); border: 0; color: var(--pine);
  box-shadow: inset 0 0 0 1.5px var(--pine), var(--sh-1);
  transition: background .25s, color .25s, transform .25s var(--ease), box-shadow .25s var(--ease), opacity .25s;
}
.rev__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rev__btn:hover:not(:disabled) { background: var(--pine); color: #fff; transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--pine), var(--sh-btn-h); }
.rev__btn:active:not(:disabled) { transform: translateY(1px); }
.rev__btn:disabled { opacity: .35; cursor: default; }
.rev__track {
  list-style: none; margin: 0; padding: 4px 4px 22px;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: rgb(46 94 75 / .4) transparent;
}
.rev__item { scroll-snap-align: start; }
.rev__item figure { margin: 0; }
.rev__scan { aspect-ratio: 3 / 4; height: auto; background-color: #fff; }
.rev__scan.shot img { object-fit: contain; background: #fff; }
.rev__item figcaption { margin-top: 12px; display: flex; flex-direction: column; font-size: 15px; }
.rev__item figcaption span { color: var(--ink-3); font-size: 14px; }

/* Просмотр фото */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1100px, calc(100% - 32px)); max-height: 92vh; overflow: visible; }
.lightbox[open] { animation: pop .3s var(--ease); }
.lightbox::backdrop { background: rgb(15 22 19 / .82); backdrop-filter: blur(4px); }
.lightbox img { display: block; max-width: 100%; max-height: 92vh; border-radius: 10px; box-shadow: 0 30px 80px -20px rgb(0 0 0 / .6); background: #fff; }
.lightbox__close { position: absolute; top: -14px; right: -14px; background: #fff; box-shadow: var(--sh-2); }

/* Политика */
.policy {
  width: min(760px, calc(100% - 32px)); max-height: min(86vh, 900px);
  padding: 0; border: 0; border-radius: 18px;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / .45);
}
.policy[open] { display: flex; flex-direction: column; animation: pop .35s var(--ease); }
.policy::backdrop { background: rgb(23 35 30 / .5); backdrop-filter: blur(3px); }
.policy__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 26px 28px 18px; border-bottom: 1px solid var(--rule); }
.policy__head h2 { font-size: 22px; line-height: 1.25; }
.policy__close {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--tint); border: 0; cursor: pointer; transition: background .2s, transform .2s;
}
.policy__close:hover { background: var(--rule); transform: rotate(90deg); }
.policy__close svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.policy__body { overflow-y: auto; padding: 20px 28px 32px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.policy__body h3 { font-size: 16px; color: var(--ink); margin: 22px 0 8px; }
.policy__body p + p { margin-top: 8px; }
.policy__date { font: 400 13px var(--f-mono); color: var(--ink-3); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* Cookie */
.cookie {
  position: fixed; z-index: 60; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: min(720px, calc(100% - 32px));
  display: flex; align-items: center; gap: 18px;
  padding: 14px 14px 14px 20px; border-radius: 14px;
  background: var(--surface); box-shadow: 0 18px 50px -12px rgb(23 35 30 / .35), 0 0 0 1px var(--rule);
  font-size: 14px; color: var(--ink-2);
  animation: cookie-in .5s var(--ease) .8s both;
}
.cookie[hidden] { display: none; }
.cookie a { color: var(--pine); }
.cookie .btn { flex: none; }
@keyframes cookie-in { from { opacity: 0; transform: translate(-50%, 20px); } }

/* ── Адаптив ── */
@media (max-width: 1080px) {
  .nav { display: none; }
  .phone-pill { margin-left: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 46px 1fr; column-gap: 18px; padding: 0 0 26px; }
  .steps li::before { grid-row: span 2; margin: 0; }
  .steps li::after { top: 46px; bottom: 0; left: 22px; right: auto; width: 1.5px; height: auto;
    background: repeating-linear-gradient(180deg, var(--pine) 0 6px, transparent 6px 11px); }
  .steps h3 { margin-top: 11px; }
  .photos { grid-template-columns: repeat(3, 1fr); }
  .rev__track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
  .photos li:first-child { grid-column: span 2; }
}
@media (max-width: 860px) {
  .hero__in, .why, .prod, .cta__in, .route, .foot__in { grid-template-columns: 1fr; }
  .hero__in { gap: 28px; }
  .drawing { max-width: 560px; }
  .route__map { min-height: 380px; }
  .photos { grid-template-columns: repeat(2, 1fr); }
  .photos li { height: 180px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .rev__track { grid-auto-columns: 62%; }
  .photos li:first-child { grid-column: span 2; height: 220px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .phone-pill { padding: 9px 12px; font-size: 14px; }
  .logo__word { font-size: 22px; }
  .cards, .why__list, .req { grid-template-columns: 1fr; }
  .req__wide { grid-column: auto; }
  .lead { font-size: 17px; }
  .rev__nav { display: none; }
  .rev__track { grid-auto-columns: 78%; }
  .route__info { padding: 26px 20px; }
  .cookie { flex-direction: column; align-items: stretch; text-align: left; bottom: 10px; }
  .policy__head, .policy__body { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 380px) {
  .phone-pill span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
