/* =========================================================
   ГРЕЧАНЫЙ — веб-студия
   assets/styles.css
   ========================================================= */

/* ---------- 1. Токены ---------- */

:root {
  --f-head: 'Onest', system-ui, sans-serif;
  --f-text: 'Golos Text', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --wrap: 1280px;
  --pad: clamp(20px, 4.5vw, 56px);
  --gap: clamp(24px, 3.5vw, 48px);

  --r: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* цветные плашки кейсов */
  --c-cly: #c1592f;
  --c-grn: #3d6350;
  --c-blu: #2f4a76;
  --c-ink: #17150f;
}

:root[data-theme='paper'] {
  --bg:     #f2efe9;
  --bg-2:   #e9e5db;
  --card:   #fbfaf6;
  --fg:     #141310;
  --fg-2:   #6d675b;
  --line:   rgba(20, 19, 16, .16);
  --line-2: rgba(20, 19, 16, .08);
  --acc:    #e2481a;
  --acc-sf: rgba(226, 72, 26, .1);
  --on-acc: #fff8f4;
  --shadow: 0 24px 60px -32px rgba(20, 19, 16, .4);
  color-scheme: light;
}

:root[data-theme='ink'] {
  --bg:     #100f0c;
  --bg-2:   #17150f;
  --card:   #1a1813;
  --fg:     #f1ede4;
  --fg-2:   #948d7e;
  --line:   rgba(241, 237, 228, .17);
  --line-2: rgba(241, 237, 228, .08);
  --acc:    #ff5a2b;
  --acc-sf: rgba(255, 90, 43, .12);
  --on-acc: #14110d;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .8);
  --c-cly: #d0663a;
  --c-grn: #43705a;
  --c-blu: #365586;
  --c-ink: #262219;
  color-scheme: dark;
}

/* ---------- 2. База ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 clamp(15px, .55vw + 13.4px, 17px)/1.62 var(--f-text);
  font-feature-settings: 'ss01', 'liga';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .35s var(--ease), color .35s var(--ease);
}

h1, h2, h3 { margin: 0; font-family: var(--f-head); font-weight: 700; letter-spacing: -.025em; line-height: 1.06; }
p  { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--acc); color: var(--on-acc); }

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: var(--r);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--acc);
  color: var(--on-acc);
  font: 500 13px var(--f-mono);
  transform: translateY(-160%);
  transition: transform .25s var(--ease);
}
.skip:focus { transform: none; }

/* колонны-линейки на фоне */
.rules {
  position: fixed;
  inset: 0 auto 0 50%;
  transform: translateX(-50%);
  width: min(var(--wrap), 100%);
  padding-inline: var(--pad);
  pointer-events: none;
  z-index: 0;
}
.rules::before {
  content: '';
  display: block;
  height: 100%;
  background-image: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px calc(100% / 4));
}
@media (max-width: 860px) { .rules { display: none; } }

main, .hd, .ticker, .ft { position: relative; z-index: 1; }

/* ---------- 3. Типографические примитивы ---------- */

.lbl {
  font: 500 12px/1 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.lbl::before {
  content: '';
  width: 22px; height: 1px;
  background: currentColor;
  flex: none;
}
.lbl--acc { color: var(--acc); }

.h2 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 800;
  margin-top: 22px;
}

.lead {
  margin-top: 20px;
  max-width: 62ch;
  color: var(--fg-2);
  font-size: 1.05em;
}

.sec { padding-block: clamp(64px, 9vw, 140px); }
.sec--tight { padding-block: clamp(36px, 4vw, 56px); }

.head { margin-bottom: clamp(40px, 5vw, 72px); }

/* ---------- 4. Кнопки ---------- */

.btn {
  --btn-bg: var(--acc);
  --btn-fg: var(--on-acc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--r);
  font: 600 15px/1 var(--f-text);
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -14px var(--acc); }
.btn:active { transform: translateY(0); }

.btn--sm { padding: 11px 18px; font-size: 14px; }

.btn--out {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  border-color: var(--line);
}
.btn--out:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); box-shadow: none; }

.btn--full { width: 100%; }

