/* =========================================================
   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: #070706;
  --foreground: #fff8e7;
  --card: #141211;
  --surface-200: #0d0d0c;
  --surface-300: #171514;
  --surface-400: #24201c;
  --surface-500: #332b22;
  --border: rgba(241, 190, 92, .22);
  --primary: #f2bd55;
  --primary-light: #ffe6a5;
  --primary-dark: #4be0c7;
  --secondary: #e74c65;
  --muted: #c8bda7;

  --gradient-primary: linear-gradient(135deg, #fff0b8 0%, #f5b943 42%, #df4a59 100%);
  --gradient-outline-1: linear-gradient(135deg, rgba(245, 185, 67, .68), rgba(75, 224, 199, .38) 52%, rgba(231, 76, 101, .54));
  --gradient-outline-5: linear-gradient(135deg, rgba(255, 226, 145, .74), rgba(231, 76, 101, .46), rgba(75, 224, 199, .42));

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --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: var(--background);
  /* сплошной фолбэк-цвет, сам градиент теперь в ::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(245, 185, 67, .11), transparent 24rem),
    radial-gradient(circle at 84% 8%, rgba(75, 224, 199, .14), transparent 24rem),
    radial-gradient(circle at 12% 92%, rgba(231, 76, 101, .13), transparent 22rem),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 96px),
    linear-gradient(180deg, #070706 0%, #14100c 48%, #090807 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: 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: filter .2s ease, transform .2s ease, background-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  position: relative;
  z-index: 500;
}

.btn--primary {
  background: var(--gradient-primary);
  color: #081016;
  box-shadow: 0 12px 28px rgba(245, 185, 67, .22), inset 0 1px 0 rgba(255, 255, 255, .42);
}

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

.btn--ghost {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .12);
}

.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(245, 185, 67, .08), rgba(75, 224, 199, .045)), rgba(7, 7, 6, .96);
  border-right: 1px solid rgba(245, 185, 67, .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: 10px;
  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: 12px;
  color: var(--muted);
  transition: background-color .2s ease, color .2s ease;
}

.nav-item:hover {
  background: linear-gradient(90deg, rgba(245, 185, 67, .14), rgba(75, 224, 199, .08));
  color: #fff;
}

.nav-item.is-active {
  color: #fff;
  background: rgba(255, 255, 255, .06);
}

.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: 10px;
  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: 12px;
  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(7, 7, 6, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 185, 67, .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: 308px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(245, 185, 67, .28);
  background: #0b0a09;
  margin-bottom: 20px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .12);
}

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

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(7, 7, 6, .94) 0%, rgba(7, 7, 6, .78) 34%, rgba(7, 7, 6, .22) 66%, rgba(7, 7, 6, .08) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .46));
}

.hero::after {
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(7, 7, 6, .72), transparent);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(1.02);
}

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

@media (min-width: 768px) {
  .hero__content {
    max-width: 540px;
    padding: 64px 16px 28px 56px;
  }
}

.hero__title {
  margin: 0;
  font-size: 24px;
  /* text-h3 в оригинале */
  font-weight: 800;
  color: #fff8e7;
  line-height: 1.08;
  text-shadow: 0 4px 28px rgba(0, 0, 0, .68);
}

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

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

.hero__text {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #f5ddac;
  max-width: 430px;
}

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

.hero .btn {
  margin-top: 16px;
  height: 42px;
  min-width: 122px;
  padding: 0 18px;
  font-size: 13px;
}

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

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

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

.widget {
  position: relative;
  height: 236px;
  /* точное значение из оригинала (мобильный) */
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 226, 145, .78), rgba(231, 76, 101, .34) 52%, rgba(75, 224, 199, .52));
  box-shadow: 0 20px 52px rgba(0, 0, 0, .32);
  transition: transform .2s ease, filter .2s ease;
}

.widget:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

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

.widget__inner {
  position: relative;
  height: 100%;
  padding: 28px;
  /* точное значение из оригинала, одинаковое на всех размерах */
  border-radius: 17px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 12%, rgba(245, 185, 67, .24), transparent 9rem),
    radial-gradient(circle at 0 100%, rgba(75, 224, 199, .1), transparent 11rem),
    linear-gradient(150deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 38%),
    linear-gradient(135deg, #211b14 0%, #12100d 62%, #0b0a09 100%);
}

.widget__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(9, 8, 7, .96) 0%, rgba(9, 8, 7, .74) 42%, rgba(9, 8, 7, .28) 72%, rgba(9, 8, 7, .08) 100%);
}

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

.widget__title {
  margin: 0 0 8px;
  max-width: 250px;
  font-size: 22px;
  font-weight: 700;
  position: relative;
  z-index: 3;
  color: #fff8e7;
  line-height: 1.12;
}

.widget__text {
  position: relative;
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
  max-width: 235px;
  z-index: 3;
}

.widget__img {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  transition: transform .2s ease, opacity .2s ease;
}

.widget:hover .widget__img {
  transform: scale(1.04);
}

.widget--streak .widget__img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: .9;
}

.widget--missions .widget__img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: .9;
}

