/* =========================================================
   Diwali • MahaLakshmi Jayanti 2026
   Палитра благословения: глубокий красный, царственный фиолет,
   живое золото, лепестки лотоса.
   ========================================================= */

:root {
  --wine: #4c0519;
  --wine-deep: #2a0310;
  --violet: #1e0b36;
  --violet-soft: #2d1450;
  --gold: #eab308;
  --gold-warm: #f59e0b;
  --gold-soft: #fde68a;
  --lotus: #fbcfe8;
  --lotus-deep: #f9a8d4;
  --ivory: #fffaf3;
  --text: #fff6ea;
  --text-muted: #d9cbb8;
  --text-gold: #efc14b;
  --glass: rgba(30, 11, 54, 0.42);
  --glass-border: rgba(234, 179, 8, 0.28);
  --header-h: 84px;
  --radius: 28px;
  --shadow-gold: 0 0 28px rgba(234, 179, 8, 0.35), 0 0 60px rgba(245, 158, 11, 0.18);
  --font-display: "Forum", "Times New Roman", serif;
  --font-serif: "Forum", "Times New Roman", serif;
  --font-ui: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.011em;
  line-height: 1.65;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(245, 158, 11, 0.18), transparent 55%),
    radial-gradient(900px 600px at 0% 20%, rgba(76, 5, 25, 0.9), transparent 50%),
    linear-gradient(165deg, var(--violet) 0%, var(--wine) 48%, var(--violet) 100%);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--text-gold);
  text-decoration: none;
}

a:hover {
  color: var(--text);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.04em;
  line-height: 1.18;
  text-wrap: balance;
}

h1 {
  letter-spacing: 0.035em;
  line-height: 1.12;
}

h2 {
  letter-spacing: 0.045em;
}

h3 {
  letter-spacing: 0.03em;
  line-height: 1.22;
}

/* Мягкое «дыхание» золотого света за всей страницей */
.page-glow {
  pointer-events: none;
  position: fixed;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 70% 10%, rgba(234, 179, 8, 0.12), transparent 40%),
    radial-gradient(ellipse at 20% 80%, rgba(249, 168, 212, 0.08), transparent 45%);
  animation: glowPulse 10s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.festive-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.festive-rangoli {
  position: absolute;
  width: min(520px, 58vw);
  opacity: 0.22;
  mix-blend-mode: screen;
  filter: saturate(1.15);
}

.festive-rangoli--tl {
  top: -120px;
  left: -160px;
  animation: rangoliSpinTL 48s linear infinite;
}

.festive-rangoli--br {
  right: -140px;
  bottom: -80px;
  width: min(460px, 52vw);
  opacity: 0.2;
  animation: rangoliSpinBR 64s linear infinite reverse;
}

@keyframes rangoliSpinTL {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rangoliSpinBR {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.diya-divider {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 32px));
  margin: -24px auto 8px;
  pointer-events: none;
}

.diya-divider img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  object-position: center 62%;
  mix-blend-mode: screen;
  opacity: 0.88;
  filter: saturate(1.1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.diya-divider--soft {
  margin: 8px auto;
}

.diya-divider--soft img {
  opacity: 0.72;
  height: 72px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(30, 11, 54, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--glass-border);
}

.header-inner {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-gold);
  white-space: nowrap;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
}

.nav a:hover {
  color: var(--text-gold);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.header-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--gold);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-gold {
  color: var(--wine-deep);
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 45%, var(--gold-warm) 100%);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  color: var(--wine-deep);
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(234, 179, 8, 0.55);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--header-h));
  padding: 24px 20px 80px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.hero-grid {
  position: relative;
  z-index: 3;
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-gold);
  text-shadow: none;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
}

.hero-copy h1 span {
  display: block;
  margin-top: 10px;
  color: var(--text-gold);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 0.62em;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.hero-lead {
  max-width: 38ch;
  color: var(--text-muted);
  font-size: 1.12rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 32px;
}

.hero-meta span {
  padding: 8px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.06);
  backdrop-filter: blur(10px);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-diya {
  position: absolute;
  z-index: 4;
  width: 92px;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: diyaFlicker 2.4s ease-in-out infinite;
}

.hero-diya--left {
  left: 4%;
  bottom: 8%;
}

.hero-diya--right {
  right: 6%;
  top: 18%;
  width: 78px;
  animation-delay: 0.8s;
}

@keyframes diyaFlicker {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: brightness(1) drop-shadow(0 0 14px rgba(245, 158, 11, 0.55));
  }
  45% {
    transform: translateY(-4px) scale(1.05);
    filter: brightness(1.22) drop-shadow(0 0 26px rgba(253, 230, 138, 0.85));
  }
}

.hero-portrait {
  margin: 0;
  text-align: center;
}

.portrait-stage {
  position: relative;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 48px 36px 28px;
}

.portrait-rangoli {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 128%;
  max-width: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.72;
  animation: rangoliBehind 90s linear infinite;
}

