/* ============================================================
   Верста — Landing page (UI kit) styles
   Consumes the design system via ../../styles.css (tokens + motifs).
   This file = page layout, sections, interaction states only.
   ============================================================ */

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

.shell { position: relative; }

/* ---- Layout container ---- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

/* ============================================================
   Fixed wayfinding chrome
   ============================================================ */

/* Left ruler track (desktop) */
.ruler {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: var(--ruler-w);
  z-index: 40;
  pointer-events: none;
  border-right: var(--bw) solid var(--line);
  background: linear-gradient(var(--paper), var(--paper));
}
.ruler__ticks {
  position: absolute; top: 0; bottom: 0; right: 0; width: 12px;
  background: var(--ticks-v);
  background-size: 100% var(--tick-gap);
  opacity: .55;
}
.ruler__km {
  position: absolute; right: 14px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .14em;
  color: var(--stone);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* Right progress post + odometer */
.post {
  position: fixed;
  top: 0; bottom: 0; right: 22px;
  width: var(--post-w);
  z-index: 40;
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
}
.post__odo {
  position: fixed; top: 84px; right: 14px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .06em; color: var(--accent);
  text-align: right;
}
.post__rail {
  position: absolute; top: 120px; bottom: 28px; left: 0;
  width: var(--post-w);
  background: var(--paper-pure);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.post__fill {
  position: absolute; left: 0; right: 0; top: 0;
  height: 0%;
  background: var(--stripe-accent);
  transition: height 120ms linear;
}

/* Mobile top progress bar */
.mbar { display: none; }

/* ============================================================
   Header
   ============================================================ */
.hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background var(--dur) var(--ease-snap), border-color var(--dur), box-shadow var(--dur);
  border-bottom: var(--bw) solid transparent;
}
.hd--solid {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.hd__in {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
  max-width: var(--maxw); margin: 0 auto;
  padding-inline: var(--pad-x);
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__v {
  --bl: var(--ink);
  display: inline-block;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-image: linear-gradient(45deg,
    transparent 0, transparent 20%, var(--bl) 20%, var(--bl) 30%,
    transparent 30%, transparent 40%, var(--bl) 40%, var(--bl) 50%,
    var(--accent) 50%, var(--accent) 100%);
}
.brand__word { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: .02em; color: var(--ink); }
.brand--paper .brand__word { color: var(--paper); }
.brand--paper .brand__v { --bl: var(--paper); }
.hd__nav { display: flex; gap: 26px; margin-left: 14px; }
.hd__nav a {
  font-family: var(--font-text); font-size: 15px; color: var(--ink-soft); font-weight: 500;
  position: relative; padding: 4px 0;
}
.hd__nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--accent); transition: right var(--dur) var(--ease-snap);
}
.hd__nav a:hover { color: var(--ink); }
.hd__nav a:hover::after { right: 0; }
.hd__cta { margin-left: 20px; padding: 11px 16px; font-size: 14px; flex: none; white-space: nowrap; }
.hd__meta {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--stone);
}
/* Burger button (shown ≤880px) */
.hd__burger {
  display: none; margin-left: auto;
  width: 46px; height: 46px; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: var(--bw) solid var(--ink); background: transparent; border-radius: var(--r-1);
  cursor: pointer; flex: none;
}
.hd__burger span {
  display: block; width: 20px; height: 2px; background: var(--ink);
  transition: transform var(--dur) var(--ease-snap), opacity var(--dur);
}
.hd__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hd__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hd__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Full-screen mobile menu (sits below the fixed header so the burger stays tappable) */
.mnav {
  position: fixed; inset: 0; z-index: 55;
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 96px var(--pad-x) 40px; overflow-y: auto;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .28s var(--ease-step), transform .28s var(--ease-step);
}
.mnav.show { opacity: 1; transform: none; }
.mnav[hidden] { display: none; }
.mnav__list { display: flex; flex-direction: column; border-top: var(--bw) solid var(--line); }
.mnav__list a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 20px 2px; border-bottom: var(--bw) solid var(--line);
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em;
  font-size: clamp(30px, 9vw, 44px); color: var(--ink);
  transition: color var(--dur) var(--ease-snap);
}
.mnav__list a:hover, .mnav__list a:active { color: var(--accent); }
.mnav__foot { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.mnav__foot .btn { width: 100%; justify-content: center; }
.mnav__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); }