.widget--streak .widget__inner {
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 226, 145, .22), transparent 9rem),
    linear-gradient(145deg, rgba(231, 76, 101, .12), transparent 44%),
    linear-gradient(135deg, #211a12 0%, #12100d 64%, #090807 100%);
}

.widget--missions .widget__inner {
  background:
    radial-gradient(circle at 92% 15%, rgba(75, 224, 199, .18), transparent 9rem),
    linear-gradient(145deg, rgba(245, 185, 67, .1), transparent 42%),
    linear-gradient(135deg, #171915 0%, #11100e 62%, #090807 100%);
}

.widget--app .widget__inner {
  background:
    radial-gradient(circle at 95% 20%, rgba(75, 224, 199, .22), transparent 9rem),
    linear-gradient(135deg, #0d1716 0%, #11100e 58%, #090807 100%);
}

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

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

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

/* ---------- Секции / заголовки блоков ---------- */
.section {
  margin-bottom: 30px;
  /* 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: 20px;
  font-weight: 600;
  color: #fff8e7;
}

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

.icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .08);
  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: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  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: 14px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .08);
}

.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: 12px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
}

.tab:hover {
  color: #fff;
}

.tab.is-active {
  background: linear-gradient(135deg, rgba(245, 185, 67, .18), rgba(231, 76, 101, .12));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(245, 185, 67, .22);
}

/* ---------- Сетка игр ---------- */
.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: 1px solid rgba(245, 185, 67, .13);
  padding: 0;
  display: block;
  width: 100%;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .25);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 185, 67, .42);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .34);
}

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

.game-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 6, .16), rgba(7, 7, 6, .82));
  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: 14px;
  background: var(--gradient-primary);
  color: #081016;
  border: none;
  cursor: pointer;
}

.game-card__demo {
  border: none;
  background: transparent;
  color: var(--primary-light);
  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-light);
  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);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .22);
}

.mission-card__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 42%), linear-gradient(309deg, rgba(28, 23, 18, .85) 25%, rgba(12, 11, 10, .96) 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(245, 185, 67, .14);
  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: rgba(255, 255, 255, .1);
}

.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;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .26);
}

@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(135deg, rgba(245, 185, 67, .09), rgba(75, 224, 199, .04) 46%, rgba(231, 76, 101, .08)), linear-gradient(109.5deg, #211d18 0%, #11100f 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;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .38));
}

@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: #d4c7ad;
  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: #c8bda7;
  /* Длинный текст ниже видимой области рендерится лениво браузером,
     пока не появится в зоне прокрутки — меньше работы 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 {
  margin: 0 0 16px;
  padding-left: 20px;
}

.seo li {
  margin-bottom: 8px;
}

.seo li::marker {
  color: var(--primary-dark);
}

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

.seo-toc {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  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-light);
}

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

.seo-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
}

.seo-table th,
.seo-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.seo-table th {
  color: var(--foreground);
  font-weight: 600;
  background: rgba(255, 255, 255, .07);
}

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

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

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

.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: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  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;
}

/* ---------- Generated article content ---------- */
.seo :where(table) {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 22px 0 28px;
  overflow: hidden;
  border: 1px solid rgba(245, 185, 67, .2);
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
}

.seo :where(th, td) {
  padding: 13px 15px;
  border-right: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  vertical-align: top;
}

.seo :where(th:last-child, td:last-child) {
  border-right: 0;
}

.seo :where(tr:last-child th, tr:last-child td) {
  border-bottom: 0;
}

.seo :where(th) {
  color: #fff8e7;
  background: linear-gradient(135deg, rgba(245, 185, 67, .2), rgba(75, 224, 199, .08));
  font-weight: 700;
}

.seo :where(td) {
  color: #d8cfbd;
}

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

.seo :where(ul, ol) {
  display: grid;
  gap: 10px;
  margin: 18px 0 24px;
  padding-left: 0;
  list-style: none;
}

.seo :where(li) {
  position: relative;
  margin: 0;
  padding: 12px 14px 12px 42px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
}

.seo :where(ul li)::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 0 18px rgba(245, 185, 67, .42);
}

.seo :where(ol) {
  counter-reset: seo-list;
}

.seo :where(ol li) {
  counter-increment: seo-list;
}

.seo :where(ol li)::before {
  content: counter(seo-list);
  position: absolute;
  left: 12px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: var(--gradient-primary);
  color: #090807;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 640px) {
  .seo :where(table) {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .seo :where(th, td) {
    min-width: 180px;
  }
}

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

.seo-toc li {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  margin-bottom: 8px;
}

.seo-toc li::before {
  display: none;
}

@media (max-width: 767px) {
  .widget__inner {
    padding: 24px;
  }

  .widget__title {
    max-width: 62%;
    font-size: 20px;
  }

  .widget__text {
    max-width: 58%;
  }

  .widget--app .widget__img {
    opacity: .52;
  }

  .widget--streak .widget__img,
  .widget--missions .widget__img {
    opacity: .58;
  }

  .widget__inner::after {
    background: linear-gradient(90deg, rgba(9, 8, 7, .98) 0%, rgba(9, 8, 7, .84) 46%, rgba(9, 8, 7, .36) 100%);
  }
}
