/* ==========================================================================
   SONO CONCERTS & EVENTS - STYLESHEET
   Event: «Три голоса. Музыка вне времени»
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-display: 'Cinzel', 'Playfair Display', serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Default Dark Palette: Deep Cypress Emerald & Antique Gold */
  --bg-primary: #08100d;
  --bg-radial-1: rgba(223, 184, 108, 0.16);
  --bg-radial-2: rgba(28, 64, 48, 0.25);
  --bg-radial-3: rgba(20, 50, 38, 0.3);

  --bg-card: rgba(14, 25, 20, 0.75);
  --bg-card-border: rgba(223, 184, 108, 0.35);
  --bg-card-hover: rgba(20, 36, 29, 0.85);

  --header-bg: rgba(8, 16, 13, 0.92);
  --footer-bg: #050b09;

  --text-primary: #edece8;
  --text-secondary: #a4b8af;
  --text-muted: #6f857a;

  --gold-100: #fae1a0;
  --gold-primary: #dfb86c;
  --gold-dark: #a8833b;
  --gold-gradient: linear-gradient(135deg, #fae1a0 0%, #dfb86c 50%, #a8833b 100%);
  --gold-glow: rgba(223, 184, 108, 0.25);

  --voucher-bg: linear-gradient(135deg, rgba(22, 38, 30, 0.92) 0%, rgba(12, 22, 17, 0.96) 100%);
  --voucher-hole: #08100d;

  --theme-btn-bg: rgba(255, 255, 255, 0.08);
  --theme-btn-border: rgba(223, 184, 108, 0.35);
  --theme-btn-text: #fae1a0;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-arch: 220px 220px 24px 24px;

  --container-max: 1200px;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f7f6f1;
  --bg-radial-1: rgba(200, 155, 70, 0.12);
  --bg-radial-2: rgba(180, 205, 195, 0.3);
  --bg-radial-3: rgba(215, 225, 220, 0.35);

  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-border: rgba(175, 135, 55, 0.3);
  --bg-card-hover: rgba(255, 255, 255, 0.98);

  --header-bg: rgba(247, 246, 241, 0.94);
  --footer-bg: #eceae1;

  --text-primary: #15221c;
  --text-secondary: #475a50;
  --text-muted: #768a80;

  --gold-100: #fdf5e2;
  --gold-primary: #9b7228;
  --gold-dark: #6e4f16;
  --gold-gradient: linear-gradient(135deg, #d8ab54 0%, #b3842c 50%, #8c6317 100%);
  --gold-glow: rgba(175, 135, 55, 0.18);

  --voucher-bg: linear-gradient(135deg, #ffffff 0%, #f3efe6 100%);
  --voucher-hole: #f7f6f1;

  --theme-btn-bg: rgba(0, 0, 0, 0.05);
  --theme-btn-border: rgba(175, 135, 55, 0.4);
  --theme-btn-text: #8c6317;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, var(--bg-radial-1) 0%, transparent 50%),
    radial-gradient(circle at 85% 20%, var(--bg-radial-2) 0%, transparent 50%),
    radial-gradient(circle at 15% 70%, var(--bg-radial-3) 0%, transparent 60%);
  background-attachment: fixed;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Selection */
::selection {
  background: var(--gold-primary);
  color: #000;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bg-card-border);
  transition: var(--transition);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px var(--gold-glow));
  transition: var(--transition);
}

[data-theme="light"] .site-logo img {
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.25));
}

.site-logo:hover img {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--gold-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-gradient);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--theme-btn-bg);
  border: 1px solid var(--theme-btn-border);
  color: var(--theme-btn-text);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--gold-glow);
}

.theme-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

/* Buttons */
.btn-primary {
  background: var(--gold-gradient);
  color: #09090b;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 18px var(--gold-glow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .btn-primary {
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(140, 99, 23, 0.35);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.6s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--gold-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--bg-card-border);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(223, 184, 108, 0.1);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 60px 0 30px;
  position: relative;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(223, 184, 108, 0.12);
  border: 1px solid var(--bg-card-border);
  padding: 8px 20px;
  border-radius: 999px;
  color: var(--gold-primary);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.15;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title span.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin: 0 auto 36px;
  line-height: 1.7;
  max-width: 720px;
  font-weight: 400;
}

