/* =========================================================================
   ООО «Перспектива» — складские работы и сельское хозяйство
   Тёплый графит + янтарь. Одна гарнитура (Golos Text VF) во всех весах:
   меньше запросов, другой типографический характер, чем у основного сайта.
   ========================================================================= */

/* ---- Шрифт (self-hosted, без обращения к сторонним CDN) ------------------ */
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/golos-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/golos-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Токены -------------------------------------------------------------- */
:root {
  /* Поверхности — тёплый графит, а не сине-чёрный */
  --bg: oklch(0.155 0.009 70);
  --bg-2: oklch(0.192 0.011 68);
  --surface: oklch(0.225 0.013 66);
  --surface-2: oklch(0.272 0.014 64);
  --line: oklch(0.335 0.014 64);
  --line-soft: oklch(0.288 0.012 66);

  /* Текст */
  --ink: oklch(0.975 0.004 80);
  --ink-soft: oklch(0.895 0.007 78);
  --muted: oklch(0.755 0.011 76);
  --faint: oklch(0.63 0.012 74);

  /* Янтарь — складская разметка, сигнальный цвет техники */
  --accent: oklch(0.775 0.155 68);
  --accent-hi: oklch(0.845 0.135 78);
  --accent-deep: oklch(0.62 0.145 58);
  --accent-tint: oklch(0.285 0.055 60);
  --accent-tint-2: oklch(0.235 0.036 62);
  --on-accent: oklch(0.19 0.03 62);

  --font: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Типографическая шкала */
  --step--1: clamp(0.84rem, 0.8rem + 0.2vw, 0.94rem);
  --step-0: clamp(1rem, 0.96rem + 0.22vw, 1.1rem);
  --step-1: clamp(1.16rem, 1.06rem + 0.5vw, 1.42rem);
  --step-2: clamp(1.4rem, 1.15rem + 1.1vw, 1.95rem);
  --step-3: clamp(1.75rem, 1.35rem + 2vw, 2.9rem);
  --step-4: clamp(1.9rem, 1.2rem + 3.4vw, 3.5rem);
  --num: clamp(3rem, 1.9rem + 5.6vw, 5.2rem);

  --r-sm: 3px;
  --r: 6px;
  --r-lg: 12px;
  --shadow: 0 22px 60px -26px oklch(0 0 0 / 0.85);
  --shadow-sm: 0 10px 30px -18px oklch(0 0 0 / 0.75);

  --container: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section-y: clamp(3.75rem, 7.5vw, 7.5rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.55s;

  --z-header: 100;
  --z-overlay: 200;
  --z-cookie: 300;
}

/* ---- Сброс --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.62;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
}
ul,
ol {
  list-style: none;
}
/* Иконки берутся из спрайта через <use>: атрибуты обёртки внутрь клона не
   попадают, поэтому обводку задаём стилями — иначе фигуры зальются чёрным. */
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection {
  background: var(--accent);
  color: var(--on-accent);
}

/* ---- Типографика --------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.08;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1,
h2 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
h1 {
  font-size: var(--step-4);
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
p {
  text-wrap: pretty;
}
strong,
b {
  font-weight: 700;
  color: var(--ink);
}
.accent {
  color: var(--accent);
}
.measure {
  max-width: 68ch;
}

/* ---- Примитивы раскладки ------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section {
  padding-block: var(--section-y);
  position: relative;
}
.bg-2 {
  background: var(--bg-2);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -150%;
  z-index: calc(var(--z-overlay) + 1);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: 0 0 var(--r) var(--r);
  transition: translate 0.25s var(--ease);
}
.skip-link:focus-visible {
  translate: -50% 0;
}

/* Мотив вместо красной черты основы: двойной янтарный тик слева от заголовка */
.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head h2 {
  position: relative;
  padding-left: 1.4rem;
}
.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.14em;
  width: 5px;
  height: 0.72em;
  background: var(--accent);
  box-shadow: 9px 0 0 -1px var(--accent-deep);
}
.section-head p {
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.5;
}

