/* ============================================================================
   MOEX COT — дизайн-система публичной части.
   Принципы: сильная типографика, осмысленные отступы, немного асимметрии,
   сдержанная анимация (корректные easing, уважение prefers-reduced-motion).
   Шрифты: Golos Text (Cyrillic-native, не «дефолт») + JetBrains Mono для данных.
   Дашборд (static/index.html) использует свои стили и не затрагивается.
   ============================================================================ */

:root {
  /* Палитра: тёплый off-white, тил-акцент, золото. Ink — не чистый чёрный. */
  --bg: #fbfbf9;
  --surface: #ffffff;
  --surface-2: #f4f6f4;
  --ink: #131e1b;
  --ink-soft: #38443f;
  --muted: #67736e;
  --line: #e5eae6;
  --line-strong: #d3dbd6;
  --accent: #0e7c6f;
  --accent-deep: #0a5f55;
  --accent-wash: #0e7c6f14;
  --gold: #a9761f;
  --gold-wash: #a9761f14;
  /* Тёмный «терминальный» тон для героя и акцентных полос. */
  --dark: #0f1613;
  --dark-2: #16211d;
  --dark-line: #26332e;
  --dark-ink: #e9efeb;
  --dark-muted: #93a29b;
  --up: #2bb673;
  --down: #ef5350;

  --font: "Golos Text", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, Menlo, monospace;
  /* Easing по методике Emil: ease-out для входа, ease-in-out для перемещения. */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --maxw: 1120px;
  --radius: 14px;
}

