/* ========== PREMIUM DARK MAGIC THEME ========== */
:root {
  --bg: #0a0a0f;
  --bg-elevated: #121218;
  --bg-card: #16161e;
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --gold: #facc15;
  --text: #f1f1f5;
  --text-muted: #a1a1aa;
  --border: #27272a;

  /* Consistent spacing scale for beauty and rhythm */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 80px;
}

* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* ========== NAVBAR ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-3);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.logo-icon {
  font-size: 26px;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 15px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phone {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.phone:hover {
  color: var(--text);
}

.messenger-btn, .whatsapp-btn {
  background: #4A90E2;
  color: white;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.messenger-btn:hover, .whatsapp-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-primary {
  background: var(--purple);
  color: white;
}

.btn-primary:hover {
  background: #6d28d9;
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 15px 30px -8px rgb(124 58 237 / 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--purple-light);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 36px;
  font-size: 17px;
}

.btn-full {
  width: 100%;
}

.burger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
}

@media (max-width: 640px) {
  .hero {
    padding: 60px 0 40px;
    min-height: 100dvh; /* better for mobile browsers */
  }
}

/* Background video - plays behind everything */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: saturate(0.95) contrast(1.05); /* slightly cinematic look */
}

/* Strong dark overlay so text is readable over any video content */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: 
    linear-gradient(
      to bottom,
      rgba(8, 8, 12, 0.72) 0%,
      rgba(8, 8, 12, 0.58) 15%,
      rgba(8, 8, 12, 0.66) 38%,
      rgba(8, 8, 12, 0.78) 100%
    );
  /* Subtle purple magic glow from the brand */
  box-shadow: inset 0 0 140px rgba(124, 58, 237, 0.15);
}

.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.badge {
  display: inline-block;
  background: rgba(124, 58, 237, 0.15);
  color: var(--purple-light);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

h1 {
  font-size: clamp(42px, 6.5vw, 68px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin: 0 0 24px;
}

.accent {
  background: linear-gradient(90deg, #facc15, #fde047);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

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

.hero-trust {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--text-muted);
}

.hero-trust div {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========== TRUST BAR ========== */
.trust-bar {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-2) 0;
}

.trust-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  text-align: center;
}

.trust-item {
  font-size: 15px;
  color: var(--text-muted);
}

.trust-item strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

/* ========== SECTIONS ========== */
.section {
  padding: var(--space-7) 0;
}

.section-dark {
  background: var(--bg-elevated);
}

.section-header {
  margin-bottom: var(--space-6);
  text-align: center;
}

.section-header h2 {
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: var(--space-2);
  line-height: 1.1;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 0 0 12px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0;
}

/* ========== HORIZONTAL CAROUSELS (swipable sections) ========== */
.horizontal-scroller {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: var(--space-3);
  padding: 0 var(--space-3) var(--space-3) var(--space-3); /* left/right breathing room */
  scrollbar-width: thin;
  scrollbar-color: var(--purple-light) transparent;
  /* subtle edge fade to indicate scrollable */
  -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
  mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
}

.horizontal-scroller::-webkit-scrollbar {
  height: 6px;
}

.horizontal-scroller::-webkit-scrollbar-thumb {
  background: var(--purple-light);
  border-radius: 3px;
}

.horizontal-scroller::-webkit-scrollbar-track {
  background: transparent;
}

.programs-scroller .program-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
}

.reviews-scroller .review-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
}

.gallery-scroller .gallery-item {
  flex: 0 0 200px;
  scroll-snap-align: start;
}

