:root {
  --bg: #090909;
  --bg-elev: #121212;
  --bg-card: #171717;
  --text: #f5f5f5;
  --text-muted: #b7b7b7;
  --accent: #ff6e00;
  --accent-soft: #ff8e3c;
  --line: #2a2a2a;
  --success-glow: #ff9a42;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  /* Одна «ступень» сетки bracket: два ряда = высота одного матча R32 */
  --bracket-row: 44px;
  --bracket-gap: 22px;
  --bracket-line: rgba(255, 110, 0, 0.82);
  --bracket-line-glow: rgba(255, 110, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, rgba(255, 110, 0, 0.15), transparent 35%),
    linear-gradient(145deg, #070707, #101010 45%, #0d0d0d);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 8, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 1.2rem;
}

.logo span {
  color: var(--accent);
  text-shadow: 0 0 16px rgba(255, 110, 0, 0.45);
}

.nav-menu {
  display: flex;
  gap: 22px;
}

.nav-link {
  color: var(--text-muted);
  transition: 0.25s ease;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-shadow: 0 0 12px rgba(255, 110, 0, 0.4);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
}

main {
  padding-bottom: 72px;
}

section {
  padding: 64px 0;
}

.hero {
  min-height: 68vh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.hero::before {
  right: -140px;
  top: -100px;
  background: rgba(255, 110, 0, 0.35);
}

.hero::after {
  left: -160px;
  bottom: -140px;
  background: rgba(255, 110, 0, 0.12);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  color: var(--accent-soft);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

p {
  margin: 0 0 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #ff7a14, #ff5e00);
  color: #111;
  box-shadow: 0 0 0 rgba(255, 110, 0, 0);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(255, 110, 0, 0.48);
}

.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: rgba(255, 110, 0, 0.12);
  box-shadow: 0 0 12px rgba(255, 110, 0, 0.38);
}

.grid {
  display: grid;
  gap: 18px;
}

.steps-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.card {
  background: linear-gradient(180deg, #181818, #141414);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 110, 0, 0.6);
  box-shadow: 0 8px 30px rgba(255, 110, 0, 0.16);
}

.step-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 700;
}

.features-grid,
.tour-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.feature-title {
  color: var(--text);
  margin-bottom: 6px;
}

.section-title {
  margin-bottom: 24px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.cta-box {
  background: linear-gradient(130deg, rgba(255, 110, 0, 0.16), rgba(255, 110, 0, 0.03));
  border: 1px solid rgba(255, 110, 0, 0.45);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0 26px rgba(255, 110, 0, 0.16);
}

.status {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  margin-top: 8px;
}

.status.open {
  background: rgba(57, 255, 20, 0.13);
  color: #88ff73;
}

.status.soon {
  background: rgba(255, 170, 0, 0.15);
  color: #ffc065;
}

.status.end {
  background: rgba(255, 110, 0, 0.12);
  color: #ffae78;
}

.meta-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.meta-list strong {
  color: var(--text);
}

.tournament-top {
  display: grid;
  gap: 12px;
}

.bracket-wrap {
  margin-top: 28px;
  overflow-x: auto;
  padding-bottom: 12px;
  border-radius: 16px;
  background-color: rgba(10, 10, 10, 0.55);
  /* Едва заметная «инженерная» сетка: помогает визуально держать линии bracket */
  background-image: linear-gradient(rgba(255, 110, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 110, 0, 0.035) 1px, transparent 1px);
  background-size: 100% var(--bracket-row), calc(var(--bracket-row) * 2) 100%;
  background-position: 0 0, 0 0;
}

.bracket {
  display: grid;
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  gap: var(--bracket-gap);
  min-width: 1150px;
  align-items: start;
  padding: 18px 14px 22px;
}

.round-title {
  font-size: 0.95rem;
  color: var(--accent-soft);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  grid-row: 1;
  grid-column: 1;
  align-self: start;
}

.round-column {
  display: grid;
  grid-template-rows: auto repeat(32, var(--bracket-row));
  gap: 0;
  align-content: start;
  position: relative;
}

/* R32: матч k занимает строки 2k … 2k+1 (строка 1 — заголовок раунда) */
.round-1 .match:nth-child(2) { grid-row: 2 / span 2; }
.round-1 .match:nth-child(3) { grid-row: 4 / span 2; }
.round-1 .match:nth-child(4) { grid-row: 6 / span 2; }
.round-1 .match:nth-child(5) { grid-row: 8 / span 2; }
.round-1 .match:nth-child(6) { grid-row: 10 / span 2; }
.round-1 .match:nth-child(7) { grid-row: 12 / span 2; }
.round-1 .match:nth-child(8) { grid-row: 14 / span 2; }
.round-1 .match:nth-child(9) { grid-row: 16 / span 2; }
.round-1 .match:nth-child(10) { grid-row: 18 / span 2; }
.round-1 .match:nth-child(11) { grid-row: 20 / span 2; }
.round-1 .match:nth-child(12) { grid-row: 22 / span 2; }
.round-1 .match:nth-child(13) { grid-row: 24 / span 2; }
.round-1 .match:nth-child(14) { grid-row: 26 / span 2; }
.round-1 .match:nth-child(15) { grid-row: 28 / span 2; }
.round-1 .match:nth-child(16) { grid-row: 30 / span 2; }
.round-1 .match:nth-child(17) { grid-row: 32 / span 2; }

/* В первом столбце оставляем небольшой воздух между матчами */
.round-1 .match {
  align-self: center;
  max-height: calc(var(--bracket-row) * 2 - 6px);
}

/* R16: между парами R32, строки 4m−1 … 4m */
.round-2 .match:nth-child(2) { grid-row: 3 / span 2; }
.round-2 .match:nth-child(3) { grid-row: 7 / span 2; }
.round-2 .match:nth-child(4) { grid-row: 11 / span 2; }
.round-2 .match:nth-child(5) { grid-row: 15 / span 2; }
.round-2 .match:nth-child(6) { grid-row: 19 / span 2; }
.round-2 .match:nth-child(7) { grid-row: 23 / span 2; }
.round-2 .match:nth-child(8) { grid-row: 27 / span 2; }
.round-2 .match:nth-child(9) { grid-row: 31 / span 2; }

/* Четвертьфинал */
.round-3 .match:nth-child(2) { grid-row: 5 / span 2; }
.round-3 .match:nth-child(3) { grid-row: 13 / span 2; }
.round-3 .match:nth-child(4) { grid-row: 21 / span 2; }
.round-3 .match:nth-child(5) { grid-row: 29 / span 2; }

/* Полуфинал */
.round-4 .match:nth-child(2) { grid-row: 9 / span 2; }
.round-4 .match:nth-child(3) { grid-row: 25 / span 2; }

/* Финал и победитель по центру сетки */
.round-5 .match:nth-child(2) { grid-row: 17 / span 2; }

.round-6 .winner-card {
  grid-row: 17 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.match {
  border: 1px solid rgba(255, 110, 0, 0.45);
  background: #161616;
  border-radius: 10px;
  padding: 6px 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 110, 0, 0.08);
  min-height: 0;
  max-height: calc(var(--bracket-row) * 2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
  position: relative;
  z-index: 2;
}

.match-code {
  flex-shrink: 0;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-soft);
  text-transform: lowercase;
  margin: -2px 0 4px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 110, 0, 0.22);
  text-shadow: 0 0 10px rgba(255, 110, 0, 0.25);
  white-space: nowrap;
}

/* Входящая линия слева (кроме первого раунда) */
.round-2 .match,
.round-3 .match,
.round-4 .match,
.round-5 .match {
  background-image: linear-gradient(var(--bracket-line), var(--bracket-line));
  background-size: calc(var(--bracket-gap) / 2) 2px;
  background-position: calc(var(--bracket-gap) / -2) 50%;
  background-repeat: no-repeat;
  background-color: #161616;
}

/* Исходящая линия вправо + вертикаль «склейки» пары (см. ::before ниже) */
.round-1 .match::after,
.round-2 .match::after,
.round-3 .match::after,
.round-4 .match::after,
.round-5 .match::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: calc(var(--bracket-gap) / 2);
  height: 2px;
  transform: translateY(-50%);
  background: var(--bracket-line);
  box-shadow: 0 0 10px var(--bracket-line-glow);
  pointer-events: none;
  z-index: 1;
}

/* Вертикаль между двумя матчами одной колонки (второй матч пары) */
.round-1 .match:nth-child(odd):nth-child(n + 3)::before,
.round-2 .match:nth-child(odd):nth-child(n + 3)::before,
.round-3 .match:nth-child(odd):nth-child(n + 3)::before,
.round-4 .match:nth-child(odd):nth-child(n + 3)::before {
  content: "";
  position: absolute;
  left: calc(100% + var(--bracket-gap) / 2 - 1px);
  width: 2px;
  transform: translateX(-50%);
  background: var(--bracket-line);
  box-shadow: 0 0 8px var(--bracket-line-glow);
  pointer-events: none;
  z-index: 0;
  border-radius: 1px;
}

.round-1 .match:nth-child(odd):nth-child(n + 3)::before {
  top: calc(50% - 2 * var(--bracket-row));
  height: calc(2 * var(--bracket-row));
}

.round-2 .match:nth-child(odd):nth-child(n + 3)::before {
  top: calc(50% - 4 * var(--bracket-row));
  height: calc(4 * var(--bracket-row));
}

.round-3 .match:nth-child(odd):nth-child(n + 3)::before {
  top: calc(50% - 8 * var(--bracket-row));
  height: calc(8 * var(--bracket-row));
}

.round-4 .match:nth-child(odd):nth-child(n + 3)::before {
  top: calc(50% - 16 * var(--bracket-row));
  height: calc(16 * var(--bracket-row));
}

.team-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.2;
}

