:root {
  --bg: #0d0a14;
  --card: #1a1228;
  --text: #f5f0ff;
  --muted: #a89bc4;
  --accent: #f5c842;
  --accent2: #a855f7;
  --link: #e9d48a;
  --header-bg: #08060f;
  --border: #2d1f4a;
}

* { box-sizing: border-box; }
html {
  /* Меньше «прыжка» контента при появлении вертикального скролла (DevTools / смена ширины) */
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Эмулятор ширины иногда оставляет горизонтальный scrollLeft — без перезагрузки блок «уезжает» */
  overflow-x: hidden;
}
a { color: var(--link); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
/* Логотип: ограничиваем «коробку», сохраняем пропорции. Горизонтальный вордмарк при max-height
   даёт большую ширину; узкий вертикальный PNG останется узким — см. подсказку в Studio (широкий 3:1…5:1). */
.logo img {
  display: block;
  width: auto;
  height: auto;
  max-height: 64px;
  max-width: min(420px, 58vw);
  object-fit: contain;
  object-position: left center;
}
@media (max-width: 1023px) {
  .logo img {
    max-height: 56px;
    max-width: min(168px, 42vw);
  }
}
/* Крупнее логотип только вместе с «десктопной» шапкой (см. min-width ниже по файлу). */
@media (min-width: 1024px) {
  .logo img {
    max-height: 72px;
    max-width: min(480px, 42vw);
  }
}
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.nav a { text-decoration: none; font-weight: 600; color: var(--text); }
.nav a:hover { text-decoration: underline; color: var(--link); }
/* Текущий раздел (генератор ставит aria-current на пункт главного меню) */
.nav a.nav__link--current,
.nav a[aria-current="page"] {
  color: var(--link);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid color-mix(in srgb, var(--link) 70%, var(--border));
  padding-bottom: 0.15em;
}
.nav a.nav__link--current:hover,
.nav a[aria-current="page"]:hover {
  color: color-mix(in srgb, var(--link) 88%, var(--text));
  border-bottom-color: var(--link);
}
.header-cta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  align-content: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: max-content;
}
.header-cta .btn,
.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
  min-height: 40px;
  padding: 0.5rem 0.95rem;
  font-size: 0.875rem;
  text-align: center;
}
.lang-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.lang-switcher:empty { display: none; }
.footer-lang {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.footer-lang:has(.lang-switcher:empty) {
  display: none;
  margin-bottom: 0;
}
.lang-switcher--footer .lang-switcher__pill {
  font-size: 0.78rem;
  padding: 0.3rem 0.55rem;
  min-width: 1.85rem;
}
.lang-switcher__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--card);
}
a.lang-switcher__pill:hover {
  border-color: var(--link);
  color: var(--link);
}
.lang-switcher__pill--current {
  border-color: color-mix(in srgb, var(--link) 55%, var(--border));
  color: var(--link);
  cursor: default;
}
.btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { border-color: #334155; color: var(--text); }
.btn-accent {
  background: var(--accent2);
  color: #111 !important;
  text-decoration: none;
}
a.btn-accent:hover {
  color: #111 !important;
  filter: brightness(1.05);
}
/* Компактные CTA в мобильной шапке — одна строка, без переноса слов столбиком */
.btn-header-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.72rem;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 36px;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}
.btn-header-sm.btn-primary {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.main { max-width: 1160px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
/* Office page shells must not stretch tables past the content column */
.content > [class$="-page"],
.content [class*="-page"] {
  max-width: 100%;
  overflow-x: visible;
}

/* Видимые хлебные крошки (не главная) */
.breadcrumbs {
  margin: 0 0 1rem;
  padding: 0;
}
.breadcrumbs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  color: var(--border);
  font-weight: 400;
  margin-left: 0.5rem;
  pointer-events: none;
}
.breadcrumbs__link {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.breadcrumbs__link:hover {
  color: var(--text);
}
.breadcrumbs__item--current {
  color: var(--text);
  font-weight: 500;
  max-width: 100%;
}
.hero { margin-bottom: 2rem; }
.hero h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); line-height: 1.2; margin: 0.5rem 0 1rem; }
.hero--simple { margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.hero--simple__h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); line-height: 1.25; margin: 0; }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; margin: 0; }

