@charset "UTF-8";
/* ============================================
   Переменные для темной темы
   Используются во всех компонентах для единообразия
   ============================================ */
:root {
  --dark-bg-surface: #1a1d2e;
  --dark-bg-surface-elevated: #252836;
  --dark-bg-body: #0f1222;
  --dark-border: rgba(255, 255, 255, 0.1);
  --dark-border-light: rgba(255, 255, 255, 0.05);
  --dark-text-primary: #e9eefb;
  --dark-text-secondary: #9aa7b9;
  --dark-text-tertiary: #7a8496;
  --link-font:#4595d5;
  --dark-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --dark-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --dark-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
  --dark-bg-info: var(--dark-bg-surface-elevated);
  --dark-bg-card: var(--dark-bg-surface);
  --dark-bg-white: var(--dark-bg-surface);
  --dark-cover-gradient: linear-gradient(135deg, #1a1d2e, #252836);
  --dark-glass-bg: rgba(26, 29, 46, .75);
  --dark-glass-bg-85: rgba(26, 29, 46, .85);
  --dark-glass-bg-95: rgba(26, 29, 46, .95);
  --dark-glass-bg-full: rgba(26, 29, 46, 1);
  --dark-gradient-card: linear-gradient(180deg, rgba(26, 29, 46, .95), rgba(26, 29, 46, .85));
  --dark-gradient-card-hover: linear-gradient(180deg, rgba(26, 29, 46, .9), rgba(26, 29, 46, .6));
  --dark-gradient-card-alt: linear-gradient(180deg, rgba(26, 29, 46, .95), rgba(26, 29, 46, .8));
  --dark-gradient-card-full: linear-gradient(180deg, rgba(26, 29, 46, 1), rgba(26, 29, 46, .85));
  --ink-bright: #fffffff2;
}

/* ============================================
   Глобальные оверрайды для темной темы
   Общие стили, которые применяются ко всем страницам
   ============================================ */
[data-theme=dark] .dark-header {
  color: var(--text-primary) !important;
}
[data-theme=dark] .category-text {
  color: var(--text-secondary) !important;
}
[data-theme=dark] .uf-header {
  color: var(--ink-bright) !important;
}
[data-theme=dark] .uf-label {
  color: var(--ink-bright) !important;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

@media (min-width: 1024px) {
  html {
    scrollbar-gutter: stable;
  }
}

body {
  background-color: #e9edf4;
  line-height: 1;
  transition: background-color 0.3s ease, color 0.3s ease;
}
[data-theme=dark] body {
  background-color: var(--bg-body);
  color: var(--text-primary);
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

*, a, body, .ui-dialog {
  font-family: "Inter", sans-serif;
  text-rendering: optimizeSpeed;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0) !important;
  -webkit-focus-ring-color: rgba(255, 255, 255, 0) !important;
  -webkit-font-smoothing: subpixel-antialiased;
  outline: none !important;
  text-decoration: none;
}

[data-theme=dark] a {
  color: var(--dark-text-primary);
  transition: color 0.3s ease;
}
[data-theme=dark] a:hover {
  color: #81dcff;
}

b {
  font-weight: 700;
}

button {
  border: 0;
  padding: 0;
}

button:hover {
  cursor: pointer;
}

img:not(.lazyload):not(.lazy):not(.logo-image) {
  color: transparent;
  font-size: 0;
  text-indent: -9999px;
  animation: fadeInImage 0.4s ease-in-out forwards;
}

img.logo-image {
  color: inherit;
  font-size: inherit;
  text-indent: 0;
  animation: none;
  opacity: 1;
}

.fullstory-media-block img:not(.lazyload):not(.lazy) {
  color: inherit;
  font-size: inherit;
  text-indent: 0;
  animation: none;
  opacity: 1;
}

@keyframes fadeInImage {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
img.lazyload {
  color: transparent;
  font-size: 0;
  text-indent: -9999px;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

img.lazyloaded {
  opacity: 1;
}

.fullstory-media-block img.lazyload {
  color: inherit;
  font-size: inherit;
  text-indent: 0;
  opacity: 1;
  transition: none;
}

.fullstory-media-block img.lazyloaded {
  opacity: 1;
}

img.logo-image.lazyload {
  color: inherit;
  font-size: inherit;
  text-indent: 0;
  opacity: 1;
  transition: none;
}

img.logo-image.lazyloaded {
  opacity: 1;
}

:root {
  --green: #93c65b;
  --green-hover:#83af54;
  --blue: #3074ab;
  --blue-light: #4595d5;
  --bg-white: #fff;
  --bg-light-gray:#fbfbfb;
  --font-black: #000;
  --font-light: #494949;
  --font-light-grey: #737373;
  --font-light-soft: #7c7c7c;
  --c-text-primary: #191919;
  --c-text-secondary: #737374;
  --c-border-primary: #ccc;
  --c-bg-body: #ccc;
  --c-bg-primary: #fff;
  --c-bg-secondary: #d4d8dd;
  --c-bg-button: #fff;
  --slider-shadow: inset 0 1px 1px #ddd, 0 2px 3px #ccc;
  --bg-body: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --text-primary: #121317;
  --text-secondary: #5b6470;
  --text-tertiary: #737373;
  --border-color: #e3e7ef;
  --border-color-light: #f0f0f0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
  --header-bg: rgba(255, 255, 255, 0.9);
  --header-border: rgba(255, 255, 255, 0.75);
  --card-bg: #ffffff;
  --card-border: #e3e7ef;
  --card-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.08);
  --chip-box-bg: #ffffff;
}

[data-theme=dark] {
  --main-color-accent: #136096;
  --bg-white: #1a1d2e;
  --bg-light-gray: #252836;
  --font-black: #e9eefb;
  --font-light: #b8c5d9;
  --font-light-grey: #9aa7b9;
  --font-light-soft: #8a97a9;
  --c-text-primary: #e9eefb;
  --c-text-secondary: #9aa7b9;
  --c-border-primary: rgba(255, 255, 255, 0.1);
  --c-bg-body: #161a24;
  --c-bg-primary: #1a1d2e;
  --c-bg-secondary: #252836;
  --c-bg-button: #2a2f3e;
  --slider-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.3), 0 2px 3px rgba(0, 0, 0, 0.4);
  --bg-body: #0f1222;
  --bg-surface: #1a1d2e;
  --bg-surface-elevated: #252836;
  --text-primary: #e9eefb;
  --text-secondary: #9aa7b9;
  --text-tertiary: #7a8496;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-color-light: rgba(255, 255, 255, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
  --header-bg: rgba(18, 22, 32, 0.85);
  --header-border: rgba(255, 255, 255, 0.08);
  --card-bg: #1a1d2e;
  --card-border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.5);
  --chip-box-bg: var(--bg-surface);
}

.chip-box {
  background: var(--chip-box-bg);
  transition: background 0.3s ease;
}

.chip-box > .chip {
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
[data-theme=dark] .chip-box > .chip {
  background: var(--bg-surface-elevated);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--dark-text-primary);
}

:root {
  --brand: #2b7cff;
  --brand2: #7b61ff;
  --ink: #121317;
  --muted: #5b6470;
  --glass: rgba(255, 255, 255, .55);
  --stroke: rgba(255, 255, 255, .75);
  --shadow: 0 12px 28px rgba(24, 38, 64, .14);
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 12px;
}

[data-theme=dark] {
  --ink: #e9eefb;
  --muted: #9aa7b9;
  --glass: rgba(18, 22, 32, .6) !important;
  --stroke: rgba(255, 255, 255, .08);
  --shadow: 0 12px 28px rgba(0, 0, 0, .38);
}

header.sticky {
  position: sticky;
  top: max(env(safe-area-inset-top), 0px); /* фикс для мобильных */
  z-index: 999;
  box-sizing: border-box;
  padding: 8px 12px;
  color: var(--ink);
  height: 64px;
  /* никаких фильтров/блюров/градиентов напрямую здесь */
}

/* Визуальный слой переносим на псевдо-элемент */
header.sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9333333333), #f3f2ff);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7490196078); /* если нужно */
  box-shadow: var(--shadow);
  pointer-events: none;
  z-index: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme=dark] header.sticky::before {
  background: linear-gradient(180deg, rgba(18, 22, 32, 0.95), rgba(18, 22, 32, 0.85));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

/* Контент поверх визуального слоя */
header.sticky > * {
  position: relative;
  z-index: 1;
}

.header-first-row {
  display: flex;
  align-items: center;
  min-height: 34px;
  height: 45.6px;
}
@media (min-width: 1024px) {
  .header-first-row {
    padding: 0 64px;
    align-items: center;
  }
}
@media (min-width: 1280px) {
  .header-first-row {
    max-width: 1200px;
    margin: 0 auto;
    background-color: inherit;
  }
}
.header-first-row .tint-hover:hover, .header-first-row #login_panel:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 18px 42px rgba(24, 38, 64, 0.22);
  border-color: rgba(123, 97, 255, 0.35);
  filter: saturate(112%);
}
.header-first-row .header-logo {
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.2px;
  position: relative;
  flex-wrap: nowrap;
  display: flex;
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  border-radius: 12px;
  isolation: isolate; /* чтобы подсветка не вылезала наружу */
  transition: transform 0.18s ease;
  max-width: 140px;
  /* мягкая подсветка под блоком */
}
.header-first-row .header-logo::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(120px 70px at 20% 0%, rgba(255, 255, 255, 0.35), transparent 70%), linear-gradient(135deg, rgba(43, 124, 255, 0.14), rgba(123, 97, 255, 0.12));
  filter: blur(10px);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 0;
}
.header-first-row .header-logo:hover {
  transform: translateY(-1px);
}
.header-first-row .header-logo:hover::before {
  opacity: 1;
  transform: scale(1);
}
.header-first-row .header-logo:active {
  transform: translateY(0) scale(0.985);
}
.header-first-row .header-logo:active::before {
  opacity: 1;
  transform: scale(0.99);
}
.header-first-row .header-logo:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(43, 124, 255, 0.28);
}
.header-first-row .header-logo .logo-badge {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: var(--shadow);
  margin-right: 10px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.header-first-row .header-logo .logo-badge::after {
  content: "";
  position: absolute;
  inset: -30% -70%;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.7) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.header-first-row .header-logo:hover .logo-badge {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 12px 28px rgba(43, 124, 255, 0.35);
}
.header-first-row .header-logo:hover .logo-badge::after {
  transform: translateX(120%);
}
.header-first-row .header-logo:active .logo-badge {
  transform: translateY(0) scale(0.975);
  box-shadow: var(--shadow);
}
.header-first-row .header-logo .logo-image {
  width: 34px;
}
.header-first-row .header-logo .logo-duo {
  display: inline-flex; /* одна коробка для общего градиента */
  flex-direction: column; /* слова — столбиком */
  line-height: 1.05;
  max-width: 88px;
  background-size: 100% 200%;
  transition: filter 0.2s ease;
  /* единый градиент для ОБОИХ слов */
  background: linear-gradient(180deg, #3579ff, #4b72ff 55%, #6e66ff);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  /* заливка градиентом по тексту */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent; /* Safari */
}
.header-first-row .header-logo {
  /* Анимация «протяжки» градиента текста */
}
@keyframes logoFlow {
  0% {
    background-position: 50% 0%;
  }
  100% {
    background-position: 50% 100%;
  }
}
.header-first-row .header-logo {
  /* Тёмная тема: чуть плотнее обводка при фокусе */
}
.header-first-row .header-logo [data-theme=dark] .header-logo:focus-visible {
  box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.4);
}
.header-first-row .header-logo:hover .logo-duo {
  filter: saturate(112%);
  animation: logoFlow 1.1s ease forwards;
}
.header-first-row .header-logo {
  /* индивидуальные стили слов */
}
.header-first-row .header-logo .logo-duo .w1 {
  text-transform: uppercase;
  font-size: 18px;
}
.header-first-row .header-logo .logo-duo .w2 {
  text-transform: lowercase;
  font-size: 14px;
}
.header-first-row .first-row-right-part {
  display: flex;
  margin-left: auto;
  align-items: center;
  margin-right: 10px;
}
.header-first-row .header-link {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px;
  background: var(--glass);
  box-shadow: var(--shadow);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.header-first-row .header-link.registration {
  margin-right: 16px;
}
.header-first-row .header-link svg {
  width: 24px;
  height: 24px;
  transition: stroke 0.3s ease;
}
[data-theme=dark] .header-first-row .header-link {
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme=dark] .header-first-row .header-link svg {
  stroke: var(--aa-ink);
}
.header-first-row #login_panel {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 8px;
  background: var(--glass);
  box-shadow: var(--shadow);
  margin-right: 10px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
[data-theme=dark] .header-first-row #login_panel {
  border-color: rgba(255, 255, 255, 0.1);
}
.header-first-row .show-login-panel {
  height: 28px;
  width: 28px;
  display: block;
  background-size: contain;
  border-radius: 3px;
}
.header-first-row .unreadpm {
  position: relative;
  overflow: visible;
  animation: borderGlow 3s ease-in-out infinite;
}
.header-first-row {
  /* Анимированная обводка кнопки */
}
.header-first-row .unreadpm::before {
  content: "";
  position: absolute;
  inset: -4px; /* толщина обводки */
  border-radius: 50%;
  padding: 4px; /* реальная толщина */
  background: conic-gradient(from 0deg, var(--aa-brand) 0%, var(--aa-brand2) 50%, var(--aa-brand) 100%);
  background-size: 200% 200%;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
  animation: borderFlow 4s linear infinite;
  z-index: -1;
}
.header-first-row {
  /* Пульсирующий бейдж с цифрой и иконкой письма */
}
.header-first-row .unreadpm::after {
  content: "1"; /* замените на нужное число или attr(data-count) */
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--aa-brand);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(43, 124, 255, 0.4);
  animation: badgePulse 2.5s ease-in-out infinite;
  z-index: 2;
  /* Иконка письма внутри бейджа */
  font-family: "Font Awesome 5 Free", sans-serif; /* если используете FA */
}
.header-first-row {
  /* Если хотите иконку письма вместо цифры (можно комбинировать) */
}
.header-first-row .unreadpm[data-count]::after {
  content: "" attr(data-count); /*  или  — иконка письма из FA5 */
  padding-left: 2px;
  font-weight: 900;
}
.header-first-row {
  /* Анимации */
}
@keyframes borderGlow {
  0%, 100% {
    filter: brightness(1) drop-shadow(0 0 8px var(--aa-brand));
  }
  50% {
    filter: brightness(1.4) drop-shadow(0 0 16px var(--aa-brand2));
  }
}
@keyframes borderFlow {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}
@keyframes badgePulse {
  0%, 100% {
    background: var(--aa-brand);
    box-shadow: 0 2px 8px rgba(43, 124, 255, 0.4);
    transform: scale(1);
  }
  50% {
    background: var(--aa-brand2);
    box-shadow: 0 4px 20px rgba(123, 97, 255, 0.6);
    transform: scale(1.15);
  }
}
.header-first-row {
  /* Дополнительно: лёгкое свечение самой кнопки при наведении (по желанию) */
}
.header-first-row .unreadpm:hover {
  animation-duration: 1.5s;
}

.header-second-row {
  display: flex;
  padding: 12px 16px 13px 16px;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
@media (min-width: 800px) {
  .header-second-row {
    padding: 12px 48px 13px;
  }
}
@media (min-width: 1024px) {
  .header-second-row {
    padding: 0;
    position: relative;
    display: flex;
    top: -64px;
    margin: 0 411px 0 296px;
    background: transparent;
    height: 64px;
  }
}
@media (min-width: 1280px) {
  .header-second-row {
    margin: 0 auto;
    justify-content: flex-start;
    width: 462px;
  }
}
.header-second-row a {
  font-size: 10px;
  font-weight: bold;
  line-height: 20px;
  color: var(--ink);
  text-transform: uppercase;
  height: 20px;
  flex: 0;
  position: relative;
}
@media (min-width: 1280px) {
  .header-second-row a {
    font-size: 14px;
    margin-right: 48px;
  }
}
.header-second-row a:hover::before {
  opacity: 1;
}
.header-second-row a:before {
  background-color: #278fe6;
  content: "";
  height: 100%;
  left: -12px;
  opacity: 0;
  padding: 8px 12px;
  position: absolute;
  top: -7px;
  transition: all 0.1s cubic-bezier(0.64, 0.04, 0.35, 1);
  width: 100%;
  z-index: -1;
}
@media (min-width: 1024px) {
  .header-second-row a:before {
    top: 37px;
    left: -10px;
    height: 5px;
    padding: 0 10px 0;
    background-color: rgb(33, 149, 242);
  }
}

/* Shared micromodal sheet: Discovery Hub + site menu (#aaMenuPanel).
   Search (#aaSearchModal) uses .modal--sheet-top (dock сверху), не этот sheet.
   Mobile = bottom sheet (free top). Desktop = centered opaque container.
   Limits from #modal-downpage-hub / .modal__overlay / .modal__container.
   Animation = micromodal-slide (mmfadeIn overlay, mmslideIn container).
   No backdrop-filter. */
@keyframes mmfadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes mmfadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes mmslideIn {
  from {
    transform: translateY(15%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes mmslideOut {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10%);
  }
}
.modal--sheet .modal__overlay {
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.modal--sheet .modal__container {
  max-height: 90dvh;
  margin: 0;
  border-radius: 20px 20px 0 0;
  background-color: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
[data-theme=dark] .modal--sheet .modal__container {
  background-color: var(--dark-bg-surface, #1a1d2e);
}

@media (min-width: 768px) {
  .modal--sheet .modal__overlay {
    align-items: center;
    padding: 24px;
  }
  .modal--sheet .modal__container {
    max-height: 82dvh;
    border-radius: 20px;
  }
}
.modal--sheet.micromodal-slide[aria-hidden=false] .modal__overlay {
  animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.modal--sheet.micromodal-slide[aria-hidden=false] .modal__container {
  animation: mmslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.modal--sheet.micromodal-slide[aria-hidden=true] .modal__overlay {
  animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.modal--sheet.micromodal-slide[aria-hidden=true] .modal__container {
  animation: mmslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.modal--sheet .modal__container,
.modal--sheet .modal__overlay {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .modal--sheet .modal__overlay,
  .modal--sheet .modal__container {
    animation: none !important;
  }
}
/* Search exception: dock to top with inset, not center / not bottom sheet.
   Keep #aaMenuPanel and Discovery Hub on .modal--sheet only. */
@keyframes mmslideInTop {
  from {
    transform: translateY(-12%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes mmslideOutTop {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-8%);
  }
}
.modal--sheet.modal--sheet-top .modal__overlay {
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  padding: calc(12px + env(safe-area-inset-top, 0px)) calc(12px + env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px));
}

.modal--sheet.modal--sheet-top .modal__container {
  width: 100%;
  max-width: none;
  max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  margin: 0;
  border-radius: 20px;
  background-color: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
[data-theme=dark] .modal--sheet.modal--sheet-top .modal__container {
  background-color: var(--dark-bg-surface, #1a1d2e);
}

@media (min-width: 768px) {
  .modal--sheet.modal--sheet-top .modal__overlay {
    align-items: flex-start;
    padding: 24px;
  }
  .modal--sheet.modal--sheet-top .modal__container {
    width: calc(100vw - 48px);
    max-width: 500px;
    max-height: calc(100dvh - 48px);
    border-radius: 20px;
  }
}
.modal--sheet.modal--sheet-top.micromodal-slide[aria-hidden=false] .modal__container {
  animation: mmslideInTop 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.modal--sheet.modal--sheet-top.micromodal-slide[aria-hidden=true] .modal__container {
  animation: mmslideOutTop 0.3s cubic-bezier(0, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  .modal--sheet.modal--sheet-top .modal__overlay,
  .modal--sheet.modal--sheet-top .modal__container {
    animation: none !important;
  }
}
/* ===== Menu Button Module (drop-in) ===== */
:root {
  --aa-brand: #2b7cff;
  --aa-brand2: #7b61ff;
  --aa-ink: #0f1222;
  --aa-muted: #586174;
  --aa-glass: rgba(255, 255, 255, .65);
  --aa-stroke: rgba(255, 255, 255, .8);
  --aa-shadow: 0 14px 34px rgba(24, 38, 64, .18);
  --aa-radius: 16px;
}

[data-theme=dark] {
  --aa-ink: #e9eefb;
  --aa-muted: #9aa7b9;
  --aa-glass: rgba(18, 22, 32, .6);
  --aa-stroke: rgba(255, 255, 255, .08);
  --aa-shadow: 0 14px 34px rgba(0, 0, 0, .38);
}

.aa-menu {
  position: relative;
  display: inline-block;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.aa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  color: var(--aa-ink);
  font-weight: 900;
  letter-spacing: 0.2px;
  background: var(--aa-glass);
  border: 1px solid var(--aa-stroke);
  box-shadow: var(--aa-shadow);
  transform: translateZ(0);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.aa-btn:active {
  transform: scale(0.98);
}

.aa-btn .aa-hamb {
  width: 22px;
  height: 16px;
  position: relative;
}

.aa-menu-text {
  display: none;
  text-indent: -9999px;
}
@media (min-width: 480px) {
  .aa-menu-text {
    display: inline-block;
    text-indent: 0;
  }
}

.aa-btn .aa-hamb span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--aa-ink);
  border-radius: 2px;
  transition: 0.25s;
}

.aa-btn .aa-hamb span:nth-child(1) {
  top: 0, 0.1px;
}

.aa-btn .aa-hamb span:nth-child(2) {
  top: 7px;
}

.aa-btn .aa-hamb span:nth-child(3) {
  bottom: 0;
}

.aa-btn[aria-expanded=true] .aa-hamb span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.aa-btn[aria-expanded=true] .aa-hamb span:nth-child(2) {
  opacity: 0;
}

.aa-btn[aria-expanded=true] .aa-hamb span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Ripple */
.aa-btn::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 0;
  background: linear-gradient(135deg, rgba(43, 124, 255, 0.25), rgba(123, 97, 255, 0.25));
  filter: saturate(120%);
  transition: height 0.45s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.aa-btn:active::after {
  height: 100%;
}

/* Menu uses micromodal sheet: .modal.micromodal-slide.modal--sheet + overlay/container.
   Base chrome here so the panel works on pages without standalone micromodal.css. */
#aaMenuPanel.modal {
  display: none;
}

#aaMenuPanel.modal.open,
#aaMenuPanel.modal.is-open {
  display: block;
}

#aaMenuPanel .modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  z-index: 999;
}

#aaMenuPanel .modal__container {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: auto;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  color: var(--aa-ink);
  background-color: #fff;
  z-index: 999;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
[data-theme=dark] #aaMenuPanel .modal__container {
  background-color: var(--dark-bg-surface, #1a1d2e);
}
#aaMenuPanel .modal__container:focus {
  outline: none;
}

@media (min-width: 768px) {
  #aaMenuPanel .modal__container {
    width: calc(100vw - 48px);
    max-width: 500px;
  }
}
#aaMenuPanel .modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
}

#aaMenuPanel .modal__title {
  margin: 0;
  max-width: 90%;
  color: var(--aa-ink);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
}

#aaMenuPanel .modal__close {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  margin: -6px -6px -6px 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--aa-muted, #64748b);
  background: rgba(15, 23, 42, 0.06);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}
#aaMenuPanel .modal__close::before {
  content: "✕";
  pointer-events: none;
}
#aaMenuPanel .modal__close:hover, #aaMenuPanel .modal__close:focus-visible {
  color: var(--aa-ink);
  background: rgba(15, 23, 42, 0.1);
  outline: none;
}
[data-theme=dark] #aaMenuPanel .modal__close {
  color: var(--aa-muted, #9aa7b9);
  background: rgba(255, 255, 255, 0.08);
}
[data-theme=dark] #aaMenuPanel .modal__close:hover, [data-theme=dark] #aaMenuPanel .modal__close:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

#aaMenuPanel .aa-sec {
  padding: 6px 4px 8px;
  border: 0;
  border-radius: 0;
  margin-bottom: 0;
  background: transparent;
}

#aaMenuPanel .aa-sec + .aa-sec {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--aa-ink) 10%, transparent);
}

[data-theme=dark] #aaMenuPanel .aa-sec + .aa-sec {
  border-top-color: color-mix(in srgb, #fff 10%, transparent);
}

#aaMenuPanel .aa-title {
  font-size: 0.8rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--aa-muted);
  letter-spacing: 0.02em;
}

.aa-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: auto;
  align-content: start;
  gap: 6px;
}

.aa-links-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: auto;
  gap: 6px;
  align-items: stretch;
  position: relative;
  width: 100%;
  height: auto;
  min-height: min-content;
  overflow: visible;
}

#aaMenuPanel .aa-link-ico {
  display: inline-flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: var(--aa-brand, #2b7cff);
  background: color-mix(in srgb, var(--aa-brand, #2b7cff) 12%, transparent);
}
#aaMenuPanel .aa-link-ico svg {
  display: block;
  width: 18px;
  height: 18px;
}

#aaMenuPanel .aa-link-txt {
  min-width: 0;
  line-height: 1.2;
}

#aaMenuPanel .aa-links-row .aa-link {
  box-sizing: border-box;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  gap: 4px;
  min-height: 60px;
  height: auto;
  padding: 8px 6px;
  text-align: center;
}
#aaMenuPanel .aa-links-row .aa-link .aa-link-ico {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
#aaMenuPanel .aa-links-row .aa-link .aa-link-ico svg {
  width: 16px;
  height: 16px;
}
#aaMenuPanel .aa-links-row .aa-link .aa-link-txt {
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

#aaMenuPanel .aa-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--aa-ink);
  font-weight: 800;
  border: 0;
  background: color-mix(in srgb, var(--aa-ink) 4.5%, transparent);
  box-shadow: none;
  filter: none;
  transform: none;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
