@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================
   CSS VARIABLES & DESIGN SYSTEM
   ========================================== */
:root {
  /* Colors */
  --primary-color: #1e3a8a;      /* Deep Academic Indigo */
  --primary-hover: #172554;
  --primary-light: #eff6ff;
  --accent-color: #d97706;       /* Warm Amber Gold */
  --accent-hover: #b45309;
  --accent-light: #fef3c7;
  --text-dark: #0f172a;          /* Rich Slate Black */
  --text-muted: #475569;         /* Slate Gray */
  --bg-main: #f8fafc;            /* Clean light slate */
  --bg-card: #ffffff;
  --bg-warm-card: #fdfbf7;       /* Soft cream for highlight cards */
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(30, 41, 59, 0.05), 0 8px 16px -6px rgba(30, 41, 59, 0.05);
  --shadow-lg: 0 20px 40px -15px rgba(30, 41, 59, 0.08), 0 15px 25px -10px rgba(30, 41, 59, 0.06);
  --shadow-accent: 0 12px 20px -8px rgba(217, 119, 6, 0.25);
  
  /* Fonts */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-serif: 'Merriweather', serif;

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================
   BASE & RESET STYLES
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-color);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

button, .btn {
  font-family: var(--font-headings);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-bounce);
  font-size: 0.95rem;
  gap: 0.5rem;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--accent-light);
  color: var(--accent-color);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ==========================================
   BUTTON STYLES
   ========================================== */
.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent-color);
  color: #ffffff;
  box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -8px rgba(217, 119, 6, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
}

.btn-glass {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-glass:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.btn-secondary {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: #dbeafe;
  transform: translateY(-3px);
}

/* ==========================================
   HEADER SECTION
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 1.1rem 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
}

.header.sticky {
  padding: 0.65rem 0;
}

/* Subpage Hero Banner */
.subpage-hero {
  padding: 10rem 0 6rem 0;
  text-align: center;
  color: #ffffff;
  position: relative;
}

.subpage-title {
  font-family: var(--font-headings);
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff !important;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.subpage-subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9) !important;
  max-width: 800px;
  margin: 0 auto;
  font-weight: 500;
}


.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color), #3b82f6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-family: var(--font-headings);
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.logo-text {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, var(--primary-color), #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-subtext {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: -3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active-page, .nav-link.active-page-parent {
  color: var(--primary-color);
}

.nav-link:hover::after, .nav-link.active-page::after, .nav-link.active-page-parent::after {
  width: 100%;
}

/* Navigation Dropdowns */
.nav-item-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 100;
}

.dropdown-menu a {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  text-align: left;
}

.dropdown-menu a:hover, .dropdown-menu a.active-subpage {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-smooth);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  padding: 10rem 0 6rem 0;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(239, 246, 255, 0.7) 0%, rgba(255, 255, 255, 0) 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-color);
  background-color: var(--accent-light);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  width: fit-content;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(217, 119, 6, 0.15);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color) 30%, #1e40af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-headings);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-image-wrapper {
  position: relative;
  z-index: 1;
}

.hero-image-card {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  position: relative;
  background-color: var(--border-color);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(30, 58, 138, 0.4) 0%, rgba(30, 58, 138, 0) 60%);
}

.hero-floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
  animation: float 6s ease-in-out infinite;
}

.hero-floating-card.card-1 {
  bottom: 5%;
  left: -10%;
}

.hero-floating-card.card-2 {
  top: 10%;
  right: -5%;
  animation-delay: 3s;
}

.floating-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.floating-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.floating-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* ==========================================
   BENTO GRID SECTION
   ========================================== */
.bento-section {
  padding: 6rem 0;
  background-color: #f8fafc;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 1.75rem;
}

.bento-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 58, 138, 0.15);
}

