@import url("../fonts/fonts.css");

/* ==========================================================================
   KYZAEV Consulting — лист технического аудита
   Светлая тема задаёт полный набор токенов, тёмная переопределяет только их.
   Ни один цвет не объявляется внутри @media — иначе он не применится.
   ========================================================================== */

:root {
  --paper:        #EBEEF4;
  --surface:      #FFFFFF;
  --surface-sunk: #F4F6FA;

  --ink:          #161A24;
  --ink-soft:     #3A4257;
  --muted:        #69718A;
  --navy:         #2E3753;
  --navy-deep:    #212840;
  --on-navy:      #F6F8FC;

  --line:         #D3DAE6;
  --line-soft:    #E4E8F0;
  --brass:        #9A7B3E;
  --brass-dim:    #B99A5E;

  --err:          #B4322B;
  --ok:           #1A7A4C;

  --shadow-lift:  0 1px 2px rgba(22, 26, 36, .05), 0 12px 32px -12px rgba(22, 26, 36, .16);
  --shadow-cut:   0 40px 60px -30px rgba(22, 26, 36, .38);

  --rail:   150px;
  --shell:  1240px;
  --gutter: clamp(20px, 5vw, 60px);
  --r:      3px;
  --ease:   cubic-bezier(.22, .61, .36, 1);

  --chev: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2369718A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:        #101319;
    --surface:      #171B24;
    --surface-sunk: #1C212C;

    --ink:          #E9ECF3;
    --ink-soft:     #C2C8D6;
    --muted:        #8F97AC;
    --navy:         #8FA1D0;
    --navy-deep:    #A9B8DE;
    --on-navy:      #0E1118;

    --line:         #2A3141;
    --line-soft:    #232935;
    --brass:        #C9A15E;
    --brass-dim:    #9A7B3E;

    --err:          #FF8078;
    --ok:           #4FCB8D;

    --shadow-lift:  0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-cut:   0 40px 60px -30px rgba(0, 0, 0, .75);

    --chev: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238F97AC' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper:        #101319;
  --surface:      #171B24;
  --surface-sunk: #1C212C;

  --ink:          #E9ECF3;
  --ink-soft:     #C2C8D6;
  --muted:        #8F97AC;
  --navy:         #8FA1D0;
  --navy-deep:    #A9B8DE;
  --on-navy:      #0E1118;

  --line:         #2A3141;
  --line-soft:    #232935;
  --brass:        #C9A15E;
  --brass-dim:    #9A7B3E;

  --err:          #FF8078;
  --ok:           #4FCB8D;

  --shadow-lift:  0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-cut:   0 40px 60px -30px rgba(0, 0, 0, .75);

  --chev: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238F97AC' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

  color-scheme: dark;
}

/* --------------------------------------------------------------- база --- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.005em;
  text-wrap: balance;
  color: var(--ink);
}

p { margin: 0; }

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

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

/* ------------------------------------------------------------ типографика */

.display {
  font-size: clamp(2.9rem, 6.4vw, 5.1rem);
  letter-spacing: -0.018em;
}

.h2 {
  font-size: clamp(2.1rem, 3.9vw, 3.05rem);
  letter-spacing: -0.012em;
}

.h3 {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.115rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.004em;
}

.lede {
  font-size: clamp(1.075rem, 1.5vw, 1.2rem);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 60ch;
}

.body-muted { color: var(--muted); font-size: .965rem; line-height: 1.62; }

/* моноширинная утилита — маргиналии, метки, данные */
.mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .715rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.tnum { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ сетка */

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

/* Разлинованный лист: поле слева под маркер секции + сквозная линейка. */
.sheet {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  column-gap: clamp(24px, 3.4vw, 56px);
  position: relative;
}

.sheet::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--rail) - clamp(12px, 1.7vw, 28px));
  width: 1px;
  background: var(--line-soft);
}

.rail { position: relative; }

.rail__mark {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--brass);
  padding-top: 4px;
}

.rail__mark span:last-child {
  color: var(--muted);
  letter-spacing: .1em;
}

/* секции */
.section {
  padding-block: clamp(72px, 9vw, 132px);
  border-top: 1px solid var(--line);
}

.section--flush { border-top: 0; }

