/* ============================================================
   producing — «Эмиль × Камиль»
   Тёмная редакторская айдентика. Один лаймовый акцент.
   Шрифты: Unbounded (display) + Onest (текст), самохостинг.
   ============================================================ */

/* ---------- Шрифты (самохостинг) ---------- */
@font-face {
  font-family: "Onest";
  src: url("../assets/fonts/onest-latin.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  src: url("../assets/fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url("../assets/fonts/unbounded-700-latin.woff2") format("woff2");
  font-weight: 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: "Unbounded";
  src: url("../assets/fonts/unbounded-700-cyrillic.woff2") format("woff2");
  font-weight: 700; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url("../assets/fonts/unbounded-800-latin.woff2") format("woff2");
  font-weight: 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: "Unbounded";
  src: url("../assets/fonts/unbounded-800-cyrillic.woff2") format("woff2");
  font-weight: 800; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---------- Токены ---------- */
:root {
  --bg:        #0B0D0C;
  --bg-2:      #0F1211;
  --surface:   #141815;
  --surface-2: #1A1F1B;
  --ink:       #F4F6F0;
  --muted:     #9AA29A;
  --faint:     #6B7268;
  --lime:      #C8FA46;
  --lime-deep: #A8E018;
  --line:      rgba(244, 246, 240, 0.10);
  --line-2:    rgba(244, 246, 240, 0.18);

  --font:    "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Unbounded", "Onest", sans-serif;

  --r:    16px;
  --r-lg: 26px;
  --r-pill: 999px;
  --maxw: 1180px;
  --pad:  clamp(20px, 5vw, 56px);
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Атмосфера: лаймовый свет + золотой подпал + зерно */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60vw 50vw at 88% -8%, rgba(200, 250, 70, 0.10), transparent 60%),
    radial-gradient(50vw 40vw at -10% 110%, rgba(195, 154, 69, 0.06), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Типографика ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; }
.display {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 0.98; letter-spacing: -0.03em;
}
h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 700; }
p { color: var(--muted); }
strong { color: var(--ink); font-weight: 600; }
.lime { color: var(--lime); }

/* Глазок-метка над секциями */
.eyebrow {
  font-family: var(--font); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--lime); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 60ch; }

/* ---------- Каркас ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
section { padding-block: clamp(64px, 10vw, 128px); position: relative; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Навигация ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px); background: rgba(11, 13, 12, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 66px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.06rem; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 9px; }
.brand .x { color: var(--lime); }
.brand small { font-family: var(--font); font-weight: 500; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: 0.92rem; color: var(--muted); transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }
.nav__links .btn { padding: 9px 18px; font-size: 0.86rem; }
@media (max-width: 820px) { .nav__links a:not(.btn) { display: none; } }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font); font-weight: 600; font-size: 0.98rem;
  padding: 14px 26px; border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; transition: transform 0.18s ease, background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn .arr { transition: transform 0.22s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn--lime { background: var(--lime); color: #0B0D0C; }
.btn--lime:hover { background: var(--lime-deep); }
.btn--primary { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); }
.btn--primary:hover { border-color: var(--lime); color: var(--lime); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn--lg { padding: 17px 32px; font-size: 1.05rem; }

/* ---------- Пилюли-теги ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.78rem; font-weight: 500; color: var(--muted);
  padding: 6px 13px; border: 1px solid var(--line-2); border-radius: var(--r-pill);
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.badge-open {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--lime);
  padding: 3px 9px; border: 1px solid rgba(200, 250, 70, 0.35); border-radius: var(--r-pill);
  background: rgba(200, 250, 70, 0.06);
}

/* ---------- Карточки ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px);
  transition: transform 0.25s ease, border-color 0.25s;
}
.card--hover:hover { transform: translateY(-4px); border-color: var(--line-2); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 9vw, 120px); }
.hero .display { margin-block: 18px 26px; max-width: 16ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- Статистика (цифры кейса) ---------- */
.stat__num { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; color: var(--ink); letter-spacing: -0.03em; }
.stat__num .lime { color: var(--lime); }
.stat__cap { color: var(--muted); font-size: 0.92rem; margin-top: 10px; }

/* ---------- Развилка (два пути) ---------- */
.fork { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .fork { grid-template-columns: 1fr; } }
.fork__card { display: flex; flex-direction: column; gap: 16px; min-height: 100%; }
.fork__card h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.fork__card .btn { margin-top: auto; align-self: flex-start; }
.fork__num { font-family: var(--display); font-weight: 800; font-size: 0.9rem; color: var(--lime); }