#aaMenuPanel .aa-link:hover, #aaMenuPanel .aa-link.tint-hover:hover {
  background: color-mix(in srgb, var(--aa-brand2, #7b61ff) 12%, transparent);
  border: 0;
  box-shadow: none;
  filter: none;
  transform: none;
}
#aaMenuPanel .aa-link:hover .aa-link-ico, #aaMenuPanel .aa-link.tint-hover:hover .aa-link-ico {
  background: color-mix(in srgb, var(--aa-brand2, #7b61ff) 18%, transparent);
  color: var(--aa-brand2, #7b61ff);
}
#aaMenuPanel .aa-link:active, #aaMenuPanel .aa-link.tint-hover:active {
  background: color-mix(in srgb, var(--aa-brand2, #7b61ff) 18%, transparent);
  transform: translateY(1px);
  box-shadow: none;
  filter: none;
}
#aaMenuPanel .aa-link:focus {
  outline: none;
}
#aaMenuPanel .aa-link:focus-visible {
  background: color-mix(in srgb, var(--aa-brand2, #7b61ff) 12%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--aa-brand, #2b7cff) 35%, transparent);
}

[data-theme=dark] #aaMenuPanel .aa-link {
  background: color-mix(in srgb, #fff 6%, transparent);
}
[data-theme=dark] #aaMenuPanel .aa-link .aa-link-ico {
  color: #9db8ff;
  background: color-mix(in srgb, var(--aa-brand, #2b7cff) 22%, transparent);
}
[data-theme=dark] #aaMenuPanel .aa-link:hover, [data-theme=dark] #aaMenuPanel .aa-link.tint-hover:hover {
  background: color-mix(in srgb, var(--aa-brand2, #7b61ff) 22%, transparent);
}
[data-theme=dark] #aaMenuPanel .aa-link:hover .aa-link-ico, [data-theme=dark] #aaMenuPanel .aa-link.tint-hover:hover .aa-link-ico {
  background: color-mix(in srgb, var(--aa-brand2, #7b61ff) 28%, transparent);
  color: #c4b5ff;
}
[data-theme=dark] #aaMenuPanel .aa-link:active, [data-theme=dark] #aaMenuPanel .aa-link.tint-hover:active {
  background: color-mix(in srgb, var(--aa-brand2, #7b61ff) 28%, transparent);
}

/* Fancy appear for children */
#aaMenuPanel.open .aa-sec,
#aaMenuPanel.is-open .aa-sec,
#aaMenuPanel.open .aa-link,
#aaMenuPanel.is-open .aa-link {
  animation: aa-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.aa-link:nth-child(1) {
  animation-delay: 0.04s;
}

.aa-link:nth-child(2) {
  animation-delay: 0.07s;
}

.aa-link:nth-child(3) {
  animation-delay: 0.1s;
}

.aa-link:nth-child(4) {
  animation-delay: 0.13s;
}

.aa-link:nth-child(5) {
  animation-delay: 0.16s;
}

.aa-link:nth-child(6) {
  animation-delay: 0.19s;
}

@keyframes aa-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  #aaMenuPanel .modal__overlay,
  #aaMenuPanel .modal__container,
  #aaMenuPanel .aa-link {
    transition: none !important;
    animation: none !important;
  }
}
/* Theme switch (three positions: light, auto, dark) */
#aaMenuPanel .aa-theme-switch {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  background: var(--chip-bg, rgba(15, 19, 32, 0.06));
  border-radius: 12px;
  padding: 4px;
  border: 0;
  overflow: hidden;
}

[data-theme=dark] #aaMenuPanel .aa-theme-switch {
  background: var(--chip-bg, rgba(255, 255, 255, 0.08));
}

.aa-theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--aa-ink);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 8px;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease, transform 0.15s ease;
  flex: 1;
  min-width: 0;
}
.aa-theme-btn:active {
  transform: scale(0.95);
}

.aa-theme-btn svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.aa-theme-btn:hover svg {
  transform: scale(1.1);
}

.aa-theme-btn:focus {
  outline: none;
}

.aa-theme-btn:focus-visible {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--aa-brand, #2b7cff) 35%, transparent);
}

.aa-theme-btn:not(.active) {
  color: var(--aa-ink);
  opacity: 0.8;
}

.aa-theme-btn.active {
  color: #fff;
  opacity: 1;
  transition: color 0.3s ease;
}

.aa-theme-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s ease;
}

@media (max-width: 480px) {
  .aa-theme-label {
    font-size: 12px;
  }
  .aa-theme-btn {
    padding: 8px;
    gap: 0;
  }
}
.aa-theme-slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: calc(33.333% - 2.67px);
  background: linear-gradient(135deg, #7b61ff, #2b7cff);
  border-radius: 8px;
  transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--aa-brand2, #7b61ff) 28%, transparent);
  left: 4px;
  will-change: left;
}

.aa-theme-switch[data-active-theme=light] .aa-theme-slider {
  left: 4px;
}

.aa-theme-switch[data-active-theme=auto] .aa-theme-slider {
  left: calc(50% - (33.333% - 2.67px) / 2);
}

.aa-theme-switch[data-active-theme=dark] .aa-theme-slider {
  left: calc(100% - 4px - (33.333% - 2.67px));
}

/* =========================================================
   CHIP BOX — итоговый SCSS
   ========================================================= */
/* БАЗОВЫЕ СТИЛИ (работают для всех режимов) */
.chip-box {
  --chip-col-gap: 12px;
  --chip-row-gap: 8px;
  width: auto;
  display: flex;
  max-width: 1200px;
  margin: 12px var(--page-gutter, 12px) 0;
}
@media (min-width: 1280px) {
  .chip-box {
    margin: 12px auto 0;
  }
}
.chip-box {
  top: 74px;
  z-index: 3;
  background: linear-gradient(180deg, hsla(0, 0%, 100%, 0.7), rgba(255, 255, 255, 0.4392156863));
  padding: 0;
  border-radius: 10px;
  justify-content: flex-start;
  box-sizing: border-box;
  transition: background 0.3s ease;
}
[data-theme=dark] .chip-box {
  background: linear-gradient(180deg, hsla(0, 0%, 100%, 0.15), hsla(0, 0%, 100%, 0.08));
}
.chip-box {
  /* Главная (эмодзи-nav): чипы — прямые дети, wrap. Ритм только gap, без margin на .chip. */
}
.chip-box.noscript {
  display: flex !important;
  flex-wrap: wrap !important;
  align-content: flex-start;
  gap: var(--chip-row-gap) var(--chip-col-gap);
  padding: 0;
}
.chip-box.noscript > .chip {
  margin: 0;
}
@media (min-width: 641px) {
  .chip-box.noscript {
    justify-content: center;
  }
}
.chip-box .chip-rail {
  display: flex;
  flex-direction: column;
  min-width: min-content;
  gap: var(--row-gap, var(--chip-row-gap));
  padding-block: 0;
  box-sizing: content-box;
}
.chip-box .chip-lane {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--col-gap, var(--chip-col-gap));
  margin: 0;
  white-space: nowrap;
}
.chip-box.sticky {
  /* sticky-поведение как было — не меняем */
  margin: 0 auto 0;
  position: sticky;
}
.chip-box {
  /* Базовый вид чипа (в твоём стиле) */
}
.chip-box .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: visible;
  vertical-align: middle;
  /* убираем любые внешние расчёты ширины — только «натуральная» */
  width: auto;
  max-width: none;
  margin: 0;
  white-space: nowrap;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  text-decoration: none;
  color: #0f1222;
  box-shadow: 0 6px 16px rgba(27, 37, 51, 0.08);
  cursor: pointer;
  user-select: none;
  transition: transform 0.18s ease, background 0.18s ease-out, border-color 0.18s ease-in, box-shadow 0.18s ease;
}
.chip-box .chip img {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  overflow: visible;
}
.chip-box .chip {
  /* старый "первому добавь отступ" отключаем — дальше используем gap’ы */
}
.chip-box .chip:first-of-type {
  margin-left: 0;
}
.chip-box .chip:hover {
  background: rgba(43, 124, 255, 0.12);
  border-color: rgba(43, 124, 255, 0.35);
  color: #0b3a7a;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(24, 38, 64, 0.14);
}
.chip-box .chip:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(24, 38, 64, 0.1);
}
.chip-box .chip:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--accent), transparent 40%);
  outline-offset: 3px;
}
.chip-box .chip.active {
  background: rgba(43, 124, 255, 0.18);
  border-color: rgba(43, 124, 255, 0.45);
  color: #0b3a7a;
  box-shadow: 0 8px 20px rgba(43, 124, 255, 0.22);
  pointer-events: none;
  cursor: default;
}
[data-theme=dark] .chip-box .chip.active {
  background: rgba(43, 124, 255, 0.28);
  border-color: rgba(43, 124, 255, 0.55);
  color: var(--text-primary, #e9eefb);
}
.chip-box .chip.active:hover {
  transform: none;
  background: rgba(43, 124, 255, 0.18);
  border-color: rgba(43, 124, 255, 0.45);
  color: #0b3a7a;
  box-shadow: 0 8px 20px rgba(43, 124, 255, 0.22);
}

/* =========================================================
   DESKTOP / TABLET: показать все теги, без скролла
   ========================================================= */
.not-mobile {
  /* wrap-навигация (главная noscript и games/programs до слайдера): каждый ряд по центру */
}
.not-mobile.chip-box:not(.sticky):not(.chips-4rows):not(.chips-balanced) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  gap: var(--chip-row-gap) var(--chip-col-gap);
  overflow: visible;
  padding: 0;
}
.not-mobile.chip-box:not(.sticky):not(.chips-4rows):not(.chips-balanced) .chip {
  margin: 0;
  flex: 0 0 auto;
}

/* =========================================================
   MOBILE: 3 ряда + горизонтальный скролл, натуральная ширина чипов
   ========================================================= */
.mobile.chip-box:not(.sticky) {
  /* Контейнер — область скролла */
  display: grid; /* без доп. обёрток: только CSS */
  grid-auto-flow: column; /* добавляем новые КОЛОНКИ */
  grid-template-rows: repeat(3, auto); /* ровно 3 строки */
  grid-auto-columns: max-content; /* ширина колонки по содержимому */
  gap: var(--chip-row-gap) var(--chip-col-gap);
  margin-inline: 0;
  /* До JS-rail; .chips-balanced обнуляет box — gutter только на .chip-rail */
  padding-left: var(--page-gutter, 12px);
  padding-right: var(--page-gutter, 12px);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.mobile.chip-box:not(.sticky)::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}
.mobile.chip-box:not(.sticky) {
  /* Мягкое прилипание к началу колонок при прокрутке */
  scroll-snap-type: x proximity;
}
.mobile.chip-box:not(.sticky) .chip {
  /* ключ: элемент остаётся натуральной ширины, НЕ растягивается под ширину колонки */
  justify-self: start; /* не растягивать по оси X */
  align-self: start; /* не растягивать по оси Y */
  width: max-content; /* «натуральная» ширина по содержимому */
  margin: 0;
  scroll-snap-align: start;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
[data-theme=dark] .mobile.chip-box:not(.sticky) .chip {
  background: var(--bg-surface-elevated);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--dark-text-primary);
}

/* =========================================================
   FALLBACK (если .mobile/.not-mobile не навешены классами)
   ========================================================= */
/* Узкие экраны → включаем мобильный режим как резерв */
@media (max-width: 640px) {
  .chip-box:not(.sticky):not(.chips-4rows):not(.chips-balanced) {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(3, auto);
    grid-auto-columns: max-content;
    gap: var(--chip-row-gap) var(--chip-col-gap);
    margin-inline: 0;
    padding-left: var(--page-gutter, 12px);
    padding-right: var(--page-gutter, 12px);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .chip-box:not(.sticky):not(.chips-4rows):not(.chips-balanced)::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
  }
  .chip-box:not(.sticky):not(.chips-4rows):not(.chips-balanced) {
    scroll-snap-type: x proximity;
  }
  .chip-box:not(.sticky):not(.chips-4rows):not(.chips-balanced) .chip {
    justify-self: start;
    align-self: start;
    width: max-content;
    margin: 0 !important;
    scroll-snap-align: start;
    flex: 0 0 auto;
  }
}
/* Шире мобилы → как десктоп (если класс не задан) */
@media (min-width: 641px) {
  .chip-box:not(.sticky):not(.chips-4rows):not(.chips-balanced):not(.mobile) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    gap: var(--chip-row-gap) var(--chip-col-gap);
    overflow: visible;
    padding: 0;
  }
  .chip-box:not(.sticky):not(.chips-4rows):not(.chips-balanced):not(.mobile) .chip {
    margin: 0;
    flex: 0 0 auto;
  }
}
/* Контейнер в твоём стиле */
.chip-box {
  position: initial;
  width: auto;
  max-width: 1200px;
  margin: 12px var(--page-gutter, 12px) 0;
}
@media (min-width: 1280px) {
  .chip-box {
    margin: 12px auto 0;
  }
}
.chip-box:not(.chips-4rows) {
  padding: 0;
}
.chip-box.sticky:not(.chips-4rows) {
  padding: 8px 0;
}
.chip-box {
  border-radius: 10px;
  background: linear-gradient(180deg, hsla(0, 0%, 100%, 0.7), rgba(255, 255, 255, 0.4392156863));
  z-index: 3;
  overflow: visible;
}
.chip-box.sticky {
  position: sticky;
  top: 74px;
  margin: 0 auto 0;
}
.chip-box {
  /* Чип: натуральная ширина */
}
.chip-box > .chip,
.chip-box .chip-line .chip,
.chip-box .chip-lane .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: visible;
  vertical-align: middle;
  white-space: nowrap;
  width: max-content;
  margin: 0;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  color: #0f1222;
  text-decoration: none;
  user-select: none;
  box-shadow: 0 6px 16px rgba(27, 37, 51, 0.08);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
[data-theme=dark] .chip-box > .chip,
[data-theme=dark] .chip-box .chip-line .chip,
[data-theme=dark] .chip-box .chip-lane .chip {
  background: var(--bg-surface-elevated);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--dark-text-primary);
}
.chip-box > .chip:hover,
.chip-box .chip-line .chip:hover,
.chip-box .chip-lane .chip:hover {
  background: rgba(43, 124, 255, 0.12);
  border-color: rgba(43, 124, 255, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(24, 38, 64, 0.14);
}
.chip-box > .chip:active,
.chip-box .chip-line .chip:active,
.chip-box .chip-lane .chip:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(24, 38, 64, 0.1);
}
.chip-box > .chip:focus-visible,
.chip-box .chip-line .chip:focus-visible,
.chip-box .chip-lane .chip:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--accent), transparent 40%);
  outline-offset: 3px;
}
.chip-box > .chip.active,
.chip-box .chip-line .chip.active,
.chip-box .chip-lane .chip.active {
  background: rgba(43, 124, 255, 0.18);
  border-color: rgba(43, 124, 255, 0.45);
  color: #0b3a7a;
  box-shadow: 0 8px 20px rgba(43, 124, 255, 0.22);
  pointer-events: none;
  cursor: default;
}
[data-theme=dark] .chip-box > .chip.active,
[data-theme=dark] .chip-box .chip-line .chip.active,
[data-theme=dark] .chip-box .chip-lane .chip.active {
  background: rgba(43, 124, 255, 0.28);
  border-color: rgba(43, 124, 255, 0.55);
  color: var(--text-primary, #e9eefb);
}
.chip-box > .chip.active:hover,
.chip-box .chip-line .chip.active:hover,
.chip-box .chip-lane .chip.active:hover {
  transform: none;
  background: rgba(43, 124, 255, 0.18);
  border-color: rgba(43, 124, 255, 0.45);
  box-shadow: 0 8px 20px rgba(43, 124, 255, 0.22);
}
[data-theme=dark] .chip-box > .chip.active:hover,
[data-theme=dark] .chip-box .chip-line .chip.active:hover,
[data-theme=dark] .chip-box .chip-lane .chip.active:hover {
  background: rgba(43, 124, 255, 0.28);
  border-color: rgba(43, 124, 255, 0.55);
}
.chip-box > .chip img,
.chip-box .chip-line .chip img,
.chip-box .chip-lane .chip img {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  overflow: visible;
}

/* Вьюпорт для линий (клип по горизонтали) */
.chip-box .chip-viewport {
  --col-gap: 12px;
  --row-gap: 8px;
  overflow: hidden; /* клипим содержимое по X, скролл у линий */
  padding: 26px 24px; /* место под стрелки слева/справа */
  /* Визуальный интервал между строками */
}
.chip-box .chip-viewport .chip-line + .chip-line {
  margin-top: var(--row-gap);
}

/* Линия: один горизонтальный скроллируемый поток чипов */
.chip-box .chip-line {
  display: flex;
  flex-wrap: nowrap; /* НЕ переносим — горизонтальная лента */
  gap: var(--col-gap); /* фиксированный отступ между чипами */
  align-items: center;
  overflow-x: auto; /* у каждой линии — собственный скролл */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity; /* мягкое прилипање к началу чипа */
  --bleed: 24px;
  padding: var(--bleed); /* внутренняя «подушка» 24px */
  margin-inline: calc(var(--bleed) * -1.5);
  margin-block: 0;
  /* скрыть полосу прокрутки визуально */
  scrollbar-width: none;
}
.chip-box .chip-line::-webkit-scrollbar {
  height: 0;
  width: 0;
}

/* Навигация (используем существующие .slider__prev/.slider__next) */
.chip-box .chip-nav {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 12;
}
.chip-box .chip-nav .chip-prev,
.chip-box .chip-nav .chip-next {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  z-index: 13; /* выше чипов */
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 12px 24px rgba(43, 124, 255, 0.35);
  transition: box-shadow 0.18s ease;
  will-change: box-shadow;
  color: #fff;
}
.chip-box .chip-nav .chip-prev:active, .chip-box .chip-nav .chip-prev:hover,
.chip-box .chip-nav .chip-next:active,
.chip-box .chip-nav .chip-next:hover {
  box-shadow: 2px 3px 12px 4px rgba(43, 124, 255, 0.4509803922);
}
.chip-box .chip-nav .chip-prev {
  left: 6px;
}
.chip-box .chip-nav .chip-next {
  right: 6px;
}

/* Фоллбек на узких — просто уменьшим внутренние отступы вьюпорта */
@media (max-width: 640px) {
  .chip-box .chip-viewport {
    padding: 0 12px;
  }
}
/* 4-рядный слайдер: ряды плотно, без растяжения на высоту контейнера */
.chip-box.chips-4rows {
  position: relative;
  top: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  align-content: start;
  min-height: 0;
  height: auto;
  gap: 0;
}
.chip-box.chips-4rows .chip-viewport {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  align-content: start;
  gap: var(--row-gap, var(--chip-row-gap));
  min-height: 0;
  height: auto;
  padding: 0 24px; /* место под стрелки только по X */
}
.chip-box.chips-4rows .chip-viewport .chip-line + .chip-line {
  margin-top: 0;
}
.chip-box.chips-4rows .chip-line {
  flex: 0 0 auto;
  align-self: stretch;
  min-height: 0;
  height: auto;
  padding-block: 0;
  margin-block: 0;
}

.chip-box:not(.sticky) {
  background: none;
  box-shadow: none;
  border: none;
  border-radius: 0;
  padding: 0;
}

/* overflow-y:hidden на 3-рядной сетке без padding клипит круглые иконки */
.chip-box.mobile:not(.sticky):not(.chips-balanced):not(.chips-4rows) {
  padding: 4px var(--page-gutter, 12px) 16px;
}

.chip-box.mobile:not(.sticky),
.chip-box.chips-balanced:not(.sticky) {
  margin-top: 8px;
  margin-inline: 0;
  /* snap / scrollIntoView: не выравнивать чип впритык к краю — воздух как у .chip-rail */
  scroll-padding-left: var(--page-gutter, 12px);
  scroll-padding-right: var(--page-gutter, 12px);
}

/* JS .chip-rail: не оставлять 3-рядную grid — она клипит иконки при padding:0 */
.chip-box.chips-balanced:not(.sticky) {
  display: flex;
  flex-direction: column;
  /* flex-start + max-content: иначе stretch+content-box клипает padding-left у overflow-родителя */
  align-items: flex-start;
  gap: 0;
  padding-inline: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.chip-box.chips-balanced:not(.sticky)::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}
.chip-box.chips-balanced:not(.sticky) {
  /* Поля на треке, не на overflow-box — иначе box+rail=12 и первый чип клипается */
}
.chip-box.chips-balanced:not(.sticky) .chip-rail {
  box-sizing: border-box;
  width: max-content;
  min-width: min-content;
  padding-left: var(--page-gutter, 12px);
  padding-right: var(--page-gutter, 12px);
  /* Тень чипа 0 6px 16px; clip у overflow-y:hidden на боксе */
  padding-top: 4px;
  padding-bottom: 16px;
}

/* Search: .modal--sheet-top + .aa-search--dock (top inset, not menu/Hub sheet). */
.aa-search-open {
  overflow: hidden;
}

#aaSearchModal.modal {
  display: none;
}

#aaSearchModal.modal.open,
#aaSearchModal.modal.is-open {
  display: block;
}

#aaSearchModal .modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 999;
}

#aaSearchModal.aa-search--dock .modal__container,
#aaSearchModal .modal__container {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  height: auto;
  padding: 16px;
  overflow: hidden;
  color: var(--ink, #121317);
  background-color: #fff;
  z-index: 999;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
[data-theme=dark] #aaSearchModal.aa-search--dock .modal__container,
[data-theme=dark] #aaSearchModal .modal__container {
  background-color: var(--dark-bg-surface, #1a1d2e);
  color: var(--ink-bright, #e9eefb);
}
#aaSearchModal.aa-search--dock .modal__container:focus,
#aaSearchModal .modal__container:focus {
  outline: none;
}

@media (min-width: 768px) {
  #aaSearchModal.aa-search--dock .modal__container,
  #aaSearchModal .modal__container {
    width: calc(100vw - 48px);
    max-width: 500px;
  }
}
#aaSearchModal .modal__close {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--muted, #64748b);
  background: rgba(15, 23, 42, 0.06);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}
#aaSearchModal .modal__close::before {
  content: "✕";
  pointer-events: none;
}
#aaSearchModal .modal__close:hover, #aaSearchModal .modal__close:focus-visible {
  color: var(--ink, #121317);
  background: rgba(15, 23, 42, 0.1);
  outline: none;
}
[data-theme=dark] #aaSearchModal .modal__close {
  color: var(--muted, #9aa7b9);
  background: rgba(255, 255, 255, 0.08);
}
[data-theme=dark] #aaSearchModal .modal__close:hover, [data-theme=dark] #aaSearchModal .modal__close:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.aa-search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  flex: 0 0 auto;
}

.aa-search-newtab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--muted, #5b6470);
  cursor: pointer;
  user-select: none;
}

.aa-search-newtab-switch {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.aa-search-newtab-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.aa-search-newtab-switch input:checked + .aa-search-newtab-slider {
  background: #2563eb;
}
.aa-search-newtab-switch input:checked + .aa-search-newtab-slider::before {
  transform: translateX(20px);
}
.aa-search-newtab-switch input:focus-visible + .aa-search-newtab-slider {
  box-shadow: 0 0 0 3px rgba(84, 122, 185, 0.2);
}

.aa-search-newtab-slider {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: #c5cdd8;
  transition: background 0.2s;
}
.aa-search-newtab-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}

[data-theme=dark] .aa-search-newtab {
  color: #9aa7b9;
}

[data-theme=dark] .aa-search-newtab-slider {
  background: rgba(255, 255, 255, 0.18);
}

[data-theme=dark] .aa-search-newtab-switch input:checked + .aa-search-newtab-slider {
  background: #3b82f6;
}

.aa-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.aa-search-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid color-mix(in srgb, var(--ink, #121317) 12%, transparent);
  border-radius: 14px;
  padding: 0 14px;
  background: #f4f6fa;
  color: var(--ink, #121317);
  box-shadow: none;
}
.aa-search-input::placeholder {
  color: var(--muted, #5b6470);
  opacity: 1;
}
.aa-search-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent, #3074ab) 45%, transparent);
  background: #fff;
}

[data-theme=dark] .aa-search-input {
  background: rgba(255, 255, 255, 0.06);
  color: #e9eefb;
  border-color: rgba(255, 255, 255, 0.12);
  caret-color: #e9eefb;
}
[data-theme=dark] .aa-search-input::placeholder {
  color: #9aa7b9;
  opacity: 1;
}
[data-theme=dark] .aa-search-input:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(126, 179, 255, 0.4);
}

.aa-search-status {
  display: none;
  margin: 0;
  padding: 0;
  color: var(--muted, #5b6470);
  font-size: 13px;
  line-height: 1.35;
}
.aa-search-status.has-content {
  display: block;
  margin: 10px 0 0;
}

[data-theme=dark] .aa-search-status {
  color: #9aa7b9;
}

.aa-search-results {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding-right: 0;
}
.aa-search-results.has-results {
  margin-top: 10px;
}

.aa-search-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 0;
  padding: 10px 12px;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--ink, #121317) 10%, transparent);
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  color: #3a67ab;
  text-decoration: none;
  text-align: center;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.aa-search-more__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  display: block;
}

.aa-search-more:hover {
  text-decoration: none;
  background: rgba(48, 116, 171, 0.08);
  border-color: color-mix(in srgb, var(--accent, #3074ab) 35%, transparent);
  color: #2e5fb2;
}

.aa-search-more:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(84, 122, 185, 0.18);
}

[data-theme=dark] .aa-search-more {
  border-color: rgba(255, 255, 255, 0.12);
  color: #a6cdff;
}

[data-theme=dark] .aa-search-more:hover {
  background: rgba(126, 179, 255, 0.1);
  border-color: rgba(126, 179, 255, 0.35);
  color: #c0ddff;
}

[data-theme=dark] .aa-search-more:focus-visible {
  box-shadow: 0 0 0 3px rgba(160, 194, 255, 0.2);
}

.aa-search-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink, #121317);
  border: 1px solid color-mix(in srgb, var(--ink, #121317) 10%, transparent);
  border-radius: 14px;
  background: #f4f6fa;
  box-shadow: none;
  padding: 8px;
  margin-bottom: 8px;
  min-height: 72px;
  transition: background 180ms ease, border-color 180ms ease;
}
.aa-search-card:last-child {
  margin-bottom: 0;
}

[data-theme=dark] .aa-search-card {
  color: #e9eefb;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.aa-search-card:hover {
  background: #e8eef6;
  border-color: color-mix(in srgb, var(--accent, #3074ab) 32%, transparent);
}

[data-theme=dark] .aa-search-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(126, 179, 255, 0.32);
}

.aa-search-card.is-wide {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  min-height: 120px;
  padding: 12px;
  border: 0;
  background: #1a2233;
}

.aa-search-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.aa-search-card.is-post {
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
  gap: 10px 12px;
  min-height: 0;
}

.aa-search-card.is-post .aa-search-thumb {
  grid-column: 1;
  grid-row: 1;
  width: 56px;
  height: 56px;
  min-width: 56px;
  max-width: 56px;
  position: static;
  margin: 0;
  border: 0;
  box-shadow: none;
}

.aa-search-card.is-post .aa-search-text {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding-left: 0;
}

.aa-search-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
}

.aa-search-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.aa-search-lang .app-detail-value.app-detail-value--icon.ru-lang-icon,
.aa-search-lang .app-detail-value.app-detail-value--icon.non-ru-lang-icon {
  width: 24px;
  height: 20px;
  flex: 0 0 24px;
  display: block;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.aa-search-lang .app-detail-value.app-detail-value--icon.ru-lang-icon {
  background-image: url(/templates/development/img/ru-language-icon.svg);
}

.aa-search-lang .app-detail-value.app-detail-value--icon.non-ru-lang-icon {
  background-image: url(/templates/development/img/non-ru-language-day.svg);
}

[data-theme=dark] .aa-search-lang .app-detail-value.app-detail-value--icon.ru-lang-icon {
  background-image: url(/templates/development/img/ru-language-icon-night.svg);
}

[data-theme=dark] .aa-search-lang .app-detail-value.app-detail-value--icon.non-ru-lang-icon {
  background-image: url(/templates/development/img/non-ru-language.svg);
}

.aa-search-lang .app-detail-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--muted, #5b6470);
}

[data-theme=dark] .aa-search-lang .app-detail-label {
  color: #9aa7b9;
}

.aa-search-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink, #121317);
}

.aa-search-rating .star {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: #f5a524;
}

[data-theme=dark] .aa-search-rating {
  color: #e9eefb;
}

.aa-search-version {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--muted, #5b6470);
}

[data-theme=dark] .aa-search-version {
  color: #9aa7b9;
}

.aa-search-card.is-wide .aa-search-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  z-index: 0;
}

.aa-search-card.is-wide .aa-search-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 16, 28, 0.12) 0%, rgba(9, 16, 28, 0.42) 52%, rgba(9, 16, 28, 0.78) 100%);
  pointer-events: none;
}

.aa-search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aa-search-thumb.is-empty {
  background: color-mix(in srgb, var(--accent, #3074ab) 16%, #e8eef6);
}

[data-theme=dark] .aa-search-thumb.is-empty {
  background: rgba(126, 179, 255, 0.16);
}

.aa-search-text {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.aa-search-card.is-wide .aa-search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aa-search-card.is-wide .aa-search-text {
  position: relative;
  z-index: 1;
}

.aa-search-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.aa-search-card.is-wide .aa-search-title {
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .aa-search-card,
  .aa-search-more,
  .aa-search-input {
    transition: none;
  }
}
.header-link.registration.aa-login-trigger--loading {
  pointer-events: none;
  opacity: 0.86;
  position: relative;
}

.header-link.registration.aa-login-trigger--loading svg {
  opacity: 0.25;
}

.header-link.registration.aa-login-trigger--loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-top: -8px;
  margin-left: -8px;
  border-radius: 50%;
  border: 2px solid rgba(43, 124, 255, 0.24);
  border-top-color: var(--aa-brand);
  animation: aaLoginTriggerSpin 0.75s linear infinite;
}

@keyframes aaLoginTriggerSpin {
  to {
    transform: rotate(360deg);
  }
}
.speedbar-shading {
  position: relative;
}
.speedbar-shading:after {
  content: "";
  display: block;
  height: 36px;
  width: 24px;
  position: absolute;
  right: 0;
  top: 0;
  background: linear-gradient(280deg, rgb(245, 245, 245) 50%, rgba(255, 255, 255, 0) 100%);
  transition: background 0.3s ease;
}
[data-theme=dark] .speedbar-shading:after {
  background: linear-gradient(280deg, var(--bg-body) 50%, rgba(15, 18, 34, 0) 100%);
}

#dle-speedbar {
  display: block;
  white-space: nowrap;
  overflow: auto;
  padding: 8px 16px;
}
@media (min-width: 800px) {
  #dle-speedbar {
    margin: 0 48px;
    padding: 16px 0;
  }
}
@media (min-width: 1024px) {
  #dle-speedbar {
    margin: 0 64px;
  }
}
@media (min-width: 1280px) {
  #dle-speedbar {
    max-width: 1200px;
    margin: 0 auto;
  }
}

#dle-speedbar, #dle-speedbar span, #dle-speedbar a {
  color: #919292;
  font-size: 12px;
  line-height: 20px;
}

@media (min-width: 1280px) {
  .category-header-cont {
    max-width: 1200px;
    margin: 0 auto;
  }
}

.category-header {
  color: rgb(255, 255, 255);
  font-size: 18px;
  font-weight: bold;
  letter-spacing: -0.36px;
  line-height: 23px;
  padding: 16px 0 24px;
  flex: 1;
}
.category-header a {
  color: #2195f2;
  font-weight: 600;
  padding: 4px 36px 4px 0px;
  position: relative;
  display: flex;
  align-items: center;
}
.category-header a.white {
  color: #fff;
}
.category-header a.white:after {
  filter: brightness(10);
}
.category-header a:after {
  content: "";
  background-image: url(/templates/development/img/arrow-right.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px;
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-left: 16px;
  margin-top: 2px;
}
@media (min-width: 600px) {
  .category-header {
    padding: 24px 0 28px 0;
    font-size: 22px;
    line-height: 26px;
  }
}
@media (min-width: 800px) {
  .category-header {
    padding: 24px 0 28px;
  }
}
@media (min-width: 1024px) {
  .category-header {
    padding: 32px 0 28px 0;
    font-size: 24px;
    letter-spacing: -0.48px;
    line-height: 29px;
    flex: 0 1 auto;
  }
}

.dark-header {
  color: rgb(0, 0, 0);
  transition: color 0.3s ease;
}
[data-theme=dark] .dark-header {
  color: var(--text-primary);
}

.with-text-under {
  padding-bottom: 8px;
}
@media (min-width: 600px) {
  .with-text-under {
    padding-bottom: 12px;
  }
}

.category-text-container {
  flex: 100%;
  display: flex;
  flex-wrap: wrap;
  padding: 0 16px;
}
.category-text-container.spacing {
  margin-top: 36px;
}
@media (min-width: 480px) {
  .category-text-container.spacing {
    margin-top: 0;
  }
}
@media (min-width: 800px) {
  .category-text-container {
    padding: 0 48px;
  }
}
@media (min-width: 1024px) {
  .category-text-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 64px;
    flex: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
  }
}

.white-header-cont {
  padding: 0 16px 1px;
  background-color: rgb(255, 255, 255);
  flex: 100%;
  margin: 12px 12px 12px 16px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}
@media (min-width: 1024px) {
  .white-header-cont {
    flex: 100%;
    padding: 0px 24px 24px;
    width: inherit;
    max-width: 1152px;
    margin: 16px auto 16px;
  }
}
[data-theme=dark] .white-header-cont {
  background-color: var(--bg-surface);
}
.white-header-cont .category-cat-links {
  margin: 0;
  padding-top: 16px;
  padding-bottom: 8px;
}
.white-header-cont .category-cat-links:empty {
  display: none;
}
@media (min-width: 480px) {
  .white-header-cont .category-cat-links {
    padding-top: 24px;
  }
}
@media (min-width: 1280px) {
  .white-header-cont .category-cat-links {
    max-width: 1200px;
    margin: 0 auto;
  }
}

.category-text {
  color: rgb(145, 146, 146);
  font-size: 12px;
  line-height: 16px;
  flex: 100%;
  margin-bottom: 16px;
  transition: color 0.3s ease;
}
.category-text:empty {
  display: none;
}
@media (min-width: 600px) {
  .category-text {
    font-size: 14px;
    line-height: 18px;
  }
}
@media (min-width: 1024px) {
  .category-text {
    font-size: 16px;
    line-height: 20px;
    margin: 0 auto 32px auto;
  }
}
[data-theme=dark] .category-text {
  color: var(--text-secondary);
}

.whit-text {
  color: rgb(255, 255, 255);
  margin-bottom: 16px;
}
@media (min-width: 600px) {
  .whit-text {
    margin-bottom: 24px;
  }
}

.white-box {
  background-color: var(--bg-white);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
[data-theme=dark] .white-box {
  background-color: var(--bg-white);
  box-shadow: none;
}

.wrap-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0 8px;
}