/* ========== PROGRAMS ========== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.program-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: var(--space-5) var(--space-4);
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-6px);
  border-color: var(--purple);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

.program-card.highlight {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.2);
}

.program-badge {
  position: absolute;
  top: -11px;
  right: 24px;
  background: var(--purple);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.program-badge.gold {
  background: #ca8a04;
  color: #111;
}

.program-card h3 {
  font-size: 22px;
  margin: 8px 0 4px;
  font-weight: 700;
}

.program-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.program-price {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
}

.program-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}

.program-features li {
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: #d1d5db;
}

.program-features li:first-child {
  border-top: none;
}

.price-note {
  text-align: center;
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ========== STEPS ========== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}

.step-number {
  font-size: 13px;
  font-weight: 800;
  color: var(--purple-light);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.step h4 {
  margin: 0 0 12px;
  font-size: 19px;
}

/* ========== FOR WHOM ========== */
.for-whom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.for-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.for-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.for-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

/* ========== CITIES (SEO landing pages) ========== */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-2);
}

.city-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.city-card:hover {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
  transform: translateY(-2px);
}

/* ========== REVIEWS ========== */
/* .reviews-grid is deprecated in favor of .horizontal-scroller.reviews-scroller */

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: var(--space-4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.4);
}

.review-stars {
  color: #facc15;
  font-size: 18px;
  margin-bottom: var(--space-2);
  letter-spacing: 2px;
}

.review-text {
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: var(--space-3);
  color: #e4e4e7;
  font-style: italic;
}

.review-author {
  font-size: 14px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: var(--space-2);
}

/* ========== GALLERY ========== */
/* .gallery-grid is deprecated in favor of .horizontal-scroller.gallery-scroller */

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1), 
              box-shadow 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  aspect-ratio: 4 / 3;
}

.gallery-item:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-3) var(--space-3) var(--space-2);
  background: linear-gradient(to top, rgba(10,10,15,0.92), rgba(10,10,15,0.4) 70%, transparent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  z-index: 2;
  opacity: 0.95;
  transition: opacity 0.2s;
}

.gallery-item:hover figcaption {
  opacity: 1;
}

/* ========== LIGHTBOX (beautiful full view) ========== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
  cursor: zoom-out;
}

.lightbox[style*="flex"] {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}

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

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
  user-select: none;
}

.lightbox-prev {
  left: -24px;
}

.lightbox-next {
  right: -24px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 640px) {
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 26px;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px -15px rgba(0,0,0,0.7);
  border: 1px solid var(--border);
}

.lightbox-caption {
  margin-top: var(--space-3);
  color: var(--text-muted);
  font-size: 16px;
  text-align: center;
  max-width: 700px;
  line-height: 1.4;
  padding: 0 10px;
}

.lightbox-hint {
  margin-top: var(--space-2);
  font-size: 12px;
  color: #555;
  opacity: 0.7;
}

@media (max-width: 640px) {
  .lightbox-inner img {
    max-height: 70vh;
  }
  .lightbox-caption {
    font-size: 14px;
  }
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  padding: var(--space-3) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--purple-light);
}

.faq-icon {
  font-size: 26px;
  color: var(--purple-light);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: var(--space-2);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

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

.faq-item.open .faq-answer {
  max-height: 220px;
}

.faq-answer p {
  padding-bottom: var(--space-3);
  margin: 0;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.65;
}

/* ========== FINAL CTA ========== */
.final-cta {
  background: linear-gradient(135deg, #1a1528, #0a0a0f);
  text-align: center;
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.final-content h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: var(--space-2);
  line-height: 1.1;
}

.final-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin: var(--space-5) 0;
}

