/* ============================================================
   GigaBop — design system v1.1
   Aesop / Crit / Yeezy Gap inspired
   Dark by default, light as toggle option.
   ============================================================ */

:root {
  --lime: #bef264;
  --lime-shadow: rgba(190, 242, 100, 0.55);

  /* type — Onest для display (geometric, отличная кириллица) */
  --font-display: 'Onest', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* rhythm */
  --container: 1320px;
  --pad-x: clamp(20px, 4vw, 72px);
}

/* defaults (если data-theme не установлен) — light cream */
:root, [data-theme="light"] {
  --paper: #f4efe6;
  --paper-2: #ecdfd0;
  --ink: #1a1410;
  --ink-2: #4a423a;
  --ink-3: #8a8278;
  --rule: rgba(26, 20, 16, 0.12);
  --rule-strong: rgba(26, 20, 16, 0.32);
  --shadow-soft: rgba(26, 20, 16, 0.05);
  --highlight-fg: #0f0d0b;       /* цвет текста ВНУТРИ lime-highlight'а */
  color-scheme: light;
}

/* dark themes — 3 палитры под лаймовый акцент,
   подобраны по color theory: холодный фон + тёплый кремовый текст */

/* default dark = charcoal (tech-noir, лайм как неон) */
[data-theme="dark"],
[data-theme="dark-charcoal"] {
  --paper: #0e1014;
  --paper-2: #1a1d22;
  --ink: #f5ecd8;
  --ink-2: #c9bfa9;
  --ink-3: #6e7480;
  --rule: rgba(245, 236, 216, 0.10);
  --rule-strong: rgba(245, 236, 216, 0.28);
  --shadow-soft: rgba(245, 236, 216, 0.04);
  --highlight-fg: #0e1014;
  color-scheme: dark;
}

/* plum — комплиментарный фиолетовый, креативная атмосфера */
[data-theme="dark-plum"] {
  --paper: #171019;
  --paper-2: #221a26;
  --ink: #f5ecd8;
  --ink-2: #c9b9c9;
  --ink-3: #7a6c7a;
  --rule: rgba(245, 236, 216, 0.10);
  --rule-strong: rgba(245, 236, 216, 0.28);
  --shadow-soft: rgba(245, 236, 216, 0.04);
  --highlight-fg: #171019;
  color-scheme: dark;
}

/* midnight — премиум navy, Linear/Stripe эстетика */
[data-theme="dark-midnight"] {
  --paper: #0a1018;
  --paper-2: #141c28;
  --ink: #f5ecd8;
  --ink-2: #b9c4d4;
  --ink-3: #5d6a7a;
  --rule: rgba(245, 236, 216, 0.10);
  --rule-strong: rgba(245, 236, 216, 0.28);
  --shadow-soft: rgba(245, 236, 216, 0.04);
  --highlight-fg: #0a1018;
  color-scheme: dark;
}

/* espresso — тёплая землистая (как было в самой первой версии) */
[data-theme="dark-espresso"] {
  --paper: #15110d;
  --paper-2: #1f1a14;
  --ink: #f5ecd8;
  --ink-2: #c9b89a;
  --ink-3: #7a6c5a;
  --rule: rgba(245, 236, 216, 0.10);
  --rule-strong: rgba(245, 236, 216, 0.28);
  --shadow-soft: rgba(245, 236, 216, 0.04);
  --highlight-fg: #15110d;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--lime); color: #0f0d0b; }

/* ============================================================
   layout primitives
   ============================================================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.rule { border: 0; height: 1px; background: var(--rule); margin: 0; }

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.label.dim { color: var(--ink-3); }

/* ============================================================
   nav
   ============================================================ */

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--pad-x);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  transition: background .3s, border-color .3s;
}
.nav-logo {
  display: flex; align-items: baseline; gap: 4px;
}
.nav-logo {
  color: var(--ink);  /* currentColor для SVG <use> */
}
.nav-logo svg {
  height: 42px; width: auto;
  display: block;
}
.nav-logo:hover { opacity: .8; }

.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: lowercase;
}
.nav-links a:hover { color: var(--ink-3); }
.nav-cta {
  padding: 9px 16px;
  background: var(--lime);
  color: var(--highlight-fg, #0f0d0b) !important;
  border-radius: 999px;
  font-weight: 600;
  transition: background .2s, transform .2s, color .2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--ink);
  color: var(--paper) !important;
}
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ============================================================
   theme toggle
   ============================================================ */