/* Тёмная тема (consumer-страницы) — переопределяем токены. Тёмные полосы
   (герой/CTA) в тёмной теме становятся приподнятыми поверхностями. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1512;
    --surface: #151f1b;
    --surface-2: #1b2622;
    --ink: #e9efeb;
    --ink-soft: #bcc7c1;
    --muted: #8a968f;
    --line: #24322d;
    --line-strong: #31413b;
    --accent: #3fbfae;
    --accent-deep: #59ccbb;
    --accent-wash: #3fbfae1f;
    --gold: #d6a24e;
    --gold-wash: #d6a24e1c;
    --dark: #060b09;
    --dark-2: #0d1512;
    --dark-line: #223029;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }
img { max-width: 100%; }
::selection { background: var(--accent-wash); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.eyebrow {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}

/* ---------- Кнопки ---------- */
.nav-btn, .nav-ghost, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; padding: 9px 18px; font: inherit; font-weight: 600;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 160ms var(--ease), background 160ms, border-color 160ms, box-shadow 160ms;
  text-decoration: none; white-space: nowrap;
}
.nav-btn { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(14,124,111,.25); }
.nav-btn:hover { background: var(--accent-deep); color: #fff; }
.nav-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.nav-ghost:hover { border-color: var(--accent); color: var(--accent); }
/* Нажатие: заметный отклик (Emil — все нажимаемые элементы). */
.nav-btn:active, .nav-ghost:active, .btn:active { transform: scale(0.97); }
.btn-lg { padding: 13px 26px; font-size: 1.02rem; border-radius: 12px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(18px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; font-size: 1.18rem; letter-spacing: -0.03em; color: var(--ink); }
.brand span { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 6px 20px; flex-wrap: wrap; }
.site-nav a:not(.nav-btn):not(.nav-ghost) { color: var(--ink-soft); font-weight: 500; font-size: 0.96rem; }
.site-nav a:not(.nav-btn):not(.nav-ghost):hover { color: var(--ink); }

.site-main { flex: 1; }

/* ---------- Тёмный герой (терминальный тон) ---------- */
.hero {
  background: radial-gradient(120% 120% at 80% -10%, #14231e 0%, var(--dark) 55%);
  color: var(--dark-ink); position: relative; overflow: hidden;
  border-bottom: 1px solid var(--dark-line);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--dark-line) 1px, transparent 1px), linear-gradient(90deg, var(--dark-line) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .18;
  -webkit-mask-image: radial-gradient(70% 80% at 70% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(70% 80% at 70% 0%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; padding: clamp(56px, 9vw, 96px) 0 clamp(48px, 7vw, 84px); max-width: 760px; }
.hero .eyebrow { color: #4fd0bf; }
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; margin: 18px 0 20px;
  color: #f3f8f5;
}
.hero h1 .hl { color: #4fd0bf; }
.hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--dark-muted); max-width: 60ch; margin-bottom: 30px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .nav-ghost { border-color: var(--dark-line); color: #dbe7e2; }
.hero .nav-ghost:hover { border-color: #4fd0bf; color: #7fe0d2; }
.hero-note { margin-top: 22px; font-size: 0.86rem; color: var(--dark-muted); }
.hero-note b { color: #cfe0da; font-weight: 600; }

/* Строка «тикеров» — намёк на терминал */
.tickers { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 34px; }
.ticker {
  font-family: var(--mono); font-size: 0.78rem; color: var(--dark-muted);
  border: 1px solid var(--dark-line); border-radius: 8px; padding: 5px 10px; background: rgba(255,255,255,.02);
}
.ticker b { color: #cfe0da; font-weight: 500; }

/* Витрина продукта — целиком в светлой части под героем (без наезда на тёмный герой) */
.showcase { padding: clamp(44px, 7vw, 80px) 0 clamp(20px, 3vw, 32px); }
.shot { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--dark-line); box-shadow: 0 40px 80px -40px rgba(6, 20, 16, .55); background: var(--dark); }
.shot img, .shot video { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 12px 18px; font-size: .85rem; color: var(--muted); background: var(--surface); border-top: 1px solid var(--line); text-align: center; }

/* ============================================================================
   Премиум-моушен героя и витрины. Все анимированные состояния — под классом
   .motion (его вешает public.js, только если НЕ prefers-reduced-motion). Без
   .motion контент виден и статичен: ничего не прячется и не дёргается.
   ============================================================================ */
.hero-inner { z-index: 1; }

/* Аврора — медленно дышащие акцентные пятна в глубине тёмного героя. */
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  inset: -25% -12% auto -12%; height: 135%;
  background:
    radial-gradient(38% 52% at 78% 6%, color-mix(in srgb, var(--accent) 60%, transparent), transparent 70%),
    radial-gradient(30% 42% at 20% 2%, color-mix(in srgb, var(--gold) 42%, transparent), transparent 70%),
    radial-gradient(44% 48% at 58% 42%, color-mix(in srgb, #2fe6cf 34%, transparent), transparent 74%);
  filter: blur(34px) saturate(118%); opacity: .42;
}
.motion .hero::before { animation: auroraDrift 20s ease-in-out infinite alternate; }
@keyframes auroraDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-4%, 2.5%, 0) scale(1.09); }
}

/* Появление заголовка по словам (blur + подъём), стаггер по --i. */
.motion .hero-title .word {
  display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(0.5em);
  animation: wordIn .7s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 55ms + 120ms);
}
@keyframes wordIn { to { opacity: 1; filter: blur(0); transform: none; } }

/* Мягкий каскад остальных элементов героя на загрузке. */
.motion .hero-inner > .eyebrow,
.motion .hero-inner > .lede,
.motion .hero-inner > .cta-row,
.motion .hero-inner > .hero-note,
.motion .hero-inner > .tickers { opacity: 0; animation: heroFade .8s var(--ease) forwards; }
.motion .hero-inner > .eyebrow  { animation-delay: .05s; }
.motion .hero-inner > .lede     { animation-delay: .5s; }
.motion .hero-inner > .cta-row  { animation-delay: .64s; }
.motion .hero-inner > .hero-note{ animation-delay: .76s; }
.motion .hero-inner > .tickers  { animation-delay: .86s; }
@keyframes heroFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Живая лента тикеров — бесконечная бегущая строка (терминальный вайб).
   Маска и overflow — только в живом режиме, чтобы статичный ряд (reduced-motion)
   не подрезался. */
.tickers--live { flex-wrap: nowrap; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tickers--live .ticker-track { display: flex; gap: 8px 10px; flex-wrap: nowrap; width: max-content; will-change: transform; }
.motion .tickers--live .ticker-track { animation: tickerScroll 34s linear infinite; }
.tickers--live .ticker-track .ticker { flex: 0 0 auto; }
.tickers--live:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerScroll { to { transform: translateX(-50%); } }

/* Витрина продукта: цветной ореол + периодический блик по кадру. */
.shot { position: relative; }
.shot { box-shadow: 0 40px 80px -40px rgba(6, 20, 16, .55),
                    0 0 70px -24px color-mix(in srgb, var(--accent) 34%, transparent); }
.motion .shot::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255,255,255,.10) 46%,
              rgba(255,255,255,.02) 54%, transparent 68%);
  transform: translateX(-130%);
  animation: shotSheen 8s ease-in-out 1.6s infinite;
}
@keyframes shotSheen { 0%, 62% { transform: translateX(-130%); } 82%, 100% { transform: translateX(130%); } }

/* ---------- Секции ---------- */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; margin: 14px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Фичи — асимметричный бенто (не «три одинаковые карточки») */
.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.feature {
  grid-column: span 3;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.feature.f-lg { grid-column: span 4; }
.feature.f-sm { grid-column: span 2; }
/* Иконка — без пастельной плитки: тонкий акцентный знак в потоке. */
.feature .ic { display: inline-block; color: var(--accent); font-size: 22px; line-height: 1; margin-bottom: 14px; }
.feature h3 { font-size: 1.16rem; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.97rem; }

/* Шаги «как это работает» */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 44px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-family: var(--mono); font-weight: 700;
  font-size: 0.9rem; color: #fff; background: var(--accent); width: 34px; height: 34px;
  border-radius: 9px; display: grid; place-items: center;
}
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.97rem; }

/* Секторы */
.sectors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sector-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.sector-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.sector-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.sector-card li { color: var(--muted); font-size: 0.92rem; }

/* Прайсинг */
.pricing { display: flex; justify-content: center; }
.price-card {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px;
  padding: 34px 32px; max-width: 420px; width: 100%; text-align: center;
  box-shadow: 0 20px 50px -24px rgba(19,30,27,.22);
}
.price-card .plan { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.price-card .amount { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 2px; }
.price-card .amount span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 22px 0; text-align: left; display: flex; flex-direction: column; gap: 11px; }
.price-card li { padding-left: 28px; position: relative; color: var(--ink-soft); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price-card .nav-btn { width: 100%; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 1.08rem;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 1.5rem; transition: transform .2s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding: 0 0 22px; max-width: 66ch; }

/* CTA-полоса */
.cta-band { background: var(--dark); color: var(--dark-ink); border: 1px solid var(--dark-line); border-radius: 20px; padding: clamp(36px, 6vw, 64px); text-align: center; }
.cta-band h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; color: #f3f8f5; margin-bottom: 12px; }
.cta-band p { color: var(--dark-muted); max-width: 52ch; margin: 0 auto 26px; }

/* Реферальный оффер (двусторонний: другу / вам) */
.ref-offer { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 48px); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px, 4vw, 44px); }
.ref-copy h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin: 12px 0 12px; }
.ref-copy p { color: var(--muted); max-width: 46ch; margin-bottom: 22px; }
.ref-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ref-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; background: var(--bg); }
.ref-card.accent { background: var(--accent-wash); border-color: color-mix(in srgb, var(--accent) 26%, var(--line)); }
.ref-tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ref-card.accent .ref-tag { color: var(--accent-deep); }
.ref-num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 6px; }
.ref-card.accent .ref-num { color: var(--accent-deep); }
.ref-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Учебная (long-read) */
.article { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) 0; }
.article .eyebrow { display: block; margin-bottom: 14px; }
.article h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 16px; }
.article .lead { font-size: 1.2rem; color: var(--muted); margin-bottom: 36px; }
.article h2 { font-size: 1.55rem; font-weight: 700; margin: 44px 0 14px; }
.article h3 { font-size: 1.2rem; font-weight: 700; margin: 28px 0 10px; }
.article p { color: var(--ink-soft); margin-bottom: 16px; }
.article ul { color: var(--ink-soft); padding-left: 22px; margin-bottom: 16px; }
.article li { margin-bottom: 7px; }
.article .callout { background: var(--accent-wash); border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line)); border-radius: 12px; padding: 18px 22px; margin: 26px 0; color: var(--ink-soft); }
.article .callout strong { color: var(--accent-deep); }
.article strong { color: var(--ink); }

