/* =========================================================
   Faro Casino — чистая вёрстка (без Tailwind / Svelte-классов)
   ========================================================= */

/* ---------- Шрифты ---------- */
@font-face {
  font-family: "Geologica";
  src: url("./fonts/geologica/Geologica-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Geologica";
  src: url("./fonts/geologica/Geologica-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Geologica";
  src: url("./fonts/geologica/Geologica-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Geologica";
  src: url("./fonts/geologica/Geologica-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Geologica";
  src: url("./fonts/geologica/Geologica-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

/* ---------- Дизайн-токены ---------- */
:root {
  --background: #06080c;
  --foreground: #f7f7f2;
  --card: #11161d;
  --surface-200: #0a0f15;
  --surface-300: #101720;
  --surface-400: #17222d;
  --surface-500: #22303d;
  --border: rgba(159, 231, 218, .18);
  --primary: #ffc958;
  --primary-light: #ffe28a;
  --primary-dark: #34dec4;
  --secondary: #ff5fa2;
  --muted: #a9b7c4;

  --gradient-primary: linear-gradient(135deg, #ffe28a 0%, #ffb13d 42%, #34dec4 100%);
  --gradient-outline-1: linear-gradient(135deg, rgba(52, 222, 196, .55), rgba(255, 95, 162, .34) 48%, rgba(255, 201, 88, .5));
  --gradient-outline-5: linear-gradient(135deg, rgba(255, 201, 88, .6), rgba(52, 222, 196, .35), rgba(255, 95, 162, .42));

  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shell-pad: 16px;
  --header-h: 64px;
  --sidebar-w: 260px;

  color-scheme: dark;
}

@media (min-width: 1280px) {
  :root {
    --shell-pad: 24px;
    --header-h: 84px;
  }
}

/* ---------- Сброс и база ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Geologica", ui-sans-serif, system-ui, sans-serif;
  background: #06080c;
  /* сплошной фолбэк-цвет, сам градиент теперь в ::before */
  color: var(--foreground);
  min-height: 100dvh;
  position: relative;
}

/* Декоративный фон вынесен в position:fixed псевдоэлемент.
   Он привязан к окну просмотра (viewport), а не к высоте всего документа,
   поэтому браузеру не нужно перерисовывать гигантский градиент
   по всей длине страницы при каждом изменении ширины окна. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 201, 88, .08), transparent 22rem),
    radial-gradient(circle at 86% 8%, rgba(52, 222, 196, .18), transparent 28rem),
    radial-gradient(circle at 42% 44%, rgba(255, 95, 162, .12), transparent 30rem),
    linear-gradient(180deg, #06080c 0%, #091018 52%, #06080c 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: filter .2s ease, transform .2s ease, background-color .2s ease;
  white-space: nowrap;
  position: relative;
  z-index: 500;
}

.btn--primary {
  background: var(--gradient-primary);
  color: #081016;
  box-shadow: 0 12px 28px rgba(255, 177, 61, .22);
}

.btn--primary:hover {
  filter: brightness(1.07) saturate(1.1);
  transform: translateY(-1px);
}

.btn--ghost {
  background: var(--surface-400);
  color: #fff;
}

.btn--ghost:hover {
  background: var(--surface-500);
}

.btn--sm {
  height: 40px;
  padding: 0 18px;
  font-size: 13px;
}

.btn--icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}

/* ---------- Каркас страницы ---------- */
.layout {
  display: flex;
  min-height: 100dvh;
  max-width: 1920px;
  margin: 0 auto;
}

/* Без этого правила флекс-элемент не может сжаться уже ширины
   своего внутреннего контента (например, кнопок с white-space:nowrap
   в шапке) — из-за этого вся страница «уезжала» вбок и появлялся
   горизонтальный скролл на мобильных экранах. */
.page {
  flex: 1;
  min-width: 0;
}

/* ---------- Боковое меню ---------- */
.sidebar {
  display: none;
  flex-direction: column;
  width: var(--sidebar-w);
  flex-shrink: 0;
  padding: 16px 0;
  background: linear-gradient(180deg, rgba(52, 222, 196, .08), rgba(255, 95, 162, .04)), rgba(6, 10, 15, .94);
  border-right: 1px solid rgba(52, 222, 196, .18);
  position: sticky;
  top: 0;
  height: 100dvh;
}

@media (min-width: 1280px) {
  .sidebar {
    display: flex;
  }
}

.sidebar__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px 16px;
}

.sidebar__collapse {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-500);
  color: var(--foreground);
  cursor: pointer;
  flex-shrink: 0;
}

.sidebar__logo {
  width: 128px;
  height: auto;
}

.sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 12px;
  border-radius: 24px;
  color: var(--muted);
  transition: background-color .2s ease, color .2s ease;
}

.nav-item:hover {
  background: linear-gradient(90deg, rgba(52, 222, 196, .14), rgba(255, 201, 88, .08));
  color: #fff;
}

.nav-item.is-active {
  color: #fff;
}

.nav-item.is-active .nav-item__icon {
  background: var(--gradient-primary);
  color: #081016;
}

.nav-item__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-400);
  flex-shrink: 0;
}

.nav-item__icon svg {
  width: 16px;
  height: 16px;
}

.sidebar__footer {
  padding: 8px 24px 0;
}

.lang-select {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: none;
  border-radius: 32px;
  background: var(--surface-400);
  color: var(--foreground);
  cursor: pointer;
}

.lang-select img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.lang-select span {
  flex: 1;
  text-align: left;
}

/* ---------- Верхняя панель ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-h);
  padding: 0 var(--shell-pad);
  /* Фон сделан менее прозрачным, а не полностью непрозрачным,
     чтобы сохранить лёгкий эффект стекла почти без blur.
     backdrop-filter намеренно облегчён: полноценный blur(18px) заново
     размывает всё, что под хедером, на каждом кадре ресайза/скролла —
     это самая частая причина лагов у sticky-элементов с blur. */
  background: rgba(6, 10, 15, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(52, 222, 196, .16);
  will-change: backdrop-filter;
}

.topbar__logo {
  width: 48px;
  height: auto;
}

@media (min-width: 1280px) {
  .topbar {
    justify-content: flex-end;
  }

  .topbar__logo-link,
  .topbar__logo {
    display: none;
  }
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Основной контент ---------- */
.main{
  flex: 1;
  min-width: 0;
  padding: 16px var(--shell-pad) 24px var(--shell-pad);
}

@media (min-width: 1280px) {
  .main {
    padding: 24px 24px 0 24px;
  }
}

.container {
  max-width: 1600px;
  margin: 0 auto;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* Точные значения из оригинала (faro-variant.css), а не приближение:
     мобильный размер и десктопный — две фиксированные ступени на границе 768px. */
  height: 285px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(159, 231, 218, .16);
  background: rgba(12, 18, 25, .88);
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .hero {
    height: 420px;
    border-radius: 32px;
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
}

.hero__art {
  position: absolute;
  inset: 0;
  right: 0;
  z-index: 1;
  width: 44%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  margin-left: auto;
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero__art {
    width: auto;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  max-width: 60%;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .hero__content {
    max-width: 416px;
    padding: 60px 16px 16px 54px;
  }
}

.hero__title {
  margin: 0;
  font-size: 20px;
  /* text-h3 в оригинале */
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 32px;
  }
}

/* text-h1 в оригинале */

.hero__text {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.3;
  color: #fff;
}

@media (min-width: 768px) {
  .hero__text {
    font-size: 16px;
    margin-top: 16px;
    line-height: normal;
  }
}

.hero .btn {
  margin-top: 12px;
  height: 40px;
  min-width: 103px;
  padding: 0 16px;
  font-size: 13px;
}

@media (min-width: 768px) {
  .hero .btn {
    margin-top: 40px;
    height: 48px;
    padding: 0 24px;
    font-size: 14px;
  }
}

/* ---------- Виджеты ---------- */
.widgets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

/* В оригинале только 2 ступени — мобильная и десктопная,
   без промежуточного планшетного шага */
@media (min-width: 768px) {
  .widgets {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.widget {
  position: relative;
  height: 245px;
  /* точное значение из оригинала (мобильный) */
  border-radius: 22px;
  padding: 1px;
  background: var(--gradient-outline-5);
}

@media (min-width: 768px) {
  .widget {
    height: 260px;
    border-radius: 40px;
  }
}

.widget__inner {
  position: relative;
  height: 100%;
  padding: 34px;
  /* точное значение из оригинала, одинаковое на всех размерах */
  border-radius: 21px;
  overflow: hidden;
  background: linear-gradient(309deg, rgba(18, 18, 20, .2) 25%, rgba(44, 44, 49, .2) 83%), var(--surface-200);
}

@media (min-width: 768px) {
  .widget__inner {
    border-radius: 39px;
  }
}

.widget__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  position: relative;
  z-index: 500;
}

.widget__text {
  position: relative;
  margin: 0 0 16px;
  font-size: 12px;
  color: white;
  max-width: 220px;
  z-index: 1000;
}

.widget__img {
  position: absolute;
  pointer-events: none;
}

.widget--streak .widget__img {
  top: 1px;
  right: 1px;
  width: 115px;
}

.widget--missions .widget__img {
  top: 1px;
  right: 1px;
  width: 115px;
}

.widget--app .widget__inner {
  background-image: url("./assets/bonus-widget-bg.DRBtZEgC.webp");
  background-size: cover;
  background-position: center;
}

/* В оригинале декоративное фото зафиксировано 245×252px на всех размерах экрана */
.widget--app .widget__img {
  right: 1px;
  bottom: 1px;
  width: 252px;
  height: 245px;
  object-fit: cover;
}

.widget__store-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  position: relative;
  z-index: 500;
}

.widget__store-row span {
  font-size: 14px;
  color: var(--primary-dark);
}

/* ---------- Секции / заголовки блоков ---------- */
.section {
  margin-bottom: 24px;
  /* contain: layout — при смене ширины окна и переключении
     grid-template-columns внутри секции браузер пересчитывает раскладку
     только внутри неё, а не всего документа целиком (изоляция reflow). */
  contain: layout;
}

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.section__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.section__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--surface-400);
  color: #fff;
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--surface-500);
}

