/* ═══════════════════════════════════════════════════════════════════════
   BoostMLBB — design system
   Mobile-first: базовые стили = телефон, медиазапросы = планшет и десктоп.
   ═══════════════════════════════════════════════════════════════════════ */

/* ───────────────────────────── 1. TOKENS ─────────────────────────── */

:root {
  /* Фон и поверхности */
  --bg:            #050B14;
  --bg-2:          #081426;
  --bg-3:          #0A1A2F;
  --surface:       rgba(255, 255, 255, .035);
  --surface-2:     rgba(255, 255, 255, .062);
  --surface-3:     rgba(255, 255, 255, .09);
  --line:          rgba(255, 255, 255, .09);
  --line-strong:   rgba(255, 255, 255, .17);

  /* Текст */
  --text:          #EAF1F8;
  --text-dim:      #B7C4D4;
  --muted:         #8496AB;

  /* Акценты */
  --accent:        #00FF9D;
  --accent-2:      #00C2FF;
  --accent-3:      #7C5CFF;
  --accent-soft:   rgba(0, 255, 157, .12);
  --danger:        #FF5C7A;
  --warn:          #FFB74D;
  --grad:          linear-gradient(115deg, var(--accent), var(--accent-2));
  --grad-soft:     linear-gradient(115deg, rgba(0,255,157,.16), rgba(0,194,255,.16));

  /* Геометрия */
  --r-sm:  12px;
  --r:     18px;
  --r-lg:  26px;
  --r-xl:  34px;
  --container: 1280px;
  --header-h: 62px;

  /* Тени */
  --shadow:      0 24px 60px -24px rgba(0, 0, 0, .85);
  --shadow-lg:   0 40px 90px -30px rgba(0, 0, 0, .9);
  --glow:        0 12px 40px -14px rgba(0, 255, 157, .55);

  /* Типографика */
  --font:         'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Анимации */
  --ease:   cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
}

/* ───────────────────────────── 2. RESET ──────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(0, 194, 255, .10), transparent 60%),
    radial-gradient(90% 60% at 100% 0%, rgba(0, 255, 157, .08), transparent 55%),
    var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(66px + env(safe-area-inset-bottom));
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
/* У fieldset встроенный min-inline-size: min-content — из-за него блок
   калькулятора отказывается сжиматься на узких экранах. */
fieldset { min-inline-size: 0; border: 0; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.14; font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }

::selection { background: rgba(0, 255, 157, .28); color: #fff; }

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

.skip-link {
  position: absolute; top: -100px; left: 12px; z-index: 200;
  padding: .7rem 1.1rem; background: var(--accent); color: #041018;
  border-radius: 0 0 var(--r-sm) var(--r-sm); font-weight: 700;
}
.skip-link:focus { top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (min-width: 900px) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 157, .22); border-radius: 8px;
    border: 2px solid var(--bg);
  }
  ::-webkit-scrollbar-thumb:hover { background: rgba(0, 255, 157, .4); }
}

/* ──────────────────────────── 3. LAYOUT ──────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 18px;
}
.container-narrow { max-width: 860px; }

/* Grid/flex-дети по умолчанию не сжимаются меньше своего контента и рвут
   вёрстку на узких экранах. min-width:0 возвращает нормальное поведение. */
.hero-inner > *, .calc > *, .calc-main > *, .calc-route > *,
.stats-split > *, .card-grid > *, .footer-grid > *, .steps > *,
.timeline > *, .type-grid > *, .option-grid > *, .meta-list > *,
.picker-body > *, .picker-fields > *, .header-inner > *,
.contact-card > *, .contact-link > *, .result-meta > * { min-width: 0; }

.section {
  padding-block: clamp(3.4rem, 9vw, 6.5rem);
  position: relative;
}
.section[id], .hero[id] { scroll-margin-top: calc(var(--header-h) + 14px); }

.section-head { margin-bottom: clamp(1.8rem, 5vw, 3rem); max-width: 720px; }
.section-title {
  font-size: clamp(1.75rem, 6.4vw, 3rem);
  letter-spacing: -.02em;
  margin-top: .7rem;
}
.section-sub {
  color: var(--muted);
  margin-top: .85rem;
  font-size: clamp(.95rem, 3.5vw, 1.06rem);
  max-width: 58ch;
}
.center { text-align: center; margin-top: 2rem; }

.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .42rem .85rem .42rem .7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 255, 157, .22);
  color: var(--accent);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.badge svg { flex: none; }

