/* ============================================================
   Гастроль — Noir & Gold landing
   Концертно-плакатный стиль: монохром + золото на bone-фоне.
   Светлая тема по умолчанию, тёмная через [data-theme="dark"].
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand constants */
  --brand: #c9a84c;        /* gold */
  --brand-light: #f0d78c;
  --brand-deep: #a8842f;
  --ink: #0d0d0d;
  --canvas: #f3efe6;       /* bone */
  --accent: #ff5f1f;       /* orange */

  /* Semantic — light (default) */
  --bg: #f3efe6;
  --surface: #fbf9f2;
  --surface-2: #ebe4d4;
  --text: #0d0d0d;
  --text-muted: #6b6456;
  --text-faint: #9a9384;
  --border: rgba(13, 13, 13, 0.13);
  --hairline: rgba(13, 13, 13, 0.10);
  --shadow: 0 24px 60px -32px rgba(13, 13, 13, 0.45);
  --shadow-sm: 0 8px 24px -16px rgba(13, 13, 13, 0.4);

  /* Type */
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Geometry */
  --radius: 4px;
  --radius-lg: 8px;
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --text: #f3efe6;
  --text-muted: #9a958a;
  --text-faint: #6b6658;
  --border: rgba(243, 239, 230, 0.13);
  --hairline: rgba(243, 239, 230, 0.08);
  /* --canvas остаётся bone: это «светлый» цвет для текста на тёмных плашках
     (toast, CTA-блок, активные чипы). Фон страницы управляется через --bg. */
  --shadow: 0 24px 60px -32px rgba(0, 0, 0, 0.8);
  --shadow-sm: 0 8px 24px -16px rgba(0, 0, 0, 0.7);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }

::selection { background: var(--brand); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--canvas);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.section-alt { background: var(--surface); }

.section__header { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Mono micro-labels ---------- */
.mono,
.problem-card__unit,
.venue-tags .tag,
.hero__cities {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  text-transform: uppercase;
}
.section-subtitle {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 56ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--brand);
  color: var(--ink);
  border-color: var(--brand);
}
.btn-primary:hover { background: var(--brand-light); border-color: var(--brand-light); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--text); background: var(--surface-2); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.header.scrolled { border-bottom-color: var(--border); }

.header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.logo__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--ink);
  border-radius: var(--radius);
}
.logo__mark svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.logo__tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  padding-left: 0.7rem;
  border-left: 1px solid var(--border);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-inline-start: auto;
}
.nav a {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-block: 0.3rem;
  transition: color 0.2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--brand);
  transition: width 0.25s ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang-switch button {
  padding: 0.4rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: background-color 0.2s, color 0.2s;
}
.lang-switch button.active { background: var(--ink); color: var(--canvas); }
[data-theme="dark"] .lang-switch button.active { background: var(--brand); color: var(--ink); }

.icon-toggle, .hamburger {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}
.icon-toggle:hover, .hamburger:hover { color: var(--text); border-color: var(--text); }
.icon-toggle svg, .hamburger svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.hamburger { display: none; }

.header__enter { display: inline-flex; }
.header__enter-mobile { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 78vh, 820px);
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 55% at 88% 35%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 68%),
    radial-gradient(ellipse 50% 40% at 0% 100%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
  opacity: 0.8;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero__text { max-width: min(860px, 74%); }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 1.5rem;
}
[data-theme="dark"] .hero__badge { color: var(--brand); }
.hero__badge span:first-child {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

.hero__wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(3.6rem, 14vw, 11rem);
  line-height: 0.84;
  letter-spacing: -0.04em;
  margin-bottom: 1.6rem;
}
.hero__wordmark .accent-text {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}
[data-theme="dark"] .hero__wordmark .accent-text { -webkit-text-stroke-color: var(--brand); }

.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 500;
  max-width: 30ch;
  color: var(--text);
  margin-bottom: 1.75rem;
}
.hero__subtitle b { color: var(--brand-deep); font-weight: 700; }
[data-theme="dark"] .hero__subtitle b { color: var(--brand); }

.hero__cities {
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
}
.hero__cities span { position: relative; }
.hero__cities span:not(:last-child)::after {
  content: "·";
  margin-left: 0.9rem;
  color: var(--brand);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.75rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.stat-card {
  padding: 1.1rem 1rem 0;
  border-right: 1px solid var(--border);
}
.stat-card:last-child { border-right: none; }
.stat-card__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}
.stat-card__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.3rem;
}

