:root {
  --abyss-900: #04101a;
  --abyss-800: #071826;
  --abyss-700: #0b2334;
  --abyss-600: #113046;
  --teal-500: #17c9b2;
  --teal-400: #3fe0c8;
  --ember-500: #ff6b35;
  --ember-400: #ff8f5e;
  --ember-600: #e4501c;
  --ink: #eaf6f7;
  --ink-dim: #9fb6c2;
  --line: rgba(160, 220, 230, .13);
  --shell: 1180px;
  --radius: 12px;
  --radius-sm: 10px;
  --shadow-lg: 0 24px 56px rgba(2, 8, 14, .68);
}

* { 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.72;
  color: var(--ink);
  background:
    radial-gradient(820px 480px at 88% -8%, rgba(255, 107, 53, .2), transparent 62%),
    radial-gradient(900px 540px at 6% 4%, rgba(23, 201, 178, .16), transparent 60%),
    linear-gradient(180deg, var(--abyss-800), var(--abyss-900) 62%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal-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(4, 16, 26, .9);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(2, 8, 14, .55);
}

.site-header::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-500), var(--ember-500) 55%, transparent);
}

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

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

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

.brand:hover img {
  transform: translateY(-3px);
  filter: drop-shadow(0 6px 18px rgba(23, 201, 178, .5));
}

.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: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform .26s ease, box-shadow .26s ease, color .26s ease, background .26s ease;
}

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

.btn-ghost {
  color: var(--teal-400);
  border: 1px solid rgba(63, 224, 200, .5);
  background: rgba(23, 201, 178, .08);
}

.btn-ghost:hover {
  color: var(--abyss-900);
  background: var(--teal-400);
  border-color: var(--teal-400);
  box-shadow: 0 12px 26px rgba(23, 201, 178, .3);
  transform: translateY(-2px);
}

.btn-gold {
  color: #180600;
  border: 1px solid rgba(255, 143, 94, .55);
  background: linear-gradient(135deg, var(--ember-600), var(--ember-500) 48%, var(--ember-400));
  box-shadow: 0 12px 26px rgba(255, 107, 53, .28);
}

.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, var(--ember-400), var(--ember-500));
  opacity: 0;
  transition: opacity .3s ease;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(255, 107, 53, .45);
}

.btn-gold:hover::after { opacity: 1; }

.btn-lg { padding: 16px 38px; font-size: 18px; }

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

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

.hero { padding: 44px 0 12px; }

.hero-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(63, 224, 200, .18);
  box-shadow: var(--shadow-lg);
}

.hero-frame img {
  width: 100%;
  height: auto;
  filter: brightness(.58) saturate(.85) hue-rotate(-12deg);
  transform: scale(1.03);
  transition: transform 9s ease;
}

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

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 16, 26, .96) 0%, rgba(4, 16, 26, .9) 44%, rgba(4, 16, 26, .55) 72%, rgba(4, 16, 26, .1) 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, 58px);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(255, 107, 53, .16);
  border-left: 3px solid var(--ember-500);
  color: var(--ember-400);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
  text-shadow: 0 8px 28px rgba(2, 8, 14, .85);
}

.hero-title span {
  display: block;
  background: linear-gradient(92deg, var(--ember-400), var(--teal-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.section { padding: 60px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(23, 201, 178, .1);
  border: 1px solid rgba(63, 224, 200, .28);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 14px;
}

.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: 18px;
}

.slot-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--abyss-700);
  border: 1px solid var(--line);
  transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease;
}

.slot-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 4;
  background: linear-gradient(90deg, var(--teal-500), var(--ember-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .38s ease;
}

.slot-card:hover {
  transform: translateY(-6px);
  border-color: rgba(63, 224, 200, .4);
  box-shadow: 0 20px 40px rgba(2, 8, 14, .6);
}

.slot-card:hover::before { transform: scaleX(1); }

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

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

.slot-card:hover .slot-media img {
  transform: scale(1.07);
  filter: brightness(.45) saturate(1.05);
}

.slot-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 26px;
  background: linear-gradient(180deg, rgba(4, 16, 26, .1), rgba(4, 16, 26, .82));
  opacity: 0;
  transition: opacity .32s ease;
}

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

