
/* --------------------------------------------------------------------------
   1. ЗМІННІ
   -------------------------------------------------------------------------- */
:root {
  --bg:          #020202;
  --bg-nav:      #050a16;
  --surface:     #0b1526;
  --surface-2:   #10203a;
  --surface-3:   #0e1a30;
  --line:        #1c2c46;
  --line-soft:   #142138;

  --text:        #eef2f8;
  --muted:       #9aa6ba;
  --dim:         #6f7c92;

  --gold:        #f5a623;
  --gold-2:      #ffc247;
  --blue:        #3d9be0;
  --blue-2:      #5bb2ee;

  --silver:      #c7ced9;
  --bronze:      #d08b4e;

  --font: "Roboto", "Segoe UI", system-ui, Arial, sans-serif;

  --container: 1180px;
  --gutter: 18px;
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.22, .68, .36, 1);
}

/* --------------------------------------------------------------------------
   2. БАЗА / RESET
   -------------------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }

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

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

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

.tx-gold { color: var(--gold); }
.tx-blue { color: var(--blue); }

/* --------------------------------------------------------------------------
   3. КНОПКИ
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary,
.btn--gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1b1204;
  font-weight: 700;
  box-shadow: 0 8px 22px -10px rgba(245, 166, 35, .8);
}
.btn--primary:hover,
.btn--gold:hover { box-shadow: 0 12px 26px -8px rgba(245, 166, 35, .95); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-2); }

.btn--lg { padding: 16px 34px; font-size: 16px; }

.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   4. HEADER + NAV
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
@media (min-width: 1024px) {
  .header__inner { height: 70px; }
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--blue-2), var(--blue));
  color: #06121f;
  font-weight: 900;
  font-size: 17px;
}
.logo__name { font-weight: 700; letter-spacing: .06em; font-size: 15px; }

.nav {
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: min(320px, 86vw);
  background-color: var(--bg-nav);
  border-left: 1px solid var(--line);
  padding: 78px 26px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
  z-index: 60;
}
.nav.is-open { transform: translateX(0); }
@media (min-width: 1024px) {
  .nav {
    position: static;
    height: auto;
    width: auto;
    background: none;
    border: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 34px;
    transform: none;
    transition: none;
    flex: 1;
    justify-content: flex-end;
    margin-left: 40px;
  }
}

.nav__close {
  position: absolute;
  top: 18px; right: 20px;
  font-size: 30px;
  line-height: 1;
  color: var(--muted);
}
@media (min-width: 1024px) { .nav__close { display: none; } }

.nav__list { display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 1024px) {
  .nav__list {
    flex-direction: row;
    gap: 30px;
    align-items: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

.nav__link {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color .2s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--text); }
.nav__lock { font-size: 11px; opacity: .8; }

.nav__actions { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1024px) { .nav__actions { flex-direction: row; gap: 12px; } }

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 8px;
}
.burger span {
  height: 2px;
  width: 100%;
  background-color: var(--text);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
@media (min-width: 1024px) { .burger { display: none; } }

/* --------------------------------------------------------------------------
   5. РОЗДІЛИ — загальні заголовки
   -------------------------------------------------------------------------- */
.section__title {
  text-align: center;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -.01em;
}
@media (min-width: 1024px) { .section__title { font-size: 38px; } }

.section__lead {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  max-width: 620px;
  margin: 14px auto 0;
}
@media (min-width: 1024px) { .section__lead { font-size: 15px; } }

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, #04101f, #020202 78%);
  padding: 22px 0 30px;
}
@media (min-width: 1024px) { .hero { padding: 34px 0 52px; } }

.hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 300px;
  padding: 30px 22px;
  border-radius: 18px;
  overflow: hidden;
}
@media (min-width: 1024px) { .hero__inner { min-height: 420px; padding: 48px 56px; } }

/* Картинка на весь контейнер */
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Текст поверх картинки */
.hero__text {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: left;
}
@media (min-width: 1024px) { .hero__text { max-width: 56%; } }

.hero__title {
  font-weight: 900;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -.02em;
}
@media (min-width: 1024px) { .hero__title { font-size: 56px; } }

.hero__subtitle {
  color: #c6d0e0;
  font-weight: 500;
  font-size: 20px;
  margin-top: 6px;
}
@media (min-width: 1024px) { .hero__subtitle { font-size: 28px; } }

