/* Slotico — casinoslotico.com · v2 */
:root {
  --bg: #0a0824;
  --bg-deep: #06051a;
  --bg-surface: #130f3b;
  --bg-raised: #1b1652;
  --border: #2f2a7c;
  --text: #fbf9ff;
  --text-muted: #c0badf;
  --text-dim: #9089b8;
  --gold: #ffc933;
  --gold-hi: #ffe27a;
  --gold-lo: #e89a00;
  --gold-edge: #a36400;
  --violet: #7a45f5;
  --violet-hi: #9a6bff;
  --violet-edge: #3e1f9c;
  --on-gold: #140a2e;
  --gutter: 16px;
  --band: clamp(44px, 6vw, 88px);
  --radius: 18px;
  --radius-sm: 12px;
  --disp: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--disp);
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.75rem, 1.15rem + 2.6vw, 3.25rem); line-height: 1.1; font-weight: 800; margin-bottom: 18px; }
h2 { font-size: clamp(1.35rem, 1.05rem + 1.2vw, 2.1rem); line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.3rem); line-height: 1.3; margin-bottom: 10px; }

p { margin-bottom: 14px; color: var(--text-muted); overflow-wrap: anywhere; }
p strong, li strong, td strong { color: var(--text); }
ul, ol { margin-bottom: 16px; padding-left: 22px; color: var(--text-muted); }
li { margin-bottom: 8px; overflow-wrap: anywhere; }
li::marker { color: var(--gold); }

a { color: var(--gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-hi); }
p a, li a, td a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); min-width: 0; }
.prose { max-width: 820px; }

section { padding-block: var(--band); position: relative; }
section + section { border-top: 1px solid rgba(47, 42, 124, .55); }
.band-alt { background: linear-gradient(180deg, var(--bg-deep), var(--bg)); }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--gold); color: var(--on-gold); padding: 8px 14px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { left: 8px; }

/* ── Icons ── */
.ic { width: 1.2em; height: 1.2em; flex: none; display: inline-block; vertical-align: middle; }
.h-ic {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 13px; margin-bottom: 14px;
  background: linear-gradient(145deg, var(--violet-hi), var(--violet));
  box-shadow: 0 4px 0 var(--violet-edge), inset 0 1px 0 rgba(255, 255, 255, .35);
  color: #fff;
}
.h-ic .ic { width: 24px; height: 24px; }

/* ── Header ── */
.site-header {
  position: relative; z-index: 100;
  background: rgba(10, 8, 36, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--violet-hi) 40%, var(--gold) 75%, var(--gold-lo));
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 64px; padding: 10px var(--gutter) 13px;
  max-width: 1180px; margin-inline: auto;
}
.logo-link { display: inline-flex; align-items: center; flex: none; }
.logo-img { width: clamp(104px, 28vw, 146px); height: auto; display: block; }
.main-nav { display: none; gap: 4px; }
.main-nav a {
  color: var(--text-muted); font-size: .9rem; font-weight: 600;
  padding: 7px 12px; border-radius: 999px;
}
.main-nav a:hover { color: var(--text); background: var(--bg-raised); }
.header-actions { display: flex; align-items: center; gap: 8px; }

.sub-nav { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--gutter) 12px; scrollbar-width: none; }
.sub-nav::-webkit-scrollbar { display: none; }
.sub-nav a {
  flex: none; font-size: .8125rem; font-weight: 600; color: var(--text-muted);
  border: 1px solid var(--border); background: var(--bg-surface);
  padding: 6px 12px; border-radius: 999px;
}

/* ── 3D buttons ── */
.btn {
  --edge: var(--gold-edge);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--disp); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em;
  text-align: center; white-space: nowrap; text-decoration: none; cursor: pointer;
  min-height: 52px; padding: 12px 26px; border-radius: 999px; border: 0;
  box-shadow: 0 6px 0 var(--edge), 0 12px 24px -8px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .45);
  transform: translateY(0);
  transition: transform .12s ease, box-shadow .12s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--edge), 0 16px 28px -8px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .45); filter: brightness(1.06); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--edge), 0 4px 10px -4px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn .ic { width: 20px; height: 20px; }