/* ---- Кнопки -------------------------------------------------------------- */
.btn {
  --pad-y: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: var(--pad-y) 1.5rem;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border-radius: var(--r);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), translate 0.25s var(--ease);
}
.btn svg {
  width: 1.05em;
  height: 1.05em;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-hi);
  translate: 0 -2px;
}
.btn-primary:active {
  background: var(--accent-deep);
  translate: 0;
}
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  translate: 0 -2px;
}
.btn-lg {
  --pad-y: 0.95rem;
  min-height: 52px;
  padding-inline: 1.9rem;
  font-size: 1.05rem;
}

/* ---- Шапка --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: oklch(0.155 0.009 70 / 0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header.scrolled {
  background: oklch(0.145 0.009 70 / 0.9);
  backdrop-filter: blur(12px) saturate(1.15);
  border-bottom-color: var(--line-soft);
}
/* Полоса прогресса скролла — отличительная деталь этого сайта */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  scale: var(--progress, 0) 1;
  background: var(--accent);
  pointer-events: none;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.brand-mark {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}
.brand-name {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  font-size: 1rem;
  color: var(--ink);
}
.brand-name span {
  display: block;
  margin-top: 4px;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.75rem);
}
.nav-links {
  display: flex;
  gap: clamp(0.85rem, 1.8vw, 1.6rem);
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding-block: 6px;
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.28s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="true"] {
  color: var(--ink);
}
.nav-links a:hover::after,
.nav-links a[aria-current="true"]::after {
  width: 100%;
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.burger span {
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: background 0.25s var(--ease);
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.28s var(--ease), top 0.28s var(--ease);
}
.burger span::before {
  top: -6px;
}
.burger span::after {
  top: 6px;
}
.burger[aria-expanded="true"] span {
  background: transparent;
}
.burger[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}
.burger[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---- Фактура ------------------------------------------------------------ */
/* Зерно поверх всей страницы: плотность плёнки вместо плоской заливки */
.grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
}
.grain rect {
  fill: none;
  stroke: none;
}

/* Гео-строка: где работаем. Повторяется в героe и в контактах */
.geo-line {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.3;
  color: var(--accent);
  margin-bottom: 1.15rem;
}
.geo-line svg {
  flex: none;
  width: 19px;
  height: 19px;
}
.geo-line.strong {
  margin: 0 0 1.6rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--accent-deep);
  border-radius: var(--r);
  background: var(--accent-tint-2);
}

/* Маркер на ключевой строке заголовка: подложка, а не заливка текста */
.mark {
  position: relative;
  display: inline-block;
  color: var(--on-accent);
  padding: 0 0.22em 0.04em;
  isolation: isolate;
}
/* Подложка перекрывает и диакритику (точки над Ё), иначе они пропадают на фоне */
.mark::before {
  content: "";
  position: absolute;
  inset: -0.06em 0 0.04em;
  z-index: -1;
  background: var(--accent);
  transform-origin: 0 50%;
}
html.js .mark::before {
  scale: 0 1;
  transition: scale 0.65s var(--ease) 0.25s;
}
html.js .mark.in::before,
html.js .in .mark::before {
  scale: 1 1;
}

/* ---- Герой --------------------------------------------------------------- */
.hero {
  padding-top: clamp(2.25rem, 4.5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  position: relative;
  isolation: isolate;
}
/* Разметка складского пола за заголовком, уходит в ноль книзу */
.hero-rule {
  position: absolute;
  inset: 0 0 auto 0;
  height: 62%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    90deg,
    oklch(1 0 0 / 0.045) 0 1px,
    transparent 1px 88px
  );
  mask-image: linear-gradient(180deg, oklch(0 0 0 / 0.9), transparent);
}

