/* ============================================================
   SolviX Landing
   Тёмная сцена + акцент «раскалённый уголь» (seed oklch 0.652 0.229 34.8).
   Система скруглений: кнопки = пилюля, карточки/ячейки = 18px, поля = 12px.
   ============================================================ */

/* ---------- Шрифты (self-hosted, кириллица + латиница) ---------- */
@font-face {
  font-family: 'Geologica';
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/geologica-cyr-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Geologica';
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/geologica-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geologica';
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/geologica-lat.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Onest';
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/onest-cyr-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/onest-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/onest-lat.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

/* ---------- Токены ---------- */
:root {
  --bg: #0e0907;
  --surface: #18120f;
  --surface-2: #241c18;
  --ink: #f3ede9;
  --muted: #aca29c;
  --accent: #fc4102;
  --accent-hover: #da3200;
  --accent-bright: #ff7527;
  --amber: #f0a646;
  --line: rgba(243, 237, 233, 0.12);
  --radius-card: 18px;
  --radius-input: 12px;
  --font-display: 'Geologica', 'Arial Black', sans-serif;
  --font-body: 'Onest', 'Segoe UI', Arial, sans-serif;
  --nav-h: 72px;
  /* z-слои: sticky-нав < мобильное меню */
  --z-nav: 40;
  --z-menu: 50;
}
@supports (color: oklch(0.5 0.1 30)) {
  :root {
    --bg: oklch(0.145 0.010 50);
    --surface: oklch(0.19 0.012 50);
    --surface-2: oklch(0.235 0.014 50);
    --ink: oklch(0.95 0.008 60);
    --muted: oklch(0.72 0.015 55);
    --accent: oklch(0.652 0.229 34.8);
    --accent-hover: oklch(0.58 0.21 34.8);
    --accent-bright: oklch(0.72 0.19 45);
    --amber: oklch(0.78 0.14 70);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.container--narrow { max-width: 820px; }

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-bright);
  margin-bottom: 1.1rem;
}

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.8em 1.7em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:active { transform: scale(0.98); }
.btn--lg { padding: 1em 2.1em; font-size: 1.0625rem; }

.btn--primary {
  background: var(--accent);
  color: #140700; /* тёмный текст на акценте: контраст выше 5:1 */
}
.btn--primary:hover { background: var(--accent-bright); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--muted); background: rgba(243, 237, 233, 0.05); }

/* ---------- Навигация ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-nav);
  height: var(--nav-h);
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav__logo em { font-style: normal; color: var(--accent-bright); }
.nav__tld {
  font-size: 0.72em;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.nav__mark { width: auto; height: 1.75rem; }

.nav__links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-left: auto;
}
.nav__links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--ink); }

.nav__cta { font-size: 0.95rem; }

.nav__lang {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav__lang a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.35em 0.6em;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav__lang a:hover { color: var(--ink); }
.nav__lang a[aria-current="page"] {
  color: var(--ink);
  background: rgba(243, 237, 233, 0.09);
}

.nav__burger {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  padding: 0.5rem;
  cursor: pointer;
}
.nav__burger .icon { width: 1.7rem; height: 1.7rem; }
.nav__burger .icon--close { display: none; }
.nav__burger[aria-expanded="true"] .icon--open { display: none; }
.nav__burger[aria-expanded="true"] .icon--close { display: block; }

#navSentinel { position: absolute; top: 24px; height: 1px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: clip;
}
.hero__glow {
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  background:
    radial-gradient(42% 38% at 72% 30%, rgba(252, 65, 2, 0.16), transparent 70%),
    radial-gradient(30% 30% at 15% 85%, rgba(240, 166, 70, 0.07), transparent 70%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  width: 100%;
  padding-block: clamp(2rem, 5vh, 4rem);
}
.hero__title {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  font-weight: 700;
  margin-bottom: 0.5em;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero__media { position: relative; }
.hero__photo {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.hero__photo img {
  width: 100%;
  height: clamp(320px, 56vh, 560px);
  object-fit: cover;
  filter: saturate(0.92);
}

/* ---------- Платформа: манифест ---------- */
.platform {
  padding-block: clamp(5rem, 12vw, 9rem);
  text-align: center;
}
.platform__title {
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  max-width: 18em;
  margin-inline: auto;
}
.platform__sub {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.15rem);
  max-width: 42em;
  margin-inline: auto;
}

/* ---------- Bento ---------- */
.modules { padding-block: clamp(3rem, 7vw, 5rem); }

