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

:root {
  --bg: #0c0f12;
  --bg-elevated: #141a20;
  --bg-card: #1a222b;
  --bg-card-hover: #212b36;
  --surface: #f5f3ef;
  --surface-muted: #e8e4dc;
  --text: #1a1f26;
  --text-muted: #6b7280;
  --text-on-dark: #f0ede8;
  --text-on-dark-muted: #9ca3af;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --accent: #c0392b;
  --accent-hover: #e74c3c;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(0, 0, 0, 0.08);
  --sidebar-width: 210px;
  --content-min-height: 560px;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

.data-error-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 14px 20px;
  background: #c0392b;
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

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

a:hover {
  color: var(--accent-hover);
}

/* ─── Header ─── */
.site-header {
  position: relative;
  color: var(--text-on-dark);
  padding: 56px 0 64px;
  text-align: center;
  overflow: hidden;
}

.header-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    url("https://images.unsplash.com/photo-1595590424284-d6c3c5b9b8a4?w=1600&q=80") center/cover no-repeat;
}

.header-slides {
  position: absolute;
  inset: 0;
}

.header-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  transform: scale(1.05);
}

.header-slide.active {
  opacity: 1;
}

.header-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 15, 18, 0.55) 0%, rgba(12, 15, 18, 0.92) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.12) 0%, transparent 60%);
}

.header-inner {
  position: relative;
  z-index: 1;
}

.header-badge {
  display: inline-block;
  padding: 6px 18px;
  margin-bottom: 20px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(201, 168, 76, 0.08);
  backdrop-filter: blur(8px);
}

.site-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.site-subtitle {
  margin-top: 14px;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.02em;
}

.header-contacts {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-on-dark) !important;
  font-weight: 600;
  font-size: 0.9rem;
  backdrop-filter: blur(12px);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none !important;
}

.contact-chip:hover {
  background: rgba(201, 168, 76, 0.15);
  border-color: rgba(201, 168, 76, 0.4);
  transform: translateY(-2px);
  color: var(--gold-light) !important;
}

.chip-icon {
  font-size: 1rem;
  opacity: 0.8;
}

/* ─── Top nav ─── */
.top-nav {
  background: var(--bg-elevated);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.top-nav-inner {
  display: flex;
}

.top-nav-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
  color: var(--text-on-dark-muted);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border-right: 1px solid var(--border);
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.top-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.top-nav-link:last-child {
  border-right: none;
}

.top-nav-link:hover {
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.top-nav-link:hover::after {
  transform: scaleX(1);
}

.top-nav-link.active {
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.06);
}

.top-nav-link.active::after {
  transform: scaleX(1);
}

/* ─── Main layout ─── */
.main-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr var(--sidebar-width);
  gap: 0;
  padding-top: 32px;
  padding-bottom: 32px;
  min-height: var(--content-min-height);
}

/* ─── Sidebars ─── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0;
}

.sidebar-left {
  padding-right: 8px;
}

.sidebar-right {
  padding-left: 8px;
}

.sidebar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-on-dark-muted);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1.35;
  position: relative;
  overflow: hidden;
}

.sidebar-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform var(--transition);
}

.sidebar-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-on-dark);
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateX(2px);
}

.sidebar-right .sidebar-btn:hover {
  transform: translateX(-2px);
}

.sidebar-btn.active {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.18) 0%, rgba(192, 57, 43, 0.12) 100%);
  color: var(--gold-light);
  border-color: rgba(201, 168, 76, 0.45);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.1);
}

.sidebar-btn.active::before {
  transform: scaleY(1);
}

.sidebar-btn--link {
  text-decoration: none;
  display: flex;
}

/* ─── Content window ─── */
.content-window {
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: var(--content-min-height);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.content-toolbar {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(180deg, #faf9f7 0%, #f0ede8 100%);
  border-bottom: 1px solid var(--border-light);
  min-height: 64px;
}

.content-toolbar.has-bg {
  background: none;
}

.content-toolbar-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.content-toolbar-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(240, 237, 232, 0.88) 100%);
  pointer-events: none;
}

