/* SEDE landing — Obsidian Couture base CSS (R49)
   Цвета: --bg-0 #0d1110 (obsidian), --gold #dabb52, --porcelain #f5efe1
   Шрифты: Instrument Serif italic для заголовков, Inter Tight для тела */

:root {
  --bg-0: #0d1110;
  --bg-1: #14191a;
  --bg-2: #1c2222;
  --ink: #f5efe1;
  --ink-2: #b8b0a0;
  --ink-3: #6f6757;
  --gold: #dabb52;
  --gold-soft: #b8941f;
  --gold-glow: rgba(218,187,82,0.18);
  --line: rgba(218,187,82,0.14);
  --line-soft: rgba(245,239,225,0.06);
  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 14px;
  --maxw: 1200px;
}

html[data-theme="light"] {
  --bg-0: #f5efe1;
  --bg-1: #ede4d0;
  --bg-2: #e2d9c4;
  --ink: #0d1110;
  --ink-2: #3a3328;
  --ink-3: #6b6354;
  --line: rgba(13,17,16,0.10);
  --line-soft: rgba(13,17,16,0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}

body {
  min-height: 100vh;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color 200ms; }
a:hover { color: var(--gold); }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(34px, 5.5vw, 68px); }
h2 { font-size: clamp(26px, 4vw, 44px); }
h3 { font-size: clamp(19px, 2.4vw, 26px); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.muted { color: var(--ink-2); }
.small { font-size: 13px; color: var(--ink-3); }

/* ── Header ───────────────────────────────────────────────── */
.hd {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,17,16,0.85);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
html[data-theme="light"] .hd { background: rgba(245,239,225,0.85); }
.hd-row {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 24px;
}
.hd-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 4px;
  color: var(--ink);
}
.hd-logo-mark {
  color: var(--gold);
  font-size: 16px;
  line-height: 1;
}
.hd-logo-img {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}
/* На широких экранах текст SEDE рядом с логотипом, на mobile только логотип */
@media (max-width: 480px) {
  .hd-logo-text { display: none; }
}
.hd-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-link.is-active, .nav-link:hover { color: var(--ink); }
.nav-link.is-active:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}
.hd-actions { display: flex; gap: 10px; }
.hd-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: all 200ms;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hd-btn-ghost { color: var(--ink-2); border-color: var(--line); }
.hd-btn-ghost:hover { color: var(--ink); border-color: var(--gold); }
.hd-btn-primary { background: var(--gold); color: #0d1110; }
.hd-btn-primary:hover { background: var(--gold-soft); color: #0d1110; transform: translateY(-1px); }

.hd-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hd-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: 200ms; }
.hd-mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg-0);
  border-top: 1px solid var(--line);
  padding: 16px 24px;
  flex-direction: column;
  gap: 4px;
  z-index: 99;
}
.hd-mobile.is-open { display: flex; }
.hd-mobile-link {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: 16px;
}
.hd-mobile-cta { color: var(--gold); font-weight: 600; }

@media (max-width: 920px) {
  .hd-nav, .hd-actions { display: none; }
  .hd-burger { display: block; }
  .hd-row { gap: 12px; }
}
@media (max-width: 600px) {
  body { font-size: 14px; }
  .container { padding: 0 16px; }
  .hero { padding: 48px 0 36px; }
  .hero-title { font-size: clamp(28px, 8vw, 36px); }
  .hero-subtitle { font-size: 14px; margin-bottom: 24px; }
  .hero-ctas { gap: 8px; }
  .btn { padding: 12px 20px; font-size: 14px; }
  .btn-large { padding: 13px 22px; font-size: 15px; }
  .section { padding: 36px 0; }
  .page-hero { padding: 36px 0 24px; }
  h1 { font-size: clamp(28px, 8vw, 36px); }
  h2 { font-size: clamp(22px, 6vw, 28px); }
  h3 { font-size: 18px; }
  .card { padding: 18px; }
  .grid-2, .grid-3, .grid-4 { gap: 14px; }
  .stat-num { font-size: 36px !important; }
  .agent { padding: 18px; }
  .agent-img { width: 56px; height: 56px; }
}