/* ──────────────────────────── 4. BUTTONS ─────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .82rem 1.25rem;
  border-radius: var(--r-sm);
  font-weight: 700; font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .22s var(--spring), box-shadow .25s var(--ease),
              background-color .2s, border-color .2s, color .2s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { flex: none; }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--grad);
  color: #04121C;
  box-shadow: var(--glow);
}
.btn-ghost {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-outline {
  border-color: rgba(0, 255, 157, .38);
  color: var(--accent);
  background: rgba(0, 255, 157, .05);
}
.btn-quiet { color: var(--muted); border-color: var(--line); }
.btn-quiet:hover { color: var(--text); border-color: var(--line-strong); }

.btn-sm { padding: .58rem .95rem; font-size: .86rem; border-radius: 10px; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

@media (hover: hover) {
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 48px -14px rgba(0, 255, 157, .7); }
  .btn-ghost:hover, .btn-outline:hover { transform: translateY(-2px); background: var(--surface-3); }
}

/* ───────────────────────────── 5. HEADER ─────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 90;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(5, 11, 20, .72);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.site-header.is-scrolled {
  background: rgba(5, 11, 20, .92);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: .5rem;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: .6rem; flex: none; }
.brand-mark { display: grid; place-items: center; }
.brand-mark svg { filter: drop-shadow(0 0 12px rgba(0, 255, 157, .45)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; letter-spacing: -.01em;
}
.brand-tag { font-size: .64rem; color: var(--muted); letter-spacing: .07em; text-transform: uppercase; }

.nav-desktop { display: none; }
.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.header-cta { display: none; }

.switch {
  display: flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
}
.switch-btn {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .34rem .58rem; border-radius: 999px;
  font-size: .76rem; font-weight: 700; color: var(--muted);
  transition: background .2s, color .2s;
}
.switch-btn.is-active { background: var(--accent-soft); color: var(--accent); }
@media (hover: hover) { .switch-btn:hover { color: var(--text); } }
.switch-code { display: none; }
.switch-currency .switch-sym { font-size: .95rem; line-height: 1; }

/* На узких телефонах шапка ужимается, чтобы всё влезло в одну строку */
@media (max-width: 679px) {
  .brand-tag { display: none; }
  .brand-name { font-size: .98rem; }
  .header-actions { gap: .35rem; }
  .switch { padding: 2px; }
  .switch-btn { padding: .32rem .46rem; font-size: .74rem; }
  .burger { padding: .5rem .25rem; }
}
@media (max-width: 359px) {
  .brand-name { font-size: .9rem; }
  .switch-btn { padding: .3rem .36rem; }
}

.burger {
  display: grid; gap: 5px; padding: .55rem .4rem; margin-left: .1rem;
}
.burger span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--text); transition: transform .3s var(--ease), opacity .2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
/* Фон именно сплошной: backdrop-filter на полноэкранной панели местами
   рендерится полупрозрачным, и текст страницы просвечивает сквозь меню. */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 89;
  background: var(--bg);
  overflow-y: auto;
  animation: menuIn .28s var(--ease);
}
.mobile-menu[hidden] { display: none; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-menu-inner {
  padding: 1.2rem 18px calc(2rem + env(safe-area-inset-bottom));
  display: grid; gap: 1.1rem;
}
.mobile-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem .2rem; font-size: 1.15rem; font-weight: 700;
  font-family: var(--font-display);
  border-bottom: 1px solid var(--line);
}
.mobile-link svg { color: var(--accent); opacity: .6; }
.mobile-menu-foot { display: flex; gap: .6rem; flex-wrap: wrap; }
.mobile-menu-foot .switch-code { display: inline; }

/* ────────────────────────────── 6. HERO ──────────────────────────── */

.hero { position: relative; padding-block: clamp(2.5rem, 9vw, 5.5rem) clamp(2.5rem, 7vw, 4rem); overflow: hidden; }
.hero-bg { position: absolute; inset: -20% -10% auto; height: 140%; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: .5;
  animation: float 16s ease-in-out infinite;
}
.blob-1 { width: 46vw; height: 46vw; max-width: 520px; max-height: 520px; top: 4%;  left: -14%; background: rgba(0, 255, 157, .32); }
.blob-2 { width: 40vw; height: 40vw; max-width: 460px; max-height: 460px; top: 26%; right: -10%; background: rgba(0, 194, 255, .28); animation-delay: -6s; }
.blob-3 { width: 32vw; height: 32vw; max-width: 380px; max-height: 380px; top: 62%; left: 42%;  background: rgba(124, 92, 255, .22); animation-delay: -11s; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(3%, -6%, 0) scale(1.09); }
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 25%, transparent 78%);
}

.hero-inner { position: relative; display: grid; gap: 2.4rem; }

.hero-title {
  font-size: clamp(2.05rem, 9.4vw, 3.7rem);
  letter-spacing: -.035em;
  margin-top: 1rem;
}
/* На телефоне перенос ставит браузер — так строки ложатся ровнее */
@media (max-width: 679px) { .hero-title br { display: none; } }
.hero-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 1.1rem; color: var(--text-dim);
  font-size: clamp(1rem, 4vw, 1.2rem);
  max-width: 58ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.7rem; }