.slot-overlay .btn {
  transform: translateY(16px);
  transition: transform .34s ease, box-shadow .3s ease;
}

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

.slot-name {
  padding: 14px 16px 16px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  border-top: 1px solid var(--line);
}

.slot-name small {
  display: block;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-top: 5px;
}

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

.acc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 35, 52, .6);
  overflow: hidden;
  transition: border-color .28s ease, background .28s ease;
}

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

.acc[open] {
  border-color: rgba(255, 143, 94, .38);
  background: rgba(17, 48, 70, .6);
}

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

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

.acc > summary:hover { color: var(--ember-400); }

.acc > summary > .icon:first-child { color: var(--teal-500); font-size: 19px; }

.acc[open] > summary > .icon:first-child { color: var(--ember-500); }

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

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

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

.acc-body {
  padding: 2px 20px 20px 53px;
  color: var(--ink-dim);
  animation: reveal .3s ease;
}

.acc-body p { margin: 0; }

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

.toc { margin-bottom: 30px; }

.toc .acc-body { padding-left: 20px; }

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

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

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

.toc-list a:hover {
  background: rgba(23, 201, 178, .1);
  border-left-color: var(--teal-500);
  color: var(--teal-400);
}

.toc-list .sub { padding-left: 18px; font-size: 14.5px; }

.toc-list .sub a { color: var(--ink-dim); }

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

.article {
  background: rgba(7, 24, 38, .72);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 4vw, 50px);
  box-shadow: var(--shadow-lg);
}

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

.article h2 {
  position: relative;
  font-size: clamp(23px, 2.8vw, 30px);
  margin: 46px 0 18px;
  padding-bottom: 12px;
  line-height: 1.3;
}

.article h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 74px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ember-500), var(--teal-500));
}

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

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

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

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

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

.article ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .66em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--teal-500);
}

.steps {
  counter-reset: step;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 10px 0 10px 52px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.steps li:last-child { border-bottom: 0; }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 107, 53, .14);
  border: 1px solid rgba(255, 143, 94, .45);
  color: var(--ember-400);
  font-weight: 800;
  font-size: 14px;
}

.article hr {
  border: 0;
  height: 1px;
  margin: 40px 0;
  background: linear-gradient(90deg, rgba(63, 224, 200, .35), rgba(255, 107, 53, .25), transparent);
}

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

.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: linear-gradient(180deg, rgba(23, 201, 178, .16), rgba(23, 201, 178, .06));
  color: var(--teal-400);
  font-size: 13.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article tbody tr:nth-child(even) { background: rgba(255, 255, 255, .022); }

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

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

.article tbody tr:hover { background: rgba(23, 201, 178, .08); }

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

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

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

.site-footer {
  margin-top: 66px;
  border-top: 1px solid var(--line);
  background: rgba(3, 11, 18, .86);
  padding: 50px 0 26px;
}

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

.footer-brand img { height: 70px; 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: 13.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-400);
  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 .2s ease, padding-left .2s ease;
}

.footer-links a:hover { color: var(--ember-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(--ember-500); margin-top: 2px; }

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

.footer-bottom {
  margin-top: 36px;
  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(4, 16, 26, .94) 0%, rgba(4, 16, 26, .7) 60%, rgba(4, 16, 26, .3) 100%); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header .shell { min-height: 66px; gap: 10px; }
  .brand img { height: 40px; }
  .btn { padding: 10px 16px; font-size: 14px; }
  .hero { padding: 24px 0 0; }
  .hero-body { position: relative; top: auto; transform: none; max-width: none; padding: 0; }
  .hero-frame { border-radius: 14px; }
  .hero-frame::after { background: linear-gradient(180deg, rgba(4, 16, 26, .3), rgba(4, 16, 26, .78)); }
  .hero-mobile {
    padding: 22px 18px 26px;
    background: linear-gradient(180deg, rgba(11, 35, 52, .55), rgba(4, 16, 26, .8));
  }
  .slots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .toc-list { columns: 1; }
  .acc-body { padding-left: 20px; }
  .section { padding: 42px 0; }
  html { scroll-padding-top: 82px; }
}

@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; }
}