.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.theme-toggle:hover {
  background: var(--paper-2);
  border-color: var(--ink);
}
.theme-toggle svg { display: block; }
/* light → показываем луну (намекаем «можно в тёмное») */
[data-theme="light"] .theme-toggle .t-sun  { display: none;  }
[data-theme="light"] .theme-toggle .t-moon { display: block; }
/* любая тёмная → показываем солнце */
[data-theme="dark"] .theme-toggle .t-sun,
[data-theme="dark-charcoal"] .theme-toggle .t-sun,
[data-theme="dark-plum"] .theme-toggle .t-sun,
[data-theme="dark-midnight"] .theme-toggle .t-sun { display: block; }
[data-theme="dark"] .theme-toggle .t-moon,
[data-theme="dark-charcoal"] .theme-toggle .t-moon,
[data-theme="dark-plum"] .theme-toggle .t-moon,
[data-theme="dark-midnight"] .theme-toggle .t-moon { display: none; }

/* компактный вариант — только иконка, для navbar */
.theme-toggle.is-compact {
  padding: 8px;
  width: 36px; height: 36px;
  justify-content: center;
  gap: 0;
}
.theme-toggle.is-compact .t-label { display: none; }

/* ============================================================
   PHYSICS BALLS — резиновые лаймовые мячики внизу страницы
   ============================================================ */
.balls-canvas {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 200px;
  pointer-events: none;
  z-index: 4;
  display: block;
}
@media (max-width: 720px) { .balls-canvas { height: 140px; } }

/* hl-mid — middle highlight для inline-фраз. та же формула */
.hl-mid {
  font-style: normal;
  display: inline-block;
  background: var(--lime);
  color: var(--highlight-fg);
  padding: .24em .26em;
  margin: -.24em -.07em;
  border-radius: 4px;
  transform: rotate(-1deg);
  position: relative;
  z-index: 2;
  line-height: 1;
  vertical-align: baseline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ============================================================
   HUGE H2 + HL-BIG — формат как на /history/
   огромный заголовок с лаймовым блоком, который наезжает на соседние строки
   ============================================================ */

.huge-h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 11vw, 180px) !important;
  line-height: .92 !important;
  letter-spacing: -.04em !important;
  text-transform: none !important;
  margin-left: -0.05em;
  position: relative;
}
.huge-h2 .hl-big {
  font-style: normal;
  display: inline-block;
  background: var(--lime);
  color: var(--highlight-fg);
  padding: .2em .22em;
  margin: -.2em 0 -.2em -.04em;
  border-radius: 4px;
  transform: rotate(-1deg);
  position: relative;
  z-index: 2;
  line-height: 1;
  vertical-align: baseline;
}

/* hero rotator — один em меняет textContent, ширина зафиксирована JS */
.hero-rotator {
  text-align: center;
  white-space: nowrap;
  transition: opacity .32s ease;
}

/* ============================================================
   OVERLAP LANGUAGE — фирменный приём: всё немного наезжает
   ============================================================ */

/* hero mark уезжает за правый край viewport — наш базовый приём */
.hero-mark svg {
  width: 110%;             /* шире контейнера, обрезается viewport */
  margin-left: -5%;
}

/* нумерация секций «/ 01» свешивается влево за рамку контента */
.block-head .num, .step-row .step-num, .genre-row .num,
.faq-item summary::before, .anti-list li span {
  position: relative;
}

/* секции наезжают друг на друга через минусовой margin-top */
section.block + section.block { margin-top: -1px; }   /* стык границ */

/* big-cta частично наезжает на предыдущую секцию: жирная диагональ */
.bigcta {
  margin-top: -60px;
  position: relative;
  z-index: 2;
  clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
}
@media (max-width: 720px) {
  .bigcta { margin-top: -30px; clip-path: polygon(0 30px, 100% 0, 100% 100%, 0 100%); }
}

/* footer mark снизу заходит на bigcta */
.foot { padding-top: 0; }
.foot-grid { padding-top: 64px; }
.foot-mark { transform: translateY(-50%); margin-bottom: -36px; display: inline-block; }
.foot-mark svg { background: var(--paper); padding: 12px 16px; border-radius: 6px; box-shadow: 0 0 0 1px var(--rule); }