.hero-cta .btn { flex: 1 1 auto; min-width: 200px; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: .55rem 1.2rem;
  margin-top: 1.6rem; color: var(--muted); font-size: .88rem;
}
.hero-trust li { display: flex; align-items: center; gap: .42rem; }
.hero-trust svg { color: var(--accent); flex: none; }

/* Лесенка рангов */
.hero-visual { position: relative; }
.ladder {
  display: flex; gap: .7rem;
  overflow-x: auto; padding: .5rem .2rem 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ladder::-webkit-scrollbar { display: none; }
.ladder-item {
  flex: 0 0 auto; width: 104px;
  display: grid; justify-items: center; gap: .5rem;
  padding: .9rem .5rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  scroll-snap-align: center;
  animation: rise .7s var(--ease) both;
  animation-delay: calc(var(--i) * 90ms);
}
.ladder-item .emblem { width: 58px; height: 58px; }
.ladder-name {
  font-size: .7rem; font-weight: 700; text-align: center;
  color: var(--rank-color, var(--accent)); line-height: 1.25;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  margin-top: 2rem;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.stat { background: var(--bg-2); padding: 1.05rem .9rem; text-align: center; }
.stat dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; }
.stat dd {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.45rem, 6vw, 2rem); margin-top: .28rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-sub { font-size: .7em; opacity: .55; }

/* ─────────────────────────── 7. CALCULATOR ───────────────────────── */

.section-calc { position: relative; }
.section-calc::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(80% 55% at 50% 0%, rgba(0, 255, 157, .08), transparent 70%);
  pointer-events: none;
}

.calc { display: grid; gap: 1.1rem; position: relative; }

.calc-main { display: grid; gap: 1.1rem; }

.calc-block {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 1.1rem 1rem 1.2rem;
}
/* float возвращает legend внутрь рамки — иначе он «висит» над блоком.
   Соседям обязателен clear: без него плавающий legend схлопывает их в ноль. */
.calc-legend {
  float: left; width: 100%;
  font-family: var(--font-display); font-weight: 700;
  font-size: .96rem; color: var(--text);
}
.calc-block > :not(legend) { clear: both; }
.calc-block::after { content: ''; display: table; clear: both; }
.calc-hint { color: var(--muted); font-size: .84rem; margin: .5rem .3rem .9rem; }

/* Маршрут ранга */
.calc-route {
  display: grid; gap: .8rem;
  padding: 1.1rem 1rem;
  border-radius: var(--r-lg);
  border: 1px solid rgba(0, 255, 157, .16);
  background:
    linear-gradient(160deg, rgba(0, 255, 157, .06), rgba(0, 194, 255, .04)),
    var(--bg-2);
}
.picker { display: grid; gap: .7rem; }
.picker-label {
  font-size: .74rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
}
.picker-body { display: flex; gap: .85rem; align-items: center; }
.picker-emblem {
  position: relative; flex: none; width: 66px; height: 66px;
  display: grid; place-items: center;
  border-radius: var(--r); background: var(--surface-2);
  border: 1px solid var(--line);
  transition: transform .4s var(--spring);
}
.picker-emblem .emblem { position: relative; z-index: 1; width: 54px; height: 54px; }
/* Запасная звезда, пока SVG-эмблема не загрузилась */
.picker-emblem::before {
  content: '★'; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 1.7rem; line-height: 1; color: var(--rank-color, var(--muted)); opacity: .7;
}
.picker-emblem.is-loaded::before { display: none; }
.picker-emblem.is-changing { transform: scale(1.12) rotate(-4deg); }
.picker-fields { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; min-width: 0; }
.picker-fields .field-rank, .picker-fields .field-mythic { grid-column: 1 / -1; }
.picker-current { font-size: .8rem; color: var(--muted); min-height: 1.2em; }
.picker-current b { color: var(--text); font-weight: 700; }

.field { display: grid; gap: .3rem; min-width: 0; }
.field-label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 700;
}
.field[hidden] { display: none; }
.field-hint { font-size: .72rem; color: var(--muted); line-height: 1.35; }

/* Звёзды мифика: − [ 37 ] + */
.stepper {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px;
  border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--bg-3); overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.stepper:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 255, 157, .16); }