.icon-btn:disabled {
  opacity: .5;
  cursor: default;
}

/* ---------- Поиск и фильтры ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.search-input {
  flex: 1;
  min-width: 200px;
  height: 48px;
  padding: 0 40px 0 16px;
  border: none;
  border-radius: 24px;
  background: var(--surface-300);
  color: var(--foreground);
  font-size: 14px;
}

.search-input::placeholder {
  color: var(--muted);
}

.filter-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 200px;
  height: 48px;
  padding: 0 16px;
  border-radius: 24px;
  background: var(--surface-300);
  color: #fff;
  cursor: pointer;
  border: none;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex-shrink: 0;
  height: 43px;
  padding: 0 20px;
  border-radius: 24px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
}

.tab:hover {
  color: #fff;
}

.tab.is-active {
  background: var(--surface-400);
  color: #fff;
}

/* ---------- Сетка игр ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  /* точное значение из оригинала (мобильный) */
}

@media (min-width: 768px) {
  .game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

.game-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
  border: none;
  padding: 0;
  display: block;
  width: 100%;
}

.game-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity .2s ease;
}

.game-card:hover .game-card__overlay {
  opacity: 1;
}

.game-card__play {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #081016;
  border: none;
  cursor: pointer;
}

.game-card__demo {
  border: none;
  background: transparent;
  color: var(--secondary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.game-card__info {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  text-align: center;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

.game-card:hover .game-card__info {
  opacity: 1;
}

.game-card__name {
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card__provider {
  color: var(--primary-dark);
  font-size: 12px;
}

/* ---------- Миссии дня (карточки) ---------- */
.missions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 769px) {
  .missions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1120px) {
  .missions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mission-card {
  height: 160px;
  border-radius: var(--radius-md);
  padding: 1px;
  background: var(--gradient-outline-1);
}

.mission-card__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border-radius: 19px;
  background: linear-gradient(309deg, rgba(18, 18, 20, .2) 25%, rgba(44, 44, 49, .2) 83%), var(--surface-200);
}

.mission-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mission-card__icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.mission-card__name {
  margin: 0;
  font-size: 18px;
}

.mission-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mission-card__reward {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border-radius: 14px;
  background: rgba(52, 222, 196, .15);
  color: var(--primary-light);
  font-size: 12px;
}

.mission-card__reward img {
  width: 18px;
  height: 16px;
}

.mission-card__progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.progress-bar {
  flex: 1;
  max-width: 175px;
  height: 11px;
  padding: 3px;
  border-radius: 20px;
  background: var(--surface-500);
}

.progress-bar__fill {
  height: 5px;
  border-radius: 20px;
  background: var(--gradient-primary);
}

.mission-card__count {
  font-size: 14px;
  white-space: nowrap;
}

.mission-card__count b {
  color: var(--primary-light);
  font-weight: 400;
}

.mission-card__count span {
  color: var(--muted);
}

/* ---------- Акции (promo cards) ---------- */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* мобильный: в столбик, как в оригинале */
  gap: 20px;
}

@media (min-width: 768px) {
  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .promo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.promo-card {
  position: relative;
  height: 220px;
  /* точное значение из оригинала (мобильный) */
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--gradient-outline-1);
  overflow: hidden;
}

@media (min-width: 768px) {
  .promo-card {
    height: 210px;
  }
}

.promo-card__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  border-radius: 23px;
  background: linear-gradient(109.5deg, #212125 0%, #18181A 99.86%);
  overflow: hidden;
}

@media (min-width: 768px) {
  .promo-card__inner {
    padding: 20px 28px 24px;
  }
}

.promo-card__img {
  position: absolute;
  top: 0;
  right: 0;
  height: 120px;
  width: 64px;
  object-fit: contain;
  object-position: right top;
  pointer-events: none;
}

@media (min-width: 768px) {
  .promo-card__img {
    top: auto;
    bottom: 0;
    height: 170px;
    width: 100px;
    object-position: right bottom;
  }
}

.promo-card__title {
  margin: 0;
  font-size: 16px;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .promo-card__title {
    font-size: 20px;
  }
}

.promo-card__text {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  position: relative;
  z-index: 1;
  max-width: 100px;
}

@media (min-width: 768px) {
  .promo-card__text {
    max-width: none;
  }
}

.promo-card .btn {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 32px;
  font-size: 13px;
}

@media (min-width: 768px) {
  .promo-card .btn {
    width: auto;
    height: 40px;
  }
}

/* ---------- SEO-текстовый блок ---------- */
.seo {
  max-width: 900px;
  margin: 32px auto 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  /* Длинный текст ниже видимой области рендерится лениво браузером,
     пока не появится в зоне прокрутки — меньше работы layout/paint
     при ресайзе и быстрее первый рендер страницы. */
  content-visibility: auto;
  contain-intrinsic-size: 1px 6000px;
}

.seo h1 {
  font-size: 26px;
  color: var(--foreground);
  margin: 0 0 16px;
}

.seo h2,
.seo h3,
.seo h4 {
  color: var(--foreground);
  margin: 32px 0 12px;
}

.seo h3 {
  font-size: 20px;
}

.seo h4 {
  font-size: 17px;
}

.seo p {
  margin: 0 0 16px;
}

.seo ul,
.seo ol {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding: 16px 18px 16px 40px;
  border: 1px solid rgba(159, 231, 218, .14);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(14, 24, 31, .72), rgba(9, 14, 20, .58));
  color: #d8e5e3;
}

.seo ul {
  list-style: disc;
}

.seo ol {
  list-style: decimal;
}

.seo li {
  padding-left: 4px;
  line-height: 1.65;
}

.seo li::marker {
  color: var(--primary);
  font-weight: 800;
}

.seo strong {
  color: var(--foreground);
}

.seo-toc {
  background: var(--surface-300);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.seo-toc summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--foreground);
}

