/* SEO-кластер «Как начать разговор» — светлая палитра, Cormorant/Oranienbaum.
   Унификация с pesy-dlya-dvoih / besplatnye-piesy (СИ 19.07 09:21). */

:root {
  --burgundy: #431d28;
  --burgundy-light: #5a2a38;
  --gold: #d4af37;
  --gold-hover: #f4d03f;
  --cream: #f9f5f7;
  --text: #000000;         /* чёрный чёрный, СИ 19.07 09:46 */
  --hairline: #d4af37;     /* золотая линия вместо полупрозрачной */
  --max: 780px;
  --max-hub: 940px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: 22px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Шапка (бургунди) ---------- */

.top {
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-light) 100%);
  color: #fff;
  padding: 16px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.top-inner {
  max-width: var(--max-hub);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.top a.brand {
  color: var(--gold);
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
  font-family: 'Oranienbaum', 'Cormorant Garamond', serif;
}
.top a.brand:hover { color: var(--gold-hover); }
.top .brand-name {
  font-size: 26px;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.top .brand-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 4px;
  font-style: italic;
}

/* Правая группа шапки: счётчик + кнопка */
.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Счётчик «Сейчас в онлайн-театре N» (единый с лендингом) ---------- */

.online-counter-row {
  display: block;
  text-align: center;
  margin: 22px 0 4px;
}
.online-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(76, 175, 80, 0.35);
  border-radius: 999px;
  font-family: 'Inter', 'Cormorant Garamond', sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.01em;
}
.online-counter__label { white-space: nowrap; }
.online-counter__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: #4caf50;
  flex-shrink: 0;
}
.online-counter__icon svg { width: 100%; height: 100%; display: block; }
.online-counter__num {
  font-weight: 700;
  font-size: 1.25rem;
  color: #4caf50;
  font-variant-numeric: tabular-nums;
  min-width: 1.3em;
  text-align: center;
}

/* В шапке +15%, светлая тема требует чуть более контрастной рамки */
.top .online-counter {
  font-size: 1.09rem;
  padding: 9px 18px;
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(76, 175, 80, 0.55);
}
.top .online-counter__num { font-size: 1.44rem; }
.top .online-counter__icon { width: 18px; height: 18px; }

/* Счётчик на светлом фоне под нижней кнопкой */
main .online-counter {
  background: rgba(67, 29, 40, 0.04);
  border-color: rgba(76, 175, 80, 0.45);
  color: var(--text);
}

/* ---------- Кнопка «Войти в театр» в шапке (золотой контур) ---------- */

