/* ============================================================
   САРМА — прототип сайта. Базовые стили.
   Палитра из медиакита 2026, светлый фон из ТЗ.
   ============================================================ */

:root {
  --navy: #0D1D3B;      /* основной тёмный фон */
  --deep: #012063;      /* глубокий синий */
  --blue: #053EB5;      /* акцент */
  --green: #098F7F;     /* второй акцент */
  --light: #F1F5FD;     /* светлый фон */
  --white: #FFFFFF;

  --text-dark: #0D1D3B;
  --text-muted: #4B5A78;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: rgba(255,255,255,0.72);

  --card-light: rgba(255,255,255,0.9);
  --card-dark: rgba(255,255,255,0.05);
  --line-dark: rgba(255,255,255,0.14);
  --line-light: rgba(13,29,59,0.12);

  --font: "Golos Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --gutter: clamp(16px, 4vw, 64px);
  --max: 1280px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-dark);
  background: var(--navy);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Доступность */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(13,29,59,0.0);
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.header.is-scrolled { background: rgba(13,29,59,0.82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line-dark); }
.header .container { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.header__logo { display: block; width: 150px; height: 30px; }
.header__logo svg, .header__logo img { width: 100%; height: 100%; }
.nav { display: flex; justify-content: center; gap: 28px; }
.nav--right { justify-content: flex-end; align-items: center; gap: 22px; }
.nav a, .nav span {
  color: var(--text-on-dark); text-decoration: none; font-size: 15px; font-weight: 500;
  opacity: .85; padding: 8px 2px; border-bottom: 1px solid transparent; transition: opacity .2s, border-color .2s;
}
.nav a:hover, .nav a:focus-visible { opacity: 1; border-bottom-color: var(--green); }
.nav .btn { padding: 0 16px; opacity: 1; border: 1px solid transparent; }
.nav__soon { opacity: .45; cursor: default; }
.nav__soon small { font-size: 11px; margin-left: 4px; opacity: .8; }
.burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 10px;
  background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 20px; height: 2px; background: currentColor; position: relative; content: ""; transition: transform .25s;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav { display: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: #0ba591; box-shadow: 0 10px 30px rgba(9,143,127,0.35); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--deep); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: #0a4ad0; box-shadow: 0 10px 30px rgba(5,62,181,0.35); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Секции ---------- */
.section { position: relative; padding-block: clamp(72px, 10vw, 140px); overflow: hidden; content-visibility: auto; contain-intrinsic-size: 1px 900px; }
.section--dark { background: var(--navy); color: var(--text-on-dark); }
.section--light { background: var(--light); color: var(--text-dark); }
.section--deep { background: linear-gradient(180deg, var(--navy) 0%, var(--deep) 100%); color: #fff; }
.section > .container { position: relative; z-index: 4; }

.layer { position: absolute; inset: 0; pointer-events: none; }
.layer--bg { z-index: 0; background-size: cover; background-position: center; will-change: transform; }
.layer--glow { z-index: 1; mix-blend-mode: screen; }
.layer--rings { z-index: 2; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.section--dark .eyebrow, .section--deep .eyebrow { color: #3ED0BC; }

.h2 { font-size: clamp(28px, 4.2vw, 52px); max-width: 18ch; }
.h2--wide { max-width: 26ch; }
.h3 { font-size: clamp(20px, 2.2vw, 26px); }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; max-width: 60ch; color: var(--text-muted); }
.section--dark .lead, .section--deep .lead { color: var(--text-on-dark-muted); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--split { grid-template-columns: 1fr 1fr; align-items: end; }

/* ---------- Карточки ---------- */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; padding: 28px; border-radius: var(--radius-lg);
  background: var(--card-light); border: 1px solid var(--line-light);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(13,29,59,0.10); }
.section--dark .card, .section--deep .card {
  background: var(--card-dark); border-color: var(--line-dark); backdrop-filter: blur(6px);
}
.section--dark .card:hover, .section--deep .card:hover { box-shadow: 0 20px 50px rgba(0,0,0,0.35); border-color: rgba(255,255,255,0.28); }
.card__num { font-size: 13px; font-weight: 600; color: var(--green); letter-spacing: .08em; }
.section--dark .card__num, .section--deep .card__num { color: #3ED0BC; }
.card__title { font-size: 19px; font-weight: 600; line-height: 1.25; }
.card__text { font-size: 15px; color: var(--text-muted); line-height: 1.5; }
.section--dark .card__text, .section--deep .card__text { color: var(--text-on-dark-muted); }
.card__tag { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.section--dark .card__tag, .section--deep .card__tag { color: #3ED0BC; }
.card--accent { background: linear-gradient(135deg, var(--green), #0a6e62); color: #fff; border-color: transparent; }
.card--accent .card__text, .card--accent .card__num { color: rgba(255,255,255,0.85); }
.card--link { text-decoration: none; cursor: pointer; }
.card--link .card__cta { margin-top: auto; padding-top: 14px; font-weight: 600; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); margin-bottom: 6px; }
.section--dark .card .dot { background: #3ED0BC; }

.stat { font-size: clamp(40px, 5vw, 64px); font-weight: 600; line-height: 1; color: var(--blue); letter-spacing: -0.02em; }
.stat__label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dark); margin-top: 10px; }
.section--dark .stat { color: #fff; }
.section--dark .stat__label { color: var(--text-on-dark-muted); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--pending { color: var(--text-muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: 80px;
  background: var(--navy); color: #fff; overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__bg { z-index: 0; opacity: .9; }
.hero__vignette { z-index: 1; background: radial-gradient(120% 80% at 50% 10%, transparent 40%, rgba(13,29,59,0.85) 100%), linear-gradient(180deg, rgba(13,29,59,0.4) 0%, transparent 30%, rgba(13,29,59,0.9) 100%); }
.hero .container { position: relative; z-index: 4; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(32px, 5vw, 80px); }
.hero__title { font-size: clamp(34px, 5.4vw, 72px); max-width: 14ch; letter-spacing: -0.02em; }
.hero__title .w { display: inline-block; }
.hero__sub { margin-top: 22px; font-size: clamp(18px, 1.8vw, 24px); color: var(--text-on-dark-muted); max-width: 32ch; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.hero__tags { display: flex; gap: 0; margin-top: 54px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,0.6); flex-wrap: wrap; }
.hero__tags span + span::before { content: "|"; margin: 0 14px; opacity: .5; }
.hero__logo-wrap { display: grid; place-items: center; }
.hero-logo { width: min(100%, 460px); height: auto; filter: drop-shadow(0 0 40px rgba(5,62,181,0.45)); }
.hero-logo path, .hero-logo polygon, .hero-logo polyline { fill: #fff; }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 4; color: rgba(255,255,255,0.6); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; }
.hero__scroll i { width: 1px; height: 36px; background: linear-gradient(180deg, #fff, transparent); animation: scrollHint 2s ease-in-out infinite; }
@keyframes scrollHint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Манифест (цель / видение) ---------- */
.manifest { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.manifest__text { font-size: clamp(22px, 2.6vw, 36px); line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
.manifest__text .w { opacity: .28; transition: opacity .2s; }
.manifest__text .w.is-lit { opacity: 1; }
.manifest__aside { display: grid; gap: 18px; }
.quote { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; color: var(--text-on-dark-muted); padding-left: 18px; border-left: 2px solid var(--green); }
.quote b { color: #fff; display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }

/* Плавающие кнопки после «что делаем» */
.float-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.float-actions .btn { animation: floaty 7s ease-in-out infinite; }
.float-actions .btn:nth-child(2) { animation-delay: -2.3s; }
.float-actions .btn:nth-child(3) { animation-delay: -4.6s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Стек ---------- */
.stack { gap: 14px; }
.stack .card { padding: 22px; gap: 6px; }

/* ---------- Контуры ---------- */
.contours { grid-template-columns: repeat(4, 1fr); }
.contours .card { min-height: 230px; }
.contours__line { margin-top: 28px; font-size: 16px; color: var(--text-on-dark-muted); }
.contours__line b { color: #fff; font-weight: 500; }

/* ---------- Продукты и фильтр ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; align-items: center; }
.filter__label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-on-dark-muted); margin-right: 6px; }
.chip {
  border: 1px solid var(--line-dark); background: transparent; color: #fff; border-radius: 999px;
  padding: 8px 14px; font-size: 14px; cursor: pointer; transition: background .2s, border-color .2s, transform .2s;
}
.chip:hover { border-color: rgba(255,255,255,0.5); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); }
.chip--reset { border-style: dashed; opacity: .75; }
.products { grid-template-columns: repeat(3, 1fr); }
.product { min-height: 360px; transition: opacity .35s, transform .35s, filter .35s; }
.product.is-dimmed { opacity: .28; filter: grayscale(1); transform: scale(.98); }
.product__meta { display: grid; gap: 8px; font-size: 14px; margin-top: 8px; }
.product__meta dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-on-dark-muted); }
.product__meta dd { margin: 0 0 6px; color: #fff; }
.product__meta .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.product__meta .tags span { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-dark); color: rgba(255,255,255,0.85); }
.product--soon .card__title::after { content: "в разработке"; display: inline-block; margin-left: 10px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #3ED0BC; vertical-align: middle; }

/* ---------- Отрасли ---------- */
.industries { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.industries .card { padding: 20px 22px; min-height: 92px; justify-content: center; font-weight: 500; font-size: 16px; }
.industries .card small { font-weight: 400; font-size: 12px; color: #3ED0BC; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Кейсы ---------- */
.cases { grid-template-columns: repeat(5, 1fr); gap: 12px; }
.case { padding: 22px; gap: 8px; min-height: 240px; }
.case__client { font-size: 20px; font-weight: 700; letter-spacing: .02em; }
.case__client a { text-decoration: none; }
.case__result { margin-top: auto; padding-top: 12px; font-weight: 600; color: #3ED0BC; font-size: 15px; }
.cases-empty { border: 1px dashed var(--line-dark); border-radius: var(--radius-lg); padding: 28px; color: var(--text-on-dark-muted); }

/* ---------- CTA ---------- */
.cta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--deep), var(--blue)); color: #fff; margin-top: clamp(40px, 6vw, 72px); }
.cta h3 { font-size: clamp(22px, 2.6vw, 32px); max-width: 24ch; }
.cta p { color: rgba(255,255,255,0.78); margin-top: 8px; }

/* ---------- Форма ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 6px; }
.form label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-on-dark-muted); }
.form input, .form textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06); color: #fff; font: inherit; font-size: 16px; transition: border-color .2s, background .2s;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(255,255,255,0.45); }
.form input:hover, .form textarea:hover { border-color: rgba(255,255,255,0.4); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--green); background: rgba(255,255,255,0.09); }
.form .is-invalid input, .form .is-invalid textarea { border-color: #FF7A7A; }
.form__error { font-size: 13px; color: #FF9B9B; min-height: 1em; }
.form textarea { min-height: 120px; resize: vertical; }
.form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-on-dark-muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.form__consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); }
.form__consent a { color: #fff; }
.form__note { font-size: 13px; color: var(--text-on-dark-muted); }
.form__hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form__success { display: none; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--green); background: rgba(9,143,127,0.12); }
.form.is-sent .form__fields { display: none; }
.form.is-sent .form__success { display: block; }
.form__status { font-size: 14px; color: #FF9B9B; }
.contacts-list { display: grid; gap: 14px; font-size: 16px; }
.contacts-list a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.contacts-list a:hover { border-color: #fff; }
.contacts-list dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-on-dark-muted); }
.contacts-list dd { margin: 2px 0 0; }

/* ---------- Футер ---------- */
.footer { background: #071331; color: rgba(255,255,255,0.78); padding-block: 56px 32px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { color: rgba(255,255,255,0.78); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer li + li { margin-top: 8px; }
.footer__logo { width: 140px; margin-bottom: 16px; }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.55); }

/* ---------- Анимации появления ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(.94); }
.is-revealed[data-reveal] { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* Продуктовые страницы */
.page-hero { position: relative; min-height: 72svh; display: grid; align-items: end; padding: calc(var(--header-h) + 60px) 0 64px; background: var(--navy); color: #fff; overflow: hidden; }
.page-hero .container { position: relative; z-index: 4; }
.page-hero__title { font-size: clamp(32px, 5vw, 64px); max-width: 16ch; letter-spacing: -0.02em; }
.page-hero__sub { margin-top: 18px; font-size: clamp(17px, 1.6vw, 22px); color: var(--text-on-dark-muted); max-width: 52ch; }
.breadcrumbs { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a { color: rgba(255,255,255,0.8); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.timeline .card { border-left: 3px solid var(--blue); border-radius: 12px; }
.timeline__date { font-size: 13px; font-weight: 600; color: var(--blue); letter-spacing: .06em; }
.stats { grid-template-columns: repeat(4, 1fr); }
.stats .card { align-items: flex-start; }
.steps { grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.steps .card::before { counter-increment: step; content: "0" counter(step); font-size: 32px; font-weight: 600; color: var(--green); line-height: 1; }
.chain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.chain .card { text-align: center; }
.placeholder { border: 1px dashed var(--line-dark); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); color: var(--text-on-dark-muted); display: grid; gap: 14px; }
.placeholder b { color: #fff; font-size: 18px; }
.int-list { display: flex; flex-wrap: wrap; gap: 8px; }
.int-list span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-light); background: #fff; font-size: 14px; font-weight: 500; }
.policy { max-width: 820px; font-size: 16px; line-height: 1.6; }
.policy h2 { font-size: 22px; margin: 36px 0 12px; }
.policy p, .policy li { margin-bottom: 10px; color: var(--text-muted); }
.policy ul { list-style: disc; padding-left: 22px; }
.note { font-size: 13px; color: var(--text-muted); padding: 14px 16px; border-radius: 12px; background: rgba(13,29,59,0.05); border: 1px dashed var(--line-light); }
.section--dark .note, .section--deep .note { color: var(--text-on-dark-muted); background: rgba(255,255,255,0.04); border-color: var(--line-dark); }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .cases { grid-template-columns: repeat(3, 1fr); }
  .contours { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .header .container { grid-template-columns: auto 1fr auto; }
  .nav { display: none; }
  .burger { display: inline-flex; justify-self: end; }
  .header__cta { display: none; }
  .mobile-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--navy); z-index: 99;
    display: none; flex-direction: column; padding: 24px var(--gutter); gap: 6px; overflow: auto;
  }
  .menu-open .mobile-nav { display: flex; }
  .mobile-nav a, .mobile-nav span { color: #fff; text-decoration: none; font-size: 22px; font-weight: 500; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
  .mobile-nav .btn { margin-top: 20px; border: 0; font-size: 16px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero__logo-wrap { order: -1; }
  .hero-logo { width: min(70vw, 320px); }
  .manifest, .contact, .section-head--split { grid-template-columns: 1fr; }
  .grid--3, .grid--4, .products, .stack, .industries, .timeline, .chain { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4, .products, .stack, .industries, .cases, .contours, .timeline, .chain, .stats, .steps, .footer__grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .hero { padding-bottom: 96px; }
  .hero__actions .btn { width: 100%; }
  .hero__tags { flex-direction: column; gap: 8px; }
  .hero__tags span + span::before { display: none; }
  .product { min-height: 0; }
  .contours { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .contours .card { flex: 0 0 82%; scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .manifest__text .w { opacity: 1; }
}