.seo-toc ul {
  margin-top: 12px;
  padding-left: 20px;
}

@media (min-width: 640px) {
  .seo-toc ul {
    columns: 2;
  }
}

.seo-toc a {
  color: var(--primary-dark);
}

.seo-toc a:hover {
  text-decoration: underline;
}

.seo table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 24px;
  font-size: 14px;
  overflow: hidden;
  border: 1px solid rgba(159, 231, 218, .16);
  border-radius: 16px;
  background: rgba(8, 14, 20, .74);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .18);
}

.seo table th,
.seo table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(159, 231, 218, .14);
  border-right: 1px solid rgba(159, 231, 218, .10);
  color: #dce9e7;
}

.seo table th {
  color: var(--foreground);
  font-weight: 800;
  background: linear-gradient(135deg, rgba(255, 201, 88, .16), rgba(52, 222, 196, .10));
}

.seo table td:first-child,
.seo table th:first-child {
  color: #fff6d4;
  font-weight: 700;
}

.seo table tr:last-child td {
  border-bottom: none;
}

.seo table th:last-child,
.seo table td:last-child {
  border-right: none;
}

.seo table tr:nth-child(even) td {
  background: rgba(255, 255, 255, .025);
}

.seo table tr:hover td {
  background: rgba(52, 222, 196, .055);
}