/* Сигнальная лента: наличие людей и срок выхода */
.ticker {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.4rem);
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  padding: 0.9rem clamp(0.9rem, 2vw, 1.4rem);
  border: 1px solid var(--accent-deep);
  border-radius: var(--r);
  background: linear-gradient(90deg, var(--accent-tint) 0%, var(--accent-tint-2) 55%, var(--surface) 100%);
}
/* Штриховка складской ленты по торцам */
.ticker-tape {
  flex: none;
  width: 34px;
  align-self: stretch;
  border-radius: 2px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 6px,
    oklch(0.19 0.03 62) 6px 12px
  );
}
.ticker-tape.end {
  order: 9;
}
.ticker-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 oklch(0.775 0.155 68 / 0.55);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 oklch(0.775 0.155 68 / 0.5);
  }
  70% {
    box-shadow: 0 0 0 12px oklch(0.775 0.155 68 / 0);
  }
  100% {
    box-shadow: 0 0 0 0 oklch(0.775 0.155 68 / 0);
  }
}
.ticker p {
  flex: 1;
  min-width: 0;
}
.ticker b {
  display: block;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.ticker p span {
  display: block;
  margin-top: 2px;
  color: var(--accent-hi);
  font-size: 0.95rem;
  font-weight: 600;
}
.ticker-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  border: 1px solid var(--accent-deep);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.ticker-link svg {
  width: 1em;
  height: 1em;
  transition: translate 0.25s var(--ease);
}
.ticker-link:hover {
  background: var(--accent);
  color: var(--on-accent);
}
.ticker-link:hover svg {
  translate: 3px 0;
}

/* Та же мысль компактно, над формой заявки */
.form-flag {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--accent-hi);
  font-weight: 700;
  font-size: 0.93rem;
  line-height: 1.35;
}
.hero-copy {
  max-width: 60ch;
}
.hero h1 {
  margin-bottom: 1.35rem;
}
.hero-sub {
  font-size: var(--step-1);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 52ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* Фотополоса под копией — композиция, обратная основному сайту */
.hero-band {
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  aspect-ratio: 16 / 7;
}
.hero-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    oklch(0.155 0.009 70 / 0.82) 0%,
    oklch(0.155 0.009 70 / 0.35) 45%,
    oklch(0.155 0.009 70 / 0.1) 100%
  );
}
/* Угловые скобки — «складская разметка» вместо диагоналей основы */
.corner-marks::before,
.corner-marks::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 3px solid var(--accent);
  pointer-events: none;
}
.corner-marks::before {
  top: 14px;
  left: 14px;
  border-right: 0;
  border-bottom: 0;
}
.corner-marks::after {
  right: 14px;
  bottom: 14px;
  border-left: 0;
  border-top: 0;
}

.hero-facts {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  margin-top: -1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-top: 0;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  overflow: hidden;
}
.hero-fact {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
}
.hero-fact .ic {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--accent-tint-2);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.hero-fact .ic svg {
  width: 21px;
  height: 21px;
}
.hero-fact b {
  display: block;
  font-size: 0.98rem;
  line-height: 1.3;
}
.hero-fact span span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

/* ---- Сферы работ: вкладки в одну строку + кадр с затемнением ------------- */
.sphere-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r) var(--r) 0 0;
  overflow: hidden;
}
.sphere-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 62px;
  padding: 0.85rem 1rem;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  text-align: center;
  position: relative;
  transition: background 0.28s var(--ease), color 0.28s var(--ease);
}
.sphere-tabs button svg {
  flex: none;
  width: 21px;
  height: 21px;
  color: var(--accent-deep);
  transition: color 0.28s var(--ease);
}
.sphere-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  transform-origin: 50% 100%;
  scale: 0 1;
  transition: scale 0.35s var(--ease);
}
.sphere-tabs button:hover {
  color: var(--ink);
  background: var(--surface-2);
}
.sphere-tabs button[aria-selected="true"] {
  color: var(--ink);
  background: var(--bg-2);
}
.sphere-tabs button[aria-selected="true"] svg {
  color: var(--accent);
}
.sphere-tabs button[aria-selected="true"]::after {
  scale: 1 1;
}

