/* ==========================================================================
   LIBERTANGO 2.0 — STYLESHEET
   Atmospheric, High-Performance, Responsive Argentine Tango Studio Theme
   ========================================================================== */

:root {
  --bg-primary: #0a0b0e;
  --bg-secondary: #12141a;
  --bg-card: rgba(20, 23, 31, 0.7);
  --bg-card-hover: rgba(28, 32, 44, 0.85);
  --bg-glass: rgba(10, 11, 14, 0.85);
  
  --accent-crimson: #c92a3e;
  --accent-crimson-hover: #b01f32;
  --accent-crimson-glow: rgba(201, 42, 62, 0.35);
  
  --accent-gold: #d4af37;
  --accent-gold-soft: #f3e5ab;
  --accent-gold-glow: rgba(212, 175, 55, 0.25);
  
  --text-primary: #f5f6f8;
  --text-secondary: #b2b6c6;
  --text-muted: #717688;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.3);
  --border-crimson: rgba(201, 42, 62, 0.3);

  --font-serif: 'Playfair Display', 'Cinzel', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px var(--accent-crimson-glow);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(201, 42, 62, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(212, 175, 55, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 3vw, 2.5rem);
}

/* Typography Utilities */
.heading-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4.5rem);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.section-tag::before, .section-tag::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent-gold);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.25;
  margin-bottom: 1.2rem;
  word-break: normal;
  overflow-wrap: break-word;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-crimson), #a01729);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-crimson-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 42, 62, 0.5);
  background: linear-gradient(135deg, #d8354a, var(--accent-crimson));
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #d4af37, #aa8620);
  color: #0b0c10;
  box-shadow: 0 4px 20px var(--accent-gold-glow);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

/* Header & Sticky Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 1.1rem 0;
}

.header.scrolled {
  background: rgba(10, 11, 14, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-wrapper, .header-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  width: 100% !important;
}

.logo-link, .header .logo {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  gap: 0.85rem !important;
  flex-shrink: 0 !important;
}

.logo-img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  transition: transform 0.3s ease;
  flex-shrink: 0 !important;
}

.logo-link:hover .logo-img, .header .logo:hover .logo-img {
  transform: scale(1.05);
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  background: linear-gradient(120deg, #fff, #dfd0b5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.header .container {
  max-width: 1400px;
}

.nav-links {
  display: flex !important;
  align-items: center !important;
  gap: clamp(0.4rem, 0.9vw, 1.2rem) !important;
  list-style: none !important;
  flex-shrink: 0 !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-links li {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.nav-links a {
  font-size: clamp(0.78rem, 0.84vw, 0.92rem);
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  padding: 0.2rem 0;
  white-space: nowrap !important;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-crimson);
  transition: var(--transition);
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.nav-cta-red {
  color: #ff3850 !important;
  font-weight: 700 !important;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(220, 38, 56, 0.45);
  background: rgba(220, 38, 56, 0.12);
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}

.nav-links a.nav-cta-red:hover {
  background: var(--accent-crimson);
  color: #fff !important;
  border-color: var(--accent-crimson);
  box-shadow: 0 4px 15px var(--accent-crimson-glow);
  transform: translateY(-1px);
}

.nav-links a.nav-cta-red::after {
  display: none !important;
}

.mobile-nav a.mobile-cta-red {
  color: #ff3850 !important;
  font-weight: 700 !important;
  border: 1px solid rgba(220, 38, 56, 0.4);
  background: rgba(220, 38, 56, 0.15);
  padding: 0.6rem 2rem;
  border-radius: var(--radius-full);
  margin-top: 0.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1vw, 1.1rem);
  flex-shrink: 0;
  white-space: nowrap;
}

.header-phone {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-gold-soft);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-actions .btn {
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.7rem;
  cursor: pointer;
  padding: 0.2rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: max(140px, calc(90px + 6vh));
  padding-bottom: clamp(3.5rem, 6vh, 5.5rem);
  background: url('../assets/images/hero-bg.jpg') center center / cover no-repeat;
  overflow: hidden;
  box-sizing: border-box;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 11, 14, 0.75) 0%,
    rgba(10, 11, 14, 0.85) 60%,
    var(--bg-primary) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(201, 42, 62, 0.15);
  border: 1px solid var(--border-crimson);
  color: #ff8595;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 1.6rem;
  backdrop-filter: blur(6px);
  max-width: 100%;
}

.hero-title {
  font-size: clamp(2rem, 5.2vw, 4.2rem);
  line-height: 1.25;
  margin-bottom: 1.6rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  word-break: normal;
  overflow-wrap: break-word;
}

.hero-title-top {
  display: block;
  margin-bottom: 0.35rem;
}

.hero-title-accent {
  display: inline-block;
  background: linear-gradient(135deg, #fff 30%, var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.1em;
}

.hero-description {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2.2rem;
  max-width: 650px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item .stat-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Sections Common */
section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
}