/* ---------- Появление при скролле (только при активном JS) ---------- */
/* Без JS блоки видимы по умолчанию — контент не пропадает (прогресс. улучшение). */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
/* Лёгкий каскад внутри сеток (Emil — stagger 30–80ms). */
.features > .reveal:nth-child(2), .steps > .reveal:nth-child(2) { transition-delay: 60ms; }
.features > .reveal:nth-child(3), .steps > .reveal:nth-child(3) { transition-delay: 120ms; }

/* Ховер-подъём только на устройствах с настоящим ховером (Emil — не дёргать на тач). */
@media (hover: hover) and (pointer: fine) {
  .feature:hover { transform: translateY(-3px); box-shadow: 0 12px 30px -12px rgba(19,30,27,.18); border-color: var(--line-strong); }
  .sector-card:hover { border-color: var(--line-strong); }
}

/* prefers-reduced-motion: гасим движение, оставляем непрозрачность/цвет. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .nav-btn:active, .nav-ghost:active, .btn:active, .feature:hover { transform: none !important; }
}

/* ============================================================================
   Функциональные страницы (вход/кабинет/админка) — на той же палитре.
   ============================================================================ */
.auth { max-width: 420px; margin: 0 auto; padding: clamp(40px, 7vw, 72px) 20px; }
.auth h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 20px; }
.auth-hint { color: var(--muted); margin: -8px 0 18px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--muted); }
.form input { padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; color: var(--ink); background: var(--surface); }
.form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form button { margin-top: 6px; }
.form-error { background: #fdeceb; border: 1px solid #f3c4c1; color: #a12722; border-radius: 10px; padding: 11px 14px; margin-bottom: 16px; font-size: 0.92rem; }
.auth-alt { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 14px; }
.notice { text-align: center; }
.notice-msg { color: var(--muted); margin-bottom: 22px; }

.account { max-width: 660px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) 20px; }
.account h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.card h2 { font-size: 1.08rem; font-weight: 700; margin-bottom: 12px; }
.kv { display: flex; justify-content: space-between; gap: 12px; margin: 7px 0; font-size: 0.95rem; }
.kv span { color: var(--muted); }
.muted { color: var(--muted); }
.ok { color: #128a5b; }
.dev-btn { background: var(--gold-wash); border: 1px dashed var(--gold); color: var(--gold); border-radius: 9px; padding: 8px 14px; cursor: pointer; font: inherit; font-size: 0.85rem; }
.ref-link { font-family: var(--mono); font-size: 0.8rem; word-break: break-all; text-align: right; }
.devices { list-style: none; padding: 0; margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.devices li { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 0.95rem; }
.devices form { margin: 0; }

.legal { max-width: 720px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) 20px; }
.legal h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: 8px; }
.legal h2 { font-size: 1.15rem; font-weight: 700; margin: 24px 0 8px; }
.legal p { color: var(--ink-soft); margin-bottom: 12px; max-width: 66ch; }