/* Визуальный hero (баннер + CTA) */
.hero-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: clamp(360px, 42vw, 460px);
  margin-bottom: 2rem;
  background: var(--card) center/cover no-repeat;
  background-image: var(--hero-img);
  border: 1px solid var(--border);
}
.hero-visual--gradient {
  background-image: linear-gradient(135deg, var(--header-bg) 0%, var(--card) 45%, color-mix(in srgb, var(--accent) 35%, var(--card)) 100%);
}
.hero-visual__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.72) 38%,
    rgba(0, 0, 0, 0.28) 58%,
    transparent 78%
  );
  pointer-events: none;
}
.hero-visual__inner {
  position: relative;
  z-index: 1;
  max-width: min(100%, 520px);
  margin: clamp(1rem, 3vw, 1.75rem);
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.35rem, 3.5vw, 2.25rem);
  background: rgba(8, 10, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
.hero-visual__promo {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0.35rem 0 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.hero-visual__amount {
  font-size: clamp(2.35rem, 8vw, 4.1rem);
  font-weight: 900;
  line-height: 1.02;
  margin: 0.35rem 0 0;
  color: #fbbf24;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65), 0 0 28px rgba(251, 191, 36, 0.35);
  letter-spacing: -0.02em;
}
.hero-visual__subline {
  font-size: clamp(1.05rem, 2.8vw, 1.55rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0.35rem 0 0.65rem;
  color: #fff;
}
.hero-visual__cta-note {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  font-style: italic;
  color: color-mix(in srgb, var(--muted) 70%, #fff 30%);
}
.hero-visual__fineprint {
  margin: 0 0 1rem;
  font-size: clamp(0.72rem, 2vw, 0.82rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--muted) 35%, #fff 65%);
  max-width: 36rem;
}
.hero-visual__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: min(100%, 13.5rem);
  min-height: 48px;
  margin-top: 0.25rem;
  padding: 0.85rem 1.85rem;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  font-weight: 800;
  line-height: 1.2;
  color: #0a0a0a !important;
  background: #24ff81 !important;
  border: none;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(36, 255, 129, 0.35);
  text-decoration: none;
}
.hero-visual__cta:hover {
  filter: brightness(1.06);
  color: #0a0a0a !important;
}
.hero-cashback-strip {
  margin: -1.25rem 0 1.75rem;
  padding: 0.65rem 1rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border);
  border-radius: 0 0 14px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fbbf24;
}

/* Parallax hero (4 слоя, скролл + мышь; JS: assets/hero-parallax.js) */
.hero-visual--parallax {
  background-image: none;
  background-color: var(--bg);
  min-height: clamp(400px, 48vw, 520px);
}
/* Растягиваем блок на ширину вьюпорта: hero лежит внутри .main (max-width ~1160px).
   Только .hero-visual--parallax — обычный баннер / колесо без этого класса не трогаем. */
.main > .hero-visual--parallax {
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}
/* На главной крошек нет — первый ребёнок main это параллакс; убираем верхний padding main,
   иначе между шапкой и баннером остаётся «полоска» (фон body / рамка). */
.main:has(> .hero-visual--parallax:first-child) {
  padding-top: 0;
}
.hero-visual--parallax .hero-parallax__layers {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  z-index: 0;
}
.hero-visual--parallax .hero-parallax__layer {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  will-change: transform;
}
.hero-visual--parallax .hero-parallax__layer--bg { z-index: 0; }
.hero-visual--parallax .hero-parallax__layer--far {
  z-index: 1;
  opacity: 0.22;
  mix-blend-mode: screen;
}
.hero-visual--parallax .hero-parallax__layer--near {
  z-index: 2;
  opacity: 0.18;
  mix-blend-mode: screen;
}
.hero-visual--parallax .hero-parallax__layer--mug {
  z-index: 3;
}
.hero-visual--parallax .hero-visual__scrim {
  z-index: 4;
  background: linear-gradient(
    105deg,
    rgba(10, 6, 18, 0.92) 0%,
    rgba(10, 6, 18, 0.45) 38%,
    rgba(10, 6, 18, 0.12) 62%,
    transparent 100%
  );
}
.hero-visual--parallax .hero-visual__inner {
  position: relative;
  z-index: 5;
}

/* Brand goat hero (goatspins.com-style layout) */
.hero-goat {
  position: relative;
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  margin-bottom: 2rem;
  min-height: clamp(380px, 52vw, 520px);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.main:has(> .hero-goat:first-child) {
  padding-top: 0;
}
.hero-goat__bg {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  z-index: 0;
}
.hero-goat__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr minmax(180px, 240px);
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem);
  min-height: inherit;
}
.hero-goat__offer {
  background: rgba(12, 8, 24, 0.78);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.hero-goat__eyebrow {
  color: var(--accent2);
  margin-bottom: 0.35rem;
}
.hero-goat__offer-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.15rem;
  line-height: 1.2;
}
.hero-goat__offer-amount {
  font-size: clamp(2.4rem, 5vw, 3.25rem);
  font-weight: 900;
  margin: 0 0 0.35rem;
  line-height: 1;
  color: #fff;
}
.hero-goat__offer-sub {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-goat__code {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text);
}
.hero-goat__code strong {
  color: var(--accent2);
  font-weight: 800;
}
.hero-goat__cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem 1rem;
  font-weight: 800;
  border-radius: 10px;
}
.hero-goat__fineprint {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
}
.hero-goat__character {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 280px;
  pointer-events: none;
  position: relative;
  z-index: 3;
}
.hero-goat__character img {
  max-height: clamp(280px, 42vw, 460px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  transform: translate3d(0, var(--float-y, 0), 0);
  will-change: transform;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.5));
}
.hero-goat__sidecards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hero-goat__sidecard {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  background: rgba(18, 10, 32, 0.72);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.hero-goat__sidecard:hover {
  border-color: var(--accent);
  color: var(--text);
}
.hero-goat__sidecard-title {
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero-goat__sidecard-link {
  font-size: 0.78rem;
  color: var(--accent2);
  font-weight: 700;
}
@media (max-width: 900px) {
  .hero-goat__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-goat__character {
    order: -1;
    min-height: 200px;
  }
  .hero-goat__character img {
    max-height: 220px;
  }
  .hero-goat__sidecards {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-goat__sidecard {
    flex: 1 1 140px;
    max-width: 200px;
  }
}

/* Brand Rollino hero — purple/gold arcade layout (unique iGaming template) */
.hero-rollino {
  position: relative;
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  margin-bottom: 2rem;
  min-height: clamp(400px, 54vw, 540px);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--accent2) 22%, transparent), transparent),
    linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--header-bg) 90%, #000) 100%);
}
.main:has(> .hero-rollino:first-child) {
  padding-top: 0;
}
.hero-rollino__hex {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath fill='%23a855f7' d='M28 0l28 16v32L28 64 0 48V16z'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  pointer-events: none;
  z-index: 0;
}
.hero-rollino__bg {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  z-index: 0;
  opacity: 0.92;
}
.hero-rollino__glow {
  position: absolute;
  width: min(520px, 55vw);
  height: min(520px, 55vw);
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent2) 35%, transparent) 0%, transparent 68%);
  pointer-events: none;
  z-index: 1;
}
.hero-rollino__vipbar {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.65rem clamp(1rem, 3vw, 2rem) 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-rollino__vipbar-label {
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}
.hero-rollino__vipbar-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 80%, transparent);
  overflow: hidden;
  max-width: 280px;
}
.hero-rollino__vipbar-fill {
  display: block;
  height: 100%;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
}
.hero-rollino__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(210px, 290px) 1fr minmax(190px, 250px);
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem);
  min-height: clamp(340px, 46vw, 460px);
}
.hero-rollino__offer {
  background: linear-gradient(145deg, rgba(26, 18, 40, 0.92), rgba(13, 10, 20, 0.88));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  border-radius: 18px;
  padding: 1.35rem 1.4rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 color-mix(in srgb, var(--accent) 25%, transparent);
}
.hero-rollino__eyebrow {
  color: var(--accent2);
  margin-bottom: 0.35rem;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-rollino__offer-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 0.2rem;
  line-height: 1.2;
  color: var(--text);
}
.hero-rollino__offer-amount {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 900;
  margin: 0 0 0.35rem;
  line-height: 1.05;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-rollino__offer-sub {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
.hero-rollino__code {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--text);
}
.hero-rollino__code strong {
  color: var(--accent);
  font-weight: 800;
}
.hero-rollino__cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.8rem 1rem;
  font-weight: 800;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 70%, #fff) 100%);
  color: #1a0a28 !important;
  border: none;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 40%, transparent);
}
.hero-rollino__cta:hover {
  filter: brightness(1.06);
  color: #1a0a28 !important;
}
.hero-rollino__fineprint {
  margin: 0.7rem 0 0;
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--muted);
}
.hero-rollino__character {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 280px;
  pointer-events: none;
  position: relative;
  z-index: 3;
}
.hero-rollino__character img {
  max-height: clamp(260px, 40vw, 440px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  transform: translate3d(0, var(--float-y, 0), 0);
  will-change: transform;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.55));
}
.hero-rollino__sidecards {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.hero-rollino__sidecard {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent2) 50%, transparent);
  background: linear-gradient(160deg, rgba(30, 16, 48, 0.85), rgba(12, 8, 22, 0.9));
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.hero-rollino__sidecard:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent2) 25%, transparent);
}
.hero-rollino__sidecard-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.hero-rollino__sidecard-title {
  font-weight: 800;
  font-size: 0.84rem;
  line-height: 1.25;
}
.hero-rollino__sidecard-link {
  font-size: 0.76rem;
  color: var(--accent2);
  font-weight: 700;
}
@media (max-width: 900px) {
  .hero-rollino__vipbar {
    flex-wrap: wrap;
  }
  .hero-rollino__grid {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
  }
  .hero-rollino__character {
    order: -1;
    min-height: 180px;
  }
  .hero-rollino__character img {
    max-height: 200px;
  }
  .hero-rollino__sidecards {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-rollino__sidecard {
    flex: 1 1 140px;
    max-width: 200px;
    text-align: left;
  }
  .hero-rollino__vipbar-track {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

/* Decorative wheel animation (lightweight CSS) */
.hero-visual__wheel-wrap {
  position: absolute;
  right: clamp(0.5rem, 3vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(170px, 32vw, 380px);
  aspect-ratio: 1 / 1;
  z-index: 0;
  cursor: pointer;
  display: block;
}
/* Золотой указатель (стрелочка) справа */
.hero-visual__wheel-wrap::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-right: 28px solid #fbbf24; /* Золотой цвет */
  filter: drop-shadow(-3px 3px 5px rgba(0,0,0,0.6));
  z-index: 10;
}
.hero-visual__wheel {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 50% 50%;
  animation: slowSpin 24s linear infinite;
  will-change: transform;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.45));
}
.hero-visual__wheel-glow {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 70%, transparent) 0%, transparent 70%);
  filter: blur(10px);
  opacity: 0.45;
  animation: softPulse 4s ease-in-out infinite;
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes softPulse {
  0% { opacity: 0.24; transform: scale(0.95); }
  50% { opacity: 0.62; transform: scale(1.05); }
  100% { opacity: 0.24; transform: scale(0.95); }
}