.section__head { margin-bottom: clamp(38px, 5vw, 62px); max-width: 66ch; }
.section__head .h2 { margin-bottom: 18px; }

@media (max-width: 900px) {
  .sheet { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
  .sheet::before { display: none; }
  .rail__mark {
    position: static;
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
    padding-top: 0;
  }
}

/* --------------------------------------------------------------- шапка --- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}

.header.is-stuck {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}

.header__in {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 76px;
}

/* лок-ап: монограмма + словесный знак набором.
   Монограмма — маска, а не <img>: сама перекрашивается под тему. */
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.logo__mark {
  width: 29px;
  aspect-ratio: 217 / 271;
  background: var(--navy);
  -webkit-mask: url("../img/mark.png") center / contain no-repeat;
  mask: url("../img/mark.png") center / contain no-repeat;
  flex-shrink: 0;
}

.logo__text { display: flex; flex-direction: column; line-height: 1; gap: 4px; }

.logo__name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.31rem;
  font-weight: 600;
  letter-spacing: .17em;
  color: var(--ink);
}

.logo__sub {
  font-family: "IBM Plex Mono", monospace;
  font-size: .565rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }

.nav__link {
  font-size: .875rem;
  color: var(--ink-soft);
  position: relative;
  padding-block: 4px;
  transition: color .2s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}

.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }

@media (max-width: 1080px) { .nav { display: none; } }

/* --------------------------------------------------------------- кнопки -- */

.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--on-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--btn-bg);
  border-radius: var(--r);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-size: .925rem;
  font-weight: 500;
  letter-spacing: .005em;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease),
              background .2s var(--ease), border-color .2s var(--ease);
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover { border-color: var(--navy); background: var(--surface); }

.btn--sm { padding: 10px 18px; font-size: .875rem; }
.btn--wide { width: 100%; padding-block: 16px; }

.btn svg { width: 17px; height: 17px; stroke-width: 1.7; flex-shrink: 0; }

@media (max-width: 620px) { .btn--head { display: none; } }

/* ---------------------------------------------------------------- хиро --- */

.hero { position: relative; overflow: hidden; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: end;
  gap: clamp(28px, 4vw, 64px);
  padding-top: clamp(56px, 8vw, 104px);
}

.hero__copy { padding-bottom: clamp(56px, 7vw, 96px); }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--brass);
  margin-bottom: 26px;
}

.hero__eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--brass);
}

.display em {
  font-style: italic;
  font-weight: 500;
  color: var(--navy);
}

.hero__lede { margin-top: 26px; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

/* строка доверия */
.trust {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.trust__item { display: flex; align-items: center; gap: 9px; }
.trust__item svg { width: 15px; height: 15px; stroke-width: 1.8; color: var(--brass); }

/* вырезанная фигура — «модель» без фона */
.hero__figure { position: relative; align-self: end; }

/* Обрезаем призрачный знак по колонке фигуры, чтобы он не заезжал на текст.
   Сама фигура лежит вне этого слоя — её тень не режется. */
.hero__ghostclip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__ghost {
  position: absolute;
  right: -8%;
  bottom: 14%;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(5rem, 10.5vw, 11.5rem);
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
  color: var(--ink);
  opacity: .05;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__figure { display: none; }
}

/* ---------------------------------------------- вырезанные фото (cut-out) */

.cutout {
  position: relative;
  display: block;
  margin: 0;              /* у <figure> в UA-стилях margin: 1em 40px */
  width: 100%;
  aspect-ratio: 3 / 4;
}

.cutout__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(var(--shadow-cut)) saturate(.82) contrast(1.04);
}

/* тонировка в навись — фигура садится в палитру страницы */
.cutout--tinted .cutout__img { filter: drop-shadow(var(--shadow-cut)) grayscale(1) contrast(1.06); }

.cutout--tinted::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  mix-blend-mode: color;
  opacity: .55;
  pointer-events: none;
  -webkit-mask-image: var(--cut-mask);
  mask-image: var(--cut-mask);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: bottom center;
  mask-position: bottom center;
}

/* пока файла нет — честная монтажная рамка вместо пустоты */
.cutout.is-empty .cutout__img { display: none; }
.cutout.is-empty::after { display: none; }