.content-toolbar-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  min-height: 64px;
}

.carousel-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.carousel-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.arrow-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.arrow-btn:hover {
  background: var(--bg);
  color: var(--gold-light);
  border-color: var(--bg);
  transform: scale(1.05);
}

.page-indicator {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
}

.page-dots {
  display: flex;
  gap: 8px;
}

.page-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #d1cdc6;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}

.page-dot:hover {
  background: var(--gold);
  transform: scale(1.2);
}

.page-dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

.close-tab-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(192, 57, 43, 0.35);
}

.close-tab-btn:hover {
  background: var(--accent-hover);
  transform: rotate(90deg) scale(1.05);
}

.close-tab-btn.hidden,
.carousel-nav.hidden,
.hidden {
  display: none !important;
}

.content-body {
  flex: 1;
  padding: 32px 36px;
  overflow-y: auto;
  background: #fff;
}

/* ─── Pages ─── */
.carousel-view,
.tab-view {
  height: 100%;
}

.carousel-page,
.tab-page {
  display: none;
  animation: fadeSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-page.active,
.tab-page.active {
  display: block;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.carousel-page h2,
.tab-page h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--text);
  position: relative;
  padding-bottom: 12px;
}

.carousel-page h2::after,
.tab-page h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  border-radius: 2px;
}

/* ─── Hero block ─── */
.hero-block {
  position: relative;
  background: linear-gradient(135deg, var(--bg) 0%, #1e2830 50%, #2a1f1a 100%);
  color: var(--text-on-dark);
  padding: 36px 40px;
  border-radius: var(--radius);
  margin-bottom: 28px;
  overflow: hidden;
}

.hero-block::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-block p {
  position: relative;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text-on-dark-muted);
}

.hero-block p strong,
.hero-block p {
  max-width: 680px;
}

/* ─── Info cards ─── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.info-card {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  position: relative;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 168, 76, 0.3);
}

.info-card-icon {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 8px;
}

.info-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text);
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Instructors ─── */
.instructors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.instructor-card {
  background: var(--surface);
  padding: 28px 24px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.instructor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 168, 76, 0.25);
}

.instructor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg) 0%, #2a3440 100%);
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  border: 2px solid rgba(201, 168, 76, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.instructor-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  display: block;
  border: 2px solid rgba(201, 168, 76, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.instructor-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.instructor-role {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.instructor-card > p:last-child {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ─── Audience ─── */
.audience-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.audience-block {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.audience-block:hover {
  border-color: rgba(201, 168, 76, 0.25);
}

.audience-block h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--text);
}

.audience-block ul {
  padding-left: 0;
  list-style: none;
}

.audience-block li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.audience-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.audience-block.highlight {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--bg) 0%, #1a2228 100%);
  color: var(--text-on-dark);
  border-color: rgba(201, 168, 76, 0.2);
}

.audience-block.highlight h3 {
  color: var(--gold-light);
}

.audience-block.highlight p {
  color: var(--text-on-dark-muted);
}

.audience-block.highlight a {
  color: var(--gold-light);
}

.cta-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--gold) 0%, #b8943f 100%);
  color: var(--bg) !important;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.45);
  color: var(--bg) !important;
}