/* ── Hero / sections ───────────────────────────────────────── */
.section {
  padding: clamp(48px, 7vh, 88px) 0;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.section-narrow { padding: clamp(36px, 5vh, 64px) 0; }
.section-tight { padding: clamp(24px, 4vh, 48px) 0; }

.hero {
  padding: clamp(60px, 10vh, 120px) 0 clamp(48px, 7vh, 88px);
  background:
    radial-gradient(ellipse at 30% 0%, rgba(218,187,82,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(218,187,82,0.06) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}
/* Сгенерированный hero фон — opacity ниже текста, чтобы текст читался */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-bg, transparent) center/cover no-repeat;
  opacity: 0.28;
  filter: contrast(1.05) saturate(1.1);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, var(--gold-glow) 0, transparent 1px),
    radial-gradient(circle at 80% 60%, var(--gold-glow) 0, transparent 1px),
    radial-gradient(circle at 40% 80%, var(--gold-glow) 0, transparent 1px);
  background-size: 80px 80px, 100px 100px, 60px 60px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
/* Page hero (для подстраниц) — с фоном */
.page-hero { position: relative; overflow: hidden; }
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--page-hero-bg, transparent) center/cover no-repeat;
  opacity: 0.22;
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 2; }
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(34px, 6vw, 72px);
  margin-bottom: 20px;
  max-width: 16em;
}
.hero-subtitle {
  font-family: var(--sans);
  font-style: normal;
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--ink-2);
  max-width: 32em;
  margin-bottom: 32px;
  line-height: 1.55;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 200ms;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: #0d1110;
  box-shadow: 0 4px 16px rgba(218,187,82,0.25);
}
.btn-primary:hover { background: var(--gold-soft); color: #0d1110; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(218,187,82,0.35); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-large { font-size: 17px; padding: 16px 32px; }

.btn-icon {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 200ms;
}
.card-hover:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

/* ── Forms ───────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.input, .textarea, .select {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 16px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  transition: border-color 200ms;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.textarea { resize: vertical; min-height: 90px; }
.field-help { font-size: 12px; color: var(--ink-3); }
.field-error { font-size: 12px; color: #e07070; min-height: 16px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); flex-shrink: 0; }
.checkbox-label { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.checkbox-label a { color: var(--gold); }

.radio-group { display: flex; flex-wrap: wrap; gap: 12px; }
.radio { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
.radio input { accent-color: var(--gold); }
.radio:has(input:checked) { border-color: var(--gold); background: var(--gold-glow); }

.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.form-status { font-size: 13px; color: var(--ink-3); flex: 1; min-width: 120px; }
.form-status.is-ok { color: #5fc878; }
.form-status.is-err { color: #e07070; }

/* ── Footer ──────────────────────────────────────────────── */
.ft {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
  margin-top: 80px;
}
.ft-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
.ft-col { display: flex; flex-direction: column; gap: 8px; }
.ft-col-brand { gap: 14px; max-width: 320px; }
.ft-tagline { font-size: 13px; color: var(--ink-3); line-height: 1.55; }
.ft-h {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.ft-col a {
  font-size: 14px;
  color: var(--ink-2);
  padding: 2px 0;
}
.ft-col a:hover { color: var(--gold); }
.ft-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--ink-3);
}
.ft-muted { color: var(--ink-3); }

@media (max-width: 920px) {
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .ft-col-brand { grid-column: 1 / -1; max-width: none; }
  .ft-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}
@media (max-width: 520px) {
  .ft-grid { grid-template-columns: 1fr; }
}