.team-line + .team-line {
  margin-top: 5px;
}

.team-line.winner {
  background: rgba(255, 110, 0, 0.18);
  border: 1px solid rgba(255, 110, 0, 0.65);
  color: #ffd6b5;
}

.winner-card {
  border: 1px solid var(--accent);
  background: linear-gradient(150deg, rgba(255, 110, 0, 0.2), rgba(255, 110, 0, 0.05));
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 0 20px rgba(255, 110, 0, 0.25);
  font-weight: 700;
  max-height: calc(var(--bracket-row) * 2);
  position: relative;
  z-index: 2;
  overflow: visible;
}

.round-6 .winner-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--bracket-gap) / -2);
  width: calc(var(--bracket-gap) / 2);
  height: 2px;
  transform: translateY(-50%);
  background: var(--bracket-line);
  box-shadow: 0 0 10px var(--bracket-line-glow);
  pointer-events: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(9, 9, 9, 0.96);
  padding: 24px 0 28px;
}

.footer-text {
  color: var(--text-muted);
  text-align: center;
  line-height: 1.7;
}

.footer-links {
  margin-top: 6px;
}

[data-animate] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-animate].show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 840px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: 64px;
    right: 4%;
    width: min(260px, 90vw);
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #121212;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 10px;
  }

  .nav-menu.open {
    display: flex;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --bracket-row: 36px;
    --bracket-gap: 12px;
  }

  section {
    padding: 50px 0;
  }

  .header-inner {
    padding: 11px 0;
  }

  .card {
    padding: 15px;
  }

  .btn {
    width: 100%;
  }

  /* Та же турнирная сетка, что и на десктопе — только компактнее + горизонтальный скролл */
  .bracket-wrap {
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-color: rgba(255, 110, 0, 0.45) rgba(0, 0, 0, 0.25);
  }

  .bracket {
    min-width: 900px;
    padding: 14px 10px 18px;
    grid-template-columns: repeat(6, minmax(142px, 1fr));
    gap: var(--bracket-gap);
  }

  .round-title {
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
  }

  .match {
    padding: 5px 6px;
    max-height: calc(var(--bracket-row) * 2);
  }

  .round-1 .match {
    max-height: calc(var(--bracket-row) * 2 - 8px);
  }

  .team-line {
    font-size: 0.72rem;
    padding: 3px 5px;
  }

  .winner-card {
    padding: 10px 12px;
    font-size: 0.9rem;
    max-height: calc(var(--bracket-row) * 2);
  }

  .match-code {
    font-size: 0.56rem;
    margin-bottom: 2px;
    padding-bottom: 2px;
  }
}