/* Philosophy Section */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.philosophy-media {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.philosophy-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
}

.philosophy-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.philosophy-image-wrap:hover img {
  transform: scale(1.02);
}

.philosophy-quote-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  padding: 1.25rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-gold);
}

.philosophy-quote-card p {
  font-style: italic;
  font-size: 0.98rem;
  color: var(--accent-gold-soft);
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.philosophy-quote-card span {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.philosophy-points {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 2rem;
}

.point-card {
  display: flex;
  gap: 1.2rem;
  padding: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.point-card:hover {
  border-color: var(--border-crimson);
  background: var(--bg-card-hover);
  transform: translateX(6px);
}

.point-icon {
  width: 44px;
  height: 44px;
  background: rgba(201, 42, 62, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-crimson);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.point-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.point-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Classes / Formats Grid */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.8rem;
}

.class-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.class-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: var(--transition);
}

.class-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-crimson);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.class-card:hover::before {
  background: linear-gradient(90deg, var(--accent-crimson), var(--accent-gold));
}

.class-card.featured {
  border-color: var(--border-gold);
  background: linear-gradient(180deg, rgba(30, 34, 48, 0.8) 0%, rgba(18, 20, 28, 0.8) 100%);
}

.class-card.featured::before {
  background: var(--accent-gold);
}

.class-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-gold-soft);
  align-self: flex-start;
}

.class-card.featured .class-badge {
  background: rgba(212, 175, 55, 0.2);
  color: var(--accent-gold);
}

.class-title {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.class-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

.class-features {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.class-features li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.class-features li::before {
  content: '✓';
  color: var(--accent-crimson);
  font-weight: bold;
}

/* Schedule Section */
.schedule-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-card);
}

.schedule-table-wrap {
  overflow-x: auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

@media (min-width: 769px) {
  .schedule-table {
    min-width: 600px;
  }
}

.schedule-table th, .schedule-table td {
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.schedule-table th {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--accent-gold-soft);
  font-weight: 500;
}

.schedule-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.group-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

.group-badge.beginners {
  background: rgba(66, 153, 225, 0.15);
  color: #90cdf4;
}

.group-badge.middle {
  background: rgba(237, 137, 54, 0.15);
  color: #fbd38d;
}

.group-badge.advanced {
  background: rgba(201, 42, 62, 0.15);
  color: #feb2b2;
}

/* Teachers Section */
.teachers-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 4rem);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  align-items: center;
}

.teachers-photo {
  height: 100%;
  min-height: 440px;
  position: relative;
}

.teachers-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.teachers-info {
  padding: clamp(2rem, 4vw, 3.5rem);
}