.lnk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 15px var(--f-text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.lnk span { transition: transform .3s var(--ease); }
.lnk:hover { color: var(--acc); border-color: var(--acc); }
.lnk:hover span { transform: translateY(3px); }

/* ---------- 5. Тикер ---------- */

.ticker {
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding-block: 9px;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: run 44s linear infinite;
}
.ticker__track span {
  font: 500 12px/1 var(--f-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg-2);
  white-space: nowrap;
}
.ticker__track i {
  font-style: normal;
  color: var(--acc);
  padding-inline: 22px;
  font-size: 12px;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes run { to { transform: translateX(-50%); } }

/* ---------- 6. Шапка ---------- */

.hd {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.hd.is-stuck { border-bottom-color: var(--line); }

.hd__in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.mark { display: grid; gap: 3px; margin-right: auto; }
.mark__w {
  font: 800 19px/1 var(--f-head);
  letter-spacing: .01em;
}
.mark__s {
  font: 400 10px/1 var(--f-mono);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.nav { display: flex; gap: clamp(14px, 1.8vw, 30px); }
.nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font: 500 14.5px var(--f-text);
  color: var(--fg-2);
  transition: color .2s var(--ease);
}
.nav a i {
  font: 400 10px var(--f-mono);
  font-style: normal;
  color: var(--acc);
  opacity: .55;
}
.nav a:hover, .nav a.is-active { color: var(--fg); }
.nav a.is-active i { opacity: 1; }

.hd__act { display: flex; align-items: center; gap: 10px; }

.sw {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.sw:hover { background: var(--bg-2); border-color: var(--fg-2); }
.sw__t { font: 600 13px var(--f-head); }

.burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
}
.burger span {
  width: 17px; height: 1.5px;
  background: var(--fg);
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- 7. Первый экран ---------- */

.hero { padding-block: clamp(56px, 8vw, 120px) clamp(40px, 5vw, 72px); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.24fr .76fr;
  gap: var(--gap);
  align-items: end;
}

.hero__h1 {
  font-size: clamp(2.4rem, 5vw, 4.9rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.04em;
}
.hero__h1 em {
  font-style: normal;
  color: var(--acc);
  text-decoration: underline;
  text-decoration-thickness: .055em;
  text-underline-offset: .12em;
  text-decoration-color: color-mix(in srgb, var(--acc) 45%, transparent);
}

.hero__side { padding-bottom: 6px; }
.hero__p { color: var(--fg-2); max-width: 46ch; }
.hero__cta {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.figs {
  margin-top: clamp(52px, 7vw, 96px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.figs li {
  padding: 26px 24px 4px 0;
  display: grid;
  gap: 6px;
  border-right: 1px solid var(--line-2);
}
.figs li:last-child { border-right: 0; }
.figs li:not(:first-child) { padding-left: 24px; }
.figs b {
  font: 700 clamp(2rem, 3.8vw, 3.1rem)/1 var(--f-head);
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.figs span {
  font: 400 12px/1.45 var(--f-mono);
  letter-spacing: .04em;
  color: var(--fg-2);
  text-transform: uppercase;
}

/* ---------- 8. Стена клиентов ---------- */

.wall {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.wall li {
  padding: 26px 18px;
  display: grid;
  place-items: center;
  text-align: center;
  font: 600 clamp(14px, 1.3vw, 17px)/1.2 var(--f-head);
  letter-spacing: -.01em;
  color: var(--fg-2);
  box-shadow: 1px 0 0 var(--line-2), 0 1px 0 var(--line-2);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.wall li:hover { color: var(--fg); background: var(--bg-2); }

/* ---------- 9. Услуги ---------- */

.rows { border-top: 1px solid var(--line); }

.row {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(180px, 1fr) minmax(0, 1.5fr) auto;
  gap: 24px;
  align-items: start;
  padding: clamp(24px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  transition: background .25s var(--ease);
}
.row::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--acc);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s var(--ease);
}
.row:hover { background: var(--bg-2); }
.row:hover::after { transform: scaleY(1); }

.row__n {
  font: 500 12px/1.7 var(--f-mono);
  letter-spacing: .1em;
  color: var(--fg-2);
  padding-left: 6px;
}
.row__t {
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 700;
  padding-top: 1px;
}
.row__d { color: var(--fg-2); font-size: .96em; }
.row__x {
  font: 500 14px/1.6 var(--f-mono);
  color: var(--fg);
  white-space: nowrap;
  text-align: right;
}

.row--mark { background: var(--acc-sf); }
.row--mark::after { transform: scaleY(1); }
.row--mark .row__x { color: var(--acc); }

/* ---------- 10. Кейсы ---------- */

.cases { display: grid; gap: clamp(36px, 5vw, 76px); }

.case {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(24px, 3.4vw, 56px);
  align-items: center;
}
.case--rev .case__plate { order: 2; }

.case__plate {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--pl, var(--c-ink));
  border-radius: var(--r);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
}
.case__plate::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px calc(100% / 6));
  z-index: -1;
}
.case__name {
  font: 800 clamp(1.6rem, 3.4vw, 2.8rem)/1 var(--f-head);
  letter-spacing: -.04em;
  color: #fff;
  mix-blend-mode: normal;
}
.case__year {
  align-self: flex-end;
  font: 500 12px var(--f-mono);
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .68);
}

.case__kind {
  font: 500 11.5px/1 var(--f-mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--acc);
}
.case__h {
  margin-top: 16px;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  font-weight: 700;
}
.case__p { margin-top: 16px; color: var(--fg-2); max-width: 54ch; }

.res {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.res dt {
  font: 400 11.5px/1.35 var(--f-mono);
  letter-spacing: .04em;
  color: var(--fg-2);
}
.res dd {
  margin-top: 8px;
  font: 700 clamp(1.25rem, 2vw, 1.7rem)/1 var(--f-head);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.cases__note {
  margin-top: clamp(40px, 5vw, 68px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--fg-2);
  max-width: 70ch;
}

/* ---------- 10a. Было / Стало ---------- */

.ba {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.6vw, 36px);
  align-items: start;
}

.ba__i {
  position: relative;
  margin: 0;
}
.ba__i img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  filter: grayscale(.18);
  transition: filter .35s var(--ease), transform .35s var(--ease);
}
.ba__i:hover img { filter: none; transform: translateY(-3px); }

.ba__tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  padding: 7px 13px;
  border-radius: 100px;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.ba__tag--old { background: rgba(20, 19, 16, .74); color: #e8e4db; }
.ba__tag--new { background: var(--acc); color: var(--on-acc); }

.ba__i figcaption {
  margin-top: 16px;
  color: var(--fg-2);
  font-size: .92em;
  line-height: 1.55;
  max-width: 46ch;
}

.res--wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(36px, 4vw, 56px);
}

@media (max-width: 860px) {
  .ba { grid-template-columns: 1fr; gap: 34px; }
  .res--wide { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 11. Процесс ---------- */

.track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.stp {
  background: var(--bg);
  padding: clamp(24px, 2.6vw, 34px);
  display: grid;
  align-content: start;
  gap: 12px;
  transition: background .25s var(--ease);
}
.stp:hover { background: var(--bg-2); }
.stp__n {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--acc);
  border-radius: 50%;
  color: var(--acc);
  font: 500 13px var(--f-mono);
}
.stp h3 { font-size: 1.12rem; font-weight: 700; margin-top: 4px; }
.stp p { color: var(--fg-2); font-size: .95em; }

/* ---------- 12. О нас ---------- */

.about {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.about__p { margin-top: 22px; color: var(--fg-2); max-width: 60ch; }

.pts {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.pts li {
  background: var(--bg);
  padding: 22px;
  display: grid;
  gap: 7px;
}
.pts b { font: 600 15.5px var(--f-head); }
.pts span { color: var(--fg-2); font-size: .9em; line-height: 1.45; }

.doc {
  position: sticky;
  top: 92px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(24px, 2.4vw, 32px);
  box-shadow: var(--shadow);
}
.doc__cap {
  font: 500 11.5px/1 var(--f-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.doc__dl { margin: 22px 0 28px; display: grid; gap: 0; }
.doc__dl > div {
  display: grid;
  gap: 5px;
  padding: 14px 0;
  border-top: 1px solid var(--line-2);
}
.doc__dl > div:first-child { border-top: 0; padding-top: 0; }
.doc__dl dt {
  font: 400 11.5px/1 var(--f-mono);
  letter-spacing: .06em;
  color: var(--fg-2);
}
.doc__dl dd { font-size: .95em; line-height: 1.5; }
.doc__dl a { border-bottom: 1px solid var(--acc); }

/* ---------- 14. FAQ ---------- */

.faq { border-top: 1px solid var(--line); }

.q { border-bottom: 1px solid var(--line); }
.q summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 0;
  display: flex;
  align-items: center;
  gap: 24px;
  font: 600 clamp(1.02rem, 1.5vw, 1.28rem)/1.35 var(--f-head);
  letter-spacing: -.015em;
  transition: color .2s var(--ease);
}
.q summary::-webkit-details-marker { display: none; }
.q summary:hover { color: var(--acc); }

.q summary i {
  position: relative;
  margin-left: auto;
  flex: none;
  width: 15px; height: 15px;
}
.q summary i::before,
.q summary i::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: var(--acc);
  transition: transform .3s var(--ease);
}
.q summary i::after { transform: rotate(90deg); }
.q[open] summary i::after { transform: rotate(0deg); }
.q[open] summary { color: var(--acc); }

.q__a { padding-bottom: 28px; padding-right: 48px; }
.q__a p { color: var(--fg-2); max-width: 72ch; }

/* ---------- 15. Контакты ---------- */

.ct {
  display: grid;
  grid-template-columns: 1fr .82fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.ct__list { margin-top: 44px; border-top: 1px solid var(--line); }
.ct__list li {
  display: grid;
  gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-2);
}
.ct__list span {
  font: 400 11.5px/1 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.ct__list b {
  font: 700 clamp(1.15rem, 2vw, 1.6rem)/1.2 var(--f-head);
  letter-spacing: -.03em;
}
.ct__list b a { transition: color .2s var(--ease); }
.ct__list b a:hover { color: var(--acc); }
.ct__list em { font-style: normal; color: var(--fg-2); font-size: .88em; }

.form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(24px, 2.6vw, 34px);
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow);
}
.form__cap {
  font: 500 11.5px/1 var(--f-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 6px;
}

.f { position: relative; }
.f input, .f select, .f textarea {
  width: 100%;
  padding: 25px 14px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 15px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  appearance: none;
}
.f textarea { resize: vertical; min-height: 96px; }
.f label {
  position: absolute;
  left: 15px;
  top: 17px;
  font-size: 15px;
  color: var(--fg-2);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .18s var(--ease), color .18s var(--ease);
}
.f input:focus, .f select:focus, .f textarea:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-sf);
}
.f input:focus + label,
.f textarea:focus + label,
.f input:not(:placeholder-shown) + label,
.f textarea:not(:placeholder-shown) + label,
.f--sel label {
  transform: translateY(-11px) scale(.72);
  color: var(--fg-2);
}
.f--sel::after {
  content: '';
  position: absolute;
  right: 16px; top: 50%;
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--fg-2);
  border-bottom: 1.5px solid var(--fg-2);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.f--sel select { padding-right: 38px; }

/* ловушка для спам-ботов: человек её не видит и не заполнит */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.chk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .86em;
  color: var(--fg-2);
  cursor: pointer;
  margin-block: 4px;
}
.chk input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--acc); flex: none; }

.form__note { font: 500 13px var(--f-mono); color: var(--acc); min-height: 1.2em; }
.form__note.is-ok { color: var(--c-grn); }
:root[data-theme='ink'] .form__note.is-ok { color: #6fbf90; }

/* ---------- 16. Подвал ---------- */

.ft {
  background: #100f0c;
  color: #f1ede4;
  padding-top: clamp(56px, 6vw, 90px);
  overflow: hidden;
}
.ft__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: clamp(40px, 5vw, 64px);
}
.ft__c { display: grid; gap: 10px; align-content: start; }
.ft__c b {
  font: 500 11.5px/1 var(--f-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #ff5a2b;
  margin-bottom: 6px;
}
.ft__c a, .ft__c p {
  color: rgba(241, 237, 228, .62);
  font-size: .93em;
  line-height: 1.6;
  transition: color .2s var(--ease);
}
.ft__c a:hover { color: #f1ede4; }

.ft__word {
  font: 800 clamp(3rem, 15.5vw, 13rem)/.82 var(--f-head);
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(241, 237, 228, .22);
  text-align: center;
  user-select: none;
  white-space: nowrap;
  margin-bottom: -.09em;
}

.ft__bot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 22px;
  border-top: 1px solid rgba(241, 237, 228, .13);
  font: 400 12px var(--f-mono);
  letter-spacing: .04em;
  color: rgba(241, 237, 228, .45);
}

/* ---------- 17. Появление при скролле ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-d='2'] { transition-delay: .09s; }
.js .reveal[data-d='3'] { transition-delay: .18s; }

/* ---------- 18. Адаптив ---------- */

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 34px; align-items: start; }
  .about, .ct { grid-template-columns: 1fr; }
  .doc { position: static; }
  .track { grid-template-columns: repeat(2, 1fr); }
  .row { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .row__d { grid-column: 2 / -1; }
  .ft__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    padding: 96px var(--pad) 40px;
    flex-direction: column;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-100%);
    transition: transform .38s var(--ease);
    z-index: -1;
  }
  .nav.is-open { transform: none; box-shadow: var(--shadow); }
  .nav a { font-size: 1.5rem; font-family: var(--f-head); font-weight: 700; padding-block: 10px; }
  .nav a i { font-size: 11px; }
  .burger { display: flex; }
  .hd__act .btn--sm { display: none; }
  body.is-locked { overflow: hidden; }

  .figs { grid-template-columns: repeat(2, 1fr); }
  .figs li:nth-child(2n) { border-right: 0; }
  .figs li:nth-child(2n + 1) { padding-left: 0; }
  .figs li:nth-child(n + 3) { border-top: 1px solid var(--line-2); }
  .wall { grid-template-columns: repeat(2, 1fr); }
  .case, .case--rev .case__plate { grid-template-columns: 1fr; order: 0; }
  .case__plate { aspect-ratio: 16 / 9; }
  .vac__body { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .track, .pts { grid-template-columns: 1fr; }
  .row { grid-template-columns: 44px 1fr; row-gap: 10px; }
  .row__x { grid-column: 2; text-align: left; }
  .res { grid-template-columns: 1fr; gap: 14px; }
  .res dd { font-size: 1.35rem; }
  .ft__grid { grid-template-columns: 1fr; }
  .q__a { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
