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

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

  --green: #1c4c37;
  --lightgreen: #b1fe49;
  --grey: #c3c3c3;
  --blacklight: #010101;

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

  --container: 1180px;
  --gutter: 18px;
  --radius: 14px;
  --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: 14px 26px;
  border-radius: 999px;
  transition:
    transform 0.15s var(--ease),
    box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}

.btn--primary,
.btn--gold {
  background: #010101;
  color: #ffffff;
  font-weight: 700;
  border: 3px solid var(--lightgreen);
  box-shadow: 0px 0px 12px 0px var(--lightgreen);
  min-width: 140px;
}
.btn--primary:hover,
.btn--gold:hover {
  box-shadow: 0 12px 26px -8px var(--lightgreen);
  transform: translateY(-1px);
}

.btn--ghost {
  background: var(--green);
  color: var(--text);
  border: 1px solid var(--line);
  min-width: 140px;
}
.btn--ghost:hover {
  border-color: var(--lightgreen);
  color: var(--lightgreen);
}

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

.btn--block {
  min-width: 144px;
  background-color: #b1fe49;
  color: black;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   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__img {
  height: 24px;
  display: block;
}

.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: 100px;
    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__item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__link {
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 40px;
  transition: color 0.2s var(--ease);
}
.nav__link:hover {
  color: var(--lightgreen);
}
.nav__link.is-active {
  color: var(--lightgreen);
}
.nav__lock {
  font-size: 12px;
  line-height: 40px;
  opacity: 0.8;
}
.nav__icon {
  width: 20px;
  height: 20px;
}
.nav__icon-lock {
  width: 10px;
  height: 13px;
}

.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 {
  text-align: center;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
@media (min-width: 1024px) {
  .section__title {
    font-size: 48px;
  }
}

.section__lead {
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  margin: 16px auto 0;
}

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  background: #010101;
  position: relative;
  padding: 0;
}

/* .hero__bg {
  position: absolute;
  object-fit: cover;
  top: 0;
  left: 0;
  width: 100%;
  height: 900px;
} */

.hero__container {
  position: relative;
  z-index: 1;
  padding: 40px 0 40px;
}

@media (min-width: 1024px) {
  .hero__container {
    padding: 100px 0 100px;
  }
}

.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;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__text {
    max-width: 56%;
    align-items: flex-start;
  }
}

.hero__title {
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 56px;
  letter-spacing: 0px;
  text-align: center;
}
@media (min-width: 1024px) {
  .hero__title {
    text-align: left;
    font-size: 78px;
    line-height: 86px;
  }
}

.hero__subtitle {
  color: #c6d0e0;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  margin-top: 12px;
  text-align: center;
}
@media (min-width: 1024px) {
  .hero__subtitle {
    text-align: left;
  }
}

.hero__lead {
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: 0px;
  text-align: center;
  margin: 14px 0 0;
  max-width: 485px;
}
@media (min-width: 1024px) {
  .hero__lead {
    text-align: left;
    font-size: 18px;
    line-height: 26px;
    margin-top: 16px;
  }
}

.hero .btn {
  margin-top: 48px;
  width: 200px;
}

/* --------------------------------------------------------------------------
   7. FEATURES
   -------------------------------------------------------------------------- */
