/* ============================================================
   Инфорт — сайт-визитка
   Две темы: светлая (Lora / Golos Text) и тёмная (Playfair / Onest).
   Тема переключается атрибутом data-theme на <html>.
   ============================================================ */

/* ── Токены: светлая тема ─────────────────────────────────── */
:root {
  --bg:        #f8f6f1;
  --bg-a:      #f8f6f1;
  --bg-b:      #f3f0e8;
  --bg-c:      #1b2440;
  --bg-f:      #1b2440;
  --card:      #f8f6f1;

  --ink:       #1e2a44;
  --body:      #4a5474;
  --soft:      #56618a;
  --faint:     #8089a8;

  --ink-inv:   #f6f1e5;
  --body-inv:  #b8bdcf;
  --faint-inv: #8a90a8;

  --accent:    #a9853c;

  --line:        rgba(30, 42, 68, .16);
  --line-strong: rgba(30, 42, 68, .18);

  /* Линии на инвертированной (тёмно-синей) секции «Лицензии» */
  --inv-frame:  rgba(169, 133, 60, .4);
  --inv-divide: rgba(169, 133, 60, .3);
  --inv-panel:  rgba(169, 133, 60, .4);
  --inv-double: rgba(169, 133, 60, .55);

  /* Типографика */
  --fd: 'Lora', Georgia, serif;
  --fb: 'Golos Text', system-ui, sans-serif;
  --fw: 500;

  /* --logo-f / --logo-ls остались для текстового начертания в подвале. */
  --logo-f:  'Lora', Georgia, serif;
  --logo-ls: .22em;

  /* Две краски знака в шапке. В светлой теме — фирменные как есть. */
  --logo-ink:    #001233;
  --logo-accent: #0075c5;

  --hdr:      rgba(248, 246, 241, .94);
  --strip-bg: transparent;

  --btn-bg:   #1e2a44;
  --btn-bd:   #1e2a44;
  --btn-c:    #f8f6f1;
  --input-bd: rgba(30, 42, 68, .3);

  --knob: 3px;

  /* Кросс-фейд двух вариантов hero-копии */
  --L: 1;  --D: 0;
  --Lpe: auto;  --Dpe: none;

  /* Геометрия hero, морфится между темами */
  --wedge: polygon(100% 0, 100% 0, 100% 0, 100% 0);

  --gl-l: 0;  --gl-t: 0;  --gl-w: 100%;  --gl-h: 5px;  --gl-x: none;

  --r1t: 0;     --r1l: 0;     --r1s: 760px;  --r1r: 50%;  --r1x: none;  --r1o: .75;
  --r2t: 26px;  --r2l: 26px;  --r2s: 708px;  --r2b: 5px double rgba(169, 133, 60, .9);
  --r3o: 1;
  --cap-o: 1;

  --spine-o: 1;  --spine-x: none;
}

/* ── Токены: тёмная тема ──────────────────────────────────── */
[data-theme="dark"] {
  --bg:   #141517;
  --bg-a: #101113;
  --bg-b: #17181a;
  --bg-c: #101113;
  --bg-f: #0d0e10;
  --card: #141517;

  --ink:   #f2efe8;
  --body:  #a5a19a;
  --soft:  #8d8a83;
  --faint: #6d6a64;

  --ink-inv:   #f2efe8;
  --body-inv:  #a5a19a;
  --faint-inv: #6d6a64;

  --accent: #c8a262;

  --line:        rgba(200, 162, 98, .18);
  --line-strong: rgba(200, 162, 98, .3);

  --inv-frame:  rgba(200, 162, 98, .5);
  --inv-divide: rgba(200, 162, 98, .22);
  --inv-panel:  rgba(200, 162, 98, .22);
  --inv-double: rgba(200, 162, 98, .5);

  --fd: 'Playfair Display', Georgia, serif;
  --fb: 'Onest', system-ui, sans-serif;
  --fw: 400;

  --logo-f:  'Golos Text', system-ui, sans-serif;
  --logo-ls: .35em;

  /* На почти чёрном фоне фирменный #001233 неразличим, поэтому тёмная
     часть становится светлой, а голубой поднимаем по яркости — иначе
     он проваливается в фон. */
  --logo-ink:    #f2efe8;
  --logo-accent: #3b9fe8;

  --hdr:      rgba(20, 21, 23, .92);
  --strip-bg: rgba(20, 21, 23, .55);

  --btn-bg:   transparent;
  --btn-bd:   #c8a262;
  --btn-c:    #c8a262;
  --input-bd: rgba(200, 162, 98, .35);

  --knob: 32px;

  --L: 0;  --D: 1;
  --Lpe: none;  --Dpe: auto;

  --wedge: polygon(70% 0, 100% 0, 100% 100%, 54% 100%);

  --gl-l: 62%;  --gl-t: 50%;  --gl-w: 1600px;  --gl-h: 1px;
  --gl-x: translate(-50%, -50%) rotate(104deg);

  --r1t: 936px;  --r1l: calc(540px - 43vw);  --r1s: 12px;  --r1r: 0%;
  --r1x: rotate(45deg);  --r1o: 1;
  --r2t: 387px;  --r2l: calc(540px - 32vw);  --r2s: 10px;  --r2b: 2px solid #c8a262;
  --r3o: 0;
  --cap-o: 0;

  --spine-o: 0;  --spine-x: translateX(-40px);
}

