﻿/* =========================================================
   NeuralFrame — Design System v2
   Soft tech · Warm palette · Bento · Mono accents
   ========================================================= */

:root {
  /* --- Surface (тёплые пастели) --- */
  --bg:          #F2ECE0;            /* основной фон — тёплый кремовый */
  --bg-raise:    #EDE5D4;            /* приподнятые секции */
  --bg-deep:     #1E1A15;            /* глубокий тёмный (для инверсных блоков) */
  --surface:     #FBF7EE;            /* карточки */
  --surface-2:   #F8F1E0;            /* вторичные карточки */
  --line:        #E1D7C2;            /* тонкие линии */
  --line-strong: #C9BCA1;

  /* --- Ink / текст --- */
  --ink:         #1A1815;            /* основной текст */
  --ink-2:       #4A4338;            /* вторичный текст */
  --ink-3:       #8A7F6C;            /* приглушённый */

  /* --- Accents --- */
  --accent:      #E85C2C;            /* терракотовый — основной акцент */
  --accent-soft: #F4C9B6;
  --accent-2:    #B8A4E3;            /* лавандовый — второй акцент */
  --accent-2-soft: #E7DFF5;
  --accent-3:    #7FB39B;            /* шалфей — третий, для статусов */
  --accent-3-soft: #D4E4DB;

  /* --- Type --- */
  --f-display: 'Vetrino', 'Times New Roman', serif;
  --f-sans: 'AA Stetica', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-mono:    'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* --- Motion --- */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* --- Shadow --- */
  --sh-sm: 0 1px 2px rgba(40, 30, 20, .06);
  --sh-md: 0 4px 20px -8px rgba(40, 30, 20, .12);
  --sh-lg: 0 20px 60px -20px rgba(40, 30, 20, .18);

  /* --- Radius --- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-sans);
  font-weight: 300;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* Utilities --------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

.mono { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: .02em; }

.mono-tag {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: .04em;
  text-transform: lowercase;
  color: var(--ink-3);
}

/* Typography -------------------------------------------------------------- */

h1, h2, h3, h4 { font-weight: 500; letter-spacing: -.02em; line-height: 1.05; color: var(--ink); }

h1 { font-size: clamp(2.8rem, 7vw, 5.8rem); font-family: var(--f-display); font-weight: 400; letter-spacing: -.03em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-family: var(--f-display); font-weight: 400; letter-spacing: -.025em; line-height: 1.08; }
h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; }
h4 { font-size: 0.82rem; font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }

em { font-style: italic; color: var(--accent); }

p { color: var(--ink-2); line-height: 1.6; text-wrap: pretty; }

/* Section tag ------------------------------------------------------------- */

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: lowercase;
  letter-spacing: .05em;
  color: var(--ink-3);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface);
}

.section-tag::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 100px;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .35s var(--ease);
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -.005em;
}

.btn-sm { padding: 10px 16px; font-size: 0.85rem; }
.btn-lg { padding: 18px 28px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--ink);
  color: var(--surface);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}

/* Navbar ------------------------------------------------------------------ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.navbar.is-scrolled {
  border-color: var(--line);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--ink);
}
.logo-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--ink);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.logo-mark::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, var(--accent) 0%, transparent 60%);
  opacity: .9;
}
.logo-mark-inner {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--surface);
  z-index: 2;
  position: relative;
  box-shadow: 0 0 8px rgba(255,255,255,.6);
}
.logo-text { font-family: var(--f-display); }
.logo-dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--ink-2);
  transition: color .2s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-login { font-size: 0.92rem; color: var(--ink-2); transition: color .2s; }
.nav-login:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 32px; height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  width: 20px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s;
}

/* =========================================================
   HERO — Bento
   ========================================================= */

.hero {
  padding: 40px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--ink-2);
  width: fit-content;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-3);
  position: relative;
}
.hero-badge-dot::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: var(--accent-3);
  opacity: .4;
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .4; }
  50% { transform: scale(1.4); opacity: 0; }
}

.hero-path {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  letter-spacing: .04em;
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -.035em;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: .98;
  margin-bottom: 28px;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-title .accent2 { color: var(--accent-2); font-style: italic; }

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink-2);
  max-width: 540px;
  line-height: 1.55;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Bento grid --- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 120px;
  gap: 16px;
  margin-top: 72px;
}

.bento-card {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.bento-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }

.bento-label {
  position: absolute;
  top: 20px; left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  letter-spacing: .04em;
  z-index: 3;
}
.bento-label::before {
  content: ''; width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* Card sizes */
.bento-a { grid-column: span 5; grid-row: span 3; background: var(--ink); color: var(--surface); }
.bento-b { grid-column: span 4; grid-row: span 3; background: var(--accent); color: white; }
.bento-c { grid-column: span 3; grid-row: span 3; background: var(--accent-2-soft); }
.bento-d { grid-column: span 3; grid-row: span 2; background: var(--surface-2); }
.bento-e { grid-column: span 5; grid-row: span 2; }
.bento-f { grid-column: span 4; grid-row: span 2; background: var(--accent-3-soft); }

/* Card A — big demo */
.bento-a {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px;
}
.bento-a .bento-label { color: rgba(255,255,255,.5); }
.bento-a h3 {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 400;
  color: var(--surface);
  margin-top: 52px;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.bento-a .demo-visual {
  margin-top: auto;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 100%;
  padding-top: 20px;
}
.demo-chip {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,.75);
}
.demo-chip.active { background: var(--accent); border-color: var(--accent); color: white; }

/* Card B — stat */
.bento-b {
  display: flex; flex-direction: column; justify-content: space-between;
}
.bento-b .bento-label { color: rgba(255,255,255,.7); }
.bento-b .big-stat {
  font-family: var(--f-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .95;
  margin-top: 40px;
}
.bento-b .stat-foot {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,.8);
  margin-top: 8px;
}

/* Card C — categories */
.bento-c { display: flex; flex-direction: column; justify-content: space-between; }
.bento-c h4 { color: var(--ink); margin-top: 44px; }
.bento-c .cat-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 12px;
}
.bento-c .cat-chips span {
  padding: 6px 10px;
  background: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 100px;
  font-size: 0.7rem;
  color: var(--ink-2);
  font-family: var(--f-mono);
}

/* Card D — speed */
.bento-d { display: flex; flex-direction: column; justify-content: flex-end; }
.bento-d .big-num {
  font-family: var(--f-display);
  font-size: 3.5rem;
  line-height: 1;
  letter-spacing: -.04em;
}
.bento-d .big-num span { color: var(--accent); font-style: italic; }
.bento-d p { font-size: 0.82rem; margin-top: 4px; }

/* Card E — workflow */
.bento-e {
  display: flex; align-items: center; gap: 14px;
  padding: 22px;
}
.workflow-step {
  flex: 1;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--line);
  min-height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
}
.workflow-step .mono-num {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--ink-3);
}
.workflow-step strong {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.1rem;
  display: block;
  margin-top: 14px;
  letter-spacing: -.01em;
}
.workflow-arrow { color: var(--ink-3); font-family: var(--f-mono); }

/* Card F — price teaser */
.bento-f { display: flex; flex-direction: column; justify-content: space-between; }
.bento-f h4 { color: var(--ink); margin-top: 44px; }
.bento-f .price-line {
  display: flex; align-items: baseline; gap: 8px;
  margin-top: 6px;
}
.bento-f .price-line strong {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 2.2rem;
  letter-spacing: -.02em;
}
.bento-f .price-line span { font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-2); }

/* =========================================================
   SECTION — shared
   ========================================================= */

.section {
  padding: 120px 0;
  position: relative;
}

.section-dark {
  background: var(--bg-deep);
  color: var(--surface);
}
.section-dark h2,
.section-dark h3 { color: var(--surface); }
.section-dark p { color: rgba(245, 239, 224, .7); }
.section-dark .section-tag {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.65);
}

.section-raise { background: var(--bg-raise); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head-text { max-width: 560px; }
.section-head h2 { margin-top: 16px; }
.section-head p { margin-top: 20px; font-size: 1.05rem; color: var(--ink-2); max-width: 480px; }
.section-head-side {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--ink-3);
  text-align: right;
  line-height: 1.8;
}
.section-head-side span { display: block; }

/* =========================================================
   HOW — Three steps (horizontal filmstrip)
   ========================================================= */

.how-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}

.how-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
  min-height: 360px;
  position: relative;
  overflow: hidden;
  transition: all .5s var(--ease);
}
.how-card:hover { border-color: var(--ink); transform: translateY(-4px); }