.stepper input {
  width: 100%; min-width: 0; appearance: none; -webkit-appearance: none; -moz-appearance: textfield;
  padding: .72rem .4rem; border: 0; background: transparent; text-align: center;
  font-weight: 800; font-size: 1.05rem; font-family: var(--font-display, inherit);
}
.stepper input:focus { outline: none; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-btn {
  display: grid; place-items: center; min-height: 44px;
  border: 0; background: var(--surface-2); color: var(--accent);
  font-size: 1.35rem; font-weight: 700; line-height: 1; cursor: pointer;
  transition: background .2s, color .2s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.stepper-btn:first-child { border-right: 1px solid var(--line); }
.stepper-btn:last-child { border-left: 1px solid var(--line); }
.stepper-btn:hover { background: rgba(0, 255, 157, .12); }
.stepper-btn:active { background: rgba(0, 255, 157, .22); }
.stepper-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.select-wrap, .input-wrap { position: relative; display: block; }
.select-wrap-wide { width: 100%; }
.select-wrap select, .input-wrap input {
  width: 100%; appearance: none; -webkit-appearance: none;
  padding: .72rem 2rem .72rem .8rem;
  border-radius: 12px;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  font-weight: 600; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.input-wrap input { padding-right: .8rem; }
.select-wrap select:focus, .input-wrap input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 255, 157, .16);
}
.select-wrap select option, .select-wrap select optgroup { background: var(--bg-3); color: var(--text); }
.select-arrow {
  position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}

.route-arrow {
  display: grid; place-items: center; gap: .5rem;
  color: var(--accent); padding: .2rem 0;
}
.route-arrow > svg { transform: rotate(90deg); }
.route-track {
  position: relative; width: 3px; height: 34px; border-radius: 3px;
  background: var(--line-strong); overflow: hidden;
}
.route-fill {
  position: absolute; inset: auto 0 0 0; height: 0%;
  background: var(--grad); transition: height .5s var(--ease);
}

/* Тип буста */
.type-grid { display: grid; gap: .6rem; margin-top: .9rem; }
/* На телефоне карточка — строка: иконка · название + бейдж · описание */
.type-card {
  position: relative; display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto; column-gap: .75rem; row-gap: .2rem;
  align-items: center;
  padding: .8rem .85rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--bg-2);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s var(--spring);
}
.type-card input { position: absolute; opacity: 0; pointer-events: none; }
.type-icon { grid-column: 1; grid-row: 1 / span 2; color: var(--muted); transition: color .2s; }
.type-name { grid-column: 2; grid-row: 1; font-weight: 700; font-size: .9rem; line-height: 1.25; }
.type-desc { grid-column: 2 / span 2; grid-row: 2; font-size: .74rem; color: var(--muted); line-height: 1.35; }
.type-badge {
  grid-column: 3; grid-row: 1; align-self: start; justify-self: end;
  padding: .18rem .5rem; border-radius: 999px;
  font-size: .72rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap;
  color: var(--warn); background: rgba(255, 183, 77, .12);
  border: 1px solid rgba(255, 183, 77, .35);
}
.type-card:has(input:checked) .type-badge, .type-card.is-active .type-badge {
  color: #04121C; background: var(--warn); border-color: var(--warn);
}
.type-card:has(input:checked), .type-card.is-active {
  border-color: rgba(0, 255, 157, .5);
  background: linear-gradient(160deg, rgba(0, 255, 157, .1), rgba(0, 194, 255, .05)), var(--bg-2);
}
.type-card:has(input:checked) .type-icon, .type-card.is-active .type-icon { color: var(--accent); }
.type-card:active { transform: scale(.98); }
.type-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Роли */
.chip-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  position: relative; display: inline-flex; align-items: center;
  padding: .55rem .95rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--bg-2);
  font-size: .86rem; font-weight: 600; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) {
  border-color: var(--chip-color, var(--accent));
  color: var(--chip-color, var(--accent));
  background: color-mix(in srgb, var(--chip-color, #00FF9D) 14%, transparent);
}
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Опции */
.option-grid { display: grid; gap: .5rem; margin-top: .9rem; }
.option {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .8rem .85rem; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--bg-2);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option-box {
  flex: none; width: 20px; height: 20px; margin-top: 2px;
  display: grid; place-items: center;
  border-radius: 6px; border: 1.5px solid var(--line-strong);
  color: transparent; transition: all .2s;
}
.option:has(input:checked) { border-color: rgba(0, 255, 157, .45); background: rgba(0, 255, 157, .06); }
.option:has(input:checked) .option-box { background: var(--accent); border-color: var(--accent); color: #04121C; }
.option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.option-body { display: grid; gap: .18rem; min-width: 0; }
.option-name { display: flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .9rem; flex-wrap: wrap; }
.option-name svg { color: var(--accent); flex: none; }
.option-extra { font-style: normal; color: var(--warn); font-size: .78rem; font-weight: 800; }
.th-extra { font-style: normal; color: var(--warn); font-size: .74rem; font-weight: 800; white-space: nowrap; }
.option-free { font-style: normal; color: var(--accent); font-size: .78rem; font-weight: 800; }
.option-desc { font-size: .78rem; color: var(--muted); line-height: 1.4; }

/* Результат */
.result-card {
  border-radius: var(--r-lg);
  border: 1px solid rgba(0, 255, 157, .26);
  background:
    linear-gradient(165deg, rgba(0, 255, 157, .1), rgba(0, 194, 255, .05) 45%, transparent 70%),
    var(--bg-2);
  padding: 1.3rem 1.1rem;
  box-shadow: var(--shadow);
}
.result-label {
  font-size: .74rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.result-price {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.3rem, 12vw, 3.2rem); line-height: 1.05;
  letter-spacing: -.03em; margin-top: .25rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: opacity .18s;
}
.result-price.is-updating { opacity: .35; }
.result-old { min-height: 1.4em; color: var(--muted); font-size: .95rem; }
.result-old s { text-decoration-color: var(--danger); }

.result-error {
  margin-top: .5rem; padding: .65rem .8rem;
  border-radius: 12px; font-size: .86rem; font-weight: 600;
  background: rgba(255, 92, 122, .12);
  border: 1px solid rgba(255, 92, 122, .32);
  color: #FFB3C1;
}
.result-error[hidden] { display: none; }

.result-meta { display: grid; gap: .1rem; margin-top: 1.1rem; }
.result-meta > div {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem 0; border-bottom: 1px dashed var(--line);
}
.result-meta > div[hidden] { display: none; }
.result-meta dt { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .86rem; }
.result-meta dt svg { color: var(--accent); opacity: .8; }
.result-meta dd { font-weight: 700; font-size: .95rem; }

.result-breakdown { margin-top: .9rem; }
.result-breakdown[hidden] { display: none; }
.result-breakdown summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 0; font-size: .86rem; font-weight: 700; color: var(--muted);
}
.result-breakdown summary svg { transition: transform .25s var(--ease); }
.result-breakdown[open] summary svg { transform: rotate(180deg); }
.result-breakdown ul { display: grid; gap: .35rem; padding: .3rem 0 .2rem; }
.result-breakdown li {
  display: flex; justify-content: space-between; gap: .8rem;
  font-size: .82rem; color: var(--text-dim);
}
.result-breakdown li span:first-child { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.result-breakdown li b { color: var(--text); font-weight: 700; white-space: nowrap; }
.bd-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rank-color, var(--accent)); flex: none; }

.result-actions { display: grid; gap: .5rem; margin-top: 1.2rem; }
.result-note {
  display: flex; gap: .45rem; align-items: flex-start;
  margin-top: 1rem; font-size: .76rem; color: var(--muted); line-height: 1.45;
}
.result-note svg { flex: none; margin-top: 2px; color: var(--accent); }

/* Липкая цена на мобильных */
.calc-sticky {
  position: fixed; left: 0; right: 0;
  bottom: calc(env(safe-area-inset-bottom));
  z-index: 88;
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(6, 14, 24, .95);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0, 255, 157, .22);
  transform: translateY(120%);
  transition: transform .32s var(--ease);
}
.calc-sticky.is-visible { transform: none; }
.calc-sticky-info { display: grid; line-height: 1.15; min-width: 0; }
.calc-sticky-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.calc-sticky-price {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.calc-sticky .btn { margin-left: auto; flex: none; }
@media (min-width: 1080px) { .calc-sticky { display: none; } }

/* ────────────────────────── 8. CARDS / GRIDS ─────────────────────── */

.card-grid { display: grid; gap: .9rem; }
.card {
  position: relative;
  padding: 1.25rem 1.1rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
  overflow: hidden;
}
.card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 0%, rgba(0, 255, 157, .1), transparent 70%);
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); border-color: rgba(0, 255, 157, .3); background: var(--surface-2); }
  .card:hover::after { opacity: 1; }
}
.card-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid rgba(0, 255, 157, .2);
  color: var(--accent); margin-bottom: .9rem;
}
.card-title { font-size: 1.1rem; margin-bottom: .5rem; }
.card-text { color: var(--muted); font-size: .92rem; }
.card-link {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: 1rem; color: var(--accent); font-weight: 700; font-size: .86rem;
}
.card-link svg { transition: transform .25s var(--ease); }
@media (hover: hover) { .card-link:hover svg { transform: translateX(4px); } }