/* ── База ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--fb);
  -webkit-font-smoothing: antialiased;
}

/* Плавная морфизация всей палитры при смене темы. */
body * {
  transition: background-color .8s ease, border-color .8s ease, color .8s ease;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }

section { scroll-margin-top: 84px; }

input::placeholder, textarea::placeholder { color: #8f8d95; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shell {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

.section-pad { padding: 110px 32px 100px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #141517;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ── Общие элементы ───────────────────────────────────────── */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}
.eyebrow--wide {
  font-size: 11.5px;
  letter-spacing: .32em;
  margin-bottom: 18px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 26px;
  margin-bottom: 64px;
}
.section-head h2 {
  font-family: var(--fd);
  font-weight: var(--fw);
  font-size: 39px;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--ink);
}
.section-rule {
  flex: 1;
  height: 1px;
  background: var(--accent);
  position: relative;
  top: -8px;
  opacity: .6;
}
.section-tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.section-head-center {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 70px;
}
.section-head-center h2 {
  font-family: var(--fd);
  font-weight: var(--fw);
  font-size: 39px;
  line-height: 1.28;
  color: var(--ink);
}

.diamond-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin-top: 26px;
}
.diamond-line { width: 48px; height: 1px; background: var(--accent); }
.diamond {
  width: 8px; height: 8px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}

