/* ============================================================
   SEBEKON chat — промо-лендинг
   Построен на действующих токенах продукта (colors_and_type.css)
   ============================================================ */

:root {
  /* brand */
  --brand: #2A6FDB;
  --brand-hover: #245FBE;
  --brand-press: #1F54A8;
  --brand-soft: #E7EFFB;
  --brand-softer: #F0F5FE;
  --brand-border: #5A8FE0;
  --brand-grad: #4082E2;

  /* neutrals — warm slate */
  --n-0:#FFFFFF; --n-25:#FAFBFC; --n-50:#F4F5F7; --n-75:#ECEFF3;
  --n-100:#E9EBEF; --n-200:#DCDFE5; --n-300:#C2C7D0; --n-400:#9AA1AD;
  --n-500:#6F7787; --n-600:#525A6B; --n-700:#3B414F; --n-800:#262A35;
  --n-900:#16181F; --n-950:#0B0C11;

  /* semantic (light) */
  --bg: var(--n-25);
  --surface: var(--n-0);
  --surface-2: var(--n-50);
  --fg-1: var(--n-900);
  --fg-2: var(--n-600);
  --fg-3: #5F6776;
  --line: var(--n-100);
  --line-strong: var(--n-200);

  /* status */
  --success:#1F8A5B; --success-soft:#DEF2E7; --success-line:#BFE3CE;
  --warn:#B5651F; --warn-soft:#FBECCF;
  --danger:#C0392E; --danger-soft:#FADEDB;
  --violet:#5B3FB6; --violet-soft:#EFEAFA; --violet-line:#D8CCF4;

  /* office brand chips */
  --excel:#1D7044; --pdf:#D5402B;

  /* shadows */
  --sh-subtle: 0 1px 2px rgba(20,30,60,.06);
  --sh-card: 0 2px 8px rgba(20,30,60,.05), 0 1px 2px rgba(20,30,60,.04);
  --sh-pop: 0 12px 32px rgba(20,30,60,.14), 0 2px 6px rgba(20,30,60,.06);
  --sh-frame: 0 24px 64px rgba(20,30,60,.16), 0 6px 16px rgba(20,30,60,.08);
  --sh-brand: 0 8px 24px rgba(42,111,219,.30);

  /* type */
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* layout */
  --maxw: 1200px;
  --gutter: 24px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,h2,h3,h4 { margin: 0; font-weight: 700; letter-spacing: -0.022em; line-height: 1.08; color: var(--fg-1); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(42,111,219,.22); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content:""; width: 18px; height: 1.5px; background: currentColor; opacity:.6; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(30px, 4.2vw, 44px); margin: 14px 0 0; }
.section-head .lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--fg-2); margin-top: 16px; line-height: 1.5; }

.mono { font-family: var(--font-mono); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  padding: 13px 22px; border-radius: 12px; border: 1.5px solid transparent;
  cursor: pointer; transition: all .18s var(--ease); white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: 0 12px 30px rgba(42,111,219,.38); }
.btn-primary:active { transform: translateY(0); background: var(--brand-press); }
.btn-ghost { background: var(--surface); color: var(--fg-1); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand-border); color: var(--brand); background: var(--brand-softer); }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 13px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all .25s var(--ease);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; transition: height .25s var(--ease);
}
.site-header.scrolled {
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled .bar { height: 62px; }

.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--fg-1); }
.logo .mark { width: 34px; height: 34px; color: var(--brand); flex: none; }
.logo .word { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.logo .word b { font-weight: 800; }
.logo .word .lt { font-weight: 600; color: var(--fg-2); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 14.5px; font-weight: 500; color: var(--fg-2);
  padding: 9px 14px; border-radius: 9px; transition: all .15s var(--ease);
}
.nav a:hover { color: var(--fg-1); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; background: none; border: none; padding: 8px; color: var(--fg-1); cursor: pointer; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(120px, 16vw, 168px); padding-bottom: clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { max-width: 560px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 62px); line-height: 1.02; letter-spacing: -.03em; }
.hero h1 .accent { color: var(--brand); }
.hero .sub { font-size: clamp(17px, 1.7vw, 20px); color: var(--fg-2); margin-top: 24px; line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 30px; font-size: 13.5px; color: var(--fg-3); }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 15px; height: 15px; color: var(--success); }
.trust .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--n-300); }