/* ========== WinWinCup — страница правил (новая вёрстка, префикс wwr-) ========== */

.wwr-page {
  --wwr-gap: clamp(1.5rem, 3.8vw, 2.35rem);
  --wwr-gap-lg: clamp(2rem, 5vw, 3rem);
  /* Отступ заголовка правил от шапки сайта */
  --wwr-pad-header: clamp(5.75rem, 14vw, 8.5rem);
  /* Отступ под подзаголовком до блока с содержанием и карточками */
  --wwr-masthead-bottom: clamp(2.75rem, 6.5vw, 4.5rem);
  --wwr-glass: rgba(16, 16, 20, 0.62);
  --wwr-glass-edge: rgba(255, 110, 0, 0.38);
  --wwr-glass-shine: rgba(255, 255, 255, 0.07);
  --wwr-glow: 0 0 36px rgba(255, 110, 0, 0.12);
  --wwr-glow-strong: 0 0 48px rgba(255, 110, 0, 0.22);
  overflow-x: hidden;
  background: #060608;
  background-image: radial-gradient(ellipse 100% 80% at 50% -30%, rgba(255, 110, 0, 0.11), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(255, 110, 0, 0.05), transparent),
    linear-gradient(180deg, #0a0a0d 0%, #060608 45%, #050506 100%);
}

.wwr-page main {
  padding-bottom: 5rem;
}

.wwr-page main > section {
  padding: 0;
}

.wwr-masthead {
  position: relative;
  padding: var(--wwr-pad-header) 0 var(--wwr-masthead-bottom);
  overflow: hidden;
}

.wwr-masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 110, 0, 0.07) 48%, transparent 58%);
  pointer-events: none;
}