.hero__lead {
  color: #cbd4e2;
  font-size: 14px;
  margin: 14px 0 0;
  max-width: 460px;
}
@media (min-width: 1024px) { .hero__lead { font-size: 15px; margin-top: 18px; } }

.hero .btn { margin-top: 20px; }
@media (min-width: 1024px) { .hero .btn { margin-top: 26px; } }

/* --------------------------------------------------------------------------
   7. FEATURES
   -------------------------------------------------------------------------- */
.features {
  background:
    radial-gradient(700px 340px at 3% 30%, rgba(0, 153, 250, 0.5), transparent 70%),
    var(--bg);
  padding: 48px 0;
}
@media (min-width: 1024px) { .features { padding: 76px 0; } }

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 34px;
}
@media (min-width: 1024px) {
  .features__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
}

.feature {
  background: #0C1323;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Велика картинка на всю ширину картки */
.feature__media {
  position: relative;
  aspect-ratio: 4 / 3;
}
.feature__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Градієнт поверх картинки, що зливається з фоном картки */
.feature__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 19, 35, 0) 40%, #0C1323 100%);
}

/* Контент під картинкою */
.feature__body { padding: 2px 22px 26px; }

.feature__icon { height: 40px; margin-bottom: 14px; }
.feature__icon img { width: auto; height: 40px; display: block; }

.feature__title {
  font-size: 20px;
  font-weight: 700;
}
@media (min-width: 1024px) { .feature__title { font-size: 22px; } }
.feature__text { color: var(--muted); font-size: 14px; margin-top: 10px; }
@media (min-width: 1024px) { .feature__text { font-size: 15px; } }

.features__cta { display: flex; justify-content: center; margin-top: 30px; }
@media (min-width: 1024px) { .features__cta { margin-top: 40px; } }

/* --------------------------------------------------------------------------
   8. TOURNAMENTS (моб — слайдер)
   -------------------------------------------------------------------------- */
.tournaments {
  width: 100%;
  min-width: 0;
  padding: 40px 0;
}
@media (min-width: 1024px) { .tournaments { padding: 68px 0; } }

.tournaments > .container {
  width: 100%;
  min-width: 0;
}

.tournaments__track {
  display: flex;
  contain: inline-size;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 16px;
  margin-top: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.tournaments__track::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) {
  .tournaments__track {
    gap: 20px;
    margin-top: 42px;
  }
}

.t-card {
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: calc(100% - 1px);
  width: calc(100% - 1px);
  min-width: 0;
  max-width: calc(100% - 1px);
  scroll-snap-align: start;
  background: linear-gradient(180deg, var(--surface), var(--surface-3));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Планшети: дві картки без надмірного розтягування */
@media (min-width: 600px) and (max-width: 1023px) {
  .t-card {
    flex-basis: calc((100% - 16px) / 2);
    width: calc((100% - 16px) / 2);
    max-width: calc((100% - 16px) / 2);
  }
}

@media (min-width: 1024px) {
  .t-card {
    flex-basis: calc((100% - 40px) / 3);
    width: calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
  }
}

.t-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.t-card__media img { width: 100%; height: 100%; object-fit: cover; }

.t-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 5px 10px;
  border-radius: 6px;
}
.t-card__badge--active { background: rgba(61, 155, 224, .9); color: #04101f; }
.t-card__badge--soon { background: rgba(245, 166, 35, .92); color: #1b1204; }

.t-card__body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.t-card__title { font-size: 17px; font-weight: 700; }
.t-card__meta { color: var(--muted); font-size: 14px; }
.t-card__timer { color: var(--blue-2); font-weight: 500; }
.t-card .btn { margin-top: 2px; }

/* Кнопка на COMING SOON — некликабельна й трохи затемнена */
.play-btn.is-disabled {
  opacity: .5;
  filter: saturate(.85);
  pointer-events: none;
  cursor: default;
}

/* Крапки слайдера (спільні) */
.slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.slider__dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line);
  transition: background-color .2s var(--ease), width .2s var(--ease);
}
.slider__dots button.is-active { background: var(--gold); width: 22px; border-radius: 5px; }

/* --------------------------------------------------------------------------
   9. LEADERBOARD
   -------------------------------------------------------------------------- */