.sphere-stage {
  position: relative;
  border: 1px solid var(--line-soft);
  border-top: 0;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.sphere-panel {
  position: relative;
  min-height: 420px;
  display: grid;
}
.sphere-panel[hidden] {
  display: none;
}
.sphere-panel img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}
/* Затемнение слева направо: текст живёт в левой половине и остаётся читаемым */
.sphere-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    92deg,
    oklch(0.135 0.008 68 / 0.96) 0%,
    oklch(0.135 0.008 68 / 0.92) 34%,
    oklch(0.135 0.008 68 / 0.55) 58%,
    oklch(0.135 0.008 68 / 0.12) 100%
  );
}
.sphere-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 46ch;
  padding: clamp(1.6rem, 3.5vw, 2.75rem);
}
.sphere-copy h3 {
  font-size: var(--step-2);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  margin-bottom: 0.85rem;
}
.sphere-copy > p {
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 1.3rem;
}
.sphere-copy ul {
  display: grid;
  gap: 0.1rem;
}
.sphere-copy li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.6rem;
  border-top: 1px solid oklch(1 0 0 / 0.12);
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.sphere-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 9px;
  height: 2px;
  background: var(--accent);
}

/* ---- Кадры под объём ----------------------------------------------------- */
.workforce-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.6rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--surface), var(--bg-2));
}
.stat-figure {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: var(--num);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.035em;
  color: var(--accent);
}
.stat-figure .unit {
  font-size: 0.28em;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}
.stat-rule {
  width: 100%;
  height: 3px;
  margin: 1.2rem 0 1rem;
  background: linear-gradient(90deg, var(--accent) 0 38%, var(--line) 38%);
}
.stat-label {
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.25;
  color: var(--ink);
}
.stat-note {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.workforce-media {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 3 / 2;
  background: var(--surface-2);
}
.workforce-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workforce-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.workforce-point {
  padding-top: 1.1rem;
  border-top: 2px solid var(--line);
}
.workforce-point h3 {
  margin-bottom: 0.5rem;
}
.workforce-point p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---- Темп смены (степпер поверх фото) ------------------------------------ */
.shift {
  position: relative;
  isolation: isolate;
}
.shift-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.shift-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
}
.shift::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    oklch(0.155 0.009 70 / 0.86) 0%,
    oklch(0.155 0.009 70 / 0.62) 45%,
    oklch(0.155 0.009 70 / 0.9) 100%
  );
}
.shift .section-head p {
  color: var(--ink-soft);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.step {
  position: relative;
  padding: clamp(1.3rem, 2.4vw, 1.9rem) clamp(1.1rem, 2vw, 1.5rem);
  background: oklch(0.192 0.011 68 / 0.94);
}
.step-index {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.step-index::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--line);
}
.step.is-live .step-index::after {
  background: linear-gradient(90deg, var(--accent), var(--line));
}
.step h3 {
  margin-bottom: 0.5rem;
}
.step p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

/* ---- Дисциплина ---------------------------------------------------------- */
.discipline {
  position: relative;
  isolation: isolate;
}
.discipline-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.discipline-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}
.discipline::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    oklch(0.192 0.011 68 / 0.92) 0%,
    oklch(0.192 0.011 68 / 0.78) 50%,
    oklch(0.192 0.011 68 / 0.95) 100%
  );
}
.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.5rem);
}
.rule {
  padding-top: 1.2rem;
  border-top: 2px solid var(--accent-deep);
}
.rule .ic {
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.rule .ic svg {
  width: 28px;
  height: 28px;
}
.rule h3 {
  margin-bottom: 0.6rem;
}
.rule p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.discipline-note {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  padding: 1.05rem 1.35rem;
  background: var(--accent-tint-2);
  border: 1px solid var(--accent-deep);
  border-radius: var(--r);
}
.discipline-note .ic {
  flex: none;
  color: var(--accent);
  display: grid;
  place-items: center;
}
.discipline-note .ic svg {
  width: 24px;
  height: 24px;
}
.discipline-note p {
  color: var(--ink);
  font-weight: 500;
}

/* ---- Обеспечение --------------------------------------------------------- */
.support-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.support-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  aspect-ratio: 3 / 2;
  box-shadow: var(--shadow);
}
.support-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.support-list {
  display: grid;
  gap: 1.5rem;
}
.support-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.support-item .ic {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--accent-tint-2);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.support-item .ic svg {
  width: 24px;
  height: 24px;
}
.support-item h3 {
  margin-bottom: 0.35rem;
}
.support-item p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.52;
}