/* hero claim наезжает на гигантский wordmark снизу */
.hero-top {
  padding-bottom: 0;
  margin-bottom: -40px;       /* претендует на пространство wordmark'а */
  position: relative;
  z-index: 4;
}
@media (max-width: 720px) { .hero-top { margin-bottom: -20px; } }

/* секционные h2 свешиваются влево за грид и слегка наезжают на номер */
.block-head h2 { margin-left: -0.04em; }

/* genre-row: эмодзи слегка переезжает на номер */
.genre-row .emoji { margin-left: -16px; }

/* voices: одна цитата наезжает на соседнюю через z-index dance */
.voice:hover {
  position: relative;
  z-index: 3;
  background: var(--paper-2);
  transform: scale(1.02);
  transition: transform .3s, background .3s;
}

/* ============================================================
   hero
   ============================================================ */

.hero {
  position: relative;
  padding: 56px 0 0;
  border-bottom: 1px solid var(--rule);
}
.hero-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 0 var(--pad-x) 40px;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-claim {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.25;
  max-width: 680px;
  text-transform: none;
  letter-spacing: -.01em;
  color: var(--ink);
}
/* формула «плашка выше строки и наезжает на соседей»:
   - line-height: 1 (text занимает 1em)
   - padding-y: большой (.45em — плашка становится 1.9em высотой)
   - margin-y: отрицательный того же размера (parent line не растягивается)
   результат: плашка реально выше своей строки и накладывается сверху и снизу */
.hero-claim em.hl,
.block-head h2 em.hl,
.bigcta-title em,
.anti-list em,
.step-row p em.hl,
.faq-item p em.hl,
.manifesto-body em.hl,
mark.hl {
  font-style: normal;
  background: var(--lime);
  color: var(--highlight-fg);
  padding: .27em .28em;
  margin: -.27em -.08em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transform: rotate(-1deg);
  display: inline-block;
  position: relative;
  z-index: 2;
  line-height: 1;
  vertical-align: baseline;
}

/* в больших h2 — ещё сильнее наплыв */
.block-head h2 em.hl {
  padding: .3em .26em;
  margin: -.3em -.06em;
  transform: rotate(-1.5deg);
}

/* the giant wordmark */
.hero-mark {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.hero-mark {
  color: var(--ink);
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  line-height: .85;
  padding: 0;
  /* зона как у изначального svg варианта */
  height: clamp(220px, 44vw, 760px);
  display: flex;
  align-items: center;
}
.hero-mark-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(240px, 46vw, 800px);
  letter-spacing: -.05em;
  line-height: 1;
  white-space: nowrap;
  display: inline-block;
  position: relative;
  padding-right: .25em;       /* место под точку */
  will-change: transform;
  /* transition убран — теперь анимация через JS lerp в raf-loop */
  color: var(--ink);
}
/* лаймовая точка после wordmark */
.hero-mark-text::after {
  content: "";
  display: inline-block;
  width: .14em;
  height: .14em;
  border-radius: 50%;
  background: var(--lime);
  margin-left: -.05em;
  vertical-align: text-bottom;
  margin-bottom: .12em;
  position: relative;
  top: -.04em;
}

.hero-foot {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 36px var(--pad-x);
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero-foot strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -.02em;
  color: var(--ink);
  text-transform: none;
  margin-bottom: 4px;
  line-height: 1;
}
.hero-foot .row-title {
  font-family: var(--font-body);
  font-size: 14px;
  text-transform: none;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.4;
}
@media (max-width: 900px) {
  .hero-foot { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   sections — editorial blocks
   ============================================================ */

section.block {
  padding: 96px var(--pad-x);
  border-bottom: 1px solid var(--rule);
}
section.block:last-of-type { border-bottom: none; }

.block-head {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 30px;
  align-items: baseline;
  margin-bottom: 64px;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}
.block-head .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: .15em;
}
.block-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 1;
  letter-spacing: -.03em;
  text-transform: none;
}
.block-head h2 em { font-style: normal; color: var(--ink-3); }

.block-body {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 30px;
  max-width: var(--container);
  margin: 0 auto;
}

/* manifesto */
.manifesto-body {
  display: grid;
  grid-template-columns: 80px repeat(3, 1fr);
  gap: 30px;
  max-width: var(--container);
  margin: 0 auto;
}
.manifesto-body p {
  grid-column: span 1;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}