.btn {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 18px 38px;
}
.btn-solid   { background: #1e2a44; color: #f8f6f1; }
.btn-solid:hover { background: var(--accent); color: #141517; }
.btn-outline { border: 1px solid #1e2a44; color: #1e2a44; }
.btn-outline:hover { background: #1e2a44; color: #f8f6f1; }

.btn-ghost-gold {
  border: 1px solid #c8a262;
  color: #c8a262;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  padding: 17px 36px;
}
.btn-ghost-gold:hover { background: #c8a262; color: #141517; }

.btn-bare {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #8d8a83;
  padding: 17px 0;
}

/* ── Шапка ────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--hdr);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-strong);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  /* Отступы уменьшены под 36px логотипа — высота шапки осталась ~65px,
     как была с текстовым начертанием. */
  padding: 14px 32px;
}
.logo {
  display: flex;
  align-items: center;
  flex: none;
}
.logo-mark {
  display: block;
  height: 44px;
  width: auto;
}
/* Цвета не зашиты в SVG — их задаёт тема. */
.logo-ink    { fill: var(--logo-ink); }
.logo-accent { fill: var(--logo-accent); }
/* Заливки анимируются отдельно: общий переход в `body *` покрывает
   только background/border/color и на fill не действует. */
.logo-ink, .logo-accent { transition: fill .8s ease; }

.logo:hover .logo-ink,
.logo:hover .logo-accent { fill: var(--accent); }

.nav {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nav a { color: var(--soft); }
.nav .nav-phone {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  border: 1px solid var(--accent);
  border-radius: 99px;
  width: 54px; height: 27px;
  position: relative;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex: none;
}
.theme-knob {
  position: absolute;
  top: 3px;
  left: var(--knob);
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--accent);
  transition: left .45s cubic-bezier(.4, 0, .2, 1);
}

.nav-toggle {
  display: none;
  width: 34px; height: 27px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px 3px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 94vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-bottom: 1px solid var(--line-strong);
}

.hero-wedge {
  position: absolute;
  inset: 0;
  background: #1b1c1f;
  clip-path: var(--wedge);
  transition: clip-path 1s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}

.hero-gleam {
  position: absolute;
  left: var(--gl-l);
  top: var(--gl-t);
  width: var(--gl-w);
  height: var(--gl-h);
  background: var(--accent);
  transform: var(--gl-x);
  transform-origin: center;
  transition: all 1s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}

.hero-orbits {
  position: absolute;
  top: -260px;
  right: -220px;
  width: 760px;
  height: 760px;
  pointer-events: none;
}
.hero-orbits-inner { position: absolute; inset: 0; }

.orbit { position: absolute; transition: all 1s cubic-bezier(.4, 0, .2, 1); }
.orbit-1 {
  top: var(--r1t);
  left: var(--r1l);
  width: var(--r1s);
  height: var(--r1s);
  border: 1px solid var(--accent);
  border-radius: var(--r1r);
  transform: var(--r1x);
  opacity: var(--r1o);
}
.orbit-2 {
  top: var(--r2t);
  left: var(--r2l);
  width: var(--r2s);
  height: var(--r2s);
  border: var(--r2b);
  border-radius: 50%;
}
.orbit-3 {
  inset: 110px;
  border-radius: 50%;
  border: 1px solid rgba(169, 133, 60, .4);
  opacity: var(--r3o);
}
.orbit-caption {
  position: absolute;
  top: 310px;
  right: 290px;
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .32em;
  color: var(--accent);
  white-space: nowrap;
  opacity: var(--cap-o);
  transition: opacity .7s;
}

.hero-spine {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 72px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: var(--spine-o);
  transform: var(--spine-x);
  transition: all .8s;
}
.hero-spine span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--accent);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

.hero-body {
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
}
.hero-shell {
  position: relative;
  padding: 186px 32px 70px 140px;
}

.hero-stack { display: grid; }

/* .hero-copy — обёртка для reveal-анимации (её opacity правит JS).
   Кросс-фейд тем живёт на вложенном элементе, иначе inline-стиль
   от reveal перебивал бы переменные --L / --D. */
.hero-copy { grid-area: 1 / 1; }

.hero-copy--light,
.hero-copy--dark { transition: opacity .8s; }

.hero-copy--light {
  opacity: var(--L);
  pointer-events: var(--Lpe);
}
.hero-copy--light h1 {
  font-family: var(--fd);
  font-weight: 500;
  font-size: 55px;
  line-height: 1.15;
  letter-spacing: -.01em;
  max-width: 700px;
  color: var(--ink);
}
.hero-copy--light .hero-lead {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--body);
  max-width: 540px;
  margin: 26px 0 38px;
}

.hero-copy--dark {
  grid-area: 1 / 1;
  opacity: var(--D);
  pointer-events: var(--Dpe);
}
.hero-copy--dark h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: 56px;
  line-height: 1.22;
  max-width: 580px;
  color: #f2efe8;
}
.hero-copy--dark h1 em { color: #c8a262; }
.hero-copy--dark .hero-lead {
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.75;
  color: #a5a19a;
  max-width: 440px;
  margin: 24px 0 38px;
}

.hero-cta {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-copy--dark .hero-cta { gap: 20px; }

.hero-note {
  position: absolute;
  right: 32px;
  bottom: 56px;
  width: 250px;
  text-align: right;
  opacity: var(--D);
  pointer-events: none;
  transition: opacity .8s;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: #a5a19a;
}
.hero-note-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #c8a262;
  margin-bottom: 12px;
}

.hero-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: var(--strip-bg);
}
.hero-strip-inner {
  padding: 16px 32px 16px 108px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ── Услуги ───────────────────────────────────────────────── */
.services { background: var(--bg-a); }

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
}
.service {
  display: flex;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.service--last { border-bottom: 1px solid var(--line); }
.service-num {
  font-family: var(--fd);
  font-size: 22px;
  color: var(--accent);
  min-width: 44px;
}
.service h3 {
  font-weight: 600;
  font-size: 16.5px;
  margin-bottom: 6px;
  color: var(--ink);
}
.service p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--body);
}