/* ---- Галереи ------------------------------------------------------------- */
.gallery-carousel {
  position: relative;
  max-width: 920px;
  margin-inline: auto;
}
.gallery-carousel[hidden] {
  display: none;
}
.gc-viewport {
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: #000;
}
.gc-track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.5s var(--ease);
}
.gc-slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.gc-slide img,
.gc-slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gc-nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: oklch(0.18 0.011 68 / 0.82);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.gc-nav:hover {
  background: var(--accent);
  color: var(--on-accent);
}
.gc-prev {
  left: 0.7rem;
}
.gc-next {
  right: 0.7rem;
}
.gc-counter {
  margin-top: 0.85rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.05em;
}
.gallery-empty {
  color: var(--muted);
  text-align: center;
  padding-block: 1.25rem;
}
.gallery-empty[hidden] {
  display: none;
}

/* ---- Контакты и заявка --------------------------------------------------- */
.contact {
  background: var(--bg-2);
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 4vw, 3.75rem);
  align-items: start;
}
.contact-copy h2 {
  margin-bottom: 1.1rem;
}
.contact-lead {
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 44ch;
  margin-bottom: 1.9rem;
}
.contact-cards {
  display: grid;
  gap: 0.7rem;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  transition: border-color 0.25s var(--ease), translate 0.25s var(--ease);
}
a.contact-card:hover {
  border-color: var(--accent);
  translate: 4px 0;
}
.contact-card .ic {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: var(--accent-tint-2);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.contact-card .ic svg {
  width: 21px;
  height: 21px;
}
.cc-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.cc-body .t {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}
.cc-body .v {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.01rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
}
.cc-body .v.addr {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}
.form-card h3 {
  font-size: var(--step-1);
  margin-bottom: 0.4rem;
}
.form-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}
/* Каркас под форму Bitrix24: держит высоту, чтобы вставка не двигала раскладку */
.b24-form {
  min-height: 420px;
}
.form-skeleton {
  display: grid;
  gap: 0.9rem;
}
.form-skeleton span {
  display: block;
  height: 48px;
  border-radius: var(--r);
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
}
.form-skeleton span:last-child {
  height: 120px;
}
.form-skeleton p {
  color: var(--faint);
  font-size: 0.88rem;
}