html.menu-open, html.menu-open body { overflow: hidden; }

/* ============================================================
   Section scaffolding
   ============================================================ */
.sec { position: relative; padding-block: var(--section-y); }
.sec--tight { padding-block: var(--section-y-s); }
.sec__head { margin-bottom: clamp(32px, 5vw, 64px); }
.sec__rule {
  height: 12px; margin-top: 18px;
  background: var(--ticks-h); background-size: var(--tick-gap) 100%;
  background-repeat: repeat-x; background-position: top;
  opacity: .8;
}
.eyebrow { /* the verst label */
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: var(--fs-label);
  letter-spacing: var(--tr-label); text-transform: uppercase;
  color: var(--ink); font-weight: 500;
}
.eyebrow__glyph {
  --bl: var(--ink);
  width: 15px; height: 28px; border-radius: 1px; flex: none;
  background: linear-gradient(45deg,
    var(--bl) 0, var(--bl) 5px,
    transparent 5px, transparent 10px,
    var(--bl) 10px, var(--bl) 15px,
    transparent 15px, transparent 20px,
    var(--bl) 20px, var(--bl) 25px,
    var(--accent) 25px, var(--accent) 100%);
}
.eyebrow .km { color: var(--accent); }
.eyebrow .sep { color: var(--stone); }
.sec__title { margin-top: 22px; }
.sec__lead { margin-top: 20px; font-size: var(--fs-body-l); line-height: 1.5; color: var(--ink-soft); max-width: 56ch; }

/* Scroll reveal (snapped) — hidden state only applies when JS is active,
   so content is always visible if the script fails to run. */
html.js .reveal { opacity: 0; transform: translateY(18px); }
html.js .reveal.in { opacity: 1; transform: none; transition: opacity var(--dur-slow) var(--ease-step), transform var(--dur-slow) var(--ease-step); }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-top: 150px; padding-bottom: var(--section-y); position: relative; }
.hero__grid {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background:
    repeating-linear-gradient(to right, transparent 0, transparent calc(100% / 12 - 1px), var(--line-faint) calc(100% / 12 - 1px), var(--line-faint) calc(100% / 12));
  -webkit-mask-image: linear-gradient(var(--paper), transparent 80%);
          mask-image: linear-gradient(var(--paper), transparent 80%);
  pointer-events: none;
}
.hero__in { position: relative; z-index: 1; }
.hero h1 { margin: 26px 0 0; max-width: 16ch; }

/* ---- Headline: assembles as a laid-out block, then types ---- */
.hline { display: block; overflow: visible; padding-bottom: .02em; }
.hline__in { display: inline-block; }

.hero h1 .vbar { color: var(--accent); position: relative; display: inline-block; }
/* the drawn ruler underline */
.vbar__line {
  position: absolute; left: 0; right: 0; bottom: -.02em; height: 7px;
  background: repeating-linear-gradient(90deg,
    var(--accent) 0 6px, transparent 6px 13px);
  transform: scaleX(1); transform-origin: left center;
  pointer-events: none;
}
/* ---- Assembly: blocks snap into place, then text types in ---- */
.asm { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .asm { opacity: 0; transform: translateY(16px); }
  .asm.asm--in {
    opacity: 1; transform: none;
    transition: opacity .4s var(--ease-step, ease), transform .45s var(--ease-step, ease);
  }
  /* empty wireframe placeholder while the block is being "laid out" */
  .asm--skel {
    outline: 1.5px dashed var(--line-strong);
    outline-offset: 7px;
    background: repeating-linear-gradient(90deg,
      rgba(24,20,16,.025) 0 9px, var(--line-faint) 9px 10px);
  }
  .ch { opacity: 0; }
  .ch.on { opacity: 1; transition: opacity .1s linear; }
  .ch.cur { box-shadow: 2px 0 0 var(--accent); }

  .js .hero__h1 .vbar__line { transform: scaleX(0); }
  .js .hero__h1.go .vbar__line { animation: vbarDraw .7s var(--ease-step, ease) .1s forwards; }
}
@keyframes vbarDraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__sub { margin-top: 28px; font-size: clamp(18px, 2vw, 22px); line-height: 1.4; color: var(--ink-soft); max-width: 40ch; font-weight: 500; }
.hero__note {
  margin-top: 22px; font-size: 15px; line-height: 1.6; color: var(--stone);
  max-width: 56ch; padding-left: 18px; border-left: var(--bw-2) solid var(--accent);
}
.hero__cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

