/* ─── Reset & base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0c081a;
  color: #e8e4f2;
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #fbbf24; text-decoration: none; transition: color .2s; }
a:hover { color: #fde68a; }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  overflow: hidden;
  background: #0c081a;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  filter: blur(2px);
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(12, 8, 26, 0.85) 70%, #0c081a 100%);
  z-index: 1;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 900px;
}
.hero-eyebrow {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #fbbf24;
  margin: 0 0 16px;
}
.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 24px;
  color: #fff;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.8);
}
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #d1c8ed;
  max-width: 720px;
  margin: 0 auto 36px;
}

/* ─── CTA BUTTONS ─── */
.cta-btn {
  display: inline-block;
  padding: 18px 38px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b 60%, #d97706);
  color: #1a0f00 !important;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  border-radius: 50px;
  text-decoration: none !important;
  box-shadow:
    0 12px 32px rgba(251, 191, 36, 0.35),
    0 0 0 1px rgba(251, 191, 36, 0.6) inset;
  transition: transform .2s, box-shadow .2s;
  text-align: center;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px rgba(251, 191, 36, 0.5),
    0 0 0 1px rgba(251, 191, 36, 0.8) inset;
}
.cta-hero {
  font-size: 1.15rem;
  padding: 20px 44px;
}
.cta-wrap {
  margin: 56px 0;
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, rgba(91, 33, 182, 0.18), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 20px;
  backdrop-filter: blur(8px);
}
.cta-sub {
  margin: 14px 0 0;
  font-size: 0.95rem;
  color: #b8aedd;
}
.cta-final {
  margin: 80px 0 40px;
  background: linear-gradient(135deg, rgba(91, 33, 182, 0.3), rgba(124, 58, 237, 0.15));
  border-color: rgba(251, 191, 36, 0.3);
}

/* ─── STICKY CTA (mobile) ─── */
.cta-sticky {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 28px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b 60%, #d97706);
  color: #1a0f00;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border-radius: 50px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.5), 0 0 0 1px rgba(251,191,36,0.6) inset;
  z-index: 50;
  text-decoration: none;
  white-space: nowrap;
}

/* ─── LAYOUT ─── */
.layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
}

/* ─── TOC ─── */
.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  font-size: 0.92rem;
  padding-right: 14px;
}
.toc-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: #fbbf24;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}
.toc ul {
  list-style: none;
  padding: 0; margin: 0;
}
.toc li {
  margin: 6px 0;
}
.toc a {
  color: #b8aedd;
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 2px solid transparent;
  line-height: 1.4;
  transition: all .2s;
}
.toc a:hover {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.06);
  border-left-color: rgba(251, 191, 36, 0.4);
}
.toc a.active {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border-left-color: #fbbf24;
}

/* ─── CONTENT ─── */
.content {
  font-size: 17px;
  max-width: 780px;
}
.content h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  color: #fff;
  margin: 64px 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
  scroll-margin-top: 80px;
}
.content h2:first-child { margin-top: 0; }
.content h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.3rem, 2.4vw, 1.55rem);
  font-weight: 600;
  color: #fde68a;
  margin: 36px 0 14px;
  scroll-margin-top: 80px;
}
.content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fbbf24;
  margin: 24px 0 10px;
  letter-spacing: 0.02em;
}
.content p {
  margin: 14px 0;
  color: #d1c8ed;
}
.content strong {
  color: #fde68a;
  font-weight: 600;
}
.content ul, .content ol {
  margin: 18px 0 22px;
  padding-left: 24px;
}
.content li {
  margin: 8px 0;
  color: #d1c8ed;
}
.content li::marker {
  color: #fbbf24;
}

/* ─── SPREAD IMAGE under H2 ─── */
.spread-img {
  margin: 24px 0 32px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}
.spread-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* ─── TABLE ─── */
.tbl-wrap {
  margin: 28px 0;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.18);
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: rgba(91, 33, 182, 0.08);
}
.tbl th, .tbl td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(251, 191, 36, 0.1);
}
.tbl th {
  background: rgba(91, 33, 182, 0.2);
  color: #fbbf24;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tbl tr:last-child td {
  border-bottom: 0;
}
.tbl tr:hover td {
  background: rgba(251, 191, 36, 0.04);
}

/* ─── FAQ accordion ─── */
.content #часто-задаваемые-вопросы-о-раскладах-таро ~ h3,
.content h2[id="часто-задаваемые-вопросы-о-раскладах-таро"] ~ h3 {
  cursor: pointer;
  padding: 18px 48px 18px 20px;
  background: rgba(91, 33, 182, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.15);
  border-radius: 12px;
  margin: 12px 0 0;
  position: relative;
  transition: background .2s;
  font-size: 1.1rem;
}
.content h2[id="часто-задаваемые-вопросы-о-раскладах-таро"] ~ h3:hover {
  background: rgba(91, 33, 182, 0.2);
}
.content h2[id="часто-задаваемые-вопросы-о-раскладах-таро"] ~ h3::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #fbbf24;
  font-size: 1.6rem;
  font-weight: 300;
  transition: transform .2s;
}
.content h2[id="часто-задаваемые-вопросы-о-раскладах-таро"] ~ h3.open::after {
  transform: translateY(-50%) rotate(45deg);
}
.content h2[id="часто-задаваемые-вопросы-о-раскладах-таро"] ~ h3 + p {
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 20px;
  background: rgba(91, 33, 182, 0.04);
  border-left: 2px solid transparent;
  transition: max-height .3s, padding .2s, margin .2s, border-color .2s;
}
.content h2[id="часто-задаваемые-вопросы-о-раскладах-таро"] ~ h3.open + p {
  max-height: 800px;
  padding: 18px 20px;
  margin: 0 0 8px;
  border-left-color: #fbbf24;
}

/* ─── Disclaimer ─── */
.disclaimer {
  margin: 60px 0 0;
  padding: 24px 28px;
  background: rgba(45, 27, 95, 0.4);
  border-left: 3px solid #fbbf24;
  border-radius: 0 12px 12px 0;
}
.disclaimer h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #fbbf24;
  margin: 0 0 8px;
}
.disclaimer p {
  margin: 0;
  font-size: 0.93rem;
  color: #b8aedd;
}

/* ─── Footer ─── */
footer {
  text-align: center;
  padding: 40px 24px 60px;
  border-top: 1px solid rgba(251, 191, 36, 0.12);
  color: #8a7fb5;
  font-size: 0.9rem;
}

/* ─── Mobile ─── */
@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 40px 18px 100px;
  }
  .toc {
    position: static;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(91, 33, 182, 0.1);
    border-radius: 12px;
    max-height: 360px;
  }
  .content {
    max-width: 100%;
  }
  .content h2 {
    margin-top: 48px;
  }
  .cta-sticky {
    display: inline-block;
  }
  .hero {
    min-height: 75vh;
    padding: 60px 20px 40px;
  }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .content { font-size: 16px; }
  .cta-btn { padding: 16px 28px; font-size: 0.98rem; }
  .cta-wrap { padding: 32px 20px; margin: 40px 0; }
  .tbl th, .tbl td { padding: 10px 12px; font-size: 0.88rem; }
}