.wrap-head h2, .liquid-glass h2 {
  margin: 0;
  font-size: clamp(1.05rem, 3.6vw, 1.4rem);
  letter-spacing: 0.2px;
  font-weight: 900;
}

.liquid-glass h2 {
  padding-left: 0;
}

.wrap-head .cta-link {
  text-decoration: none;
  font-weight: 800;
  color: var(--brand);
  background: rgba(43, 124, 255, 0.08);
  border: 1px solid rgba(43, 124, 255, 0.25);
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
}
@media (max-width: 360px) {
  .wrap-head .cta-link {
    font-size: 0.88rem;
  }
}

/* Liquid Glass UI — модульная система
   Этот файл импортирует все модули для обратной совместимости
   Для новых страниц можно импортировать только нужные модули */
/* Grid Cards CSS Variables
   Может использоваться как внутри .liquid-glass, так и без него */
:root,
.liquid-glass {
  /* ===== Light-first Theme (scoped CSS variables) */
  --maxw: 1200px;
  --radius: 22px;
  --page-gutter: 12px;
  --gap: 12px;
}
@media (min-width: 480px) {
  :root,
  .liquid-glass {
    --gap: 18px;
  }
}
:root,
.liquid-glass {
  /* Light by default */
  --bg: radial-gradient(1200px 600px at 10% -10%, #6de3ff44 0%, transparent 60%),
  radial-gradient(900px 400px at 110% 40%, #b388ff33 0%, transparent 60%),
  #edf2f7;
  --text: #0f1320;
  --muted: #3a4761;
  --glass-bg: rgba(255, 255, 255, .65);
  --glass-stroke: rgba(255, 255, 255, .95);
  --glass-highlight: rgba(255, 255, 255, .55);
  --card-shadow: 0 4px 12px rgba(21, 30, 46, .1);
  --chip-bg: rgba(15, 19, 32, .06);
  --chip-text: #27324a;
  --accent: #2b8cff;
  --accent2: #7a5cff;
  --good: #13b77b;
  --warn: #e69a2e;
}

[data-theme=dark] .liquid-glass,
[data-theme=dark] {
  --bg: radial-gradient(1200px 600px at 10% -10%, rgba(109, 227, 255, 0.15) 0%, transparent 60%),
  radial-gradient(900px 400px at 110% 40%, rgba(179, 136, 255, 0.12) 0%, transparent 60%),
  #0f1222;
  --text: #e9eefb;
  --muted: #b8c5d9;
  --glass-bg: rgba(26, 29, 46, .75);
  --glass-stroke: rgba(255, 255, 255, .1);
  --glass-highlight: rgba(255, 255, 255, .08);
  --card-shadow: 0 4px 12px rgba(0, 0, 0, .35);
  --chip-bg: rgba(255, 255, 255, .08);
  --chip-text: #e9eefb;
}

/* Liquid Glass Container
   Контейнер .liquid-glass и layout helpers */
.liquid-glass {
  /* Base look (scoped) */
  color: var(--text);
  margin: 32px var(--page-gutter) 0;
}
@media (min-width: 1280px) {
  .liquid-glass {
    margin: 32px auto 0;
  }
}
.liquid-glass {
  max-width: 1200px;
  /* ===== Optional: graceful dark support (scoped) */
}
.liquid-glass.hero-text {
  margin-top: 0;
  padding: 18px 0 8px;
}
.liquid-glass.hero-text .sec-head,
.liquid-glass.hero-text .collections-heading {
  margin: 0;
}
.liquid-glass.hero-text .subtitle {
  margin-top: 8px;
  margin-bottom: 0;
}
.liquid-glass {
  /* ===== Layout helpers */
}
.liquid-glass .wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(16px, 2vw, 28px);
}
.liquid-glass .subtitle {
  color: var(--muted);
  margin-top: -4px;
  margin-bottom: 22px;
  font-size: 0.87rem;
  line-height: 1.17rem;
}
@media (min-width: 700px) {
  .liquid-glass .subtitle {
    margin-top: -10px;
  }
}

/* Glass Core Styles
   Стили для .glass класса, работают внутри и вне .liquid-glass
   Облегчённый вариант: без mask, mix-blend и псевдоэлементов */
.glass,
.liquid-glass .glass {
  position: relative;
  background: var(--glass-bg);
  border-radius: var(--radius);
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

/* Generic UI Components
   Общие UI компоненты: chips, buttons, badges, etc.
   Работают внутри и вне .liquid-glass */
.chips,
.liquid-glass .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip,
.liquid-glass .chip {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-box .chip,
.liquid-glass .chip-box .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: visible;
  text-overflow: clip;
}

.chip-box .chip img,
.liquid-glass .chip-box .chip img {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  overflow: visible;
}

.chip.novinki-lang-chip,
.liquid-glass .chip.novinki-lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
}

.novinki-lang-chip__icon {
  width: 16px;
  height: 13px;
  flex-shrink: 0;
  display: block;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.novinki-lang-chip__icon.ru-lang-icon {
  background-image: url(/templates/development/img/ru-language-icon.svg);
}

.novinki-lang-chip__icon.non-ru-lang-icon {
  background-image: url(/templates/development/img/non-ru-language-day.svg);
}

[data-theme=dark] .novinki-lang-chip__icon.ru-lang-icon {
  background-image: url(/templates/development/img/ru-language-icon-night.svg);
}

[data-theme=dark] .novinki-lang-chip__icon.non-ru-lang-icon {
  background-image: url(/templates/development/img/non-ru-language.svg);
}

.novinki-lang-chip__label {
  font-size: 0.78rem;
  font-weight: 600;
}

.row,
.liquid-glass .row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn,
.liquid-glass .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}
@media (max-width: 360px) {
  .btn,
  .liquid-glass .btn {
    font-size: 0.77rem;
  }
}
[data-theme=dark] .btn,
[data-theme=dark] .liquid-glass .btn {
  background: var(--dark-gradient-card-hover);
  border-color: var(--dark-border);
  color: var(--text-primary);
}
.btn--ghost,
.liquid-glass .btn--ghost {
  background: transparent;
  border-color: rgba(0, 0, 0, 0.12);
}
[data-theme=dark] .btn--ghost,
[data-theme=dark] .liquid-glass .btn--ghost {
  border-color: rgba(255, 255, 255, 0.15);
}
.btn:before,
.liquid-glass .btn:before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  z-index: 3;
}

.badge,
.liquid-glass .badge {
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  text-align: center;
}
@media (max-width: 360px) {
  .badge,
  .liquid-glass .badge {
    font-size: 0.66rem;
    padding: 0.25rem 0.25rem;
  }
}
.badge svg,
.liquid-glass .badge svg {
  width: 16px;
  height: 16px;
  transition: filter 0.3s ease;
}
[data-theme=dark] .badge svg,
[data-theme=dark] .liquid-glass .badge svg {
  filter: brightness(0) invert(1);
}

.rating,
.liquid-glass .rating {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.star,
.liquid-glass .star {
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.08));
}

.muted,
.liquid-glass .muted {
  color: var(--muted);
}

/* Grid Systems
   Grid системы для карточек */
.grid,
.liquid-glass .grid {
  display: grid;
  gap: var(--gap);
}
.grid--cards,
.liquid-glass .grid--cards {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  grid-auto-rows: auto;
  align-items: stretch;
}
.grid--dense,
.liquid-glass .grid--dense {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.grid--rows,
.liquid-glass .grid--rows {
  grid-template-columns: 1fr;
}
.grid--mosaic,
.liquid-glass .grid--mosaic {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.grid,
.liquid-glass .grid {
  /* Downpage режим: 4 колонки на ПК с адаптивным уменьшением */
}
.grid--downpage,
.liquid-glass .grid--downpage {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 480px) {
  .grid--downpage,
  .liquid-glass .grid--downpage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 700px) {
  .grid--downpage,
  .liquid-glass .grid--downpage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .grid--downpage,
  .liquid-glass .grid--downpage {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.grid,
.liquid-glass .grid {
  margin: 16px 0 0;
}
@media (min-width: 700px) {
  .grid--rows,
  .liquid-glass .grid--rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .grid--rows,
  .liquid-glass .grid--rows {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .grid--cards, .grid--dense,
  .liquid-glass .grid--cards,
  .liquid-glass .grid--dense {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .grid--mosaic,
  .liquid-glass .grid--mosaic {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .grid--cards, .grid--dense,
  .liquid-glass .grid--cards,
  .liquid-glass .grid--dense {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid--mosaic,
  .liquid-glass .grid--mosaic {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .grid--cards, .grid--dense,
  .liquid-glass .grid--cards,
  .liquid-glass .grid--dense {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid--rows,
  .liquid-glass .grid--rows {
    grid-template-columns: 1fr;
  }
  .grid--mosaic,
  .liquid-glass .grid--mosaic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* Card Base Styles
   Базовые стили карточек */
.card,
.liquid-glass .card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

/* Стили для .cover только внутри карточек grid-cards */
.card .cover,
.liquid-glass .card .cover {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #e9eef7, #dbe6ff);
  transition: background 0.3s ease;
}
.card .cover img[src=""],
.liquid-glass .card .cover img[src=""] {
  display: none;
}
.card .cover img,
.liquid-glass .card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
[data-theme=dark] .card .cover,
[data-theme=dark] .liquid-glass .card .cover {
  background: linear-gradient(135deg, #1a1d2e, #252836);
}

.title,
.liquid-glass .title {
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--ink);
  transition: color 0.3s ease;
}
.title.sm,
.liquid-glass .title.sm {
  font-size: 1rem;
}
.title.md,
.liquid-glass .title.md {
  font-size: 1.05rem;
}
.title.lg,
.liquid-glass .title.lg {
  font-size: 1.12rem;
}
[data-theme=dark] .title,
[data-theme=dark] .liquid-glass .title {
  color: rgba(255, 255, 255, 0.95);
}

.meta,
.liquid-glass .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  transition: color 0.3s ease, background 0.3s ease;
}
[data-theme=dark] .meta,
[data-theme=dark] .liquid-glass .meta {
  color: var(--dark-text-secondary);
  background: transparent;
}

.avatar,
.liquid-glass .avatar {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #0f1320;
  font-weight: 900;
  font-size: 42px;
  letter-spacing: 0.5px;
  mix-blend-mode: multiply;
  z-index: 3;
}
.avatar::before,
.liquid-glass .avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(100% 60% at 30% 10%, rgba(255, 255, 255, 0.6666666667), transparent 40%), radial-gradient(120% 80% at 70% 120%, rgba(255, 255, 255, 0.8), transparent 52%), conic-gradient(from 10deg, #9bd5ff, #cfe9ff, #d7cffd, #b9f1e4, #9bd5ff);
  filter: blur(12px);
  opacity: 0.7;
}
.avatar span,
.liquid-glass .avatar span {
  position: relative;
  z-index: 1;
  transform: translateY(-2px);
}

/* Variant C — saturated poster card
   Постер: градиент-холст + иконка + тёмный dock.
   Медиа 3:2 — плотнее, без высокой «дыры» над dock. */
.card--c,
.liquid-glass .card--c,
.glass.card.card--c,
.liquid-glass .glass.card.card--c {
  --card-c-ink: #f7f8fc;
  --card-c-dock: rgba(8, 11, 20, .88);
  --card-c-cta: #fff;
  --card-c-cta-ink: #10141f;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
  padding: 0;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  isolation: isolate;
  overflow: hidden;
  background: #3a4563;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 24px rgba(16, 22, 36, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}
[data-theme=dark] .card--c,
[data-theme=dark] .liquid-glass .card--c,
[data-theme=dark] .glass.card.card--c,
[data-theme=dark] .liquid-glass .glass.card.card--c {
  --card-c-dock: rgba(4, 6, 14, .92);
  background: #1c2236;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.card--c .card-c__canvas,
.liquid-glass .card--c .card-c__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #44506c;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.card--c .card-c__sheen,
.liquid-glass .card--c .card-c__sheen {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 70% at 18% -8%, rgba(255, 255, 255, 0.18) 0%, transparent 54%), linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 32%);
}

.card--c .card-c__scrim,
.liquid-glass .card--c .card-c__scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 70%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 11, 20, 0) 0%, rgba(8, 11, 20, 0.4) 32%, var(--card-c-dock) 76%);
}

.card--c .card-c__stat,
.liquid-glass .card--c .card-c__stat {
  position: absolute;
  top: 8px;
  right: 8px;
  left: auto;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: calc(50% - 12px);
  flex: 0 0 auto;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  background: rgba(8, 11, 20, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--card-c-ink);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}
.card--c .card-c__stat svg,
.liquid-glass .card--c .card-c__stat svg {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  color: var(--card-c-ink);
}

.card--c .card-c__stat--comments,
.liquid-glass .card--c .card-c__stat--comments {
  right: auto;
  left: 8px;
  width: max-content;
}

.card--c .card-c__stage,
.liquid-glass .card--c .card-c__stage {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  flex: 1 1 auto;
  width: 100%;
  aspect-ratio: 3/2;
  min-height: 0;
  padding: 22px 10px 4px;
}
.card--c .card-c__stage::after,
.liquid-glass .card--c .card-c__stage::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 64px;
  height: 12px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.38) 0%, transparent 72%);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.card--c .card-c__icon,
.liquid-glass .card--c .card-c__icon {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  border-radius: 22px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 2px 4px rgba(0, 0, 0, 0.16), 0 12px 22px rgba(8, 11, 20, 0.36);
  transform: translateY(0) rotate(-3deg);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease;
}
.card--c .card-c__icon img,
.liquid-glass .card--c .card-c__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
[data-theme=dark] .card--c .card-c__icon,
[data-theme=dark] .liquid-glass .card--c .card-c__icon {
  background: #121526;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 2px 4px rgba(0, 0, 0, 0.4), 0 12px 24px rgba(0, 0, 0, 0.48);
}

.card--c .card-c__dock,
.liquid-glass .card--c .card-c__dock {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 0 0 auto;
  gap: 10px;
  padding: 10px 12px 14px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  color: var(--card-c-ink);
}

.card--c .title,
.liquid-glass .card--c .title {
  color: var(--card-c-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
  font-size: 0.95rem;
  line-height: 1.18;
  letter-spacing: 0.12px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
[data-theme=dark] .card--c .title,
[data-theme=dark] .liquid-glass .card--c .title {
  color: var(--card-c-ink);
}

.card--c .chips,
.liquid-glass .card--c .chips {
  --card-c-chip-row: calc(.68rem * 1.25 + .28rem + 2px);
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  margin-top: 0;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  max-height: var(--card-c-chip-row);
  overflow: hidden;
}

.card--c .chip,
.liquid-glass .card--c .chip {
  flex: 0 0 auto;
  box-sizing: border-box;
  max-width: 100%;
  padding: 0.14rem 0.45rem;
  background: rgba(255, 255, 255, 0.16);
  color: var(--card-c-ink);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.card--c .btn,
.liquid-glass .card--c .btn {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  justify-content: center;
  margin-top: 2px;
  margin-left: 0;
  margin-right: 0;
  padding: 0.4rem 0.7rem;
  border: 0;
  background: var(--card-c-cta);
  color: var(--card-c-cta-ink);
  box-shadow: 0 6px 14px rgba(8, 11, 20, 0.26);
  font-size: 0.86rem;
  font-weight: 800;
}
[data-theme=dark] .card--c .btn,
[data-theme=dark] .liquid-glass .card--c .btn {
  background: var(--card-c-cta);
  color: var(--card-c-cta-ink);
  border-color: transparent;
}

@media (max-width: 640px) {
  .card--c,
  .liquid-glass .card--c {
    min-height: 0;
  }
  .card--c .card-c__stat,
  .liquid-glass .card--c .card-c__stat {
    top: 6px;
    right: 6px;
    left: auto;
  }
  .card--c .card-c__stat--comments,
  .liquid-glass .card--c .card-c__stat--comments {
    right: auto;
    left: 6px;
  }
  .card--c .card-c__stage,
  .liquid-glass .card--c .card-c__stage {
    min-height: 0;
    padding: 18px 8px 3px;
  }
  .card--c .card-c__icon,
  .liquid-glass .card--c .card-c__icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
  }
  .card--c .card-c__dock,
  .liquid-glass .card--c .card-c__dock {
    padding: 8px 10px 12px;
    gap: 8px;
  }
  .card--c .title,
  .liquid-glass .card--c .title {
    font-size: 0.88rem;
  }
  .card--c .btn,
  .liquid-glass .card--c .btn {
    padding: 0.36rem 0.6rem;
    font-size: 0.82rem;
  }
}
.glass.card,
.liquid-glass .glass.card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.glass.card:hover,
.glass.card:focus-within,
.liquid-glass .glass.card:hover,
.liquid-glass .glass.card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(24, 38, 64, 0.14);
}

.glass.card.card--c,
.liquid-glass .glass.card.card--c {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.glass.card.card--c:hover,
.glass.card.card--c:focus-within,
.glass.card.card--c:has(.btn:hover),
.glass.card.card--c:has(.btn:focus-visible),
.liquid-glass .glass.card.card--c:hover,
.liquid-glass .glass.card.card--c:focus-within,
.liquid-glass .glass.card.card--c:has(.btn:hover),
.liquid-glass .glass.card.card--c:has(.btn:focus-visible) {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(16, 22, 36, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.glass.card.card--c:hover .card-c__icon,
.glass.card.card--c:focus-within .card-c__icon,
.glass.card.card--c:has(.btn:hover) .card-c__icon,
.glass.card.card--c:has(.btn:focus-visible) .card-c__icon,
.liquid-glass .glass.card.card--c:hover .card-c__icon,
.liquid-glass .glass.card.card--c:focus-within .card-c__icon,
.liquid-glass .glass.card.card--c:has(.btn:hover) .card-c__icon,
.liquid-glass .glass.card.card--c:has(.btn:focus-visible) .card-c__icon {
  transform: translateY(-6px) rotate(-7deg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 6px 8px rgba(0, 0, 0, 0.16), 0 18px 28px rgba(8, 11, 20, 0.38);
}
.glass.card.card--c:hover .card-c__stage::after,
.glass.card.card--c:focus-within .card-c__stage::after,
.glass.card.card--c:has(.btn:hover) .card-c__stage::after,
.glass.card.card--c:has(.btn:focus-visible) .card-c__stage::after,
.liquid-glass .glass.card.card--c:hover .card-c__stage::after,
.liquid-glass .glass.card.card--c:focus-within .card-c__stage::after,
.liquid-glass .glass.card.card--c:has(.btn:hover) .card-c__stage::after,
.liquid-glass .glass.card.card--c:has(.btn:focus-visible) .card-c__stage::after {
  opacity: 0.55;
  transform: translateY(6px) scaleX(1.08);
}
.glass.card.card--c:hover .btn,
.glass.card.card--c:focus-within .btn,
.glass.card.card--c:has(.btn:hover) .btn,
.glass.card.card--c:has(.btn:focus-visible) .btn,
.liquid-glass .glass.card.card--c:hover .btn,
.liquid-glass .glass.card.card--c:focus-within .btn,
.liquid-glass .glass.card.card--c:has(.btn:hover) .btn,
.liquid-glass .glass.card.card--c:has(.btn:focus-visible) .btn {
  box-shadow: 0 10px 22px rgba(8, 11, 20, 0.34);
}
[data-theme=dark] .glass.card.card--c:hover,
[data-theme=dark] .glass.card.card--c:focus-within,
[data-theme=dark] .glass.card.card--c:has(.btn:hover),
[data-theme=dark] .glass.card.card--c:has(.btn:focus-visible),
[data-theme=dark] .liquid-glass .glass.card.card--c:hover,
[data-theme=dark] .liquid-glass .glass.card.card--c:focus-within,
[data-theme=dark] .liquid-glass .glass.card.card--c:has(.btn:hover),
[data-theme=dark] .liquid-glass .glass.card.card--c:has(.btn:focus-visible) {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .card--c,
  .liquid-glass .card--c,
  .glass.card.card--c,
  .card--c .card-c__icon,
  .liquid-glass .card--c .card-c__icon {
    transition: none;
  }
  .glass.card.card--c:hover,
  .glass.card.card--c:focus-within,
  .liquid-glass .glass.card.card--c:hover,
  .liquid-glass .glass.card.card--c:focus-within {
    transform: none;
  }
  .glass.card.card--c:hover .card-c__icon,
  .glass.card.card--c:focus-within .card-c__icon,
  .liquid-glass .glass.card.card--c:hover .card-c__icon,
  .liquid-glass .glass.card.card--c:focus-within .card-c__icon {
    transform: none;
  }
}
/* Card Variants (A, B, G, H, I)
   Остальные варианты карточек */
/* ===== Variant A — Square app tiles (внутри и вне .liquid-glass) */
.card.card--a,
.liquid-glass .card--a {
  height: auto;
  min-width: 0;
  max-width: 100%;
  align-self: stretch;
  box-sizing: border-box;
}
.card.card--a .cover,
.liquid-glass .card--a .cover {
  border-radius: 18px;
}
.card.card--a .title.md,
.liquid-glass .card--a .title.md {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
  min-height: 2.625rem;
}
.card.card--a .chips,
.liquid-glass .card--a .chips {
  min-height: 1.584rem;
  margin-top: 0;
}
.card.card--a .foot,
.liquid-glass .card--a .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  min-height: 40px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.card.card--a .foot .row,
.liquid-glass .card--a .foot .row {
  gap: 8px;
}
.card.card--a .foot .row.rating,
.liquid-glass .card--a .foot .row.rating {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 24px;
}
.card.card--a .foot .btn,
.liquid-glass .card--a .foot .btn {
  position: relative;
  z-index: 6;
  flex: 1 1 auto;
  width: auto;
  max-width: 108px;
  min-width: 0;
  height: 40px;
  padding: 0 0.7rem;
  justify-content: center;
  box-sizing: border-box;
}
.card.card--a .card--a__hit,
.liquid-glass .card--a .card--a__hit {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
}
.card.card--a .card--a__hit:focus-visible,
.liquid-glass .card--a .card--a__hit:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--accent), transparent 30%);
  outline-offset: -3px;
}
.card.card--a .card-a-lang.novinki-lang-chip,
.liquid-glass .card--a .card-a-lang.novinki-lang-chip {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  max-width: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 4px rgba(15, 19, 32, 0.16);
  pointer-events: none;
}
.card.card--a .card-a-lang.novinki-lang-chip .novinki-lang-chip__icon,
.liquid-glass .card--a .card-a-lang.novinki-lang-chip .novinki-lang-chip__icon {
  width: 20px;
  height: 16px;
}
.card.card--a .card-a-lang.novinki-lang-chip .novinki-lang-chip__icon.ru-lang-icon,
.liquid-glass .card--a .card-a-lang.novinki-lang-chip .novinki-lang-chip__icon.ru-lang-icon {
  background-image: url(/templates/development/img/ru-language-icon.svg);
}
.card.card--a .card-a-lang.novinki-lang-chip .novinki-lang-chip__icon.non-ru-lang-icon,
.liquid-glass .card--a .card-a-lang.novinki-lang-chip .novinki-lang-chip__icon.non-ru-lang-icon {
  background-image: url(/templates/development/img/non-ru-language-day.svg);
}

.liquid-glass {
  /* ===== Variant B — Horizontal compact */
}
.liquid-glass .card--b {
  flex-direction: row;
  align-items: center;
  padding: 12px;
  width: calc(100% - 6px);
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.liquid-glass .card--b:hover {
  transform: translateY(-2px);
}
.liquid-glass .card--b .cover {
  width: 86px;
  min-width: 86px;
  aspect-ratio: 1/1;
  border-radius: 14px;
  transition: border-radius 0.3s ease, background 0.3s ease;
}
[data-theme=dark] .liquid-glass .card--b .cover {
  border-radius: 26px;
  background: linear-gradient(135deg, #1a1d2e, #252836);
}
.liquid-glass .card--b .content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.liquid-glass .card--b .content .title {
  font-size: 1rem;
}
.liquid-glass {
  /* ===== NEW Variant G — Mosaic showcase cards */
}
.liquid-glass .card--g {
  padding: 0;
  min-height: 220px;
  display: block;
}
.liquid-glass .card--g .hero {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 18px;
  margin: 12px;
  background: linear-gradient(135deg, #eff5ff, #e9fef7);
}
.liquid-glass .card--g .hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.liquid-glass .card--g .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px 16px 16px;
}
.liquid-glass .rank {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  font-weight: 700;
}
.liquid-glass .span-4 {
  grid-column: span 4;
}
.liquid-glass .span-6 {
  grid-column: span 6;
}
.liquid-glass .span-8 {
  grid-column: span 8;
}
.liquid-glass .span-12 {
  grid-column: span 12;
}
.liquid-glass {
  /* ===== NEW Variant H — 16:9 media cards with excerpt */
}
.liquid-glass .card--h {
  padding: 12px;
}
.liquid-glass .card--h .media {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  background: #e9eef7;
}
.liquid-glass .card--h .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.liquid-glass .card--h .excerpt {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.liquid-glass .card--h .actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.liquid-glass {
  /* ===== NEW Variant I — Badge cards with ringed icon */
}
.liquid-glass .card--i {
  align-items: center;
  text-align: center;
  padding-top: 28px;
}
.liquid-glass .card--i .iconwrap {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: -8px;
  margin-bottom: 6px;
  background: radial-gradient(100% 100% at 50% 0%, #ffffff, #f2f6ff);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(15, 19, 32, 0.08), 0 0 0 3px rgba(139, 200, 255, 0.35);
}
.liquid-glass .card--i .icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  overflow: hidden;
}
.liquid-glass .card--i .title {
  font-size: 1rem;
}
.liquid-glass .card--i .chips {
  justify-content: center;
}
.liquid-glass .card--i .foot {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}
.liquid-glass {
  /* ===== Section header pill */
}
.liquid-glass .sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 10px;
}
.liquid-glass .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(255, 255, 255), rgba(255, 255, 255, 0.7));
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 700;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
[data-theme=dark] .liquid-glass .pill {
  background: var(--dark-gradient-card);
  border-color: var(--dark-border);
  color: var(--text-primary);
}

/* Extended Features
   Расширенные функции: collections, tabs, cards-grid, app-mini, app-card, banner-card, etc. */
/* FIX: корректные слои, обрезка и кликабельность контента */
.liquid-glass .collections-heading {
  margin: 26px 0 10px;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 800;
}
.liquid-glass .collections-compact .collection-card {
  position: relative;
  display: block;
  border-radius: clamp(14px, 1.4vw, 20px);
  overflow: hidden; /* было clip — заменено на hidden для совместимости */
  isolation: isolate;
  box-shadow: var(--card-shadow);
  background: var(--glass-bg);
  contain: layout paint; /* не даём внутренностям «выползать» */
  /* Базовая иерархия слоёв */
}
.liquid-glass .collections-compact .collection-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.liquid-glass .collections-compact .collection-card__bg > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.liquid-glass .collections-compact .collection-card__scrim, .liquid-glass .collections-compact .collection-card__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.liquid-glass .collections-compact .collection-card__body, .liquid-glass .collections-compact .collection-card__panel, .liquid-glass .collections-compact .collection-card__bar, .liquid-glass .collections-compact .collection-card__badge {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
.liquid-glass .collections-compact .collection-card {
  /* Текст точно поверх */
}
.liquid-glass .collections-compact .collection-card__title, .liquid-glass .collections-compact .collection-card__desc {
  position: relative;
  z-index: 3;
}
.liquid-glass .collections-compact .collection-card {
  /* Hover-фильтры аккуратные */
}
.liquid-glass .collections-compact .collection-card:hover .collection-card__bg > img {
  transform: scale(1.03);
  transition: transform 0.25s ease;
}
.liquid-glass .collections-compact {
  /* POSTER COMPACT */
}
.liquid-glass .collections-compact .collection-card--poster-compact {
  aspect-ratio: 7/5;
  min-height: 180px;
}
@media (min-width: 480px) {
  .liquid-glass .collections-compact .collection-card--poster-compact {
    aspect-ratio: 4/5;
  }
}
.liquid-glass .collections-compact .collection-card--poster-compact .collection-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  background: linear-gradient(180deg, rgb(255, 255, 255), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.3s ease, border-color 0.3s ease;
}
[data-theme=dark] .liquid-glass .collections-compact .collection-card--poster-compact .collection-card__badge {
  background: var(--dark-gradient-card-full);
  border: 1px solid var(--dark-border);
}
.liquid-glass .collections-compact .collection-card--poster-compact .collection-card__badge a {
  color: var(--ink);
  transition: color 0.3s ease;
}
[data-theme=dark] .liquid-glass .collections-compact .collection-card--poster-compact .collection-card__badge a {
  color: var(--ink-bright);
}
.liquid-glass .collections-compact .collection-card--poster-compact .collection-card__badge a:before {
  content: "";
  display: block;
  height: 100vh;
  left: -8px;
  position: absolute;
  top: -8px;
  width: 100vw;
  z-index: 999;
  max-width: 465px;
  max-height: 440px;
}
.liquid-glass .collections-compact .collection-card--poster-compact .collection-card__body {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-radius: 10px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.76)) !important;
  border: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 0;
  color: var(--ink);
  transition: background 0.3s ease, border-color 0.3s ease;
}
[data-theme=dark] .liquid-glass .collections-compact .collection-card--poster-compact .collection-card__body {
  background: var(--dark-gradient-card) !important;
  border-color: var(--dark-border);
}
.liquid-glass .collections-compact .collection-card--poster-compact .collection-card__title {
  font-size: 14px;
  line-height: 16px;
  transition: color 0.3s ease;
}
[data-theme=dark] .liquid-glass .collections-compact .collection-card--poster-compact .collection-card__title {
  color: var(--ink-bright);
}

/* FIX: явные интервалы между карточками и безопасные отступы заголовков */
.liquid-glass .grid--collections-compact {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 18px); /* чуть больше, чтобы карточки не «слипались» */
  margin: 20px auto 0;
  max-width: 1200px;
}
.liquid-glass {
  /* вспомогательные спаны */
}
.liquid-glass .span-3 {
  grid-column: span 3;
}
.liquid-glass .span-4 {
  grid-column: span 4;
}
.liquid-glass .span-6 {
  grid-column: span 6;
}
.liquid-glass .span-8 {
  grid-column: span 8;
}
.liquid-glass .span-12 {
  grid-column: span 12;
}
@media (max-width: 1200px) {
  .liquid-glass .grid--collections-compact {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .liquid-glass .span-12, .liquid-glass .span-8 {
    grid-column: span 8;
  }
  .liquid-glass .span-6, .liquid-glass .span-4, .liquid-glass .span-3 {
    grid-column: span 2;
  }
}
@media (max-width: 860px) {
  .liquid-glass .grid--collections-compact {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .liquid-glass .span-12, .liquid-glass .span-8 {
    grid-column: span 6;
  }
  .liquid-glass .span-6, .liquid-glass .span-4 {
    grid-column: span 3;
  }
  .liquid-glass .span-3 {
    grid-column: span 2;
  }
}
@media (max-width: 640px) {
  .liquid-glass .grid--collections-compact {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
  .liquid-glass .span-12, .liquid-glass .span-8, .liquid-glass .span-6, .liquid-glass .span-4, .liquid-glass .span-3 {
    grid-column: span 4;
  }
}
@media (max-width: 480px) {
  .liquid-glass .grid--collections-compact {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .liquid-glass .span-12, .liquid-glass .span-8, .liquid-glass .span-6, .liquid-glass .span-4, .liquid-glass .span-3 {
    grid-column: span 1;
  }
}

/* Минималистичные карточки приложений в выбранном стиле.
   Импортируй после базового файла и сеток коллекций.
*/
.liquid-glass .apps-heading {
  margin: 26px 0 10px;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 800;
}
.liquid-glass {
  /* База карточки приложения */
}
.liquid-glass .app-card {
  --app-ico: clamp(40px, 5vw, 56px);
  --app-gap: 10px;
  position: relative;
  display: inline-grid; /* работаем как инлайн-элемент в сетке */
  align-items: center;
  grid-auto-flow: column;
  gap: var(--app-gap);
  color: var(--text);
  text-decoration: none;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.65));
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--card-shadow);
  padding: 8px 10px;
  min-width: 0; /* для обрезки длинных названий */
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  will-change: transform;
}
[data-theme=dark] .liquid-glass .app-card {
  background: var(--dark-gradient-card);
  border-color: var(--dark-border);
}
.liquid-glass .app-card:hover {
  transform: translateY(-2px);
}
.liquid-glass .app-card__icon {
  width: var(--app-ico);
  height: var(--app-ico);
  border-radius: 18%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e9eef7, #dbe6ff);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.liquid-glass .app-card__icon > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.liquid-glass .app-card__title {
  font-weight: 800;
  font-size: clamp(0.95rem, 1.1vw, 1rem);
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 26ch;
}
.liquid-glass .app-card {
  /* Размеры: при необходимости модификатором можно менять икону */
}
.liquid-glass .app-card.is-xs {
  --app-ico: 36px;
}
.liquid-glass .app-card.is-sm {
  --app-ico: 44px;
}
.liquid-glass .app-card.is-md {
  --app-ico: 56px;
}
.liquid-glass .app-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
}
.liquid-glass .app-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.liquid-glass {
  /* Вариант C: Row — максимально компактная строка */
}
.liquid-glass .app-card--row {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  padding: 6px 10px;
  gap: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.8));
  border-radius: 12px;
  transition: background 0.3s ease;
}
[data-theme=dark] .liquid-glass .app-card--row {
  background: var(--dark-gradient-card-alt);
}
.liquid-glass .app-card--row .app-card__title {
  max-width: 32ch;
  line-height: 22px;
}

/* Плотная сетка для минималистичных карточек приложений.
   Импортируй после общих сеток.
*/
.liquid-glass .grid--apps-min {
  display: grid;
  gap: clamp(10px, 1.2vw, 14px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 14px auto 0;
  max-width: 1200px;
}
@media (max-width: 860px) {
  .liquid-glass .grid--apps-min {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .liquid-glass .grid--apps-min {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .liquid-glass .grid--apps-min {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

.liquid-glass {
  /* ===== 3) BANNER card (вертикальный арт + чёрный футер) ===== */
}
.liquid-glass.slider--banner {
  /* Как .liquid-glass / .chip-rail: --page-gutter, на 1200-сетке gutter=0 */
  --banner-gutter: var(--page-gutter, 12px);
  --banner-slide-gap: 12px;
  --banner-card-max-h: min(42vh, 400px);
  /* Сброс .slider-wrap { padding:12px; width:calc(100% - 26px) } — иначе 100% + padding = page scroll. */
  box-sizing: border-box;
  width: auto;
  max-width: 1200px;
  margin: 32px var(--banner-gutter) 0;
  padding: 0;
  overflow: visible;
}
@media (min-width: 1280px) {
  .liquid-glass.slider--banner {
    --banner-gutter: 0;
    margin-inline: auto;
  }
}
.liquid-glass.slider--banner {
  /* Mobile 12px как chip-rail; ПК — 12px inset секции (заголовок = карточки). */
}
.liquid-glass.slider--banner .wrap-head {
  padding-inline: var(--banner-gutter, 12px);
}
.liquid-glass.slider--banner h2 {
  padding-left: 0;
}
.liquid-glass.slider--banner {
  /* Не bleed: Embla offsetLeft игнорирует padding viewport — первая карточка
     иначе flush к краю, а заголовок нет. Рельс = ширина секции. */
}
.liquid-glass.slider--banner .glider-contain {
  left: 0;
  margin-inline: 0;
  width: 100%;
  overflow: visible;
}
.liquid-glass.slider--banner {
  /* .glider { display:flex } ломает % flex-basis: слот считается от ширины трека,
     карточка становится ~2×viewport. Viewport Embla = block + overflow hidden. */
}
.liquid-glass.slider--banner #bannerSlider.glider,
.liquid-glass.slider--banner #bannerSlider {
  display: block;
  height: auto;
  padding: 0;
  box-sizing: border-box;
  scroll-padding-inline: 0;
  overflow: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: auto;
}
.liquid-glass.slider--banner .swiper-wrapper,
.liquid-glass.slider--banner .embla__container {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: auto;
  min-height: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  touch-action: pan-y pinch-zoom;
  transform: translateZ(0);
  will-change: transform;
}
.liquid-glass.slider--banner {
  /* Карточка подчиняется ширине слота (ПК: 2/3 целых слайда через Swiper). */
}
.liquid-glass.slider--banner .banner-card {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16/10;
  height: 100%;
  min-height: 0;
  max-height: var(--banner-card-max-h);
  margin-right: 0;
  box-sizing: border-box;
  align-self: stretch;
}
.liquid-glass.slider--banner .banner-card .banner-card__bg > img {
  object-fit: cover;
  object-position: center;
}
.liquid-glass.slider--banner .glider-slide,
.liquid-glass.slider--banner .swiper-slide,
.liquid-glass.slider--banner .embla__slide,
.liquid-glass.slider--banner .slider__slide {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  height: auto;
  min-height: 0;
  min-width: 0;
  padding-right: 0;
  box-sizing: border-box;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout style;
  flex: 0 0 89.2857142857%;
}
@media (min-width: 640px) {
  .liquid-glass.slider--banner .glider-slide,
  .liquid-glass.slider--banner .swiper-slide,
  .liquid-glass.slider--banner .embla__slide,
  .liquid-glass.slider--banner .slider__slide {
    flex-basis: 76.9230769231%;
  }
}
.liquid-glass.slider--banner {
  /* Mobile: centered 82% — peek prev/next до краёв вьюпорта.
     Не сдвигать клип margin-left:12 — режет предыдущий кадр слева. */
}
@media (max-width: 767px) {
  .liquid-glass.slider--banner {
    --banner-gutter: 12px;
    --banner-card-max-h: min(46vh, 360px);
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    /* Swiper loop + translate3d при overflow:visible на секции → горизонтальный scroll страницы.
       Peek остаётся внутри #bannerSlider (overflow:hidden + 82% slides). */
    overflow-x: clip;
  }
  .liquid-glass.slider--banner .wrap-head {
    padding-inline: 12px;
  }
  .liquid-glass.slider--banner .glider-contain {
    margin-inline: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }
  .liquid-glass.slider--banner #bannerSlider.glider,
  .liquid-glass.slider--banner #bannerSlider {
    padding-inline: 0;
    scroll-padding-inline: 0;
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    transform: translateZ(0);
    isolation: isolate;
    container-type: inline-size;
    container-name: banner-glider;
  }
  .liquid-glass.slider--banner .banner-card {
    aspect-ratio: 3/2;
    height: 100%;
    max-height: var(--banner-card-max-h);
  }
  .liquid-glass.slider--banner .glider-slide,
  .liquid-glass.slider--banner .swiper-slide,
  .liquid-glass.slider--banner .embla__slide,
  .liquid-glass.slider--banner .slider__slide,
  .liquid-glass.slider--banner #bannerSlider .slider__slide {
    flex: 0 0 82%;
    padding-right: 0;
  }
}
.liquid-glass.slider--banner {
  /* ПК: inset 12px как у .slider-wrap; целое число карточек, без peek. */
}
@media (min-width: 768px) {
  .liquid-glass.slider--banner {
    padding-inline: 12px;
    padding-bottom: 12px;
  }
  .liquid-glass.slider--banner .wrap-head {
    padding-inline: 0;
  }
  .liquid-glass.slider--banner .glider-slide,
  .liquid-glass.slider--banner .swiper-slide,
  .liquid-glass.slider--banner .embla__slide,
  .liquid-glass.slider--banner .slider__slide,
  .liquid-glass.slider--banner #bannerSlider .slider__slide {
    flex: 0 0 auto;
  }
}
.liquid-glass .banner-card {
  --banner-card-radius: 20px;
  --banner-card-end: rgb(8, 6, 12);
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 16/10;
  border-radius: var(--banner-card-radius);
  overflow: hidden;
  background: var(--banner-card-end);
  color: #fff;
  box-shadow: var(--card-shadow);
  margin-right: 0;
  min-width: 260px;
  isolation: isolate;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
@media (min-width: 1024px) {
  .liquid-glass .banner-card {
    min-width: 0;
  }
}
.liquid-glass .banner-card__media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}
.liquid-glass .banner-card__media::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
  top: 0;
  height: 72px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 100%);
}
.liquid-glass .banner-card {
  /* Как hero `.slide-card__shot-veil`, но стопы свои: PHP-градиент
     (solid с 86%) + короткий veil + отдельный __bar = «мыло → монолит».
     Бар overlay на кадре; solid к ~62%, чтобы иконка/название сидели
     на цвете кадра, а не на молочной полосе. */
}
.liquid-glass .banner-card__veil {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(52% + 14px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, color-mix(in oklab, var(--banner-card-end) 32%, transparent) 22%, color-mix(in oklab, var(--banner-card-end) 75%, transparent) 48%, var(--banner-card-end) 64%, var(--banner-card-end) 100%);
}
.liquid-glass .banner-card__veil::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  background: var(--banner-card-end);
  pointer-events: none;
}
.liquid-glass .banner-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--banner-card-end);
}
.liquid-glass .banner-card__bg > img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  transition: transform 0.28s ease, filter 0.28s ease;
}
.liquid-glass .banner-card__chips {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-height: 4.2em;
  overflow: hidden;
  pointer-events: none;
}
.liquid-glass .banner-card__chips .chip {
  flex: 0 1 auto;
  max-width: 100%;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}
