/* ===== Section Pages (Astrology, Human Design, etc.) ===== */

/* Section Hero */
.section-hero {
  position: relative;
  height: 40vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--header-h);
  background: center/cover no-repeat;
}
/* Фото hero (Page.image): на ВСЮ ширину секции, без полос по краям.
   Высота секции не меняется (40vh/min-300px) — cover заполняет контейнер,
   при несовпадении пропорций обрезает верх/низ (кроп по центру). */
.section-hero.hero-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--bg);
}
/* Светлая тема: hero-photo — cover/center/no-repeat в любом случае.
   Без этого html.light .astrology-hero (shorthand background с градиентом)
   сбрасывает background-size в auto → фото урезается по краям (кейс 21.08.2026). */
html.light .section-hero.hero-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.astrology-hero {
  background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2a 50%, #0a0a1a 100%);
}
.hd-hero {
  background: linear-gradient(135deg, #0a1a0a 0%, #1a2a0a 50%, #0a1a0a 100%);
}
.mf-hero {
  background: linear-gradient(135deg, #1a0a1a 0%, #2a0a2a 50%, #1a0a1a 100%);
}
.dr-hero {
  background: linear-gradient(135deg, #0a0a2a 0%, #0a1a2a 50%, #0a0a2a 100%);
}
.blog-hero {
  background: linear-gradient(135deg, #0a0a1a 0%, #14102a 50%, #0a0a1a 100%);
}
.legal-hero {
  background: linear-gradient(135deg, #0a0a0f 0%, #14101c 50%, #0a0a0f 100%);
}
html.light .legal-hero {
  background: linear-gradient(135deg, #f5f2ee 0%, #e8e4de 50%, #f5f2ee 100%);
}

/* ===== Legal pages (privacy-policy, public-offer) — чистый вид без header/footer/hero ===== */
.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 90px;
  line-height: 1.7;
}
.legal-back {
  margin: 0 0 32px;
  font-size: 15px;
}
.legal-back a {
  color: var(--accent);
  text-decoration: none;
}
.legal-back a:hover {
  text-decoration: underline;
}
.legal-title {
  font-family: var(--font-heading);
  font-size: 36px;
  margin: 0 0 12px;
  color: var(--text);
}
.legal-subtitle {
  font-size: 18px;
  color: var(--text2);
  margin: 0 0 40px;
}
.legal-page .section-article h2 {
  margin: 36px 0 14px;
  color: var(--text);
}
.legal-page .section-article h3 {
  margin: 22px 0 10px;
  color: var(--text);
}
.legal-page .section-article p,
.legal-page .section-article li {
  color: var(--text2);
}
.legal-page .section-article a {
  color: var(--accent);
}
.legal-page .section-article ul,
.legal-page .section-article ol {
  padding-left: 24px;
  margin: 10px 0 16px;
}
@media (max-width: 700px) {
  .legal-page { padding: 24px 16px 60px; }
  .legal-title { font-size: 28px; }
}
html.light .astrology-hero {
  background: linear-gradient(135deg, #f0e8e0 0%, #ded0c8 50%, #f0e8e0 100%);
}

.section-hero .hero-content h1 {
  font-family: var(--font-heading);
  font-size: 42px;
  color: #fff;
}
html.light .section-hero .hero-content h1 { color: #fff; }
.section-hero .hero-content p {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  max-width: 600px;
  margin: 10px auto 0;
}
html.light .section-hero .hero-content p { color: #fff; }
/* Светлая тема: секция hero как тёмная — белый текст + тёмное затемнение
   (убирает светлую дымку из style.css .hero-overlay, фото остаётся затемнённым) */
html.light .section-hero .hero-overlay {
  background: linear-gradient(180deg, rgba(10,10,15,.4) 0%, rgba(10,10,15,.2) 50%, rgba(10,10,15,.6) 100%);
}

/* Section Intro */
.section-intro {
  color: var(--text2);
  margin-bottom: 25px;
  font-size: 15px;
}

/* Section Article */
.section-article {
  margin-bottom: 40px;
}
.section-article h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  margin-bottom: 15px;
}
.section-article p {
  color: var(--text2);
  margin-bottom: 12px;
  font-size: 15px;
}

/* Tables */
.astro-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  font-size: 14px;
}
.astro-table th {
  background: var(--bg3);
  font-family: var(--font-heading);
  font-size: 15px;
  padding: 12px 15px;
  text-align: left;
  border-bottom: 2px solid var(--accent);
}
.astro-table td {
  padding: 10px 15px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}
.astro-table tr:hover td { background: var(--bg3); }

/* Signs Grid */
.signs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.sign-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: .3s;
}
.sign-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.sign-symbol {
  font-size: 42px;
  color: var(--accent);
  display: block;
  margin-bottom: 5px;
}
.sign-card h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 5px;
}
.sign-card p {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 3px;
}

/* Planet List */
.planet-list { margin-bottom: 40px; }
.planet-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.planet-item:last-child { border-bottom: none; }
.planet-icon {
  font-size: 28px;
  width: 40px;
  text-align: center;
  color: var(--accent);
}
.planet-item strong {
  font-size: 15px;
}

/* Tarot-style cards */
.tarot-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 15px;
}
.tarot-card h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 5px;
}
.tarot-card p {
  color: var(--text2);
  font-size: 14px;
}

/* CTA section */
.cta-section {
  margin-top: 50px;
  padding: 40px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
}
.cta-section h3 {
  font-family: var(--font-heading);
  font-size: 26px;
  margin-bottom: 10px;
}
.cta-section p {
  color: var(--text2);
  margin-bottom: 20px;
  font-size: 16px;
}