.wwr-masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 110, 0, 0.45), transparent);
  box-shadow: 0 0 20px rgba(255, 110, 0, 0.35);
  pointer-events: none;
}

.wwr-masthead-inner {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  min-width: 0;
}

.wwr-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5.2vw, 3.15rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-shadow: 0 0 48px rgba(255, 110, 0, 0.15);
  overflow-wrap: anywhere;
}

.wwr-subtitle {
  margin: 0;
  font-size: clamp(1rem, 2.1vw, 1.18rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 36rem;
  overflow-wrap: anywhere;
}

.wwr-shell {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  gap: var(--wwr-gap-lg) 2.25rem;
  align-items: start;
  padding-bottom: 2rem;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.wwr-rail {
  position: sticky;
  top: 5.25rem;
  z-index: 4;
  min-width: 0;
  max-width: 100%;
}

.wwr-nav {
  max-width: 100%;
  overflow: hidden;
  padding: 1.1rem 1rem;
  border-radius: 14px;
  background: var(--wwr-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 110, 0, 0.32);
  box-shadow: var(--wwr-glow), inset 0 1px 0 var(--wwr-glass-shine);
}

.wwr-nav-title {
  margin: 0 0 0.85rem;
  padding-bottom: 0.65rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
  border-bottom: 1px solid rgba(255, 110, 0, 0.22);
}

.wwr-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
}

.wwr-nav a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.wwr-nav a:hover {
  color: var(--text);
  background: rgba(255, 110, 0, 0.08);
  border-color: rgba(255, 110, 0, 0.18);
}

.wwr-nav a.is-active {
  color: var(--accent-soft);
  background: rgba(255, 110, 0, 0.11);
  border-color: rgba(255, 110, 0, 0.42);
  box-shadow: 0 0 20px rgba(255, 110, 0, 0.1);
}

.wwr-stream {
  display: flex;
  flex-direction: column;
  gap: var(--wwr-gap);
  min-width: 0;
  max-width: 100%;
}

.wwr-block {
  position: relative;
  scroll-margin-top: 5.5rem;
  padding: 1.5rem 1.5rem 1.5rem 1.65rem;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 14px;
  background: var(--wwr-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 110, 0, 0.28);
  box-shadow: var(--wwr-glow), inset 0 1px 0 var(--wwr-glass-shine);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.wwr-block:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 130, 64, 0.5);
  box-shadow: var(--wwr-glow-strong), inset 0 1px 0 var(--wwr-glass-shine);
}

.wwr-block--alert {
  border-color: rgba(255, 110, 0, 0.48);
  background: linear-gradient(145deg, rgba(255, 110, 0, 0.1) 0%, var(--wwr-glass) 48%);
}

.wwr-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 110, 0, 0.14);
}

.wwr-block-index {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 14px rgba(255, 110, 0, 0.35);
}

.wwr-block h2 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.wwr-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.wwr-points li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.wwr-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(255, 110, 0, 0.55);
}

.wwr-points strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 900px) {
  .wwr-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--wwr-gap);
  }

  .wwr-rail {
    position: static;
    width: 100%;
  }

  .wwr-nav ul {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.5rem;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
  }

  .wwr-nav li {
    flex-shrink: 0;
  }

  .wwr-nav a {
    white-space: nowrap;
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 640px) {
  .wwr-page {
    --wwr-pad-header: clamp(4.5rem, 16vw, 6.25rem);
    --wwr-masthead-bottom: clamp(2rem, 5.5vw, 3.25rem);
  }

  .wwr-page .container {
    width: 100%;
    max-width: 100%;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    box-sizing: border-box;
  }

  .wwr-block {
    padding: 1.2rem 1.15rem;
    scroll-margin-top: 4.5rem;
  }

  .wwr-block-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .wwr-points li {
    font-size: 0.9rem;
  }
}

.hidden {
  display: none !important;
}

.cabinet-wrap {
  max-width: 720px;
}

.cabinet-card {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.cabinet-lead {
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 0;
}

.cabinet-steps {
  margin: 1.25rem 0 1.5rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.cabinet-steps code,
.cabinet-note code {
  color: var(--accent-soft);
}

.cabinet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.telegram-login-slot {
  min-height: 40px;
}

.cabinet-error {
  margin-top: 1rem;
  color: #ff8a80;
}

.cabinet-muted {
  color: var(--text-muted);
  margin: 0;
}

.cabinet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.cabinet-head h2 {
  margin: 0.35rem 0 0;
}

.profile-fields {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.profile-fields div {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.profile-fields dt {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.profile-fields dd {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  word-break: break-all;
}

.cabinet-note {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .cabinet-head {
    flex-direction: column;
  }
}