@media (max-width: 900px) {
  .hero-visual__wheel-wrap {
    right: 15px;
    opacity: 0.86;
    width: clamp(130px, 38vw, 250px);
  }
  .hero-visual__wheel {
    animation-duration: 36s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual__wheel,
  .hero-visual__wheel-glow {
    animation: none !important;
  }
  .hero-visual--parallax .hero-parallax__layer {
    will-change: auto;
  }
}

.page-intro { margin-bottom: 1.5rem; }
.page-intro__h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  margin: 0;
}

/* Слоты */
.slots-zone { margin-bottom: 2.25rem; }
.slots-zone__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.slots-zone__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.slots-zone__nav { display: flex; gap: 0.35rem; }
.slots-nav {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.slots-nav:hover { filter: brightness(1.08); }

.slots-root--grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  min-width: 0;
}
.slots-root--carousel .slots-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  touch-action: pan-x;
}
.slots-strip--dragging {
  scroll-snap-type: none;
}
.slots-root--carousel .slot-card {
  flex: 0 0 min(200px, 72vw);
  scroll-snap-align: start;
}

.slot-card {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.slot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.slot-card__media {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 220 / 280;
  background: color-mix(in srgb, var(--bg) 80%, var(--border));
}
.slot-card__media-link {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}
.slot-card__title-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.slot-card__title-link:hover .slot-card__title {
  color: var(--accent);
}
.slot-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slot-card__title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slot-card__play {
  text-align: center;
  margin-top: auto;
  font-size: 0.8rem;
  padding: 0.45rem 0.65rem;
}

@media (max-width: 1024px) {
  .slots-root--grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  /* Hero: колонка вместо наложения текста на колесо — удобный тап по CTA */
  .hero-visual {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    overflow: visible;
  }
  .hero-visual__scrim {
    border-radius: inherit;
  }
  .hero-visual__inner {
    order: 1;
    max-width: none;
    z-index: 2;
    margin: clamp(0.85rem, 3vw, 1.25rem);
    padding: clamp(1.15rem, 4vw, 1.75rem);
    padding-bottom: 0.75rem;
  }
  .hero-visual__promo {
    font-size: clamp(1.05rem, 4.2vw, 1.35rem);
  }
  .hero-visual__amount {
    font-size: clamp(2.1rem, 11vw, 3rem);
    line-height: 1.05;
  }
  .hero-visual__subline {
    font-size: clamp(0.95rem, 3.8vw, 1.15rem);
  }
  .hero-cashback-strip {
    margin: 0.5rem 0 1.25rem;
    border-radius: 12px;
    font-size: 0.72rem;
  }
  .hero-visual__fineprint {
    margin-bottom: 0.75rem;
  }
  .hero-visual__cta {
    display: block;
    width: 100%;
    max-width: min(20rem, 100%);
    margin-inline: auto;
    box-sizing: border-box;
    text-align: center;
    min-height: 44px;
    padding: 0.7rem 1rem;
    line-height: 1.25;
    touch-action: manipulation;
  }
  .hero-visual__wheel-wrap {
    order: 2;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    align-self: center;
    width: min(168px, 44vw);
    margin: 0.15rem auto 0.85rem;
    opacity: 1;
    flex-shrink: 0;
  }
  .hero-visual__wheel-wrap::after {
    right: -6px;
    border-top-width: 11px;
    border-bottom-width: 11px;
    border-right-width: 22px;
  }
  .slots-root--grid { grid-template-columns: repeat(2, 1fr); }
  .slots-zone__nav { width: 100%; justify-content: flex-end; }
}
.content {
  background: var(--card);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  color: var(--text);
  /* Единая читаемая база: без мелкого pt из Google Docs (после сборки inline font-size снят) */
  font-family: inherit;
  font-size: 1.0625rem;
  line-height: 1.65;
}
/* Остаточные span/div из Docs — не перетирают размер и межстрочный интервал */
.content p,
.content li,
.content td,
.content th,
.content blockquote,
.content dd,
.content dt {
  font-size: inherit !important;
  line-height: inherit !important;
  font-family: inherit !important;
  letter-spacing: normal !important;
  text-align: start !important;
}
.content h1,
.content h2,
.content h3,
.content h4 {
  font-family: inherit !important;
  line-height: 1.28 !important;
  letter-spacing: normal !important;
  text-align: start !important;
  word-spacing: normal !important;
}
.content h2 {
  font-size: clamp(1.2rem, 4.2vw, 1.45rem) !important;
}
.content h3 {
  font-size: clamp(1.05rem, 3.5vw, 1.2rem) !important;
}
.content h4 {
  font-size: 1.05rem !important;
}
.content .faq-item__q {
  font-size: 1.05rem !important;
  line-height: 1.35 !important;
}
.content .faq-item__a,
.content .faq-item__a p {
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
}
/* Docs: text-align:justify даёт огромные пробелы на узкой колонке; margin:0 слипает абзацы */
.content p {
  text-align: start !important;
  text-align-last: auto !important;
  word-spacing: normal !important;
  hyphens: manual;
  margin: 0 0 1rem !important;
}
.content p:last-child {
  margin-bottom: 0 !important;
}
.content .faq-item__a p {
  text-align: start !important;
  margin: 0 0 0.65rem !important;
}
.content .faq-item__a p:last-child {
  margin-bottom: 0 !important;
}
.content .page-dates {
  font-size: 0.78rem;
  color: var(--muted) !important;
  margin: 0 0 1rem;
  line-height: 1.45;
}
.content .page-dates__time {
  white-space: nowrap;
  color: var(--muted) !important;
}
/* Вставки из Google Docs с inline color:#000 — перекрываем для тёмной темы */
.content *:not(a) {
  color: inherit !important;
}
.content a {
  color: var(--link);
}
/* Картинки из контента: по центру блока, на всю ширину карточки (не сбоку) */
.content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 1rem auto;
}
.content figure {
  margin: 1rem 0;
  text-align: center;
}
.content figure img {
  margin-left: auto;
  margin-right: auto;
}