.manifesto-body p:first-of-type { grid-column: 2 / span 1; }
@media (max-width: 900px) {
  .manifesto-body { grid-template-columns: 1fr; }
  .manifesto-body p, .manifesto-body p:first-of-type { grid-column: 1; }
}

/* how — step list */
.steps {
  display: flex;
  flex-direction: column;
  margin-top: -32px;
}
.step-row {
  display: grid;
  grid-template-columns: 80px 1fr 280px;
  gap: 30px;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
  transition: background .25s;
}
.step-row:last-child { border-bottom: 1px solid var(--rule); }
.step-row:hover { background: var(--shadow-soft); }
.step-row .step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: .15em;
}
.step-row h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: none;
}
.step-row p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .step-row { grid-template-columns: 80px 1fr; }
  .step-row p { grid-column: 2; }
}

/* genres */
.genres-list {
  display: flex;
  flex-direction: column;
}
.genre-row {
  display: grid;
  grid-template-columns: 80px 90px 1fr 110px;
  gap: 30px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
  transition: padding .25s, background .25s;
  cursor: default;
}
.genre-row:last-child { border-bottom: 1px solid var(--rule); }
.genre-row:hover { background: var(--shadow-soft); padding-left: 12px; }
.genre-row .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .12em;
}
.genre-row .emoji { font-size: 26px; line-height: 1; }
.genre-row .name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1;
  letter-spacing: -.015em;
  text-transform: none;
}
.genre-row .desc {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.4;
  display: block;
  margin-top: 6px;
}
.genre-row .bpm {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-3);
  text-align: right;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .genre-row { grid-template-columns: 30px 1fr 60px; gap: 14px; }
  .genre-row .num { display: none; }
}

/* ideas */
.ideas-stage {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 30px;
  margin-top: -24px;
}
.ideas-card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 60px 56px;
  border-radius: 4px;
  display: flex; flex-direction: column;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.ideas-meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ideas-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25;
  letter-spacing: -.015em;
  text-transform: none;
  color: var(--ink);
  flex: 1;
  min-height: 130px;
}
.ideas-tag {
  display: inline-flex;
  width: max-content;
  padding: 6px 14px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ideas-controls { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.ideas-card.is-rolling .ideas-text { animation: rollOut .26s cubic-bezier(.4,.7,.4,1); }
@keyframes rollOut {
  0%   { opacity: 1; transform: translateY(0) }
  50%  { opacity: 0; transform: translateY(-8px) }
  51%  { opacity: 0; transform: translateY(8px) }
  100% { opacity: 1; transform: translateY(0) }
}
@media (max-width: 900px) {
  .ideas-stage { grid-template-columns: 1fr; }
  .ideas-card { padding: 32px 28px; }
}

/* voices */
.voices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.voice {
  padding: 56px 40px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.voice:nth-child(2n) { border-right: none; }
.voice blockquote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -.015em;
  text-transform: none;
  color: var(--ink);
}
.voice figcaption {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .12em;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .voices { grid-template-columns: 1fr; }
  .voice { border-right: none; padding: 36px 28px; }
}

/* faq */
.faq-list {
  display: flex; flex-direction: column;
  margin-top: -24px;
}
.faq-item {
  border-top: 1px solid var(--rule);
  transition: background .2s;
}
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  gap: 30px;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -.015em;
  text-transform: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "";
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
}
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink-3);
  text-align: right;
  transition: transform .3s;
}
.faq-item[open] { background: var(--shadow-soft); }
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--ink); }
.faq-item p {
  padding: 0 var(--pad-x) 32px 110px;
  color: var(--ink-2);
  max-width: 720px;
  font-size: 16px;
}
@media (max-width: 720px) {
  .faq-item summary { grid-template-columns: 30px 1fr 28px; gap: 14px; padding: 20px 0; }
  .faq-item p { padding-left: 44px; }
}

/* anti */
.anti {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  max-width: var(--container);
  margin: 0 auto;
}
.anti-list { list-style: none; }
.anti-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.1;
  letter-spacing: -.015em;
  text-transform: none;
  color: var(--ink-2);
  align-items: baseline;
  transition: color .25s, padding .25s;
}
.anti-list li:hover { color: var(--ink); }
.anti-list li:last-child { border-bottom: 1px solid var(--rule); }
.anti-list li span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: .12em;
}
@media (max-width: 900px) { .anti { grid-template-columns: 1fr; gap: 30px; } }