/* ── Подход ───────────────────────────────────────────────── */
.approach {
  background: var(--bg-b);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line-strong);
  background: var(--card);
  margin-bottom: 26px;
}
.stage {
  padding: 32px 26px;
  border-right: 1px solid var(--line);
}
.stage:last-child { border-right: none; }
.stage-num {
  display: block;
  font-family: var(--fd);
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 12px;
}
.stage h3 {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--ink);
}
.stage p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--body);
}

.approach-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--soft);
  text-align: center;
  margin-bottom: 80px;
}

.subsystems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.subsystem {
  border: 1px solid var(--line-strong);
  background: var(--card);
  padding: 30px 28px;
}
.subsystem-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.subsystem h3 {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--ink);
}
.subsystem p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--body);
}

/* ── Лицензии и опыт ──────────────────────────────────────── */
.licenses { background: var(--bg-c); }

.licenses-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.licenses-grid h2 {
  font-family: var(--fd);
  font-weight: var(--fw);
  font-size: 39px;
  line-height: 1.28;
  color: var(--ink-inv);
  margin-bottom: 26px;
}
.licenses-lead {
  font-size: 15px;
  line-height: 1.78;
  color: var(--body-inv);
  max-width: 480px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--inv-frame);
  margin-top: 44px;
}
.stat {
  padding: 26px 24px;
  border-right: 1px solid var(--inv-divide);
  text-align: center;
}
.stat:last-child { border-right: none; }
.stat dt {
  font-family: var(--fd);
  font-size: 40px;
  color: var(--ink-inv);
}
.stat dd {
  margin: 8px 0 0;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint-inv);
}

.license-cards {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.license-card {
  border: 1px solid var(--accent);
  padding: 3px;
}
.license-card-inner {
  border: 3px double var(--inv-double);
  padding: 26px 30px;
}
.license-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.license-card p:last-child {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--body-inv);
}

.compliance {
  border: 1px solid var(--inv-panel);
  padding: 26px 30px;
}
.compliance .license-tag { margin-bottom: 14px; }
.compliance ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--body-inv);
}
.compliance li { display: flex; gap: 12px; }
.compliance li span:first-child { color: var(--accent); }

/* ── Клиенты ──────────────────────────────────────────────── */
.clients {
  background: var(--bg);
  border-bottom: 1px solid var(--line-strong);
}
.clients-inner {
  padding: 90px 32px 84px;
  text-align: center;
}
.clients .eyebrow { margin-bottom: 34px; }
.client-list {
  display: flex;
  justify-content: center;
  gap: 22px 54px;
  flex-wrap: wrap;
  font-family: var(--fd);
  font-size: 24px;
  color: var(--ink);
}

/* ── Контакты ─────────────────────────────────────────────── */
.contacts { background: var(--bg-b); }

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 90px;
}
.contacts-grid h2 {
  font-family: var(--fd);
  font-weight: var(--fw);
  font-size: 39px;
  line-height: 1.28;
  margin-bottom: 34px;
  color: var(--ink);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
}
.contact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.contact-value {
  font-family: var(--fd);
  font-size: 22px;
  color: var(--ink);
}

.lead-form {
  background: var(--card);
  border: 1px solid var(--line-strong);
  padding: 44px 44px 40px;
}
.lead-form-title {
  font-family: var(--fd);
  font-size: 22px;
  margin-bottom: 26px;
  color: var(--ink);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { margin-bottom: 18px; }

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--input-bd);
  background: transparent;
  padding: 12px 2px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
}
.lead-form textarea { resize: vertical; }
.lead-form input:focus,
.lead-form textarea:focus { border-bottom-color: var(--accent); }
.lead-form .field--invalid input,
.lead-form .field--invalid textarea { border-bottom-color: #c0392b; }

.lead-form textarea { margin-bottom: 10px; }

.btn-submit {
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  color: var(--btn-c);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 17px 40px;
  cursor: pointer;
}
.btn-submit:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: #141517;
}
.btn-submit:disabled { opacity: .6; cursor: default; }