/* Specific cards configuration */
.bento-card.card-large {
  grid-column: span 2;
  background: linear-gradient(135deg, #ffffff 0%, #f7fafd 100%);
  border-left: 5px solid var(--primary-color);
}

.bento-card.card-vertical {
  grid-row: span 2;
  background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
  justify-content: space-between;
}

.bento-card.card-horizontal {
  grid-column: span 3;
  background: linear-gradient(135deg, var(--bg-warm-card) 0%, #fffbf2 100%);
  border: 1.5px dashed rgba(217, 119, 6, 0.2);
}

.bento-card.card-accent {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
  color: #ffffff;
  border: none;
}

.bento-card.card-accent h3 {
  color: #ffffff;
}

.bento-card.card-accent .card-desc {
  color: rgba(255, 255, 255, 0.85);
}

.bento-card.card-accent .card-icon {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Card Elements */
.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition-bounce);
}

.bento-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.bento-card.card-accent .card-icon {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.card-tag {
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

.card-tag-blue {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.card-tag-gold {
  background-color: var(--accent-light);
  color: var(--accent-color);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.card-desc strong {
  color: var(--primary-color);
}

.card-link {
  margin-top: auto;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-link i {
  transition: var(--transition-smooth);
}

.bento-card:hover .card-link i {
  transform: translateX(4px);
}

/* Inclusions List for Card 4 */
.inclusions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.inclusion-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: #ffffff;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-smooth);
}

.inclusion-item:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.inclusion-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--accent-light);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.inclusion-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text-dark);
}

.inclusion-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.price-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.price-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.price-value {
  font-family: var(--font-headings);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-color);
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ==========================================
   MEMORY BLOCK SECTION (Смысловой блок)
   ========================================== */
.memory-section {
  padding: 8rem 0;
  background-color: #ffffff;
  position: relative;
}

.memory-grid {
  display: grid;
  grid-template-columns: 0.90fr 1.10fr;
  gap: 5rem;
  align-items: center;
}

.memory-portrait-wrapper {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 400px;
}

.memory-portrait-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background-color: var(--border-color);
}

.memory-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.memory-portrait-frame::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(30, 58, 138, 0.3) 0%, rgba(0, 0, 0, 0) 50%);
}

.memory-frame-decoration {
  position: absolute;
  top: -15px;
  left: -15px;
  right: 15px;
  bottom: 15px;
  border: 2px solid var(--accent-color);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.memory-portrait-wrapper:hover .memory-frame-decoration {
  transform: translate(8px, 8px);
  opacity: 0.7;
}

.memory-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 70%, rgba(0, 0, 0, 0) 100%);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  color: #ffffff;
  text-align: center;
}

.memory-caption h4 {
  color: #ffffff;
  font-size: 1.15rem;
  font-family: var(--font-headings);
  font-weight: 700;
  margin-bottom: 2px;
}

.memory-caption p {
  color: var(--accent-color);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.memory-caption span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  display: block;
}

.memory-content {
  display: flex;
  flex-direction: column;
}

.memory-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--primary-color);
  line-height: 1.6;
  margin-bottom: 2rem;
  position: relative;
  padding-left: 2rem;
}

.memory-quote::before {
  content: '“';
  position: absolute;
  top: -15px;
  left: -5px;
  font-size: 4rem;
  color: var(--accent-color);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.3;
}

.memory-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.memory-text p {
  margin-bottom: 1.25rem;
}

.memory-sign-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.75rem;
}

.director-info h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.director-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================
   ADDITIONAL SERVICES SECTION (Курсы, репетиторы)
   ========================================== */
.programs-section {
  padding: 6rem 0;
  background-color: var(--bg-main);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.program-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 58, 138, 0.1);
}

.program-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.75rem;
  transition: var(--transition-bounce);
}

.program-card:hover .program-icon-box {
  transform: scale(1.1) rotate(-5deg);
  background-color: var(--primary-color);
  color: #ffffff;
}

.program-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.program-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.program-details {
  list-style: none;
  margin-bottom: 2rem;
  margin-top: auto;
}

.program-details li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.program-details li i {
  color: var(--accent-color);
  font-size: 0.8rem;
}

/* ==========================================
   PROMOTIONS SECTION (Акции)
   ========================================== */
.promo-section {
  padding: 6rem 0;
  background-color: #ffffff;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.promo-card {
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.promo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--border-color);
  transition: var(--transition-smooth);
}

.promo-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 58, 138, 0.15);
}