.how-card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.how-num {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--accent);
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -.04em;
}
.how-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-mono);
  color: var(--ink-2);
}
.how-visual {
  flex: 1;
  margin: 8px -8px 0;
  background: var(--surface-2);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
  min-height: 100px;
  display: grid; place-items: center;
}

/* visuals */
.viz-upload {
  background: repeating-linear-gradient(135deg, var(--surface) 0 10px, var(--surface-2) 10px 20px);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 8px;
}
.viz-upload .mono-tag { color: var(--ink-2); }
.viz-upload .drop-line {
  width: 60%; height: 1px;
  background: repeating-linear-gradient(to right, var(--ink-3) 0 4px, transparent 4px 8px);
}

.viz-scenes { display: flex; gap: 6px; padding: 16px; flex-wrap: wrap; justify-content: center; }
.viz-scene-chip {
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--ink-2);
}
.viz-scene-chip.on { background: var(--accent); color: white; border-color: var(--accent); }

.viz-result {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-2-soft));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--ink);
  position: relative;
}
.viz-result::before {
  content: '';
  position: absolute; inset: 12px;
  border: 1px dashed rgba(26,24,21,.25);
  border-radius: var(--r-sm);
}

.how-card h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; letter-spacing: -.01em; }
.how-card p { font-size: 0.92rem; }

.how-cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.how-cta-note { color: var(--ink-3); }

/* =========================================================
   FEATURES — asymmetric cards
   ========================================================= */

.features-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

/* Compact 5-card layout: 3 cards on row 1, 2 wider cards on row 2 */
.features-compact {
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto;
  gap: 14px;
}
.features-compact .fcard { grid-column: span 2; padding: 22px; gap: 12px; }
.features-compact .fcard:nth-child(4),
.features-compact .fcard:nth-child(5) { grid-column: span 3; }

.fcard {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex; flex-direction: column;
  gap: 18px;
  transition: all .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.section-dark .fcard:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.2);
}

.fcard-hero {
  grid-row: span 2;
  padding: 40px;
  background: linear-gradient(160deg, rgba(232,92,44,.18), rgba(255,255,255,.02));
  border-color: rgba(232,92,44,.35);
}
.fcard-tag {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.fcard-tag-hot {
  color: #fff;
  background: var(--accent);
  padding: 3px 8px;
  border-radius: 100px;
  align-self: flex-start;
}
.fcard h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; letter-spacing: -.01em; }
.features-compact .fcard h3 { font-size: 1.35rem; }
.fcard-hero h3 { font-size: 2.2rem; }
.fcard p { font-size: 0.95rem; line-height: 1.55; }
.features-compact .fcard p { font-size: 0.86rem; line-height: 1.5; color: rgba(255,255,255,.7); }

.fcard-visual {
  margin: 4px -4px;
  height: 130px;
  border-radius: var(--r-md);
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.features-compact .fcard:nth-child(4) .fcard-visual,
.features-compact .fcard:nth-child(5) .fcard-visual { height: 160px; }
.fcard-hero .fcard-visual {
  height: 260px;
  background: repeating-linear-gradient(45deg,
    rgba(232,92,44,.15) 0 14px,
    rgba(232,92,44,.05) 14px 28px);
}
.fcard-visual::after {
  content: attr(data-label);
  position: absolute;
  bottom: 10px; left: 10px;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .02em;
}

/* Distinct preview backgrounds per module */
.viz-cards {
  background:
    linear-gradient(135deg, rgba(232,92,44,.18), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 22%, transparent 22% 25%),
    #1a1612;
}
.viz-cards::before {
  content:''; position:absolute; inset: 14px 14px 32px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.02)),
    radial-gradient(circle at 30% 30%, rgba(232,92,44,.25), transparent 55%);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.1);
}
.viz-mix {
  background: #1a1612;
}
.viz-mix::before {
  content:''; position:absolute; inset: 10px 10px 30px;
  background-image:
    linear-gradient(135deg, rgba(168, 152, 120, .35), rgba(232,92,44,.2)),
    linear-gradient(135deg, rgba(127,179,155,.4), rgba(58,90,77,.4)),
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.04)),
    linear-gradient(135deg, rgba(58,52,42,.6), rgba(26,24,21,.6));
  background-size: 36% 60%, 36% 60%, 36% 60%, 36% 60%;
  background-position: 0% 0%, 35% 0%, 70% 0%, 17% 100%;
  background-repeat: no-repeat;
  border-radius: 6px;
}
.viz-mix::after { mix-blend-mode: difference; }
.viz-social {
  background:
    linear-gradient(135deg, rgba(127,179,155,.18), transparent 60%),
    #1a1612;
}
.viz-social::before {
  content:''; position:absolute; inset: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow:
    14px 0 0 -1px rgba(255,255,255,.04),
    -14px 0 0 -1px rgba(255,255,255,.04);
  width: calc(40% - 0px); margin: 0 auto;
  left: 0; right: 0;
}
.viz-ads {
  background:
    radial-gradient(circle at 30% 50%, rgba(232,92,44,.28), transparent 55%),
    radial-gradient(circle at 75% 50%, rgba(184,164,227,.18), transparent 55%),
    #1a1612;
}
.viz-ads::before {
  content:'A / B'; position:absolute; inset:0;
  display:grid; place-items:center;
  font-family: var(--f-display); font-size: 2.6rem; letter-spacing: .06em;
  color: rgba(255,255,255,.18);
}
.viz-fit {
  background:
    linear-gradient(160deg, rgba(184,164,227,.22), transparent 70%),
    #1a1612;
}
.viz-fit::before {
  content:''; position:absolute; left:50%; top:14px; bottom:30px; width:46px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 14%, rgba(255,255,255,.25) 0 9px, transparent 10px),
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.05));
  border-radius: 22px 22px 6px 6px;
  border: 1px solid rgba(255,255,255,.18);
}