.admin { max-width: 1040px; margin: 0 auto; padding: clamp(28px, 4vw, 48px) 20px; }
.admin h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 18px; }
.admin-sub { font-size: 1.1rem; font-weight: 700; margin: 8px 0 10px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px; }
.stat span { display: block; color: var(--muted); font-size: 0.8rem; margin-bottom: 6px; }
.stat b { font-size: 1.5rem; font-family: var(--mono); font-weight: 700; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.admin-table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 0.9rem; background: var(--surface); }
.admin-table th { text-align: left; padding: 11px 12px; background: var(--surface-2); color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); font-size: 0.8rem; }
.admin-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .actions { display: flex; gap: 6px; }
.admin-table .actions form { margin: 0; }
.admin-table .actions button { cursor: pointer; font: inherit; font-size: 0.78rem; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; color: var(--ink); }
.admin-table .actions button:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 40px clamp(18px, 4vw, 40px); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-brand .brand { font-size: 1.1rem; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 10px; max-width: 34ch; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.footer-col a { display: block; color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 8px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px clamp(18px, 4vw, 40px); }
.footer-bottom .footer-inner-b { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.84rem; color: var(--muted); }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .ref-offer { grid-template-columns: 1fr; }
  /* Сброс бенто-спанов: иначе span 4/2 плодит неявные колонки и ломает сетку. */
  .feature, .feature.f-lg, .feature.f-sm { grid-column: auto; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .features, .steps, .sectors-grid, .stats { grid-template-columns: 1fr; }
  .site-nav { gap: 4px 12px; }
}