/* ── Utilities ───────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.gold { color: var(--gold); }
.serif { font-family: var(--serif); font-style: italic; }
.mono { font-family: var(--mono); font-size: 0.92em; }
.divider { height: 1px; background: var(--line-soft); margin: 32px 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── AI agent cards ──────────────────────────────────────── */
.agent {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: all 200ms;
}
.agent.is-active { border-color: rgba(218,187,82,0.45); }
.agent.is-soon { opacity: 0.95; }
.agent-soon-ribbon {
  position: absolute; top: 14px; right: -32px;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #1a1410;
  font-weight: 800; font-size: 10px; letter-spacing: 0.12em;
  padding: 3px 38px;
  transform: rotate(35deg);
}
.agent-emoji { font-size: 36px; line-height: 1; }
.agent-img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(218,187,82,0.2);
  background: var(--bg-2);
}
.agent-name { font-size: 18px; font-weight: 700; }
.agent-role { font-size: 13px; color: var(--ink-3); }
.agent-desc { font-size: 14px; color: var(--ink-2); line-height: 1.5; flex: 1; }
/* R49.6+ — карточки решения с картинками */
.feature-card { display: flex; flex-direction: column; gap: 12px; }
.feature-icon {
  width: 64px; height: 64px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  margin-bottom: 4px;
}
/* R49.6+ — шаги с иллюстрациями */
.step-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--line-soft);
  background: var(--bg-1);
}
.agent-price {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gold);
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

/* ── Pricing ─────────────────────────────────────────────── */
.tier {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
}
.tier.is-popular {
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--bg-1) 0%, rgba(218,187,82,0.04) 100%);
  box-shadow: 0 8px 24px rgba(218,187,82,0.10);
}
.tier-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #0d1110;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  text-transform: uppercase;
}
.tier-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  margin: 0;
  color: var(--ink);
}
.tier-price {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  margin: 0;
  white-space: nowrap;
}
.tier-price-period {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 400;
  white-space: nowrap;
}
.tier .muted.small {
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  min-height: 32px; /* выравнивание подзаголовков между карточками */
}
.tier-features {
  list-style: none;
  padding: 0;
  margin: 8px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}
.tier-features li {
  font-size: 13px;
  color: var(--ink-2);
  padding-left: 20px;
  position: relative;
  line-height: 1.4;
}
.tier-features li:before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
}
.tier-features li.is-no { color: var(--ink-3); opacity: 0.6; }
.tier-features li.is-no:before { content: '−'; color: var(--ink-3); }
.tier .btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
  padding: 11px 18px;
  font-size: 14px;
}
.tier-grid {
  display: grid;
  gap: 14px;
  align-items: stretch;
}
.tier-grid-5 { grid-template-columns: repeat(5, 1fr); }
.tier-grid-4 { grid-template-columns: repeat(4, 1fr); }
.tier-grid-3 { grid-template-columns: repeat(3, 1fr); max-width: 920px; margin: 0 auto; }
@media (max-width: 1100px) {
  .tier-grid-5, .tier-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .tier-grid-5, .tier-grid-4, .tier-grid-3 { grid-template-columns: 1fr; }
  .tier { padding: 20px 18px 18px; }
  .tier-name { font-size: 20px; }
  .tier-price { font-size: 24px; }
}

/* ── Stats ──────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 40px 0; }
.stat { text-align: center; }
.stat-num { font-family: var(--serif); font-style: italic; font-size: clamp(36px, 5vw, 56px); color: var(--gold); line-height: 1; }
.stat-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; color: var(--ink-3); text-transform: uppercase; margin-top: 8px; }
@media (max-width: 600px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ── Steps (как работает) ────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { text-align: left; }
.step-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.step-title { font-family: var(--serif); font-style: italic; font-size: 22px; margin-bottom: 8px; }
.step-desc { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 920px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ── Problem list ─────────────────────────────────────── */
.problems { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin: 0 auto; }
.problem {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-1);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}
.problem-x {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(224,112,112,0.12);
  color: #e07070;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.problem-text { font-size: 15px; color: var(--ink); line-height: 1.55; }

/* ── Generic page hero ───────────────────────────────────── */
.page-hero {
  padding: clamp(56px, 9vh, 96px) 0 clamp(28px, 5vh, 56px);
  background: radial-gradient(ellipse at 50% 0%, rgba(218,187,82,0.08) 0%, transparent 50%);
  border-bottom: 1px solid var(--line-soft);
}

/* ── Cookie / consent ─────────────────────────────────────── */
.consent-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  max-width: 420px; margin-left: auto;
  background: var(--bg-1); border: 1px solid var(--gold);
  border-radius: 14px; padding: 16px;
  display: none; z-index: 200;
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.consent-banner.is-shown { display: block; }
