:root {
  --violet-900: #150733;
  --violet-800: #1d0a45;
  --violet-700: #2a0f60;
  --violet-600: #3b1a8c;
  --violet-500: #5c25c9;
  --violet-400: #712df4;
  --gold-500: #ffc72c;
  --gold-400: #ffd75a;
  --gold-600: #f0a800;
  --ink: #f4f0ff;
  --ink-dim: #c3b4e6;
  --line: rgba(255, 255, 255, .1);
  --shell: 1180px;
  --radius: 16px;
  --shadow-lg: 0 26px 60px rgba(8, 2, 24, .6);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 12% -6%, rgba(113, 45, 244, .38), transparent 60%),
    radial-gradient(760px 480px at 92% 6%, rgba(255, 199, 44, .12), transparent 62%),
    var(--violet-900);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-400); }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px;
}

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.sprite { display: none; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(21, 7, 51, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(8, 2, 24, .5);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 84px;
}

.brand { display: inline-flex; align-items: center; }

.brand img {
  height: 58px;
  width: auto;
  transition: transform .35s ease, filter .35s ease;
}

.brand:hover img {
  transform: scale(1.05) rotate(-2deg);
  filter: drop-shadow(0 0 16px rgba(255, 199, 44, .55));
}

.header-actions { display: flex; align-items: center; gap: 12px; }

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform .28s ease, box-shadow .28s ease, color .28s ease, border-color .28s ease;
}

.btn:active { transform: translateY(1px) scale(.98); }

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-20deg);
  z-index: 2;
}

.btn:hover::after { animation: shine .85s ease forwards; }

@keyframes shine {
  to { left: 130%; }
}

.btn-ghost {
  color: var(--gold-500);
  border: 2px solid var(--gold-500);
  background: transparent;
}

.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, var(--gold-500), var(--gold-400));
  transform: translateY(102%);
  transition: transform .35s cubic-bezier(.5, 0, .2, 1);
}

.btn-ghost:hover {
  color: var(--violet-900);
  box-shadow: 0 12px 28px rgba(255, 199, 44, .28);
  transform: translateY(-2px);
}

.btn-ghost:hover::before { transform: translateY(0); }

.btn-gold {
  color: var(--violet-900);
  border: 2px solid transparent;
  background: linear-gradient(120deg, var(--gold-600), var(--gold-500) 45%, var(--gold-400));
  box-shadow: 0 10px 26px rgba(255, 199, 44, .3);
  animation: pulse-gold 2.8s ease-in-out infinite;
}

.btn-gold:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 40px rgba(255, 199, 44, .48);
  animation-play-state: paused;
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 10px 26px rgba(255, 199, 44, .3); }
  50% { box-shadow: 0 10px 34px rgba(255, 199, 44, .55); }
}

.btn-lg { padding: 17px 40px; font-size: 19px; }

.btn .icon { font-size: 18px; }

/* ---------- hero ---------- */

.hero { padding: 46px 0 10px; }

.hero-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 199, 44, .22);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .04) inset;
}

.hero-frame img {
  width: 100%;
  height: auto;
  filter: brightness(.62) saturate(1.05);
  transform: scale(1.02);
  transition: transform 8s ease;
}

.hero-frame:hover img { transform: scale(1.07); }

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(21, 7, 51, .97) 0%, rgba(21, 7, 51, .93) 42%, rgba(21, 7, 51, .6) 70%, rgba(21, 7, 51, .14) 100%);
}

.hero-body {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  max-width: 560px;
  padding: 0 30px 0 clamp(20px, 5vw, 60px);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 199, 44, .14);
  border: 1px solid rgba(255, 199, 44, .4);
  color: var(--gold-400);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.02em;
  text-shadow: 0 6px 30px rgba(8, 2, 24, .8);
}

.hero-title span { color: var(--gold-500); display: block; }

.hero-note {
  margin: 16px 0 26px;
  color: var(--ink-dim);
  font-size: 16px;
  max-width: 430px;
}

/* ---------- sections ---------- */

.section { padding: 62px 0; }

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 10px;
}

.section-lead {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 8px;
}

.section-sub { color: var(--ink-dim); margin: 0 0 30px; max-width: 640px; }

/* ---------- slots ---------- */

.slots-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.slot-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--violet-800);
  border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.3, .8, .3, 1), box-shadow .35s ease, border-color .35s ease;
}

.slot-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 199, 44, .55);
  box-shadow: 0 22px 44px rgba(8, 2, 24, .6), 0 0 0 1px rgba(255, 199, 44, .25);
}

.slot-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }

.slot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease, filter .35s ease;
}

.slot-card:hover .slot-media img {
  transform: scale(1.09);
  filter: brightness(.5) saturate(1.1);
}

.slot-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(42, 15, 96, .3), rgba(21, 7, 51, .85));
  opacity: 0;
  transition: opacity .35s ease;
}

.slot-card:hover .slot-overlay { opacity: 1; }

