/* --------------------------------------------------------------------------
   1. ЗМІННІ
   -------------------------------------------------------------------------- */
:root {
  /* Фони та поверхні */
  --bg: #12151a;
  --surface: #016d08;
  --surface-overlay: rgb(4 10 26 / 0.6);
  --glass: rgb(150 177 221 / 0.55);

  /* Лінії */
  --line: #1d3151;
  --line-soft: #162236;
  --divider: color-mix(in srgb, var(--text) 25%, transparent);

  /* Текст */
  --text: #fff;
  --text-soft: #dfe6f2;
  --muted: #c3c3c3;
  --on-accent: var(--bg); /* текст на акцентному фоні */

  /* Акцент і статуси */
  --accent: #036f5f;
  --accent-soft: color-mix(in srgb, var(--accent) 15%, transparent);
  --warning: #f5a403;
  --danger: #c72828;
  --danger-text: #f2b8b8;

  /* Градієнти */
  --card-gradient: linear-gradient(
    135deg,
    var(--bg) 0%,
    rgb(13 32 64 / 0.6) 100%
  );
  --border-gradient: linear-gradient(90deg, var(--text) 0%, var(--accent) 100%);

  /* Типографіка */
  --font: 'Mitr', sans-serif;

  /* Сітка */
  --container: 1280px;
  --gutter: 17px;

  /* Радіуси */
  --radius-xs: 4px;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Анімації */
  --ease: cubic-bezier(0.22, 0.68, 0.36, 1);

  /* Шари */
  --z-header: 50;
  --z-nav: 60;
  --z-cookie: 90;
  --z-modal: 100;
}

/* --------------------------------------------------------------------------
   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-special {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   3. КНОПКИ
   -------------------------------------------------------------------------- */
.btn,
.cookie__btn {
  transition:
    transform 0.15s var(--ease),
    box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease);
}
.btn:hover,
.cookie__btn:hover {
  transform: scale(1.05);
}
.btn:active,
.cookie__btn:active {
  transform: translateY(1px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 190px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;

  color: #fff;
}

.btn--primary {
  background: linear-gradient(90deg, #fdec00 0%, #ff0000 100%);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--accent);
}

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

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

/* --------------------------------------------------------------------------
   4. HEADER + NAV
   -------------------------------------------------------------------------- */
.header {
  position: static;
  top: 0;
  width: 100%;
  z-index: var(--z-header);
  background-color: var(--surface);

  .btn--ghost {
    border: 1px solid #fdec00;
    color: #fdec00;
  }
}

.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: var(--accent);
  color: var(--on-accent);
  font-weight: 900;
  font-size: 17px;
}
.logo__name {
  font-weight: 800;
  font-size: 15px;
}

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

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

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
@media (min-width: 1024px) {
  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: 30px;

    flex: 1;
    justify-content: center;
  }
}

.nav__link {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav__link:hover,
.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;
  }
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
}
.burger span {
  width: 100%;
  height: 2px;
  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: 500;
  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: 18px;
  }
}

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */

.hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  /* min-height: 700px; */
  padding: 76px 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;

  background: linear-gradient(#00000070, #00000070), url('/img/main-bg.webp');

  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  margin-top: 96px;
  margin-bottom: 55px;
}
@media (min-width: 1024px) {
  .hero__inner {
    margin-top: 77px;
    margin-bottom: 105px;
    padding: 76px 48px;
  }
}

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

/* Текст поверх картинки */
.hero__text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  width: 100%;
}
@media (min-width: 1024px) {
  .hero__text {
    align-items: start;
    text-align: start;
    gap: 15px;
  }
}

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

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

.hero__lead {
  max-width: 615px;
  margin: 14px 0 0;
  font-size: 14px;
}
@media (min-width: 1024px) {
  .hero__lead {
    font-size: 24px;
    margin-top: 18px;
  }
}

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

/* --------------------------------------------------------------------------
   7. FEATURES
   -------------------------------------------------------------------------- */
.features {
  padding: 92px 0;

  background: radial-gradient(
    72.32% 181.02% at 8.98% 27.68%,
    #016d08 0%,
    #000000 100%
  );
}

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

  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 0 color-mix(in srgb, var(--accent) 8%, transparent);
  overflow: hidden;
}

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

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

.feature__title {
  font-size: 20px;
  font-weight: 500;
  margin-top: 10px;
}
@media (min-width: 1024px) {
  .feature__title {
    font-size: 22px;
  }
}
.feature__text {
  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: 92px 0;
  background: var(--bg);
}
/* @media (min-width: 1024px) {
  .tournaments {
    padding: 68px 0;
  }
} */

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

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