/* Office tables: horizontal scroll on mobile, no mid-word letter breaks */
.content .ym-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin: 1.25rem 0;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--border) 85%, var(--muted) 15%);
  background: color-mix(in srgb, var(--card) 72%, var(--muted) 14%);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--border) 50%, transparent);
}
.content .ym-table-wrap > table {
  width: 100%;
  min-width: 0;
  max-width: 100% !important;
  display: table !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.content .ym-table-wrap th,
.content .ym-table-wrap td {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  white-space: normal;
}
/* Компактные карточки/плитки офиса — без разрыва слов по буквам на 375px */
.content [class*="pay-name"],
.content [class*="pay-label"],
.content [class*="pay-ticker"],
.content [class*="pay-tile"],
.content [class*="banking-grid"],
.content [class*="pay-grid"] {
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: manual;
}

/* Таблицы из Google Docs: перекрываем inline border/фон под палитру темы */
.content table {
  width: 100% !important;
  max-width: 100%;
  border-collapse: collapse !important;
  margin: 1.25rem 0 !important;
  font-size: 0.95rem;
  line-height: 1.45;
  border: 1px solid color-mix(in srgb, var(--border) 85%, var(--muted) 15%) !important;
  border-radius: 10px;
  overflow: hidden;
  /* Чуть светлее чистого card, чтобы таблица не «проваливалась» в фон */
  background: color-mix(in srgb, var(--card) 72%, var(--muted) 14%) !important;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--border) 50%, transparent);
}
.content thead,
.content tbody,
.content tfoot,
.content tr {
  background: transparent !important;
}
.content th,
.content td {
  border: 1px solid color-mix(in srgb, var(--border) 80%, var(--muted) 20%) !important;
  padding: 0.7rem 0.9rem !important;
  text-align: left;
  vertical-align: top;
  color: inherit !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.content thead th,
.content thead td {
  background: color-mix(in srgb, var(--header-bg) 75%, var(--card) 25%) !important;
  color: var(--text) !important;
  font-weight: 700;
}
.content tbody th {
  background: color-mix(in srgb, var(--header-bg) 65%, var(--card) 35%) !important;
  font-weight: 700;
}
.content td {
  background: color-mix(in srgb, var(--card) 55%, transparent) !important;
}
.content tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--card) 40%, var(--bg) 35%) !important;
}
/* Docs часто делает шапку первой строкой &lt;td&gt; без &lt;thead&gt; */
.content table:not(:has(thead)) > tbody > tr:first-child > th,
.content table:not(:has(thead)) > tbody > tr:first-child > td {
  background: color-mix(in srgb, var(--header-bg) 75%, var(--card) 25%) !important;
  color: var(--text) !important;
  font-weight: 700;
}
@media (max-width: 768px) {
  .main {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  .content .ym-table-wrap > table,
  .content table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
    display: table !important;
    font-size: 0.82rem;
    line-height: 1.4;
  }
  .content th,
  .content td {
    padding: 0.55rem 0.6rem !important;
  }
  .content .ym-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
.content h2 { margin-top: 1.75rem; }

.faq-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.faq-block__title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.faq-item {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.faq-item__q {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--text);
}
.faq-item__a {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.faq-item__a p { margin: 0 0 0.65rem; }
.faq-item__a p:last-child { margin-bottom: 0; }

.scroll-top {
  position: fixed;
  z-index: 110;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.scroll-top:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}
.scroll-top[hidden] {
  display: none !important;
}

/* Footer: trust badges + payment icons (global, all pages) */
.footer-trust {
  margin: 0 auto 1.5rem;
  max-width: 960px;
}
.footer-trust__intro {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}
.footer-trust__intro-p {
  margin: 0 0 0.65rem;
}
.footer-trust__row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  justify-content: center;
  align-items: center;
}
.footer-trust__item {
  margin: 0;
}
.footer-trust__badge,
.footer-trust__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-trust__img {
  max-height: 42px;
  width: auto;
  max-width: 140px;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}
.footer-trust__link {
  opacity: 0.92;
}
.footer-trust__link:hover {
  opacity: 1;
}
.footer-trust__divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1rem auto;
  max-width: 720px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.footer-links {
  list-style: none; margin: 0 0 1rem; padding: 0;
  display: flex; flex-wrap: wrap; gap: 1rem 1.25rem;
  justify-content: center;
}
.footer-links a { color: var(--link); text-decoration: underline; text-underline-offset: 0.15em; }
.footer-links a:hover { color: var(--text); }
.copy { margin: 0; }

/* Header + mobile nav */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
}
.nav-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  flex: 1;
  justify-content: flex-end;
}
.nav-scrim {
  display: none;
}
.header-bar-end {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  flex-shrink: 0;
}
.header-mobile-cta {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.35rem;
  flex-shrink: 0;
}
.header-mobile-cta .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 1024px) and (max-width: 1320px) {
  .logo img {
    max-height: 58px;
    max-width: min(240px, 24vw);
  }
  .nav ul {
    gap: 0.55rem;
  }
  .nav a {
    font-size: 0.82rem;
  }
  .header-cta .btn,
  .btn-header {
    padding: 0.45rem 0.72rem;
    font-size: 0.78rem;
    min-height: 36px;
  }
}