.features {
  background: #010101;
  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 {
  border: 1px solid transparent;
  background:
    linear-gradient(#010101, #010101) padding-box,
    linear-gradient(180deg, #b1fe49 0%, #0e1321 100%) border-box;
  border-radius: var(--radius);
  overflow: hidden;
}

/* Велика картинка на всю ширину картки */
.feature__media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature__img {
  max-width: 90%;
  max-height: 90%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
@media (min-width: 1024px) {
  .feature__img {
    max-width: 240px;
    max-height: 240px;
  }
}
/* Градієнт поверх картинки, що зливається з фоном картки */
.feature__media::after {
  content: "";
  position: absolute;
  inset: 10px;
  bottom: 0;
  background: linear-gradient(180deg, #01010110 60%, #010101 100%);
}

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

.feature__title {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}
@media (min-width: 1024px) {
  .feature__title {
    font-size: 22px;
  }
}
.feature__text {
  color: #ffffff;
  font-weight: 300;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
}
@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;
  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: 1 / 1;
  overflow: hidden;
}
.t-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.t-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.t-card__meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}
.t-card__timer {
  color: white;
  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(--lightgreen);
  width: 22px;
  border-radius: 5px;
}

.slider__dots--tabs {
  gap: 0;
  margin: 20px auto 0;
  max-width: 520px;
  width: 100%;
  background: var(--green);
  border-radius: 999px;
  padding: 4px;
  overflow: hidden;
}

.slider__dots--tabs button {
  position: relative;
  z-index: 1;
  flex: 1;
  width: auto;
  height: 56px;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  transition:
    font-size 0.25s var(--ease),
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    margin 0.25s var(--ease);
}

.slider__dots--tabs button:hover {
  font-size: 18px;
}

.slider__dots--tabs button.is-active {
  z-index: 2;
  width: auto;
  border-radius: 999px;
  background: var(--lightgreen);
  color: var(--blacklight);
  font-size: 18px;
}

.slider__dots--tabs button:first-child.is-active {
  margin-right: -50px;
}

.slider__dots--tabs button:last-child.is-active {
  margin-left: -50px;
}

@media (max-width: 1023px) {
  .slider__dots--tabs button {
    font-size: 15px;
    height: 50px;
  }
}

/* --------------------------------------------------------------------------
   9. LEADERBOARD
   -------------------------------------------------------------------------- */
.leaderboard {
  position: relative;
  padding: 46px 0 56px;
  background-color: #010101;
  background-image:
    linear-gradient(
      rgba(1, 1, 1, 1) 0%,
      rgba(1, 1, 1, 0.7) 30%,
      rgba(1, 1, 1, 1) 100%
    ),
    url("/images/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;
}
@media (min-width: 1024px) {
  .podium__avatar {
    width: 90px;
    height: 90px;
  }
}
@media (min-width: 1024px) {
  .podium__card--1 .podium__avatar {
    width: 84px;
    height: 84px;
  }
}
.podium__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.podium__stats {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

@media (min-width: 1024px) {
  .podium__stats {
    flex-direction: row;
    margin-top: 10px;
  }
}

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

.podium__stand {
  width: 100%;
  margin-top: 52px;
  padding: 24px 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: 80px 16px 60px;
  }
}
@media (min-width: 1024px) {
  .podium__card--1 .podium__stand {
    padding-top: 84px;
    padding-bottom: 100px;
  }
}

.podium__medal {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
}
@media (min-width: 1024px) {
  .podium__medal {
    top: -40px;
    width: 115px;
    height: 115px;
  }
}

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

/* Таблиця — слайдер на 5 сторінок */
.lb-table {
  margin-top: 26px;
  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: 1fr 1fr 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  height: 82px;
}
@media (min-width: 1024px) {
  .lb-table__head,
  .lb-table__row {
    grid-template-columns: 1fr 1fr 1fr;
    padding: 16px 24px;
  }
}

.lb-table__head {
  background: #000000;
  color: var(--lightgreen);
  font-weight: 500;
  font-size: 16px;
}

.lb-table__row {
  background: rgba(9, 16, 30, 0.7);
  border: 1px solid var(--lightgreen);
  border-radius: 12px;
  font-size: 13px;
  margin-top: 8px;
  height: 82px;
}
@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: 7px;
  color: var(--lightgreen);
  background-color: var(--green);
  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 {
  background-color: var(--lightgreen);
  color: var(--green);
}

.pager__arrow {
  background-color: #000;
  border: 1px solid var(--lightgreen);
}

.pager__num.is-active {
  background: var(--lightgreen);
  border-color: var(--green);
  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: center;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.achieve__title {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  text-align: center;
}
@media (min-width: 1024px) {
  .achieve__title {
    text-align: center;
    font-size: 48px;
    line-height: 56px;
  }
}
.achieve__lead {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: 0px;
  text-align: center;
  margin: 16px 0 0;
  max-width: 708px;
}
@media (min-width: 1024px) {
  .achieve__lead {
    margin-top: 16px;
    text-align: center;
  }
}
.achieve__text .btn {
  font-size: 16px;
  margin-top: 46px;
  background-color: var(--lightgreen);
  color: #000000;
  box-shadow: none;
  width: 200px;
  height: 54px;
}

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

.faq__list {
  max-width: 1130px;
  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;
}

.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);
  border-bottom: 1px solid var(--lightgreen);
}
@media (min-width: 1024px) {
  .faq__q {
    padding: 18px 22px;
    font-size: 15px;
  }
}

.faq__ico {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  transform: rotate(90deg);
  transition: transform 0.25s var(--ease);
}
.faq__ico::before,
.faq__ico::after {
  content: "";
  position: absolute;
  background: var(--muted);
  border-radius: 2px;
  transition:
    transform 0.25s var(--ease),
    opacity 0.2s var(--ease);
}
.faq__ico::before {
  top: 4px;
  left: 2px;
  width: 10px;
  height: 2px;
  transform: rotate(45deg);
  transform-origin: right center;
}
.faq__ico::after {
  top: 3px;
  left: 2px;
  width: 10px;
  height: 2px;
  transform: rotate(-45deg);
  transform-origin: right center;
}
.faq__item.is-open .faq__ico {
  transform: rotate(-90deg) translateY(50%);
}
.faq__item.is-open .faq__ico::before,
.faq__item.is-open .faq__ico::after {
  background: var(--lightgreen);
}

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

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: #000000;
  padding: 34px 0 24px;
}

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

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

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
}
.footer__link {
  color: #ffffff;
  font-size: 20px;
  transition: color 0.2s var(--ease);
  transition-duration: 0.2s;
}
.footer__link:hover {
  transform: scale(1.05);
}
.footer__social:hover {
  transition-duration: 0.2s;
  transform: scale(1.05);
}
.footer__socials {
  display: flex;
  gap: 10px;
}

.footer__bottom {
  margin-top: 26px;
  padding-top: 18px;
  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 {
  color: var(--dim);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}
.footer__legal .footer__link {
  font-size: 14px;
  color: var(--dim);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   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: #1c4c37;
  -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(--lightgreen);
  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;
}
.tx-gold {
  color: #ffac07;
}
.tx-blue {
  color: var(--lightgreen);
}
@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: var(--lightgreen);
  color: #000000;
  font-size: 22px;
  line-height: 1;
}
.age__x:hover {
  background: var(--green);
  color: var(--lightgreen);
}

.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 {
  color: var(--lightgreen);
  text-transform: uppercase;
  text-align: center;
  font-weight: 700;
  font-size: 32px;
}

/* без 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;
}

/* --------------------------------------------------------------------------
   13c. ДІСКЛЕЙМЕР
   -------------------------------------------------------------------------- */
.disclaimer {
  padding-block: 26px;
}
.disclaimer__box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 880px;
  margin-inline: auto;
  padding: 20px 22px;
  border: 2px solid #ff3b3d;
  border-radius: var(--radius-sm);
  background: rgba(255, 59, 61, 0.14);
  box-shadow: 0 0 0 1px rgba(255, 59, 61, 0.2), 0 0 26px rgba(255, 59, 61, 0.18);
}
.disclaimer__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  color: #ff5c5e;
}
.disclaimer__body {
  min-width: 0;
  text-align: left;
}
.disclaimer__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff5c5e;
}
.disclaimer__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
@media (min-width: 768px) {
  .disclaimer__box {
    padding: 24px 30px;
  }
  .disclaimer__title {
    font-size: 15px;
  }
  .disclaimer__text {
    font-size: 15px;
  }
}

/* --------------------------------------------------------------------------
   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 var(--lightgreen);
  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 0.15s var(--ease),
    box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease);
}
.cookie__btn:active {
  transform: translateY(1px);
}

.cookie__btn--reject {
  background: var(--green);
  color: #ffffff;
  font-weight: 700;
}
.cookie__btn--reject:hover {
  background: var(--lightgreen);
  color: var(--green);
}

.cookie__btn--accept {
  background: #282b2c;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 8px 22px -10px var(--lightgreen);
  border: 1px solid var(--lightgreen);
}
.cookie__btn--accept:hover {
  box-shadow: 0 12px 26px -8px var(--lightgreen);
  transform: translateY(-1px);
}

/* ==================== LEGAL TABLES (tableWrapper) ==================== */
[class*="tableWrapper"] {
  margin: 22px 0;
  padding: 6px;
  background: #000000;
  border: 1px solid var(--lightgreen);
  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(--lightgreen);
  font-weight: 700;
  text-align: left;
  vertical-align: top;
  padding: 8px 16px;
  border-bottom: 1px solid var(--lightgreen);
}

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

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

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

/* Останній рядок — без нижньої лінії */
[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: 8px 16px;
  }
}
