/* --------------------------------------------------------------------------
   1. ЗМІННІ
   -------------------------------------------------------------------------- */
:root {
  --bg: #010E26;
  --bg-nav: #010E26;
  --surface-2: #10203a;
  --line: #1c2c46;
  --line-soft: #142138;

  --text: #fff;
  --muted: #c3c3c3;
  --dim: #c3c3c3;

  --blue: #00d4ff;

  --font: 'DM Sans', sans-serif;
  --font-title: 'Chakra Petch', sans-serif;

  --container: 1200px;
  --gutter: 18px;
  --radius: 12px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 0.68, 0.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-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: 12px;
  transition:
    transform 0.15s var(--ease),
    box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease);
  white-space: nowrap;

  min-width: 190px;
}

.btn:hover {
  transform: scale(1.05);
}
.btn:active {
  transform: translateY(1px);
}

.btn--conf {
  background: #00132f;
  border: 1px solid #00d4ff;
  color: #fff;
  font-weight: 700;
}
.btn--primary {
  background: linear-gradient(
    270deg,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(0, 212, 255, 0.08) 100%
  );

  border: 1px solid #00d4ff;
  box-shadow: 0px 0px 12px 0px #00d4ff;

  color: #fff;
  font-weight: 700;
}

.btn--ghost {
  background: transparent;
  background: #00d4ff33;

  color: var(--text);
  border: 1px solid var(--line);
}

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

.btn--block {
  margin: 0 auto;
}

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

  background: #010e26;
}

.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), var(--blue));
  color: #06121f;
  font-weight: 900;
  font-size: 17px;
}
.logo__name {
  font-family: var(--font-title);
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.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 0.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 0.2s var(--ease);
}
.nav__link:hover {
  color: var(--text);
}
.nav__link.is-active {
  color: var(--text);
}
.nav__lock {
  font-size: 11px;
  opacity: 0.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 0.25s var(--ease),
    opacity 0.2s var(--ease);
}
@media (min-width: 1024px) {
  .burger {
    display: none;
  }
}

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

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

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  background: #010e26;
  padding: 22px 0 30px;
}
@media (min-width: 1024px) {
  .hero {
    padding: 34px 0 52px;
  }
}

.hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 800px;
  padding: 30px 22px;
  border-radius: 18px;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .hero__inner {
    min-height: 570px;
    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%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 30px;
}
@media (min-width: 1024px) {
  .hero__text {
    align-items: start;
    text-align: start;
    gap: 15px;
  }
}

.hero__title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 34px;
  line-height: 1.05;
}
@media (min-width: 1024px) {
  .hero__title {
    font-size: 56px;
  }
}

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

.hero__lead {
  color: #fff;
  font-size: 14px;
  margin: 14px 0 0;
  max-width: 940px;
}
@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-image: url('/img/features-bg.webp');
  background-position: center;
  background-size: cover;
  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: linear-gradient(135deg, #010e26 0%, rgba(13, 32, 64, 0.6) 100%);
  border: 1px solid #00d4ff26;
  border-radius: 22px;
  box-shadow: 0px 1px 0px 0px #00d4ff14 inset;

  overflow: hidden;
}

/* Велика картинка на всю ширину картки */
.feature__media {
  position: relative;
  aspect-ratio: 4 / 3;
}
.feature__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.feature__title {
  font-size: 20px;
  font-weight: 700;
}
@media (min-width: 1024px) {
  .feature__title {
    font-size: 22px;
  }
}
.feature__text {
  color: #fff;
  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;

  background-image: url('/img/tournaments-bg.webp');
  background-position: center;
  background-size: cover;
}
@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;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;

  background: linear-gradient(135deg, #010e26 0%, rgba(13, 32, 64, 0.6) 100%);
}

/* Планшети: дві картки без надмірного розтягування */
@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: 0.05em;
  padding: 5px 10px;
  border-radius: 6px;
}
.t-card__badge--active {
  background: #00d4ff33;
  color: #fff;
}
.t-card__badge--soon {
  background: #00132f;
  color: #fff;
  border: 1px solid #00d4ff;
}

.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: #fff;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}
.t-card__timer {
  color: var(--blue);
  font-weight: 500;
}
.t-card .btn {
  margin-top: 2px;
}

/* Кнопка на COMING SOON — некликабельна й трохи затемнена */
.play-btn.is-disabled {
  opacity: 0.5;
  filter: saturate(0.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 0.2s var(--ease),
    width 0.2s var(--ease);
}
.slider__dots button.is-active {
  background: var(--blue);
  width: 22px;
  border-radius: 5px;
}

/* --------------------------------------------------------------------------
   9. LEADERBOARD
   -------------------------------------------------------------------------- */
.leaderboard {
  position: relative;
  padding: 46px 0 56px;
  /* Фонову картинку додасть користувач: img/leaderboard-bg.webp */
  background: #010e26;

  background-image: url('/img/leaderboard-bg.webp');
  background-size: contain;
  background-position: top center;
  background-repeat: no-repeat;
}
@media (min-width: 1024px) {
  .leaderboard {
    padding: 72px 0 84px;
  }
}

/* Топ-3 п'єдестал: не слайдер — просто масштабується під ширину */
.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  margin-top: 50px;
}
@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;
}