.liquid-glass .banner-card__chips .chip.novinki-lang-chip {
  flex: 0 0 auto;
  max-width: 100%;
}
.liquid-glass .banner-card__chips {
  /* Белый pill на скриншоте: в dark theme не брать ночные SVG */
}
[data-theme=dark] .liquid-glass .banner-card__chips .novinki-lang-chip__icon.ru-lang-icon {
  background-image: url(/templates/development/img/ru-language-icon.svg);
}
[data-theme=dark] .liquid-glass .banner-card__chips .novinki-lang-chip__icon.non-ru-lang-icon {
  background-image: url(/templates/development/img/non-ru-language-day.svg);
}
.liquid-glass .banner-card__chips .novinki-lang-chip__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #111;
}
.liquid-glass .banner-card__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 14px;
  background: transparent;
  pointer-events: none;
}
.liquid-glass .banner-card__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-sizing: border-box;
}
.liquid-glass .banner-card__icon > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.liquid-glass .banner-card__meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}
.liquid-glass .banner-card__title {
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.liquid-glass .banner-card__desc {
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.25;
  font-weight: 400;
  margin: 0;
  opacity: 0.9;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.liquid-glass .banner-card__desc:empty {
  display: none;
}
.liquid-glass .banner-card__desc p, .liquid-glass .banner-card__desc div, .liquid-glass .banner-card__desc br {
  display: inline;
  margin: 0;
}
.liquid-glass .banner-card__dwn {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  width: 100%;
  height: 100%;
  color: transparent;
  background: transparent;
  border: 0;
  text-indent: -9999px;
  cursor: pointer;
  border-radius: inherit;
}
.liquid-glass .banner-card__dwn:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--accent), transparent 30%);
  outline-offset: -3px;
}
.liquid-glass .banner-card:is(:hover, :focus-within) {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 19, 32, 0.22);
}
[data-theme=dark] .liquid-glass .banner-card:is(:hover, :focus-within) {
  box-shadow: var(--dark-shadow-lg);
}
.liquid-glass .banner-card:is(:hover, :focus-within) .banner-card__bg > img {
  transform: scale(1.06);
  filter: saturate(110%) contrast(1.04) brightness(1.02);
}
.liquid-glass .banner-card:active {
  transform: translateY(-1px);
}

.liquid-glass.tabs-slider-container {
  overflow: hidden;
}

.liquid-glass .tabs {
  --tabs-gutter: 6px;
  --tabs-gap: 12px;
  --tabs-panel-peek: 44px;
  --tabs-shadow-gutter: 16px;
  --tabs-edge-fade: 28px;
  --tabs-fade-bg: #e9edf4;
  margin-top: 0;
}
@media (min-width: 480px) {
  .liquid-glass .tabs {
    --tabs-gutter: 12px;
  }
}
@media (min-width: 800px) {
  .liquid-glass .tabs {
    --tabs-gutter: 12px;
    --tabs-panel-peek: 0px;
  }
}
[data-theme=dark] .liquid-glass .tabs {
  --tabs-fade-bg: var(--bg-body, #0f1222);
}
.liquid-glass .tabs .wrap-head {
  padding-inline: max(var(--tabs-gutter), var(--tabs-shadow-gutter));
}
.liquid-glass .tabs .wrap-head h2 {
  padding-left: 0;
}
.liquid-glass .tabs__nav {
  position: relative;
  z-index: 2;
  margin: 0 0 4px;
}
.liquid-glass .tabs__nav::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--tabs-edge-fade);
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--tabs-fade-bg));
}
.liquid-glass .tabs #tabsGlider {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-sizing: border-box;
  padding: 12px max(var(--tabs-gutter), var(--tabs-shadow-gutter)) 18px;
  -webkit-overflow-scrolling: auto;
}
.liquid-glass .tabs #tabsGlider::-webkit-scrollbar {
  display: none;
}
.liquid-glass .tabs #tabsGlider > .embla__container {
  display: flex;
  gap: 8px;
}
.liquid-glass .tabs #tabsGlider .embla__slide,
.liquid-glass .tabs #tabsGlider .slider__slide {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  margin: 0;
  justify-content: flex-start;
  align-content: unset;
  overflow: visible;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout style;
  transition: none;
}
.liquid-glass .tabs__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--glass-stroke);
  background: var(--chip-bg);
  color: var(--chip-text);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.liquid-glass .tabs__pill:hover {
  background: color-mix(in oklab, var(--chip-bg), var(--accent) 14%);
}
.liquid-glass .tabs__pill.is-active, .liquid-glass .tabs__pill[aria-selected=true] {
  color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-color: transparent;
  box-shadow: 0 8px 20px color-mix(in oklab, var(--accent), transparent 68%), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.liquid-glass .tabs__pill:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--accent), transparent 30%);
  outline-offset: 2px;
}
.liquid-glass .tabs__content {
  position: relative;
  overflow: hidden;
}
.liquid-glass .tabs #panelsGlider {
  z-index: 0;
  position: relative;
  overflow: hidden;
  -webkit-overflow-scrolling: auto;
}
.liquid-glass .tabs #panelsGlider > .swiper-wrapper,
.liquid-glass .tabs #panelsGlider > .embla__container {
  display: flex;
  gap: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  touch-action: pan-y pinch-zoom;
  transform: translateZ(0);
  will-change: transform;
}
.liquid-glass .tabs #panelsGlider > .swiper-wrapper > .swiper-slide,
.liquid-glass .tabs #panelsGlider > .swiper-wrapper > .embla__slide,
.liquid-glass .tabs #panelsGlider > .embla__container > .embla__slide,
.liquid-glass .tabs #panelsGlider > .embla__container > .slider__slide, .liquid-glass .tabs__panel-slide {
  flex: 0 0 calc(100% - var(--tabs-panel-peek));
  min-width: 0;
  margin: 0;
  justify-content: flex-start;
  align-content: unset;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout style;
  transition: none;
}
.liquid-glass .tabs__panel {
  min-height: 168px;
  padding: 0;
  width: auto;
}
.liquid-glass .tabs__rail {
  overflow: hidden;
  padding: 8px max(var(--tabs-gutter), var(--tabs-shadow-gutter)) 2px;
}
.liquid-glass .tabs__rail-viewport {
  overflow: hidden;
}
.liquid-glass .tabs__items {
  display: flex;
  flex-direction: column;
  gap: var(--tabs-gap);
}
.liquid-glass .tabs__item {
  flex: none;
  width: 100%;
  min-width: 0;
  margin: 0;
  justify-content: flex-start;
  align-content: unset;
  overflow: visible;
  transition: none;
}
.liquid-glass .tabs__item:nth-child(n+4) {
  display: none;
}
.liquid-glass .tabs__item .app-card--row, .liquid-glass .tabs__item .app-mini {
  width: 100%;
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
  overflow: visible;
}
.liquid-glass .tabs__item .app-card--row {
  --app-ico: 48px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 8px 10px;
}
.liquid-glass .tabs__item .app-card--row .app-card__title {
  max-width: none;
}
.liquid-glass .tabs__item .app-card--row .app-card__meta .chip {
  max-width: 14ch;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
}
.liquid-glass .tabs__item .app-card--row .app-card__meta .rating {
  flex-shrink: 0;
  gap: 4px;
  font-size: 0.82rem;
}
.liquid-glass .tabs__item .app-card--row .card-a-lang.novinki-lang-chip {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  flex-shrink: 0;
  max-width: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 4px rgba(15, 19, 32, 0.12);
  pointer-events: none;
}
.liquid-glass .tabs__item .app-card--row .card-a-lang.novinki-lang-chip .novinki-lang-chip__icon {
  width: 14px;
  height: 11px;
}
[data-theme=dark] .liquid-glass .tabs__item .app-card--row .card-a-lang.novinki-lang-chip {
  background: rgba(28, 32, 48, 0.92);
}
.liquid-glass .tabs a.cta-link.tabs__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  height: auto;
  max-width: calc(100% - 8px);
  margin: 14px auto 2px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(43, 124, 255, 0.25);
  background: rgba(43, 124, 255, 0.08);
  box-shadow: 0 4px 12px rgba(43, 124, 255, 0.1);
  color: var(--brand, #2b7cff);
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  overflow: visible;
}
[data-theme=dark] .liquid-glass .tabs a.cta-link.tabs__more {
  background: rgba(43, 124, 255, 0.16);
  border-color: rgba(123, 164, 255, 0.28);
  color: #8eb6ff;
}
.liquid-glass .tabs a.cta-link.tabs__more:hover {
  background: rgba(43, 124, 255, 0.14);
}
.liquid-glass .tabs a.cta-link.tabs__more:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--accent, #2b8cff), transparent 30%);
  outline-offset: 2px;
}
.liquid-glass .tabs__placeholder {
  color: var(--muted);
  padding: 24px var(--tabs-gutter);
  font-weight: 700;
}
.liquid-glass .tabs .glider-prev,
.liquid-glass .tabs .glider-next {
  top: 38%;
}
.liquid-glass .tabs .glider-prev {
  left: 8px;
}
.liquid-glass .tabs .glider-next {
  right: 8px;
}
@media (min-width: 800px) {
  .liquid-glass .tabs #panelsGlider > .swiper-wrapper,
  .liquid-glass .tabs #panelsGlider > .embla__container {
    gap: 0;
  }
  .liquid-glass .tabs #panelsGlider > .swiper-wrapper > .swiper-slide,
  .liquid-glass .tabs #panelsGlider > .swiper-wrapper > .embla__slide,
  .liquid-glass .tabs #panelsGlider > .embla__container > .embla__slide,
  .liquid-glass .tabs #panelsGlider > .embla__container > .slider__slide, .liquid-glass .tabs__panel-slide {
    flex-basis: 100%;
  }
  .liquid-glass .tabs__items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    gap: 12px 24px;
    column-gap: 24px;
    row-gap: 12px;
  }
  .liquid-glass .tabs__item {
    flex: none;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .liquid-glass .tabs__item:nth-child(n+4) {
    display: block;
  }
  .liquid-glass .tabs__rail {
    overflow: visible;
    padding-inline: max(var(--tabs-gutter), var(--tabs-shadow-gutter));
  }
  .liquid-glass .tabs__rail-viewport {
    overflow: visible;
    padding-inline: max(var(--tabs-gutter), var(--tabs-shadow-gutter));
  }
  .liquid-glass .tabs a.cta-link.tabs__more {
    margin-top: 18px;
  }
}
@media (max-width: 360px) {
  .liquid-glass #bannerSlider .slider__slide {
    /* Mobile peek: ширину задаёт .slider--banner (82%), не auto */
    flex: 0 0 82%;
  }
}

.liquid-glass {
  /* ====== ГРИД-КОНТЕЙНЕР ====== */
}
.liquid-glass .cards-grid {
  --min: 112px; /* минимальная ширина «плитки» */
  --gap: 14px;
  --rows: 2; /* по умолчанию 2 ряда */
  display: grid;
  gap: var(--gap);
  margin: 16px auto 6px;
  max-width: var(--maxw);
  /* Двухрядная раскладка с равномерным распределением по колонкам */
  grid-auto-flow: column;
  grid-template-rows: repeat(var(--rows), auto);
  grid-auto-columns: minmax(var(--min), 1fr);
  /* One-row / two-rows модификаторы */
}
.liquid-glass .cards-grid.cards--1row {
  --rows: 1;
}
.liquid-glass .cards-grid.cards--2rows {
  --rows: 2;
}
.liquid-glass .cards-grid {
  /* Фоллбек: если нет родительских .mobile/.not-mobile — сведём на разумный дефолт */
}
@media (max-width: 640px) {
  .liquid-glass .cards-grid {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    grid-auto-columns: max-content; /* ширина по контенту для скролла */
    padding-bottom: 6px;
  }
}
.liquid-glass {
  /* Поведение по классам страницы */
}
.mobile .liquid-glass .cards-grid,
.liquid-glass .mobile .cards-grid {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  grid-auto-columns: max-content; /* плитка по своей ширине → естественный скролл */
  scroll-snap-type: x proximity;
}
.mobile .liquid-glass .cards-grid .app-mini,
.liquid-glass .mobile .cards-grid .app-mini {
  scroll-snap-align: start;
}
.not-mobile .liquid-glass .cards-grid,
.liquid-glass .not-mobile .cards-grid {
  overflow: visible;
  grid-auto-columns: minmax(var(--min), 1fr); /* равная сетка без скролла */
}
.liquid-glass {
  /* app-mini--a mobile: 3 кубика × 2 ряда + peek следующей колонки.
     Клип = край вьюпорта (не 12px-гуттер). Padding в скроллпорте рисует
     предыдущий столбец в поле — поэтому inline padding нет.
     Отступ первой колонки — ::before-спейсер в scrollWidth; snap тоже на gutter. */
}
@media (max-width: 768px) {
  .liquid-glass:has(> .cards-grid[data-variant=a]) {
    --mini-gutter: var(--page-gutter, 12px);
    --mini-extra-bleed: 0px;
    --mini-bleed: calc(var(--mini-gutter) + var(--mini-extra-bleed));
    overflow: visible;
  }
  .liquid-glass:has(> .cards-grid[data-variant=a]) > .wrap-head {
    padding-inline: 0;
  }
  .liquid-glass:has(> .cards-grid[data-variant=a]) > .wrap-head h2,
  .liquid-glass:has(> .cards-grid[data-variant=a]) > h2 {
    padding-left: 0;
  }
  .liquid-glass {
    /* .novinki-page padding 12px только 641–768 (на ≤640 padding сброшен в novinki.scss).
       Доп. bleed только там — иначе на mobile bleed=24px и grid шире viewport. */
  }
}
@media (max-width: 768px) and (min-width: 641px) {
  .novinki-page .liquid-glass:has(> .cards-grid[data-variant=a]) {
    --mini-extra-bleed: var(--page-gutter, 12px);
    --mini-bleed: calc(var(--mini-gutter) + var(--mini-extra-bleed));
  }
}
@media (max-width: 768px) {
  .liquid-glass .cards-grid[data-variant=a], .mobile .liquid-glass .cards-grid[data-variant=a], .not-mobile .liquid-glass .cards-grid[data-variant=a],
  .liquid-glass .mobile .cards-grid[data-variant=a],
  .liquid-glass .not-mobile .cards-grid[data-variant=a] {
    --mini-gutter: var(--page-gutter, 12px);
    --mini-bleed: calc(var(--mini-gutter) + var(--mini-extra-bleed, 0px));
    --mini-cols: 3;
    --mini-card-peek: 20px;
    --gap: 8px;
    --mini-col-w: calc((100% - var(--mini-bleed) - var(--gap) * var(--mini-cols) - var(--mini-card-peek)) / var(--mini-cols));
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline-start: var(--mini-bleed);
    scroll-padding-inline-end: 0;
    padding: 16px 0 24px;
    padding-inline: 0;
    margin-inline: calc(-1 * var(--mini-bleed));
    width: calc(100% + 2 * var(--mini-bleed));
    max-width: none;
    min-width: 0;
    scrollbar-width: none;
    /* Трек + column-gap = gutter: отрицательный margin в grid не ест gap. */
    grid-template-columns: calc(var(--mini-bleed) - var(--gap));
    grid-auto-columns: var(--mini-col-w);
    /* Пустая колонка в scrollWidth: rest = gutter, свайп назад — с x=0. */
  }
  .liquid-glass .cards-grid[data-variant=a]::before, .mobile .liquid-glass .cards-grid[data-variant=a]::before, .not-mobile .liquid-glass .cards-grid[data-variant=a]::before,
  .liquid-glass .mobile .cards-grid[data-variant=a]::before,
  .liquid-glass .not-mobile .cards-grid[data-variant=a]::before {
    content: "";
    grid-row: 1/-1;
    pointer-events: none;
  }
  .liquid-glass .cards-grid[data-variant=a]::-webkit-scrollbar, .mobile .liquid-glass .cards-grid[data-variant=a]::-webkit-scrollbar, .not-mobile .liquid-glass .cards-grid[data-variant=a]::-webkit-scrollbar,
  .liquid-glass .mobile .cards-grid[data-variant=a]::-webkit-scrollbar,
  .liquid-glass .not-mobile .cards-grid[data-variant=a]::-webkit-scrollbar {
    display: none;
    height: 0;
  }
  .liquid-glass .cards-grid[data-variant=a] .app-mini,
  .liquid-glass .cards-grid[data-variant=a] .app-mini.app-mini--a, .mobile .liquid-glass .cards-grid[data-variant=a] .app-mini,
  .mobile .liquid-glass .cards-grid[data-variant=a] .app-mini.app-mini--a, .not-mobile .liquid-glass .cards-grid[data-variant=a] .app-mini,
  .not-mobile .liquid-glass .cards-grid[data-variant=a] .app-mini.app-mini--a,
  .liquid-glass .mobile .cards-grid[data-variant=a] .app-mini,
  .liquid-glass .mobile .cards-grid[data-variant=a] .app-mini.app-mini--a,
  .liquid-glass .not-mobile .cards-grid[data-variant=a] .app-mini,
  .liquid-glass .not-mobile .cards-grid[data-variant=a] .app-mini.app-mini--a {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    scroll-snap-align: start;
    padding-inline: 0;
  }
  .liquid-glass .cards-grid[data-variant=a] .app-mini__icon,
  .liquid-glass .cards-grid[data-variant=a] .app-mini.app-mini--a .app-mini__icon, .mobile .liquid-glass .cards-grid[data-variant=a] .app-mini__icon,
  .mobile .liquid-glass .cards-grid[data-variant=a] .app-mini.app-mini--a .app-mini__icon, .not-mobile .liquid-glass .cards-grid[data-variant=a] .app-mini__icon,
  .not-mobile .liquid-glass .cards-grid[data-variant=a] .app-mini.app-mini--a .app-mini__icon,
  .liquid-glass .mobile .cards-grid[data-variant=a] .app-mini__icon,
  .liquid-glass .mobile .cards-grid[data-variant=a] .app-mini.app-mini--a .app-mini__icon,
  .liquid-glass .not-mobile .cards-grid[data-variant=a] .app-mini__icon,
  .liquid-glass .not-mobile .cards-grid[data-variant=a] .app-mini.app-mini--a .app-mini__icon {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(15, 19, 32, 0.08);
  }
  .liquid-glass .cards-grid[data-variant=a] .app-mini__title,
  .liquid-glass .cards-grid[data-variant=a] .app-mini.app-mini--a .app-mini__title, .mobile .liquid-glass .cards-grid[data-variant=a] .app-mini__title,
  .mobile .liquid-glass .cards-grid[data-variant=a] .app-mini.app-mini--a .app-mini__title, .not-mobile .liquid-glass .cards-grid[data-variant=a] .app-mini__title,
  .not-mobile .liquid-glass .cards-grid[data-variant=a] .app-mini.app-mini--a .app-mini__title,
  .liquid-glass .mobile .cards-grid[data-variant=a] .app-mini__title,
  .liquid-glass .mobile .cards-grid[data-variant=a] .app-mini.app-mini--a .app-mini__title,
  .liquid-glass .not-mobile .cards-grid[data-variant=a] .app-mini__title,
  .liquid-glass .not-mobile .cards-grid[data-variant=a] .app-mini.app-mini--a .app-mini__title {
    max-width: 100%;
  }
}
.liquid-glass {
  /* ====== БАЗОВАЯ КАРТОЧКА ====== */
}
.liquid-glass .app-mini {
  --size: 84px; /* базовый размер иконки */
  --r: 18px; /* радиус иконки по умолчанию */
  display: grid;
  justify-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  gap: 8px;
  padding: 6px 4px;
  border-radius: 16px; /* без явного фона, но оставим радиус для фокуса */
  transition: transform 0.18s ease, filter 0.18s ease;
  will-change: transform;
}
.liquid-glass .app-mini:hover {
  transform: translateY(-2px);
}
.liquid-glass .app-mini:active {
  transform: translateY(0);
  filter: saturate(105%);
}
.liquid-glass .app-mini:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--accent), transparent 30%);
  outline-offset: 3px;
}
.liquid-glass .app-mini__icon {
  position: relative;
  width: var(--size);
  height: var(--size);
  border-radius: var(--r);
  overflow: hidden;
  background: #fff; /* подложка только под иконку, карточка без фона */
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 8px 18px rgba(15, 19, 32, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  /* стеклянный блик-ободок */
}
.liquid-glass .app-mini__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(100% 100% at 30% 0%, rgba(255, 255, 255, 0.8), transparent 48%), linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 60%);
  mix-blend-mode: screen;
}
.liquid-glass .app-mini__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.liquid-glass .app-mini:hover .app-mini__icon {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 14px 28px rgba(15, 19, 32, 0.12);
  transform: translateY(-1px);
}
.liquid-glass .app-mini__title {
  font-weight: 800;
  font-size: 0.96rem;
  line-height: 1.15;
  max-width: 9.5ch; /* компактная ширина подписи */
  display: -webkit-box;
  -webkit-line-clamp: 2; /* до 2 строк */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.liquid-glass {
  /* ====== Вариант A — Square Minimal ====== */
}
.liquid-glass [data-variant=a] .app-mini {
  --size: clamp(76px, 9.5vw, 96px);
  --r: 16px;
}
.liquid-glass [data-variant=a] .app-mini__title {
  font-size: 0.98rem;
  letter-spacing: 0.1px;
}

.liquid-glass .collection-hero,
.collection-hero {
  --hero-title: #eef1f8;
  --hero-cta-ghost: #c9d1e0;
  --hero-app-title: #e2e7f2;
  --hero-app-meta: #b4bdcd;
  --hero-app-hover: rgba(255, 255, 255, 0.1);
  --hero-icon-bg: #fff;
  --hero-stroke: rgba(255, 255, 255, 0.14);
  --hero-chip-bg: rgba(255, 255, 255, 0.14);
  --hero-chip-text: #d4dbe8;
  --hero-rating: #f0c96a;
  --hero-pad: clamp(16px, 2vw, 24px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 20px;
  padding: var(--hero-pad);
  border: 1px solid var(--hero-stroke);
  box-shadow: 0 10px 28px rgba(15, 19, 32, 0.06);
}
[data-theme=dark] .liquid-glass .collection-hero,
[data-theme=dark] .collection-hero {
  --hero-title: #f3f5fb;
  --hero-cta-ghost: #cfd6e4;
  --hero-app-title: #e6ebf4;
  --hero-app-meta: #aeb6c6;
  --hero-app-hover: rgba(255, 255, 255, 0.08);
  --hero-icon-bg: #fff;
  --hero-stroke: rgba(255, 255, 255, 0.1);
  --hero-chip-bg: rgba(255, 255, 255, 0.12);
  --hero-chip-text: #cfd6e4;
  --hero-rating: #e8c05c;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.collection-hero__bg-splash {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.collection-hero__bg-splash::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg, none);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  filter: blur(1px);
}

.collection-hero__bg-splash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(72, 72, 72, 0.4);
}

[data-theme=dark] .collection-hero__bg-splash::after {
  background: rgba(56, 56, 56, 0.4470588235);
}

.collection-hero__head,
.collection-hero__cards {
  position: relative;
  z-index: 1;
}

.collection-hero__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(12px, 1.6vw, 18px);
}