/* lime-маркер-разделитель — фирменный приём для ритма страницы */
.lime-strip {
  display: block;
  height: 28px;
  background: var(--lime);
  /* наезжает на соседние секции через clip-path-diagonal */
  margin: -14px 0 -14px;
  position: relative;
  z-index: 3;
  clip-path: polygon(0 0, 100% 8px, 100% 100%, 0 calc(100% - 8px));
}

/* big cta — всегда espresso (хардкод), независимо от темы — фирменный «тёмный» якорь */
.bigcta {
  padding: 120px var(--pad-x);
  text-align: center;
  background: #15110d;
  color: #fbf5e8;
  border-top: none;
  border-bottom: none;
}
[data-theme="dark"] .bigcta { background: #1a1612; }  /* в dark отделяем bigcta от фона */
.bigcta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 8vw, 124px);
  line-height: 1;
  letter-spacing: -.03em;
  text-transform: none;
  margin-bottom: 64px;  /* было 36 — кнопка прилипала к em-выделению */
}
/* .bigcta-title em наследует общую формулу из верхнего правила */
.bigcta-mini {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: .55;
}

/* cta button */
.cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  transition: transform .2s ease, background .2s, color .2s, border-color .2s;
  cursor: pointer;
  border: none;
  text-decoration: none !important;
}
.cta-primary {
  background: var(--ink);
  color: var(--paper);
}
.cta-primary:hover {
  background: var(--lime);
  color: #0f0d0b;
  transform: translateY(-1px);
}
.cta-ghost {
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
}
.cta-ghost:hover {
  border-color: var(--ink);
  background: var(--paper-2);
}
.bigcta .cta-primary {
  background: var(--lime);
  color: #0f0d0b;
  font-size: 18px;
  padding: 22px 36px;
}
.bigcta .cta-primary:hover {
  background: #fbf5e8;
  color: #0f0d0b;
}
.bigcta-mini { color: rgba(251,245,232,.5); }

/* ============================================================
   HERO CTA — главная кнопка действия в первой секции
   ============================================================ */
.hero-cta-block {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 540px;
}
.hero-cta-row {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.hero-cta-primary {
  background: var(--lime);
  color: var(--highlight-fg, #0f0d0b);
  font-weight: 600;
  font-size: 17px;
  padding: 20px 32px;
}
.hero-cta-primary:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}
.hero-cta-secondary {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}
.hero-cta-secondary a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-cta-secondary a:hover { color: var(--lime); }
.hero-cta-trust {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px 14px;
}
.hero-cta-trust span::before {
  content: "·"; margin-right: 10px; opacity: .5;
}
.hero-cta-trust span:first-child::before { content: ""; margin: 0; }

/* ============================================================
   MID-CTA — повторный «убедился? пиши» между секциями
   ============================================================ */
.midcta {
  padding: 80px var(--pad-x) 100px;
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.midcta-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 28px;
}
.midcta-text em {
  font-style: normal;
  background: var(--lime);
  color: var(--highlight-fg, #0f0d0b);
  padding: 0 .12em;
  margin: 0 -.04em;
}
.midcta .cta {
  background: var(--lime);
  color: var(--highlight-fg, #0f0d0b);
  font-weight: 600;
  font-size: 16px;
  padding: 18px 30px;
}
.midcta .cta:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}
.midcta-sub {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.midcta-sub a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.midcta-sub a:hover { color: var(--lime); }

/* footer */
.foot {
  background: var(--paper);
  color: var(--ink-2);
  padding: 64px var(--pad-x) 32px;
  border-top: 1px solid var(--rule);
}
.foot-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
.foot h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
  font-weight: 400;
}
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.foot a:hover { color: var(--ink); }
.foot-mark { color: var(--ink); display: inline-block; }
.foot-mark svg { height: 36px; width: auto; }
.foot-claim {
  margin-top: 14px;
  font-size: 14px;
  max-width: 320px;
  color: var(--ink-2);
}
.foot-bottom {
  max-width: var(--container);
  margin: 32px auto 0;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex-wrap: wrap; gap: 16px;
}

/* v0 switch — небольшой переключатель внизу справа */
.v0-switch {
  position: fixed;
  bottom: 16px; right: 16px;
  z-index: 80;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .2s, border-color .2s;
}
.v0-switch:hover { color: var(--ink); border-color: var(--ink); }
