/* === Цифровая астрология — дизайн-система === */
:root {
  --bg: #0c0a1f;
  --bg-2: #141130;
  --bg-3: #1d1845;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(232, 196, 104, 0.18);
  --gold: #e8c468;
  --gold-2: #f4dd9a;
  --violet: #8b6cff;
  --violet-2: #6d4fe0;
  --text: #efeaff;
  --muted: #a99fd1;
  --white: #ffffff;
  --radius: 18px;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

/* Звёздный фон */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 80% 20%, rgba(244,221,154,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 85%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(2px 2px at 90% 60%, rgba(139,108,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 10% 70%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 45% 10%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 40%, rgba(244,221,154,.5) 50%, transparent 51%);
  background-size: 480px 480px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(139, 108, 255, 0.22), transparent),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(232, 196, 104, 0.10), transparent),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 18px; }
h3 { font-size: 1.25rem; }

a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin-bottom: 14px; color: var(--muted); }
p.lead { font-size: 1.15rem; color: var(--text); }

.gold { color: var(--gold); }

/* === Кнопки === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.02rem;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-2px); }
.btn-tg {
  background: linear-gradient(135deg, #2aabee, #1d8fd1);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(42, 171, 238, .35);
}
.btn-tg:hover { box-shadow: 0 12px 32px rgba(42, 171, 238, .5); }
.btn-market {
  background: linear-gradient(135deg, var(--gold), #d4a942);
  color: #241a02;
  box-shadow: 0 8px 24px rgba(232, 196, 104, .3);
}
.btn-market:hover { box-shadow: 0 12px 32px rgba(232, 196, 104, .45); }
.btn-ghost {
  background: transparent;
  color: var(--gold-2);
  border: 1.5px solid var(--gold);
}
.btn svg { flex-shrink: 0; }

/* === Шапка === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 10, 31, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 196, 104, .12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1140px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo span em { color: var(--gold); font-style: normal; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); font-size: .95rem; font-weight: 600; }
.nav a:hover, .nav a.active { color: var(--gold-2); text-decoration: none; }
.nav .btn { padding: 10px 22px; font-size: .92rem; }
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--gold);
  margin: 5px 0;
  border-radius: 2px;
  transition: .3s;
}


/* === Hero === */
.hero {
  padding: 90px 0 70px;
  text-align: center;
  position: relative;
}
.hero .moon {
  font-size: 3.4rem;
  display: block;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 22px rgba(232, 196, 104, .55));
}
.hero h1 { max-width: 840px; margin: 0 auto 20px; }
.hero .lead { max-width: 640px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: .9rem; color: var(--muted); }