.tag-list { display: flex; flex-wrap: wrap; gap: .38rem; margin-top: .9rem; }
.tag-list li {
  padding: .28rem .65rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: .74rem; color: var(--text-dim); font-weight: 600;
}
.tag-list-accent li {
  background: color-mix(in srgb, var(--accent, #00FF9D) 12%, transparent);
  border-color: rgba(0, 255, 157, .28);
  color: var(--accent);
}

/* ────────────────────────────── 9. STEPS ─────────────────────────── */

.steps { display: grid; gap: .9rem; counter-reset: step; }
.step {
  position: relative; padding: 1.3rem 1.1rem 1.2rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.step-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 2.6rem; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .9;
}
.step-name { font-size: 1.05rem; margin: .55rem 0 .35rem; }
.step-desc { color: var(--muted); font-size: .9rem; }

/* ────────────────────────────── 10. PRICES ───────────────────────── */

.table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.price-table { min-width: 620px; font-size: .88rem; }
.price-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--bg-3);
  padding: .85rem .8rem; text-align: left;
  font-size: .74rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); font-weight: 800;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.price-table tbody th, .price-table tbody td {
  padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: left;
}
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr { transition: background .2s; }
@media (hover: hover) { .price-table tbody tr:hover { background: rgba(0, 255, 157, .045); } }
.rank-cell { display: flex; align-items: center; gap: .6rem; font-weight: 700; white-space: nowrap; }
.rank-emblem-sm .emblem { width: 30px; height: 30px; }
.rank-emblem-xs .emblem { width: 20px; height: 20px; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.discount-list {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem;
}
.discount-list li {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .85rem; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid rgba(0, 255, 157, .22);
  font-size: .82rem; font-weight: 600; color: var(--text-dim);
}
.discount-list svg { color: var(--accent); flex: none; }

/* ────────────────────────────── 11. ROSTER ───────────────────────── */

.player-card { --accent: #00FF9D; }
.player-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.player-avatar {
  flex: none; width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%), var(--bg-3);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.player-initial {
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--accent);
}
.player-nick { font-size: 1.15rem; }
.player-rank { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted); margin-top: .12rem; }
.player-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem;
  padding: .8rem 0; border-block: 1px solid var(--line);
}
.player-stats dt { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.player-stats dd { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-top: .15rem; }
.player-label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 800; margin-top: 1rem;
}