/* ─── Gallery ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 16px;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform var(--transition);
  background: linear-gradient(145deg, #3a3a3a, #666) center/cover;
  background-size: cover;
  background-position: center;
}

.gallery-item--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, transparent 60%);
  z-index: 1;
}

.gallery-item--video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65) 0%, transparent 45%);
  pointer-events: none;
  z-index: 1;
}

.gallery-item--video {
  padding: 0;
  display: block;
  cursor: default;
}

.gallery-item--video:hover {
  transform: none;
}

.gallery-item-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gallery-item-media video,
.gallery-item-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
  background: #111;
}

.gallery-item--video span {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gallery-item span {
  position: relative;
  z-index: 2;
}

.gallery-item--photo:hover {
  transform: scale(1.03);
}

button.gallery-item--photo {
  border: 0;
  width: 100%;
  text-align: left;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

button.gallery-item--photo:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gallery-lightbox.hidden {
  display: none;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 12, 0.92);
  cursor: pointer;
}

.gallery-lightbox-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: visible;
}

.gallery-lightbox-img {
  display: block;
  max-width: min(96vw, 1400px);
  max-height: calc(92vh - 52px);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 4px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
  background: transparent;
}

.gallery-lightbox-caption {
  color: var(--text-on-dark);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  max-width: 90vw;
}

.gallery-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.gallery-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.gallery-lightbox-nav--prev {
  left: 16px;
}

.gallery-lightbox-nav--next {
  right: 16px;
}

.gallery-lightbox-nav[hidden],
.gallery-lightbox-caption[hidden] {
  display: none;
}

@media (max-width: 700px) {
  .gallery-lightbox {
    padding: 12px;
  }

  .gallery-lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .gallery-lightbox-nav--prev {
    left: 8px;
  }

  .gallery-lightbox-nav--next {
    right: 8px;
  }

  .gallery-lightbox-close {
    top: 10px;
    right: 10px;
  }
}

.gallery-folders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.gallery-folders-grid--home {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-folder {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-light);
  text-decoration: none !important;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.gallery-folder:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 168, 76, 0.35);
}

.gallery-folder-cover {
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #3a3a3a, #666) center/cover;
  background-size: cover;
  background-position: center;
  position: relative;
}

.gallery-folder-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, transparent 55%);
}

.gallery-folder-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.gallery-folder-icon {
  position: absolute;
  top: -28px;
  right: 14px;
  font-size: 1.4rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.gallery-folder-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.gallery-folder-count {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.gallery-section-view,
.gallery-subsections-nav {
  margin-top: 8px;
}

.gallery-section-back {
  margin-bottom: 20px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.gallery-section-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--text);
}

.gallery-note {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-style: italic;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent) !important;
  text-decoration: none !important;
  transition: color var(--transition), transform var(--transition);
}

.view-all-link:hover {
  color: var(--gold) !important;
  transform: translateX(4px);
}

.pdf-download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 100px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: var(--gold) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.pdf-download-link:hover {
  background: rgba(201, 168, 76, 0.2);
  border-color: rgba(201, 168, 76, 0.55);
  transform: translateY(-2px);
}

.pdf-download-link--soon {
  opacity: 0.65;
  cursor: default;
  pointer-events: none;
}

/* ─── Subpages ─── */
.subpage {
  background: var(--surface);
}

.subpage-header {
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
}

.subpage-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.subpage-logo {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-on-dark) !important;
  text-decoration: none !important;
}

.subpage-logo:hover {
  color: var(--gold-light) !important;
}

.subpage-contacts {
  margin-top: 0 !important;
}

.contact-chip--sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.top-nav--sub {
  position: sticky;
}

.subpage-main {
  padding: 32px 24px 64px;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted) !important;
  text-decoration: none !important;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--accent) !important;
}

.subpage-hero {
  margin-bottom: 36px;
}

.subpage-hero .section-label {
  text-align: left;
  margin-bottom: 8px;
  color: var(--gold);
}

.subpage-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}

.subpage-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}

.subpage-desc a {
  color: var(--accent);
  font-weight: 600;
}

.page-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px dashed var(--border-light);
}

.page-empty--error {
  color: #c0392b;
  border-color: rgba(192, 57, 43, 0.35);
  background: rgba(192, 57, 43, 0.06);
}

.loading-hint {
  opacity: 0.7;
}