.bento {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.bento__cell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
  min-height: 300px;
  display: flex;
  align-items: flex-end;
}
/* Ритм: широкая ERP + узкие документы/чат + широкий ИИ */
.bento__cell--erp { grid-column: span 3; }
.bento__cell:nth-child(2) { grid-column: span 2; }
.bento__cell:nth-child(3) { grid-column: span 2; }
.bento__cell--ai {
  grid-column: span 3;
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(252, 65, 2, 0.28), transparent 55%),
    var(--surface-2);
}
.bento__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.85);
}
.bento__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 9, 7, 0.92) 25%, rgba(14, 9, 7, 0.35) 60%, rgba(14, 9, 7, 0.15));
}
.bento__content {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2rem);
}
.bento__icon {
  display: inline-flex;
  width: 2.6rem;
  height: 2.6rem;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(252, 65, 2, 0.14);
  color: var(--accent-bright);
  margin-bottom: 1rem;
}
.bento__icon svg { width: 1.4rem; height: 1.4rem; }
.bento__content h3 { font-size: 1.35rem; margin-bottom: 0.4em; }
.bento__content p { color: var(--muted); font-size: 0.98rem; max-width: 46ch; }
.bento__cell--erp .bento__content p { color: #d8d0ca; }

/* ---------- Решения: оптимизация / трансформация / автоматизация ---------- */
.sol { padding-block: clamp(4rem, 9vw, 7rem); }
.sol__panel {
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.sol__panel + .sol__panel { margin-top: 1.25rem; }
.sol__panel--tint {
  background:
    radial-gradient(120% 160% at 90% 0%, rgba(252, 65, 2, 0.22), transparent 55%),
    var(--surface-2);
}
.sol__icon {
  display: inline-flex;
  width: 2.6rem;
  height: 2.6rem;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(252, 65, 2, 0.14);
  color: var(--accent-bright);
  margin-bottom: 1rem;
}
.sol__icon svg { width: 1.4rem; height: 1.4rem; }
.sol__panel h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.sol__panel p { color: var(--muted); max-width: 52ch; }
.sol__panel--tint p { color: #d8d0ca; }
.sol__panel .check-list { margin-top: 0; }

/* ---------- Процесс ---------- */
.process { padding-block: clamp(4rem, 9vw, 7rem); }
.process__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.process__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line);
  align-items: start;
}
.process__step:last-child { border-bottom: 1px solid var(--line); }
.process__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  min-width: 2ch;
}
.process__step h3 { font-size: 1.3rem; margin-bottom: 0.35em; }
.process__step p { color: var(--muted); max-width: 58ch; }

/* ---------- Казахстан: параллакс-блок ---------- */
.kz {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: clip;
}
.kz__media { position: absolute; inset: 0; }
.kz__img {
  width: 100%;
  height: 118%;   /* запас для параллакс-сдвига */
  object-fit: cover;
  filter: saturate(0.8) brightness(0.75);
  will-change: transform;
}
.kz__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--bg) 0%, transparent 22%, transparent 78%, var(--bg) 100%),
    linear-gradient(100deg, rgba(14, 9, 7, 0.82) 20%, rgba(14, 9, 7, 0.35) 65%);
}
.kz__inner {
  position: relative;
  width: 100%;
  padding-block: clamp(4rem, 10vw, 7rem);
}
.kz__inner h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  max-width: 15em;
}
.kz__inner p:not(.eyebrow) {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  max-width: 38em;
  color: #ded6d0;
}

/* ---------- Сценарии: зигзаг ---------- */
.cases { padding-block: clamp(4rem, 9vw, 7rem); }
.case {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.case + .case { margin-top: clamp(3.5rem, 8vw, 6rem); }
.case--reverse .case__media { order: 2; }
.case--reverse .case__copy { order: 1; }

.case__media {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
}
.case__media img {
  width: 100%;
  height: clamp(300px, 42vw, 460px);
  object-fit: cover;
  filter: saturate(0.85);
  will-change: transform;
}
.case__copy h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.case__copy > p { color: var(--muted); max-width: 50ch; }

.check-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 500;
}
.check-list .icon { color: var(--accent-bright); margin-top: 0.18em; }