.liquid-glass .collection-hero__title,
.collection-hero__title {
  margin: 0;
  padding: 0;
  color: var(--hero-title);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-size: clamp(20px, 2.4vw, 28px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.collection-hero__title > span {
  display: block;
}

.collection-hero__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.collection-hero__actions .cta {
  position: static;
  padding: 8px 14px;
  border-radius: 11px;
  border: 0;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0;
  color: #fff;
  background: #2b7cff;
  box-shadow: none;
}
.collection-hero__actions .cta::before {
  content: none;
}
.collection-hero__actions .cta:active {
  transform: translateY(1px);
}

.collection-hero__actions .cta--ghost {
  color: var(--hero-cta-ghost);
  background: transparent;
  border: 1px solid color-mix(in oklab, var(--hero-cta-ghost) 22%, transparent);
}

.collection-hero__cards {
  --text: var(--hero-app-title);
  --ink: var(--hero-app-title);
  --muted: var(--hero-app-meta);
  --chip-bg: var(--hero-chip-bg);
  --chip-text: var(--hero-chip-text);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.collection-hero__cards > article {
  flex: 0 0 auto;
  width: clamp(220px, 18vw, 25% - 10px);
}

.liquid-glass .collection-hero .app-card,
.collection-hero .app-card,
.collection-hero__app {
  --app-ico: 48px;
  --app-gap: 12px;
  display: flex;
  width: 100%;
  align-items: center;
  box-sizing: border-box;
  min-width: 0;
  padding: 6px 10px 6px 6px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
  will-change: auto;
  color: var(--hero-app-title);
}

.liquid-glass .collection-hero .app-card:hover,
.collection-hero .app-card:hover,
.collection-hero__app:hover {
  transform: none;
  background: var(--hero-app-hover);
}

.liquid-glass .collection-hero .app-card:active,
.collection-hero .app-card:active {
  transform: none;
}

.collection-hero .app-card:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--accent), transparent 40%);
  outline-offset: 2px;
}

.liquid-glass .collection-hero .app-card__icon,
.collection-hero .app-card__icon {
  width: var(--app-ico);
  height: var(--app-ico);
  aspect-ratio: 1/1;
  flex: 0 0 auto;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: var(--hero-icon-bg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 2px 8px rgba(15, 19, 32, 0.14);
}

.collection-hero .app-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.liquid-glass .collection-hero .app-card__title,
.collection-hero .app-card__title {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  color: var(--hero-app-title);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
}

.collection-hero .app-mini__title {
  color: var(--hero-app-title);
}

.collection-hero .app-card__meta,
.collection-hero .muted {
  color: var(--hero-app-meta);
}

.collection-hero .chip,
.collection-hero .app-card__meta .chip {
  background: var(--hero-chip-bg);
  color: var(--hero-chip-text);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.collection-hero .rating,
.collection-hero .app-card__meta .rating {
  color: var(--hero-rating);
}

.collection-hero .novinki-lang-chip__label {
  color: var(--hero-chip-text);
}

@media (max-width: 1024px) {
  .collection-hero__cards > article {
    width: clamp(200px, 28vw, 33% - 10px);
  }
}
@media (max-width: 768px) {
  .collection-hero__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .collection-hero__cards {
    --hero-cards-gutter: 8px;
    --hero-card-peek: 18cqw;
    box-sizing: border-box;
    flex-wrap: unset;
    /* Рельс в hero-pad; gutter на clip box — не margin (режет overflow:hidden). */
    margin-inline: calc(-1 * (var(--hero-pad) - var(--hero-cards-gutter)));
    width: calc(100% + 2 * (var(--hero-pad) - var(--hero-cards-gutter)));
    max-width: none;
    container-type: inline-size;
    container-name: collection-hero-cards;
  }
  .collection-hero__cards:not(.is-swiper) {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: calc(100cqw - var(--hero-card-peek));
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    scroll-padding-inline: var(--hero-cards-gutter);
    padding-inline: var(--hero-cards-gutter);
    scrollbar-width: none;
  }
  .collection-hero__cards:not(.is-swiper)::-webkit-scrollbar {
    display: none;
    height: 0;
  }
  .collection-hero__cards:not(.is-swiper) > article {
    width: auto;
    min-width: 0;
    scroll-snap-align: start;
  }
  /* .collection-hero { overflow:hidden } + clip без gutter режет тени/радиусы
     app-card при translate. Inset только на Swiper clip box (как mini / #heroGlider). */
  .collection-hero__cards.is-swiper {
    display: block;
    overflow: hidden;
    box-sizing: border-box;
    padding-block: 0;
    padding-inline: var(--hero-cards-gutter);
    margin-inline: 0;
    transform: translateZ(0);
    isolation: isolate;
    -webkit-overflow-scrolling: auto;
  }
  .collection-hero__cards.is-swiper > .swiper-wrapper {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    touch-action: pan-y pinch-zoom;
    transform: translateZ(0);
    will-change: transform;
  }
  .collection-hero__cards.is-swiper .collection-hero__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    flex: 0 0 calc(100cqw - var(--hero-card-peek, 18cqw));
    width: calc(100cqw - var(--hero-card-peek, 18cqw));
    min-width: calc(100cqw - var(--hero-card-peek, 18cqw));
    max-width: calc(100cqw - var(--hero-card-peek, 18cqw));
    overflow: visible;
  }
  .collection-hero__cards.is-swiper .collection-hero__col > article {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    overflow: visible;
  }
}
/**
 * Swiper 14.1.0
 * Most modern mobile touch slider and framework with hardware accelerated transitions
 * https://swiperjs.com
 *
 * Copyright 2014-2026 Vladimir Kharlampidi
 *
 * Released under the MIT License
 *
 * Released on: August 6, 2026
 */
:root {
  --swiper-theme-color: #007aff;
  /*
  --swiper-preloader-color: var(--swiper-theme-color);
  --swiper-wrapper-transition-timing-function: initial;
  */
}

:host {
  position: relative;
  display: block;
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
}

.swiper {
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  list-style: none;
  padding: 0;
  /* Fix of Webkit flickering */
  z-index: 1;
  display: block;
}

.swiper-vertical > .swiper-wrapper {
  flex-direction: column;
}

.swiper-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  transition-property: transform;
  transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);
  box-sizing: content-box;
}

.swiper-android .swiper-slide,
.swiper-ios .swiper-slide,
.swiper-wrapper {
  transform: translate3d(0px, 0, 0);
}

.swiper-horizontal {
  touch-action: pan-y;
}

.swiper-vertical {
  touch-action: pan-x;
}

.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
  transition-property: transform;
  display: block;
}

.swiper-slide-invisible-blank {
  visibility: hidden;
}

/* Auto Height */
.swiper-autoheight,
.swiper-autoheight .swiper-slide {
  height: auto;
}

.swiper-autoheight .swiper-wrapper {
  align-items: flex-start;
  transition-property: transform, height;
}

.swiper-backface-hidden .swiper-slide {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* 3D Effects */
.swiper-3d.swiper-css-mode .swiper-wrapper {
  perspective: 1200px;
}

.swiper-3d .swiper-wrapper {
  transform-style: preserve-3d;
}

.swiper-3d {
  perspective: 1200px;
}
.swiper-3d .swiper-slide,
.swiper-3d .swiper-cube-shadow {
  transform-style: preserve-3d;
}

/* CSS Mode */
.swiper-css-mode > .swiper-wrapper {
  overflow: auto;
  scrollbar-width: none; /* For Firefox */
  -ms-overflow-style: none; /* For Internet Explorer and Edge */
}
.swiper-css-mode > .swiper-wrapper::-webkit-scrollbar {
  display: none;
}
.swiper-css-mode > .swiper-wrapper > .swiper-slide {
  scroll-snap-align: start start;
}
.swiper-css-mode.swiper-horizontal > .swiper-wrapper {
  scroll-snap-type: x mandatory;
}
.swiper-css-mode.swiper-horizontal > .swiper-wrapper > .swiper-slide:first-child {
  margin-inline-start: var(--swiper-slides-offset-before);
  scroll-margin-inline-start: var(--swiper-slides-offset-before);
}
.swiper-css-mode.swiper-horizontal > .swiper-wrapper > .swiper-slide:last-child {
  margin-inline-end: var(--swiper-slides-offset-after);
}
.swiper-css-mode.swiper-vertical > .swiper-wrapper {
  scroll-snap-type: y mandatory;
}
.swiper-css-mode.swiper-vertical > .swiper-wrapper > .swiper-slide:first-child {
  margin-block-start: var(--swiper-slides-offset-before);
  scroll-margin-block-start: var(--swiper-slides-offset-before);
}
.swiper-css-mode.swiper-vertical > .swiper-wrapper > .swiper-slide:last-child {
  margin-block-end: var(--swiper-slides-offset-after);
}
.swiper-css-mode.swiper-free-mode > .swiper-wrapper {
  scroll-snap-type: none;
}
.swiper-css-mode.swiper-free-mode > .swiper-wrapper > .swiper-slide {
  scroll-snap-align: none;
}
.swiper-css-mode.swiper-centered > .swiper-wrapper::before {
  content: "";
  flex-shrink: 0;
  order: 9999;
}
.swiper-css-mode.swiper-centered > .swiper-wrapper > .swiper-slide {
  scroll-snap-align: center center;
  scroll-snap-stop: always;
}
.swiper-css-mode.swiper-centered.swiper-horizontal > .swiper-wrapper > .swiper-slide:first-child {
  margin-inline-start: var(--swiper-centered-offset-before);
}
.swiper-css-mode.swiper-centered.swiper-horizontal > .swiper-wrapper::before {
  height: 100%;
  min-height: 1px;
  width: var(--swiper-centered-offset-after);
}
.swiper-css-mode.swiper-centered.swiper-vertical > .swiper-wrapper > .swiper-slide:first-child {
  margin-block-start: var(--swiper-centered-offset-before);
}
.swiper-css-mode.swiper-centered.swiper-vertical > .swiper-wrapper::before {
  width: 100%;
  min-width: 1px;
  height: var(--swiper-centered-offset-after);
}

/* Slide styles start */
/* 3D Shadows */
.swiper-3d .swiper-slide-shadow,
.swiper-3d .swiper-slide-shadow-left,
.swiper-3d .swiper-slide-shadow-right,
.swiper-3d .swiper-slide-shadow-top,
.swiper-3d .swiper-slide-shadow-bottom,
.swiper-3d .swiper-slide-shadow,
.swiper-3d .swiper-slide-shadow-left,
.swiper-3d .swiper-slide-shadow-right,
.swiper-3d .swiper-slide-shadow-top,
.swiper-3d .swiper-slide-shadow-bottom {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}
.swiper-3d .swiper-slide-shadow {
  background: rgba(0, 0, 0, 0.15);
}
.swiper-3d .swiper-slide-shadow-left {
  background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}
.swiper-3d .swiper-slide-shadow-right {
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}
.swiper-3d .swiper-slide-shadow-top {
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}
.swiper-3d .swiper-slide-shadow-bottom {
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}

.swiper-lazy-preloader {
  width: 42px;
  height: 42px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -21px;
  margin-top: -21px;
  z-index: 10;
  transform-origin: 50%;
  box-sizing: border-box;
  border: 4px solid var(--swiper-preloader-color, var(--swiper-theme-color));
  border-radius: 50%;
  border-top-color: transparent;
}

.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,
.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader {
  animation: swiper-preloader-spin 1s infinite linear;
}

.swiper-lazy-preloader-white {
  --swiper-preloader-color: #fff;
}

.swiper-lazy-preloader-black {
  --swiper-preloader-color: #000;
}

@keyframes swiper-preloader-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Slide styles end */
/* Viewport is .swiper, not a flex rail. .glider { display:flex } must not win. */
.swiper.glider {
  display: block;
  overflow: hidden;
}

.swiper-wrapper {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  touch-action: pan-y pinch-zoom;
  transform: translateZ(0);
  will-change: transform;
  height: auto;
}

/* Core swiper.css sets width/height 100% and transition-property: transform.
   slidesPerView:auto needs CSS widths; transform transition = loop fly. */
.swiper-slide {
  width: auto;
  height: auto;
  transition-property: none;
}

.wrap-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0 8px;
}

.wrap-head h2, .liquid-glass h2 {
  margin: 0;
  font-size: clamp(1.05rem, 3.6vw, 1.4rem);
  letter-spacing: 0.2px;
  font-weight: 900;
}

.liquid-glass h2 {
  padding-left: 0;
}

.wrap-head .cta-link {
  text-decoration: none;
  font-weight: 800;
  color: var(--brand);
  background: rgba(43, 124, 255, 0.08);
  border: 1px solid rgba(43, 124, 255, 0.25);
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
}
@media (max-width: 360px) {
  .wrap-head .cta-link {
    font-size: 0.88rem;
  }
}

:root {
  --brand:#2b7cff;
  --brand2:#7b61ff;
  --ink:#111321;
  --muted:#606a7a;
  --glass: rgba(255,255,255,.55);
  --stroke: rgba(255,255,255,.85);
  --shadow: 0 16px 38px rgba(20,32,56,.16);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --pad: 16px;
}

.badge {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #fff;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  font-weight: 900;
  letter-spacing: 0.2px;
  box-shadow: var(--shadow);
}

.title {
  font-weight: 900;
  letter-spacing: 0.2px;
}

.sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.page {
  max-width: 1280px;
  margin-inline: auto;
}

/* ===== Slider Shell ===== */
.slider-wrap {
  max-width: 1200px;
  position: relative;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 12px;
  overflow: hidden;
  margin: 26px auto 0;
  width: calc(100% - 26px);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
[data-theme=dark] .slider-wrap {
  background: var(--dark-glass-bg);
  border-color: var(--dark-border);
  box-shadow: var(--dark-shadow-lg);
}

/* games-page «Лучшие игры за месяц»: стили секции — в .liquid-glass.slider--banner */
.slider-wrap.slider--banner {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  width: auto;
}
@media (max-width: 767px) {
  .slider-wrap.slider--banner {
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: clip;
  }
}
@media (min-width: 768px) {
  .slider-wrap.slider--banner {
    overflow: visible;
  }
}

.glider:not(.swiper) {
  display: flex;
  overflow: scroll;
}
@media (min-width: 1024px) {
  .glider:not(.swiper) {
    overflow: unset;
  }
}

.swiper.glider,
.embla__viewport {
  -webkit-overflow-scrolling: auto;
}
@media (min-width: 769px) {
  .swiper.glider,
  .embla__viewport {
    overflow: hidden;
  }
}

.swiper-wrapper,
.embla__container {
  display: flex;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  touch-action: pan-y pinch-zoom;
  transform: translateZ(0);
  will-change: transform;
  align-items: stretch;
}

.swiper-slide,
.embla__slide {
  min-width: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout style;
}

/* Glider container */
.glider-contain {
  position: relative;
  left: -12px;
  width: calc(100% + 24px);
}
@media (min-width: 700px) {
  .glider-contain {
    left: 0;
  }
}

.glider {
  padding-bottom: 16px;
}

.glider-track,
.swiper-wrapper,
.embla__container {
  align-items: stretch;
}

/* ===== Slide Card ===== */
.slide-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: 1px 5px 8px rgba(20, 32, 56, 0.1411764706);
  background: #fff;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform;
  transform: translateZ(0);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease, background-color 0.3s ease;
  margin: 0 10px;
  justify-content: flex-start !important;
}
.slide-card.swiper-slide, .slide-card.embla__slide {
  min-width: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout style;
  margin-left: 0;
  margin-right: 0;
  /* Transform transition = loop «полёты». */
  transition: box-shadow 0.2s ease, background 0.3s ease, background-color 0.3s ease;
}
.slide-card:not(.slide-card--hero) {
  width: 315px !important;
  min-width: 315px !important;
}
[data-theme=dark] .slide-card {
  background-color: var(--dark-bg-surface) !important;
  background-blend-mode: soft-light;
  box-shadow: 1px 5px 8px rgba(0, 0, 0, 0.4);
}
@media (min-width: 700px) {
  .slide-card:not(.swiper-slide):not(.embla__slide) {
    margin: 0 6px;
  }
}
.slide-card .mini-slider-views {
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.slide-card .mini-slider-views svg {
  width: 16px;
  height: 16px;
  transition: filter 0.3s ease;
}
[data-theme=dark] .slide-card .mini-slider-views svg {
  filter: brightness(0) invert(1);
}

.slide-card:not(.swiper-slide):not(.embla__slide):active {
  transform: scale(0.985);
}

.cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover img {
  width: 148px;
  height: 148px;
  object-fit: cover;
  display: block;
  z-index: 3;
  border-radius: var(--radius-xl);
}

.ribbon {
  background: var(--glass);
  border: 1px solid rgba(123, 97, 255, 0.5098039216);
  border-radius: 999px;
  box-shadow: 0px 1px 2px rgba(43, 124, 255, 0.368627451);
  color: var(--muted);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  gap: 6px;
  left: 12px;
  padding: 6px 9px;
  position: absolute;
  top: 12px;
  z-index: 2;
}

.meta {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.631372549));
  height: 96px;
  position: relative;
  flex-wrap: wrap;
}

.game {
  flex: 100%;
  width: 100%;
}

.game h3 {
  margin: 0 0 4px;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 13px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8rem;
  background: rgba(43, 124, 255, 0.1);
  border: 1px solid rgba(43, 124, 255, 0.25);
  color: #0b3a7a;
  transition: color 0.3s ease;
}
[data-theme=dark] .tag {
  color: rgba(255, 255, 255, 0.85);
}

.rate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
  color: #0b6b2b;
  background: rgba(18, 183, 106, 0.1);
  border: 1px solid rgba(18, 183, 106, 0.22);
  padding: 6px 8px;
  border-radius: 10px;
}

.cta {
  text-decoration: none;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 12px 24px rgba(43, 124, 255, 0.35);
  transition: transform 0.18s ease;
  position: absolute;
  top: 42px;
  right: 8px;
  z-index: 4;
}
.cta:before {
  content: "";
  position: absolute;
  z-index: 4;
  display: block;
  height: 300px;
  width: 315px;
  top: -220px;
  left: -210px;
}

.cta:active {
  transform: translateY(1px) scale(0.98);
}

/* ===== Arrows & Dots (liquid glass) ===== */
.glider-prev, .glider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--stroke) !important;
  background: var(--glass) !important;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease, border-color 0.2s ease;
}
[data-theme=dark] .glider-prev, [data-theme=dark] .glider-next {
  background: var(--dark-glass-bg) !important;
  border-color: var(--dark-border) !important;
}

.glider-prev {
  left: -4px;
}

.glider-next {
  right: -4px;
}

.glider-prev:hover, .glider-next:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 16px 36px rgba(20, 32, 56, 0.22);
  background: rgba(255, 255, 255, 0.7);
}
[data-theme=dark] .glider-prev:hover, [data-theme=dark] .glider-next:hover {
  background: var(--dark-glass-bg-85) !important;
  box-shadow: var(--dark-shadow-lg);
}

.glider-prev:active, .glider-next:active {
  transform: translateY(-50%) scale(0.97);
}

.glider-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 8px 0 2px;
}