/* Colored themes for actions */
.promo-card.promo-blue::before {
  background: linear-gradient(to right, #3b82f6, #1d4ed8);
}
.promo-card.promo-gold::before {
  background: linear-gradient(to right, #f59e0b, #d97706);
}
.promo-card.promo-green::before {
  background: linear-gradient(to right, #10b981, #047857);
}

.promo-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

.promo-blue .promo-badge {
  background-color: var(--primary-light);
  color: var(--primary-color);
}
.promo-gold .promo-badge {
  background-color: var(--accent-light);
  color: var(--accent-color);
}
.promo-green .promo-badge {
  background-color: #ecfdf5;
  color: #065f46;
}

.promo-icon {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  display: block;
}

.promo-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.promo-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.promo-benefit {
  font-family: var(--font-headings);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.promo-green .promo-benefit {
  color: #065f46;
}

.promo-benefit span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ==========================================
   PEDAGOGUES SECTION (Педагоги)
   ========================================== */
.teachers-section {
  padding: 6rem 0;
  background-color: #f8fafc;
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.teacher-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 58, 138, 0.1);
}

.teacher-photo-box {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.teacher-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: var(--transition-smooth);
}

.teacher-card:hover .teacher-photo-box img {
  transform: scale(1.05);
}

.teacher-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  position: relative;
}

.teacher-avatar-placeholder i {
  font-size: 4rem;
  opacity: 0.45;
  transition: var(--transition-bounce);
}

.teacher-card:hover .teacher-avatar-placeholder i {
  transform: scale(1.15) translateY(-5px);
  opacity: 0.7;
}

.teacher-subject-tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background-color: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-family: var(--font-headings);
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 5;
}

.teacher-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.teacher-name {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.teacher-stats-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.teacher-stat {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.teacher-stat i {
  color: var(--accent-color);
}

.teacher-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Empty Vacancy Cards */
.teacher-card.vacancy-card {
  border: 2px dashed rgba(30, 58, 138, 0.2);
  background-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.teacher-card.vacancy-card:hover {
  border-color: var(--accent-color);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-md);
}

.teacher-card.vacancy-card .teacher-photo-box {
  background-color: rgba(241, 245, 249, 0.5);
}

.teacher-card.vacancy-card .teacher-avatar-placeholder {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: var(--text-muted);
}

.vacancy-label {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-color);
  letter-spacing: 0.05em;
  background-color: var(--accent-light);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
}

.vacancy-btn {
  margin-top: auto;
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(30, 58, 138, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.teacher-card.vacancy-card:hover .vacancy-btn {
  background-color: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
}

/* ==========================================
   FAQ SECTION (Аккордеон)
   ========================================== */
.faq-section {
  padding: 6rem 0;
  background-color: #ffffff;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item.active {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
  background-color: #ffffff;
}

.faq-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  outline: none;
}

.faq-question {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
  padding-right: 1.5rem;
  transition: var(--transition-smooth);
}

.faq-item.active .faq-question {
  color: var(--primary-color);
}

.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  flex-shrink: 0;
  transition: var(--transition-bounce);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.faq-toggle::before {
  content: '+';
  font-size: 1.5rem;
  font-family: var(--font-headings);
  font-weight: 500;
  line-height: 1;
}

.faq-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-body {
  padding: 0 2rem 1.75rem 2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================
   POP-UP MODAL (Всплывающие окошки)
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  max-width: 480px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.modal-icon-header {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.5rem auto;
}

.modal-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.modal-desc {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.form-group input, .form-group select, .form-group textarea {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition-smooth);
  background-color: #ffffff;
  font-size: 0.95rem;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* ==========================================
   ENROLLMENT FORM STYLE POLISH
   ========================================== */
.enroll-section {
  padding: 6rem 0;
  background-color: var(--primary-light);
}

.enroll-container {
  max-width: 900px;
  margin: 0 auto;
}

.enroll-card {
  background-color: var(--bg-card);
  padding: 3.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(30, 58, 138, 0.05);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 5rem 0 2.5rem 0;
  border-top: 4px solid var(--accent-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-logo .logo-icon {
  background: linear-gradient(135deg, var(--accent-color), #f59e0b);
}

.footer-logo .logo-text {
  background: linear-gradient(to right, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-logo .logo-subtext {
  color: #64748b;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.social-link:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.footer-heading {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-link {
  font-size: 0.9rem;
}

.footer-link:hover {
  color: #ffffff;
  padding-left: 5px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
}

.contact-icon {
  color: var(--accent-color);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-text h5 {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-text p, .contact-text a {
  font-size: 0.85rem;
  color: #94a3b8;
}

.contact-text a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8rem;
}

.copyright {
  color: #64748b;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-link {
  color: #64748b;
}

.footer-bottom-link:hover {
  color: #94a3b8;
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */

/* Breakpoint: Desktop (Medium) */
@media (max-width: 1100px) {
  .hero-grid {
    gap: 2rem;
  }
  .hero-title {
    font-size: 3rem;
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }
  .bento-card.card-large {
    grid-column: span 2;
  }
  .bento-card.card-vertical {
    grid-row: span 1;
    grid-column: span 1;
  }
  .bento-card.card-horizontal {
    grid-column: span 2;
  }
  .inclusions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Breakpoint: Tablet (Landscape/Portrait) */
@media (max-width: 900px) {
  .nav {
    display: none; /* Will be toggled by JS */
  }
  
  .menu-toggle {
    display: flex;
  }
  
  /* Mobile Nav Drawer style */
  .nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
  }
  
  .header-actions .btn {
    display: none;
  }
  
  .nav.active ~ .header-actions .btn {
    display: flex;
  }

  .hero {
    padding: 8rem 0 4rem 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-content {
    text-align: center;
    align-items: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    width: 100%;
    justify-content: center;
  }
  
  .hero-image-wrapper {
    max-width: 550px;
    margin: 0 auto;
    width: 100%;
  }

  .bento-section {
    padding: 4rem 0;
  }
  
  .memory-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .memory-portrait-wrapper {
    max-width: 320px;
  }
  
  .programs-grid, .promo-grid, .teachers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
}

/* Breakpoint: Mobile (Large/Medium) */
@media (max-width: 600px) {
  html {
    font-size: 15px;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-floating-card.card-1 {
    left: -5%;
  }
  
  .hero-floating-card.card-2 {
    right: -2%;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-card.card-large,
  .bento-card.card-vertical,
  .bento-card.card-horizontal {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .inclusions-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .programs-grid, .promo-grid, .teachers-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .enroll-card {
    padding: 2rem 1.5rem;
  }
}

/* ==========================================
   SUBPAGES NAVIGATION & ELEMENT STYLING
   ========================================== */

/* Dropdowns on Mobile */
@media (max-width: 900px) {
  .nav-item-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .nav-item-dropdown .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0.5rem 0 0 1rem;
    opacity: 1;
    visibility: visible;
    display: flex;
    min-width: 100%;
    background-color: transparent;
  }
  .dropdown-toggle i {
    display: none;
  }
}

/* Document Cards (basic-info.html) */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.doc-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}
.doc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}
.doc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: #fee2e2;
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.doc-info {
  flex-grow: 1;
}
.doc-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}
.doc-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.doc-download-btn {
  color: var(--primary-color);
  font-size: 1.25rem;
  transition: var(--transition-smooth);
}
.doc-card:hover .doc-download-btn {
  color: var(--accent-color);
  transform: scale(1.1);
}

/* Info Tables & Details (education.html / basic-info.html) */
.info-section {
  padding: 6rem 0;
  background-color: #ffffff;
}
.info-table-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 3rem;
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.info-table th, .info-table td {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-color);
}
.info-table th {
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-family: var(--font-headings);
  font-weight: 700;
}
.info-table tr:last-child td {
  border-bottom: none;
}
.info-table td strong {
  color: var(--primary-color);
}

/* Accordion for Prices (prices.html) */
.price-accordion {
  max-width: 900px;
  margin: 3rem auto 0 auto;
}
.accordion-item {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}
.accordion-item:hover {
  border-color: rgba(30, 58, 138, 0.15);
  box-shadow: var(--shadow-md);
}
.accordion-header {
  width: 100%;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}
.accordion-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}
.accordion-toggle-icon {
  width: 24px;
  height: 24px;
  position: relative;
  transition: var(--transition-smooth);
}
.accordion-toggle-icon::before, .accordion-toggle-icon::after {
  content: '';
  position: absolute;
  background-color: var(--primary-color);
  transition: var(--transition-smooth);
}
.accordion-toggle-icon::before {
  top: 11px;
  left: 3px;
  width: 18px;
  height: 2px;
}
.accordion-toggle-icon::after {
  top: 3px;
  left: 11px;
  width: 2px;
  height: 18px;
}
.accordion-item.active .accordion-toggle-icon {
  transform: rotate(45deg);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: var(--bg-main);
}
.accordion-content-inner {
  padding: 1.5rem 2.25rem 2rem 2.25rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  line-height: 1.7;
}

/* Gallery Grid (gallery.html) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 58, 138, 0.4);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
}

/* Video archive layout (history.html) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.video-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}
.video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.video-preview {
  aspect-ratio: 16/9;
  background-color: var(--primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
}
.video-play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-bounce);
}
.video-card:hover .video-play-btn {
  transform: scale(1.1);
  background-color: var(--accent-hover);
}
.video-info {
  padding: 1.25rem;
}
.video-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
  .enroll-card {
    padding: 2rem 1.5rem;
  }
}