/* Полоса с пунктами меню в одну линию — только от 1024px. Иначе iPhone в ландшафте (~844–932px)
   попадал в «десктоп», колонка CTA сжималась и Login/Register переносились столбиком. */
@media (min-width: 1024px) {
  /* Без display:contents — иначе в Safari меню может пропасть из потока */
  .header-bar {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem 1.5rem;
  }
  .header-bar > .logo {
    grid-column: 1;
    justify-self: start;
  }
  .header-bar-end {
    display: none;
  }
  .menu-toggle {
    display: none !important;
  }
  .nav-panel {
    grid-column: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(max-content, auto);
    align-items: center;
    gap: 0.75rem 1rem;
    flex: unset;
    justify-content: unset;
    position: static;
    width: 100%;
    max-width: none;
    height: auto;
    transform: none;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    overflow: visible;
  }
  .header-mid {
    grid-column: 2;
    justify-self: center;
    min-width: 0;
  }
  .header-cta {
    grid-column: 3;
    justify-self: end;
    align-self: center;
    flex-shrink: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
  .header-cta .btn {
    padding: 0.48rem 0.85rem;
    font-size: 0.8125rem;
    min-height: 38px;
  }
}

@media (max-width: 1023px) {
  .site-header {
    padding: 0.65rem 1rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  /* Логотип может сжиматься; выезжающее меню не участвует во flex-раскладке — иначе при ресайзе полоска с Login/Register ломается */
  .header-bar > .logo {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 42%;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-panel {
    flex: none;
    position: fixed;
    top: 0;
    right: 0;
    width: min(100%, 320px);
    height: 100%;
    height: 100dvh;
    margin: 0;
    padding: 4.5rem 1.25rem 1.5rem;
    padding-top: max(4.5rem, calc(env(safe-area-inset-top) + 3rem));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: var(--header-bg);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 24px rgba(0,0,0,0.35);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-panel.is-open {
    transform: translateX(0);
  }
  .nav-panel .header-mid {
    width: 100%;
  }
  .nav-panel .nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  .nav-panel .header-cta {
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }
  .nav-panel .header-cta .btn {
    text-align: center;
    width: 100%;
  }
  /* Очень узкий экран: в полоске шапки только основная CTA, Login остаётся в выезжающем меню */
  @media (max-width: 360px) {
    .header-mobile-cta .btn-ghost {
      display: none;
    }
  }
  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0,0,0,0.45);
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
  }
  .nav-scrim[hidden] {
    display: none !important;
  }
  body.nav-open {
    overflow: hidden;
  }
  .main {
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
    padding-bottom: max(3rem, env(safe-area-inset-bottom));
  }
  .site-footer {
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }
}

/* =====================================================================
   ROLLINO CONTENT-KIT — scoped to body.template-rollino only.
   Wide full-bleed sections + reusable blocks. Base template untouched.
   ===================================================================== */
body.template-rollino .main { max-width: 1240px; }

/* Full-bleed section that breaks out of the content column.
   Inner .rk-inner keeps a readable measure. Alternating backgrounds. */
body.template-rollino .rk-section {
  position: relative;
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  padding: clamp(2.25rem, 4.5vw, 3.75rem) 1.25rem;
}
body.template-rollino .rk-section + .rk-section { margin-top: 0; }
body.template-rollino .rk-section--alt {
  background:
    radial-gradient(1200px 400px at 15% -10%, rgba(168,85,247,0.14), transparent 60%),
    linear-gradient(180deg, rgba(26,18,40,0.55), rgba(13,10,20,0.85));
  border-block: 1px solid var(--border);
}
body.template-rollino .rk-section--accent {
  background:
    radial-gradient(900px 340px at 85% 0%, rgba(245,200,66,0.12), transparent 60%),
    linear-gradient(180deg, rgba(45,31,74,0.5), rgba(13,10,20,0.9));
  border-block: 1px solid var(--border);
}
body.template-rollino .rk-inner {
  max-width: 1200px;
  margin-inline: auto;
}
body.template-rollino .rk-inner--narrow { max-width: 820px; }
body.template-rollino .rk-section__head {
  margin: 0 0 1.5rem;
}
body.template-rollino .rk-section__head h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}
body.template-rollino .rk-section__head p {
  color: var(--muted);
  max-width: 62ch;
  margin: 0;
}

/* Feature grid — auto-fit cards */
body.template-rollino .rk-feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
body.template-rollino .rk-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1.35rem;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
body.template-rollino .rk-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent2);
  box-shadow: 0 12px 30px -18px rgba(168,85,247,0.6);
}
body.template-rollino .rk-card__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-size: 1.35rem;
  background: linear-gradient(135deg, rgba(168,85,247,0.25), rgba(245,200,66,0.2));
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
}
body.template-rollino .rk-card h3 { font-size: 1.05rem; margin: 0 0 0.4rem; }
body.template-rollino .rk-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Stat strip — big numbers */
body.template-rollino .rk-stat-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  text-align: center;
}
body.template-rollino .rk-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1rem;
}
body.template-rollino .rk-stat__num {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.template-rollino .rk-stat__label {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Pros / cons — two columns */
body.template-rollino .rk-proscons {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
body.template-rollino .rk-pros,
body.template-rollino .rk-cons {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
}
body.template-rollino .rk-pros { border-top: 3px solid #34d399; }
body.template-rollino .rk-cons { border-top: 3px solid #f87171; }
body.template-rollino .rk-pros h3,
body.template-rollino .rk-cons h3 { margin: 0 0 0.75rem; font-size: 1.05rem; }
body.template-rollino .rk-pros ul,
body.template-rollino .rk-cons ul { margin: 0; padding: 0; list-style: none; }
body.template-rollino .rk-pros li,
body.template-rollino .rk-cons li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 0.95rem;
}
body.template-rollino .rk-pros li::before {
  content: "+"; position: absolute; left: 0; top: 0;
  color: #34d399; font-weight: 800;
}
body.template-rollino .rk-cons li::before {
  content: "\2212"; position: absolute; left: 0; top: 0;
  color: #f87171; font-weight: 800;
}

/* Styled comparison table */
body.template-rollino .rk-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
}
body.template-rollino .rk-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
body.template-rollino .rk-table th,
body.template-rollino .rk-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
body.template-rollino .rk-table thead th {
  background: linear-gradient(180deg, rgba(168,85,247,0.22), rgba(168,85,247,0.08));
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}
body.template-rollino .rk-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
body.template-rollino .rk-table tbody tr:hover { background: rgba(168,85,247,0.08); }

/* Callout box */
body.template-rollino .rk-callout {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(245,200,66,0.12), rgba(168,85,247,0.1));
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}
body.template-rollino .rk-callout__icon { font-size: 1.4rem; line-height: 1.2; }
body.template-rollino .rk-callout p { margin: 0; }

/* Step cards — numbered flow */
body.template-rollino .rk-steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: rkstep;
}
body.template-rollino .rk-step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.25rem 1.25rem;
}
body.template-rollino .rk-step::before {
  counter-increment: rkstep;
  content: counter(rkstep);
  position: absolute;
  top: -0.9rem; left: 1.1rem;
  width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center;
  border-radius: 50%;
  font-weight: 800;
  color: #1a1228;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
body.template-rollino .rk-step h3 { margin: 0.4rem 0 0.4rem; font-size: 1.02rem; }
body.template-rollino .rk-step p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* Offer / bonus cards */
body.template-rollino .rk-offers {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
body.template-rollino .rk-offer {
  position: relative;
  background: linear-gradient(180deg, rgba(45,31,74,0.6), var(--card));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem 1.35rem 1.5rem;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
body.template-rollino .rk-offer:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -20px rgba(168,85,247,0.7);
}
body.template-rollino .rk-offer__tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1a1228;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
}
body.template-rollino .rk-offer__amount {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 800;
  margin: 0 0 0.3rem;
  color: var(--accent);
}
body.template-rollino .rk-offer__sub { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.9rem; }
body.template-rollino .rk-offer .btn { width: 100%; text-align: center; }

/* Light reveal — pure CSS scroll-driven, safe fallback (visible by default) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    body.template-rollino .rk-reveal {
      animation: rk-reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }
  }
}
@keyframes rk-reveal-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  body.template-rollino .rk-section { padding-inline: 1rem; }
}

/* Neutralize the base .content card so full-bleed sections read as a landing.
   Sections/blocks below supply their own surfaces. */
body.template-rollino .content {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}
/* Re-assert kit surfaces over base .content !important rules */
body.template-rollino .rk-stat__num,
body.template-rollino .rk-offer__amount { color: transparent !important; }
body.template-rollino .rk-offer__amount { color: var(--accent) !important; }
body.template-rollino .rk-offer__tag { color: #1a1228 !important; }
body.template-rollino .rk-step::before { color: #1a1228 !important; }

body.template-rollino .rk-table-wrap { margin: 0 !important; }
body.template-rollino .rk-table {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-collapse: collapse !important;
}
body.template-rollino .rk-table th,
body.template-rollino .rk-table td {
  border: none !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 0.85rem 1rem !important;
  background: transparent !important;
  color: inherit !important;
}
body.template-rollino .rk-table thead th {
  background: linear-gradient(180deg, rgba(168,85,247,0.22), rgba(168,85,247,0.08)) !important;
  color: var(--text) !important;
  font-weight: 700 !important;
}
body.template-rollino .rk-table tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.02) !important;
}
body.template-rollino .rk-table tbody tr:hover td {
  background: rgba(168,85,247,0.08) !important;
}
/* stat gradient number needs a real gradient, not transparent-only */
body.template-rollino .rk-stat__num {
  background: linear-gradient(135deg, var(--accent), var(--accent2)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

/* Button contrast on gold: dark text on primary, light on ghost.
   Base .content a { color: var(--link) } otherwise merges gold-on-gold. */
body.template-rollino .btn-primary,
body.template-rollino .content a.btn-primary,
body.template-rollino .slot-card__play.btn-primary {
  color: #1a1228 !important;
  background: linear-gradient(135deg, var(--accent), #ffd75e) !important;
  font-weight: 800 !important;
}
body.template-rollino .btn-ghost,
body.template-rollino .content a.btn-ghost {
  color: var(--text) !important;
  border-color: color-mix(in srgb, var(--accent2) 55%, var(--border)) !important;
}
body.template-rollino .btn-primary:hover,
body.template-rollino .content a.btn-primary:hover { filter: brightness(1.05); }

/* Improved slots for Rollino — purple card, gold play, hover lift */
body.template-rollino .slots-zone__title {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}
body.template-rollino .slot-card {
  background: linear-gradient(180deg, rgba(45,31,74,0.65), var(--card));
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
body.template-rollino .slot-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent2);
  box-shadow: 0 16px 34px -18px rgba(168,85,247,0.7);
}
body.template-rollino .slot-card__media {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 70%, var(--accent2) 12%);
}
body.template-rollino .slot-card__title-link:hover .slot-card__title { color: var(--accent); }
body.template-rollino .slots-nav {
  border-color: color-mix(in srgb, var(--accent2) 45%, var(--border));
}