/* === Секции === */
.section { padding: 70px 0; }
.section-alt { background: rgba(255, 255, 255, 0.02); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-head p { font-size: 1.05rem; }

/* === Сетки и карточки === */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 196, 104, .45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.card .icon { font-size: 2.3rem; display: block; margin-bottom: 14px; }
.card h3 { margin-bottom: 10px; color: var(--gold-2); }
.card p { font-size: .96rem; margin-bottom: 12px; }
.card .more { font-weight: 700; font-size: .92rem; }

/* === Шаги === */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 8px; text-align: center; }
.step-num {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: #241a02;
  background: linear-gradient(135deg, var(--gold), #d4a942);
  box-shadow: 0 0 30px rgba(232, 196, 104, .35);
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: .94rem; }

/* === Тарифы === */
.tariff {
  text-align: center;
  display: flex;
  flex-direction: column;
}
.tariff .badge {
  display: inline-block;
  margin: -46px auto 14px;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #241a02;
  background: linear-gradient(135deg, var(--gold), #d4a942);
}
.tariff .t-name { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 6px; }
.tariff .t-price {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gold);
  margin: 10px 0 2px;
}
.tariff .t-per { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.tariff ul {
  list-style: none;
  text-align: left;
  margin: 0 0 24px;
  flex-grow: 1;
}
.tariff ul li {
  padding: 7px 0 7px 30px;
  position: relative;
  font-size: .95rem;
  color: var(--muted);
  border-bottom: 1px dashed rgba(255, 255, 255, .07);
}
.tariff ul li::before {
  content: "✦";
  position: absolute;
  left: 4px;
  color: var(--gold);
}
.tariff-best {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(232, 196, 104, .09), var(--card));
  position: relative;
}

/* === Подарок === */
.gift-banner {
  background: linear-gradient(135deg, rgba(139, 108, 255, .16), rgba(232, 196, 104, .12));
  border: 1px solid rgba(232, 196, 104, .3);
  border-radius: calc(var(--radius) + 6px);
  padding: 52px 40px;
  text-align: center;
}
.gift-banner .gift-emoji { font-size: 3rem; display: block; margin-bottom: 14px; }
.gift-banner h2 { margin-bottom: 12px; }
.gift-banner p { max-width: 620px; margin: 0 auto 28px; }


/* === FAQ === */
.faq-item {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  background: var(--card);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 20px 56px 20px 24px;
  cursor: pointer;
  position: relative;
}
.faq-q::after {
  content: "✦";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  transition: transform .3s;
  font-size: 1.1rem;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-a p { padding: 0 24px 20px; margin: 0; font-size: .97rem; }

/* === Доверие === */
.trust { text-align: center; }
.trust .icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.trust h3 { font-size: 1.08rem; margin-bottom: 8px; }
.trust p { font-size: .9rem; }

/* === CTA-блок === */
.cta-final { text-align: center; padding: 80px 0; }
.cta-final h2 { margin-bottom: 14px; }
.cta-final p { max-width: 560px; margin: 0 auto 32px; }

/* === Хлебные крошки === */
.breadcrumbs { padding: 22px 0 0; font-size: .88rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs li { color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "→"; margin-left: 8px; color: var(--gold); opacity: .6; }
.breadcrumbs a { color: var(--muted); }

/* === Текстовые страницы === */
.page-hero { padding: 60px 0 40px; text-align: center; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero .lead { max-width: 700px; margin: 0 auto; }
.article { max-width: 780px; margin: 0 auto; }
.article h2 { margin-top: 40px; }
.article ul { margin: 0 0 16px 22px; color: var(--muted); }
.article ul li { padding: 4px 0; }
.article .highlight {
  background: var(--card);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.article .highlight p { margin-bottom: 8px; }
.article .highlight p:last-child { margin-bottom: 0; }

/* === Знаки зодиака === */
.zodiac-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 28px 0; }
.zodiac {
  text-align: center;
  padding: 16px 8px;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: var(--card);
  font-size: .85rem;
  color: var(--muted);
  transition: .25s;
}
.zodiac:hover { border-color: var(--gold); color: var(--text); }
.zodiac .z-icon { font-size: 1.6rem; display: block; margin-bottom: 6px; }

/* === Футер === */
.footer {
  border-top: 1px solid rgba(232, 196, 104, .12);
  padding: 50px 0 30px;
  background: rgba(0, 0, 0, .25);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer h4 { font-size: .95rem; color: var(--gold); margin-bottom: 14px; font-family: var(--font-body); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: var(--muted); font-size: .92rem; }
.footer ul a:hover { color: var(--gold-2); }
.footer-about p { font-size: .9rem; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding-top: 22px;
  font-size: .82rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.disclaimer { font-size: .8rem; opacity: .75; max-width: 100%; margin-top: 10px; }


/* === Адаптив === */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .zodiac-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .burger { display: block; z-index: 110; }
  .nav {
    position: fixed;
    inset: 0;
    background: rgba(12, 10, 31, .97);
    backdrop-filter: blur(18px);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transform: translateY(-100%);
    transition: transform .35s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a { font-size: 1.25rem; }
  .burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 50px; }
  .section { padding: 50px 0; }
  .gift-banner { padding: 40px 24px; }
  .zodiac-grid { grid-template-columns: repeat(3, 1fr); }
  .tariff .badge { margin-top: -44px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .btn { width: 100%; justify-content: center; }
  .hero-cta { flex-direction: column; align-items: stretch; }
}

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