/* ---- Подвал -------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  max-width: 38ch;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 1rem;
  line-height: 1.6;
}
.footer-cols {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
}
.footer-col h4 {
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.footer-col a {
  display: block;
  color: var(--ink-soft);
  font-size: 0.94rem;
  padding-block: 0.32rem;
  transition: color 0.25s var(--ease);
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-meta {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  padding-block: 0.32rem;
  max-width: 32ch;
  line-height: 1.45;
}
.footer-meta.accent-meta {
  color: var(--accent);
  font-weight: 700;
}
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1.25rem;
}
.footer-legal a {
  width: fit-content;
  color: var(--muted);
  font-size: 0.87rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease);
}
.footer-legal a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
.footer-bottom {
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  color: var(--faint);
  font-size: 0.85rem;
}

/* ---- Модалка документов -------------------------------------------------- */
.doc-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(680px, 92vw);
  height: fit-content;
  max-height: 86dvh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink-soft);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.doc-modal::backdrop {
  background: oklch(0.1 0.008 70 / 0.72);
  backdrop-filter: blur(4px);
}
.doc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--line);
}
.doc-modal-head h3 {
  font-size: var(--step-1);
}
.doc-modal-close {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.4rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.25s var(--ease);
}
.doc-modal-close:hover {
  background: var(--accent-hi);
}
.doc-modal-body {
  padding: 1.35rem;
  overflow-y: auto;
  max-height: calc(86dvh - 70px);
  line-height: 1.6;
}
.doc-modal-body p {
  margin-bottom: 0.9rem;
}
.doc-modal-body h4 {
  margin: 1.3rem 0 0.5rem;
  color: var(--ink);
  font-size: 1.02rem;
  letter-spacing: 0;
  text-transform: none;
}
.doc-modal-body h5 {
  margin: 1.05rem 0 0.4rem;
  color: var(--ink);
  font-size: 0.97rem;
}
.doc-modal-body ul {
  margin: 0 0 0.9rem;
  padding-left: 1.25rem;
}
.doc-modal-body li {
  margin-bottom: 0.35rem;
  list-style: disc;
}
.doc-modal-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.2rem 0;
}
.doc-modal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}
.doc-modal-body code {
  background: var(--bg-2);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.9em;
}
/* Таблица атрибуции из CREDITS.md: на узком экране скроллится сама, а не страница */
.doc-table {
  overflow-x: auto;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.doc-table table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 0.9rem;
}
.doc-table th,
.doc-table td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.doc-table th {
  background: var(--bg-2);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}
.doc-table tr:last-child td {
  border-bottom: 0;
}
.doc-loading {
  color: var(--muted);
}

/* ---- Cookie -------------------------------------------------------------- */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-cookie);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  padding-bottom: calc(0.85rem + env(safe-area-inset-bottom));
  background: oklch(0.175 0.011 68 / 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.cookie-bar[hidden] {
  display: none;
}
.cookie-bar p {
  color: var(--ink-soft);
  font-size: 0.89rem;
  max-width: 70ch;
}
.cookie-bar a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-close {
  flex: none;
  min-height: 44px;
  padding: 0.6rem 1.5rem;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.25s var(--ease);
}
.cookie-close:hover {
  background: var(--accent-hi);
}

/* ---- Сторонние виджеты ---------------------------------------------------
   Jivo и Bitrix24 дописывают свои контейнеры в конец <body>. Корневой <jdiv>
   у Jivo — неизвестный элемент, то есть display:inline без своих стилей, и он
   успевает растянуть страницу пустотой под футером. Держим его вне потока
   (внутренние блоки Jivo позиционирует сам), а пустые служебные контейнеры
   Bitrix24 убираем: занимать высоту им незачем. */
body > jdiv {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: var(--z-cookie);
}
body > div[class*="b24"]:empty,
body > div[id*="b24"]:empty,
body > div[id^="bx-"]:empty {
  display: none;
}

/* ---- Мотион -------------------------------------------------------------- */
/* Контент виден по умолчанию; появление — только улучшение поверх видимого. */
.reveal {
  opacity: 1;
}
html.js .reveal {
  opacity: 0;
  translate: 0 20px;
  transition: opacity 0.6s var(--ease), translate 0.6s var(--ease);
}
html.js .reveal.in {
  opacity: 1;
  translate: 0 0;
}
html.js .reveal[data-delay="1"] {
  transition-delay: 0.07s;
}
html.js .reveal[data-delay="2"] {
  transition-delay: 0.14s;
}
html.js .reveal[data-delay="3"] {
  transition-delay: 0.21s;
}

/* Герой: сдвиг фотополосы и проявление скобок — своя хореография */
html.js .hero-band {
  clip-path: inset(0 0 0 0);
}
html.js .hero-band.in img {
  animation: bandZoom 1.1s var(--ease) both;
}
@keyframes bandZoom {
  from {
    scale: 1.06;
    opacity: 0.4;
  }
  to {
    scale: 1;
    opacity: 1;
  }
}

/* Угловые скобки прочерчиваются, когда кадр появился */
html.js .corner-marks::before,
html.js .corner-marks::after {
  opacity: 0;
  scale: 0.6;
  transition: opacity 0.5s var(--ease) 0.35s, scale 0.5s var(--ease) 0.35s;
}
html.js .corner-marks.in::before,
html.js .corner-marks.in::after,
html.js .in .corner-marks::before,
html.js .in .corner-marks::after {
  opacity: 1;
  scale: 1;
}

/* Степпер: шаг «включается» по мере входа секции */
html.js .step {
  opacity: 0.5;
  transition: opacity 0.5s var(--ease);
}
html.js .step.is-live {
  opacity: 1;
}
html.js .step-index::after {
  transform-origin: 0 50%;
  scale: 0 1;
  transition: scale 0.6s var(--ease) 0.15s;
}
html.js .step.is-live .step-index::after {
  scale: 1 1;
}

/* Линия под цифрой дорисовывается вместе со счётчиком */
html.js .stat-rule {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ease);
}
html.js .workforce-band.in .stat-rule {
  clip-path: inset(0 0 0 0);
}