/* Honeypot: убран из потока, но не display:none — часть ботов это учитывает. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: 12.5px;
  line-height: 1.5;
  margin-top: 14px;
  min-height: 1em;
}
.form-status--ok    { color: var(--accent); }
.form-status--error { color: #c0392b; }

.form-consent {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--faint);
  margin-top: 16px;
}

/* ── Подвал ───────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-f);
  color: var(--faint-inv);
}
.footer-inner {
  padding: 26px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: .06em;
}
.footer-logo {
  font-family: var(--logo-f);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: var(--logo-ls);
  color: var(--accent);
}

/* ============================================================
   Адаптив. Прототип был только под десктоп — брейкпоинты ниже
   добавлены для реального сайта, десктопный макет не меняют.
   ============================================================ */

@media (max-width: 1180px) {
  .licenses-grid { gap: 56px; }
  .contacts-grid { gap: 56px; }
  .hero-shell { padding: 170px 32px 60px 120px; }
  .hero-copy--light h1,
  .hero-copy--dark h1 { font-size: 46px; }
  .hero-note { display: none; }
}

@media (max-width: 1000px) {
  .nav {
    /* Абсолютом от самой шапки, а не fixed с отступом в пикселях:
       высота шапки зависит от размера логотипа, и захардкоженный
       top разъезжался бы при каждой его правке. */
    position: absolute;
    /* +1px — толщина нижней границы шапки: 100% считается от
       padding-box и границу не учитывает, без поправки меню наезжает. */
    top: calc(100% + 1px); left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    /* Непрозрачный фон: выпадающая панель ложится поверх hero,
       полупрозрачность делала пункты нечитаемыми. */
    background: var(--bg);
    border-bottom: 1px solid var(--line-strong);
    padding: 0 32px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav.is-open { max-height: 360px; }
  .nav a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-child { border-bottom: none; padding-bottom: 24px; }
  .nav .nav-phone { border-bottom: none; }
  .nav-toggle { display: flex; }

  .subsystems { grid-template-columns: repeat(2, 1fr); }
  .stages { grid-template-columns: repeat(2, 1fr); }
  .stage { border-bottom: 1px solid var(--line); }
  .stage:nth-child(2n) { border-right: none; }
  .stage:last-child { border-bottom: none; }

  .licenses-grid,
  .contacts-grid { grid-template-columns: 1fr; }
  .licenses-lead { max-width: none; }

  .hero-orbits { transform: scale(.72); transform-origin: top right; }
}

@media (max-width: 860px) {
  .section-pad { padding: 80px 24px 72px; }
  .clients-inner { padding: 70px 24px 64px; }
  .header-inner { padding: 18px 24px; }
  .footer-inner { padding: 24px; }

  .section-head { flex-wrap: wrap; gap: 14px; }
  .section-head h2 { white-space: normal; font-size: 32px; }
  .section-rule { display: none; }
  .section-head-center h2,
  .licenses-grid h2,
  .contacts-grid h2 { font-size: 32px; }

  .service-grid { grid-template-columns: 1fr; column-gap: 0; }
  .service--last { border-bottom: none; }
  .service-grid .service:last-child { border-bottom: 1px solid var(--line); }

  .hero { min-height: 0; }
  .hero-shell { padding: 130px 24px 56px; }
  .hero-spine { display: none; }
  .hero-strip-inner { padding: 16px 24px; gap: 18px; }
  .hero-copy--light h1,
  .hero-copy--dark h1 { font-size: 36px; }
  .hero-copy--light .hero-lead,
  .hero-copy--dark .hero-lead { font-size: 15px; }

  .lead-form { padding: 32px 24px 28px; }
  .client-list { font-size: 20px; gap: 16px 32px; }
}

@media (max-width: 560px) {
  .stages { grid-template-columns: 1fr; }
  .stage { border-right: none; }
  .subsystems { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--inv-divide); }
  .stat:last-child { border-bottom: none; }

  .field-row { grid-template-columns: 1fr; gap: 0; }

  .hero-orbits { display: none; }
  .hero-copy--light h1,
  .hero-copy--dark h1 { font-size: 30px; }

  .btn, .btn-ghost-gold { width: 100%; text-align: center; }
  .btn-bare { width: auto; }
  .btn-submit { width: 100%; }

  .footer-inner { justify-content: center; text-align: center; }
}

/* ── Уважение к prefers-reduced-motion ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body *,
  .hero-wedge,
  .hero-gleam,
  .orbit,
  .orbit-caption,
  .hero-spine,
  .hero-copy,
  .hero-note,
  .theme-knob {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