/* Product catalog page */
.product-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.product-card--highlight {
  outline: 2px solid var(--accent, #c4a35a);
  box-shadow: 0 0 0 4px rgba(196, 163, 90, 0.25), var(--shadow-md);
  transform: translateY(-4px);
}

.product-card-cover {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--surface-muted);
}

.product-card-cover--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.4;
}

.product-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text);
}

.product-card-price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.product-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 16px;
}

.product-card-footer {
  margin-top: auto;
}

.product-card-btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--gold) 0%, #b8943f 100%);
  color: var(--bg) !important;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: all var(--transition);
}

.product-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
}

.instructors-grid--page {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-grid--page {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item--page {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
}

.subpage-cta {
  margin-top: 48px;
  padding: 32px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg) 0%, #1e2830 100%);
  border-radius: var(--radius-lg);
  color: var(--text-on-dark);
}

.subpage-cta p {
  margin-bottom: 16px;
  color: var(--text-on-dark-muted);
}

.subpage-footer {
  background: var(--bg);
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.subpage-footer p {
  color: var(--text-on-dark-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.subpage-footer a {
  color: var(--gold-light) !important;
  font-size: 0.88rem;
  text-decoration: none !important;
}

.subpage-footer a:hover {
  text-decoration: underline !important;
}

/* ─── Tab pages ─── */
.tab-page p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tab-page ul:not(.shop-offers),
.tab-page ol {
  padding-left: 0;
  margin: 16px 0;
  list-style: none;
}

.tab-page ul:not(.shop-offers) li,
.tab-page ol li {
  margin-bottom: 10px;
  padding: 10px 16px;
  background: var(--surface);
  border-radius: 8px;
  border-left: 3px solid var(--gold);
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: background var(--transition);
}

.tab-page ul:not(.shop-offers) li:hover,
.tab-page ol li:hover {
  background: var(--surface-muted);
}

.tab-page li.tab-item--link {
  padding: 0;
  overflow: hidden;
}

.tab-item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  color: inherit;
  text-decoration: none;
}

.tab-item-link:hover {
  color: var(--text);
}

.tab-item-link-text {
  flex: 1;
}

.tab-item-link-arrow {
  color: var(--gold);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.tab-item-link:hover .tab-item-link-arrow {
  transform: translateX(3px);
}

.tab-page li strong {
  color: var(--text);
}

.steps-list {
  counter-reset: steps;
}

.steps-list li {
  counter-increment: steps;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-left: 16px;
  position: relative;
}

.steps-list li::before {
  content: counter(steps);
  position: static;
  flex-shrink: 0;
  transform: none;
  width: 28px;
  min-width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Shop offers ─── */
.shop-intro {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.shop-offers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-offer {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 104px;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  min-height: 96px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  transition: all var(--transition);
}

.shop-offer-cover {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-muted);
  align-self: center;
}

.shop-offer-cover--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold);
  opacity: 0.6;
}

.shop-offer-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  align-self: center;
}

.shop-offer-title {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.35;
}

.shop-offer-price {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  line-height: 1.3;
  color: var(--gold);
  letter-spacing: 0.03em;
  min-height: 1.15em;
}

.shop-offer-price--empty {
  visibility: hidden;
}

.shop-offer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-offer-action {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 104px;
  flex-shrink: 0;
}

.shop-badge--out {
  background: rgba(192, 57, 43, 0.1);
  color: var(--accent);
}

.shop-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  list-style: none;
}

.shop-offer:hover {
  background: var(--surface-muted);
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateX(4px);
}

.shop-offer-action .shop-badge,
.shop-offer-action .shop-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-sizing: border-box;
  text-align: center;
}

.shop-badge {
  background: rgba(39, 174, 96, 0.12);
  color: #1e8449;
}

.shop-link {
  background: var(--gold-dim);
  color: var(--text) !important;
  text-decoration: none !important;
  border: 1px solid rgba(201, 168, 76, 0.35);
  transition: all var(--transition);
}

