/* Сайт: тёмная студия как в роликах. Арабский справа налево, цифры западные моноширинным шрифтом.
   Шрифт выбирается по каждой букве (unicode-range), поэтому исключений нет:
   арабские буквы IBM Plex Sans Arabic Bold (с 30.11.2026: Nahdi без веб-лицензии не публикуем; вернуть Nahdi =
   src ниже на ../fonts/Nahdi-Black.ttf и Nahdi-Black.ttf в FONTS в site/build.mjs), латиница и знаки Montserrat SemiBold, цифры в ценах JetBrains Mono.
   Nahdi и Montserrat заданы одним файлом на все веса, чтобы браузер не рисовал поддельный жирный. */
@font-face {
  font-family: "Site Arabic";
  src: url("../fonts/IBMPlexSansArabic-Bold.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Site Latin";
  src: url("../fonts/Montserrat-SemiBold-latin.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212;
}
@font-face {
  font-family: "Site Digits";
  src: url("../fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 100 600;
  font-display: swap;
  unicode-range: U+0024-0025, U+002B, U+0030-0039, U+00D7, U+2013, U+2212; /* digits and + $ %; dots and commas come from Montserrat */
}
@font-face {
  font-family: "Site Digits";
  src: url("../fonts/JetBrainsMono-Bold.woff2") format("woff2");
  font-weight: 601 900;
  font-display: swap;
  unicode-range: U+0024-0025, U+002B, U+0030-0039, U+00D7, U+2013, U+2212; /* digits and + $ %; dots and commas come from Montserrat */
}
/* Запасной арабский шрифт: грузится, только если в Nahdi не найдётся знака (сейчас все знаки сайта в Nahdi есть). */
@font-face { font-family: "Plex Arabic"; src: url("../fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0e0f12;
  --bg-2: #121419;
  --panel: #17191f;
  --panel-2: #1f2229;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f3f4f6;
  --dim: #9ba1aa;
  --amber: #f5b841;
  --amber-2: #ffc95a;
  --amber-soft: rgba(245, 184, 65, 0.12);
  --ink: #1a1405;
  --green: #3ddc84;
  --red: #f0605a;
  --cyan: #39c6ff;

  --font: "Site Arabic", "Site Latin", "Plex Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-display: var(--font);
  --mono: "Site Digits", "Site Latin", "Site Arabic", ui-monospace, Consolas, monospace;
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lead: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  --text-h1: clamp(2.1rem, 1.2rem + 3.8vw, 3.75rem);
  --text-h2: clamp(1.55rem, 1.15rem + 1.6vw, 2.3rem);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --wrap: 1140px;
  --gut: clamp(16px, 4vw, 32px);
  --space-section: clamp(56px, 4rem + 4vw, 112px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 160ms;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--text-base) / 1.8 var(--font);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video { display: block; max-width: 100%; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--amber-2); }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { margin: 0 0 0.5em; font-family: var(--font-display); font-synthesis: none; line-height: 1.3; font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--text-h1); line-height: 1.2; }
h2 { font-size: var(--text-h2); }
h3 { font-size: 1.2rem; font-weight: 600; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 820px; }
.lead { font-size: var(--text-lead); color: var(--dim); max-width: 62ch; }
.dim { color: var(--dim); }
.num { direction: ltr; unicode-bidi: isolate; font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.hl { color: var(--amber); }
.mt { margin-top: 32px; }
.sub { margin: 40px 0 16px; color: var(--dim); font-size: 1rem; font-weight: 600; }
.skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 50; padding: 8px 16px; border-radius: var(--r-sm); background: var(--amber); color: var(--ink); font-weight: 700; }
.skip:focus { top: 12px; }

/* Шапка */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(14, 15, 18, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.top__in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; text-decoration: none; }
.logo:hover { color: var(--text); }
.logo img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 2px var(--amber), 0 0 18px rgba(245, 184, 65, 0.45); }
.nav { display: flex; gap: 2px; margin-inline-start: auto; }
.nav a { padding: 8px 12px; border-radius: var(--r-sm); color: var(--dim); font-family: var(--font-display); font-synthesis: none; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color var(--fast), background var(--fast); }
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--text); background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--amber); }
@media (max-width: 760px) {
  html { scroll-padding-top: 124px; }
  .top__wa { margin-inline-start: auto; }
  .nav { order: 3; width: calc(100% + var(--gut) * 2); margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 10px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: var(--amber);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 28px -10px rgba(245, 184, 65, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform var(--fast) var(--ease), background var(--fast), box-shadow var(--fast);
}
.btn:hover { background: var(--amber-2); color: var(--ink); transform: translateY(-1px); box-shadow: 0 12px 32px -10px rgba(245, 184, 65, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.btn--ghost:hover { background: var(--panel); color: var(--text); box-shadow: none; border-color: rgba(255, 255, 255, 0.28); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }
.top__wa { font-family: var(--font-display); font-synthesis: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Первый экран */
.hero { position: relative; padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 104px); overflow: hidden; }
.hero::before, .page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(620px 420px at 22% 30%, rgba(245, 184, 65, 0.16), transparent 62%),
    radial-gradient(520px 380px at 88% 80%, rgba(57, 198, 255, 0.07), transparent 60%);
}
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.eyebrow { margin-bottom: 14px; color: var(--amber); font-weight: 600; }
.hero__media { position: relative; }
.phone {
  position: relative;
  width: min(300px, 72vw);
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  border-radius: 34px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 1px var(--line-2),
    0 0 0 9px #060607,
    0 0 0 10px var(--line-2),
    0 50px 90px -30px rgba(0, 0, 0, 0.9),
    0 0 110px -20px rgba(245, 184, 65, 0.4);
}
.phone video { width: 100%; height: 100%; object-fit: cover; }
.floaters { list-style: none; }
.floater {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(23, 25, 31, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.8);
  animation: float 6s var(--ease) infinite alternate;
}
.floater .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.floater--1 { top: 12%; inset-inline-end: calc(50% + 110px); }
.floater--2 { top: 46%; inset-inline-start: calc(50% + 116px); animation-delay: -2s; }
.floater--3 { bottom: 12%; inset-inline-end: calc(50% + 100px); animation-delay: -4s; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-10px); } }
.slots { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 28px; color: var(--dim); font-size: 0.95rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font-size: 0.9rem; }
.slots .chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.chip--amber { border-color: rgba(245, 184, 65, 0.4); background: var(--amber-soft); color: var(--amber); font-weight: 600; }
@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; }
  .floater--1 { inset-inline-end: calc(50% + 70px); }
  .floater--2 { inset-inline-start: calc(50% + 70px); }
  .floater--3 { inset-inline-end: calc(50% + 60px); }
}
@media (max-width: 480px) { .floaters { display: none; } }