.cutout.is-empty {
  border: 1px dashed var(--line);
  border-radius: var(--r);
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 11px,
      color-mix(in srgb, var(--line) 45%, transparent) 11px 12px
    );
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
}

.cutout.is-empty .cutout__hint { display: block; }

.cutout__hint {
  display: none;
  color: var(--muted);
  line-height: 1.8;
  max-width: 26ch;
}

.cutout__hint b { color: var(--ink-soft); font-weight: 500; }

/* ------------------------------------------------------------- карточки -- */

.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* решётка из хайрлайнов: карточки «врезаны» в лист, без скруглённых плиток */
.cell {
  background: var(--surface);
  padding: clamp(24px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background .24s var(--ease);
}

.cell:hover { background: var(--surface-sunk); }

.cell__icon {
  width: 26px;
  height: 26px;
  stroke-width: 1.5;
  color: var(--navy);
  margin-bottom: 6px;
}

.cell__num {
  color: var(--brass);
  margin-bottom: 4px;
}

.cell p { color: var(--muted); font-size: .93rem; line-height: 1.6; }

.cell__list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cell__list li {
  position: relative;
  padding-left: 20px;
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.cell__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 9px;
  height: 1px;
  background: var(--brass);
}

@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------- крылья фирмы -- */

.wing {
  background: var(--surface);
  padding: clamp(26px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: background .24s var(--ease);
}

.wing:hover { background: var(--surface-sunk); }

.wing__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.wing__icon { width: 28px; height: 28px; stroke-width: 1.4; color: var(--navy); }
.wing__tag { color: var(--brass); white-space: nowrap; }

/* ------------------------------------------------------------- этапы ----- */

.steps { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.step {
  background: var(--surface);
  padding: clamp(26px, 2.8vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step__n {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--brass);
  /* Cormorant по умолчанию даёт минускульные цифры — «01» читается как «OI» */
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  margin-bottom: 6px;
}

.step p { color: var(--muted); font-size: .92rem; line-height: 1.6; }

@media (max-width: 1000px) { .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .steps--4, .steps--3 { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------- стек ---- */

.stack { display: flex; flex-direction: column; gap: 30px; }

.stack__row { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; align-items: start; }
.stack__label { color: var(--muted); padding-top: 6px; }
.stack__chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: .78rem;
  letter-spacing: .01em;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.chip:hover { border-color: var(--brass); color: var(--ink); }

@media (max-width: 700px) { .stack__row { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* --------------------------------------------------------------- цифры --- */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }

.stat { background: var(--surface); padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; gap: 6px; }

.stat__v {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  letter-spacing: -0.01em;
}

.stat__v span { color: var(--brass); }
.stat__k { color: var(--muted); font-size: .9rem; line-height: 1.45; }

@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --------------------------------------------------------------- кейсы --- */

.case {
  background: var(--surface);
  padding: clamp(26px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.case__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.case__ind { color: var(--brass); }

.case__delta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-block: 1px solid var(--line-soft);
}

.case__arrow { color: var(--muted); }
.case__arrow svg { width: 20px; height: 20px; stroke-width: 1.5; }

.delta__label { color: var(--muted); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-family: "IBM Plex Mono", monospace; margin-bottom: 5px; }
.delta__val { font-size: 1.05rem; font-weight: 500; line-height: 1.3; }
.delta__val--to { color: var(--ok); }

/* --------------------------------------------------------------- команда - */

.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 40px); }

.member { display: flex; flex-direction: column; }

.member__frame {
  position: relative;
  background: linear-gradient(180deg, var(--surface-sunk) 0%, var(--paper) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding-top: 26px;
  overflow: hidden;
}

.member__frame .cutout { aspect-ratio: 4 / 5; }
.member__frame .cutout.is-empty { border: 0; background: none; }

.member__meta { padding-top: 20px; display: flex; flex-direction: column; gap: 5px; }
.member__role { color: var(--brass); }
.member__name { font-size: 1.16rem; }
.member__note { color: var(--muted); font-size: .9rem; line-height: 1.55; margin-top: 6px; }

@media (max-width: 900px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .team { grid-template-columns: minmax(0, 1fr); } }

/* ----------------------------------------------------------------- FAQ --- */

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

.faq__item { border-bottom: 1px solid var(--line); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 1.04rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition: color .2s var(--ease);
}

.faq__q:hover { color: var(--navy); }

.faq__sign { position: relative; width: 14px; height: 14px; flex-shrink: 0; margin-top: 6px; }
.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1px;
  background: var(--brass);
  transition: transform .3s var(--ease);
}
.faq__sign::after { transform: rotate(90deg); }
.faq__item.is-open .faq__sign::after { transform: rotate(0deg); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .34s var(--ease);
}

.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

.faq__a > div { overflow: hidden; }

.faq__a p {
  color: var(--muted);
  font-size: .965rem;
  line-height: 1.68;
  max-width: 68ch;
  padding-bottom: 26px;
}

/* --------------------------------------------------------------- форма --- */

.cta { background: var(--navy); color: var(--on-navy); }

.cta .sheet::before { background: color-mix(in srgb, var(--on-navy) 16%, transparent); }
.cta .rail__mark { color: var(--brass-dim); }
.cta .rail__mark span:last-child { color: color-mix(in srgb, var(--on-navy) 62%, transparent); }
.cta h2, .cta .h2 { color: var(--on-navy); margin-bottom: 18px; }
.cta .lede { color: color-mix(in srgb, var(--on-navy) 80%, transparent); }

.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.cta__points { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }

.cta__points li { display: flex; gap: 13px; align-items: flex-start; color: color-mix(in srgb, var(--on-navy) 84%, transparent); font-size: .95rem; line-height: 1.55; }
.cta__points svg { width: 17px; height: 17px; stroke-width: 1.8; color: var(--brass-dim); flex-shrink: 0; margin-top: 3px; }

.cta__direct { margin-top: 38px; padding-top: 26px; border-top: 1px solid color-mix(in srgb, var(--on-navy) 18%, transparent); display: flex; flex-wrap: wrap; gap: 12px 26px; }

.cta__direct a { display: inline-flex; align-items: center; gap: 9px; color: color-mix(in srgb, var(--on-navy) 88%, transparent); font-size: .93rem; transition: color .2s var(--ease); }
.cta__direct a:hover { color: var(--on-navy); }
.cta__direct svg { width: 16px; height: 16px; stroke-width: 1.7; color: var(--brass-dim); }

.form {
  background: var(--surface);
  border-radius: var(--r);
  padding: clamp(26px, 3vw, 40px);
  box-shadow: var(--shadow-lift);
}

.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }

.field label { font-size: .82rem; font-weight: 500; color: var(--ink-soft); letter-spacing: .005em; }
.field .req { color: var(--brass); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-sunk);
  color: var(--ink);
  font-family: inherit;
  font-size: .96rem;
  line-height: 1.4;
  transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.field textarea { resize: vertical; min-height: 92px; }

.field input::placeholder,
.field textarea::placeholder { color: color-mix(in srgb, var(--muted) 72%, transparent); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--navy);
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 14%, transparent);
}

.field select {
  background-image: var(--chev);
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 15px;
  padding-right: 40px;
  cursor: pointer;
}

.field.is-err input,
.field.is-err select { border-color: var(--err); }

.field .err { display: none; color: var(--err); font-size: .79rem; }
.field.is-err .err { display: block; }

/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__note { color: var(--muted); font-size: .775rem; line-height: 1.55; margin-top: 14px; text-align: center; }
.form__note a { text-decoration: underline; text-underline-offset: 2px; }

.form__ok { display: none; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 28px 0; }
.form.is-done .form__ok { display: flex; }
.form.is-done .form__body { display: none; }

.form__tick {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--ok) 12%, transparent);
  color: var(--ok);
}
.form__tick svg { width: 25px; height: 25px; stroke-width: 2.2; }

@media (max-width: 900px) { .cta__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .form__row { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------- футер --- */

.footer { border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 76px) 34px; }

.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 60px); }

.footer__col h4 { font-family: "IBM Plex Mono", monospace; font-size: .715rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }

.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer__col a { color: var(--ink-soft); font-size: .93rem; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--brass); }

.footer__about { color: var(--muted); font-size: .91rem; line-height: 1.66; max-width: 40ch; margin-top: 18px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 760px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------- движение -- */

/* Прячем только когда JS точно жив (класс .js ставится инлайном в <head>).
   Без него контент виден сразу — страница не должна зависеть от скрипта. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