/* Ширина картки керується однією змінною --card-w */
.t-card {
  --card-w: calc(100% - 1px);

  flex: 0 0 var(--card-w);
  width: var(--card-w);
  max-width: var(--card-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  background: var(--accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Планшети: дві картки без надмірного розтягування */
@media (min-width: 600px) and (max-width: 1023px) {
  .t-card {
    --card-w: calc((100% - 16px) / 2);
  }
}
@media (min-width: 1024px) {
  .t-card {
    --card-w: 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;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.t-card__badge--active,
.t-card__badge--soon {
  background: var(--bg);
  font-weight: 400;
}
.t-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}
.t-card__title {
  font-size: 17px;
  font-weight: 500;
}
.t-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.t-card__timer {
  font-weight: 400;
}
.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 {
  width: 22px;
  border-radius: 5px;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   9. LEADERBOARD
   -------------------------------------------------------------------------- */
.leaderboard {
  position: relative;
  padding: 92px 0;

  background: linear-gradient(#000000ab, #000000ab), url('/img/main-bg.webp');

  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
/* @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%;
  border: 1px solid var(--accent);
  overflow: hidden;
}
.podium__card--1 .podium__avatar {
  width: 62px;
  height: 62px;
}
@media (min-width: 1024px) {
  .podium__avatar {
    width: 90px;
    height: 90px;
  }
  .podium__card--1 .podium__avatar {
    width: 100px;
    height: 100px;
  }
}
.podium__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.podium__stand {
  position: relative;
  width: 100%;
  margin-top: 12px;
  padding: 48px 8px 16px;
  background: linear-gradient(
    180deg,
    var(--surface),
    color-mix(in srgb, var(--surface) 40%, transparent)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
@media (min-width: 1024px) {
  .podium__stand {
    padding: 125px 16px 20px;
  }
}

.podium__medal {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 58px;
  transform: translateX(-50%);
}
@media (min-width: 1024px) {
  .podium__medal {
    width: 140px;
  }
}

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

/* Таблиця — слайдер на 5 сторінок */
.lb-table {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  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%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  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;
  font-size: 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    var(--border-gradient) border-box;
  color: var(--accent);
}

.lb-table__row {
  background: linear-gradient(180deg, #0039bd 0%, #016d08 100%);
  color: #fff;
}
.lb-table__col--pos {
  color: red;
}
.lb-table__head {
  font-weight: 500;
  margin-bottom: 8px;
}
@media (min-width: 1024px) {
  .lb-table__head,
  .lb-table__row {
    grid-template-columns: 120px 1fr 1fr;
    padding: 26px 24px;
    font-size: 14px;
  }
}

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

/* Пагінація */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
}
.pager__num,
.pager__arrow {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--text);
  font-size: 14px;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}
.pager__num:hover,
.pager__arrow:hover {
  color: var(--text);
}
.pager__num.is-active {
  color: red;
}

/* --------------------------------------------------------------------------
   10. ACHIEVEMENTS CTA
   -------------------------------------------------------------------------- */
.achieve {
  margin-block: 92px;

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

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

.achieve-inner {
  background-image: url('/img/achiev-bg.webp');
  background-position: center;
  background-size: cover;

  border-radius: var(--radius-lg);

  padding-block: 44px;
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
@media (min-width: 1024px) {
  .achieve {
    .section__lead {
      margin-bottom: 40px;
    }
  }
  .achieve-inner {
    padding-block: 120px;
  }
}

/* --------------------------------------------------------------------------
   11. FAQ
   -------------------------------------------------------------------------- */

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

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

.faq__item {
  padding: 16px 18px;
  background: var(--accent);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}
@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(--text);
  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__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;
}

/* --------------------------------------------------------------------------
   11b. DISCLAIMER
   -------------------------------------------------------------------------- */
.disclaimer {
  padding-inline: 17px;

  h2 {
    color: red;
  }

  .container {
    padding: 22px;

    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
  }
}

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  padding: 36px 0 70px;
  background-color: var(--surface);
  color: var(--text);
}

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

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

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

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

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

  text-decoration: underline;
  font-weight: 300;
}
.footer__legal .footer__link {
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   13. AGE MODAL
   -------------------------------------------------------------------------- */
.age {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    linear-gradient(360deg, #003804 0%, rgba(0, 0, 29, 0.2) 100%),
    url('/img/main-bg.webp');

  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.age[hidden] {
  display: none;
}

.age__card {
  width: 100%;
  max-width: 440px;
  padding: 40px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);

  background: linear-gradient(180deg, #060c18 0%, #0b1526 100%);
  border: 1px solid #1c2c46;
  box-shadow: 0px 30px 80px -30px #000000e5;

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

.age__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.age__warn {
  color: var(--warning);
  font-size: 22px;
  line-height: 1;
}
.age__title {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
}
@media (min-width: 1024px) {
  .age__title {
    font-size: 24px;
  }
}

.age__strong {
  font-weight: 700;
  font-size: 16px;
}
.age__text {
  margin-top: 14px;
  padding-bottom: 4px;
  font-size: 14px;
}
@media (min-width: 1024px) {
  .age__strong {
    font-size: 18px;
  }
  .age__text {
    font-size: 15px;
  }
}

.age__actions {
  display: flex;
  flex-direction: column;
  gap: 20px;

  margin-top: 30px;
  width: 100%;
}
.age__confirm {
  background: linear-gradient(90deg, #fdec00 0%, #ff0000 100%);

  padding: 12px 22px;
}
.age__deny,
.age__confirm {
  padding: 12px 22px;
}

/* --------------------------------------------------------------------------
   13b. LEGAL (privacy / terms / cookie)
   -------------------------------------------------------------------------- */
.page {
  padding: 40px 0 64px;
}
@media (min-width: 1024px) {
  .page {
    padding: 60px 0 90px;
  }
}

.page__title {
  font-weight: 500;
  font-size: 28px;
    color: #0066FF;

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

/* без max-width — текст заповнює контейнер на десктопі */
.page__content {
  margin-top: 20px;
  color: var(--text);
  font-size: 15px;
}
.page__content h2 {
  margin: 26px 0 10px;
  color: var(--text);
  font-size: 20px;
}
.page__content p {
  margin-bottom: 12px;
}
.page__content ol {
 list-style: none;
}
.page__content > ol > li {
  border: 2px solid #fdec00;
  border-radius: var(--radius-md);
}
.page__content ol > li h2 {
  color: #0066FF;

}

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

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

/* --------------------------------------------------------------------------
   15. COOKIE BANNER
   -------------------------------------------------------------------------- */
.cookie {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: var(--z-cookie);
  padding-bottom: 16px;
}
.cookie[hidden] {
  display: none;
}

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

.cookie__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 100px 14px;

  background: linear-gradient(#000000c4, #000000c4), url('/img/main-bg.webp');

  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  width: 365px;

  border: 3px solid;
  border-image-source: linear-gradient(90deg, #fdec00 0%, #ff0000 100%);
  border-image-slice: 1;
}
@media (min-width: 1024px) {
  .cookie__inner {
    padding: 50px 66px;
    gap: 30px;
    width: var(--container);
  }
}

.cookie__text {
  color: var(--text-soft);
  font-size: 22px;
  line-height: 1.5;
}
@media (min-width: 1024px) {
  .cookie__text {
    flex: 1;
    font-size: 15px;
  }
}

.cookie__link {
  color: var(--text);
  text-decoration: underline;
}
.cookie__link:hover {
  color: var(--accent);
}

.cookie__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;

  width: 195px;
  margin: 0 auto;
  margin-top: 30px;
}
@media (min-width: 1024px) {
  .cookie__actions {
    flex-direction: row;
    margin: 0;
    justify-content: start;
  }
}

.cookie__btn {
  padding: 12px 26px;
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   16. LEGAL TABLES (tableWrapper)
   -------------------------------------------------------------------------- */
[class*='tableWrapper'] {
  margin: 22px 0;
  padding: 6px;
  /* background: var(--surface); */
  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,
[class*='tableWrapper'] td {
  padding: 15px 20px;
  vertical-align: top;
}

/* Заголовок: акцентні підписи + лінія знизу */
[class*='tableWrapper'] th {
  color: var(--accent);
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

[class*='tableWrapper'] td {
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
}

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

/* Вертикальні роздільники між колонками */
[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;
  }
}

/* --------------------------------------------------------------------------
   ПРИВАТНИЙ ХЕДЕР — блок користувача (іконка + username + вихід)
   -------------------------------------------------------------------------- */
.user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user__box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  background: var(--surface-overlay);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

.user__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent);
  box-shadow: 0 0 14px -6px color-mix(in srgb, var(--accent) 80%, transparent);
}

.user__name {
  max-width: 120px;
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (min-width: 1024px) {
  .user__name {
    max-width: 200px;
  }
}

.user__logout {
  min-width: fit-content;
  padding: 9px 16px;
  font-size: 13px;
}

/* Хедер публічних сторінок: блок користувача видно лише після входу,
   тоді ж ховаються меню з кнопками Log In / Sign Up та бургер */
.header__user {
  display: none;
}
html.is-auth .header__user {
  display: flex;
}
html.is-auth .header .nav,
html.is-auth .header .burger {
  display: none;
}