.glider-dot {
  width: 22px;
  height: 8px;
  border-radius: 999px;
  background: rgba(17, 19, 33, 0.15);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.glider-dot:hover {
  transform: translateY(-1px);
}

.glider-dot.active {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}

/* ===== Responsive: show more slides on wide screens ===== */
.glider {
  --peek: 18px ;
}

@media (min-width: 480px) {
  .glider {
    --peek: 24px ;
  }
}
@media (min-width: 640px) {
  .glider {
    --peek: 36px ;
  }
}
@media (min-width: 880px) {
  .glider {
    --peek: 60px ;
  }
}
@media (min-width: 1200px) {
  .glider {
    --peek: 80px ;
  }
}
/* ===== Additional mini slider (icons/cards) ===== */
.slider-wrap.mini {
  --mini-gutter: 12px;
  --mini-shadow-gutter: 16px;
  --mini-shadow-block-start: 13px;
  --mini-shadow-block-end: 36px;
  box-sizing: border-box;
  padding-inline: 0;
  overflow: visible;
}
@media (max-width: 767px) {
  .slider-wrap.mini {
    width: auto;
    max-width: 100%;
    margin-inline: 0;
  }
}
.slider-wrap.mini .wrap-head {
  padding-inline: var(--mini-gutter);
}
@media (min-width: 768px) {
  .slider-wrap.mini .wrap-head {
    padding-inline: var(--mini-shadow-gutter);
  }
}
.slider-wrap.mini .glider-contain {
  left: 0;
  width: 100%;
  max-width: none;
  overflow: visible;
  padding-inline: 0;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .slider-wrap.mini .glider-contain {
    padding-inline: var(--mini-shadow-gutter);
  }
}
.slider-wrap.mini #miniGlider.swiper {
  -webkit-overflow-scrolling: auto;
  display: block;
  overflow: hidden;
  box-sizing: border-box;
  padding-block: var(--mini-shadow-block-start) var(--mini-shadow-block-end);
  padding-inline: 0;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  transform: translateZ(0);
  isolation: isolate;
  container-type: inline-size;
  container-name: mini-glider;
}
@media (max-width: 767px) {
  .slider-wrap.mini #miniGlider.swiper {
    padding-inline: 0;
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }
}
@media (min-width: 768px) {
  .slider-wrap.mini #miniGlider.swiper {
    padding-inline: 0 var(--mini-shadow-gutter);
  }
}
.slider-wrap.mini #miniGlider:not(.swiper) {
  container-type: normal;
  isolation: auto;
  transform: none;
  padding-inline: 0;
}
@media (max-width: 767px) {
  .slider-wrap.mini #miniGlider:not(.swiper) {
    margin-left: var(--mini-gutter);
    width: calc(100% - var(--mini-gutter));
  }
}
.slider-wrap.mini .glider {
  padding-bottom: 0;
}
.slider-wrap.mini .glider-prev {
  top: calc(var(--mini-shadow-block-start) + 35px);
  left: var(--mini-gutter);
  right: auto;
  transform: translateY(-50%);
  z-index: 5;
}
@media (min-width: 768px) {
  .slider-wrap.mini .glider-prev {
    left: var(--mini-shadow-gutter);
  }
}
.slider-wrap.mini .glider-next {
  top: calc(var(--mini-shadow-block-start) + 35px);
  right: var(--mini-gutter);
  left: auto;
  transform: translateY(-50%);
  z-index: 5;
}
@media (min-width: 768px) {
  .slider-wrap.mini .glider-next {
    right: var(--mini-shadow-gutter);
  }
}
.slider-wrap.mini .glider-prev:hover,
.slider-wrap.mini .glider-next:hover {
  transform: translateY(-50%) scale(1.05);
}
.slider-wrap.mini .glider-prev:active,
.slider-wrap.mini .glider-next:active {
  transform: translateY(-50%) scale(0.97);
}
@media (max-width: 768px) {
  .slider-wrap.mini .glider-prev,
  .slider-wrap.mini .glider-next {
    display: none;
  }
}
.slider-wrap.mini .line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px !important;
  min-width: 0;
  width: 100%;
  flex-wrap: nowrap;
}
@media (max-width: 360px) {
  .slider-wrap.mini .line {
    gap: 6px;
  }
}
.slider-wrap.mini .line .tag {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: inline-block;
  text-align: center;
  font-size: 0.65rem;
  padding: 8px 7px;
}
.slider-wrap.mini .glider-track, .slider-wrap.mini .swiper-wrapper, .slider-wrap.mini .embla__container {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
  gap: 0;
}
.slider-wrap.mini #miniGlider.swiper .swiper-wrapper {
  cursor: grab;
}
.slider-wrap.mini #miniGlider.swiper .swiper-wrapper:active {
  cursor: grabbing;
}
.slider-wrap.mini .glider-track > .slide-card, .slider-wrap.mini .swiper-wrapper > .slide-card, .slider-wrap.mini .embla__container > .slide-card, .slider-wrap.mini .slide-card {
  box-sizing: border-box;
  display: flex !important;
  overflow: hidden;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 10px;
  align-items: center;
  justify-content: flex-start !important;
  padding: 8px;
  min-height: 0;
  height: auto !important;
  max-height: none !important;
  width: calc(100cqw - 48px) !important;
  min-width: calc(100cqw - 48px) !important;
  max-width: calc(100cqw - 48px) !important;
  margin-block: 0 !important;
  margin-inline-start: 0 !important;
  flex-shrink: 0;
  contain: none !important;
  background-size: auto;
  background-image: none;
}
.slider-wrap.mini .glider-track > .slide-card.swiper-slide, .slider-wrap.mini .glider-track > .slide-card.embla__slide, .slider-wrap.mini .swiper-wrapper > .slide-card.swiper-slide, .slider-wrap.mini .swiper-wrapper > .slide-card.embla__slide, .slider-wrap.mini .embla__container > .slide-card.swiper-slide, .slider-wrap.mini .embla__container > .slide-card.embla__slide, .slider-wrap.mini .slide-card.swiper-slide, .slider-wrap.mini .slide-card.embla__slide {
  contain: none !important;
  height: auto !important;
  max-height: none !important;
  align-self: auto;
}
@media (min-width: 360px) {
  .slider-wrap.mini .glider-track > .slide-card, .slider-wrap.mini .swiper-wrapper > .slide-card, .slider-wrap.mini .embla__container > .slide-card, .slider-wrap.mini .slide-card {
    width: calc(100cqw - 60px) !important;
    min-width: calc(100cqw - 60px) !important;
    max-width: calc(100cqw - 60px) !important;
  }
}
@media (min-width: 800px) {
  .slider-wrap.mini .glider-track > .slide-card, .slider-wrap.mini .swiper-wrapper > .slide-card, .slider-wrap.mini .embla__container > .slide-card, .slider-wrap.mini .slide-card {
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
  }
}
.slider-wrap.mini .cover {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  width: 54px !important;
  height: 54px !important;
  min-width: 54px;
  max-width: 54px;
  flex: 0 0 54px;
  align-self: center;
}
.slider-wrap.mini .cover img {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  border-radius: 12px;
}
.slider-wrap.mini .meta {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  padding: 0 !important;
  height: auto !important;
  min-height: 0;
  background: none !important;
  min-width: 0;
  flex: 1 1 0;
  max-width: none;
  width: auto !important;
  position: static;
}
.slider-wrap.mini .game {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: 100%;
}
.slider-wrap.mini .game h3 {
  font-size: 1rem;
  line-height: 1.25;
  margin: 0 0 2px;
  max-height: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slider-wrap.mini .mini-slider-views {
  flex: 0 0 auto;
  white-space: nowrap;
}
@media (max-width: 360px) {
  .slider-wrap.mini .cta {
    font-size: 0.57rem;
    padding: 10px 7px;
  }
}
.slider-wrap.mini .cta {
  position: initial !important;
  top: auto;
  right: auto;
  flex: 0 0 auto;
  flex-shrink: 0;
  margin-left: auto;
}
.slider-wrap.mini .cta::before {
  content: none;
}

/* skeleton pulse for placeholders */
.ph {
  background-image: linear-gradient(135deg, #dfe8ff, #fff2f2);
  background-size: 200% 200%;
  animation: ph 6s ease infinite;
}

@keyframes ph {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}
/* ===== Hero slider (id=heroGlider) — современная карточка ===== */
.slider-wrap:has(#heroGlider) {
  --hero-shadow-gutter: 14px;
  --hero-inline-gutter: 12px;
  --hero-gap: 8px;
  --hero-slides: 1;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
  width: auto;
  /* Horizontal inset via padding on the clip box — margin here shrinks
     overflow:hidden and cuts card shadows / rounded shot. */
  margin: 16px 0 0;
}
@media (min-width: 1280px) {
  .slider-wrap:has(#heroGlider) {
    margin: 16px auto 0;
  }
}
@media (min-width: 768px) {
  .slider-wrap:has(#heroGlider) {
    --hero-slides: 2;
  }
}
@media (min-width: 1024px) {
  .slider-wrap:has(#heroGlider) {
    --hero-slides: 3;
  }
}
@media (max-width: 767px) {
  .slider-wrap:has(#heroGlider) {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding-inline: 0;
    /* Clip на вьюпорт. Gutter — slidesOffsetBefore у #heroGlider, не inset клипа. */
    overflow-x: clip;
  }
}
.slider-wrap:has(#heroGlider) .wrap-head {
  padding: 0 var(--hero-inline-gutter) 12px;
}
@media (min-width: 768px) {
  .slider-wrap:has(#heroGlider) .wrap-head {
    padding-inline: var(--hero-shadow-gutter);
  }
}
.slider-wrap:has(#heroGlider) .glider-contain {
  left: 0;
  width: 100%;
  overflow: visible;
  box-sizing: border-box;
  margin-inline: 0;
  padding-inline: 0;
}
@media (max-width: 767px) {
  .slider-wrap:has(#heroGlider) .glider-contain {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }
}
.slider-wrap:has(#heroGlider) .glider-contain {
  /* Shadow gutter outside the clip — not viewport padding (that peeks the next slide). */
}
@media (min-width: 768px) {
  .slider-wrap:has(#heroGlider) .glider-contain {
    padding-inline: var(--hero-shadow-gutter);
  }
}
.slider-wrap:has(#heroGlider) .glider,
.slider-wrap:has(#heroGlider) #heroGlider {
  display: block;
  width: 100%;
  padding: 22px 0 36px;
  padding-inline: var(--hero-inline-gutter);
  overflow: hidden;
  scrollbar-width: none;
  box-sizing: border-box;
  -webkit-overflow-scrolling: auto;
  /* Containing block so translateZ slides cannot paint into the contain gutter. */
  transform: translateZ(0);
  isolation: isolate;
  container-type: inline-size;
  container-name: hero-glider;
  /* Клип на всю ширину вьюпорта. Gutter — slidesOffsetBefore (не margin-left:
     тот режет предыдущий кадр на x=12). Padding внутри clip тоже рисует peek. */
}
@media (max-width: 767px) {
  .slider-wrap:has(#heroGlider) .glider,
  .slider-wrap:has(#heroGlider) #heroGlider {
    padding-inline: 0;
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }
}
@media (min-width: 768px) {
  .slider-wrap:has(#heroGlider) .glider,
  .slider-wrap:has(#heroGlider) #heroGlider {
    padding-inline: 0;
  }
}
.slider-wrap:has(#heroGlider) .glider-track,
.slider-wrap:has(#heroGlider) .swiper-wrapper,
.slider-wrap:has(#heroGlider) .embla__container {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  align-items: stretch;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  touch-action: pan-y pinch-zoom;
  transform: translateZ(0);
  will-change: transform;
}
.slider-wrap:has(#heroGlider).hero--grid .glider,
.slider-wrap:has(#heroGlider).hero--grid #heroGlider {
  overflow: visible;
}
.slider-wrap:has(#heroGlider).hero--grid .glider-track,
.slider-wrap:has(#heroGlider).hero--grid .swiper-wrapper,
.slider-wrap:has(#heroGlider).hero--grid .embla__container {
  flex-wrap: wrap;
  justify-content: center;
  width: 100% !important;
}
.slider-wrap:has(#heroGlider).hero--grid .glider-prev,
.slider-wrap:has(#heroGlider).hero--grid .glider-next {
  display: none;
}
.slider-wrap:has(#heroGlider) .glider-prev,
.slider-wrap:has(#heroGlider) .glider-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none !important;
  background: #fff !important;
  box-shadow: 0 4px 18px rgba(20, 32, 56, 0.14);
  z-index: 5;
}
[data-theme=dark] .slider-wrap:has(#heroGlider) .glider-prev,
[data-theme=dark] .slider-wrap:has(#heroGlider) .glider-next {
  background: var(--bg-surface-elevated, #252836) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}
.slider-wrap:has(#heroGlider) .glider-prev {
  left: 8px;
}
.slider-wrap:has(#heroGlider) .glider-next {
  right: 8px;
}
.slider-wrap:has(#heroGlider) .glider-prev:hover,
.slider-wrap:has(#heroGlider) .glider-next:hover {
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(20, 32, 56, 0.18);
}
[data-theme=dark] .slider-wrap:has(#heroGlider) .glider-prev:hover,
[data-theme=dark] .slider-wrap:has(#heroGlider) .glider-next:hover {
  background: var(--bg-surface-elevated, #252836) !important;
}

.slide-card.slide-card--hero {
  --hero-slide-size: 82cqw;
  box-sizing: border-box;
  flex: 0 0 var(--hero-slide-size);
  width: var(--hero-slide-size);
  min-width: var(--hero-slide-size);
  max-width: none;
  margin: 0;
  padding: 0;
  height: auto;
  overflow: visible;
  background: transparent !important;
  background-image: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  justify-content: flex-start !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout style;
  transition: none;
  z-index: 0;
}
@media (min-width: 768px) {
  .slide-card.slide-card--hero {
    /* 100cqw = #heroGlider content box, not the flex track and not 100vw. */
    --hero-slide-size: calc((100cqw - var(--hero-gap) * (var(--hero-slides) - 1)) / var(--hero-slides));
    --hero-slide-size: round(down, calc((100cqw - var(--hero-gap) * (var(--hero-slides) - 1)) / var(--hero-slides)), 1px);
    flex: 0 0 var(--hero-slide-size);
    width: var(--hero-slide-size);
    min-width: 0;
    max-width: var(--hero-slide-size);
    padding: 0;
  }
}
[data-theme=dark] .slide-card.slide-card--hero {
  background: transparent !important;
  background-blend-mode: normal;
  box-shadow: none;
}
.slide-card.slide-card--hero:hover {
  transform: translateZ(0);
  box-shadow: none;
}
.slide-card.slide-card--hero:active {
  transform: translateZ(0);
}
.slide-card.slide-card--hero .slide-card__link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding-bottom: 10px;
  color: inherit;
  text-decoration: none;
  overflow: visible;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.slide-card.slide-card--hero .slide-card__link:hover {
  transform: none;
  box-shadow: none;
}
.slide-card.slide-card--hero .slide-card__link:active {
  transform: none;
}
.slide-card.slide-card--hero .slide-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.slide-card.slide-card--hero .slide-card__icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(20, 32, 56, 0.14);
}
@media (max-width: 767px) {
  .slide-card.slide-card--hero .slide-card__icon {
    box-shadow: 0 4px 12px rgba(20, 32, 56, 0.12);
  }
}
@media (min-width: 768px) {
  .slide-card.slide-card--hero .slide-card__icon {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }
}
.slide-card.slide-card--hero .slide-card__titles {
  min-width: 0;
  flex: 1 1 auto;
}
.slide-card.slide-card--hero h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink, #121317);
}
[data-theme=dark] .slide-card.slide-card--hero h3 {
  color: var(--text-primary, #e9eefb);
}
.slide-card.slide-card--hero .slide-card__cats {
  margin: 4px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slide-card.slide-card--hero .slide-card__facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 6px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
}
.slide-card.slide-card--hero .slide-card__rating {
  color: var(--muted);
}
.slide-card.slide-card--hero .slide-card__hit {
  color: #6b5cff;
}
.slide-card.slide-card--hero .slide-card__shot {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding-bottom: 0;
  background: var(--hero-shot-end, transparent);
  box-shadow: 0 8px 24px rgba(20, 32, 56, 0.1);
}
@media (max-width: 767px) {
  .slide-card.slide-card--hero .slide-card__shot {
    box-shadow: 0 4px 12px rgba(20, 32, 56, 0.1);
  }
}
[data-theme=dark] .slide-card.slide-card--hero .slide-card__shot {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
@media (max-width: 767px) {
  [data-theme=dark] .slide-card.slide-card--hero .slide-card__shot {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
}
.slide-card.slide-card--hero .slide-card__shot .slide-card__shot-frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16/9;
  background: #111;
  box-shadow: none;
}
.slide-card.slide-card--hero .slide-card__shot .slide-card__shot-frame img,
.slide-card.slide-card--hero .slide-card__shot .slide-card__shot-ph {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-card.slide-card--hero .slide-card__shot .slide-card__shot-ph {
  background-size: cover;
  background-position: center;
}
.slide-card.slide-card--hero .slide-card__shot-veil {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(52% + 14px);
  z-index: 1;
  pointer-events: none;
  border-radius: 0 0 18px 18px;
}
.slide-card.slide-card--hero .slide-card__shot-veil::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  background: var(--hero-shot-end, transparent);
  border-radius: 0 0 18px 18px;
  pointer-events: none;
}
.slide-card.slide-card--hero .slide-card__shot-overlay {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 6px 8px;
  color: #fff;
}
.slide-card.slide-card--hero .slide-card__shot-overlay:not(:has(*)) {
  display: none;
}
.slide-card.slide-card--hero .slide-card__shot-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.slide-card.slide-card--hero .slide-card__shot-text {
  flex: 1 1 100%;
  margin: 0;
  padding: 0 8px 4px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.slide-card.slide-card--hero .slide-card__shot-text:empty {
  display: none;
}

:root {
  --bg-color:#f5f7fc;
  --card-bg:#ffffff;
  --card-border:#e3e7ef;
  --accent:#ff8a00;
  --accent-2:#6f4cff;
  --text-primary:#1c1e23;
  --text-secondary:#5f6779;
  --radius-lg:1.25rem;
  --radius-md:.75rem;
  --shadow-lg:0 18px 38px -12px rgba(0,0,0,.18);
  --shadow-sm:0 6px 18px -6px rgba(0,0,0,.08);
  --transition:.45s cubic-bezier(.17,.67,.23,1.13);
}

[data-theme=dark] {
  --bg-color:#0f1222;
  --card-bg:#1a1d2e;
  --card-border:rgba(255, 255, 255, 0.1);
  --accent:#ff8a00;
  --accent-2:#6f4cff;
  --text-primary:#e9eefb;
  --text-secondary:#9aa7b9;
  --shadow-lg:0 18px 38px -12px rgba(0,0,0,.5);
  --shadow-sm:0 6px 18px -6px rgba(0,0,0,.3);
}

/* ---------- KEYFRAMES ---------- */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 138, 0, 0.35);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(255, 138, 0, 0);
  }
}
.wide-cards {
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
  flex: 100%;
  padding: 0 12px;
  margin: 0;
}
@media (min-width: 480px) {
  .wide-cards {
    padding: 0;
    margin: 0 auto;
  }
}
@media (min-width: 1024px) {
  .wide-cards {
    align-items: baseline;
    margin: 0 64px;
  }
}
@media (min-width: 1280px) {
  .wide-cards {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 64px;
  }
}
.wide-cards .wide-cards-cont, .wide-cards #dle-content, .wide-cards > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
}
@media (min-width: 480px) {
  .wide-cards .wide-cards-cont, .wide-cards #dle-content, .wide-cards > div {
    margin: 0 12px;
  }
}
@media (min-width: 600px) {
  .wide-cards .wide-cards-cont, .wide-cards #dle-content, .wide-cards > div {
    margin: 0 24px;
  }
}
@media (min-width: 700px) {
  .wide-cards .wide-cards-cont, .wide-cards #dle-content, .wide-cards > div {
    justify-content: space-between;
    gap: 20px;
  }
}
@media (min-width: 1024px) {
  .wide-cards .wide-cards-cont, .wide-cards #dle-content, .wide-cards > div {
    margin: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 24px 16px;
  }
}
.wide-cards .wide-cards-cont .taki-block, .wide-cards #dle-content .taki-block, .wide-cards > div .taki-block {
  flex: 100%;
  padding: 0 24px;
  width: 100%;
  position: relative;
}
@media (min-width: 600px) {
  .wide-cards .wide-cards-cont .taki-block, .wide-cards #dle-content .taki-block, .wide-cards > div .taki-block {
    width: 100%;
    margin: 0;
  }
}
@media (min-width: 1024px) {
  .wide-cards .wide-cards-cont .taki-block, .wide-cards #dle-content .taki-block, .wide-cards > div .taki-block {
    width: 100%;
    padding: 0;
    max-height: 111px;
  }
}
.wide-cards .wide-cards-cont .taki-block .adsbygoogle, .wide-cards #dle-content .taki-block .adsbygoogle, .wide-cards > div .taki-block .adsbygoogle {
  margin-bottom: 8px !important;
}
@media (min-width: 800px) {
  .wide-cards .wide-cards-cont .taki-block .adsbygoogle, .wide-cards #dle-content .taki-block .adsbygoogle, .wide-cards > div .taki-block .adsbygoogle {
    margin-bottom: 16px !important;
  }
}
@media (min-width: 1024px) {
  .wide-cards .wide-cards-cont .taki-block .adsbygoogle, .wide-cards #dle-content .taki-block .adsbygoogle, .wide-cards > div .taki-block .adsbygoogle {
    margin-bottom: inherit !important;
  }
}
.wide-cards .wide-cards-cont .taki-before:before, .wide-cards #dle-content .taki-before:before, .wide-cards > div .taki-before:before {
  align-items: center;
  animation-duration: 1s;
  animation-fill-mode: backwards;
  animation-iteration-count: infinite;
  animation-name: sceleton;
  background: #eee;
  color: #b9b9b9;
  content: "Загрузка";
  display: flex;
  height: 100%;
  justify-content: center;
  position: absolute;
  text-align: center;
  width: 100%;
  border: 1px solid #efefef;
}
@keyframes sceleton {
  0% {
    background-color: #eee;
  }
  25% {
    background: #efefef;
  }
  50% {
    background: #f3f3f3;
  }
  75% {
    background: #fafafa;
  }
  100% {
    background: #fff;
  }
}
.wide-cards .wide-cards-cont article, .wide-cards #dle-content article, .wide-cards > div article {
  flex: 100%;
  width: 100%;
  max-width: 560px;
}
@media (min-width: 700px) {
  .wide-cards .wide-cards-cont article, .wide-cards #dle-content article, .wide-cards > div article {
    max-width: calc(50% - 10px);
  }
}
@media (min-width: 1280px) {
  .wide-cards .wide-cards-cont article, .wide-cards #dle-content article, .wide-cards > div article {
    max-width: calc(33% - 16px);
    width: 100%;
  }
}
.wide-cards .wide-cards-cont, .wide-cards #dle-content, .wide-cards > div {
  /* ---------- CARD ---------- */
}
.wide-cards .wide-cards-cont .wide-card, .wide-cards #dle-content .wide-card, .wide-cards > div .wide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  will-change: transform;
  animation: fadeSlide 0.8s both;
  box-shadow: var(--shadow-sm);
  line-height: 1.16rem;
}
.wide-cards .wide-cards-cont .wide-card:hover, .wide-cards #dle-content .wide-card:hover, .wide-cards > div .wide-card:hover {
  transform: translateY(-10px) rotateX(1deg) rotateZ(0.2deg);
  box-shadow: var(--shadow-lg);
}
.wide-cards .wide-cards-cont, .wide-cards #dle-content, .wide-cards > div {
  /* image + right column */
}
.wide-cards .wide-cards-cont .wide-image-link, .wide-cards #dle-content .wide-image-link, .wide-cards > div .wide-image-link {
  display: flex;
  gap: 1.25rem;
  padding: 1.6rem 1.6rem 1.2rem;
  align-items: flex-start;
}
.wide-cards .wide-cards-cont .wide-image-link:before, .wide-cards #dle-content .wide-image-link:before, .wide-cards > div .wide-image-link:before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.wide-cards .wide-cards-cont .wide-image-link img, .wide-cards #dle-content .wide-image-link img, .wide-cards > div .wide-image-link img {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  object-fit: cover;
  transition: transform var(--transition);
  box-shadow: 0 8px 16px -6px rgba(0, 0, 0, 0.15);
}
.wide-cards .wide-cards-cont .wide-card:hover .wide-image-link img, .wide-cards #dle-content .wide-card:hover .wide-image-link img, .wide-cards > div .wide-card:hover .wide-image-link img {
  transform: scale(1.08) rotateZ(-2deg);
}
.wide-cards .wide-cards-cont .wide-card-right, .wide-cards #dle-content .wide-card-right, .wide-cards > div .wide-card-right {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1 1 auto;
  max-width: calc(100% - 104px);
  overflow: hidden;
}
.wide-cards .wide-cards-cont .card-title, .wide-cards #dle-content .card-title, .wide-cards > div .card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--blue-light);
}
.wide-cards .wide-cards-cont .card-category, .wide-cards #dle-content .card-category, .wide-cards > div .card-category {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.wide-cards .wide-cards-cont .card-version, .wide-cards #dle-content .card-version, .wide-cards > div .card-version {
  width: max-content;
  font-size: 0.75rem;
  color: #55606f;
  background: #f3f5f9;
  padding: 0.28rem 0.65rem;
  border-radius: 9999px;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  white-space: nowrap;
  box-sizing: border-box;
  transition: color 0.3s ease, background 0.3s ease;
}
.wide-cards .wide-cards-cont .card-version:before, .wide-cards #dle-content .card-version:before, .wide-cards > div .card-version:before {
  border-radius: 50%;
  content: "";
  flex-shrink: 0;
  height: 8px;
  width: 8px;
  background-color: var(--accent-2);
}
[data-theme=dark] .wide-cards .wide-cards-cont .card-version, [data-theme=dark] .wide-cards #dle-content .card-version, [data-theme=dark] .wide-cards > div .card-version {
  color: #9aa7b9;
  background: rgba(255, 255, 255, 0.08);
}
.wide-cards .wide-cards-cont, .wide-cards #dle-content, .wide-cards > div {
  /* description */
}
.wide-cards .wide-cards-cont .wide-text, .wide-cards #dle-content .wide-text, .wide-cards > div .wide-text {
  padding: 0 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}
.wide-cards .wide-cards-cont .wide-text p, .wide-cards #dle-content .wide-text p, .wide-cards > div .wide-text p {
  font-size: 0.92rem;
}
.wide-cards .wide-cards-cont .wide-text-date, .wide-cards #dle-content .wide-text-date, .wide-cards > div .wide-text-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.wide-cards .wide-cards-cont .card-rating, .wide-cards #dle-content .card-rating, .wide-cards > div .card-rating {
  height: 16px;
  background-image: url(/templates/android/img/star_1_act.svg);
  background-repeat: no-repeat;
  background-size: 16px;
  padding-left: 24px;
  width: 20px;
  color: rgb(145, 146, 146);
  font-size: 14px;
  font-weight: bold;
  line-height: 16px;
}
.wide-cards .wide-cards-cont .rating-score, .wide-cards #dle-content .rating-score, .wide-cards > div .rating-score {
  border-radius: 3px 3px 3px 16px;
  color: #fff;
  font-size: 12px;
  right: 0;
  position: absolute;
  text-align: center;
  top: 0;
  z-index: 2;
  width: 38px;
  height: 38px;
  line-height: 36px;
}
.wide-cards .wide-cards-cont .rating-score.green, .wide-cards #dle-content .rating-score.green, .wide-cards > div .rating-score.green {
  background: #0aad22;
}
.wide-cards .wide-cards-cont .rating-score.semigreen, .wide-cards #dle-content .rating-score.semigreen, .wide-cards > div .rating-score.semigreen {
  background: #77ad0a;
}
.wide-cards .wide-cards-cont .rating-score.orange, .wide-cards #dle-content .rating-score.orange, .wide-cards > div .rating-score.orange {
  background: #ad7f0a;
}
.wide-cards .wide-cards-cont .rating-score.red, .wide-cards #dle-content .rating-score.red, .wide-cards > div .rating-score.red {
  background: #de4300;
}
.wide-cards .wide-cards-cont .rating-score:before, .wide-cards #dle-content .rating-score:before, .wide-cards > div .rating-score:before {
  content: attr(title);
}
.wide-cards .wide-cards-cont .mod, .wide-cards .wide-cards-cont .hit, .wide-cards #dle-content .mod, .wide-cards #dle-content .hit, .wide-cards > div .mod, .wide-cards > div .hit {
  border-radius: 18px;
  color: #fff;
  font-size: 12px;
  line-height: 36px;
  text-align: center;
  padding: 0.28rem 0.65rem;
  margin-left: 0.65rem;
}
.wide-cards .wide-cards-cont .mod, .wide-cards #dle-content .mod, .wide-cards > div .mod {
  background-color: #9c25af;
}
.wide-cards .wide-cards-cont .mod:before, .wide-cards #dle-content .mod:before, .wide-cards > div .mod:before {
  content: "MOD";
}
.wide-cards .wide-cards-cont .hit, .wide-cards #dle-content .hit, .wide-cards > div .hit {
  background-color: #67b412;
}
.wide-cards .wide-cards-cont .hit:before, .wide-cards #dle-content .hit:before, .wide-cards > div .hit:before {
  content: "РЕКОМЕНДУЕМ";
}
.wide-cards .wide-cards-cont:last-child, .wide-cards #dle-content:last-child, .wide-cards > div:last-child {
  margin-bottom: 0;
}
.wide-cards {
  /* Подборка-статья: карточки на всю ширину. На уровне .wide-cards, т.к. .wide-cards-cont и .wide-cards-cont--article — один div. */
}
.wide-cards .wide-cards-cont--article article {
  max-width: 100% !important;
  flex: 100%;
}

.square-wbg-cards {
  display: flex;
  flex-wrap: wrap;
  max-width: 1440px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .square-wbg-cards {
    align-items: baseline;
  }
}

.square-wbg-cards-cont {
  padding: 0 16px 16px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  flex: 100%;
  grid-gap: 12px;
  overflow: scroll;
}
@media (min-width: 480px) {
  .square-wbg-cards-cont {
    grid-gap: 24px;
    overflow: initial;
    flex-wrap: wrap;
    padding: 0 24px 0 8px;
  }
}
@media (min-width: 800px) {
  .square-wbg-cards-cont {
    padding: 0 48px 0 16px;
  }
}
@media (min-width: 1024px) {
  .square-wbg-cards-cont {
    display: grid;
    grid-column-gap: 20px;
    grid-row-gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 64px;
  }
}
@media (min-width: 1280px) {
  .square-wbg-cards-cont {
    grid-column-gap: 32px;
  }
}
.square-wbg-cards-cont article {
  flex: 0 0 calc(33% - 16px);
}
@media (min-width: 480px) {
  .square-wbg-cards-cont article {
    flex: 0 0 calc(23% - 16px);
  }
}
@media (min-width: 1024px) {
  .square-wbg-cards-cont article {
    max-width: 140px;
  }
}

.square-wbg-card {
  position: relative;
  z-index: 1;
}
.square-wbg-card .square-wbg-title-holder .card-title {
  color: rgba(0, 0, 0, 0.768627451);
  display: block;
  font-weight: 600;
  font-size: 12px;
  line-height: 15px;
  overflow: hidden;
  text-align: center;
  transition: color 0.3s ease;
}
@media (min-width: 480px) {
  .square-wbg-card .square-wbg-title-holder .card-title {
    font-size: 14px;
    line-height: 20px;
  }
}
[data-theme=dark] .square-wbg-card .square-wbg-title-holder .card-title {
  color: var(--text-primary);
}
.square-wbg-card .square-wbg-text {
  width: 128px;
  height: 62px;
  color: rgba(0, 0, 0, 0.64);
  font-size: 12px;
  line-height: 16px;
  overflow: hidden;
  transition: color 0.3s ease;
}
[data-theme=dark] .square-wbg-card .square-wbg-text {
  color: var(--text-secondary);
}
.square-wbg-card .mod, .square-wbg-card .hit {
  position: absolute;
  color: rgb(255, 255, 255);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.04);
  font-size: 12px;
  line-height: 20px;
  height: 20px;
  text-align: center;
  right: 8px;
  border-radius: 10px;
}
@media (min-width: 1024px) {
  .square-wbg-card .mod, .square-wbg-card .hit {
    right: 4px;
  }
}
.square-wbg-card .hit {
  width: 39px;
  background-color: rgb(147, 198, 91);
  top: 8px;
}
.square-wbg-card .hit:before {
  content: "ХИТ";
}
.square-wbg-card .mod {
  width: 45px;
  background-color: rgb(156, 37, 175);
  top: 32px;
}
.square-wbg-card .mod:before {
  content: "МОД";
}
.square-wbg-card .square-wbg-image-link {
  display: block;
}
.square-wbg-card .square-wbg-image-link:hover::before {
  opacity: 1;
}
.square-wbg-card .square-wbg-image-link:after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
}
.square-wbg-card .square-wbg-image-link:before {
  content: "";
  background: #fff;
  width: 100%;
  height: 100%;
  top: -5px;
  left: -10px;
  position: absolute;
  z-index: -1;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.04);
  opacity: 0;
  transition: all 0.1s cubic-bezier(0.64, 0.04, 0.35, 1), background 0.3s ease, box-shadow 0.3s ease;
}
[data-theme=dark] .square-wbg-card .square-wbg-image-link:before {
  background: var(--dark-bg-surface);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.3);
}
.square-wbg-card .square-wbg-image-link img {
  border-radius: 24px;
  margin-bottom: 12px;
  height: auto;
  width: 100%;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3019607843), 0 1px 3px 1px rgba(60, 64, 67, 0.1490196078);
}

.show-more-cont {
  text-align: center;
  width: 100%;
}

.show-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  width: 100%;
  max-width: 340px;
  height: 52px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
  text-align: center;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #4dd0e1, #7b61ff);
  box-shadow: 0 6px 20px rgba(80, 140, 255, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: all 0.25s ease;
  overflow: hidden;
  isolation: isolate;
  z-index: 2;
}
.show-more::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.show-more::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(150% 100% at 20% 0%, rgba(255, 255, 255, 0.4), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 80%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.show-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(123, 97, 255, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}
.show-more:hover::after {
  opacity: 1;
}
.show-more:active {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(123, 97, 255, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}
.show-more:focus-visible {
  outline: 2px solid color-mix(in oklab, #7b61ff, transparent 50%);
  outline-offset: 3px;
}
.show-more:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* =========================================================
   CHIP BOX — итоговый SCSS
   ========================================================= */
/* БАЗОВЫЕ СТИЛИ (работают для всех режимов) */
.chip-box {
  --chip-col-gap: 12px;
  --chip-row-gap: 8px;
  width: auto;
  display: flex;
  max-width: 1200px;
  margin: 12px var(--page-gutter, 12px) 0;
}
@media (min-width: 1280px) {
  .chip-box {
    margin: 12px auto 0;
  }
}
.chip-box {
  top: 74px;
  z-index: 3;
  background: linear-gradient(180deg, hsla(0, 0%, 100%, 0.7), rgba(255, 255, 255, 0.4392156863));
  padding: 0;
  border-radius: 10px;
  justify-content: flex-start;
  box-sizing: border-box;
  transition: background 0.3s ease;
}
[data-theme=dark] .chip-box {
  background: linear-gradient(180deg, hsla(0, 0%, 100%, 0.15), hsla(0, 0%, 100%, 0.08));
}
.chip-box {
  /* Главная (эмодзи-nav): чипы — прямые дети, wrap. Ритм только gap, без margin на .chip. */
}
.chip-box.noscript {
  display: flex !important;
  flex-wrap: wrap !important;
  align-content: flex-start;
  gap: var(--chip-row-gap) var(--chip-col-gap);
  padding: 0;
}
.chip-box.noscript > .chip {
  margin: 0;
}
@media (min-width: 641px) {
  .chip-box.noscript {
    justify-content: center;
  }
}
.chip-box .chip-rail {
  display: flex;
  flex-direction: column;
  min-width: min-content;
  gap: var(--row-gap, var(--chip-row-gap));
  padding-block: 0;
  box-sizing: content-box;
}
.chip-box .chip-lane {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--col-gap, var(--chip-col-gap));
  margin: 0;
  white-space: nowrap;
}
.chip-box.sticky {
  /* sticky-поведение как было — не меняем */
  margin: 0 auto 0;
  position: sticky;
}
.chip-box {
  /* Базовый вид чипа (в твоём стиле) */
}
.chip-box .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: visible;
  vertical-align: middle;
  /* убираем любые внешние расчёты ширины — только «натуральная» */
  width: auto;
  max-width: none;
  margin: 0;
  white-space: nowrap;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  text-decoration: none;
  color: #0f1222;
  box-shadow: 0 6px 16px rgba(27, 37, 51, 0.08);
  cursor: pointer;
  user-select: none;
  transition: transform 0.18s ease, background 0.18s ease-out, border-color 0.18s ease-in, box-shadow 0.18s ease;
}
.chip-box .chip img {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  overflow: visible;
}
.chip-box .chip {
  /* старый "первому добавь отступ" отключаем — дальше используем gap’ы */
}
.chip-box .chip:first-of-type {
  margin-left: 0;
}
.chip-box .chip:hover {
  background: rgba(43, 124, 255, 0.12);
  border-color: rgba(43, 124, 255, 0.35);
  color: #0b3a7a;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(24, 38, 64, 0.14);
}
.chip-box .chip:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(24, 38, 64, 0.1);
}
.chip-box .chip:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--accent), transparent 40%);
  outline-offset: 3px;
}
.chip-box .chip.active {
  background: rgba(43, 124, 255, 0.18);
  border-color: rgba(43, 124, 255, 0.45);
  color: #0b3a7a;
  box-shadow: 0 8px 20px rgba(43, 124, 255, 0.22);
  pointer-events: none;
  cursor: default;
}
[data-theme=dark] .chip-box .chip.active {
  background: rgba(43, 124, 255, 0.28);
  border-color: rgba(43, 124, 255, 0.55);
  color: var(--text-primary, #e9eefb);
}
.chip-box .chip.active:hover {
  transform: none;
  background: rgba(43, 124, 255, 0.18);
  border-color: rgba(43, 124, 255, 0.45);
  color: #0b3a7a;
  box-shadow: 0 8px 20px rgba(43, 124, 255, 0.22);
}

/* =========================================================
   DESKTOP / TABLET: показать все теги, без скролла
   ========================================================= */
.not-mobile {
  /* wrap-навигация (главная noscript и games/programs до слайдера): каждый ряд по центру */
}
.not-mobile.chip-box:not(.sticky):not(.chips-4rows):not(.chips-balanced) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  gap: var(--chip-row-gap) var(--chip-col-gap);
  overflow: visible;
  padding: 0;
}
.not-mobile.chip-box:not(.sticky):not(.chips-4rows):not(.chips-balanced) .chip {
  margin: 0;
  flex: 0 0 auto;
}

