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

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

  --blue: #fc0;

  --font: 'Roboto', sans-serif;
  --font-title: 'Roboto', sans-serif;

  --container: 1280px;
  --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-accent {
  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: 16px 32px;
  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--primary {
  background: linear-gradient(90deg, #ff1a07 0%, #f3ff1b 50%, #ff1a07 100%);

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

.btn--ghost {
  border: 1px solid transparent;
  border-radius: 12px;
  background:
    linear-gradient(#0c0d3d, #0c0d3d) padding-box,
    radial-gradient(61.46% 360.25% at 50% 50%, #fdbc01 0%, #f62801 100%)
      border-box;
  color: #ffcc00;
}

.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: #0c0d3d;
}

.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 {
  width: 26px;
}
.logo__name {
  font-family: var(--font-title);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 16px;
}

.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: #fc0;
}
@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;
  }
}

.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: #fc0;
  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: 500;
  font-size: 40px;
  line-height: 1.2;
}
@media (min-width: 1024px) {
  .section__title {
    font-size: 52px;
  }
}

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

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  background: #000122;
  padding: 36px 0 64px;
}
@media (min-width: 1024px) {
  .hero {
    padding: 80px 0 105px;
  }
}

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

/* Картинка на весь контейнер */
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 74% center;
  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;
  backdrop-filter: blur(2.5px);
}
@media (min-width: 1024px) {
  .hero__text {
    align-items: start;
    text-align: start;
    gap: 15px;
    backdrop-filter: none;
  }
}

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

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

.hero__lead {
  color: #fff;
  font-size: 18px;
  margin: 14px 0 0;
  max-width: 700px;
}
@media (min-width: 1024px) {
  .hero__lead {
    font-size: 24px;
    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: left;
  background-size: cover;
  padding: 48px 0;
}
@media (min-width: 1024px) {
  .features {
    padding: 94px 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 {
  border: 1px solid transparent;
  border-radius: 22px;

  background:
    linear-gradient(#010103, #010103) padding-box,
    radial-gradient(61.46% 360.25% at 50% 50%, #fdbc01 0%, #f62801 100%)
      border-box;

  overflow: hidden;
}

/* Велика картинка на всю ширину картки */
.feature__media {
  display: flex;
  align-items: center;
  justify-content: center;
}
/* .feature__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
} */

.feature__icon {
  width: 24px;
  display: block;
  margin-bottom: 12px;
}

/* Контент під картинкою */
.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: linear-gradient(180deg, #000122 0%, #000000 39.9%, #000122 100%);
}
@media (min-width: 1024px) {
  .tournaments {
    padding-top: 92px;
    padding-bottom: 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;

  background-image:
    url('/img/leaderboard-bg.webp'),
    linear-gradient(180deg, #000122 0%, #000000 100%);
  background-size: contain, cover;
  background-position:
    top center,
    center;
  background-repeat: no-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;
  background: #000269;
}
@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, #000269, #050911);
  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;
  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: 1fr 1fr 1fr;
  align-items: center;
  gap: 10px;
  padding: 20px;
}
/* @media (min-width: 1024px) {
  .lb-table__head,
  .lb-table__row {
    grid-template-columns: 120px 1fr 1fr;
  }
} */

.lb-table__head {
  border: 1px solid transparent;

  background:
    linear-gradient(#010103, #010103) padding-box,
    radial-gradient(61.46% 360.25% at 50% 50%, #fdbc01 0%, #f62801 100%)
      border-box;

  border-radius: 12px;
  color: #fc0;

  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;

  border-radius: 12px;

  background: linear-gradient(180deg, #000122 0%, #000000 100%);
}
@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 {
  background: #010103;

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

.achieve__panel {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 500px;
  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%;
  max-width: 769px;
  margin: 0 auto;

  a {
    display: flex;
    margin: 0 auto;
    width: fit-content;
    margin-top: 40px;

    filter: drop-shadow(0 0 40px #43a04780);
  }
}

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

  background: #020202;
}
@media (min-width: 1024px) {
  .faq {
    padding: 64px 0 90px;
  }
}

.faq__list {
  max-width: 1010px;
  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: linear-gradient(180deg, #000122 0%, #000000 100%);

  padding: 16px 18px;
}
.faq__item.is-open {
  border-color: var(--blue);

  box-shadow: 0px 0px 40px -10px #ffac0780;

  border: 1px solid transparent;
  background:
    linear-gradient(#000122, #000000) padding-box,
    radial-gradient(61.46% 360.25% at 50% 50%, #fdbc01 0%, #f62801 100%)
      border-box;
}

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

  background-image: linear-gradient(90deg, #fdbc01, #f62801);
  background-size: 100% 1px;
  background-position: bottom;
  background-repeat: no-repeat;
}
@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 {
  padding: 62px 16px;

  .container {
    border: 1px solid transparent;

    background:
      linear-gradient(#000122, #000122) padding-box,
      radial-gradient(61.46% 360.25% at 50% 50%, #fdbc01 0%, #f62801 100%)
        border-box;

    border-radius: 12px;
    padding: 22px;
  }
}

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

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: #000122;
  border-top: 1px solid #ffcc00;

  padding: 34px 0 24px;

  .logo__mark {
    width: 43px;
  }
  .logo__name {
    font-family: var(--font-title);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.06em;
    font-size: 27px;
  }

  @media (min-width: 1024px) {
    .logo__mark {
      width: 53px;
    }

    .logo__name {
      font-size: 33px;
    }
  }
}

.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: #000122;

  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.age[hidden] {
  display: none;
}

.age__card {
  width: 100%;
  max-width: 560px;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 22px;

  background:
    linear-gradient(#0c0d3d, #0c0d3d) padding-box,
    radial-gradient(61.46% 360.25% at 50% 50%, #fdbc01 0%, #f62801 100%)
      border-box;
}
@media (min-width: 1024px) {
  .age__card {
    max-width: 839px;
    padding: 56px 64px;
  }
}

.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: radial-gradient(
    61.46% 360.25% at 50% 50%,
    #fdbc01 0%,
    #f62801 100%
  );

  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: center;
  flex-wrap: wrap;
}
@media (min-width: 1024px) {
  .age__actions {
    justify-content: flex-end;
  }
}
.age__deny,
.age__confirm {
  padding: 12px 22px;
}
.age__confirm {
  min-width: 190px;
}

/* --------------------------------------------------------------------------
   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 {
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;

  border: 1px solid transparent;

  background:
    linear-gradient(#010103, #010103) padding-box,
    radial-gradient(61.46% 360.25% at 50% 50%, #fdbc01 0%, #f62801 100%)
      border-box;
}
@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;
  }
}