/* Hero visual — all-access pass as a soft, blurred backdrop */
.hero__visual {
  position: absolute;
  inset: 0 -2% 0 auto;
  width: clamp(420px, 52vw, 760px);
  z-index: 1;
  pointer-events: none;
}
.hero__pass {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%) rotate(5deg);
  width: clamp(340px, 38vw, 540px);
  aspect-ratio: 1 / 1;
}
.hero__pass img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
  filter: blur(1.2px) saturate(1.08) contrast(1.04);
  opacity: 0.85;
  -webkit-mask-image: radial-gradient(ellipse 74% 82% at 60% 50%, #000 48%, transparent 82%);
          mask-image: radial-gradient(ellipse 74% 82% at 60% 50%, #000 48%, transparent 82%);
}
[data-theme="dark"] .hero__pass img {
  opacity: 0.72;
  mix-blend-mode: luminosity;
}
.hero__pass-corner { display: none; }

/* ---------- "Кому это надо" ---------- */
.who__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}
.who-card {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid var(--border);
  position: relative;
  transition: background-color 0.25s ease;
}
.who-card:last-child { border-right: none; }
.who-card:hover { background: var(--surface); }
.who-card__tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
}
.who-card__tag b { color: var(--accent); font-weight: 600; }
.who-card h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.who-card p { color: var(--text-muted); }

/* ---------- Problem ---------- */
.problem__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.problem-card {
  padding: 2rem 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.section-alt .problem-card { background: var(--bg); }
.problem-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.problem-card:hover::before { transform: scaleX(1); }
.problem-card__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
  color: var(--brand-deep);
  line-height: 1;
}
[data-theme="dark"] .problem-card__number { color: var(--brand); }
.problem-card__unit {
  color: var(--text-faint);
  margin-bottom: 1.25rem;
}
.problem-card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.problem-card__icon svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--accent);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.problem-card h3 {
  font-size: 1.2rem;
  text-transform: none;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.problem-card p { color: var(--text-muted); font-size: 0.95rem; }
.problem-card__sol {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--border);
  font-size: 0.9rem !important;
  font-weight: 600;
  color: var(--text) !important;
  display: flex;
  gap: 0.5rem;
}
.problem-card__sol-mark { color: var(--brand-deep); font-weight: 700; }
[data-theme="dark"] .problem-card__sol-mark { color: var(--brand); }

/* ---------- Modules ---------- */
.modules__layout {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.chip-list { display: flex; flex-direction: column; gap: 0.5rem; }
.chip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-muted);
  text-align: left;
  transition: all 0.2s ease;
}
.chip svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.chip:hover { color: var(--text); border-color: var(--text); }
.chip.active {
  background: var(--ink);
  color: var(--canvas);
  border-color: var(--ink);
}
.chip.active svg { stroke: var(--brand); }
[data-theme="dark"] .chip.active { background: var(--surface-2); border-color: var(--brand); color: var(--text); }

.feature-card {
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  min-height: 100%;
  animation: fadeUp 0.4s ease;
}
.feature-card h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.feature-card h3 svg {
  width: 28px; height: 28px;
  fill: none; stroke: var(--brand-deep);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
[data-theme="dark"] .feature-card h3 svg { stroke: var(--brand); }
.feature-card p { color: var(--text-muted); margin-bottom: 1.5rem; }
.feature-list { display: grid; gap: 0.7rem; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
}
.feature-list svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  fill: none; stroke: var(--accent);
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- TOUR DATES (always-dark break) ---------- */
.tour-dates {
  background: #0c0b09;
  color: #f3efe6;
  padding-block: clamp(4rem, 9vw, 8rem);
  position: relative;
}
.tour-dates__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.tour-dates h2 {
  font-size: clamp(2.4rem, 7vw, 5rem);
  text-transform: uppercase;
  color: #f3efe6;
}
.tour-dates h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--brand);
}
.tour-dates__note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}
.tour-dates__list { border-top: 1px solid rgba(243, 239, 230, 0.14); }
.date-row {
  display: grid;
  grid-template-columns: 130px 1fr 160px 110px;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 0.5rem;
  border-bottom: 1px solid rgba(243, 239, 230, 0.14);
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}
.date-row:hover {
  background: rgba(243, 239, 230, 0.04);
  padding-left: 1.25rem;
}
.date-row__date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
}
.date-row__city {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.date-row__venue {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.55);
}
.date-row__status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
}
.date-row__status.sold { color: var(--accent); }
.date-row__status.onsale { color: var(--brand); }
.date-row__status.tba { color: rgba(243, 239, 230, 0.4); }