/* Details Strip */
.event-meta-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 22px;
  margin: 0 auto 36px;
  max-width: 820px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.meta-val {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.meta-val.gold {
  color: var(--gold-primary);
}

/* Countdown Timer */
.countdown-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.countdown-box {
  display: flex;
  gap: 14px;
}

.time-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  min-width: 75px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.time-num {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1;
}

.time-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

/* ================= DUAL ARCHED VIDEO PORTALS ================= */
.arched-portals-section {
  padding: 50px 0 80px;
  position: relative;
}

.portal-header {
  text-align: center;
  margin-bottom: 44px;
}

.section-tag {
  color: var(--gold-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.7;
}

.arched-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  max-width: 880px;
  margin: 0 auto;
}

.arched-card {
  background: var(--bg-card);
  border: 2px solid var(--bg-card-border);
  border-radius: var(--radius-arch); /* The Iconic Arch of Guma */
  padding: 16px 16px 28px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    0 0 35px var(--gold-glow);
  position: relative;
  transition: var(--transition);
  backdrop-filter: blur(16px);
  text-align: center;
}

.arched-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-primary);
  box-shadow: 
    0 35px 70px -12px rgba(0, 0, 0, 0.6),
    0 0 50px var(--gold-glow);
}

.arched-video-box {
  position: relative;
  width: 100%;
  padding-top: 160%; /* Arched 9:16 portrait ratio */
  border-radius: 204px 204px 16px 16px;
  overflow: hidden;
  background: #000;
  margin-bottom: 18px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
}

.arched-video-box video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arch-header {
  padding: 8px 0 4px;
}

.arch-badge {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-primary);
  font-weight: 600;
}

.arch-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--text-primary);
  margin-top: 4px;
}

.arch-ctrls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.video-ctrl-btn {
  background: var(--header-bg);
  border: 1px solid var(--bg-card-border);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.video-ctrl-btn:hover {
  background: var(--gold-gradient);
  color: #09090b;
  border-color: transparent;
}

[data-theme="light"] .video-ctrl-btn:hover {
  color: #ffffff;
}

.sound-waves {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.sound-waves span {
  width: 2px;
  background-color: currentColor;
  border-radius: 1px;
  animation: waveBar 1.2s ease-in-out infinite;
}

.sound-waves span:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.sound-waves span:nth-child(2) { height: 90%; animation-delay: 0.3s; }
.sound-waves span:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.sound-waves span:nth-child(4) { height: 100%; animation-delay: 0.4s; }

.sound-waves.muted span {
  animation: none;
  height: 20%;
  opacity: 0.5;
}

@keyframes waveBar {
  0%, 100% { height: 30%; }
  50% { height: 100%; }
}

/* ================= PROGRAM SECTION ================= */
.section {
  padding: 80px 0;
  position: relative;
}

.instruments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.instrument-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 40px 26px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.instrument-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: var(--transition);
}

.instrument-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 20px var(--gold-glow);
}

.instrument-card:hover::before {
  opacity: 1;
}

.instrument-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(223, 184, 108, 0.12);
  border: 1px solid var(--bg-card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--gold-primary);
  font-size: 1.8rem;
}

.instrument-name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.instrument-role {
  color: var(--gold-primary);
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.instrument-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ================= VENUE SECTION ================= */
.venue-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  backdrop-filter: blur(20px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.venue-info {
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.venue-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.venue-address {
  font-size: 1.1rem;
  color: var(--gold-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.venue-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 28px;
}

.venue-media {
  position: relative;
  min-height: 380px;
  background: #111;
  overflow: hidden;
}

.venue-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(1.1);
}

/* ================= VOUCHER TICKET SECTION ================= */
.ticket-cta-section {
  padding: 60px 0 90px;
}

.voucher-card {
  background: var(--voucher-bg);
  border: 1px dashed var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

/* Authentic ticket cutouts */
.voucher-card::before, .voucher-card::after {
  content: '';
  position: absolute;
  width: 36px;
  height: 36px;
  background: var(--voucher-hole);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.4s ease;
}
.voucher-card::before { left: -18px; }
.voucher-card::after { right: -18px; }

.voucher-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.voucher-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 540px;
}

.price-box {
  text-align: right;
}

.price-box .price-from {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.price-box .price-amount {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1;
}

/* ================= FOOTER & CONTACTS ================= */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--bg-card-border);
  padding: 60px 0 30px;
  position: relative;
  transition: background 0.4s ease;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 18px;
  max-width: 380px;
  line-height: 1.65;
}

.footer-col-title {
  color: var(--gold-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 18px;
}

.social-instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff !important;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(220, 39, 67, 0.35);
}

.social-instagram-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(220, 39, 67, 0.55);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}

[data-theme="light"] .footer-bottom {
  border-color: rgba(0, 0, 0, 0.08);
}

/* ================= MOBILE STICKY BAR ================= */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--bg-card-border);
  padding: 12px 18px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sticky-text .sticky-event {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-text .sticky-date {
  font-size: 0.78rem;
  color: var(--gold-primary);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .event-meta-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .arched-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .instruments-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .venue-card {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .voucher-card {
    flex-direction: column;
    text-align: center;
  }

  .price-box {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-sticky-cta {
    display: block;
  }

  body {
    padding-bottom: 70px;
  }

  .hero {
    padding: 40px 0 20px;
  }

  .time-card {
    min-width: 62px;
    padding: 10px 12px;
  }

  .time-num {
    font-size: 1.5rem;
  }
}