/* ============================================================
   Buttons (page-local; mirrors the DS Button component)
   ============================================================ */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-text); font-weight: 600; font-size: 15px; line-height: 1;
  padding: 15px 22px; border-radius: var(--r-1); border: var(--bw-2) solid var(--ink);
  background: var(--ink); color: var(--paper); cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color var(--dur) var(--ease-snap), background var(--dur) var(--ease-snap), border-color var(--dur);
}
.btn span, .btn .arr { position: relative; z-index: 1; }
.btn .arr { transition: transform var(--dur) var(--ease-snap); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--stripe-accent); transform: translateX(-101%); transition: transform var(--dur-slow) var(--ease-step); opacity: .92; }
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0); }
.btn:hover .arr { transform: translateX(5px); }
.btn:hover, .btn:focus-visible { color: var(--ink); }
.btn--sec { background: transparent; color: var(--ink); }
.btn--sec::before { background: var(--ink); }
.btn--sec:hover, .btn--sec:focus-visible { color: var(--paper); }
/* Оранжевая кнопка (hero, бургер-меню, «Отправить», cookie):
   при наведении заливается белым, буквы перекрашиваются из белого сразу в рыжий. */
.btn--ink { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn--ink::before { background: var(--paper-pure); opacity: 1; }
.btn--ink:hover, .btn--ink:focus-visible { color: var(--accent); }

/* ============================================================
   Approach — numbered principle list
   ============================================================ */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.lede { font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 46ch; }
.prin { border-top: var(--bw) solid var(--line); }
.prin__row { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 26px 4px; border-bottom: var(--bw) solid var(--line); align-items: start; }
.prin__row h4 { margin: 0 0 7px; }
.prin__row p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); max-width: 54ch; }

/* ---- Team tiles ---- */
.team { margin-top: clamp(48px, 7vw, 96px); }
.team__label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 28px;
}
.team__label .sep { color: var(--line-strong); }
.team__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.tmc {
  display: flex; flex-direction: column;
  border: var(--bw) solid var(--line-strong);
  background: var(--paper-pure);
  transition: border-color .25s var(--ease-step, ease), transform .25s var(--ease-step, ease);
}
.tmc:hover { border-color: var(--ink); transform: translateY(-3px); }
.tmc__photo {
  position: relative; width: 100%; aspect-ratio: 4 / 5;
  border-bottom: var(--bw) solid var(--line-strong);
  background: repeating-linear-gradient(90deg,
    rgba(24,20,16,.03) 0 9px, var(--line-faint) 9px 10px);
  overflow: hidden;
}
.tmc__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* striped cap on hover — the wayfinding motif */
.tmc__photo::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: repeating-linear-gradient(-45deg,
    var(--accent) 0 5px, transparent 5px 10px);
  opacity: 0; transition: opacity .25s var(--ease-step, ease);
}
.tmc:hover .tmc__photo::after { opacity: 1; }
.tmc__body { padding: 16px 16px 18px; position: relative; }
.tmc__name { margin: 0 0 6px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.15; }
.tmc__role {
  font-family: var(--font-mono); font-size: 12px; line-height: 1.4;
  letter-spacing: .04em; color: var(--stone); text-transform: uppercase;
}

/* ============================================================
   Services — indexed rows
   ============================================================ */