.fcard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.fcard-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,.75);
  padding: 6px 0;
  border-top: 1px dashed rgba(255,255,255,.1);
}
.fcard-list li::before { content: '+'; color: var(--accent); font-family: var(--f-mono); }

.fcard-cost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,.85);
  width: fit-content;
}
.fcard-cost strong { color: var(--accent); font-weight: 500; }

/* =========================================================
   CATEGORIES — marquee + grid
   ========================================================= */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.cat-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 20px;
  display: flex; flex-direction: column;
  gap: 14px;
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.cat-tile:hover {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
  transform: translateY(-2px);
}
.cat-tile:hover .cat-meta { color: rgba(255,255,255,.5); }

.cat-meta {
  display: flex; justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  transition: color .3s var(--ease);
}

.cat-name {
  font-family: var(--f-display);
  font-size: 1.4rem;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.cat-count {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  opacity: .6;
  margin-top: auto;
}

/* =========================================================
   COMPARE TABLE
   ========================================================= */

.compare {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255,255,255,.03);
}
.compare-head, .compare-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 0;
  align-items: center;
}
.compare-head {
  padding: 20px 28px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.5);
}
.compare-head .nf { color: var(--accent); }
.compare-row {
  padding: 22px 28px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 0.95rem;
  transition: background .25s;
}
.compare-row:hover { background: rgba(255,255,255,.02); }
.compare-row:last-child { border-bottom: none; }
.compare-row > span:first-child { color: rgba(255,255,255,.75); }
.good { color: #B4DDBC; font-family: var(--f-mono); font-size: 0.88rem; }
.good::before { content: '→ '; color: var(--accent-3); }
.bad  { color: rgba(255,255,255,.4); font-family: var(--f-mono); font-size: 0.88rem; }
.bad::before  { content: '× '; color: rgba(255,255,255,.3); }

/* =========================================================
   PRICING MINI
   ========================================================= */

.price-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  transition: all .4s var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.price-popular {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}
.price-popular .price-credits,
.price-popular .price-per { color: rgba(255,255,255,.65); }

.price-badge {
  position: absolute;
  top: -10px; right: 20px;
  background: var(--accent);
  color: white;
  padding: 5px 10px;
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.price-name {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-3);
}
.price-popular .price-name { color: rgba(255,255,255,.6); }
.price-val {
  font-family: var(--f-display);
  font-size: 3.2rem;
  line-height: 1;
  letter-spacing: -.03em;
}
.price-val span { font-size: 1.2rem; color: var(--ink-3); font-family: var(--f-mono); }
.price-popular .price-val span { color: rgba(255,255,255,.5); }
.price-credits {
  font-size: 0.95rem;
  color: var(--ink-2);
}
.price-per {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--ink-3);
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  margin-top: 4px;
}
.price-popular .price-per { border-color: rgba(255,255,255,.12); }

.pricing-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 48px;
}