/* ---------- Почему SolviX ---------- */
.why { padding-block: clamp(4rem, 9vw, 7rem); }
.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
}
.why__item { border-top: 1px solid var(--line); padding-top: 1.75rem; }
.why__icon {
  display: inline-flex;
  color: var(--accent-bright);
  margin-bottom: 0.9rem;
}
.why__icon svg { width: 1.8rem; height: 1.8rem; }
.why__item h3 { font-size: 1.25rem; margin-bottom: 0.4em; }
.why__item p { color: var(--muted); max-width: 52ch; }

/* ---------- FAQ ---------- */
.faq { padding-block: clamp(4rem, 9vw, 7rem); }
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.3rem 2.5rem 1.3rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 0.85rem;
  height: 0.85rem;
  border-right: 2px solid var(--accent-bright);
  border-bottom: 2px solid var(--accent-bright);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq__item p {
  color: var(--muted);
  padding-bottom: 1.4rem;
  max-width: 65ch;
}

/* ---------- Контакт / форма ---------- */
.contact {
  padding-block: clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(60% 80% at 15% 20%, rgba(252, 65, 2, 0.08), transparent 60%),
    var(--surface);
  border-top: 1px solid var(--line);
}
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact__copy h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); }
.contact__copy > p { color: var(--muted); max-width: 40ch; }
.contact__list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.contact__list li { display: flex; align-items: center; gap: 0.8rem; font-weight: 500; }
.contact__list .icon { color: var(--accent-bright); }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--accent-bright); }

.form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}
.form__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.field { display: grid; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.92rem;
  font-weight: 600;
}
.field__req { color: var(--accent-bright); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  color: var(--ink);
  font: inherit;
  padding: 0.75em 1em;
  transition: border-color 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: #8a817b; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-bright);
}
.field textarea { resize: vertical; min-height: 7em; }
.field.is-invalid input { border-color: var(--accent-bright); }
.field__error {
  color: var(--accent-bright);
  font-size: 0.88rem;
  margin: 0;
}
.field__error a { color: inherit; }

/* Поле-ловушка: убрано за экран, не display:none, чтобы боты его видели */
.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
}
.consent input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2em;
  accent-color: var(--accent);
}

.form__submit { width: 100%; }
.form__submit[disabled] { opacity: 0.6; cursor: wait; }

.form__success {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) 1rem;
}
.form__success .icon {
  width: 3rem;
  height: 3rem;
  color: var(--accent-bright);
  margin-bottom: 1rem;
}
.form__success h3 { font-size: 1.5rem; }
.form__success p { color: var(--muted); }

/* ---------- Кнопка «наверх» ---------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: var(--z-nav);
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 85%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0.3s,
              border-color 0.2s ease,
              color 0.2s ease;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.to-top:hover { border-color: var(--accent-bright); color: var(--accent-bright); }
.to-top:active { transform: scale(0.94); }
.to-top .icon { width: 1.35rem; height: 1.35rem; }

/* ---------- Футер ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(2.5rem, 6vw, 4rem);
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.5rem;
}
.footer__brand p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 30ch;
  margin-top: 1rem;
}
.footer__nav { display: grid; gap: 0.7rem; align-content: start; }
.footer__nav a,
.footer__contacts a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.footer__nav a:hover,
.footer__contacts a:hover { color: var(--ink); }
.footer__contacts {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer__bottom p { margin: 0; }

/* ---------- Появление по скроллу: контент виден по умолчанию,
     GSAP лишь добавляет въезд. Без JS страница полностью читаема. ---------- */

/* ---------- Адаптив ---------- */
@media (max-width: 1023px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__cell,
  .bento__cell--erp,
  .bento__cell--ai,
  .bento__cell:nth-child(2),
  .bento__cell:nth-child(3) { grid-column: span 2; min-height: 260px; }
}

@media (max-width: 899px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__photo img { height: clamp(260px, 40vh, 400px); }
  .hero { min-height: auto; padding-bottom: 3rem; }

  .case,
  .case--reverse { grid-template-columns: 1fr; }
  .case--reverse .case__media { order: 0; }
  .case--reverse .case__copy { order: 0; }
  .case__media img { height: clamp(240px, 50vw, 380px); }

  .contact__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }

  .sol__panel { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: var(--z-menu);
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a {
    padding: 0.9rem 0.25rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__lang { margin-left: auto; }
  .nav__burger { display: block; }
  .nav { background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

  .why__grid { grid-template-columns: 1fr; }
  .form__fields { grid-template-columns: 1fr; }
  .process__num { font-size: 1.9rem; }
}

@media (max-width: 479px) {
  .nav__cta { display: none; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .kz__img { height: 100%; }
}