/* =========================================================
   MOBILE: 3 ряда + горизонтальный скролл, натуральная ширина чипов
   ========================================================= */
.mobile.chip-box:not(.sticky) {
  /* Контейнер — область скролла */
  display: grid; /* без доп. обёрток: только CSS */
  grid-auto-flow: column; /* добавляем новые КОЛОНКИ */
  grid-template-rows: repeat(3, auto); /* ровно 3 строки */
  grid-auto-columns: max-content; /* ширина колонки по содержимому */
  gap: var(--chip-row-gap) var(--chip-col-gap);
  margin-inline: 0;
  /* До JS-rail; .chips-balanced обнуляет box — gutter только на .chip-rail */
  padding-left: var(--page-gutter, 12px);
  padding-right: var(--page-gutter, 12px);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.mobile.chip-box:not(.sticky)::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}
.mobile.chip-box:not(.sticky) {
  /* Мягкое прилипание к началу колонок при прокрутке */
  scroll-snap-type: x proximity;
}
.mobile.chip-box:not(.sticky) .chip {
  /* ключ: элемент остаётся натуральной ширины, НЕ растягивается под ширину колонки */
  justify-self: start; /* не растягивать по оси X */
  align-self: start; /* не растягивать по оси Y */
  width: max-content; /* «натуральная» ширина по содержимому */
  margin: 0;
  scroll-snap-align: start;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
[data-theme=dark] .mobile.chip-box:not(.sticky) .chip {
  background: var(--bg-surface-elevated);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--dark-text-primary);
}

/* =========================================================
   FALLBACK (если .mobile/.not-mobile не навешены классами)
   ========================================================= */
/* Узкие экраны → включаем мобильный режим как резерв */
@media (max-width: 640px) {
  .chip-box:not(.sticky):not(.chips-4rows):not(.chips-balanced) {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(3, auto);
    grid-auto-columns: max-content;
    gap: var(--chip-row-gap) var(--chip-col-gap);
    margin-inline: 0;
    padding-left: var(--page-gutter, 12px);
    padding-right: var(--page-gutter, 12px);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .chip-box:not(.sticky):not(.chips-4rows):not(.chips-balanced)::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
  }
  .chip-box:not(.sticky):not(.chips-4rows):not(.chips-balanced) {
    scroll-snap-type: x proximity;
  }
  .chip-box:not(.sticky):not(.chips-4rows):not(.chips-balanced) .chip {
    justify-self: start;
    align-self: start;
    width: max-content;
    margin: 0 !important;
    scroll-snap-align: start;
    flex: 0 0 auto;
  }
}
/* Шире мобилы → как десктоп (если класс не задан) */
@media (min-width: 641px) {
  .chip-box:not(.sticky):not(.chips-4rows):not(.chips-balanced):not(.mobile) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    gap: var(--chip-row-gap) var(--chip-col-gap);
    overflow: visible;
    padding: 0;
  }
  .chip-box:not(.sticky):not(.chips-4rows):not(.chips-balanced):not(.mobile) .chip {
    margin: 0;
    flex: 0 0 auto;
  }
}
/* Контейнер в твоём стиле */
.chip-box {
  position: initial;
  width: auto;
  max-width: 1200px;
  margin: 12px var(--page-gutter, 12px) 0;
}
@media (min-width: 1280px) {
  .chip-box {
    margin: 12px auto 0;
  }
}
.chip-box:not(.chips-4rows) {
  padding: 0;
}
.chip-box.sticky:not(.chips-4rows) {
  padding: 8px 0;
}
.chip-box {
  border-radius: 10px;
  background: linear-gradient(180deg, hsla(0, 0%, 100%, 0.7), rgba(255, 255, 255, 0.4392156863));
  z-index: 3;
  overflow: visible;
}
.chip-box.sticky {
  position: sticky;
  top: 74px;
  margin: 0 auto 0;
}
.chip-box {
  /* Чип: натуральная ширина */
}
.chip-box > .chip,
.chip-box .chip-line .chip,
.chip-box .chip-lane .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: visible;
  vertical-align: middle;
  white-space: nowrap;
  width: max-content;
  margin: 0;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  color: #0f1222;
  text-decoration: none;
  user-select: none;
  box-shadow: 0 6px 16px rgba(27, 37, 51, 0.08);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
[data-theme=dark] .chip-box > .chip,
[data-theme=dark] .chip-box .chip-line .chip,
[data-theme=dark] .chip-box .chip-lane .chip {
  background: var(--bg-surface-elevated);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--dark-text-primary);
}
.chip-box > .chip:hover,
.chip-box .chip-line .chip:hover,
.chip-box .chip-lane .chip:hover {
  background: rgba(43, 124, 255, 0.12);
  border-color: rgba(43, 124, 255, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(24, 38, 64, 0.14);
}
.chip-box > .chip:active,
.chip-box .chip-line .chip:active,
.chip-box .chip-lane .chip:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(24, 38, 64, 0.1);
}
.chip-box > .chip:focus-visible,
.chip-box .chip-line .chip:focus-visible,
.chip-box .chip-lane .chip:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--accent), transparent 40%);
  outline-offset: 3px;
}
.chip-box > .chip.active,
.chip-box .chip-line .chip.active,
.chip-box .chip-lane .chip.active {
  background: rgba(43, 124, 255, 0.18);
  border-color: rgba(43, 124, 255, 0.45);
  color: #0b3a7a;
  box-shadow: 0 8px 20px rgba(43, 124, 255, 0.22);
  pointer-events: none;
  cursor: default;
}
[data-theme=dark] .chip-box > .chip.active,
[data-theme=dark] .chip-box .chip-line .chip.active,
[data-theme=dark] .chip-box .chip-lane .chip.active {
  background: rgba(43, 124, 255, 0.28);
  border-color: rgba(43, 124, 255, 0.55);
  color: var(--text-primary, #e9eefb);
}
.chip-box > .chip.active:hover,
.chip-box .chip-line .chip.active:hover,
.chip-box .chip-lane .chip.active:hover {
  transform: none;
  background: rgba(43, 124, 255, 0.18);
  border-color: rgba(43, 124, 255, 0.45);
  box-shadow: 0 8px 20px rgba(43, 124, 255, 0.22);
}
[data-theme=dark] .chip-box > .chip.active:hover,
[data-theme=dark] .chip-box .chip-line .chip.active:hover,
[data-theme=dark] .chip-box .chip-lane .chip.active:hover {
  background: rgba(43, 124, 255, 0.28);
  border-color: rgba(43, 124, 255, 0.55);
}
.chip-box > .chip img,
.chip-box .chip-line .chip img,
.chip-box .chip-lane .chip img {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  overflow: visible;
}

/* Вьюпорт для линий (клип по горизонтали) */
.chip-box .chip-viewport {
  --col-gap: 12px;
  --row-gap: 8px;
  overflow: hidden; /* клипим содержимое по X, скролл у линий */
  padding: 26px 24px; /* место под стрелки слева/справа */
  /* Визуальный интервал между строками */
}
.chip-box .chip-viewport .chip-line + .chip-line {
  margin-top: var(--row-gap);
}

/* Линия: один горизонтальный скроллируемый поток чипов */
.chip-box .chip-line {
  display: flex;
  flex-wrap: nowrap; /* НЕ переносим — горизонтальная лента */
  gap: var(--col-gap); /* фиксированный отступ между чипами */
  align-items: center;
  overflow-x: auto; /* у каждой линии — собственный скролл */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity; /* мягкое прилипање к началу чипа */
  --bleed: 24px;
  padding: var(--bleed); /* внутренняя «подушка» 24px */
  margin-inline: calc(var(--bleed) * -1.5);
  margin-block: 0;
  /* скрыть полосу прокрутки визуально */
  scrollbar-width: none;
}
.chip-box .chip-line::-webkit-scrollbar {
  height: 0;
  width: 0;
}

/* Навигация (используем существующие .slider__prev/.slider__next) */
.chip-box .chip-nav {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 12;
}
.chip-box .chip-nav .chip-prev,
.chip-box .chip-nav .chip-next {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  z-index: 13; /* выше чипов */
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 12px 24px rgba(43, 124, 255, 0.35);
  transition: box-shadow 0.18s ease;
  will-change: box-shadow;
  color: #fff;
}
.chip-box .chip-nav .chip-prev:active, .chip-box .chip-nav .chip-prev:hover,
.chip-box .chip-nav .chip-next:active,
.chip-box .chip-nav .chip-next:hover {
  box-shadow: 2px 3px 12px 4px rgba(43, 124, 255, 0.4509803922);
}
.chip-box .chip-nav .chip-prev {
  left: 6px;
}
.chip-box .chip-nav .chip-next {
  right: 6px;
}

/* Фоллбек на узких — просто уменьшим внутренние отступы вьюпорта */
@media (max-width: 640px) {
  .chip-box .chip-viewport {
    padding: 0 12px;
  }
}
/* 4-рядный слайдер: ряды плотно, без растяжения на высоту контейнера */
.chip-box.chips-4rows {
  position: relative;
  top: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  align-content: start;
  min-height: 0;
  height: auto;
  gap: 0;
}
.chip-box.chips-4rows .chip-viewport {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  align-content: start;
  gap: var(--row-gap, var(--chip-row-gap));
  min-height: 0;
  height: auto;
  padding: 0 24px; /* место под стрелки только по X */
}
.chip-box.chips-4rows .chip-viewport .chip-line + .chip-line {
  margin-top: 0;
}
.chip-box.chips-4rows .chip-line {
  flex: 0 0 auto;
  align-self: stretch;
  min-height: 0;
  height: auto;
  padding-block: 0;
  margin-block: 0;
}

.chip-box:not(.sticky) {
  background: none;
  box-shadow: none;
  border: none;
  border-radius: 0;
  padding: 0;
}

/* overflow-y:hidden на 3-рядной сетке без padding клипит круглые иконки */
.chip-box.mobile:not(.sticky):not(.chips-balanced):not(.chips-4rows) {
  padding: 4px var(--page-gutter, 12px) 16px;
}

.chip-box.mobile:not(.sticky),
.chip-box.chips-balanced:not(.sticky) {
  margin-top: 8px;
  margin-inline: 0;
  /* snap / scrollIntoView: не выравнивать чип впритык к краю — воздух как у .chip-rail */
  scroll-padding-left: var(--page-gutter, 12px);
  scroll-padding-right: var(--page-gutter, 12px);
}

/* JS .chip-rail: не оставлять 3-рядную grid — она клипит иконки при padding:0 */
.chip-box.chips-balanced:not(.sticky) {
  display: flex;
  flex-direction: column;
  /* flex-start + max-content: иначе stretch+content-box клипает padding-left у overflow-родителя */
  align-items: flex-start;
  gap: 0;
  padding-inline: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.chip-box.chips-balanced:not(.sticky)::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}
.chip-box.chips-balanced:not(.sticky) {
  /* Поля на треке, не на overflow-box — иначе box+rail=12 и первый чип клипается */
}
.chip-box.chips-balanced:not(.sticky) .chip-rail {
  box-sizing: border-box;
  width: max-content;
  min-width: min-content;
  padding-left: var(--page-gutter, 12px);
  padding-right: var(--page-gutter, 12px);
  /* Тень чипа 0 6px 16px; clip у overflow-y:hidden на боксе */
  padding-top: 4px;
  padding-bottom: 16px;
}

.navigation {
  margin: 32px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  grid-column: 1/-1;
  position: relative;
  z-index: 2;
  isolation: isolate;
  width: 100%;
}
@media (min-width: 1024px) {
  .navigation {
    margin: 20px 0 24px;
  }
}
@media (min-width: 600px) {
  .navigation {
    margin: 16px 0 24px;
  }
}
.navigation .navigation-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.navigation .navigation-pages a, .navigation .navigation-pages span {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(51, 51, 51, 0.8509803922);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease, color 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
[data-theme=dark] .navigation .navigation-pages a, [data-theme=dark] .navigation .navigation-pages span {
  color: var(--dark-text-secondary);
}
@media (min-width: 480px) {
  .navigation .navigation-pages a, .navigation .navigation-pages span {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}
.navigation .navigation-pages a, .navigation .navigation-pages span {
  /* Световой эффект */
}
.navigation .navigation-pages a::before, .navigation .navigation-pages span::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, 0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}
.navigation .navigation-pages a:hover, .navigation .navigation-pages span:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.navigation .navigation-pages a:hover::before, .navigation .navigation-pages span:hover::before {
  opacity: 1;
}
.navigation .navigation-pages a:active, .navigation .navigation-pages span:active {
  transform: scale(0.95);
}
.navigation .navigation-pages {
  /* Текущая страница */
}
.navigation .navigation-pages span {
  background: linear-gradient(135deg, var(--accent, #00E1B2), var(--accent-strong, #0099FF));
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  font-weight: 700;
}
.navigation .navigation-pages span::before {
  display: none;
}
.navigation .navigation-pages {
  /* Ссылки */
}
.navigation .navigation-pages a {
  text-decoration: none;
}
.navigation .navigation-pages a:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 255, 255, 0.3);
}

#dlereplypopup form {
  padding: 24px 0;
}

.user-agreement {
  border: 1px solid #eee;
  border-radius: 6px;
  bottom: 0;
  box-shadow: 0 -2px 8px 0 rgba(0, 0, 0, 0.0784313725);
  color: #545c67;
  font-size: 16px;
  left: 0;
  line-height: 24px;
  margin: 0 auto;
  max-width: 860px;
  padding: 0;
  position: fixed;
  right: 0;
  z-index: 999;
}

.floater-holder, .user-agreement {
  align-items: flex-start;
  display: flex;
}

.floater-holder {
  flex-wrap: wrap;
  padding: 16px;
  width: 100%;
}

.floater-image {
  flex: 0 0 64px;
  height: 64px;
  margin-right: 20px;
  width: 64px;
}

.floater-text {
  flex: 1;
}

.floater-button-holder {
  align-items: flex-end;
  flex: 100%;
  margin-left: auto;
  margin-top: 16px;
  text-align: right;
}

.agree, .disagree {
  border-radius: 6px;
  font-size: 14px;
  padding: 4px 16px;
}

.agree {
  background: #0aad22;
  border: 0;
  color: #fff;
}

.disagree {
  background-color: #fff;
  border: 1px solid #0aad22;
  margin-left: 16px;
}

body {
  position: relative;
}

.footer-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px 16px;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.17rem;
  visibility: hidden;
}
.footer-text.is-ready {
  visibility: visible;
}
.footer-text .subtitle {
  margin: 0;
  color: inherit;
}

.footer-text__wrapper {
  width: 100%;
}