.btn-gold, .btn-gold:hover, .btn-gold:active {
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 45%, var(--gold-lo) 100%);
  color: var(--on-gold);
}
.btn-violet, .btn-violet:hover, .btn-violet:active {
  --edge: var(--violet-edge);
  background: linear-gradient(180deg, var(--violet-hi) 0%, var(--violet) 100%);
  color: #fff;
}
.btn-ghost, .btn-ghost:hover, .btn-ghost:active {
  --edge: #251f66;
  background: var(--bg-raised); color: var(--text);
  box-shadow: 0 6px 0 var(--edge), inset 0 0 0 2px var(--border);
}
.btn-ghost:hover { box-shadow: 0 8px 0 var(--edge), inset 0 0 0 2px var(--violet); }
.btn-ghost:active { box-shadow: 0 1px 0 var(--edge), inset 0 0 0 2px var(--violet); }

.header-actions .btn { min-height: 40px; padding: 7px 16px; font-size: .875rem; box-shadow: 0 4px 0 var(--edge), inset 0 1px 0 rgba(255, 255, 255, .4); }
.header-actions .btn:hover { box-shadow: 0 5px 0 var(--edge), inset 0 1px 0 rgba(255, 255, 255, .4); }
.header-actions .btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px 12px; margin-block: 8px 22px; }
.btn-row .btn { flex: 1 1 100%; }

/* ── Hero ── */
.hero {
  padding-block: clamp(36px, 6vw, 96px) clamp(48px, 7vw, 104px);
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(122, 69, 245, .38), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(255, 201, 51, .12), transparent 70%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(154, 107, 255, .22) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy .lede { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: var(--text-muted); max-width: 60ch; }
.hero-note { font-size: .8125rem; color: var(--text-dim); margin: 0; }
.hero-note .ic { color: var(--gold); margin-right: 4px; }

.hero-art { position: relative; margin: 0 6px 12px 0; }
.hero-frame {
  position: relative; border-radius: 22px; overflow: hidden;
  border: 2px solid rgba(154, 107, 255, .7);
  box-shadow: 10px 10px 0 var(--violet-edge), 0 30px 60px -20px rgba(122, 69, 245, .6);
  transform: rotate(1.6deg);
  animation: hero-in .7s cubic-bezier(.2, .9, .3, 1.2) both;
}
.hero-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-ticket {
  position: absolute; right: -10px; bottom: -34px; z-index: 2;
  display: flex; flex-direction: column; line-height: 1.05;
  font-family: var(--disp); font-weight: 800; color: var(--on-gold);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  padding: 12px 18px 12px 16px; border-radius: 14px;
  box-shadow: 0 6px 0 var(--gold-edge), 0 18px 30px -10px rgba(0, 0, 0, .7);
  transform: rotate(-4deg);
  animation: ticket-in .6s .45s cubic-bezier(.2, .9, .3, 1.4) both;
}
.hero-ticket b { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }
.hero-ticket span { font-size: .8125rem; font-weight: 700; }
.hero-ticket::before, .hero-ticket::after {
  content: ""; position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%; background: var(--bg);
}
.hero-ticket::before { left: -7px; }
.hero-ticket::after { right: -7px; }

@keyframes hero-in { from { opacity: 0; transform: rotate(6deg) translateY(24px) scale(.96); } to { opacity: 1; transform: rotate(1.6deg); } }
@keyframes ticket-in { from { opacity: 0; transform: rotate(-14deg) scale(.6); } to { opacity: 1; transform: rotate(-4deg); } }

/* ── Feature cards (offset shadow) ── */
.cards { display: grid; gap: 22px; margin-top: 8px; }
.card {
  --shade: var(--violet-edge);
  background: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 7px 7px 0 var(--shade);
  min-width: 0;
}
.card > :last-child { margin-bottom: 0; }
.card.shade-gold { --shade: var(--gold-edge); }
.card.flat { box-shadow: none; }
.card .h-ic { width: 40px; height: 40px; margin-bottom: 12px; }
.card-kicker { display: block; font-size: .8125rem; font-weight: 600; color: var(--gold); margin-bottom: 4px; }
.card-title { font-family: var(--disp); font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }

.stack { display: grid; gap: 22px; }

/* ── Split sections (text + media) ── */
.split { display: grid; gap: 28px; align-items: start; }
.media {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 2px solid var(--border);
  box-shadow: 8px 8px 0 var(--gold-edge);
}
.media.shade-violet { box-shadow: 8px 8px 0 var(--violet-edge); }

/* ── Chips ── */
.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 14px 22px; list-style: none; padding: 0; }
.chip {
  margin: 0; background: var(--bg-raised); border: 1px solid var(--border); color: var(--text);
  font-size: .8125rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
}

/* ── Tables ── */
.table-wrap {
  width: 100%; overflow-x: auto; margin-block: 18px;
  border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-surface);
}
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .875rem; }
th { background: var(--bg-raised); color: var(--text); font-family: var(--disp); font-weight: 700; padding: 11px 14px; border-bottom: 2px solid var(--border); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid rgba(47, 42, 124, .6); color: var(--text-muted); }
tbody tr:nth-child(even) td { background: rgba(27, 22, 82, .35); }
tr:last-child td { border-bottom: none; }