.leaderboard {
  position: relative;
  padding: 46px 0 56px;
  /* Фонову картинку додасть користувач: img/leaderboard-bg.webp */
  background-color: #030814;
  background-image: url("/img/leaderboard-bg.webp");
  background-size: cover;
  background-position: top center;
}
@media (min-width: 1024px) { .leaderboard { padding: 72px 0 84px; } }

/* Топ-3 п'єдестал: не слайдер — просто масштабується під ширину */
.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  margin-top: 34px;
}
@media (min-width: 1024px) {
  .podium { gap: 18px; margin-top: 48px; }
}

.podium__card {
  flex: 1 1 0;
  min-width: 0;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (min-width: 1024px) { .podium__card { flex: 0 0 264px; max-width: 264px; } }

.podium__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--blue);
  box-shadow: 0 0 26px -6px rgba(61, 155, 224, .7);
}
@media (min-width: 1024px) { .podium__avatar { width: 72px; height: 72px; } }
.podium__card--1 .podium__avatar { border-color: var(--gold); box-shadow: 0 0 30px -4px rgba(245, 166, 35, .8); width: 62px; height: 62px; }
@media (min-width: 1024px) { .podium__card--1 .podium__avatar { width: 84px; height: 84px; } }
.podium__avatar img { width: 100%; height: 100%; object-fit: cover; }

.podium__name { font-weight: 700; font-size: 12px; margin-top: 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 1024px) { .podium__name { font-size: 15px; margin-top: 10px; } }

.podium__stand {
  width: 100%;
  margin-top: 12px;
  padding: 24px 8px 16px;
  background: linear-gradient(180deg, var(--surface-2), rgba(11, 21, 38, .4));
  border: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
  position: relative;
}
@media (min-width: 1024px) { .podium__stand { padding: 30px 16px 20px; } }
@media (min-width: 1024px) { .podium__card--1 .podium__stand { padding-top: 44px; padding-bottom: 30px; } }