.shop-link:hover {
  background: var(--gold);
  color: var(--bg) !important;
}

.shop-footer {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ─── Sections ─── */
.section-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-on-dark);
}

/* ─── FAQ ─── */
.faq-section {
  background: var(--bg);
  padding: 72px 0;
  position: relative;
}

.faq-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(192, 57, 43, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: rgba(201, 168, 76, 0.25);
}

.faq-item[open] {
  border-color: rgba(201, 168, 76, 0.35);
}

.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-on-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--transition);
}

.faq-item summary:hover {
  color: var(--gold-light);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.faq-item[open] summary::after {
  content: '−';
  background: var(--gold);
  color: var(--bg);
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-on-dark-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.faq-item a {
  color: var(--gold-light);
}

.faq-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 32px auto 0;
  padding: 12px 28px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 100px;
  color: var(--gold-light) !important;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--transition);
  text-decoration: none !important;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.faq-link:hover {
  background: rgba(201, 168, 76, 0.12);
  border-color: var(--gold);
}

.faq-list--page {
  max-width: 760px;
  margin: 0 auto;
}

.faq-list--page .faq-item summary,
.faq-list--page .faq-item p {
  color: var(--text);
}

.faq-list--page .faq-item {
  background: #fff;
  border-color: var(--border-light);
}

.faq-list--page .faq-item summary {
  color: var(--text);
}

.faq-list--page .faq-item p {
  color: var(--text-muted);
}

.faq-list--page .faq-item a {
  color: var(--accent);
}

/* ─── Map ─── */
.map-section {
  background: var(--bg-elevated);
  padding: 72px 0;
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.map-wrapper iframe {
  display: block;
  filter: grayscale(20%) contrast(1.05);
}

.map-fallback {
  padding: 24px 28px;
  background: var(--bg-card);
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}

.map-fallback p {
  color: var(--text-on-dark-muted);
  font-size: 0.92rem;
}

.map-fallback strong {
  color: var(--text-on-dark);
}

.map-fallback a {
  color: var(--gold-light);
}

/* ─── Footer ─── */
.site-footer {
  background: var(--bg);
  padding: 72px 0 32px;
  border-top: 1px solid var(--border);
}

.site-footer .section-title {
  color: var(--text-on-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h3 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--gold-light);
}

.footer-grid p {
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  line-height: 1.7;
}

.footer-grid a {
  color: var(--text-on-dark-muted);
  transition: color var(--transition);
}

.footer-grid a:hover {
  color: var(--gold-light);
}

.copyright {
  text-align: center;
  color: var(--text-on-dark-muted);
  font-size: 0.82rem;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  opacity: 0.7;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 170px;
  }

  .instructors-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .content-body {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .main-layout {
    grid-template-columns: 1fr;
    padding-top: 20px;
  }

  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    gap: 8px;
  }

  .sidebar-left {
    order: 2;
    padding-right: 0;
  }

  .content-window {
    order: 1;
  }

  .sidebar-right {
    order: 3;
    padding-left: 0;
  }

  .sidebar-btn {
    flex: 1 1 45%;
    min-height: 64px;
    font-size: 0.65rem;
  }

  .sidebar-btn:hover {
    transform: none;
  }

  .top-nav-inner {
    flex-wrap: wrap;
  }

  .top-nav-link {
    flex: 1 1 33%;
    font-size: 0.65rem;
    padding: 12px 6px;
  }

  .audience-section,
  .gallery-folders-grid,
  .gallery-folders-grid--home,
  .footer-grid,
  .product-catalog,
  .instructors-grid--page,
  .gallery-grid--page {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding: 40px 0 48px;
  }

  .content-toolbar {
    padding: 12px 14px;
  }

  .arrow-btn,
  .close-tab-btn {
    width: 38px;
    height: 38px;
  }

  .page-indicator {
    font-size: 0.82rem;
  }

  .map-fallback {
    flex-direction: column;
    gap: 8px;
  }
}