/* Шапка внутренних страниц */
.page-head { position: relative; padding-block: clamp(40px, 7vw, 88px) clamp(24px, 4vw, 48px); overflow: hidden; }
.page-head > .wrap { position: relative; }
.formula {
  display: inline-block;
  margin-top: 12px;
  padding: 16px 22px;
  border: 1px dashed rgba(245, 184, 65, 0.55);
  border-radius: var(--r);
  background: var(--amber-soft);
  font-size: clamp(1.05rem, 0.95rem + 0.8vw, 1.45rem);
  font-weight: 700;
}

/* Секции */
.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(32px, 4vw, 56px) var(--space-section); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { max-width: 700px; margin-bottom: clamp(24px, 4vw, 40px); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
.terms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 820px) { .split, .terms-grid { grid-template-columns: 1fr; } }

.card { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); padding: clamp(20px, 3vw, 30px); }

/* Три предложения: главное крупнее */
.offers { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 18px; }
.offer { display: flex; flex-direction: column; transition: border-color var(--fast), transform var(--fast) var(--ease); }
.offer:hover { border-color: var(--line-2); transform: translateY(-2px); }
.offer--main {
  grid-row: span 2;
  border-color: rgba(245, 184, 65, 0.45);
  background: radial-gradient(420px 260px at 85% 0%, rgba(245, 184, 65, 0.14), transparent 70%), var(--panel);
  padding: clamp(24px, 4vw, 40px);
}
.offer--main h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.offer__kicker { margin-bottom: 10px; color: var(--amber); font-size: 0.9rem; font-weight: 600; }
.offer__text { color: var(--dim); }
.offer .btn { align-self: flex-start; margin-top: auto; }
.price { margin: 8px 0 2px; font-size: 1.05rem; }
.price .num:first-child { font-size: 2.1rem; font-weight: 700; color: var(--text); }
.offer--main .price .num:first-child { font-size: clamp(2.6rem, 2rem + 2vw, 3.5rem); color: var(--amber); }
.price-note { margin-bottom: 22px; color: var(--dim); font-size: 0.92rem; }
@media (max-width: 860px) { .offers { grid-template-columns: 1fr; } .offer--main { grid-row: auto; } }