/* Full pricing page cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.price-full-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  transition: all .4s var(--ease);
}
.price-full-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.price-full-popular {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}
.price-full-popular .price-name,
.price-full-popular .price-credits,
.price-full-popular .price-per-label { color: rgba(255,255,255,.65); }
.price-full-popular .price-features li { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.1); }
.price-features {
  display: flex; flex-direction: column;
  margin-top: 8px;
}
.price-features li {
  padding: 10px 0;
  font-size: 0.88rem;
  color: var(--ink-2);
  border-top: 1px dashed var(--line);
  display: flex; align-items: center; gap: 10px;
}
.price-features li:last-child { border-bottom: 1px dashed var(--line); }
.price-full-popular .price-features li:last-child { border-bottom-color: rgba(255,255,255,.1); }
.price-features li::before {
  content: '+';
  color: var(--accent);
  font-family: var(--f-mono);
}
.price-per-label {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--ink-3);
}

.pricing-note {
  text-align: center;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-top: 48px;
}
.pricing-note p { font-size: 0.95rem; line-height: 1.7; }

.cost-table-wrap { margin-top: 72px; }
.cost-table-wrap h3 {
  font-family: var(--f-display);
  font-size: 2rem;
  letter-spacing: -.02em;
  margin-bottom: 24px;
  font-weight: 400;
}
.cost-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.cost-row {
  display: flex; justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  align-items: center;
}
.cost-row:last-child { border-bottom: none; }
.cost-val {
  font-family: var(--f-mono);
  font-size: 0.9rem;
  color: var(--accent);
  padding: 6px 12px;
  border: 1px solid var(--accent-soft);
  border-radius: 100px;
  background: var(--accent-soft);
}

/* =========================================================
   FAQ — accordion
   ========================================================= */

.faq-list {
  max-width: 860px;
  margin: 0 auto;
}
.faq-item {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 26px 0;
  cursor: pointer;
}
.faq-item:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-display);
  font-size: 1.3rem;
  letter-spacing: -.01em;
  color: var(--surface);
  transition: color .2s;
}
.faq-q::after {
  content: '+';
  font-family: var(--f-mono);
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform .3s var(--ease);
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease), margin .3s;
  color: rgba(255,255,255,.65);
  font-size: 1rem;
  line-height: 1.65;
}
.faq-item.open .faq-a {
  max-height: 300px;
  margin-top: 14px;
}

/* =========================================================
   CTA BANNER (used inside footer now via footer-hero)
   ========================================================= */

.footer {
  background: var(--bg-deep);
  color: var(--surface);
  padding: 80px 0 40px;
  margin-top: 40px;
}
.footer-hero {
  padding: 80px 0;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 60px;
  position: relative;
}
.footer-mark {
  font-size: 3rem;
  color: var(--accent);
  font-family: var(--f-display);
  font-weight: 400;
}
.footer-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1;
  color: var(--surface);
  letter-spacing: -.025em;
}
.footer-title em { color: var(--accent); }

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo { color: var(--surface); margin-bottom: 14px; }
.footer-brand .logo-dot { color: var(--accent); }
.footer-brand p { color: rgba(255,255,255,.55); font-size: 0.9rem; max-width: 320px; }
.footer-meta {
  display: flex; align-items: center; gap: 10px;
  margin-top: 20px;
}
.footer-meta .mono-tag { color: rgba(255,255,255,.45); }
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 10px var(--accent-3);
}