/* ────────────────────────────── 12. STATS ────────────────────────── */

.stats-split { display: grid; gap: 1rem; }
.wr-list, .meta-heroes {
  padding: 1.3rem 1.1rem; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--surface);
}
.wr-row + .wr-row { margin-top: 1.15rem; }
.wr-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.wr-name { font-weight: 700; font-size: .95rem; }
.wr-value {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wr-bar {
  height: 8px; border-radius: 999px; margin-top: .45rem;
  background: var(--surface-3); overflow: hidden;
}
.wr-fill {
  display: block; height: 100%; width: var(--w); border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 0 16px rgba(0, 255, 157, .5);
  transition: width 1.1s var(--ease);
}
.js .wr-fill { width: 0; }
.js .is-revealed .wr-fill { width: var(--w); }
.wr-games { display: block; margin-top: .35rem; font-size: .76rem; color: var(--muted); }

.meta-title { font-size: 1.2rem; }
.meta-sub { color: var(--muted); font-size: .86rem; margin-top: .3rem; margin-bottom: 1rem; }
.meta-list { display: grid; gap: .5rem; }
.meta-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem .7rem; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--line);
}
.meta-avatar {
  flex: none; width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
  color: var(--role-color, var(--accent));
  background: color-mix(in srgb, var(--role-color, #00FF9D) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--role-color, #00FF9D) 32%, transparent);
}
.meta-body { display: grid; min-width: 0; flex: 1; }
.meta-name { font-weight: 700; font-size: .92rem; }
.meta-role { font-size: .74rem; color: var(--muted); }
.meta-wr {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--role-color, var(--accent));
}
.meta-wr small { font-size: .6em; opacity: .7; }

/* ─────────────────────────── 13. ACHIEVEMENTS ────────────────────── */

.timeline { position: relative; display: grid; gap: 1rem; padding-left: 2.2rem; }
.timeline::before {
  content: ''; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
  opacity: .35;
}
.tl-item { position: relative; padding: 1.05rem 1rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.tl-dot {
  position: absolute; left: -2.2rem; top: 1rem;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-2);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.tl-year {
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
  color: var(--accent); letter-spacing: .06em;
}
.tl-name { font-size: 1.02rem; margin: .3rem 0 .3rem; }
.tl-desc { color: var(--muted); font-size: .88rem; }

/* ───────────────────────────── 14. REVIEWS ───────────────────────── */

.rating-line { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.rating-line strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--text); }
.stars { display: inline-flex; gap: 2px; color: var(--warn); }
.stars svg { fill: currentColor; stroke: none; }

.review-card { display: grid; }
.review-quote {
  font-family: var(--font-display); font-size: 3.4rem; line-height: .6;
  color: var(--accent); opacity: .28; height: 1.2rem;
}
.review-text { color: var(--text-dim); font-size: .92rem; margin: .9rem 0 1.1rem; }
.review-foot { display: flex; align-items: center; gap: .65rem; margin-top: auto; }
.review-avatar {
  flex: none; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
  background: var(--grad-soft); border: 1px solid rgba(0, 255, 157, .22);
  color: var(--accent);
}
.review-name { display: block; font-weight: 700; font-size: .92rem; }
.review-tag { display: block; font-size: .76rem; color: var(--muted); }
.review-verified {
  margin-left: auto; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(0, 255, 157, .3);
}

/* ─────────────────────────────── 15. FAQ ─────────────────────────── */

.faq-list { display: grid; gap: .55rem; }
.faq-item {
  border-radius: var(--r); border: 1px solid var(--line);
  background: var(--surface); overflow: hidden;
  transition: border-color .25s, background .25s;
}
.faq-item[open] { border-color: rgba(0, 255, 157, .3); background: var(--surface-2); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1rem; font-weight: 700; font-size: .98rem;
  font-family: var(--font-display);
}
.faq-item summary svg { flex: none; color: var(--accent); transition: transform .28s var(--ease); }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-answer { padding: 0 1rem 1.1rem; color: var(--muted); font-size: .92rem; }

/* ───────────────────────────── 16. CONTACT ───────────────────────── */

.contact-card {
  display: grid; gap: 1.6rem;
  padding: 1.6rem 1.2rem;
  border-radius: var(--r-xl);
  border: 1px solid rgba(0, 255, 157, .22);
  background:
    radial-gradient(90% 100% at 0% 0%, rgba(0, 255, 157, .12), transparent 60%),
    radial-gradient(80% 100% at 100% 100%, rgba(0, 194, 255, .1), transparent 60%),
    var(--bg-2);
  box-shadow: var(--shadow);
}
.contact-copy .section-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
.contact-note { display: flex; gap: .45rem; margin-top: 1.1rem; font-size: .8rem; color: var(--muted); }
.contact-note svg { flex: none; margin-top: 2px; color: var(--accent); }

.contact-links { display: grid; gap: .6rem; }
.contact-link {
  display: flex; align-items: center; gap: .85rem;
  padding: .95rem 1rem; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--bg-3);
  transition: transform .25s var(--spring), border-color .25s, background .25s;
}
.contact-icon {
  flex: none; width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  transition: background .25s, color .25s, border-color .25s;
}
.contact-body { display: grid; min-width: 0; }
.contact-name { font-weight: 700; font-size: .98rem; }
.contact-sub { font-size: .78rem; color: var(--muted); }
.contact-desc { display: none; font-size: .78rem; color: var(--muted); margin-left: auto; }
.contact-arrow { color: var(--muted); flex: none; margin-left: auto; transition: transform .25s var(--ease), color .25s; }
.contact-telegram:hover  .contact-icon { background: rgba(42, 171, 238, .18); border-color: rgba(42, 171, 238, .5); color: #2AABEE; }
.contact-whatsapp:hover  .contact-icon { background: rgba(37, 211, 102, .18); border-color: rgba(37, 211, 102, .5); color: #25D366; }
.contact-instagram:hover .contact-icon { background: rgba(225, 48, 108, .18); border-color: rgba(225, 48, 108, .5); color: #E1306C; }
@media (hover: hover) {
  .contact-link:hover { transform: translateX(4px); border-color: var(--line-strong); background: var(--surface-2); }
  .contact-link:hover .contact-arrow { transform: translateX(4px); color: var(--accent); }
}

/* ───────────────────────────── 17. FOOTER ────────────────────────── */

.site-footer {
  margin-top: clamp(2rem, 6vw, 4rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0, 255, 157, .03));
  padding-top: clamp(2rem, 6vw, 3.4rem);
}
.footer-grid { display: grid; gap: 1.8rem; }
.footer-about { color: var(--muted); font-size: .88rem; margin-top: .9rem; max-width: 42ch; }
.footer-social { display: flex; gap: .5rem; margin-top: 1.1rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); transition: all .25s;
}
@media (hover: hover) {
  .footer-social a:hover { color: var(--accent); border-color: rgba(0, 255, 157, .4); background: var(--accent-soft); transform: translateY(-2px); }
}
.footer-col h3 {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin-bottom: .9rem; font-weight: 800;
}
.footer-col ul { display: grid; gap: .55rem; }
.footer-col a { color: var(--text-dim); font-size: .9rem; transition: color .2s; }
@media (hover: hover) { .footer-col a:hover { color: var(--accent); } }

.footer-bottom {
  display: grid; gap: .6rem;
  margin-top: 2rem; padding-block: 1.3rem;
  border-top: 1px solid var(--line);
  font-size: .78rem; color: var(--muted);
  position: relative;
}
.footer-disclaimer { opacity: .75; max-width: 70ch; }
.to-top {
  position: absolute; right: 18px; top: 1rem;
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--accent); transition: all .25s;
}
@media (hover: hover) { .to-top:hover { transform: translateY(-3px); border-color: rgba(0, 255, 157, .4); } }