/* Ролики */
.reels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.reels--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; }
.reels--1 { grid-template-columns: minmax(0, 280px); justify-content: center; }
.reel { margin: 0; }
.reel__media { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #000; transition: border-color var(--fast), transform var(--fast) var(--ease); }
.reel:hover .reel__media { border-color: rgba(245, 184, 65, 0.5); transform: translateY(-3px); }
.reel__media video { width: 100%; height: 100%; object-fit: cover; }
.reel__sound { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; font: inherit; }
.reel__sound span {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 12px;
  padding: 6px 12px 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}
.reel__sound[aria-pressed="true"] span { background: var(--amber); color: var(--ink); }
.reel__sound:focus-visible { outline-offset: -4px; border-radius: 20px; }
.reel figcaption { display: grid; gap: 2px; padding: 12px 4px 0; }
.reel__tag { color: var(--amber); font-size: 0.85rem; font-weight: 600; }
.reel__title { font-weight: 600; line-height: 1.5; }
.reel__desc { margin: 4px 0 0; color: var(--dim); font-size: 0.92rem; }
@media (max-width: 900px) {
  .reels, .reels--3 {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(64vw, 260px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gut);
    margin-inline: calc(var(--gut) * -1);
    padding: 0 var(--gut) 12px;
    scrollbar-width: thin;
  }
  .reel { scroll-snap-align: start; }
  .reels--1 { grid-auto-columns: min(70vw, 280px); justify-content: start; overflow: visible; margin: 0; padding: 0; }
}

/* Шаги */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps li { position: relative; display: grid; align-content: start; gap: 4px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--amber-soft);
  color: var(--amber);
  font-family: var(--mono);
  font-weight: 700;
}
.steps strong { font-size: 1.05rem; }
.steps span { color: var(--dim); font-size: 0.95rem; }
@media (max-width: 1000px) { .steps--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps, .steps--5 { grid-template-columns: 1fr; } }

/* Модули курса */
.modules { list-style: none; display: grid; gap: 12px; counter-reset: mod; max-width: 860px; }
.modules li { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); counter-increment: mod; }
.modules li::before { content: counter(mod, decimal-leading-zero); grid-row: span 2; color: var(--amber); font-family: var(--mono); font-size: 1.5rem; font-weight: 700; line-height: 1.4; }
.modules span { color: var(--dim); }
.course-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.course-buy { max-width: 440px; margin-top: 28px; }
.course-buy__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (max-width: 820px) { .course-head { grid-template-columns: 1fr; } }

/* Вопросы */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--amber); font-family: var(--mono); font-size: 1.4rem; line-height: 1.2; transition: transform var(--fast) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding-bottom: 18px; color: var(--dim); }
@media (max-width: 820px) { .faq-wrap { grid-template-columns: 1fr; } }

/* Призыв внизу */
.cta__box {
  padding: clamp(36px, 6vw, 64px) clamp(20px, 4vw, 48px);
  border: 1px solid rgba(245, 184, 65, 0.35);
  border-radius: var(--r-lg);
  background: radial-gradient(520px 260px at 50% 0%, rgba(245, 184, 65, 0.18), transparent 70%), var(--panel);
  text-align: center;
}
.cta__box .lead { margin-inline: auto; }

/* Пакеты видео */
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pack { display: flex; flex-direction: column; align-items: flex-start; }
.pack--first { border-color: rgba(245, 184, 65, 0.5); background: radial-gradient(320px 200px at 80% 0%, rgba(245, 184, 65, 0.14), transparent 70%), var(--panel); }
.pack__label { margin-bottom: 4px; color: var(--dim); font-weight: 600; }
.pack--first .pack__label { color: var(--amber); }
.pack__price { margin: 0; font-size: clamp(2.4rem, 2rem + 1.4vw, 3.1rem); font-weight: 700; line-height: 1.2; }
.pack__price .num { font-weight: 700; }
.pack__count { margin-bottom: 12px; font-weight: 600; }
.pack__note { color: var(--dim); font-size: 0.95rem; }
.pack .chip { margin-top: auto; }
@media (max-width: 860px) { .packs { grid-template-columns: 1fr; } }