.podium__medal {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
  font-size: 14px;
  color: #1b1204;
  border: 2px solid rgba(255,255,255,.5);
}
@media (min-width: 1024px) { .podium__medal { top: -18px; width: 40px; height: 40px; font-size: 16px; } }
.podium__medal--gold   { background: linear-gradient(160deg, #ffd766, var(--gold)); }
.podium__medal--silver { background: linear-gradient(160deg, #eef1f6, var(--silver)); }
.podium__medal--bronze { background: linear-gradient(160deg, #e6a86b, var(--bronze)); }

.podium__label { color: var(--dim); font-size: 11px; }
@media (min-width: 1024px) { .podium__label { font-size: 12px; } }
.podium__points { font-weight: 700; font-size: 11px; margin-top: 2px; word-break: break-word; }
@media (min-width: 1024px) { .podium__points { font-size: 15px; } }

/* Таблиця — слайдер на 5 сторінок */
.lb-table {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
@media (min-width: 1024px) { .lb-table { margin-top: 34px; } }

.lb-table__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.lb-table__track::-webkit-scrollbar { display: none; }

.lb-table__page {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
}

.lb-table__head,
.lb-table__row {
  display: grid;
  grid-template-columns: 64px 1fr 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
}
@media (min-width: 1024px) {
  .lb-table__head,
  .lb-table__row { grid-template-columns: 120px 1fr 1fr; padding: 16px 24px; }
}

.lb-table__head {
  background: var(--surface-2);
  color: var(--blue-2);
  font-weight: 500;
  font-size: 13px;
}
@media (min-width: 1024px) { .lb-table__head { font-size: 14px; } }

.lb-table__row {
  background: rgba(9, 16, 30, .7);
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
}
@media (min-width: 1024px) { .lb-table__row { font-size: 14px; } }
.lb-table__page .lb-table__row:nth-child(even) { background: rgba(13, 24, 44, .7); }

.lb-table__col--pts { text-align: right; }
@media (min-width: 1024px) { .lb-table__col--pts { text-align: left; } }
.lb-table__col--user,
.lb-table__col--pts { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Пагінація */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
}
.pager__num, .pager__arrow {
  min-width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.pager__num:hover, .pager__arrow:hover { border-color: var(--blue); color: var(--text); }
.pager__num.is-active { background: var(--blue); border-color: var(--blue); color: #04101f; font-weight: 700; }

/* --------------------------------------------------------------------------
   10. ACHIEVEMENTS CTA
   -------------------------------------------------------------------------- */
.achieve { padding: 40px 0; }
@media (min-width: 1024px) { .achieve { padding: 64px 0; } }

.achieve__panel {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 280px;
  padding: 30px 22px;
  border-radius: 20px;
  overflow: hidden;
}
@media (min-width: 1024px) { .achieve__panel { min-height: 510px; padding: 44px 48px; } }

/* Картинка на весь панель */
.achieve__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.achieve__text {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: left;
}
@media (min-width: 1024px) { .achieve__text { max-width: 56%; } }
.achieve__title { font-weight: 900; font-size: 28px; line-height: 1.1; }
@media (min-width: 1024px) { .achieve__title { font-size: 40px; } }
.achieve__lead { color: #cbd4e2; font-size: 14px; margin: 14px 0 0; max-width: 440px; }
@media (min-width: 1024px) { .achieve__lead { margin-top: 16px; } }
.achieve__text .btn { margin-top: 20px; }

/* --------------------------------------------------------------------------
   11. FAQ
   -------------------------------------------------------------------------- */
.faq { padding: 40px 0 60px; }
@media (min-width: 1024px) { .faq { padding: 64px 0 90px; } }

.faq__list {
  max-width: 820px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 1024px) { .faq__list { margin-top: 44px; } }

.faq__item {
  background: linear-gradient(180deg, var(--surface), var(--surface-3));
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.faq__item.is-open { border-color: var(--blue); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
@media (min-width: 1024px) { .faq__q { padding: 18px 22px; font-size: 15px; } }

.faq__ico {
  position: relative;
  flex: 0 0 14px;
  width: 14px; height: 14px;
}
.faq__ico::before,
.faq__ico::after {
  content: "";
  position: absolute;
  background: var(--muted);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.faq__ico::before { top: 6px; left: 0; width: 14px; height: 2px; }
.faq__ico::after  { top: 0; left: 6px; width: 2px; height: 14px; }
.faq__item.is-open .faq__ico::after { transform: scaleY(0); }
.faq__item.is-open .faq__ico::before { background: var(--blue); }

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease);
}
.faq__a p {
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 14px;
}
@media (min-width: 1024px) { .faq__a p { padding: 0 22px 18px; } }

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-nav);
  border-top: 1px solid var(--line);
  padding: 34px 0 24px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 1024px) {
  .footer__inner { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 40px; }
}

.footer__brand { max-width: 460px; }
.footer__tagline { color: var(--muted); font-size: 13px; margin-top: 12px; }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
}
.footer__link { color: var(--muted); font-size: 14px; transition: color .2s var(--ease); }
.footer__link:hover { color: var(--text); }

.footer__bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 1024px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer__copy { color: var(--dim); font-size: 13px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.footer__legal .footer__link { font-size: 13px; }

/* --------------------------------------------------------------------------
   13. AGE MODAL
   -------------------------------------------------------------------------- */
.age {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  /* фон #010A30 з альфою F5 (~0.96) + блюр */
  background: rgba(1, 10, 48, .96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.age[hidden] { display: none; }

.age__card {
  width: 100%;
  max-width: 560px;
  background: #060c18;
  border: 1px solid var(--blue);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
}
@media (min-width: 1024px) { .age__card { padding: 28px 30px; } }

.age__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.age__warn { color: var(--gold); font-size: 22px; line-height: 1; }
.age__title { font-size: 20px; font-weight: 700; flex: 1; display: flex; align-items: center; gap: 8px; }
@media (min-width: 1024px) { .age__title { font-size: 24px; } }
.age__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.age__x {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(61, 155, 224, .18);
  color: var(--blue-2);
  font-size: 22px;
  line-height: 1;
}
.age__x:hover { background: rgba(61, 155, 224, .3); }

.age__body { padding: 18px 0; }
.age__strong { font-weight: 700; font-size: 16px; }
@media (min-width: 1024px) { .age__strong { font-size: 18px; } }
.age__text { color: var(--muted); font-size: 14px; margin-top: 14px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .age__text { font-size: 15px; } }

.age__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.age__deny, .age__confirm { padding: 12px 22px; }
.age__confirm { min-width: 120px; }

/* --------------------------------------------------------------------------
   13b. LEGAL (privacy / terms / cookie) — просто чорний фон, без картинок
   -------------------------------------------------------------------------- */
body.legal { background-color: var(--bg); }

.page { padding: 40px 0 64px; }
@media (min-width: 1024px) { .page { padding: 60px 0 90px; } }

.page__title { font-weight: 700; font-size: 28px; }
@media (min-width: 1024px) { .page__title { font-size: 40px; } }

/* без max-width — текст заповнює контейнер на десктопі */
.page__content { margin-top: 20px; color: var(--muted); font-size: 15px; }
.page__content h2 { color: var(--text); font-size: 20px; margin: 26px 0 10px; }
.page__content p { margin-bottom: 12px; }

/* --------------------------------------------------------------------------
   13b. ДІСКЛЕЙМЕР
   -------------------------------------------------------------------------- */
.disclaimer { padding-block: 22px; }
.disclaimer__box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-left: 4px solid #e5393b;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, rgba(229, 57, 59, .12), rgba(229, 57, 59, .02) 70%);
  padding: 16px 20px;
}
.disclaimer__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: #ff5b5d;
}
.disclaimer__body { min-width: 0; }
.disclaimer__title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ff6b6d;
}
.disclaimer__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
@media (min-width: 768px) {
  .disclaimer__box { padding: 18px 24px; }
  .disclaimer__title { font-size: 13px; }
  .disclaimer__text { font-size: 14px; }
}

/* --------------------------------------------------------------------------
   14. ДОСТУПНІСТЬ
   -------------------------------------------------------------------------- */
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }

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


/* ==================== COOKIE BANNER ==================== */
.cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding-bottom: 16px;
}
.cookie[hidden] { display: none; }

.cookie__label { color: var(--muted); font-size: 14px; margin: 0 0 8px; padding-left: 4px; }

.cookie__inner {
  background: #000;
  border: 1px solid #02D3FE;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 1024px) {
  .cookie__inner { flex-direction: row; align-items: center; gap: 26px; padding: 18px 22px; }
}

.cookie__text { color: #e7ecf5; font-size: 14px; line-height: 1.5; }
@media (min-width: 1024px) { .cookie__text { flex: 1; font-size: 15px; } }

.cookie__link { color: #fff; text-decoration: underline; }
.cookie__link:hover { color: var(--blue-2); }

.cookie__actions { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1024px) { .cookie__actions { flex-direction: row; flex: 0 0 auto; } }

.cookie__btn {
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.cookie__btn:active { transform: translateY(1px); }

.cookie__btn--reject { background: #173453; color: #7fb2e6; font-weight: 700; }
.cookie__btn--reject:hover { background: #1d4067; }

.cookie__btn--accept {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1b1204;
  font-weight: 700;
  box-shadow: 0 8px 22px -10px rgba(245, 166, 35, .8);
}
.cookie__btn--accept:hover { box-shadow: 0 12px 26px -8px rgba(245, 166, 35, .95); transform: translateY(-1px); }

/* ==================== LEGAL TABLES (tableWrapper) ==================== */
[class*="tableWrapper"] {
  margin: 22px 0;
  padding: 6px;
  background: #0a1120;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow-x: auto;                 /* горизонтальний скрол на моб */
  -webkit-overflow-scrolling: touch;
}

[class*="tableWrapper"] table {
  width: 100%;
  min-width: 620px;                 /* колонки не стискаються на вузькому екрані */
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

/* Заголовок: сині підписи + лінія знизу */
[class*="tableWrapper"] th {
  color: var(--blue-2);
  font-weight: 700;
  text-align: left;
  vertical-align: top;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(61, 155, 224, .35);
}

/* Клітинки */
[class*="tableWrapper"] td {
  color: #cdd6e6;
  vertical-align: top;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-soft);
}

/* Перша колонка (назви) — світліша */
[class*="tableWrapper"] td:first-child { color: #eef2f8; }

/* Вертикальні роздільники між колонками */
[class*="tableWrapper"] th:not(:last-child),
[class*="tableWrapper"] td:not(:last-child) {
  border-right: 1px solid var(--line-soft);
}

/* Останній рядок — без нижньої лінії */
[class*="tableWrapper"] tr:last-child td { border-bottom: none; }

@media (min-width: 1024px) {
  [class*="tableWrapper"] { padding: 8px; }
  [class*="tableWrapper"] table { font-size: 15px; }
  [class*="tableWrapper"] th,
  [class*="tableWrapper"] td { padding: 16px 24px; }
}
