
/* --------------------------------------------------------------------------
   1. ЗМІННІ
   -------------------------------------------------------------------------- */
:root {
  --bg:          #070310;
  --bg-nav:      #0d0320;
  --surface:     #1C0035;
  --surface-2:   #241041;
  --surface-3:   #170229;
  --line:        #3d1c63;
  --line-soft:   #2a1046;

  --text:        #f3ecfb;
  --muted:       #b7a6d0;
  --dim:         #8a7aa8;

  /* Акцент — фірмовий градієнт */
  --accent:      #c93bf0;
  --accent-2:    #FF71EA;
  --accent-3:    #8C05FF;
  --grad:        linear-gradient(23.58deg, #FF71EA 13.32%, #8C05FF 84.81%);

  --gold:        #ffc93c;
  --silver:      #d7dde8;
  --bronze:      #e0954a;

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

  --container: 1200px;
  --gutter: 20px;
  --radius: 16px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22, .68, .36, 1);
}

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

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

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

html,
body {
  overflow-x: clip;
}

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-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.tx-gold { color: var(--accent-2); }
.tx-blue { color: #c79bff; }

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

.btn--primary {
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 30px -10px rgba(196, 40, 240, .75);
}
.btn--primary:hover { box-shadow: 0 14px 34px -8px rgba(196, 40, 240, .95); transform: translateY(-1px); }

/* Ghost — прозорий фон із градієнтною рамкою */
.btn--ghost {
  color: #fff;
  background:
    linear-gradient(var(--ghost-bg, #100323), var(--ghost-bg, #100323)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  font-weight: 600;
}
.btn--ghost:hover { box-shadow: 0 10px 26px -12px rgba(196, 40, 240, .8); transform: translateY(-1px); }

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

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

/* --------------------------------------------------------------------------
   4. HEADER + NAV
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(13, 3, 32, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

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

.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(--grad);
  color: #fff;
  font-weight: 900;
  font-size: 17px;
}
.logo__name {
  font-weight: 700;
  letter-spacing: .08em;
  font-size: 18px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.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(calc(100% + 2px));
  visibility: hidden;
  pointer-events: none;

  transition:
    transform 0.3s var(--ease),
    visibility 0s linear 0.3s;

  z-index: 60;
}

.nav.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;

  transition:
    transform 0.3s var(--ease),
    visibility 0s;
}

@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;
    flex: 1;
    justify-content: flex-end;
    margin-left: 40px;

    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: none;
  }
}

.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: 34px;
    align-items: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  transition: color .2s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--accent-2); }
.nav__lock { opacity: .7; flex: 0 0 auto; }

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

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

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

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

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, #120326, var(--bg) 82%);
  padding: 24px 0 32px;
}
@media (min-width: 1024px) { .hero { padding: 40px 0 60px; } }

.hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 300px;
  padding: 34px 26px;
  border-radius: 22px;
  overflow: hidden;
  background-color: #190026;
}
@media (min-width: 1024px) { .hero__inner { min-height: 440px; padding: 54px 60px; } }

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

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

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

.hero__subtitle {
  color: #ece4f6;
  font-weight: 600;
  font-size: 22px;
  margin-top: 10px;
}
@media (min-width: 1024px) { .hero__subtitle { font-size: 32px; } }

.hero__lead {
  color: #d9cfe8;
  font-size: 14px;
  margin: 16px 0 0;
  max-width: 470px;
}
@media (min-width: 1024px) { .hero__lead { font-size: 16px; margin-top: 20px; } }

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

/* --------------------------------------------------------------------------
   7. FEATURES
   -------------------------------------------------------------------------- */
.features {
  background:
    radial-gradient(760px 380px at 2% 28%, rgba(140, 5, 255, 0.28), transparent 70%),
    radial-gradient(680px 340px at 98% 40%, rgba(255, 113, 234, 0.14), transparent 72%),
    var(--bg);
  padding: 52px 0;
}
@media (min-width: 1024px) { .features { padding: 84px 0; } }

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 38px;
}
@media (min-width: 1024px) {
  .features__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
}

.feature {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

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

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

.feature__icon { height: 40px; margin-bottom: 14px; }
/* Іконки перефарбовуємо у фірмовий фіолет (без зміни самих svg-файлів) */
.feature__icon img {
  width: auto; height: 40px; display: block;
  filter: hue-rotate(112deg) saturate(1.35) brightness(1.05);
}

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

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

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

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

/* Перемикач Active / Coming soon */
.tour-toggle {
  display: inline-flex;
  gap: 4px;
  margin: 26px auto 0;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-3);
}
.tournaments .tour-toggle { display: flex; width: max-content; margin-inline: auto; }
.tour-toggle__btn {
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s var(--ease);
}
.tour-toggle__btn.is-active { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -10px rgba(196,40,240,.8); }

/* Обгортка слайдера зі стрілками з боків */
.tournaments__slider {
  position: relative;
  margin-top: 30px;
}
@media (min-width: 1024px) { .tournaments__slider { margin-top: 40px; } }

.tour-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(28, 0, 53, .85);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.tour-arrow:hover { border-color: var(--accent); background: rgba(40, 8, 72, .95); }
.tour-arrow--prev { left: -10px; }
.tour-arrow--next { right: -10px; }
@media (min-width: 1280px) {
  .tour-arrow--prev { left: -26px; }
  .tour-arrow--next { right: -26px; }
}

.tournaments__track {
  display: flex;
  contain: inline-size;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 18px;
  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: 24px; }
}

/* Фільтр Active/Coming soon: приховані картки + порожній стан */
.t-card.is-hidden { display: none; }
.tournaments__empty {
  width: 100%;
  margin: 0;
  padding: 34px 12px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}
.tournaments__empty[hidden] { display: none; }

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

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

@media (min-width: 1024px) {
  .t-card {
    flex-basis: calc((100% - 48px) / 3);
    width: calc((100% - 48px) / 3);
    max-width: calc((100% - 48px) / 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: .06em;
  padding: 6px 12px;
  border-radius: 8px;
}
.t-card__badge--active { background: rgba(10, 2, 20, .82); color: #fff; }
.t-card__badge--soon { background: var(--grad); color: #fff; }

.t-card__body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.t-card__title { font-size: 18px; font-weight: 700; }
.t-card__meta { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.t-card__meta::before {
  content: "";
  width: 15px; height: 15px;
  margin-left: auto;
  order: 2;
  background: var(--accent-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.t-card__timer { color: var(--accent-2); font-weight: 600; order: 1; }
.t-card .btn { margin-top: 2px; }

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

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

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

/* Топ-3 п'єдестал */
.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  margin-top: 38px;
}
@media (min-width: 1024px) {
  .podium { gap: 20px; margin-top: 54px; }
}

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

.podium__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 0 26px -6px rgba(201, 59, 240, .8);
}
@media (min-width: 1024px) { .podium__avatar { width: 78px; height: 78px; } }
.podium__card--1 .podium__avatar { border-color: var(--gold); box-shadow: 0 0 30px -4px rgba(255, 201, 60, .8); width: 66px; height: 66px; }
@media (min-width: 1024px) { .podium__card--1 .podium__avatar { width: 92px; height: 92px; } }
.podium__card--3 .podium__avatar { border-color: var(--bronze); box-shadow: 0 0 26px -6px rgba(224, 149, 74, .75); }
.podium__avatar img { width: 100%; height: 100%; object-fit: cover; }

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

/* П'ЄДЕСТАЛ:
   Кожен стенд — ОКРЕМА картинка. Заміни три файли нижче
   (podium-1/2/3) на свої зображення п'єдесталів для 1-го / 2-го / 3-го місця.
   podium__result центрується строго посередині кожної картинки. */
.podium__stand {
  position: relative;
  width: 100%;
  margin-top: 14px;
  min-height: 170px;
  /* podium__result — рівно по центру картинки (обидві осі) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% 100%;
  border-radius: 14px 14px 0 0;
  background-size: cover;
}
/* --- Окрема картинка для кожного місця (заміни URL на свої файли) ---
   background-color — тимчасовий фон-заглушка, прибери після додавання картинок. */
.podium__card--1 .podium__stand {
  background-image: url("/img/podium-1.png");
  
  min-height: 190px;
}
.podium__card--2 .podium__stand {
  background-image: url("/img/podium-2.png");
}
.podium__card--3 .podium__stand {
  background-image: url("/img/podium-3.png");
}
@media (min-width: 1024px) {
  .podium__stand { min-height: 245px; }
  .podium__card--1 .podium__stand { min-height: 300px; }
}

/* Бали — по центру картинки п'єдесталу */
.podium__result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* gap: 10px; */
  text-align: center;

      top: 15px;
    position: relative;
}
.podium__label { color: rgba(255,255,255,.7); font-size: 11px; }
@media (min-width: 1024px) { .podium__label { font-size: 13px; } }
.podium__points { font-weight: 700; font-size: 12px; color: #fff; word-break: break-word; }
@media (min-width: 1024px) { .podium__points { font-size: 16px; } }

/* Таблиця лідерів — слайдер на 5 сторінок */
.lb-table {
  position: relative;
  margin-top: 30px;
}
@media (min-width: 1024px) { .lb-table { margin-top: 40px; } }

.lb-table__head {
  display: grid;
  grid-template-columns: 64px 1fr 1fr;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--accent);
  border-radius: 14px;
  background: rgba(28, 0, 53, .35);
  color: var(--accent-2);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 14px;
}
@media (min-width: 1024px) {
  .lb-table__head { grid-template-columns: 160px 1fr 1fr; padding: 20px 28px; font-size: 15px; }
}

.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;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lb-table__row {
  display: grid;
  grid-template-columns: 64px 1fr 1fr;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--surface);
  border-radius: 12px;
  font-size: 13px;
}
@media (min-width: 1024px) {
  .lb-table__row { grid-template-columns: 160px 1fr 1fr; padding: 18px 28px; font-size: 15px; }
}

.lb-table__col--pos { font-weight: 700; color: var(--text); }
.lb-table__col--pos.is-top { color: var(--gold); }
.lb-table__col--user { font-weight: 600; }
.lb-table__col--pts { text-align: right; font-weight: 600; }
@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: 8px;
  margin-top: 26px;
}
.pager__num, .pager__arrow {
  min-width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.pager__num:hover, .pager__arrow:hover { border-color: var(--accent); color: var(--text); }
.pager__num.is-active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(196,40,240,.85);
}

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

.achieve__panel {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 280px;
  padding: 32px 24px;
  border-radius: 22px;
  overflow: hidden;
  background-color: #150322;
  box-shadow: 0 0 60px -14px rgba(140, 5, 255, .55);
}
@media (min-width: 1024px) { .achieve__panel { min-height: 520px; padding: 48px 54px; } }

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

/* --------------------------------------------------------------------------
   11. FAQ
   -------------------------------------------------------------------------- */
.faq { padding: 44px 0 64px; }
@media (min-width: 1024px) { .faq { padding: 70px 0 96px; } }

.faq__list {
  max-width: 900px;
  margin: 34px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 1024px) { .faq__list { margin-top: 46px; } }

.faq__item {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}
.faq__item.is-open { border-color: var(--accent); }

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

/* Іконка — шеврон (стрілка вниз), що перевертається при відкритті */
.faq__ico {
  position: relative;
  flex: 0 0 14px;
  width: 14px; height: 14px;
  transition: transform .25s var(--ease);
}
.faq__ico::before,
.faq__ico::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 9px; height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: background-color .2s var(--ease);
}
.faq__ico::before { left: 0; transform: rotate(45deg); }
.faq__ico::after  { right: 0; transform: rotate(-45deg); }
.faq__item.is-open .faq__ico { transform: rotate(180deg); }
.faq__item.is-open .faq__ico::before,
.faq__item.is-open .faq__ico::after { background: var(--accent-2); }

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease);
  border-top: 1px solid transparent;
}
.faq__item.is-open .faq__a { border-top-color: var(--line-soft); }
.faq__a p {
  padding: 14px 20px 16px;
  color: var(--muted);
  font-size: 14px;
}
@media (min-width: 1024px) { .faq__a p { padding: 16px 24px 18px; } }

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: linear-gradient(180deg, #2a0a4c, #1a0532);
  border-top: 1px solid var(--line);
  padding: 40px 0 26px;
}

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

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

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 26px;
}
.footer__link { color: #d7cbe8; font-size: 14px; font-weight: 600; transition: color .2s var(--ease); }
.footer__link:hover { color: var(--accent-2); }

.footer__bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 1024px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer__copy { color: var(--dim); font-size: 13px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.footer__legal .footer__link { font-size: 13px; font-weight: 400; text-decoration: underline; }

/* --------------------------------------------------------------------------
   13. AGE MODAL
   -------------------------------------------------------------------------- */
.age {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 2, 26, .96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.age[hidden] { display: none; }

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

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

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

.age__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 4px;
}
.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: 44px 0 68px; }
@media (min-width: 1024px) { .page { padding: 64px 0 96px; } }

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

.page__content { margin-top: 22px; color: var(--muted); font-size: 15px; }
.page__content h2 { color: var(--text); font-size: 20px; margin: 28px 0 10px; }
.page__content p { margin-bottom: 12px; }

/* --------------------------------------------------------------------------
   13c. ДІСКЛЕЙМЕР
   -------------------------------------------------------------------------- */
.disclaimer { padding-block: 22px; }
.disclaimer__box {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(255, 59, 61, .35);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 16px 22px;
}
.disclaimer__badge {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff5457, #b3102f);
  box-shadow: 0 0 18px rgba(255, 59, 61, .45);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .01em;
}
.disclaimer__body { min-width: 0; }
.disclaimer__title {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ff6b6d;
}
.disclaimer__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
@media (min-width: 768px) {
  .disclaimer__box { padding: 18px 26px; }
  .disclaimer__badge { width: 50px; height: 50px; font-size: 15px; }
  .disclaimer__title { font-size: 13px; }
  .disclaimer__text { font-size: 14px; }
}

/* --------------------------------------------------------------------------
   14. ДОСТУПНІСТЬ
   -------------------------------------------------------------------------- */
:focus-visible { outline: 2px solid var(--accent-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: #0c0219;
  border: 1px solid var(--accent);
  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: #e7ddf5; 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(--accent-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: 600;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.cookie__btn:active { transform: translateY(1px); }

.cookie__btn--reject { background: #2a1046; color: #c79bff; font-weight: 700; }
.cookie__btn--reject:hover { background: #351656; }

.cookie__btn--accept {
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 26px -12px rgba(196, 40, 240, .85);
}
.cookie__btn--accept:hover { box-shadow: 0 14px 30px -10px rgba(196, 40, 240, .95); transform: translateY(-1px); }

/* ==================== LEGAL TABLES (tableWrapper) ==================== */
[class*="tableWrapper"] {
  margin: 22px 0;
  padding: 6px;
  background: #120326;
  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(--accent-2);
  font-weight: 700;
  text-align: left;
  vertical-align: top;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(201, 59, 240, .35);
}

[class*="tableWrapper"] td {
  color: #d6cbe6;
  vertical-align: top;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-soft);
}

[class*="tableWrapper"] td:first-child { color: #f3ecfb; }

[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; }
}