.slot-overlay .btn {
  transform: translateY(14px) scale(.9);
  transition: transform .38s cubic-bezier(.3, .9, .3, 1.2), box-shadow .3s ease;
  animation: none;
}

.slot-card:hover .slot-overlay .btn { transform: translateY(0) scale(1); }

.slot-name {
  padding: 14px 16px 16px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
}

.slot-name small {
  display: block;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-dim);
  margin-top: 3px;
}

/* ---------- accordions ---------- */

.acc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(59, 26, 140, .35), rgba(29, 10, 69, .6));
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.acc + .acc { margin-top: 12px; }

.acc[open] {
  border-color: rgba(255, 199, 44, .4);
  box-shadow: 0 16px 36px rgba(8, 2, 24, .45);
}

.acc > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  transition: background .25s ease, color .25s ease;
}

.acc > summary::-webkit-details-marker { display: none; }

.acc > summary:hover { background: rgba(255, 199, 44, .08); color: var(--gold-400); }

.acc > summary .chev {
  margin-left: auto;
  transition: transform .3s ease;
  color: var(--gold-500);
  font-size: 20px;
}

.acc[open] > summary .chev { transform: rotate(180deg); }

.acc > summary h3 { margin: 0; font-size: 17px; font-weight: 700; }

.acc-body { padding: 4px 22px 22px; animation: reveal .35s ease; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.toc { margin-bottom: 34px; }

.toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 28px;
}

.toc-list li { break-inside: avoid; margin-bottom: 6px; }

.toc-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  transition: background .22s ease, color .22s ease, transform .22s ease;
}

.toc-list a:hover {
  background: rgba(255, 199, 44, .12);
  color: var(--gold-400);
  transform: translateX(5px);
}

.toc-list .sub { padding-left: 20px; font-size: 14.5px; color: var(--ink-dim); }

/* ---------- article ---------- */

.article {
  background: rgba(29, 10, 69, .55);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(22px, 4vw, 52px);
  box-shadow: var(--shadow-lg);
}

.article h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  margin: 0 0 24px;
  letter-spacing: -.02em;
}

.article h2 {
  font-size: clamp(23px, 2.8vw, 31px);
  margin: 46px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--gold-500);
  line-height: 1.25;
}

.article h3 {
  font-size: clamp(19px, 2.2vw, 22px);
  margin: 32px 0 12px;
  color: var(--gold-400);
}

.article p { margin: 0 0 18px; }

.article strong { color: var(--gold-400); font-weight: 700; }

.article ul { margin: 0 0 20px; padding: 0; list-style: none; }

.article ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.article ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: .62em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
}

.article hr {
  border: 0;
  height: 1px;
  margin: 42px 0;
  background: linear-gradient(90deg, transparent, rgba(255, 199, 44, .45), transparent);
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  font-size: 16px;
}

.article th,
.article td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

.article thead th {
  background: rgba(113, 45, 244, .32);
  color: var(--gold-400);
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.article tbody tr:last-child td { border-bottom: 0; }

.article tbody tr { transition: background .2s ease; }

.article tbody tr:hover { background: rgba(255, 199, 44, .07); }

.article td:first-child { font-weight: 600; }

.faq-list { margin-top: 22px; }

/* ---------- footer ---------- */

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: rgba(15, 4, 38, .8);
  padding: 52px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
}

.footer-brand img { height: 74px; width: auto; margin-bottom: 16px; }

.footer-brand p { color: var(--ink-dim); font-size: 15px; margin: 0 0 18px; }

.footer-col-title {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 14px;
}

.footer-links { list-style: none; margin: 0; padding: 0; }

.footer-links li { margin-bottom: 9px; }

.footer-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 15px;
  transition: color .22s ease, padding-left .22s ease;
}

.footer-links a:hover { color: var(--gold-400); padding-left: 5px; }

.footer-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.6;
}

.footer-note .icon { font-size: 20px; color: var(--gold-500); margin-top: 2px; }

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--gold-500);
  color: var(--gold-500);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--ink-dim);
  font-size: 14px;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .slots-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-frame::after { background: linear-gradient(90deg, rgba(21, 7, 51, .92) 0%, rgba(21, 7, 51, .72) 58%, rgba(21, 7, 51, .35) 100%); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header .shell { min-height: 68px; gap: 10px; }
  .brand img { height: 42px; }
  .btn { padding: 10px 16px; font-size: 14px; }
  .hero { padding: 26px 0 0; }
  .hero-body { position: relative; top: auto; transform: none; max-width: none; padding: 0; }
  .hero-frame { border-radius: 18px; }
  .hero-frame::after { background: linear-gradient(180deg, rgba(21, 7, 51, .35), rgba(21, 7, 51, .75)); }
  .hero-mobile {
    padding: 22px 18px 26px;
    background: linear-gradient(180deg, rgba(59, 26, 140, .5), rgba(29, 10, 69, .75));
  }
  .slots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .toc-list { columns: 1; }
  .section { padding: 42px 0; }
  html { scroll-padding-top: 84px; }
}

@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