/* ───────────────────────── 18. MOBILE BAR + TOAST ────────────────── */

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 87;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(6, 14, 24, .94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  transition: transform .3s var(--ease);
}
.mobile-bar.is-hidden { transform: translateY(110%); }
.mbar-item {
  display: grid; justify-items: center; gap: 2px;
  padding: .6rem .3rem .55rem;
  font-size: .68rem; font-weight: 700; color: var(--muted);
  transition: color .2s;
}
.mbar-item svg { color: var(--text-dim); transition: color .2s; }
.mbar-item:active { color: var(--accent); }
.mbar-item:active svg { color: var(--accent); }
.mbar-tg svg { color: #2AABEE; }
.mbar-wa svg { color: #25D366; }
@media (min-width: 1080px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

.toast {
  position: fixed; left: 50%; bottom: 90px; z-index: 120;
  transform: translate(-50%, 24px);
  padding: .8rem 1.1rem; border-radius: 999px;
  background: rgba(6, 14, 24, .97);
  border: 1px solid rgba(0, 255, 157, .35);
  color: var(--text); font-size: .86rem; font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .28s, transform .28s var(--ease);
  max-width: min(92vw, 460px); text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ─────────────────────────── 19. REVEAL ANIM ─────────────────────── */

/* Без JS контент виден сразу — анимация включается только классом .js */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-revealed {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms);
}

/* ───────────────────────── 20. BREAKPOINTS ───────────────────────── */

@media (min-width: 480px) {
  .container { padding-inline: 22px; }
  .card-grid { gap: 1rem; }
  .option-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 680px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .type-grid { grid-template-columns: repeat(3, 1fr); }
  .type-card { grid-template-columns: 1fr; row-gap: .38rem; align-items: start; padding: .9rem .8rem; }
  .type-icon { grid-row: auto; }
  .type-name, .type-desc { grid-column: 1; grid-row: auto; }
  .type-badge { position: absolute; top: .6rem; right: .6rem; }
  .contact-desc { display: block; }
  .contact-arrow { margin-left: .8rem; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
  .footer-disclaimer { grid-column: 1 / -1; }
  .price-table { min-width: 0; }
}

@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .container { padding-inline: 32px; }
  .nav-desktop { display: flex; align-items: center; gap: .1rem; margin-left: 1rem; }
  .nav-link {
    padding: .45rem .55rem; border-radius: 10px;
    font-size: .87rem; font-weight: 600; color: var(--text-dim);
    transition: color .2s, background .2s;
    white-space: nowrap;
  }
  .nav-link:hover, .nav-link.is-current { color: var(--accent); background: var(--surface); }
  .burger { display: none; }
  .mobile-menu { display: none !important; }

  .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem; }
  .ladder {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem;
    overflow: visible; mask-image: none; -webkit-mask-image: none;
  }
  .ladder-item { width: auto; }
  .ladder-item .emblem { width: 66px; height: 66px; }
  .ladder-name { font-size: .78rem; }

  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .stats-split { grid-template-columns: 1.05fr .95fr; }
  .timeline {
    grid-template-columns: repeat(2, 1fr);
    padding-left: 0; column-gap: 1rem;
  }
  .timeline::before { display: none; }
  .tl-dot { position: static; margin-bottom: .7rem; }
  .contact-card { grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: center; padding: 2.4rem 2.2rem; }
  .calc-route { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.4rem; padding: 1.5rem 1.4rem; }
  .route-arrow > svg { transform: none; }
  .route-track { width: 60px; height: 3px; }
  .route-fill { inset: 0 auto 0 0; width: 0; height: 100%; transition: width .5s var(--ease); }
  .calc-block { padding: 1.4rem 1.3rem 1.5rem; }
}

@media (min-width: 1080px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .calc { grid-template-columns: minmax(0, 1fr) 370px; align-items: start; gap: 1.3rem; }
  .calc-result { position: sticky; top: calc(var(--header-h) + 18px); }
  .result-card { padding: 1.6rem 1.4rem; }
  .option-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Шапка наполняется постепенно: сначала коды валют, потом кнопка заказа —
   так строка меню никогда не переполняется на промежуточных ширинах. */
@media (min-width: 1200px) {
  .switch-code { display: inline; }
  .nav-desktop { gap: .25rem; margin-left: 1.4rem; }
  .nav-link { padding: .5rem .7rem; font-size: .9rem; }
}

@media (min-width: 1280px) {
  .header-cta { display: inline-flex; }
  .picker-emblem { width: 84px; height: 84px; }
  .picker-emblem .emblem { width: 68px; height: 68px; }
}

/* Печать */
@media print {
  .site-header, .mobile-bar, .calc-sticky, .toast, .hero-bg, .to-top { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
}