.srv { border-top: var(--bw) solid var(--line); }
.srv__row {
  position: relative; display: grid; grid-template-columns: minmax(0,1fr);
  gap: clamp(16px, 4vw, 56px); padding: clamp(26px, 3.6vw, 44px) 8px clamp(26px, 3.6vw, 44px) 30px;
  border-bottom: var(--bw) solid var(--line); overflow: hidden;
  transition: background var(--dur) var(--ease-snap);
}
.srv__row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--stripe-accent); transform: scaleY(0); transform-origin: top; transition: transform var(--dur) var(--ease-step); }
.srv__row:hover { background: var(--paper-pure); }
.srv__row:hover::before { transform: scaleY(1); }
.srv__row h3 { margin: 0; font-size: clamp(22px, 2.6vw, 34px); }
.srv__row p { margin: 12px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-soft); max-width: 64ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .03em; color: var(--ink-soft); border: var(--bw) solid var(--line-strong); border-radius: var(--r-pill); padding: 5px 12px; white-space: nowrap; }
.tag--pine { color: var(--pine); border-color: color-mix(in srgb, var(--pine) 42%, transparent); }

/* ============================================================
   Industries
   ============================================================ */
.ind { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ind__card { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 3vw, 46px); background: var(--paper-pure); border: var(--bw) solid var(--line); border-radius: var(--r-2); overflow: hidden; min-height: 300px; transition: border-color var(--dur) var(--ease-snap); }
.ind__card:hover { border-color: var(--ink); }
.ind__cap { position: absolute; top: 0; left: 0; right: 0; height: 10px; background: var(--stripe-ink); opacity: .85; }
.ind__card--accent .ind__cap { background: var(--stripe-accent); }
.ind__idx { font-family: var(--font-mono); font-size: 12px; color: var(--stone); letter-spacing: .12em; margin-top: 10px; }
.ind__card h3 { margin: auto 0 14px; font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; line-height: 1; letter-spacing: -.01em; }
.ind__card p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 18px; max-width: 42ch; }
.ind__more { margin-top: 26px; font-size: 16px; color: var(--ink-soft); max-width: 70ch; line-height: 1.55; }

/* ============================================================
   Route — the road
   ============================================================ */
.route { display: grid; grid-template-columns: 64px 1fr; gap: clamp(20px, 4vw, 48px); }
.route__track { position: relative; }
.route__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route__steps { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 90px); }
.mile { display: block; }
.mile h3 { margin: 0 0 8px; font-size: clamp(24px, 2.6vw, 34px); }
.mile p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); margin: 0; }

/* ============================================================
   Why us — advantage rows with tick markers
   ============================================================ */
.why { border-top: var(--bw) solid var(--line); }
.why__row { display: grid; grid-template-columns: 28px 1fr; gap: 18px; padding: 22px 4px; border-bottom: var(--bw) solid var(--line); align-items: start; }
.why__mark {
  width: 15px; height: 15px; margin-top: .28em;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.why__row b { font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 1.9vw, 23px); color: var(--ink); }
.why__row span { color: var(--ink-soft); font-size: 16px; }

/* ============================================================
   Works — placeholder cards
   ============================================================ */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work { border: var(--bw) solid var(--line); border-radius: var(--r-2); overflow: hidden; background: var(--paper-pure); }
.work__img { aspect-ratio: 4/3; background: var(--stripe-ink); position: relative; opacity: .9; display: flex; align-items: center; justify-content: center; }
.work__img span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--paper); background: var(--ink); padding: 6px 10px; border-radius: var(--r-1); }
.work__img--photo { background: var(--ink); opacity: 1; }
.work__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work__body { padding: 20px 22px 24px; }
.work__cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.work__body h4 { margin: 10px 0 6px; font-size: 21px; }
.work__metric { font-family: var(--font-mono); font-size: 13px; color: var(--stone); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { border-top: var(--bw) solid var(--line); max-width: 880px; }
.faq__item { border-bottom: var(--bw) solid var(--line); }
.faq__q { width: 100%; display: flex; align-items: center; gap: 16px; padding: 22px 4px; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 1.7vw, 21px); color: var(--ink); }
.faq__q .pm { margin-left: auto; font-family: var(--font-mono); color: var(--accent); font-size: 22px; transition: transform var(--dur) var(--ease-snap); flex: none; }
.faq__item.open .pm { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease-step); }
.faq__a p { padding: 0 4px 24px 38px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); max-width: 64ch; margin: 0; }