@keyframes rangoliBehind {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-diya {
  display: none;
}

.portrait-diya {
  display: none;
}

.portrait-diya--left {
  left: 0;
  bottom: 18px;
}

.portrait-diya--right {
  right: 0;
  bottom: 18px;
  animation-delay: 1.1s;
}

/* Арочная рамка с живым золотым нимбом */
.portrait-frame {
  position: relative;
  z-index: 2;
  width: min(100%, 460px);
  margin: 0 auto;
  aspect-ratio: 3 / 4.15;
  padding: 10px;
  border-radius: 230px 230px 36px 36px;
  background:
    linear-gradient(180deg, rgba(253, 230, 138, 0.95), rgba(245, 158, 11, 0.55) 40%, rgba(76, 5, 25, 0.2));
  box-shadow:
    0 0 0 1px rgba(253, 230, 138, 0.4),
    0 0 40px rgba(234, 179, 8, 0.45),
    0 0 90px rgba(245, 158, 11, 0.22),
    0 30px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  box-shadow: inset 0 0 40px rgba(76, 5, 25, 0.35);
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  border-radius: 220px 220px 28px 28px;
}

.hero-portrait figcaption {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
}

/* ---------- Секции ---------- */
.section,
#contacts {
  scroll-margin-top: 92px;
}

.section {
  position: relative;
  z-index: 1;
  padding: 96px 0;
}

.meaning {
  overflow: hidden;
}

.meaning::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8%;
  width: min(680px, 90vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: url("../images/rangoli-diyas.png") center / contain no-repeat;
  opacity: 0.16;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

.meaning .container {
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Стеклянные карточки ---------- */
.glass-card {
  padding: 28px 26px;
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 250, 243, 0.08), rgba(30, 11, 54, 0.35));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 20px 50px rgba(10, 2, 20, 0.28);
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.card-index {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  color: var(--text-gold);
  letter-spacing: 0.16em;
  text-shadow: none;
}

.glass-card h3 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.glass-card p {
  margin: 0;
}

/* ---------- Программа ---------- */
.day-switch {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.day-btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.day-btn.is-active {
  color: var(--wine-deep);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-warm));
  box-shadow: var(--shadow-gold);
}

.timeline-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 28px;
  border-left: 1px solid rgba(234, 179, 8, 0.35);
}

.timeline[hidden] {
  display: none;
}

.timeline-item {
  position: relative;
  padding: 0 0 28px 24px;
  animation: fadeRise 0.55s ease both;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 8px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-soft), var(--gold-warm));
  box-shadow: 0 0 12px var(--gold);
}

.time {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--text-gold);
}

.timeline-item p {
  margin: 0;
  color: var(--text);
}

@keyframes fadeRise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Тарифы ---------- */
.ticket-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ticket-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.ticket-card h3 {
  margin-top: 0;
}

.ticket-note {
  color: var(--text-gold);
  font-weight: 600;
}

.ticket-hint {
  flex: 1;
  margin-bottom: 22px !important;
  color: var(--text-muted);
}

.badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(234, 179, 8, 0.16);
  color: var(--text-gold);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ticket-featured {
  box-shadow: var(--shadow-gold), 0 20px 50px rgba(10, 2, 20, 0.28);
}

/* ---------- Форма ---------- */
.booking-panel {
  text-align: center;
  padding: 56px 32px;
}

.booking-panel .section-head {
  margin-bottom: 28px;
}

/* ---------- Подвал ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 64px 0 32px;
  border-top: 1px solid var(--glass-border);
  background: rgba(10, 2, 20, 0.35);
}

.footer-diyas {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto 28px;
  pointer-events: none;
}

.footer-diyas img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  object-position: center 60%;
  mix-blend-mode: screen;
  opacity: 0.8;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 10px;
}

.site-footer h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--text);
}

.copyright {
  width: min(1180px, calc(100% - 40px));
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(234, 179, 8, 0.15);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Плавающий Telegram ---------- */
.telegram-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--wine-deep);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-warm));
  box-shadow: var(--shadow-gold);
  animation: floatBob 3.4s ease-in-out infinite;
}

.telegram-float svg {
  width: 28px;
  height: 28px;
}

.telegram-float:hover {
  color: var(--wine-deep);
  transform: scale(1.06);
}

@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .hero-grid,
  .concept-grid,
  .ticket-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    order: 1;
    text-align: center;
  }

  .hero-diya--right {
    top: auto;
    bottom: 6%;
    width: 64px;
  }

  .hero-diya--left {
    width: 68px;
  }

  .portrait-rangoli {
    width: 150%;
    opacity: 0.55;
  }

  .portrait-diya {
    width: 64px;
  }

  .hero-lead {
    max-width: none;
  }

  .hero-copy,
  .hero-meta {
    justify-content: center;
  }

  .hero-portrait {
    order: 0;
  }

  .portrait-frame {
    width: min(100%, 340px);
  }

  .nav-toggle {
    display: block;
  }

  .nav-panel {
    display: none;
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    border-radius: 20px;
    background: rgba(30, 11, 54, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .logo {
    font-size: 0.68rem;
    white-space: normal;
    max-width: 210px;
  }

  .section {
    padding: 72px 0;
  }

  .day-switch {
    flex-direction: column;
    align-items: stretch;
  }

  .festive-rangoli--tl,
  .festive-rangoli--br {
    width: 280px;
    opacity: 0.14;
  }

  .diya-divider img,
  .footer-diyas img {
    height: 56px;
  }

  .hero-diya {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .festive-rangoli,
  .portrait-rangoli,
  .hero-diya,
  .portrait-diya {
    animation: none;
  }
}