/* Таблица скроллится по горизонтали внутри своего блока,
   а не выдавливает горизонтальный скролл у всей страницы */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  margin-bottom: 0;
  min-width: 480px;
}

.seo > table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.seo > table tbody,
.seo > table thead,
.seo > table tr {
  min-width: 560px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.review-card {
  background: var(--surface-300);
  border-radius: 16px;
  padding: 20px;
}

.review-card h4 {
  margin: 0 0 8px;
  color: var(--foreground);
}

.review-card p {
  margin: 0;
  font-size: 14px;
}

.faq-item {
  background: var(--surface-300);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--foreground);
}

.faq-item p,
.faq-item ul {
  margin-top: 12px;
}

/* ---------- Футер ---------- */
.footer {
  margin: 24px var(--shell-pad) 24px var(--shell-pad);
  padding: 24px var(--shell-pad);
  border-radius: var(--radius-lg);
  background: linear-gradient(105deg, rgba(23, 25, 18, .92) 0%, rgba(7, 13, 22, .94) 52%, rgba(7, 13, 22, .98) 100%);
  border: 1px solid rgba(159, 231, 218, .16);
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 24px;
}

@media (min-width: 1024px) {
  .footer__top {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) 220px 260px;
    gap: 72px;
    align-items: start;
  }
}