/* ============================================================
   Finish — dark CTA + form
   ============================================================ */
.finish { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.finish__stripe { position: absolute; top: 0; left: 0; right: 0; height: 10px; background: var(--stripe-paper); opacity: .5; }
.finish .eyebrow { color: var(--paper); }
.finish .eyebrow__glyph { --bl: var(--paper); }
.finish h2 { color: var(--paper); }
.finish__head { margin-bottom: clamp(40px, 5vw, 64px); }
.finish__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 96px); align-items: start; }
.finish__lead { font-size: var(--fs-body-l); line-height: 1.55; color: rgba(244,240,232,.78); max-width: 54ch; }
.finish__contacts { margin-top: 0; display: flex; flex-direction: column; gap: 14px; }
.finish__contacts a, .finish__contacts div { font-family: var(--font-mono); font-size: 14px; color: var(--paper); letter-spacing: .02em; display: flex; gap: 12px; align-items: baseline; }
.finish__contacts .lbl { color: rgba(244,240,232,.5); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; width: 80px; flex: none; }
.form { display: flex; flex-direction: column; gap: 26px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(244,240,232,.6); }
.field label .req { color: var(--accent); }
.field input, .field textarea { font-family: var(--font-text); font-size: 18px; color: var(--paper); background: transparent; border: 0; border-bottom: var(--bw-2) solid var(--line-paper); padding: 9px 2px; width: 100%; }
.field textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: rgba(244,240,232,.38); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.form__ok { font-family: var(--font-mono); font-size: 14px; color: var(--accent); display: none; }
.form.sent .form__ok { display: block; }

/* ============================================================
   Footer
   ============================================================ */