/* Списки выезжают по очереди, а не одним блоком */
html.js .sphere-panel:not([hidden]) .sphere-copy li,
html.js .support-list.in .support-item,
html.js .contact-copy.in .contact-card {
  animation: itemIn 0.5s var(--ease) both;
}
html.js .sphere-panel:not([hidden]) .sphere-copy li:nth-child(2),
html.js .support-list.in .support-item:nth-child(2),
html.js .contact-copy.in .contact-card:nth-child(2) {
  animation-delay: 0.06s;
}
html.js .sphere-panel:not([hidden]) .sphere-copy li:nth-child(3),
html.js .support-list.in .support-item:nth-child(3),
html.js .contact-copy.in .contact-card:nth-child(3) {
  animation-delay: 0.12s;
}
html.js .sphere-panel:not([hidden]) .sphere-copy li:nth-child(4),
html.js .support-list.in .support-item:nth-child(4),
html.js .contact-copy.in .contact-card:nth-child(4) {
  animation-delay: 0.18s;
}
@keyframes itemIn {
  from {
    opacity: 0;
    translate: 0 10px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* Смена сферы: кадр наезжает, текст приходит следом */
html.js .sphere-panel:not([hidden]) img {
  animation: sphereMedia 0.7s var(--ease) both;
}
html.js .sphere-panel:not([hidden]) .sphere-copy > h3,
html.js .sphere-panel:not([hidden]) .sphere-copy > p {
  animation: itemIn 0.5s var(--ease) both;
}
/* Без opacity: кадр обязан быть видим, даже если анимация не стартовала
   (скрытая вкладка, headless-рендер). Двигаем только трансформацию. */
@keyframes sphereMedia {
  from {
    scale: 1.06;
    translate: 2% 0;
  }
  to {
    scale: 1;
    translate: 0 0;
  }
}

/* Стрелка в кнопке подаётся вперёд по наведению */
.btn svg {
  transition: translate 0.25s var(--ease);
}
.btn:hover svg {
  translate: 3px 0;
}

/* Фон секций с фото слегка приближается при прокрутке внутрь кадра */
html.js .shift-bg img,
html.js .discipline-bg img {
  scale: 1.05;
  transition: scale 1.6s var(--ease);
}
html.js .shift.in .shift-bg img,
html.js .discipline.in .discipline-bg img {
  scale: 1;
}

/* Иконки в списках оживают на наведении по строке */
.support-item .ic,
.hero-fact .ic,
.contact-card .ic {
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.support-item:hover .ic,
.hero-fact:hover .ic,
a.contact-card:hover .ic {
  background: var(--accent);
  color: var(--on-accent);
}

/* Модалка появляется, а не выскакивает */
.doc-modal[open] {
  animation: modalIn 0.3s var(--ease);
}
.doc-modal[open]::backdrop {
  animation: fadeIn 0.3s var(--ease);
}
@keyframes modalIn {
  from {
    opacity: 0;
    translate: 0 12px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  html.js .step {
    opacity: 1 !important;
    translate: none !important;
    transition: none !important;
  }
  html.js .hero-band.in img,
  html.js .sphere-panel .sphere-copy li,
  html.js .sphere-panel .sphere-copy > h3,
  html.js .sphere-panel .sphere-copy > p,
  html.js .sphere-panel img,
  html.js .support-list .support-item,
  html.js .contact-copy .contact-card,
  .ticker-dot,
  .doc-modal[open],
  .doc-modal[open]::backdrop {
    animation: none !important;
  }
  html.js .corner-marks::before,
  html.js .corner-marks::after,
  html.js .step-index::after,
  html.js .mark::before {
    opacity: 1;
    scale: 1;
    transition: none !important;
  }
  .sphere-tabs button::after {
    transition: none !important;
  }
  html.js .stat-rule {
    clip-path: none;
    transition: none !important;
  }
  html.js .shift-bg img,
  html.js .discipline-bg img {
    scale: 1;
    transition: none !important;
  }
  .gc-track,
  .btn,
  .btn svg,
  .contact-card,
  .site-header {
    transition: none !important;
  }
}

/* ---- Адаптив ------------------------------------------------------------- */
/* Дети grid/flex должны уметь сжиматься, иначе появляется горизонтальный скролл */
.header-inner > *,
.sphere-panel > *,
.ticker > *,
.workforce-band > *,
.support-grid > *,
.contact-grid > *,
.footer-inner > *,
.hero-fact > *,
.support-item > * {
  min-width: 0;
}

@media (max-width: 1000px) {
  .workforce-band,
  .support-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .support-media {
    order: -1;
  }
  .stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sphere-tabs button span {
    font-size: 0.92rem;
  }
  .sphere-copy {
    max-width: none;
  }
  .sphere-panel::before {
    background: linear-gradient(
      92deg,
      oklch(0.135 0.008 68 / 0.97) 0%,
      oklch(0.135 0.008 68 / 0.9) 46%,
      oklch(0.135 0.008 68 / 0.5) 74%,
      oklch(0.135 0.008 68 / 0.2) 100%
    );
  }
}

@media (max-width: 760px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
  .nav.open {
    position: fixed;
    inset: 70px 0 auto 0;
    z-index: var(--z-overlay);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: oklch(0.15 0.009 70 / 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
  }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .nav.open .nav-links a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1.04rem;
  }
  .nav.open .nav-cta {
    display: flex;
    margin-top: 1rem;
  }
  .nav.open .nav-cta .btn {
    width: 100%;
  }

  .hero-band {
    aspect-ratio: 4 / 3;
  }

  /* Четыре сферы в одну строку на телефоне не помещаются — раскладываем 2×2 */
  .sphere-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sphere-tabs button {
    flex-direction: column;
    gap: 0.4rem;
    min-height: 76px;
    padding: 0.8rem 0.6rem;
    font-size: 0.9rem;
  }
  /* Кадр уходит наверх, текст читается на сплошном затемнении под ним */
  .sphere-panel {
    min-height: 0;
    grid-template-rows: 190px auto;
  }
  .sphere-panel img {
    position: static;
    height: 190px;
  }
  .sphere-panel::before {
    background: linear-gradient(
      180deg,
      oklch(0.135 0.008 68 / 0.25) 0%,
      oklch(0.135 0.008 68 / 0.8) 44%,
      oklch(0.135 0.008 68 / 0.97) 66%
    );
  }

  .ticker {
    flex-wrap: wrap;
    row-gap: 0.9rem;
  }
  .ticker-tape {
    width: 100%;
    height: 8px;
    align-self: auto;
    order: -1;
  }
  .ticker-tape.end {
    display: none;
  }
  .ticker-link {
    width: 100%;
    justify-content: center;
  }

  .stepper {
    grid-template-columns: 1fr;
  }
  .hero-cta .btn {
    flex: 1 1 auto;
  }
  .corner-marks::before,
  .corner-marks::after {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 460px) {
  .brand-name span {
    display: none;
  }
  .gc-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}