footer {
  --footer-glass-bg: var(--glass-bg, var(--glass, rgba(255, 255, 255, .65)));
  --footer-glass-stroke: var(--glass-stroke, var(--stroke, rgba(255, 255, 255, .85)));
  --footer-glass-shadow: var(--shadow, 0 12px 28px rgba(24, 38, 64, .14));
  --footer-ink: var(--text, var(--ink, var(--text-primary, #121317)));
  --footer-muted: var(--muted, var(--text-secondary, #5b6470));
  --footer-accent: var(--accent, var(--brand, #2b7cff));
  --footer-radius: var(--radius, var(--r-lg, 22px));
  flex: 100%;
  background: transparent;
  padding: 28px 0 max(16px, env(safe-area-inset-bottom));
  color: var(--footer-ink);
  transition: color 0.3s ease;
}
[data-theme=dark] footer {
  --footer-glass-bg: var(--glass-bg, var(--glass, rgba(26, 29, 46, .75)));
  --footer-glass-stroke: var(--glass-stroke, var(--stroke, rgba(255, 255, 255, .1)));
  --footer-glass-shadow: var(--shadow, 0 12px 28px rgba(0, 0, 0, .38));
  --footer-ink: var(--text, var(--ink, var(--dark-text-primary, #e9eefb)));
  --footer-muted: var(--muted, var(--dark-text-secondary, #9aa7b9));
  background: transparent;
}
footer .footer-cont {
  position: relative;
  margin-top: 8px;
  margin-right: 6px;
  margin-left: 6px;
  padding: 28px 20px 24px;
  text-align: center;
  display: grid;
  gap: 28px 24px;
  justify-items: center;
  background: var(--footer-glass-bg);
  border: 1px solid var(--footer-glass-stroke);
  border-radius: var(--footer-radius);
  box-shadow: var(--footer-glass-shadow);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
@media (min-width: 480px) {
  footer .footer-cont {
    margin-right: 12px;
    margin-left: 12px;
    padding: 32px 24px 28px;
  }
}
@media (min-width: 800px) {
  footer .footer-cont {
    text-align: left;
    justify-items: start;
    align-items: start;
    grid-template-columns: minmax(180px, 1.15fr) 1fr 1fr;
    grid-template-areas: "identika links1 links2" "social   links1 links2";
    padding: 32px 36px 28px;
  }
}
@media (min-width: 1024px) {
  footer .footer-cont {
    padding: 36px 48px 32px;
    max-width: 1200px;
  }
}
@media (min-width: 1280px) {
  footer .footer-cont {
    margin-right: auto;
    margin-left: auto;
  }
}

.footer-uplink,
.footer-uplink.white-box {
  position: absolute;
  top: -24px;
  right: 16px;
  z-index: 1;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--footer-glass-stroke);
  background-color: var(--footer-glass-bg);
  background-image: url("/templates/android/img/footer/up_icon.svg");
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 22px;
  box-shadow: var(--footer-glass-shadow);
  text-indent: -9999px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.3s ease;
}
@media (min-width: 800px) {
  .footer-uplink,
  .footer-uplink.white-box {
    right: 24px;
  }
}
@media (min-width: 1024px) {
  .footer-uplink,
  .footer-uplink.white-box {
    right: 32px;
  }
}
[data-theme=dark] .footer-uplink,
[data-theme=dark] .footer-uplink.white-box {
  background-color: var(--footer-glass-bg);
  box-shadow: var(--footer-glass-shadow);
}
.footer-uplink:hover,
.footer-uplink.white-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(24, 38, 64, 0.16);
}
.footer-uplink:active,
.footer-uplink.white-box:active {
  transform: translateY(0) scale(0.98);
}
[data-theme=dark] .footer-uplink:hover,
[data-theme=dark] .footer-uplink.white-box:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.42);
}

.footer-identika {
  margin-bottom: 0;
  text-align: center;
}
@media (min-width: 800px) {
  .footer-identika {
    grid-area: identika;
    text-align: left;
  }
}
.footer-identika p {
  color: var(--footer-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.footer-identika p span {
  display: block;
  color: var(--footer-ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-bottom: 6px;
}

.footer-social {
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 64px;
}
@media (min-width: 800px) {
  .footer-social {
    grid-area: social;
    justify-content: flex-start;
  }
}
.footer-social .footer-social-tg, .footer-social .footer-social-mail {
  display: block;
  transition: transform 0.2s ease;
}
.footer-social .footer-social-tg:hover, .footer-social .footer-social-mail:hover {
  transform: translateY(-2px);
}
.footer-social .footer-social-tg:active, .footer-social .footer-social-mail:active {
  transform: translateY(0);
}
.footer-social .footer-social-tg {
  background-image: url("/templates/android/img/footer/tg-icon.svg");
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  background-size: 40px;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
}
.footer-social .footer-social-tg span {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  color: var(--footer-muted);
  letter-spacing: 0.2px;
}
.footer-social .footer-social-mail {
  background-image: url("/templates/android/img/footer/Mail_icon.svg");
  width: 36px;
  height: 28px;
  flex: 0 0 36px;
  margin-top: 6px;
  background-size: 36px;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
}
.footer-social .footer-social-mail span {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  color: var(--footer-muted);
  letter-spacing: 0.2px;
}

.footer-user-info {
  margin-bottom: 0;
  text-align: center;
  min-width: 0;
}
@media (min-width: 800px) {
  .footer-user-info {
    grid-area: links1;
    text-align: left;
  }
}
@media (min-width: 800px) {
  .footer-user-info + .footer-user-info {
    grid-area: links2;
  }
}
.footer-user-info p {
  color: var(--footer-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  margin-bottom: 12px;
}
.footer-user-info ul li {
  font-size: 15px;
  line-height: 1.7;
}
.footer-user-info ul li a {
  color: var(--footer-ink);
  transition: color 0.2s ease;
}
.footer-user-info ul li a:hover {
  color: var(--footer-accent);
  text-decoration: none;
}

.footer-user-alert {
  color: var(--footer-muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  max-width: 220px;
}
@media (min-width: 800px) {
  .footer-user-alert {
    grid-column: 1;
    text-align: left;
    position: static;
  }
}

/* Контейнер */
.registration-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* Заголовок блока авторизации */
.registration-social__title {
  font: 600 13px/1 var(--font, "Inter", system-ui, sans-serif);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3a3f4b;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  /* тонкий акцентный разделитель */
}
.registration-social__title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(111, 77, 255, 0.35), rgba(111, 77, 255, 0));
}

/* Кнопка входа по логину/паролю — в стиле квадратных плиток */
.registration-social .social-links.login {
  --bg: #6F4DFF; /* фиолетовый акцент под общий стиль */
  position: relative;
  /* белый «замок» через CSS mask */
}
.registration-social .social-links.login::before {
  content: "";
  width: 24px;
  height: 24px;
  display: block;
  background: #fff;
  mask: url('data:image/svg+xml;utf8,      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">        <path d="M12 2a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a5 5 0 0 0-5-5zm-3 8V7a3 3 0 1 1 6 0v3H9zm3 4a2 2 0 0 1 1 3.732V19a1 1 0 1 1-2 0v-1.268A2 2 0 0 1 12 14z" />      </svg>') center/contain no-repeat;
  -webkit-mask: url('data:image/svg+xml;utf8,      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">        <path d="M12 2a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a5 5 0 0 0-5-5zm-3 8V7a3 3 0 1 1 6 0v3H9zm3 4a2 2 0 0 1 1 3.732V19a1 1 0 1 1-2 0v-1.268A2 2 0 0 1 12 14z" />      </svg>') center/contain no-repeat;
}
.registration-social .social-links.login {
  /* лёгкий градиент при ховере для «сочности» */
  background: linear-gradient(180deg, var(--bg) 0%, color-mix(in oklab, var(--bg), #000 10%) 100%);
  border-color: color-mix(in oklab, var(--bg), #000 18%);
}
.registration-social .social-links.login:hover {
  background: linear-gradient(180deg, color-mix(in oklab, var(--bg), #fff 6%) 0%, color-mix(in oklab, var(--bg), #000 14%) 100%);
  border-color: color-mix(in oklab, var(--bg), #000 22%);
}
.registration-social .social-links.login:focus-visible {
  box-shadow: 0 0 0 3px rgba(111, 77, 255, 0.22), 0 6px 18px rgba(24, 39, 75, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Небольшая правка отступов, если у блока есть заголовок */
.registration-social + .registration-social {
  margin-top: 0.75rem;
}

/* Базовая «плитка» */
.registration-social .social-links,
.registration-social .custom-telegram-login-btn {
  --size: 46px;
  --radius: 12px;
  width: var(--size);
  height: var(--size);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  user-select: none;
  text-decoration: none;
  /* Светлая тема + лёгкая тень в стиле остальных элементов */
  background: var(--bg, #eef1f7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 18px rgba(24, 39, 75, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
  /* Анимации */
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  /* Скрываем текст внутри ссылки визуально, но оставьте aria-label в HTML */
  font-size: 0;
  color: transparent;
  /* Блик */
}
.registration-social .social-links::after,
.registration-social .custom-telegram-login-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.35) 35%, rgba(255, 255, 255, 0) 55%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.registration-social .social-links:hover,
.registration-social .custom-telegram-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(24, 39, 75, 0.1), 0 3px 8px rgba(0, 0, 0, 0.06);
}
.registration-social .social-links:hover::after,
.registration-social .custom-telegram-login-btn:hover::after {
  transform: translateX(0%);
}
.registration-social .social-links:active,
.registration-social .custom-telegram-login-btn:active {
  transform: translateY(0);
}
.registration-social .social-links:focus-visible,
.registration-social .custom-telegram-login-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(78, 51, 255, 0.22), 0 6px 18px rgba(24, 39, 75, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Встроенный SVG (ваш спрайт) — делаем белым и по центру */
.registration-social .social-links .social-reg-icons {
  width: 24px;
  height: 24px;
  fill: #fff; /* цвет иконки */
  flex: 0 0 auto;
}

/* Бренд-цвета */
.registration-social .social-links.vk {
  --bg: #4C75A3;
} /* VK */
.registration-social .social-links.google {
  --bg: #4285F4;
} /* Google */
/* Телеграм — у него нет иконки в спрайте, рисуем белую иконку через data-URI */
.registration-social .custom-telegram-login-btn {
  --bg: #2AABEE; /* Telegram */
  padding: 0; /* выравниваем с квадратной плиткой */
  /* Белая «бумажная самолёт» иконка */
}
.registration-social .custom-telegram-login-btn::before {
  content: "";
  width: 24px;
  height: 24px;
  display: block;
  background: #fff;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240"><path d="M94.7 152.7l-3.2 45.3c4.6 0 6.6-2 9-4.4l21.6-20.7 44.8 32.9c8.2 4.5 14 2.1 16.3-7.6l29.6-138.8 0-0.1c2.6-12.3-4.4-17-12.4-14.1L16.8 97.4c-12 4.6-11.8 11.2-2 14.1l45.3 14.1 105.1-66.2c4.9-3 9.3-1.4 5.6 1.9L94.7 152.7z"/></svg>') center/contain no-repeat;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240"><path d="M94.7 152.7l-3.2 45.3c4.6 0 6.6-2 9-4.4l21.6-20.7 44.8 32.9c8.2 4.5 14 2.1 16.3-7.6l29.6-138.8 0-0.1c2.6-12.3-4.4-17-12.4-14.1L16.8 97.4c-12 4.6-11.8 11.2-2 14.1l45.3 14.1 105.1-66.2c4.9-3 9.3-1.4 5.6 1.9L94.7 152.7z"/></svg>') center/contain no-repeat;
}

/* Мелкий адаптив */
@media (max-width: 420px) {
  .registration-social .social-links,
  .registration-social .custom-telegram-login-btn {
    --size: 44px;
    --radius: 11px;
  }
}
.text-area, input {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.65);
  font: 400 14px/1.4 "Inter", sans-serif;
  color: #222;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.text-area::placeholder, input::placeholder {
  color: #9a9a9a;
  transition: opacity 0.25s ease;
}
.text-area:focus, input:focus {
  background: #fff;
  border-color: #4e33ff;
  box-shadow: 0 0 0 3px rgba(78, 51, 255, 0.25);
  outline: none;
}
.text-area:focus::placeholder, input:focus::placeholder {
  opacity: 0.35;
}

/* slider-hero-card повторно задаёт :root --ink/#111321 без dark-override —
   из‑за этого var(--ink) в ночной теме остаётся тёмным. */
[data-theme=dark] {
  --ink: #e9eefb;
  --muted: #9aa7b9;
}

.novinki-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px 48px;
  /* Не ставить overflow-x: clip/hidden здесь — на мобильных это
     вычисляет overflow-y в auto и убивает position:sticky у фильтров. */
  box-sizing: border-box;
}

.novinki-page *,
.novinki-page *::before,
.novinki-page *::after {
  box-sizing: border-box;
}

/* In-feed / video-reel styles: components/_novinki-reel.scss */
.novinki-page.is-loading {
  opacity: 0.85;
}

/* Выше .liquid-glass.hero-text { padding: 28px 0 0 } — иначе боковые поля карточки схлопываются. */
.liquid-glass.hero-text.novinki-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 190px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(112, 137, 196, 0.2);
  border-radius: 24px;
  color: var(--ink, #121317);
  background: radial-gradient(circle at 12% 8%, rgba(43, 124, 255, 0.18), transparent 34%), radial-gradient(circle at 88% 85%, rgba(123, 97, 255, 0.14), transparent 38%), linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 244, 255, 0.9));
  box-shadow: 0 18px 44px rgba(31, 55, 104, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

@media (min-width: 641px) {
  .liquid-glass.hero-text.novinki-hero {
    margin-top: 24px;
  }
}
.novinki-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.3;
  background-image: linear-gradient(rgba(43, 124, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(43, 124, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(115deg, #000, transparent 62%);
  -webkit-mask-image: linear-gradient(115deg, #000, transparent 62%);
  pointer-events: none;
}

/* Специфичность как у .liquid-glass.hero-text.novinki-hero — иначе светлый фон побеждает. */
[data-theme=dark] .liquid-glass.hero-text.novinki-hero {
  color: var(--dark-text-primary, #e9eefb);
  border-color: var(--dark-border, rgba(255, 255, 255, 0.1));
  background: radial-gradient(circle at 12% 8%, rgba(43, 124, 255, 0.22), transparent 36%), radial-gradient(circle at 88% 85%, rgba(123, 97, 255, 0.16), transparent 40%), linear-gradient(145deg, var(--dark-glass-bg-95, rgba(26, 29, 46, 0.95)), var(--dark-bg-surface, #1a1d2e));
  box-shadow: var(--dark-shadow-lg, 0 8px 24px rgba(0, 0, 0, 0.6)), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
[data-theme=dark] .liquid-glass.hero-text.novinki-hero::before {
  opacity: 0.22;
  background-image: linear-gradient(rgba(112, 153, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(112, 153, 255, 0.1) 1px, transparent 1px);
}
[data-theme=dark] .liquid-glass.hero-text.novinki-hero .novinki-hero__orb--one {
  border-color: rgba(112, 153, 255, 0.28);
  background: radial-gradient(circle at 35% 35%, rgba(111, 155, 255, 0.28), rgba(73, 89, 255, 0.08) 52%, transparent 70%);
}
[data-theme=dark] .liquid-glass.hero-text.novinki-hero .novinki-hero__orb--two {
  background: radial-gradient(circle, rgba(123, 97, 255, 0.18), transparent 68%);
}
[data-theme=dark] .liquid-glass.hero-text.novinki-hero .novinki-hero__eyebrow {
  border-color: rgba(112, 153, 255, 0.22);
  color: #91b7ff;
  background: rgba(43, 124, 255, 0.14);
}
[data-theme=dark] .liquid-glass.hero-text.novinki-hero .novinki-hero__eyebrow-mark {
  box-shadow: 0 0 0 4px rgba(43, 124, 255, 0.18);
}
[data-theme=dark] .liquid-glass.hero-text.novinki-hero .novinki-hero__head h1 span {
  display: inline;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(110deg, #5a9bff 0%, #7b8dff 48%, #a88aff 100%);
  background-clip: text;
  -webkit-background-clip: text;
}
[data-theme=dark] .liquid-glass.hero-text.novinki-hero .subtitle {
  color: var(--dark-text-secondary, #9aa7b9);
}

.novinki-hero__orb {
  position: absolute;
  z-index: -1;
  display: block;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.novinki-hero__orb--one {
  top: -100px;
  right: clamp(-80px, -4vw, -28px);
  width: clamp(160px, 24vw, 280px);
  aspect-ratio: 1;
  border: 1px solid rgba(78, 126, 255, 0.22);
  background: radial-gradient(circle at 35% 35%, rgba(111, 155, 255, 0.24), rgba(73, 89, 255, 0.05) 52%, transparent 70%);
}

.novinki-hero__orb--two {
  right: 24%;
  bottom: -120px;
  width: clamp(130px, 20vw, 230px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.13), transparent 68%);
}

.novinki-hero__eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 6px 9px;
  border: 1px solid rgba(43, 124, 255, 0.18);
  border-radius: 999px;
  color: var(--brand, #2b7cff);
  background: rgba(43, 124, 255, 0.08);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.novinki-hero__eyebrow-mark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2b7cff, #8b6cff);
  box-shadow: 0 0 0 4px rgba(43, 124, 255, 0.12);
}

.novinki-hero__eyebrow-sep {
  opacity: 0.42;
}

.novinki-hero__eyebrow-time {
  opacity: 0.72;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.novinki-hero__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.novinki-hero__head h1 {
  max-width: 950px;
  min-width: 0;
  margin: 0;
  color: inherit;
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  overflow-wrap: break-word;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.novinki-hero__head h1 span {
  display: inline;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(110deg, #2878ff 0%, #536dff 48%, #8662f5 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

@supports not (background-clip: text) {
  .novinki-hero__head h1 span {
    color: var(--brand, #2b7cff);
    -webkit-text-fill-color: currentColor;
    background-image: none;
  }
  [data-theme=dark] .liquid-glass.hero-text.novinki-hero .novinki-hero__head h1 span {
    color: #91b7ff;
  }
}
.novinki-hero .subtitle {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin: 12px 0 0;
  color: var(--muted, #5b6470);
  font-size: clamp(13px, 1.5vw, 16px);
  line-height: 1.45;
}

/* ——— Filters ——— */
.novinki-controls {
  position: sticky;
  /* header.sticky = 64px + safe-area */
  top: calc(64px + env(safe-area-inset-top, 0px) + 8px);
  z-index: 40;
  margin: 16px 0 24px;
  padding: 8px 0;
  max-width: 100%;
  border-radius: 14px;
  color: var(--ink, #121317);
  isolation: isolate;
  overflow: visible;
}

.novinki-controls::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9333333333), #f3f2ff);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 28px rgba(24, 38, 64, 0.14);
  pointer-events: none;
  z-index: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme=dark] .novinki-controls::before {
  background: linear-gradient(180deg, rgba(18, 22, 32, 0.95), rgba(18, 22, 32, 0.85));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.novinki-controls__track {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  padding-inline: var(--page-gutter, 12px);
  padding-block: 6px;
  scroll-padding-inline: var(--page-gutter, 12px);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.novinki-controls__track::-webkit-scrollbar {
  display: none;
}

.novinki-controls__sep {
  flex: 0 0 auto;
  align-self: center;
  width: 1px;
  height: 18px;
  margin: 0 2px;
  background: rgba(148, 163, 184, 0.45);
  border-radius: 1px;
}

[data-theme=dark] .novinki-controls__sep {
  background: rgba(255, 255, 255, 0.18);
}

/* Mode tabs — как .mobile-cr-tabs / .mobile-cr-tab */
.novinki-mode-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

[data-theme=dark] .novinki-mode-tabs {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(17, 24, 39, 0.78);
}

.novinki-mode-tab {
  position: relative;
  appearance: none;
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 17px;
  background: transparent;
  color: var(--font-light-grey, #64748b);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  opacity: 1;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.novinki-mode-tab:active {
  transform: scale(0.98);
}

.novinki-mode-tab.active {
  background: linear-gradient(180deg, #3579ff, #4b72ff 55%, #6e66ff);
  color: #fff;
  box-shadow: 0 6px 16px rgba(53, 121, 255, 0.28);
}

[data-theme=dark] .novinki-mode-tab.active {
  background: linear-gradient(180deg, #3579ff, #4b72ff 55%, #6e66ff);
  color: #fff;
  box-shadow: 0 6px 16px rgba(53, 121, 255, 0.35);
}

.novinki-mode-tab:not(.active):hover {
  background: rgba(43, 124, 255, 0.08);
  color: var(--font-color, #374151);
}

[data-theme=dark] .novinki-mode-tab:not(.active):hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--dark-text-primary, #e9eefb);
}

.novinki-mode-tab[hidden] {
  display: none !important;
}

/* Фильтры всегда одной горизонтальной полоской (как mobile) */
.novinki-filters,
.novinki-filter-group,
.novinki-filter-row {
  display: contents;
}

.novinki-filter-label {
  display: none;
}

.novinki-filter-row .chip {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, font-weight 0.15s ease;
}

.novinki-filter-row .chip.active {
  font-weight: 700;
  border-color: transparent;
  color: #fff;
  background: linear-gradient(180deg, #3579ff, #4b72ff 55%, #6e66ff);
}

[data-theme=dark] .novinki-filter-row .chip.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(180deg, #3579ff, #4b72ff 55%, #6e66ff);
}

.novinki-filter-row .chip[hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .novinki-controls {
    top: calc(64px + env(safe-area-inset-top, 0px) + 6px);
  }
  .novinki-mode-tab {
    font-size: 12px;
    min-height: 34px;
    padding: 7px 10px;
  }
  .novinki-filter-row .chip {
    min-height: 34px;
  }
}
/* ——— Splash (compact) ——— */
.novinki-splash {
  margin-bottom: 24px;
  padding: 14px;
  overflow: hidden;
}

.novinki-splash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 10px;
  width: 100%;
}

@media (min-width: 700px) {
  .novinki-splash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .novinki-splash-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.novinki-splash-card {
  position: relative;
  isolation: isolate;
  border-radius: 18px;
  overflow: hidden;
  background-color: rgba(40, 44, 66, 0.55);
  background-size: cover;
  background-position: center;
  min-height: 168px;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.novinki-splash-card--shot {
  display: flex;
  flex-direction: column;
  background-color: #1a1d2e;
  aspect-ratio: 16/9;
  /* 16:9 floor; grow with inner so CTA is not clipped by overflow:hidden */
  height: auto;
  min-height: min-content;
}

[data-theme=dark] .novinki-splash-card {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.novinki-splash-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.novinki-splash-card__shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.45) 42%, rgba(0, 0, 0, 0.2) 100%);
}

.novinki-splash-card--shot .novinki-splash-card__shade {
  background: linear-gradient(105deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.4) 48%, rgba(0, 0, 0, 0.15) 100%);
}

.novinki-splash-card__hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  text-indent: -9999px;
  overflow: hidden;
  color: transparent;
}

.novinki-splash-card__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  padding: 14px;
  min-width: 0;
  min-height: 100%;
  height: 100%;
  box-sizing: border-box;
  pointer-events: none;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.novinki-splash-card--shot .novinki-splash-card__inner {
  flex: 1 0 auto;
  width: 100%;
  height: auto;
  min-height: 100%;
}

.novinki-splash-card__rank {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: none;
}

.novinki-splash-card__cover {
  flex-shrink: 0;
  margin-top: 0;
}

.novinki-splash-card__cover img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3), 0 0 0 1.5px rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease;
}

.novinki-splash-card:hover .novinki-splash-card__cover img {
  transform: scale(1.03);
}

.novinki-splash-card__body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  height: auto;
  padding-right: 28px;
  overflow: visible;
}

.novinki-splash-card--shot .novinki-splash-card__body {
  min-height: auto;
}

.novinki-splash-card__title {
  font-size: 16px;
  font-weight: 750;
  line-height: 1.25;
  margin: 0;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.novinki-splash-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.novinki-splash-card__chips .chip {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  text-shadow: none;
}

.novinki-splash-card__meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  min-width: 0;
  margin-top: 2px;
  flex-shrink: 0;
}

.novinki-splash-card__meta > .novinki-splash-card__lang {
  flex: 0 0 auto;
}

.novinki-splash-card__meta > .novinki-splash-card__stat {
  flex: 1 1 0;
  min-width: 0;
}

.novinki-splash-card__lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-shadow: none;
}

.novinki-splash-card__lang-icon {
  width: 22px;
  height: 18px;
  flex-shrink: 0;
  display: block;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.novinki-splash-card__lang-icon.ru-lang-icon {
  background-image: url(/templates/development/img/ru-language-icon-white.svg);
}

.novinki-splash-card__lang-icon.non-ru-lang-icon {
  background-image: url(/templates/development/img/non-ru-language-white.svg);
}

[data-theme=dark] .novinki-splash-card__lang-icon.ru-lang-icon {
  background-image: url(/templates/development/img/ru-language-icon-white.svg);
}

[data-theme=dark] .novinki-splash-card__lang-icon.non-ru-lang-icon {
  background-image: url(/templates/development/img/non-ru-language-white.svg);
}

.novinki-splash-card__lang-label {
  display: none;
}

.novinki-splash-card__stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-shadow: none;
  min-width: 0;
}

.novinki-splash-card__stat-value {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.novinki-splash-card__stat-label {
  font-size: 10px;
  opacity: 0.78;
  white-space: nowrap;
}

.novinki-splash-card__cta {
  align-self: flex-start;
  margin-top: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  color: #1a1d2e;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  text-shadow: none;
}

/* Tablet / multi-col splash density (2-col; 3-col until desktop restore) */
@media (min-width: 700px) and (max-width: 1099px) {
  .novinki-splash-card__inner {
    gap: 10px;
    padding: 12px;
  }
  .novinki-splash-card__cover img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }
  .novinki-splash-card__body {
    gap: 5px;
  }
  .novinki-splash-card__title {
    font-size: 15px;
  }
  .novinki-splash-card__meta {
    gap: 5px;
    margin-top: 0;
  }
  .novinki-splash-card__lang {
    padding: 5px 7px;
  }
  .novinki-splash-card__stat {
    padding: 5px 7px;
  }
  .novinki-splash-card__stat-value {
    font-size: 12px;
  }
  .novinki-splash-card__cta {
    min-height: 30px;
    padding: 0.35rem 0.8rem;
    font-size: 12px;
  }
}
@media (min-width: 1100px) {
  .novinki-splash-card__cover img {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }
  .novinki-splash-card__inner {
    gap: 12px;
    padding: 14px;
  }
  .novinki-splash-card__body {
    gap: 7px;
  }
  .novinki-splash-card__title {
    font-size: 16px;
  }
}
/* ——— Catalog ——— */
.novinki-catalog {
  margin-bottom: 24px;
  overflow: visible;
}

.novinki-catalog .grid--cards {
  width: 100%;
  max-width: 100%;
  gap: 12px;
  grid-auto-rows: auto;
  align-items: stretch;
}

.novinki-catalog .card,
.novinki-catalog .glass {
  min-width: 0;
  max-width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
}

.novinki-catalog .card.card--a,
.novinki-catalog .glass.card.card--a {
  height: auto;
  box-sizing: border-box;
  align-self: stretch;
}

.novinki-catalog .card .foot {
  margin-top: auto;
  min-width: 0;
  max-width: 100%;
  gap: 6px;
}

.novinki-catalog .card .foot .row.rating {
  flex: 0 1 auto;
  min-width: 0;
}

.novinki-catalog .card .foot .btn {
  flex: 1 1 auto;
  width: auto;
  max-width: 108px;
  min-width: 0;
  height: auto;
  min-height: 36px;
  padding: 0 0.55rem;
  font-size: 12px;
}

.novinki-card-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.novinki-card-link .title {
  line-height: 1.25;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* ——— Immersive in-feed experiences ——— */
.novinki-catalog-grid > .novinki-infeed,
.novinki-catalog-grid > .novinki-splash {
  grid-column: 1/-1;
}

.novinki-splash--infeed {
  margin: 0;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  background: radial-gradient(circle at 8% 0%, rgba(43, 124, 255, 0.12), transparent 38%), linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(242, 245, 255, 0.9));
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

[data-theme=dark] .novinki-splash--infeed {
  border-color: rgba(255, 255, 255, 0.09);
  background: radial-gradient(circle at 8% 0%, rgba(43, 124, 255, 0.18), transparent 38%), linear-gradient(145deg, rgba(20, 26, 39, 0.96), rgba(13, 17, 27, 0.94));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

/* Novinki video reel / infeed — shared by novinki page and Discovery Hub */
/* In-feed блоки переиспользуются вне .novinki-page (например /apps/, Discovery Hub). */
.novinki-infeed,
.novinki-infeed *,
.novinki-infeed *::before,
.novinki-infeed *::after {
  box-sizing: border-box;
}

.novinki-infeed {
  position: relative;
  min-width: 0;
  width: 100%;
  padding: clamp(14px, 2vw, 24px);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at 8% 0%, rgba(43, 124, 255, 0.16), transparent 38%), linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(242, 245, 255, 0.9));
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
}

[data-theme=dark] .novinki-infeed {
  border-color: rgba(255, 255, 255, 0.09);
  background: radial-gradient(circle at 8% 0%, rgba(43, 124, 255, 0.2), transparent 38%), linear-gradient(145deg, rgba(20, 26, 39, 0.96), rgba(13, 17, 27, 0.94));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.novinki-infeed__head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.novinki-infeed__head h3 {
  margin: 2px 0 0;
  color: var(--ink, #121317);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

[data-theme=dark] .novinki-infeed__head h3 {
  color: var(--dark-text-primary, #e9eefb);
}

.novinki-infeed__eyebrow {
  color: var(--brand, #2b7cff);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.novinki-infeed__link {
  flex: 0 0 auto;
  color: var(--link-font, #2195f2);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.novinki-infeed :is(a, button, summary):focus-visible {
  outline: 3px solid rgba(43, 124, 255, 0.68);
  outline-offset: 3px;
}

/* Video reel */
.novinki-video-reel {
  background: #080b13;
  color: #fff;
}

.novinki-video-reel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 15% 10%, rgba(57, 124, 255, 0.34), transparent 40%), radial-gradient(circle at 90% 80%, rgba(123, 97, 255, 0.24), transparent 42%);
}

.novinki-video-reel .novinki-infeed__head h3 {
  color: #fff;
}

.novinki-video-reel__counter,
.novinki-discovery__counter {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 750;
}

[data-theme=dark] .novinki-discovery__counter {
  color: var(--dark-text-primary, #e9eefb);
  background: rgba(255, 255, 255, 0.08);
}

.novinki-video-reel__stage {
  position: relative;
  z-index: 1;
}

.novinki-video-reel__viewport {
  overflow: hidden;
  min-width: 0;
  border-radius: 20px;
  -webkit-overflow-scrolling: auto;
}
.novinki-video-reel__viewport.swiper {
  display: block;
}

.novinki-video-reel__track {
  display: flex;
  gap: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  touch-action: pan-y pinch-zoom;
  transform: translateZ(0);
  will-change: transform;
}

.novinki-video-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #05070d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout style;
}

.novinki-video-slide__media {
  position: relative;
  width: 100%;
  min-height: 260px;
  max-height: 620px;
  aspect-ratio: var(--novinki-video-aspect, 16/9);
  background: #05070d;
}

.novinki-video-slide__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.78) 100%);
  transition: opacity 0.25s ease;
}

.novinki-video-slide.is-playing .novinki-video-slide__media::after {
  opacity: 0.62;
}

.novinki-video-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #05070d;
}

.novinki-video-slide__play,
.novinki-video-slide__sound {
  position: absolute;
  z-index: 4;
  appearance: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.novinki-video-slide__play {
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(43, 124, 255, 0.88);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4), 0 0 0 8px rgba(43, 124, 255, 0.2);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.novinki-video-slide__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-50%, -50%);
}

.novinki-video-slide.is-playing .novinki-video-slide__play {
  opacity: 0;
}

.novinki-video-slide.is-playing:hover .novinki-video-slide__play,
.novinki-video-slide.is-playing .novinki-video-slide__play:focus-visible {
  opacity: 0.9;
}

.novinki-video-slide.is-playing .novinki-video-slide__play::before {
  width: 14px;
  height: 20px;
  border: 0;
  border-left: 5px solid #fff;
  border-right: 5px solid #fff;
}

.novinki-video-slide__sound {
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
}

.novinki-video-slide__sound::before {
  content: "🔇";
  font-size: 17px;
}

.novinki-video-slide__sound.is-unmuted::before {
  content: "🔊";
}

.novinki-video-slide__overlay {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  color: #fff;
  text-decoration: none;
  background: rgba(8, 12, 22, 0.66);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.novinki-video-slide__overlay > img {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 15px;
  object-fit: cover;
}

.novinki-video-slide__copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.novinki-video-slide__copy strong {
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.novinki-video-slide__copy span {
  overflow: hidden;
  opacity: 0.72;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.novinki-video-slide__rating {
  flex: 0 0 auto;
  font-weight: 800;
}

.novinki-video-slide__cta {
  flex: 0 0 auto;
  padding: 9px 14px;
  border-radius: 999px;
  color: #101522;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.novinki-experience-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  background: rgba(5, 8, 15, 0.64);
  backdrop-filter: blur(10px);
}

.novinki-experience-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.novinki-experience-nav--prev {
  left: 12px;
}

.novinki-experience-nav--prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.novinki-experience-nav--next {
  right: 12px;
}

.novinki-experience-nav--next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.novinki-video-reel__dots {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.novinki-video-reel__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.34);
  transition: width 0.2s ease, background 0.2s ease;
}

.novinki-video-reel__dots button.is-active {
  width: 26px;
  background: #fff;
}

/* Compact reel — narrow viewports and size-containers ≤480px */
@media (max-width: 640px) {
  .novinki-infeed {
    padding: 12px;
    border-radius: 19px;
  }
  .novinki-infeed__head {
    align-items: center;
    margin-bottom: 12px;
  }
  .novinki-infeed__head h3 {
    font-size: 22px;
  }
  .novinki-infeed__eyebrow {
    font-size: 9px;
  }
  .novinki-video-slide {
    border-radius: 16px;
  }
  .novinki-video-slide__media {
    min-height: 350px;
    aspect-ratio: 4/5;
  }
  .novinki-video-slide__media video {
    object-position: center;
  }
  .novinki-video-slide__overlay {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 9px;
  }
  .novinki-video-slide__overlay > img {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }
  .novinki-video-slide__copy strong {
    font-size: 14px;
  }
  .novinki-video-slide__rating {
    display: none;
  }
  .novinki-video-slide__cta {
    padding: 7px 10px;
    font-size: 11px;
  }
  .novinki-video-reel .novinki-experience-nav,
  .novinki-discovery .novinki-experience-nav {
    display: none;
  }
}
@container (max-width: 480px) {
  .novinki-infeed {
    padding: 12px;
    border-radius: 19px;
  }
  .novinki-infeed__head {
    align-items: center;
    margin-bottom: 12px;
  }
  .novinki-infeed__head h3 {
    font-size: 18px;
  }
  .novinki-infeed__eyebrow {
    font-size: 9px;
  }
  .novinki-video-slide {
    border-radius: 16px;
  }
  .novinki-video-slide__media {
    min-height: 0;
    max-height: none;
    aspect-ratio: 4/5;
  }
  .novinki-video-slide video,
  .novinki-video-slide__media video {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .novinki-video-slide__overlay {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 9px;
  }
  .novinki-video-slide__overlay > img {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    max-width: 46px;
    border-radius: 12px;
    object-fit: cover;
  }
  .novinki-video-slide__copy strong {
    font-size: 14px;
  }
  .novinki-video-slide__rating {
    display: none;
  }
  .novinki-video-slide__cta {
    padding: 7px 10px;
    font-size: 11px;
  }
  .novinki-video-reel .novinki-experience-nav,
  .novinki-discovery .novinki-experience-nav {
    display: none;
  }
}
/* Live discussion */
.novinki-discussion__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 14px;
}

.novinki-discussion__lead,
.novinki-discussion__more {
  min-width: 0;
}

.novinki-discussion__lead {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

[data-theme=dark] .novinki-discussion__lead {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.novinki-discussion__app {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: inherit;
  text-decoration: none;
}

.novinki-discussion__app img {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  object-fit: cover;
}

.novinki-discussion__app span {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.novinki-discussion__app small {
  color: var(--brand, #2b7cff);
  font-size: 11px;
  font-weight: 700;
}

.novinki-discussion__app strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.novinki-discussion__app em {
  flex: 0 0 auto;
  color: var(--muted, #5b6470);
  font-size: 12px;
  font-style: normal;
}

.novinki-discussion__thread,
.novinki-discussion__more {
  display: grid;
  gap: 10px;
}

.novinki-comment {
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.novinki-comment:hover {
  border-color: rgba(43, 124, 255, 0.32);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

[data-theme=dark] .novinki-comment {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
}

.novinki-comment__avatar {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.novinki-comment__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.novinki-comment__meta,
.novinki-comment__footer,
.novinki-comment__footer > span {
  display: flex;
  align-items: center;
}

.novinki-comment__meta {
  flex-wrap: wrap;
  gap: 5px 8px;
}

.novinki-comment__meta strong {
  font-size: 13px;
}

.novinki-comment__meta time {
  color: var(--muted, #5b6470);
  font-size: 11px;
}

.novinki-comment__topic {
  padding: 2px 6px;
  border-radius: 999px;
  color: #335dca;
  background: rgba(43, 124, 255, 0.12);
  font-size: 10px;
  font-weight: 750;
}

.novinki-comment__topic--review {
  color: #8a5700;
  background: rgba(245, 158, 11, 0.14);
}

.novinki-comment__topic--suggestion {
  color: #176b4a;
  background: rgba(16, 185, 129, 0.13);
}

.novinki-comment__text {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink, #121317);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

[data-theme=dark] .novinki-comment__text {
  color: var(--dark-text-primary, #e9eefb);
}

[data-theme=dark] .novinki-discussion__app strong {
  color: var(--dark-text-primary, #e9eefb);
}

.novinki-comment__footer {
  justify-content: space-between;
  gap: 8px;
  color: var(--muted, #5b6470);
  font-size: 11px;
}

.novinki-comment__footer > span {
  min-width: 0;
  gap: 6px;
}

.novinki-comment__footer img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.novinki-comment__footer b {
  overflow: hidden;
  max-width: 220px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.novinki-comment__footer em {
  flex: 0 0 auto;
  color: #e34868;
  font-style: normal;
  font-weight: 700;
}

.novinki-comment--compact {
  height: 100%;
}

/* Discovery swipe deck */
.novinki-discovery {
  overflow: hidden;
}

.novinki-discovery__stage {
  position: relative;
  min-width: 0;
}

.novinki-discovery__viewport {
  overflow: hidden;
  min-width: 0;
  border-radius: 22px;
  -webkit-overflow-scrolling: auto;
}
.novinki-discovery__viewport.swiper {
  display: block;
}

.novinki-discovery__track {
  display: flex;
  gap: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  touch-action: pan-y pinch-zoom;
  transform: translateZ(0);
  will-change: transform;
}

.novinki-discovery-card {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  width: 100%;
  min-height: clamp(390px, 49vw, 560px);
  border-radius: 22px;
  overflow: hidden;
  background: #101522;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout style;
}

.novinki-discovery-card__shots {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y;
  pointer-events: none;
  background: #101522;
}
.novinki-discovery-card__shots.swiper {
  display: block;
}
.novinki-discovery-card__shots.is-instant .novinki-discovery-shot {
  transition: none;
}

.novinki-discovery-card__shots-track {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  transform: none !important;
  touch-action: pan-y;
}

.novinki-discovery-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transform: none !important;
  transition: opacity 0.35s ease;
}
.novinki-discovery-shot.is-active {
  opacity: 1;
  z-index: 1;
}

.novinki-discovery-card__shots:not([data-shots-ready]) .novinki-discovery-shot:first-child {
  opacity: 1;
  z-index: 1;
}

.novinki-discovery-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.novinki-discovery-card__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 8, 14, 0.92) 0%, rgba(5, 8, 14, 0.58) 50%, rgba(5, 8, 14, 0.2) 100%);
}

.novinki-discovery-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  width: min(580px, 72%);
  min-height: 100%;
  padding: clamp(18px, 3vw, 38px);
  color: #fff;
  pointer-events: none;
}

.novinki-discovery-card__cta {
  align-self: flex-start;
  pointer-events: auto;
  min-width: 120px;
  justify-content: center;
  color: #101522;
  background: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.novinki-discovery-card__cta:hover {
  color: #101522;
  background: #f3f6ff;
}

.novinki-discovery-card__app {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.novinki-discovery-card__app > img {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  border-radius: 17px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.novinki-discovery-card__app span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.novinki-discovery-card__app small {
  opacity: 0.7;
  font-size: 12px;
}

.novinki-discovery-card__app strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(22px, 3.2vw, 40px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.novinki-discovery-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.novinki-discovery-card__chips span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.novinki-discovery__stage > .novinki-experience-nav {
  z-index: 5;
  top: 50%;
}

.novinki-rising {
  margin-top: 24px;
}

.novinki-rising .cards-grid {
  margin-top: 8px;
}

.novinki-empty {
  opacity: 0.7;
  padding: 12px 0;
}

.novinki-scroll-sentinel {
  width: 100%;
  height: 1px;
  margin-top: 8px;
  pointer-events: none;
  visibility: hidden;
}

.novinki-metric {
  font-size: 12px;
}

.novinki-date {
  opacity: 0.85;
}

@media (max-width: 640px) {
  .novinki-page {
    padding: 0 0 40px;
  }
  .liquid-glass.hero-text.novinki-hero {
    min-height: 0;
    margin-top: 16px;
    margin-inline: var(--page-gutter, 12px);
    padding: 15px 14px;
    border-radius: 18px;
  }
  .novinki-hero__eyebrow {
    gap: 4px;
    max-width: 100%;
    margin-bottom: 10px;
    padding: 5px 7px;
    font-size: 8px;
  }
  .novinki-hero__head h1 {
    font-size: clamp(23px, 7vw, 30px);
    font-weight: 780;
    line-height: 1.14;
  }
  .novinki-hero .subtitle {
    margin-top: 9px;
    font-size: 13px;
  }
  .novinki-splash {
    padding: 10px;
  }
  .novinki-splash-card {
    min-height: 150px;
  }
  .novinki-splash-card--shot {
    aspect-ratio: 16/9;
    min-height: min-content;
  }
  .novinki-splash-card__cover img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }
  .novinki-splash-card__title {
    font-size: 15px;
  }
  .novinki-splash-card__inner {
    padding: 12px;
    gap: 10px;
  }
  .novinki-splash-card__body {
    gap: 5px;
  }
  .novinki-splash-card__chips {
    flex-shrink: 0;
  }
  .novinki-infeed {
    padding: 12px;
    border-radius: 19px;
  }
  .novinki-infeed__head {
    align-items: center;
    margin-bottom: 12px;
  }
  .novinki-infeed__head h3 {
    font-size: 22px;
  }
  .novinki-infeed__eyebrow {
    font-size: 9px;
  }
  .novinki-video-slide,
  .novinki-discovery-card {
    border-radius: 16px;
  }
  .novinki-video-slide__media {
    min-height: 350px;
    aspect-ratio: 4/5;
  }
  .novinki-video-slide__media video {
    object-position: center;
  }
  .novinki-video-slide__overlay {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 9px;
  }
  .novinki-video-slide__overlay > img {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }
  .novinki-video-slide__copy strong {
    font-size: 14px;
  }
  .novinki-video-slide__rating {
    display: none;
  }
  .novinki-video-slide__cta {
    padding: 7px 10px;
    font-size: 11px;
  }
  .novinki-video-reel .novinki-experience-nav,
  .novinki-discovery .novinki-experience-nav {
    display: none;
  }
  .novinki-discussion__grid {
    display: block;
  }
  .novinki-discussion__lead {
    padding: 10px;
  }
  .novinki-discussion__thread,
  .novinki-discussion__more {
    display: flex;
    gap: 10px;
    margin: 0 -10px;
    padding: 0 10px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .novinki-discussion__more {
    margin-top: 10px;
  }
  .novinki-comment {
    flex: 0 0 min(82vw, 330px);
    scroll-snap-align: start;
  }
  .novinki-discovery-card {
    min-height: 0;
    aspect-ratio: 16/9;
  }
  .novinki-discovery-card__shade {
    background: linear-gradient(0deg, rgba(5, 8, 14, 0.95) 0%, rgba(5, 8, 14, 0.48) 68%, rgba(5, 8, 14, 0.18) 100%);
  }
  .novinki-discovery-card__content {
    width: 100%;
    gap: 8px;
    padding: 12px;
  }
  .novinki-discovery-card__app {
    gap: 10px;
  }
  .novinki-discovery-card__app > img {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }
  .novinki-discovery-card__app strong {
    font-size: 16px;
  }
  .novinki-discovery-card__chips span {
    padding: 4px 8px;
    font-size: 10px;
  }
  .novinki-discovery-card__cta {
    min-width: 0;
    padding: 7px 10px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .novinki-page * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .novinki-splash-card:hover {
    transform: none;
  }
  .novinki-splash-card:hover .novinki-splash-card__cover img {
    transform: none;
  }
  .novinki-video-slide,
  .novinki-discovery-card,
  .novinki-discovery-shot,
  .novinki-comment,
  .novinki-video-reel__dots button {
    transform: none !important;
    transition: none !important;
  }
}
footer {
  margin-top: 32px;
}

/*# sourceMappingURL=novinki.css.map */