.footer__brand {
  max-width: 760px;
}

.footer__logo {
  width: 128px;
  margin-bottom: 16px;
}

.footer__app {
  display: inline-flex;
  align-items: center;
  min-width: 220px;
  min-height: 50px;
  gap: 10px;
  margin-bottom: 18px;
  padding: 4px 12px 4px 6px;
  border: 1px solid rgba(255, 203, 83, .6);
  border-radius: 999px;
  background: rgba(255, 203, 83, .08);
  color: var(--foreground);
}

.footer__app img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.footer__app span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.1;
}

.footer__app strong {
  font-size: 13px;
  font-weight: 800;
}

.footer__app b {
  color: #6effdf;
  font-size: 13px;
  font-weight: 800;
}

.footer__app-arrow {
  margin-left: auto;
  color: #ffc94d;
  font-size: 34px;
  font-weight: 300;
}

.footer__brand p {
  margin: 14px 0 0;
  color: #edf4f2;
  font-size: 13px;
  line-height: 1.55;
}

.footer__info,
.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__info h3,
.footer__contacts h3 {
  margin: 0 0 4px;
  color: #ffd76a;
  font-size: 18px;
  font-weight: 800;
}

.footer__info a {
  color: #f4f6f5;
  font-size: 14px;
}

.footer__info a:hover,
.footer__contact:hover {
  color: #ffd76a;
}

.footer__contact {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.footer__contact .icon-btn {
  pointer-events: none;
  width: 40px;
  height: 40px;
  color: #ffc94d;
  background: rgba(117, 154, 178, .12);
  font-size: 18px;
}

.footer__divider {
  height: 1px;
  background: var(--surface-400);
  border: none;
  margin: 24px 0;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer__badges {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__badges img {
  width: 44px;
  height: 44px;
}

.footer__stores {
  display: flex;
  gap: 14px;
}

.footer__stores a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 156px;
  height: 48px;
  padding: 0 16px;
  border-radius: 6px;
  background: var(--surface-400);
}

.footer__legal {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

/* ---------- Утилиты ---------- */
.hidden {
  display: none !important;
}