.final-note {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========== FOOTER ========== */
.footer {
  background: #050508;
  padding: 52px 0 28px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.footer-contacts a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-contacts a:hover {
  color: var(--text);
}

.footer-copy {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: #52525b;
  text-align: center;
}

/* ========== MODAL ========== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal[style*="block"] {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 560px;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-content h3 {
  margin: 0 0 6px;
  font-size: 26px;
}

.modal-subtitle {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text-muted);
}

input, select, textarea {
  width: 100%;
  background: #0f0f16;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--purple);
}

textarea {
  resize: vertical;
}

.form-disclaimer {
  font-size: 12px;
  color: #52525b;
  text-align: center;
  margin-top: 14px;
}

/* ========== FLOATING MAX MESSENGER ========== */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #4A90E2;
  color: white;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 10px 30px -8px rgba(74, 144, 226, 0.45);
  z-index: 150;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px -8px rgba(74, 144, 226, 0.55);
}

.floating-whatsapp span {
  transform: translateY(1px);
}

/* ========== MOBILE ========== */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  
  .burger {
    display: block;
  }

  .nav-actions {
    gap: 10px;
  }

  .whatsapp-btn, .messenger-btn {
    padding: 9px 14px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .section-header h2 {
    font-size: 30px;
  }

  .program-price {
    font-size: 28px;
  }

  /* Make all buttons more compact on small phones */
  .btn {
    white-space: normal; /* allow text to wrap if needed */
    font-size: 14px;
    padding: 12px 18px;
    line-height: 1.3;
  }

  .btn-large {
    padding: 14px 20px;
    font-size: 15px;
  }

  /* Navbar actions on small screens - prevent overflow */
  .nav-actions {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .phone {
    font-size: 11px;
  }

  .phone small {
    display: none; /* hide "Макс" label to save space */
  }

  .messenger-btn, .whatsapp-btn {
    padding: 6px 8px;
    font-size: 10px;
    white-space: nowrap;
    max-width: 90px; /* prevent too wide */
  }

  /* Booking button in nav on tiny screens */
  .nav-actions .btn {
    font-size: 10px;
    padding: 6px 8px;
  }
}

/* Extra tight for very small phones (iPhone SE etc) to prevent right shift */
@media (max-width: 360px) {
  .nav-actions .phone {
    display: none; /* hide the long phone number on tiniest screens; available in mobile menu */
  }

  .container {
    padding: 0 16px;
  }

  .nav-actions {
    gap: 4px;
  }

  .messenger-btn, .whatsapp-btn {
    padding: 5px 6px;
    font-size: 9px;
  }

  .nav-actions .btn {
    font-size: 9px;
    padding: 5px 6px;
  }

  /* Modal content tighter on tiny phones */
  .modal-content {
    padding: 28px 20px;
    max-width: 94vw;
  }

  .modal-content h3 {
    font-size: 22px;
  }
}

/* Mobile menu */
.nav-links-mobile {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.nav-links-mobile.show {
  display: flex;
}

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

/* ========== PREMIUM VIDEO SHOWCASE (самый топ плеер с переключением и предпросмотром) ========== */
.video-showcase {
  max-width: 1100px;
  margin: 0 auto;
}

.video-main {
  margin-bottom: var(--space-4);
}

.video-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 25px 80px -20px rgba(0, 0, 0, 0.7),
              0 0 0 1px rgba(124, 58, 237, 0.12);
  border: 1px solid var(--border);
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 620px;
  background: #000;
}

.video-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 20px 14px;
  background: linear-gradient(to top, rgba(10,10,15,0.92) 0%, rgba(10,10,15,0.6) 60%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.video-now-playing {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.video-badge {
  background: var(--purple);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
}

#current-video-title {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}

.video-previews {
  margin-top: var(--space-2);
}

.video-scroller .video-preview-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.video-preview-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple-light);
}

.video-preview-card.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.35);
}

.preview-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.video-preview-card:hover .preview-video {
  opacity: 1;
}

.preview-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.28);
  font-size: 32px;
  color: #fff;
  opacity: 0.85;
  transition: all 0.2s ease;
  pointer-events: none;
}

.video-preview-card:hover .preview-play {
  background: rgba(124,58,237,0.15);
  opacity: 1;
}

.preview-meta {
  padding: 12px 14px 13px;
}

.preview-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2px;
}

.preview-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

.video-note {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .video-wrapper video {
    max-height: 320px;
  }
  .video-scroller .video-preview-card {
    flex: 0 0 180px;
  }
  .preview-meta {
    padding: 10px 11px;
  }
  .preview-title { font-size: 14px; }
}