.footer-col h4 { color: rgba(255,255,255,.45); margin-bottom: 16px; }
.footer-col ul li { padding: 6px 0; }
.footer-col a {
  color: rgba(255,255,255,.8);
  font-size: 0.92rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .mono-tag { color: rgba(255,255,255,.4); }
.footer-legal { display: flex; gap: 28px; }
.footer-legal a {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: rgba(255,255,255,.5);
  transition: color .2s;
}
.footer-legal a:hover { color: var(--accent); }

/* =========================================================
   Page heroes (pricing / examples)
   ========================================================= */

.page-hero {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: -.03em;
  line-height: 1;
  margin-top: 16px;
  font-weight: 400;
}
.page-hero p {
  font-size: 1.1rem;
  max-width: 560px;
  margin-top: 20px;
}

/* =========================================================
   EXAMPLES
   ========================================================= */

.examples-filter {
  display: flex; gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-btn {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .3s var(--ease);
  letter-spacing: .02em;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.active {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}

.examples-masonry {
  column-count: 3;
  column-gap: 20px;
}
@media (max-width: 900px) { .examples-masonry { column-count: 2; } }
@media (max-width: 600px) { .examples-masonry { column-count: 1; } }

.ex-card {
  break-inside: avoid;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 20px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex; flex-direction: column;
}
.ex-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }

.ex-img {
  min-height: 220px;
  background: repeating-linear-gradient(135deg,
    var(--surface-2) 0 8px,
    var(--bg-raise) 8px 16px);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.ex-img::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
}
.ex-img .mono-caption {
  position: relative;
  z-index: 2;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--ink-2);
  padding: 8px 14px;
  background: var(--surface);
  border-radius: 100px;
  border: 1px solid var(--line);
}

.ex-card.variant-a .ex-img { background: linear-gradient(135deg, var(--accent-soft), #F9E4D3); }
.ex-card.variant-b .ex-img { background: linear-gradient(135deg, var(--accent-2-soft), #DDD0F0); }
.ex-card.variant-c .ex-img { background: linear-gradient(135deg, var(--accent-3-soft), #C4DCCD); }
.ex-card.variant-d .ex-img { background: linear-gradient(160deg, var(--bg-raise), #E4D8BE); }
.ex-card.variant-e .ex-img { background: linear-gradient(120deg, #FFE0B8, var(--accent-soft)); }

.ex-info {
  padding: 20px 22px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.ex-type {
  font-family: var(--f-display);
  font-size: 1.05rem;
  letter-spacing: -.01em;
}
.ex-scene {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  text-align: right;
}

.ex-tall .ex-img { min-height: 320px; }
.ex-short .ex-img { min-height: 180px; }

/* =========================================================
   Reveal animations (IntersectionObserver)
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }

/* Parallax target gets translated by main.js */
[data-parallax] { will-change: transform; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 960px) {
  .section { padding: 80px 0; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .section-head-side { text-align: left; }

  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 100px; }
  .bento-a { grid-column: span 6; grid-row: span 3; }
  .bento-b { grid-column: span 3; grid-row: span 2; }
  .bento-c { grid-column: span 3; grid-row: span 2; }
  .bento-d { grid-column: span 2; grid-row: span 2; }
  .bento-e { grid-column: span 4; grid-row: span 2; }
  .bento-f { grid-column: span 6; grid-row: span 2; }

  .how-strip { grid-template-columns: 1fr; }
  .features-wrap { grid-template-columns: 1fr; }
  .features-compact { grid-template-columns: 1fr; }
  .features-compact .fcard,
  .features-compact .fcard:nth-child(4),
  .features-compact .fcard:nth-child(5) { grid-column: span 1; }
  .fcard-hero { grid-row: span 1; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .price-row { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .nav-links, .nav-login { display: none; }
  .nav-toggle { display: flex; }
  .hero-intro { flex-direction: column; align-items: flex-start; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .compare-head, .compare-row { grid-template-columns: 1.2fr 1fr 1fr; padding: 16px 18px; font-size: 0.82rem; }
}

/* =========================================================
   LANG SWITCHER
   ========================================================= */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface, #FBF7EE);
  border: 1px solid var(--line, #E1D7C2);
  border-radius: 100px;
  padding: 3px;
}
.lang-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--f-mono, monospace);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-3, #8A7F6C);
  padding: 5px 10px;
  border-radius: 100px;
  transition: all .2s;
  line-height: 1;
}
.lang-btn:hover { color: var(--ink, #1A1815); }
.lang-btn.active {
  background: var(--ink, #1A1815);
  color: var(--surface, #FBF7EE);
}

/* =========================================================
   NAV USER MENU (shown when authenticated)
   ========================================================= */

.nav-user-menu { position: relative; }

.nav-user-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  cursor: pointer;
  transition: all .2s var(--ease);
  font-family: var(--f-sans);
  font-size: 0.88rem;
  color: var(--ink);
}
.nav-user-btn:hover { border-color: var(--line-strong); background: var(--surface); }

.nav-user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-size: 0.95rem;
  letter-spacing: -.02em;
  position: relative; overflow: hidden; flex-shrink: 0;
}
.nav-user-avatar::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, var(--accent) 0%, transparent 70%);
  opacity: .9;
}
.nav-user-avatar span { position: relative; z-index: 1; color: var(--surface); }

.nav-credits-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--f-mono); font-size: 0.75rem;
  color: var(--ink-2); padding: 3px 8px;
  background: var(--bg-raise); border-radius: 100px;
}

.nav-user-chev {
  width: 13px; height: 13px;
  stroke: var(--ink-3); fill: none; stroke-width: 2;
  transition: transform .2s;
}
.nav-user-menu.open .nav-user-chev { transform: rotate(180deg); }

.nav-user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 10px;
  min-width: 260px;
  box-shadow: var(--sh-lg);
  display: none; z-index: 200;
}
.nav-user-menu.open .nav-user-dropdown { display: block; }

.nav-dd-head {
  padding: 12px 14px 14px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 8px;
}
.nav-dd-name  { font-family: var(--f-display); font-size: 1.1rem; letter-spacing: -.01em; }
.nav-dd-email { font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-3); margin-top: 2px; }

.nav-dd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem; color: var(--ink-2);
  cursor: pointer; text-decoration: none;
  transition: all .15s;
}
.nav-dd-item:hover { background: var(--bg-raise); color: var(--ink); }
.nav-dd-item svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.nav-dd-divider { height: 1px; background: var(--line); margin: 6px 0; }

/* ============================================
   MOBILE BLOCK (must be at the very end so media-queries
   override all desktop base rules in the cascade)
   ============================================ */

/* Глобально на мобильных — никакого горизонтального скролла */
@media (max-width: 900px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  .navbar { width: 100%; max-width: 100vw; }
  .navbar > .container { max-width: 100%; padding-left: 16px; padding-right: 16px; }

  /* Гамбургер виден раньше чем @620 */
  .nav-toggle {
    display: flex !important;
    align-items: center;
    z-index: 110;
    position: relative;
    flex-shrink: 0;
  }
  /* Анимация гамбургера в крестик */
  .nav-toggle span {
    transition: transform .25s var(--ease), opacity .2s;
    transform-origin: center;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-inner { gap: 12px; height: 64px; }

  /* Скрытие навбара при прокрутке вниз — только на мобильной */
  .navbar {
    transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
    will-change: transform;
  }
  .navbar.is-hidden { transform: translateY(-100%); }

  /* Drawer — position:absolute от .navbar (НЕ fixed!), потому что .navbar
     имеет backdrop-filter, который ломает containing block для fixed-потомков */
  .nav-links {
    display: flex !important;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 18px 20px 24px;
    align-items: stretch;
    justify-content: flex-start;
    z-index: 105;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s var(--ease), opacity .2s;
    box-shadow: var(--sh-lg);
    margin: 0;
    list-style: none;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li { width: 100%; border-bottom: 1px dashed var(--line); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 14px 8px;
    font-size: 1.02rem;
    color: var(--ink);
  }
  .nav-links a::after { display: none; }

  /* Backdrop затемняет страницу ниже navbar */
  body.nav-drawer-open::before {
    content: '';
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(30,26,21,.45);
    backdrop-filter: blur(2px);
    z-index: 99;
    animation: fadeIn .2s;
  }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  body.nav-drawer-open { overflow: hidden; }

  /* Nav-actions — компактнее */
  .nav-actions { gap: 8px; flex-shrink: 0; }
  .nav-login { display: none; }
  /* Скрываем кнопку «Начать бесплатно» — она дублируется в Hero и в Drawer */
  #navGuest { display: none !important; }

  /* Имя пользователя в авторизованном меню скрываем — оставляем кванты + аватар + chev */
  #navUserMenu #navUserName { display: none; }
  .nav-user-btn { padding: 4px 8px 4px 4px; }

  /* Lang-switcher компактный */
  .lang-switcher .lang-btn { padding: 4px 8px; font-size: 0.66rem; }
  .lang-switcher { padding: 2px; }

  /* Если кто-то всё-таки решит показать кнопку — она будет узкая */
  #navGuest.show-mobile { display: flex !important; }
  #navGuest.show-mobile .btn-primary { padding: 8px 14px !important; font-size: 0.82rem !important; }
  #navGuest.show-mobile .btn-arrow { display: none; }

  /* iOS Safari: input font-size 16px чтобы не зумило */
  input[type="text"], input[type="email"], input[type="password"],
  input[type="tel"], input[type="search"], textarea, select { font-size: 16px !important; }
}

/* Кнопочные группы (hero-actions, pricing-cta) — на мобильных в столбец */
@media (max-width: 700px) {
  .hero-actions,
  .pricing-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  .hero-actions .btn,
  .pricing-cta .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
    padding: 14px 18px;
    font-size: 0.94rem;
  }
  .pricing-cta { margin-top: 32px; }
}

@media (max-width: 560px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .nav-inner { height: 60px; gap: 8px; }
  .logo { font-size: 1.15rem; gap: 8px; }
  .logo-mark { width: 26px; height: 26px; }

  /* Lang-switcher на самых узких — только активная кнопка (вторая скрыта) */
  .lang-switcher .lang-btn { padding: 4px 7px; font-size: 0.62rem; }

  /* Дополнительно ужимаем секции */
  .section { padding: 56px 0 !important; }
  .hero-title, .h1 { font-size: clamp(2.2rem, 9vw, 3rem) !important; }
  .h2 { font-size: clamp(1.7rem, 7vw, 2.3rem) !important; }

  /* Bento — все блоки в одну колонку */
  .bento {
    grid-template-columns: 1fr !important;
    grid-auto-rows: minmax(160px, auto) !important;
  }
  .bento > * { grid-column: 1 !important; grid-row: auto !important; }

  /* Cat-grid → 1 колонка */
  .cat-grid { grid-template-columns: 1fr !important; }

  /* Pricing — 1 колонка с увеличенными отступами */
  .pricing-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .price-card { padding: 24px 20px; }

  /* Compare table → стек */
  .compare-head, .compare-row { grid-template-columns: 1fr !important; padding: 14px; gap: 8px; }
  .compare-row > * { padding: 4px 0; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px; }
  .footer-bottom { flex-direction: column !important; align-items: flex-start; gap: 8px; }
}

@media (max-width: 380px) {
  .nav-actions .lang-switcher { display: none; }
  #navGuest .btn-primary { padding: 7px 12px !important; }
}


/* ============= Legal pages (privacy / cookies / terms) ============= */
.legal-page {
  padding: 70px 0 80px;
  background: var(--bg, #fbf3e0);
  min-height: 60vh;
}
.legal-page .legal-header {
  margin-bottom: 36px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line, #e5dfd1);
}
.legal-page h1 {
  font-family: var(--f-display, 'Vetrino', serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -.02em;
  margin: 8px 0 12px;
}
.legal-page .legal-meta {
  font-family: var(--f-mono, 'JetBrains Mono', monospace);
  font-size: .76rem;
  color: var(--ink-3, #8a7f6c);
  letter-spacing: .04em;
}
.legal-content { max-width: 760px; line-height: 1.65; font-size: .98rem; }
.legal-content h2 {
  font-family: var(--f-display, 'Vetrino', serif);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -.01em;
  margin: 36px 0 12px;
}
.legal-content h2:first-of-type { margin-top: 4px; }
.legal-content p { margin: 0 0 12px; color: var(--ink-2, #3a342a); }
.legal-content ul { margin: 0 0 18px 22px; padding: 0; }
.legal-content ul li { margin-bottom: 6px; color: var(--ink-2, #3a342a); }
.legal-content a { color: var(--accent, #e85c2c); text-decoration: underline; }
.legal-content a:hover { text-decoration: none; }
.legal-content code {
  font-family: var(--f-mono, 'JetBrains Mono', monospace);
  font-size: .86em;
  background: var(--bg-raise, #f0e8d3);
  padding: 1px 6px;
  border-radius: 3px;
}
.legal-table {
  width: 100%; border-collapse: collapse; margin: 14px 0 24px;
  font-size: .88rem;
}
.legal-table th, .legal-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line, #e5dfd1);
  vertical-align: top;
}
.legal-table th {
  font-family: var(--f-mono, 'JetBrains Mono', monospace);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-3, #8a7f6c);
  font-weight: 500;
  background: var(--surface, #fff);
}
.legal-table td:first-child { font-family: var(--f-mono, 'JetBrains Mono', monospace); white-space: nowrap; }
.legal-table td:nth-child(3), .legal-table td:nth-child(4) {
  font-family: var(--f-mono, 'JetBrains Mono', monospace);
  font-size: .82rem;
  color: var(--ink-3, #8a7f6c);
  white-space: nowrap;
}
@media (max-width: 600px) {
  .legal-table { font-size: .76rem; }
  .legal-table th, .legal-table td { padding: 8px 10px; }
}