/* Таблицы */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
table { width: 100%; min-width: 520px; border-collapse: collapse; }
th, td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
th { background: var(--panel-2); color: var(--dim); font-size: 0.9rem; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td { color: var(--dim); }
td strong { color: var(--text); }
td:first-child { color: var(--text); }
.cell-price { color: var(--text); font-weight: 600; white-space: nowrap; }

/* Списки */
.checks, .crosses, .plain { list-style: none; display: grid; gap: 12px; }
.checks li, .crosses li { position: relative; padding-inline-start: 34px; }
.checks li::before, .crosses li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.35em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(61, 220, 132, 0.14) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='%233ddc84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.crosses li::before { background: rgba(240, 96, 90, 0.14) center / 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 2l6 6M8 2l-6 6' fill='none' stroke='%23f0605a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.plain li { padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); }
.plain strong { color: var(--text); }
.callout { margin: 24px 0 16px; padding: 18px 22px; border: 1px solid rgba(245, 184, 65, 0.35); border-radius: var(--r); background: var(--amber-soft); }

/* Форма заявки */
.form { display: grid; gap: 18px; margin-top: 8px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 6px; font-weight: 600; }
.hint { color: var(--dim); font-size: 0.86rem; font-weight: 400; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  transition: border-color var(--fast), box-shadow var(--fast);
}
textarea { min-height: 96px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: rgba(255, 255, 255, 0.26); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 184, 65, 0.22); }
.form .btn { justify-self: start; }
.form-note { margin: 0; color: var(--dim); font-size: 0.9rem; }
.form-error { margin: 0; color: var(--red); font-weight: 600; }

/* Калькулятор */
.calc { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 24px; align-items: start; margin-top: 24px; }
.calc fieldset { margin: 0 0 28px; padding: 0; border: 0; }
.calc legend { margin-bottom: 12px; padding: 0; font-size: 1.1rem; font-weight: 700; }
.opt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 4px 14px;
  margin-bottom: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  cursor: pointer;
  transition: border-color var(--fast), background var(--fast);
}
.opt:hover { border-color: var(--line-2); }
.opt:has(input:checked) { border-color: var(--amber); background: rgba(245, 184, 65, 0.07); }
.opt input[type="radio"], .opt input[type="checkbox"] { flex: none; width: 20px; height: 20px; min-height: 0; margin: 5px 0 0; padding: 0; accent-color: var(--amber); }
.opt__qty { flex: none; width: 76px; min-height: 40px; padding: 6px 10px; text-align: center; font-family: var(--mono); }
.opt__body { display: grid; flex: 1; min-width: 0; }
.opt__name { font-weight: 600; }
.opt__what { color: var(--dim); font-size: 0.9rem; }
.opt__inc { display: none; color: var(--green); font-size: 0.88rem; }
.opt__price { padding-top: 2px; font-weight: 700; white-space: nowrap; }
@media (max-width: 560px) {
  .opt { grid-template-columns: auto minmax(0, 1fr); }
  .opt__price { grid-column: 2; padding-top: 0; color: var(--amber); }
}
.opt.is-included { cursor: default; opacity: 0.6; }
.opt.is-included .opt__inc { display: block; }
.opt.is-included .opt__price { text-decoration: line-through; }
.calc__result { position: sticky; top: 96px; display: grid; gap: 4px; }
.calc__result > .dim { margin: 0; }
.result__total { margin: 0 0 12px; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 700; line-height: 1.4; }
.result__total .num { color: var(--amber); font-weight: 700; }
.result__lines { list-style: none; display: grid; gap: 6px; margin-bottom: 12px; padding: 12px 0; border-block: 1px solid var(--line); color: var(--dim); font-size: 0.93rem; }
.result__lines li { display: flex; justify-content: space-between; gap: 12px; }
.result__note { margin: 4px 0 12px; color: var(--dim); font-size: 0.88rem; }
.calc__result .btn { margin-top: 4px; }
.calc__mini { display: none; }
@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .calc__result { position: static; }
  .calc__mini {
    position: sticky;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: -8px;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--amber);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.8);
    order: 1;
  }
  .calc__mini:hover { color: var(--ink); }
  .calc__result { order: 2; }
}

/* Оплата */
.pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pay--first { border-color: rgba(245, 184, 65, 0.5); }
.pay__name { margin: 6px 0 10px; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 700; }
.pay__name .num { font-weight: 700; }
.pay p:last-child { margin: 0; color: var(--dim); }
.pack__label + .pay__name { color: var(--text); }
.pay--first .pack__label { color: var(--amber); }
.support { border-color: rgba(245, 184, 65, 0.35); }
@media (max-width: 720px) { .pay-grid { grid-template-columns: 1fr; } }