.teachers-name {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.teachers-role {
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.teachers-bio {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.achievement-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.achievement-icon {
  color: var(--accent-gold);
  font-size: 1.2rem;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.gallery-grid.gallery-preview {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 960px) {
  .gallery-grid.gallery-preview {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid.gallery-preview {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .gallery-grid.gallery-preview .gallery-item:nth-child(n+4) {
    display: none !important;
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: #111318;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 14, 0.65);
  backdrop-filter: blur(3px);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease;
  padding: 1rem;
  text-align: center;
}

.gallery-hover-text {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(20, 22, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.45rem 1.05rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transform: translateY(6px);
  transition: transform 0.25s ease;
  pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-hover-text {
  transform: translateY(0);
}

.photo-id-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(10, 11, 14, 0.78);
  backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.45);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  letter-spacing: 0.05em;
  transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  z-index: 2;
}

.gallery-item:hover .photo-id-tag {
  opacity: 0.95;
  color: var(--accent-gold);
  border-color: rgba(212, 163, 89, 0.4);
}

.gallery-more-container {
  text-align: center;
  margin-top: 2.5rem;
}

.btn-gallery-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
  border-radius: var(--radius-full);
}

.gallery-pill {
  background: rgba(212, 163, 89, 0.18);
  border: 1px solid rgba(212, 163, 89, 0.4);
  color: var(--accent-gold);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--font-serif);
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201, 42, 62, 0.2);
  color: var(--accent-crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 1px solid var(--border-crimson);
}

.author-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Contact & CTA Section */
.contact-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, #101218 100%);
  border-top: 1px solid var(--border-subtle);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-detail h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

.contact-detail p, .contact-detail a {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-detail a:hover {
  color: var(--accent-crimson);
}

.social-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  font-weight: 500;
}

.social-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.social-chip.vk:hover {
  border-color: #0077ff;
  color: #4c9eff;
}

.social-chip.tg:hover {
  border-color: #229ed9;
  color: #5ec4ff;
}

.social-chip.wa:hover {
  border-color: #25d366;
  color: #55ee8e;
}

/* Contact Form */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3vw, 2.8rem);
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(10, 11, 14, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-crimson);
  box-shadow: 0 0 0 3px var(--accent-crimson-glow);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-alert {
  display: none;
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.2rem;
  font-size: 0.92rem;
}

.form-alert.success {
  display: block;
  background: rgba(46, 133, 64, 0.2);
  border: 1px solid rgba(72, 187, 120, 0.4);
  color: #9ae6b4;
}

/* Interactive Lightbox Viewer */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(6, 7, 10, 0.96);
  backdrop-filter: blur(16px);
  flex-direction: column;
  user-select: none;
  overflow: hidden;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.4rem;
  background: rgba(10, 11, 14, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10010;
  gap: 1rem;
}

.lightbox-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.lightbox-id-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--accent-gold);
  background: rgba(212, 163, 89, 0.12);
  border: 1px solid rgba(212, 163, 89, 0.35);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.lightbox-counter {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.lightbox-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  text-decoration: none;
  min-height: 36px;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.lightbox-btn.lightbox-close {
  background: rgba(201, 42, 62, 0.2);
  border-color: rgba(201, 42, 62, 0.4);
  color: #ff8595;
  margin-left: 0.3rem;
}

.lightbox-btn.lightbox-close:hover {
  background: var(--accent-crimson);
  color: #fff;
}

.lightbox-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}

.lightbox-viewport.is-dragging {
  cursor: grabbing;
}

.lightbox-img-wrap {
  display: inline-block;
  transform-origin: center center;
  will-change: transform;
}

.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  display: block;
  transition: opacity 0.18s cubic-bezier(0.2, 0, 0.2, 1), transform 0.18s cubic-bezier(0.2, 0, 0.2, 1);
  will-change: opacity, transform;
}

.lightbox-img-wrap img.switching {
  opacity: 0.1;
  transform: scale(0.97);
}

/* Back navigation button */
.back-nav-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1.8rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateX(-3px);
}

.btn-back svg {
  flex-shrink: 0;
  stroke: var(--accent-gold);
  transition: transform 0.25s ease;
}

.btn-back:hover svg {
  transform: translateX(-2px);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2505;
  background: rgba(10, 11, 14, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 48px;
  height: 60px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.lightbox-nav:hover {
  background: rgba(201, 42, 62, 0.8);
  border-color: var(--accent-crimson);
  transform: translateY(-50%) scale(1.05);
}

.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }

@media (max-width: 768px) {
  .lightbox-modal {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .lightbox-topbar {
    padding: 0.6rem 0.8rem !important;
    padding-left: max(0.8rem, env(safe-area-inset-left)) !important;
    padding-right: max(0.8rem, env(safe-area-inset-right)) !important;
    gap: 0.5rem !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .lightbox-info {
    flex-shrink: 1 !important;
    min-width: 0 !important;
    gap: 0.45rem !important;
    overflow: hidden !important;
  }

  .lightbox-id-badge {
    font-size: 0.72rem !important;
    padding: 2px 6px !important;
  }

  .lightbox-counter {
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }

  .lightbox-tools {
    flex-shrink: 0 !important;
    gap: 0.35rem !important;
    display: flex !important;
    align-items: center !important;
    margin-left: auto !important;
  }

  .lightbox-tools .btn-text {
    display: none !important;
  }

  .lightbox-btn {
    padding: 0.4rem 0.5rem !important;
    min-height: 36px !important;
    min-width: 36px !important;
    font-size: 0.82rem !important;
    box-sizing: border-box !important;
  }

  .lightbox-btn.lightbox-close {
    background: rgba(220, 38, 38, 0.28) !important;
    border-color: rgba(220, 38, 38, 0.65) !important;
    color: #ff6b81 !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 50% !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
    margin-left: 0.35rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
  }

  .lightbox-nav {
    width: 38px !important;
    height: 50px !important;
    font-size: 1.8rem !important;
  }
  .lightbox-prev { left: 0.4rem !important; }
  .lightbox-next { right: 0.4rem !important; }
}

@media (max-width: 600px) {
  /* On phones, hide redundant zoom buttons: double-tap or pinch-to-zoom is used instead */
  #lightbox-zoom-out,
  #lightbox-zoom-reset,
  #lightbox-zoom-in {
    display: none !important;
  }

  .lightbox-topbar {
    padding: 0.5rem 0.65rem !important;
    padding-left: max(0.65rem, env(safe-area-inset-left)) !important;
    padding-right: max(0.65rem, env(safe-area-inset-right)) !important;
  }

  .lightbox-btn.lightbox-close {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    font-size: 1.35rem !important;
  }
}

/* Gallery Page Layout */
.gallery-full-section {
  padding: 2.5rem 0 5rem;
}

.gallery-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-filter-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.filter-chip.active {
  background: rgba(212, 163, 89, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  font-weight: 600;
}

.filter-chip .chip-count {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-left: 0.25rem;
}

.gallery-cta-banner {
  background: linear-gradient(135deg, rgba(201, 42, 62, 0.12), rgba(212, 163, 89, 0.08));
  border: 1px solid rgba(212, 163, 89, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.5rem clamp(1.5rem, 3vw, 3rem);
  margin-top: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

@media (max-width: 768px) {
  .gallery-cta-banner {
    flex-direction: column;
    text-align: center;
  }
}

.card-id-tag {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
  opacity: 0.45;
  pointer-events: none;
  user-select: all;
  letter-spacing: 0.05em;
  transition: opacity 0.2s ease;
}

.event-card:hover .card-id-tag {
  opacity: 0.85;
  color: var(--accent-gold);
}

/* Footer */
.footer {
  background: #07080a;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 360px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-nav h4 {
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  color: var(--accent-gold);
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .nav-links, .header-phone {
    display: none !important;
  }
  
  .burger-btn {
    display: block !important;
  }
}

@media (max-width: 1120px) {
  .philosophy-grid,
  .teachers-card,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .teachers-photo {
    min-height: 320px;
  }
}

@media (max-width: 540px) {
  .logo-text {
    font-size: 1.2rem;
  }
  
  .logo-img {
    height: 40px;
    width: 40px;
  }
  
  .header-actions .btn {
    padding: 0.65rem 1.1rem;
    font-size: 0.85rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
}

/* Mobile Drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 14, 0.98);
  backdrop-filter: blur(25px);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease, visibility 0.3s ease;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  overflow-y: auto;
  max-height: 100vh;
  max-height: 100dvh;
  padding: 3rem 1.5rem;
  box-sizing: border-box;
}

.mobile-nav.open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

@media (min-width: 1121px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-primary);
}

.mobile-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
}

/* ==================== NEW ENHANCEMENTS ==================== */

/* Enrollment Notice Badge */
.enrollment-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(212, 163, 89, 0.08);
  border: 1px solid rgba(212, 163, 89, 0.3);
  border-radius: 50px;
  padding: 0.55rem 1.35rem;
  margin-top: 1.2rem;
  font-size: 0.92rem;
  color: var(--accent-gold-soft);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #25d366;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Pricing Section */
.pricing {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--bg-secondary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
  margin-top: 2.5rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 163, 89, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.pricing-card.featured {
  border-color: var(--accent-gold);
  background: linear-gradient(180deg, rgba(212, 163, 89, 0.05) 0%, rgba(18, 20, 26, 0.95) 100%);
  box-shadow: 0 12px 35px rgba(212, 163, 89, 0.12);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  right: 20px;
  background: #c92a3e !important;
  color: #ffffff !important;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.35rem 0.95rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 16px rgba(201, 42, 62, 0.75);
  z-index: 5;
  white-space: nowrap;
}

.pricing-badge.gold {
  background: var(--accent-gold);
  color: #12141a;
}

.pricing-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-title {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

.pricing-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.pricing-features li span.check {
  color: var(--accent-gold);
  font-weight: bold;
  font-size: 1rem;
  line-height: 1;
}

.pricing-card .btn {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

/* FAQ Accordion Section */
.faq-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--bg-primary);
}

.faq-container {
  max-width: 860px;
  margin: 2.5rem auto 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.active {
  border-color: rgba(212, 163, 89, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.faq-question {
  padding: 1.25rem 1.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--accent-gold-soft);
}

.faq-arrow {
  font-size: 1.25rem;
  color: var(--accent-gold);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  margin-left: 1rem;
  flex-shrink: 0;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.25, 1, 0.5, 1), padding 0.35s ease;
  padding: 0 1.6rem;
}

.faq-item.active .faq-answer {
  max-height: 350px;
  padding: 0 1.6rem 1.4rem 1.6rem;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

/* Program Selection Chips */
.program-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.program-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  font-family: inherit;
}

.program-chip:hover {
  border-color: rgba(212, 163, 89, 0.5);
  color: #fff;
}

.program-chip.active {
  background: rgba(212, 163, 89, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(212, 163, 89, 0.2);
}

/* Yandex Map Wrap */
.map-wrap {
  margin-top: 1.8rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.map-link {
  display: block;
  background: rgba(212, 163, 89, 0.08);
  padding: 0.75rem 1rem;
  text-align: center;
  color: var(--accent-gold);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  border-top: 1px solid var(--border-subtle);
  transition: background 0.2s ease, color 0.2s ease;
}

.map-link:hover {
  background: rgba(212, 163, 89, 0.16);
  color: #fff;
}

/* Floating Quick Contact Widget */
.quick-contact-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1200;
}

.quick-contact-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-red), #931323);
  box-shadow: 0 8px 25px rgba(201, 42, 62, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
  position: relative;
}

.quick-contact-toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 30px rgba(201, 42, 62, 0.65);
}

.qc-close-icon {
  display: none;
  font-size: 1.4rem;
  line-height: 1;
}

.qc-bubble-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.quick-contact-widget.open .qc-bubble-icon {
  display: none;
}

.quick-contact-widget.open .qc-close-icon {
  display: block;
}

.quick-contact-menu {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 290px;
  background: rgba(18, 20, 26, 0.97);
  backdrop-filter: blur(25px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transform: scale(0.92) translateY(15px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.28s ease;
}

.quick-contact-widget.open .quick-contact-menu {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.qc-menu-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.qc-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.qc-wa {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #25d366;
}

.qc-wa:hover {
  background: rgba(37, 211, 102, 0.22);
  color: #fff;
}

.qc-tg {
  background: rgba(0, 136, 204, 0.12);
  border: 1px solid rgba(0, 136, 204, 0.3);
  color: #29b6f6;
}

.qc-tg:hover {
  background: rgba(0, 136, 204, 0.22);
  color: #fff;
}

.qc-phone {
  background: rgba(212, 163, 89, 0.1);
  border: 1px solid rgba(212, 163, 89, 0.3);
  color: var(--accent-gold);
}

.qc-phone:hover {
  background: rgba(212, 163, 89, 0.2);
  color: #fff;
}

/* Responsive Table -> Cards for Screens <= 768px */
@media (max-width: 768px) {
  .schedule-card {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .schedule-table-wrap {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    overflow-x: visible !important;
    width: 100% !important;
    box-shadow: none !important;
  }
  
  .schedule-table, 
  .schedule-table thead, 
  .schedule-table tbody, 
  .schedule-table th, 
  .schedule-table td, 
  .schedule-table tr {
    display: block !important;
  }

  .schedule-table {
    min-width: 0 !important;
    width: 100% !important;
    border: none !important;
  }
  
  .schedule-table thead {
    display: none !important;
  }
  
  .schedule-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.15rem !important;
    width: 100% !important;
  }
  
  .schedule-table tr {
    background: linear-gradient(145deg, #1c1a19 0%, #131212 100%) !important;
    border: 1px solid rgba(212, 163, 89, 0.22) !important;
    border-left: 4px solid var(--accent-gold) !important;
    border-radius: 16px !important;
    padding: 1.35rem 1.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8rem !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
  
  .schedule-table td {
    padding: 0.25rem 0 !important;
    border: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 0.95rem !important;
    color: #e8e8e8 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .schedule-table td:first-child {
    font-family: var(--font-serif) !important;
    font-size: 1.25rem !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-bottom: 0.75rem !important;
    margin-bottom: 0.25rem !important;
    display: block !important;
  }

  .schedule-table td:first-child strong {
    color: var(--accent-gold) !important;
    letter-spacing: 0.02em !important;
  }
  
  .schedule-table td:before {
    content: attr(data-label) !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--text-muted) !important;
    font-weight: 500 !important;
    margin-right: 0.75rem !important;
    flex-shrink: 0 !important;
  }
  
  .schedule-table td:first-child:before,
  .schedule-table td:last-child:before {
    display: none !important;
  }

  .schedule-table td[data-label="Время"] {
    font-weight: 600 !important;
    color: #ffffff !important;
  }
  
  .schedule-table td:last-child {
    margin-top: 0.5rem !important;
    padding-top: 0.75rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: block !important;
  }
  
  .schedule-table td:last-child .btn {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    padding: 0.85rem 1rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-radius: 30px !important;
    background: var(--accent-gold) !important;
    color: #111 !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(212, 163, 89, 0.3) !important;
    box-sizing: border-box !important;
  }

  .quick-contact-widget {
    bottom: 18px;
    right: 18px;
  }

  .quick-contact-toggle {
    width: 52px;
    height: 52px;
  }

  .quick-contact-menu {
    width: calc(100vw - 36px);
    right: 0;
    bottom: 64px;
  }
}


/* ==================== EVENTS & HERO BUTTONS ==================== */

/* Hero Buttons Layout */
.hero-buttons-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 2.2rem;
  flex-wrap: nowrap;
}

.hero-divider {
  width: 2px;
  height: 34px;
  background: var(--accent-gold);
  border-radius: 2px;
  opacity: 0.7;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(212, 163, 89, 0.4);
}

.hero-buttons-events {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: nowrap;
}

.btn-event-upcoming {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius-full);
  background: rgba(212, 163, 89, 0.12);
  border: 1px solid rgba(212, 163, 89, 0.5);
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-event-upcoming:hover {
  background: rgba(212, 163, 89, 0.25);
  border-color: var(--accent-gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 163, 89, 0.35);
}

.btn-event-past {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-event-past:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

.btn-event-icon {
  font-size: 1rem;
  line-height: 1;
}

/* Hero Schedule Alert Button & Pulse Animation */
#hero-schedule-btn {
  position: relative;
  min-width: 215px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#hero-schedule-btn .hero-schedule-text {
  display: inline-block;
  transition: opacity 0.28s ease, transform 0.28s ease;
  white-space: nowrap;
}

#hero-schedule-btn .hero-schedule-text.fade-out {
  opacity: 0;
  transform: translateY(-4px);
}

#hero-schedule-btn.schedule-notice-active {
  border-color: #ff3355 !important;
  color: #ff4766 !important;
  background: rgba(255, 51, 85, 0.12) !important;
  animation: scheduleAlertPulse 2s infinite ease-in-out !important;
}

#hero-schedule-btn.schedule-notice-active:hover {
  background: rgba(255, 51, 85, 0.22) !important;
  color: #ffffff !important;
}

@keyframes scheduleAlertPulse {
  0% {
    box-shadow: 0 0 6px rgba(255, 51, 85, 0.35), inset 0 0 4px rgba(255, 51, 85, 0.15);
    border-color: rgba(255, 51, 85, 0.55);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 51, 85, 0.8), inset 0 0 10px rgba(255, 51, 85, 0.3);
    border-color: #ff3355;
    transform: scale(1.025);
  }
  100% {
    box-shadow: 0 0 6px rgba(255, 51, 85, 0.35), inset 0 0 4px rgba(255, 51, 85, 0.15);
    border-color: rgba(255, 51, 85, 0.55);
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .hero-buttons-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    flex-wrap: wrap;
  }
  .hero-divider {
    display: none;
  }
  .hero-buttons-events {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-buttons-container .btn,
  .hero-buttons-events .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Events Page Styling */
.events-page-header {
  padding-top: 130px;
  padding-bottom: 40px;
  background: linear-gradient(180deg, rgba(201, 42, 62, 0.08) 0%, transparent 100%);
  text-align: center;
}

.events-tabs {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  padding: 0.35rem;
  margin: 2.2rem auto 0;
  gap: 0.35rem;
  box-shadow: var(--shadow-card);
}

.event-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.6rem;
  border-radius: 40px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.25s ease;
}

.event-tab:hover {
  color: #fff;
}

.event-tab.active {
  background: var(--accent-gold);
  color: #12141a;
  box-shadow: 0 4px 14px rgba(212, 163, 89, 0.35);
}

.events-section {
  padding: 3rem 0 6rem 0;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 163, 89, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.event-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  gap: 0.8rem;
}

.event-badge {
  display: inline-block;
  background: rgba(201, 42, 62, 0.15);
  border: 1px solid rgba(201, 42, 62, 0.4);
  color: #ff6b81;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
}

.event-badge.gold {
  background: rgba(212, 163, 89, 0.15);
  border-color: rgba(212, 163, 89, 0.4);
  color: var(--accent-gold);
}

.event-badge.past {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
}

.event-card-title {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  line-height: 1.35;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent-gold-soft);
}

.event-meta-icon {
  font-size: 1rem;
  opacity: 0.9;
}

.event-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.event-price {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #fff;
  font-weight: 600;
}

.event-price span {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
}

.event-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 600px;
  margin: 2rem auto;
}

/* Event countdown badge */
.event-countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.75rem;
  background: rgba(212, 163, 89, 0.14);
  border: 1px solid rgba(212, 163, 89, 0.45);
  border-radius: var(--radius-full);
  color: var(--accent-gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Review ID tag */
.review-id-tag {
  position: absolute;
  bottom: 0.75rem;
  right: 1.1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.22);
  font-family: var(--font-sans);
  pointer-events: none;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Schedule Notice Banner - Compact Notification Bar */
.schedule-notice-banner {
  background: rgba(212, 163, 89, 0.08);
  border: 1px solid rgba(212, 163, 89, 0.35);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.4rem;
  max-width: 860px;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.3s ease;
}

.notice-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: center;
}

.notice-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  border: 1px solid rgba(212, 163, 89, 0.45);
  background: rgba(212, 163, 89, 0.12);
  padding: 0.22rem 0.7rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  flex-shrink: 0;
}

.notice-text {
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.5;
  margin: 0;
  font-weight: 500;
}

/* ==================== EVENT DETAIL MODAL ==================== */
.event-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.event-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.event-modal-container {
  background: var(--bg-card);
  border: 1px solid rgba(212, 163, 89, 0.35);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.2rem 2.2rem 2rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-modal-backdrop.active .event-modal-container {
  transform: scale(1) translateY(0);
}

.event-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.event-modal-close:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  transform: scale(1.08);
}

@media (max-width: 600px) {
  .event-modal-backdrop {
    padding: 0.75rem !important;
    padding-left: max(0.6rem, env(safe-area-inset-left)) !important;
    padding-right: max(0.6rem, env(safe-area-inset-right)) !important;
  }

  .event-modal-container {
    padding: 1.4rem 1.1rem 1.2rem !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .event-modal-close {
    top: 0.75rem !important;
    right: 0.75rem !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 50% !important;
    font-size: 1.1rem !important;
    z-index: 30 !important;
    flex-shrink: 0 !important;
  }

  .event-modal-header {
    padding-right: 2.8rem !important;
  }
}

.event-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-right: 2.5rem;
}

.event-modal-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.event-modal-id-tag {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.event-modal-media-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  max-height: 340px;
  background: #000;
  cursor: pointer;
  border: 1px solid rgba(212, 163, 89, 0.25);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.event-modal-media-wrap:hover {
  border-color: var(--accent-gold);
}

.event-modal-media-wrap img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.event-modal-media-wrap:hover img {
  transform: scale(1.02);
}

.event-modal-photo-hint {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
  padding: 1.2rem 1rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.95;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.event-modal-media-wrap:hover .event-modal-photo-hint {
  color: var(--accent-gold);
}

.event-modal-title {
  font-size: 1.7rem;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 1.2rem;
}

.event-modal-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.85rem;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  margin-bottom: 1.4rem;
}

.modal-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.modal-meta-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.modal-meta-item strong,
.modal-meta-item span {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.event-modal-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  white-space: pre-wrap;
  margin-bottom: 2rem;
  word-break: break-word;
}

.event-modal-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
}

/* Event Card clickable enhancement */
.event-card {
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 163, 89, 0.45);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.event-card-open-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.2rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent-gold);
  transition: gap 0.2s ease, color 0.2s ease;
}

.event-card:hover .event-card-open-hint {
  color: #fff;
  gap: 0.7rem;
}