/* ---------- Demo ---------- */
.demo__layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}
.route-panel, .daysheet-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.route-panel h3, .daysheet-panel h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.route-panel h3 svg, .daysheet-panel h3 svg {
  width: 18px; height: 18px;
  fill: none; stroke: var(--brand-deep);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
[data-theme="dark"] .route-panel h3 svg, [data-theme="dark"] .daysheet-panel h3 svg { stroke: var(--brand); }

.route-list { display: grid; gap: 0.5rem; }
.route-item {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
  opacity: 0;
}
.route-item:hover { border-color: var(--text); transform: translateX(3px); }
.route-item.active {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 9%, transparent);
}
.route-item__city { font-weight: 700; font-size: 0.98rem; }
.route-item__venue {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.25rem;
}

.daysheet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.day-tab {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: all 0.2s;
}
.day-tab:hover { color: var(--text); border-color: var(--text); }
.day-tab.active { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
[data-theme="dark"] .day-tab.active { background: var(--brand); color: var(--ink); border-color: var(--brand); }

.daysheet-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.timeline { display: grid; gap: 0; position: relative; }
.tl-item {
  display: grid;
  grid-template-columns: 60px 24px 1fr;
  gap: 0.5rem;
  padding-bottom: 1.25rem;
  position: relative;
}
.tl-time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding-top: 0.1rem;
  color: var(--text-muted);
}
.tl-dot {
  position: relative;
  display: flex;
  justify-content: center;
}
.tl-dot::before {
  content: "";
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--text-faint);
  margin-top: 0.25rem;
  z-index: 1;
}
.tl-item.key .tl-dot::before { background: var(--brand); border-color: var(--brand); }
.tl-item:not(:last-child) .tl-dot::after {
  content: "";
  position: absolute;
  top: 0.7rem; bottom: -1.25rem;
  width: 2px;
  background: var(--border);
}
.tl-card {
  padding-bottom: 0.25rem;
}
.tl-title { font-weight: 700; font-size: 0.98rem; }
.tl-item.key .tl-title { color: var(--brand-deep); }
[data-theme="dark"] .tl-item.key .tl-title { color: var(--brand); }
.tl-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ---------- Venues ---------- */
.venues__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.venue-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.venue-card h3 {
  font-size: 1.4rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.venue-card p { color: var(--text-muted); margin-bottom: 1.5rem; }
.venue-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.venue-tags .tag {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.radius-demo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.radius-chip {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  transition: all 0.2s;
}
.radius-chip:hover { border-color: var(--text); }
.radius-chip.active { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
[data-theme="dark"] .radius-chip.active { background: var(--brand); color: var(--ink); border-color: var(--brand); }
.radius-result {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
}
.radius-result.ok { color: var(--brand-deep); border-color: color-mix(in srgb, var(--brand) 50%, transparent); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.radius-result.conflict { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* ---------- Pricing ---------- */
.pricing__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.pricing__toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.pricing__toggle button {
  padding: 0.6rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: all 0.2s;
}
.pricing__toggle button.active { background: var(--ink); color: var(--canvas); }
[data-theme="dark"] .pricing__toggle button.active { background: var(--brand); color: var(--ink); }

.pricing__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.price-card.popular {
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.popular-badge {
  position: absolute;
  top: -0.75rem; left: 1.5rem;
  background: var(--brand);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}
.price-card h3 { font-size: 1.1rem; text-transform: uppercase; margin-bottom: 1rem; }
.price-card__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.price-card__price small {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}
.price-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  min-height: 3.4em;
}
.price-card ul { display: grid; gap: 0.55rem; margin-bottom: 1.5rem; flex: 1; }
.price-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
}
.price-card li svg {
  width: 16px; height: 16px;
  flex-shrink: 0; margin-top: 0.2rem;
  fill: none; stroke: var(--brand-deep);
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
[data-theme="dark"] .price-card li svg { stroke: var(--brand); }

.price-note {
  margin-top: 2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* ---------- Bitrix24 modal ---------- */
.b24-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  /* скрыто, но форма Битрикс инициализируется в DOM — visibility не мешает iframe */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.b24-modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.b24-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.b24-modal__box {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--brand);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 40px 80px -10px rgba(13, 13, 13, 0.5);
  animation: modalIn 0.22s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.b24-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  z-index: 10;
  cursor: pointer;
  transition: background 0.15s;
}
.b24-modal__close:hover { background: var(--surface); }
.b24-modal__close svg { width: 14px; height: 14px; }

/* Bitrix24 form sits inside #b24FormContainer — give it room */
#b24FormContainer { min-height: 200px; }

/* ---------- CTA ---------- */
.cta__box {
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta__box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% -10%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 70%);
  pointer-events: none;
}
[data-theme="dark"] .cta__box {
  background: var(--surface);
  border: 1px solid var(--border);
}
.cta__box > * { position: relative; }
.cta__box h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-transform: uppercase;
  color: var(--canvas);
  margin-bottom: 1rem;
}
.cta__box p { color: rgba(243, 239, 230, 0.7); max-width: 50ch; margin: 0 auto 2rem; }
.cta__btn {
  display: inline-flex;
  margin-bottom: 1.5rem;
}
.cta__note {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: rgba(243, 239, 230, 0.45);
}

/* Flash highlight when arriving at #contact via anchor */
@keyframes contactPulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 50%, transparent); }
  60%  { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.contact:target .contact__form-wrap {
  animation: contactPulse 1s ease forwards;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}
.footer a { transition: color 0.2s; }
.footer a:hover { color: var(--text); }

/* ---------- Toast ---------- */
#toastArea {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  pointer-events: none;
}
.toast {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--ink);
  color: var(--canvas);
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease;
}
.toast svg {
  width: 16px; height: 16px;
  fill: none; stroke: var(--brand);
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: none; }
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes tlIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ---------- Grain overlay ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 400;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
[data-theme="dark"] body::after { mix-blend-mode: screen; opacity: 0.05; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { min-height: clamp(480px, 70vh, 640px); }
  .hero__text { max-width: 100%; }
  .hero__visual { width: 70%; inset: 0 -10% auto auto; top: 8%; }
  .hero__pass { transform: rotate(6deg); width: clamp(260px, 50vw, 380px); }
  .hero__pass img { opacity: 0.4; }
  .modules__layout { grid-template-columns: 1fr; }
  .chip-list { flex-direction: row; flex-wrap: wrap; }
  .chip { flex: 1 1 auto; }
  .demo__layout { grid-template-columns: 1fr; }
  .venues__cards { grid-template-columns: 1fr; }
  .pricing__cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .hamburger { display: grid; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(82vw, 320px);
    z-index: 120;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.75rem;
    padding: 2rem;
    background: var(--bg);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow);
    /* Сдвиг держим в пределах экрана (не translateX(100%)), иначе
       fixed-панель создаёт горизонтальную прокрутку всей страницы. */
    opacity: 0;
    visibility: hidden;
    transform: translateX(18px);
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s;
    margin-inline-start: 0;
  }
  .nav.open { opacity: 1; visibility: visible; transform: translateX(0); }
  .nav a { font-size: 1rem; }
  .header__enter { display: none; }
  .header__enter-mobile { display: inline-flex; color: var(--brand-deep); }
  .logo__tag { display: none; }

  .who__grid { grid-template-columns: 1fr; }
  .who-card { border-right: none; border-bottom: 1px solid var(--border); }
  .who-card:last-child { border-bottom: none; }

  .problem__cards { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-right: none; }
  .stat-card { border-bottom: 1px solid var(--border); padding-bottom: 1rem; }

  .date-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "city status"
      "venue venue"
      "date date";
    row-gap: 0.3rem;
  }
  .date-row__date { grid-area: date; font-size: 1rem; color: var(--brand); }
  .date-row__city { grid-area: city; }
  .date-row__venue { grid-area: venue; }
  .date-row__status { grid-area: status; }

  .pricing__cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