.podium__card--1 {
  position: relative;
  bottom: 30px;
}
@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: 1px solid var(--blue);
}
@media (min-width: 1024px) {
  .podium__avatar {
    width: 90px;
    height: 90px;
  }
}
.podium__card--1 .podium__avatar {
  width: 62px;
  height: 62px;
}
@media (min-width: 1024px) {
  .podium__card--1 .podium__avatar {
    width: 100px;
    height: 100px;
  }
}
.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: 48px 8px 16px;
  background: linear-gradient(180deg, var(--surface-2), rgba(11, 21, 38, 0.4));
  border: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
  position: relative;
}
@media (min-width: 1024px) {
  .podium__stand {
    padding: 125px 16px 20px;
  }
}

.podium__medal {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);

  width: 58px;
}
@media (min-width: 1024px) {
  .podium__medal {
    width: 140px;
  }
}

.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;

  gap: 8px;
  display: flex;
  flex-direction: column;
}

.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: #010e26;
  border: 1px solid #fff;
  border-radius: 12px;

  font-weight: 500;
  font-size: 13px;
  margin-bottom: 8px;
}
@media (min-width: 1024px) {
  .lb-table__head {
    font-size: 14px;
  }
}

.lb-table__row {
  font-size: 13px;

  background: #010e26;
  border: 1px solid #00d4ff;
  border-radius: 12px;
}
@media (min-width: 1024px) {
  .lb-table__row {
    font-size: 14px;
  }
}

.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: 8px;
  color: var(--blue);

  background: #010509;

  font-size: 14px;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.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: 62px 0;
  background: #010e26;

  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .section__lead {
    margin-bottom: 20px;
  }
}
@media (min-width: 1024px) {
  .achieve {
    padding: 120px 0;

    .section__lead {
      margin-bottom: 40px;
    }
  }
}

/* --------------------------------------------------------------------------
   11. FAQ
   -------------------------------------------------------------------------- */
.faq {
  padding: 40px 0 60px;

  background-image: url('/img/faq-bg.webp');
  background-position: center;
  background-size: cover;
}
@media (min-width: 1024px) {
  .faq {
    padding: 64px 0 90px;
  }
}

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

.faq__item {
  border-radius: 12px;
  overflow: hidden;
  background: #00d4ff1a;

  padding: 16px 18px;
}
.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;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);

  padding-bottom: 10px;

  border-bottom: 1px solid #00d4ff;
}
@media (min-width: 1024px) {
  .faq__q {
    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(--blue);
  transition:
    transform 0.25s var(--ease),
    opacity 0.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 0.3s var(--ease);
}
.faq__a p {
  padding-top: 10px;
  font-size: 14px;

  text-align: start;
}

.disclaimer {
  background: #010e26;
  padding: 62px 16px;

  .container {
    background: linear-gradient(
      90deg,
      rgba(0, 212, 255, 0.15) 0%,
      #010e26 100%
    );
    border: 1px solid #00d4ff;
    border-radius: 12px;
    padding: 22px;
  }
}

@media (min-width: 1024px) {
  .disclaimer {
    padding-block: 120px;
  }
}

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: #010e26;

  padding: 34px 0 24px;
}

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

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

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

.footer__bottom {
  margin-top: 26px;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  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: #010e26fa;

  -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, 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: #ffac07;
  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: #ffac07;
}
.age__x {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #00d4ff;
  color: #010101;
  font-size: 22px;
  line-height: 1;
}
.age__x:hover {
  background: rgba(61, 155, 224, 0.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 {
  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;
}

/* --------------------------------------------------------------------------
   14. ДОСТУПНІСТЬ
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--blue);
  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);
}

.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: 12px;
  font-size: 15px;
  font-weight: 500;
  transition:
    transform 0.15s var(--ease),
    box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.cookie__btn:hover {
  transform: scale(1.05);
}
.cookie__btn:active {
  transform: translateY(1px);
}

.cookie__btn--reject {
  color: #fff;
  background: #00d4ff33;

  font-weight: 700;
}

.cookie__btn--accept {
  background: #00132f;
  color: #fff;
  font-weight: 700;
  border: 1px solid #00d4ff;
}

/* ==================== 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);
  font-weight: 700;
  text-align: left;
  vertical-align: top;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(61, 155, 224, 0.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;
  }
}