/* hero visual: desktop + phone overlap */
.hero-visual { position: relative; }
.hero-visual .desktop {
  border-radius: 14px; box-shadow: var(--sh-frame);
  border: 1px solid var(--line); overflow: hidden; width: 100%; height: auto;
}
.hero-visual .phone {
  position: absolute; width: 27%; height: auto; right: -3%; bottom: -10%;
  filter: drop-shadow(0 24px 40px rgba(20,30,60,.24));
}
.hero-float {
  position: absolute; left: -4%; top: 16%; z-index: 3;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--sh-pop); padding: 13px 16px;
  display: flex; align-items: center; gap: 11px; max-width: 220px;
}
.hero-float .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.hero-float .ico svg { width: 18px; height: 18px; }
.hero-float .tx { font-size: 12.5px; line-height: 1.3; }
.hero-float .tx b { display:block; font-weight: 700; font-size: 13px; }
.hero-float .tx span { color: var(--fg-3); }

/* ---------- generic cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 26px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--sh-pop); border-color: var(--line-strong); }

.feat-ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 16px;
}
.feat-ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
.card .ct { color: var(--fg-2); font-size: 14.5px; margin-top: 8px; line-height: 1.5; }

.grid-12 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------- bridge ---------- */
.bridge { text-align: center; }
.bridge .quote {
  font-size: clamp(22px, 3vw, 32px); font-weight: 600; line-height: 1.32;
  letter-spacing: -.02em; max-width: 920px; margin: 0 auto; color: var(--fg-1);
}
.bridge .quote em { color: var(--brand); font-style: normal; }

/* ---------- DARK sections ---------- */
.section--dark {
  --bg:#0B0C11; --surface:#16181F; --surface-2:#1C202B;
  --fg-1:#ECEEF3; --fg-2:#A7AEBE; --fg-3:#8B92A4;
  --line:#232836; --line-strong:#2B3140;
  --brand:#4D8AE6; --brand-soft:#14213A; --brand-softer:#162542; --brand-border:#2A4D80;
  --violet:#A38AEE; --violet-soft:#251D3F; --violet-line:#3D2F66;
  --success:#3DC78F; --success-soft:#143727;
  background: var(--bg); color: var(--fg-1);
}
.section--dark .eyebrow { color: var(--brand); }
.section--dark .card { background: var(--surface); border-color: var(--line); }

/* big feature cards (Сверх Telegram) */
.big-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.big-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.big-card .body { padding: 26px 26px 22px; }
.big-card .num { font-family: var(--font-mono); font-size: 12px; color: var(--brand); font-weight: 600; }
.big-card h3 { font-size: 20px; margin-top: 12px; }
.big-card .ct { font-size: 14.5px; color: var(--fg-2); margin-top: 10px; line-height: 1.5; }
.big-card .visual { margin-top: auto; background: var(--surface-2); border-top: 1px solid var(--line); padding: 18px; }
.big-card--fill .visual { flex: 1; display: flex; padding: 0; background: #0B0C11; }
.big-card--fill .visual img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }

/* ---------- editable table mock ---------- */
.tbl {
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 12px; overflow: hidden; font-size: 13px; box-shadow: var(--sh-subtle);
}
.tbl .cap-row { display:flex; align-items:center; justify-content:space-between; padding: 9px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.tbl .cap-row span { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-3); font-weight: 600; }
.tbl .trow { display: flex; flex-direction: column; gap: 9px; padding: 12px 14px; border-top: 1px solid var(--line); }
.tbl .trow:first-of-type { border-top: none; }
.tbl .nm { font-weight: 600; color: var(--fg-1); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl .nm small { color: var(--fg-3); font-weight: 400; }
.tbl .rmeta { display: flex; align-items: center; gap: 9px; }
.tbl .price { font-variant-numeric: tabular-nums; color: var(--fg-2); font-size: 12.5px; }
.tbl .stepper { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 2px 4px; }
.tbl .stepper b { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.tbl .stepper .s { width: 20px; height: 20px; display: grid; place-items: center; color: var(--fg-2); border-radius: 5px; font-size: 14px; }
.tbl .trow.editing { background: var(--brand-softer); }
.tbl .trow.editing .stepper { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(42,111,219,.14); background: var(--surface); }
.tbl .pick { width: 30px; height: 28px; display: grid; place-items: center; color: var(--brand); border: 1.5px solid var(--brand-border); background: var(--surface); border-radius: 8px; }
.tbl .pick svg { width: 14px; height: 14px; }

/* services concept */
.svc-list { display: flex; flex-direction: column; gap: 12px; }
.svc-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.svc-row .si { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.svc-row .sn { font-weight: 600; font-size: 13px; }
.svc-row .sm { font-size: 11px; color: var(--fg-3); font-family: var(--font-mono); }
.svc-row .badge { margin-left: auto; font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 20px; }
.badge-ok { background: var(--success-soft); color: var(--success); }

/* ---------- ecosystem diagram ---------- */
.eco { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center; margin-top: 12px; }
.eco-core {
  background: linear-gradient(160deg, var(--brand), var(--brand-press));
  color: #fff; border-radius: 22px; padding: 30px 26px; text-align: center;
  box-shadow: var(--sh-brand); position: relative;
}
.eco-core .mk { width: 46px; height: 46px; margin: 0 auto 14px; color: #fff; }
.eco-core h3 { color:#fff; font-size: 20px; }
.eco-core p { color: rgba(255,255,255,.82); font-size: 13px; margin-top: 8px; }
.eco-mods { display: flex; flex-direction: column; gap: 16px; }
.eco-mod { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.eco-mod .mi { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.eco-mod h4 { font-size: 15px; font-weight: 700; }
.eco-mod p { font-size: 13px; color: var(--fg-2); margin-top: 5px; line-height: 1.45; }
.eco-note { text-align: center; color: var(--fg-3); font-size: 14px; margin-top: 28px; max-width: 720px; margin-inline: auto; }

/* connector */
.eco-conn { width: 56px; height: 100%; min-height: 200px; position: relative; }

/* ---------- scenario ribbon ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; position: relative; }
.flow-step { padding: 0 16px; position: relative; }
.flow-step:not(:last-child)::after {
  content:""; position: absolute; top: 27px; right: -1px; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--brand-border), var(--line)); z-index: 0;
}
.flow-step .n { width: 54px; height: 54px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--brand); position: relative; z-index: 1; box-shadow: var(--sh-subtle); }
.flow-step .n svg { width: 24px; height: 24px; }
.flow-step h4 { font-size: 15px; margin-top: 18px; font-weight: 700; }
.flow-step p { font-size: 13.5px; color: var(--fg-2); margin-top: 7px; line-height: 1.45; }

/* ---------- steps (launch) ---------- */
.steps3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.step3 { position: relative; padding-top: 8px; }
.step3 .bn { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--brand); }
.step3 h3 { font-size: 19px; margin-top: 12px; }
.step3 p { color: var(--fg-2); font-size: 14.5px; margin-top: 9px; line-height: 1.5; }

/* ---------- audience ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.aud { display: flex; gap: 14px; align-items: flex-start; }
.aud .ai { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.aud .ai svg { width: 21px; height: 21px; }
.aud h4 { font-size: 16px; font-weight: 700; }
.aud p { font-size: 14px; color: var(--fg-2); margin-top: 5px; line-height: 1.45; }

/* ---------- privacy list ---------- */
.priv-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px 40px; }
.priv { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); }
.priv .pi { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.priv .pi svg { width: 20px; height: 20px; }
.priv h4 { font-size: 16px; font-weight: 700; }
.priv p { font-size: 14px; color: var(--fg-2); margin-top: 5px; line-height: 1.5; }

/* ---------- admin block ---------- */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: center; }
.admin-list { display: grid; gap: 2px; }
.admin-list .ar { display: flex; gap: 13px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.admin-list .ar svg { width: 19px; height: 19px; color: var(--brand); flex: none; }
.admin-list .ar span { font-size: 15px; font-weight: 500; }
.admin-shot { border-radius: 14px; overflow: hidden; box-shadow: var(--sh-frame); border: 1px solid var(--line); }

/* ---------- developers ---------- */
.dev-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px,5vw,56px); align-items: center; }
.code-card {
  background: #0E1018; border: 1px solid #232836; border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--sh-pop);
}
.code-card .ch { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid #232836; }
.code-card .ch .dt { width: 11px; height: 11px; border-radius: 50%; }
.code-card .ch .fn { margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: #8B92A4; }
.code-card pre { margin: 0; padding: 20px; overflow-x: auto; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: #C5CBD6; }
.code-card .k { color: #4D8AE6; } .code-card .s { color: #3DC78F; } .code-card .c { color: #6E7689; } .code-card .f { color: #A38AEE; }
.dev-points { display: grid; gap: 18px; }
.dev-pt h4 { font-size: 16px; font-weight: 700; display:flex; gap:9px; align-items:center; }
.dev-pt h4 svg { width: 18px; height: 18px; color: var(--brand); }
.dev-pt p { font-size: 14px; color: var(--fg-2); margin-top: 6px; line-height: 1.5; padding-left: 27px; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; padding-left: 27px; }
.stack code { font-family: var(--font-mono); font-size: 12px; background: var(--surface-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 7px; color: var(--fg-2); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-card); background: var(--surface); }
.shot img { width: 100%; display: block; }
.shot .cap { padding: 12px 15px; font-size: 12.5px; color: var(--fg-3); border-top: 1px solid var(--line); display:flex; align-items:center; gap:7px; }
.shot.wide { grid-column: span 4; }
.shot.tall { grid-column: span 2; }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  background: none; border: none; cursor: pointer; padding: 24px 4px; text-align: left;
  font-family: var(--font-sans); font-size: clamp(16px,1.7vw,18px); font-weight: 600; color: var(--fg-1); }
.faq-q .chev { width: 22px; height: 22px; color: var(--fg-3); transition: transform .25s var(--ease); flex: none; }
.faq-item.open .faq-q .chev { transform: rotate(45deg); color: var(--brand); }
.faq-a { display: none; }
.faq-item.open .faq-a { display: block; }
.faq-a .inner { padding: 0 4px 24px; color: var(--fg-2); font-size: 15.5px; line-height: 1.6; max-width: 92%; }

/* ---------- CTA ---------- */
.cta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(32px,5vw,56px); box-shadow: var(--sh-pop); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,56px); align-items: start; }
.cta h2 { font-size: clamp(28px,3.6vw,40px); }
.cta .lede { color: var(--fg-2); font-size: 17px; margin-top: 14px; line-height: 1.5; }
.cta .alt { margin-top: 26px; font-size: 14px; color: var(--fg-3); }
.cta .alt a { color: var(--brand); font-weight: 600; }
.form { display: grid; gap: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--fg-2); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-sans); font-size: 15px; color: var(--fg-1);
  background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: 11px;
  padding: 13px 15px; transition: all .15s var(--ease); resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(42,111,219,.14); }
.form .btn { width: 100%; }
.form-done { display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 40px 20px; }
.form-done .ck { width: 56px; height: 56px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; }
.form-done .ck svg { width: 28px; height: 28px; }
.form-done h3 { font-size: 21px; }
.form-done p { color: var(--fg-2); font-size: 15px; }
.cta.sent .form { display: none; }
.cta.sent .form-done { display: flex; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer .tag { color: var(--fg-2); font-size: 14.5px; margin-top: 14px; max-width: 320px; line-height: 1.5; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-size: 14.5px; color: var(--fg-2); }
.footer-nav a:hover { color: var(--brand); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--fg-3); }
.footer-bottom .mono { font-size: 12px; }

/* ---------- reveal ----------
   NB: kept always-visible. (Transition/animation-based scroll reveals freeze
   in this preview's non-advancing animation timeline, which would leave content
   invisible. Content visibility must never depend on a transition completing.) */
.reveal, .has-js .reveal, .has-js .reveal.in { opacity: 1; transform: none; }
@media print { .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- mobile nav drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 200; display: none; }
.drawer.open { display: block; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(11,12,17,.4); backdrop-filter: blur(2px); }
.drawer .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(82vw, 340px); background: var(--surface); padding: 24px; box-shadow: var(--sh-frame); display: flex; flex-direction: column; gap: 6px; }
.drawer .panel .close { align-self: flex-end; background: none; border: none; padding: 8px; color: var(--fg-1); cursor: pointer; }
.drawer .panel a { padding: 14px 12px; border-radius: 10px; font-weight: 600; font-size: 16px; color: var(--fg-1); }
.drawer .panel a:hover { background: var(--surface-2); }
.drawer .panel .btn { margin-top: 12px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-12 { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .shot.wide { grid-column: span 4; } .shot.tall { grid-column: span 2; }
}
@media (max-width: 880px) {
  .nav { display: none; }
  .header-actions .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 36px; max-width: 560px; }
  .big-grid { grid-template-columns: 1fr; }
  .eco { grid-template-columns: 1fr; }
  .eco-conn { display: none; }
  .flow { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .flow-step::after { display: none; }
  .steps3 { grid-template-columns: 1fr; gap: 28px; }
  .aud-grid { grid-template-columns: 1fr 1fr; }
  .priv-grid { grid-template-columns: 1fr; gap: 0; }
  .admin-grid, .dev-grid, .cta-grid { grid-template-columns: 1fr; }
  .dev-grid .code-card { order: 2; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .shot.wide, .shot.tall { grid-column: span 2; }
}
@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .grid-12 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { padding: 20px; }
  .feat-ico { width: 40px; height: 40px; }
  .flow { grid-template-columns: 1fr; }
  .aud-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .shot.wide, .shot.tall { grid-column: span 1; }
  .hero-float { display: none; }
  .hero .btn { flex: 1; }
}