.ft { background: var(--ink); color: var(--paper); padding-top: 64px; padding-bottom: 36px; border-top: var(--bw) solid var(--line-paper); }
.ft__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.ft__pos { font-size: 15px; line-height: 1.55; color: rgba(244,240,232,.66); max-width: 36ch; margin-top: 16px; }
.ft__col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,240,232,.5); margin: 0 0 16px; font-weight: 500; }
.ft__col a { display: block; font-size: 15px; color: rgba(244,240,232,.85); padding: 5px 0; }
.ft__col a:hover { color: var(--accent); }
.ft__word { font-family: var(--font-display); font-weight: 800; font-size: clamp(64px, 17vw, 240px); line-height: .82; letter-spacing: -.02em; color: var(--paper); margin: 56px 0 0; -webkit-text-stroke: 0; position: relative; }
.ft__word .glyph { display: inline-block; width: .12em; height: .8em; background: var(--stripe-paper); border-radius: 2px; margin-left: .06em; vertical-align: baseline; }
.ft__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 40px; padding-top: 24px; border-top: var(--bw) solid var(--line-paper); flex-wrap: wrap; }
.ft__copy { font-family: var(--font-mono); font-size: 12px; color: rgba(244,240,232,.5); letter-spacing: .04em; }
.ft__odo { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .06em; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1180px) {
  .hd__meta { display: none; }
  .hd__cta { margin-left: auto; }
}
@media (max-width: 1080px) {
  .ruler { display: none; }
  .post { right: 14px; }
  .works { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .finish__grid { grid-template-columns: 1fr; gap: 40px; }
  .ft__top { grid-template-columns: 1fr 1fr; }
}

/* ---- Handheld: header collapses to the burger ---- */
@media (max-width: 880px) {
  .hd__nav, .hd__cta { display: none; }
  .hd__burger { display: inline-flex; }
  .ind { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Phone ---- */
@media (max-width: 720px) {
  .post { display: none; }
  .mbar { display: block; position: fixed; top: 0; left: 0; right: 0; height: 5px; z-index: 70; background: var(--paper-pure); }
  .mbar__fill { height: 100%; width: 0%; background: var(--stripe-accent); transition: width 100ms linear; }

  .hd__in { height: 60px; }

  /* tighten section rhythm on small screens */
  .sec { padding-block: clamp(52px, 13vw, 84px); }
  .hero { padding-top: 104px; padding-bottom: clamp(52px, 13vw, 84px); }
  .hero h1 { max-width: none; }
  .hero__h1 { font-size: clamp(36px, 11vw, 76px); line-height: .98; overflow-wrap: break-word; }
  .hero__sub { font-size: 18px; max-width: none; margin-top: 24px; }
  .hero__note { max-width: none; margin-top: 20px; }
  .hero__cta { gap: 12px; margin-top: 30px; }
  .hero__cta .btn { width: 100%; justify-content: flex-start; }
  .hero__cta .arr { margin-left: auto; }

  .sec__title { font-size: clamp(30px, 8.5vw, 42px); }

  /* keep a slim "road" rail instead of dropping the motif */
  .route { grid-template-columns: 26px 1fr; gap: 18px; }
  .route__steps { gap: clamp(34px, 10vw, 60px); }

  .ind__card { min-height: auto; padding: 28px 22px; }
  .works { grid-template-columns: 1fr; }

  .finish__contacts a, .finish__contacts div { flex-direction: column; gap: 3px; }
  .finish__contacts .lbl { width: auto; }
  .ft__top { grid-template-columns: 1fr; gap: 28px; }
  .ft__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 420px) {
  .team__grid { grid-template-columns: 1fr; }
  .hero__h1 { font-size: clamp(32px, 10.5vw, 44px); }
  .hero__cta .btn span:not(.arr) { font-size: 14px; }
}

/* ============================================================
   Inline link (consent / footer / cookie)
   ============================================================ */
.lnk { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; transition: color var(--dur) var(--ease-snap); }
.lnk:hover { color: var(--accent-deep); }

/* Consent line above the submit button (on the dark finish section) */
.form__consent { font-size: 13px; line-height: 1.5; color: rgba(244, 240, 232, .6); margin: -8px 0 0; max-width: 52ch; }

/* Footer legal links */
.ft__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; padding-top: 20px; border-top: var(--bw) solid var(--line-paper); }
.ft__legal a { font-size: 14px; color: rgba(244, 240, 232, .7); }
.ft__legal a:hover { color: var(--accent); }

/* ============================================================
   Cookie banner
   ============================================================ */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120;
  display: none; align-items: center; gap: 18px; flex-wrap: wrap;
  max-width: 720px; margin: 0 auto;
  background: var(--ink); color: var(--paper);
  border: var(--bw) solid var(--line-paper); border-radius: var(--r-2);
  padding: 16px 20px; box-shadow: var(--shadow-pop);
  transform: translateY(140%); transition: transform var(--dur-slow) var(--ease-step);
}
.cookie.show { display: flex; transform: translateY(0); }
/* Плашка (z-index 120) не должна перекрывать открытое мобильное меню (z-index 55):
   на невысоких экранах она ложится на нижние пункты и перехватывает тапы. */
html.menu-open .cookie { display: none; }
.cookie__text { font-size: 14px; line-height: 1.5; color: rgba(244, 240, 232, .82); margin: 0; flex: 1 1 260px; }
.cookie__btn { flex: none; padding: 11px 20px; font-size: 14px; }

/* ============================================================
   Modal (pop-up) — legal documents
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(24, 20, 16, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal__box {
  position: relative; z-index: 1;
  width: 100%; max-width: 720px; max-height: 85vh; overflow-y: auto;
  background: var(--paper-pure); color: var(--ink-soft);
  border: var(--bw) solid var(--line-strong); border-radius: var(--r-2);
  padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-pop);
}
.modal__close {
  position: absolute; top: 12px; right: 14px;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer;
  font-size: 28px; line-height: 1; color: var(--stone); border-radius: var(--r-1);
  transition: color var(--dur), background var(--dur);
}
.modal__close:hover { color: var(--ink); background: var(--paper); }
.modal__title { font-size: clamp(22px, 3vw, 30px); margin: 0 40px 18px 0; color: var(--ink); }
.modal__body { font-size: 15px; line-height: 1.65; }
.modal__body p { margin: 0 0 14px; }
.modal__body p:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  .cookie { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; }
  .cookie__btn { width: 100%; justify-content: center; }
}