/* ── CTA strip ── */
.cta-strip {
  display: grid; gap: 18px; align-items: center;
  padding: 26px 22px; border-radius: 22px;
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(255, 201, 51, .22), transparent 60%),
    linear-gradient(135deg, #3a1d9e, #5a2fd6 55%, #7a45f5);
  border: 2px solid rgba(255, 255, 255, .14);
  box-shadow: 8px 8px 0 var(--gold-edge);
}
.cta-strip p { color: #e6defc; margin: 0; }
.cta-strip .card-title { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.7rem); margin-bottom: 6px; }

/* ── FAQ ── */
.faq { display: grid; gap: 12px; margin-top: 20px; }
details {
  background: var(--bg-surface); border: 2px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 18px; transition: border-color .2s ease, background-color .2s ease;
}
details[open] { background: var(--bg-raised); border-color: rgba(255, 201, 51, .5); }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary h3 { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; font-size: 1rem; }
summary h3::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc933' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat;
  border: 1px solid var(--border);
  transition: transform .2s ease;
}
details[open] summary h3::after { transform: rotate(180deg); }
details p { margin: 12px 0 0; }

/* ── Legal pages ── */
.page-head { padding-block: clamp(32px, 5vw, 64px) 8px; border: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; font-size: .8125rem; color: var(--text-dim); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border); }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.meta-date { font-size: .875rem; color: var(--text-dim); }
.legal { padding-top: 12px; }
.legal h2 { margin-top: 36px; font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); }
.legal h2:first-child { margin-top: 0; }

/* ── 404 ── */
.nf { text-align: center; padding-block: clamp(56px, 10vw, 120px); }
.nf-code {
  font-family: var(--disp); font-weight: 800; line-height: 1; letter-spacing: -.04em;
  font-size: clamp(5rem, 3rem + 12vw, 10rem);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 50%, var(--gold-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 var(--violet-edge));
  margin-bottom: 12px;
}
.nf p { max-width: 52ch; margin-inline: auto; }
.nf .btn-row { justify-content: center; }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; list-style: none; padding: 0; margin-top: 28px; }

/* ── Footer ── */
.site-footer { background: var(--bg-deep); padding-block: clamp(36px, 5vw, 64px); border-top: 3px solid var(--violet-edge); }
.footer-content { display: flex; flex-direction: column; gap: 22px; }
.footer-logo-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.trust-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.trust-nav a { color: var(--text-muted); font-size: .875rem; display: inline-block; min-height: 32px; line-height: 32px; }
.trust-nav a:hover, .trust-nav a[aria-current="page"] { color: var(--gold); }
.payment-marks-band {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-block: 16px; border-block: 1px solid var(--border);
}
.payment-mark-item { display: flex; align-items: center; justify-content: center; }
.payment-mark-img { height: 20px; width: auto; display: block; }
.footer-legal { font-size: .8125rem; color: var(--text-dim); line-height: 1.55; }
.footer-legal p { color: var(--text-dim); }
.responsible-marks { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.resp-mark { height: 28px; width: auto; display: block; }
.copyright { font-size: .8125rem; margin-top: 12px; }

/* ── Mobile sticky CTA ── */
.m-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 10px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(10, 8, 36, 0), rgba(10, 8, 36, .96) 35%);
}
.m-cta .btn { width: 100%; }
body.has-mcta { padding-bottom: 84px; }

@media (min-width: 600px) {
  .btn-row .btn { flex: 0 0 auto; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-2 { grid-template-columns: 1fr 1fr; }
  .payment-mark-img { height: 32px; }
}

@media (min-width: 900px) {
  .site-header { position: sticky; top: 0; }
  .sub-nav { display: none; }
  .main-nav { display: flex; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .split { grid-template-columns: 1.1fr .9fr; gap: 48px; }
  .split.reverse { grid-template-columns: .9fr 1.1fr; }
  .split.reverse > :first-child { order: 2; }
  .split .media { margin-top: 58px; } /* верх картинки = верх заголовка H2 (иконка 44px + отступ 14px) */
  .split.reverse .media { margin-top: 0; } /* картинка слева: верх = верх иконки, иконка не «висит» над пустотой */
  .cta-strip { grid-template-columns: 1fr auto; padding: 32px 36px; }
  .payment-mark-img { height: 40px; }
  .m-cta { display: none; }
  body.has-mcta { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