.btn-enter {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 24px;
  background: transparent;
  color: #fff;
  border: 2px solid var(--gold);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-enter:hover {
  background: var(--gold);
  color: var(--burgundy);
}

/* ---------- Hero: маски на раскрытой книге ---------- */

.hero-cluster {
  background:
    linear-gradient(180deg, rgba(67,29,40,0.22) 0%, rgba(67,29,40,0.42) 100%),
    url('/assets/landing/images/Leonardo_Phoenix_10_Minimalist_elegant_logo_for_Theater_for_Tw_1.webp');
  background-size: cover;
  background-position: center;
  padding: 70px 24px 60px;
  text-align: center;
  color: #fff;
  border-bottom: 1px solid var(--hairline);
}
.hero-cluster h1 {
  margin: 0 auto;
  max-width: 780px;
  color: #fff;
  font-family: 'Oranienbaum', 'Cormorant Garamond', serif;
  font-size: 42px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

/* ---------- Хлебные крошки ---------- */

.crumbs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px 4px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: #000000;
}
.crumbs a { color: #000000; text-decoration: none; }
.crumbs a:hover { color: var(--burgundy); text-decoration: underline; }
.crumbs .sep { margin: 0 8px; color: var(--gold); }
.crumbs [aria-current="page"] { color: var(--burgundy); font-weight: 600; }

/* ---------- Основной контент ---------- */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 24px 64px;
  flex: 1;
}
main.hub { max-width: var(--max-hub); }

h2 {
  font-family: 'Oranienbaum', 'Cormorant Garamond', serif;
  font-size: 32px;
  line-height: 1.3;
  margin: 44px 0 18px;
  color: var(--burgundy);
  font-weight: 400;
  letter-spacing: 0.5px;
}
.lead {
  font-size: 24px;
  line-height: 1.55;
  color: #000000;
  margin: 8px 0 32px;
  font-weight: 600;
}
p { margin: 0 0 20px; color: #000000; font-size: 22px; }
a { color: var(--burgundy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; font-weight: 600; }
a:hover { color: var(--gold); }
strong { color: #000000; font-weight: 700; }

/* ---------- CTA-блок (кремовый на светлом) ---------- */

.cta {
  margin: 56px 0 24px;
  padding: 36px 32px;
  border: 2px solid var(--gold);
  border-radius: 6px;
  background: var(--cream);
  text-align: center;
}
.cta-title {
  font-family: 'Oranienbaum', 'Cormorant Garamond', serif;
  font-size: 30px;
  color: #000000;
  margin: 0 0 20px;
  letter-spacing: 0.5px;
  font-weight: 500;
}
.cta-btn {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 28px;
  background: var(--burgundy);
  color: #ffffff;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  transition: all 0.2s;
}
.cta-btn:hover { background: var(--gold); color: var(--burgundy); }

/* ---------- Внутренние ссылки (низ сателлита) ---------- */

.internal-links {
  margin: 56px 0 0;
  padding: 32px 24px 8px;
  border-top: 2px solid var(--gold);
}
.internal-links h2 {
  font-size: 28px;
  margin: 0 0 20px;
  color: var(--burgundy);
}
.internal-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.internal-links li { margin: 0 0 14px; }
.internal-links a {
  color: var(--burgundy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-size: 22px;
  font-weight: 600;
}
.internal-links a:hover { color: var(--gold); }

/* ---------- Хаб: плитка карточек ---------- */

.hub-section { margin: 48px 0 32px; }
.hub-section-title {
  font-family: 'Oranienbaum', 'Cormorant Garamond', serif;
  font-size: 26px;
  letter-spacing: 0.5px;
  color: var(--burgundy);
  font-weight: 500;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--gold);
  display: inline-block;
}
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.hub-tile {
  display: block;
  padding: 24px 24px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.hub-tile:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 18px rgba(67, 29, 40, 0.08);
  transform: translateY(-1px);
}
.hub-tile-title {
  font-family: 'Oranienbaum', 'Cormorant Garamond', serif;
  color: var(--burgundy);
  font-size: 26px;
  font-weight: 500;
  margin: 0;
  line-height: 1.3;
  letter-spacing: 0.3px;
}

/* ---------- Подвал ---------- */

footer {
  background: var(--burgundy);
  color: rgba(255, 255, 255, 0.72);
  padding: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}
.footer-inner {
  max-width: var(--max-hub);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}
footer a:hover { color: var(--gold); }

/* ---------- Адаптив ---------- */

@media (max-width: 640px) {
  body { font-size: 20px; }
  p { font-size: 20px; }
  .top { padding: 14px 20px; }
  .top-inner { gap: 12px; }
  .top .brand-name { font-size: 22px; letter-spacing: 3px; }
  .top .brand-tagline { font-size: 14px; }
  .top-actions { gap: 10px; width: 100%; justify-content: space-between; }
  .top .online-counter { font-size: 0.98rem; padding: 7px 15px; }
  .top .online-counter__num { font-size: 1.26rem; }
  .btn-enter { padding: 8px 18px; font-size: 0.95rem; }
  .hero-cluster { padding: 50px 20px 44px; }
  .hero-cluster h1 { font-size: 32px; }
  .lead { font-size: 22px; }
  h2 { font-size: 26px; }
  main { padding: 20px 20px 48px; }
  .crumbs { padding: 14px 20px 4px; font-size: 18px; }
  .cta { padding: 28px 22px; }
  .cta-title { font-size: 24px; }
  .cta-btn { font-size: 17px; padding: 13px 34px; }
  .hub-grid { grid-template-columns: 1fr; }
  .hub-tile { padding: 22px; }
  .hub-section-title { font-size: 22px; margin: 0 0 16px; padding-bottom: 8px; }
  .hub-tile-title { font-size: 22px; }
  .online-counter { font-size: 0.85rem; padding: 6px 14px; }
  .online-counter__num { font-size: 1.1rem; }
  .online-counter__icon { width: 14px; height: 14px; }
  .online-counter-row { margin: 16px 0 2px; }
  .footer-inner { justify-content: center; text-align: center; }
}