/* ---------- Шаги / список с номерами ---------- */
.steps { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 22px clamp(18px, 2.5vw, 30px); background: var(--surface); align-items: start; }
.step__n { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--lime); }
.step h3 { margin-bottom: 4px; }
.step p { font-size: 0.96rem; }

/* ---------- Чек-фильтр (кого берём) ---------- */
.check { display: flex; gap: 14px; align-items: flex-start; }
.check__mark { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(200,250,70,0.12); border: 1px solid rgba(200,250,70,0.4); color: var(--lime); display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; margin-top: 2px; }

/* ---------- Таблица ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
table.t { width: 100%; border-collapse: collapse; min-width: 520px; }
table.t th, table.t td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
table.t thead th { font-family: var(--font); font-weight: 600; color: var(--faint); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
table.t td { color: var(--muted); }
table.t td strong { color: var(--ink); }
table.t tr:last-child td { border-bottom: 0; }
table.t .yes { color: var(--lime); }

/* ---------- Тарифы ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 880px) { .tiers { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.tier { display: flex; flex-direction: column; gap: 18px; }
.tier--feat { border-color: rgba(200,250,70,0.45); box-shadow: 0 0 0 1px rgba(200,250,70,0.15), 0 30px 60px -40px rgba(200,250,70,0.4); }
.tier__price { font-family: var(--display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.02em; }
.tier__term { color: var(--faint); font-size: 0.86rem; }
.tier ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.tier li { color: var(--muted); font-size: 0.94rem; padding-left: 24px; position: relative; }
.tier li::before { content: "→"; position: absolute; left: 0; color: var(--lime); }
.tier .btn { margin-top: auto; justify-content: center; }

/* ---------- Аккордеон (модули) ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__item:last-child { border-bottom: 0; }
.acc__head { width: 100%; text-align: left; background: var(--surface); color: var(--ink); border: 0; cursor: pointer; padding: 20px clamp(18px,2.5vw,28px); display: flex; align-items: center; gap: 16px; font-family: var(--font); font-size: 1.02rem; font-weight: 600; transition: background 0.2s; }
.acc__head:hover { background: var(--surface-2); }
.acc__head .n { font-family: var(--display); font-weight: 800; color: var(--lime); font-size: 0.95rem; flex: none; width: 30px; }
.acc__head .plus { margin-left: auto; flex: none; color: var(--faint); transition: transform 0.25s; font-size: 1.3rem; line-height: 1; }
.acc__item.open .plus { transform: rotate(45deg); color: var(--lime); }
.acc__body { max-height: 0; overflow: hidden; transition: max-height 0.32s ease; }
.acc__body > div { padding: 0 clamp(18px,2.5vw,28px) 22px calc(clamp(18px,2.5vw,28px) + 46px); color: var(--muted); font-size: 0.96rem; }
.acc__body ul { margin: 8px 0 0; padding-left: 18px; }

/* ---------- Лид-магнит ---------- */
.magnet { background: linear-gradient(120deg, var(--surface), var(--surface-2)); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; }
@media (max-width: 760px) { .magnet { grid-template-columns: 1fr; } }

/* ---------- О нас ---------- */
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .who { grid-template-columns: 1fr; } }
.who__role { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); font-weight: 600; }

/* ---------- Заметка / honest callout ---------- */
.note { border-left: 2px solid var(--lime); padding: 4px 0 4px 18px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 56px; }
.footer__in { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer a { color: var(--muted); transition: color 0.2s; }
.footer a:hover { color: var(--lime); }
.footer small { color: var(--faint); font-size: 0.82rem; }

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

.section-head { max-width: 64ch; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head h2 { margin-top: 14px; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 44px; }
.center { text-align: center; margin-inline: auto; }

/* ============================================================
   ПЕЧАТЬ — светлая тема для PDF (obuchenie.html → lead-magnet.pdf)
   ============================================================ */
@media print {
  @page { margin: 18mm 16mm; }
  body { background: #fff; color: #141815; font-size: 11.5pt; }
  body::before, body::after { display: none !important; }
  .nav, .footer, .no-print, .btn { display: none !important; }
  h1, h2, h3 { color: #0B0D0C; }
  p, .tier li, table.t td { color: #2a2823; }
  .card, .acc, .acc__item, .table-wrap { border-color: #d9d4c6; background: #fff; box-shadow: none; }
  .acc__body { max-height: none !important; }
  .acc__body > div { display: block !important; }
  .lime, .stat__num .lime, .step__n, .acc__head .n, .eyebrow::before { color: #6a8f00; }
  .badge-open { color: #6a8f00; border-color: #6a8f00; }
  section { padding-block: 14px; }
  a { color: #141815; }
}