/* Условия */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.toc a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font-size: 0.92rem; text-decoration: none; }
.toc a:hover { border-color: var(--amber); }
.prose { padding-bottom: var(--space-section); }
.prose section { padding-top: 32px; }
.prose h2 { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.prose h3 { margin-top: 24px; }
.prose ul { display: grid; gap: 10px; padding-inline-start: 22px; }
.prose li { color: var(--dim); }
.prose li::marker { color: var(--amber); }
.en { color: var(--dim); font-size: 0.6em; font-weight: 500; }

/* Подвал */
.foot { padding-block: 48px calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--bg-2); color: var(--dim); }
.foot__in { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.foot__about { max-width: 36ch; margin-top: 12px; }
.foot__nav { display: grid; align-content: start; gap: 8px; }
.foot__nav a { color: var(--dim); text-decoration: none; }
.foot__nav a:hover { color: var(--text); }
.foot__note { margin: 32px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.85rem; }
@media (max-width: 760px) { .foot__in { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Цифры аккаунтов (из дашборда при сборке) */
.proof .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { display: grid; gap: 2px; padding: 20px 22px; }
.stat__num { margin: 0; color: var(--amber); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); font-weight: 700; line-height: 1.25; }
.stat__num .num { font-weight: 700; }
.stat__label { margin: 0; color: var(--dim); }
.stats__note { margin: 14px 0 0; color: var(--dim); font-size: 0.9rem; }
.stats__note a { color: var(--text); text-decoration: none; }
.stats__note a:hover { color: var(--amber); }
@media (max-width: 760px) { .proof .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Кто стоит за сайтом */
.about { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); align-items: center; max-width: 900px; }
.about__img { width: 160px; height: 160px; border-radius: 50%; box-shadow: 0 0 0 3px var(--amber), 0 0 40px rgba(245, 184, 65, 0.4); }
.about__text p:last-child { margin: 0; }
.about__text a { color: var(--text); text-decoration: none; }
.about__text a:hover { color: var(--amber); }
@media (max-width: 600px) { .about { grid-template-columns: 1fr; justify-items: start; } .about__img { width: 120px; height: 120px; } }

/* Возврат денег и прямой путь в WhatsApp */
.guarantee { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; color: var(--text); font-weight: 600; }
.guarantee::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(61, 220, 132, 0.14) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='%233ddc84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.guarantee--sm { margin: 0; color: var(--dim); font-size: 0.9rem; font-weight: 400; }
.wa-direct { margin: -4px 0 16px; color: var(--dim); }

/* Нижняя панель на телефоне: появляется, когда кнопки первого экрана ушли вверх */
.mbar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  body[data-page="projects"], body[data-page="404"] { padding-bottom: 0; }
  .mbar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 10px;
    padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: rgba(14, 15, 18, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 320ms var(--ease);
  }
  .mbar .btn { min-height: 46px; padding: 0 12px; }
  .js .mbar:not(.is-on), .mbar.is-typing { transform: translateY(110%); }
  body[data-page="projects"] .mbar, body[data-page="404"] .mbar { display: none; }
}

/* Lesson page (claude-video-editing, 30.11.2026): the lesson behind the Direct reply of the hit */
.lat { direction: ltr; unicode-bidi: isolate; font-family: var(--mono); font-size: 0.92em; }
.lesson-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.lesson-need { display: grid; gap: 10px; max-width: 860px; padding: 0; list-style: none; }
.lesson-need li { padding: 14px 18px; border-inline-start: 3px solid var(--amber); background: var(--panel); border-radius: 0 var(--r) var(--r) 0; }
.lesson-steps li strong { font-size: 1.1rem; }
.lesson-prompts { display: grid; gap: 18px; max-width: 860px; margin-top: 22px; }
.prompt__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.prompt__text { margin: 0; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2); font-size: 1.08rem; line-height: 1.9; }
.prompt__text mark { background: var(--amber-soft); color: var(--amber); padding: 0 4px; border-radius: 6px; }
.prompt__tip { margin: 12px 0 0; }
.lesson-follow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 20px 0 0; }
.lesson-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1000px; }
.lesson-next h3 { margin-top: 0; }
@media (max-width: 900px) { .lesson-next { grid-template-columns: 1fr; } }
.lesson-pc { margin: 14px 0 0; padding: 10px 14px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--dim); font-size: 0.95rem; max-width: 62ch; }
.lesson-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; max-width: 1000px; padding: 0; list-style: none; }
.lesson-tools li { display: grid; gap: 2px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.lesson-tools a { font-weight: 700; text-decoration: none; }
