/*
 * Барбершоп СВОИ — Liquid Glass Design System v2
 * iOS 26 inspired — единый фон, правильное стекло, без кривых переходов
 */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  /* === Базовые цвета === */
  --color-bg-primary: #050507;
  --color-bg-secondary: rgba(255, 255, 255, 0.02);

  /* === Liquid Glass === */
  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-bg-hover: rgba(255, 255, 255, 0.075);
  --glass-bg-active: rgba(255, 255, 255, 0.11);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-hover: rgba(255, 255, 255, 0.18);
  --glass-shadow: rgba(0, 0, 0, 0.4);
  --glass-highlight: rgba(255, 255, 255, 0.12);

  /* === Blur & Backdrop === */
  --blur-strength: 36px;
  --blur-saturation: 160%;
  --blur-brightness: 108%;

  /* === Акцент — электрический фиолетовый === */
  --color-accent-primary: #7c3aed;
  --color-accent-hover: #6d28d9;
  --color-accent-glow: rgba(124, 58, 237, 0.35);
  --color-accent-glass: rgba(124, 58, 237, 0.12);

  /* === Текст === */
  --color-text-primary: #ffffff;
  --color-text-secondary: #a3a3a3;
  --color-text-muted: #6b6b6b;

  /* === Типографика === */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Oswald', 'Impact', sans-serif;

  /* === Размеры шрифтов === */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* === Отступы === */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* === Тени === */
  --shadow-glass-sm:
    0 1px 3px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px var(--glass-highlight);
  --shadow-glass-md:
    0 4px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px var(--glass-highlight),
    inset 0 -1px 1px rgba(0, 0, 0, 0.12);
  --shadow-glass-lg:
    0 12px 28px rgba(0, 0, 0, 0.45),
    inset 0 1px 2px var(--glass-highlight),
    inset 0 -1px 1px rgba(0, 0, 0, 0.15);
  --shadow-glass-xl:
    0 24px 48px rgba(0, 0, 0, 0.5),
    inset 0 1px 3px var(--glass-highlight),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2);
  --shadow-glow:
    0 0 40px var(--color-accent-glow),
    0 0 80px rgba(124, 58, 237, 0.18);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.6), 0 8px 20px rgba(0, 0, 0, 0.35);

  /* === Скругления === */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-2xl: 2.5rem;
  --radius-full: 9999px;

  /* === Переходы === */
  --transition-fast: 180ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-slow: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* === Line heights === */
  --leading-relaxed: 1.75;
  --leading-snug: 1.375;

  /* === Z-index === */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   AMBIENT BACKGROUND SYSTEM
   Фиксированный фон — нет резких переходов между секциями
   ============================================ */
body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Слой 1: статичные орбы — фиолетовое свечение */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 72% 8%,  rgba(109, 40, 217, 0.20) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 10% 88%, rgba(124, 58, 237, 0.11) 0%, transparent 50%),
    radial-gradient(ellipse 40% 35% at 50% 55%, rgba(76,  29, 149, 0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Слой 2: анимированный орб — движение фона */
body::after {
  content: '';
  position: fixed;
  top: -30%;
  right: -15%;
  width: 75%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.14) 0%, transparent 65%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: ambientFloat 18s ease-in-out infinite;
}

@keyframes ambientFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  33%       { transform: translate(-5%, 8%) scale(1.08); opacity: 1; }
  66%       { transform: translate(3%, -5%) scale(0.95); opacity: 0.8; }
}

/* Весь контент выше ambient orbs */
body > * {
  position: relative;
  z-index: 1;
}

/* ============================================
   LIQUID GLASS — базовый класс
   ============================================ */
.liquid-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-strength)) saturate(var(--blur-saturation)) brightness(var(--blur-brightness));
  -webkit-backdrop-filter: blur(var(--blur-strength)) saturate(var(--blur-saturation)) brightness(var(--blur-brightness));
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-highlight);
  border-left-color: var(--glass-highlight);
  box-shadow: var(--shadow-glass-md);
  transition: all var(--transition-base);
}

.liquid-glass:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-glass-lg);
}

.liquid-glass:active {
  background: var(--glass-bg-active);
  box-shadow: var(--shadow-glass-sm);
}

/* === Варианты === */
.liquid-glass--prominent {
  background: rgba(255, 255, 255, 0.07);
  border-width: 1.5px;
  box-shadow: var(--shadow-glass-lg);
}
.liquid-glass--prominent:hover {
  background: rgba(255, 255, 255, 0.11);
  box-shadow: var(--shadow-glass-xl);
}

.liquid-glass--accent {
  background: var(--color-accent-glass);
  border-color: rgba(124, 58, 237, 0.25);
  border-top-color: rgba(124, 58, 237, 0.45);
  box-shadow:
    0 4px 14px rgba(124, 58, 237, 0.18),
    inset 0 1px 2px rgba(124, 58, 237, 0.18);
}
.liquid-glass--accent:hover {
  background: rgba(124, 58, 237, 0.18);
  box-shadow: var(--shadow-glow);
}

.liquid-glass--light {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(var(--blur-strength)) saturate(200%) brightness(106%);
  -webkit-backdrop-filter: blur(var(--blur-strength)) saturate(200%) brightness(106%);
  border-color: rgba(255, 255, 255, 0.5);
  border-top-color: rgba(255, 255, 255, 0.7);
  color: #18181b;
}
.liquid-glass--light:hover {
  background: rgba(255, 255, 255, 0.82);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h1 { font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl)); }
h2 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
}

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

strong { color: var(--color-text-primary); }

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
@media (min-width: 768px) {
  .container { padding: 0 var(--space-8); }
}

.section {
  padding: var(--space-16) 0;
}
@media (min-width: 768px) {
  .section { padding: var(--space-24) 0; }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: transparent;
  transition: all var(--transition-base);
  pointer-events: none;
}
.header > * { pointer-events: auto; }

.header.scrolled {
  background: rgba(5, 5, 7, 0.92);
  backdrop-filter: blur(var(--blur-strength)) saturate(var(--blur-saturation));
  -webkit-backdrop-filter: blur(var(--blur-strength)) saturate(var(--blur-saturation));
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.header.scrolled .header-inner {
  background: transparent;
  border: none;
  margin: var(--space-4) var(--space-6);
  border-radius: var(--radius-full);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-6);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  margin: var(--space-6);
  transition: all var(--transition-base);
}
@media (min-width: 768px) {
  .header-inner { margin: var(--space-6) var(--space-8); }
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-primary);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}
.header-brand:hover {
  background: var(--glass-bg);
  color: var(--color-text-primary);
}

.header-logo {
  width: 44px;
  height: 44px;
  transition: transform var(--transition-base);
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.08));
}
.header-brand:hover .header-logo {
  transform: rotate(-5deg) scale(0.95);
}

.header-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-primary);
}

/* --- Mobile menu button --- */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--color-text-primary);
  transition: all var(--transition-fast);
}
.menu-toggle:hover {
  background: var(--glass-bg);
}
@media (min-width: 768px) {
  .menu-toggle { display: none; }
}

/* --- Mobile: убираем backdrop-filter чтобы position:fixed работал правильно --- */
/* backdrop-filter создаёт containing block и ломает full-screen overlay */
@media (max-width: 767px) {
  .header-inner,
  .header.scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .header-inner {
    background: rgba(5, 5, 7, 0.88) !important;
    border-color: rgba(255, 255, 255, 0.07) !important;
  }
  .header.scrolled {
    background: rgba(5, 5, 7, 0.96) !important;
  }
}

/* --- Mobile nav open state --- */
@media (max-width: 767px) {
  .nav { display: none; }

  .nav.nav-open {
    display: flex !important;
    flex-direction: column;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    width: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    background: rgba(5, 5, 7, 0.97);
    padding: 100px var(--space-8) var(--space-8);
    z-index: 9999;
    gap: var(--space-2);
    overflow-y: auto;
  }
  .nav.nav-open .nav-link {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-base);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
  }
  .nav.nav-open .nav-link:hover,
  .nav.nav-open .nav-link.active {
    border-color: var(--glass-border);
  }
  .nav.nav-open .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    margin-top: var(--space-2);
  }

  /* Кнопка «Записаться» — между лого и бургером */
  .header .btn--glass {
    display: inline-flex !important;
    position: static !important;
    right: auto !important;
    transform: none !important;
    width: auto !important;
    padding: 0.45rem 1rem !important;
    font-size: 0.7rem !important;
    order: 2;
    flex-shrink: 0;
  }

  .header-brand { order: 1; }
  .header-inner .menu-toggle { order: 3; }
  .header-inner .nav { order: 4; }

  /* header-inner — flex без space-between чтобы элементы шли по порядку */
  .header-inner {
    justify-content: space-between;
    gap: var(--space-3);
  }

  /* menu-toggle всегда поверх nav overlay */
  .menu-toggle {
    position: relative;
    z-index: 10000;
  }
}

/* --- Desktop nav --- */
.nav {
  display: none;
  align-items: center;
  gap: var(--space-1);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.06);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
@media (min-width: 768px) {
  .nav { display: flex; }
}

.nav-link {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  outline: none;
  border: none;
  text-decoration: none;
  display: inline-block;
}
.nav-link:hover {
  color: var(--color-text-primary);
  background: var(--glass-bg);
}
.nav-link.active {
  color: var(--color-text-primary);
  background: var(--color-accent-primary);
  box-shadow: 0 2px 12px var(--color-accent-glow);
}
/* Убираем стекло с активного — оно перекрывает стиль */
.nav-link.active.liquid-glass {
  background: var(--color-accent-primary) !important;
  border-color: rgba(124, 58, 237, 0.4) !important;
  box-shadow: 0 2px 12px var(--color-accent-glow) !important;
}

/* --- Dropdown --- */
.dropdown { position: relative; }

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.dropdown-toggle:hover {
  color: var(--color-text-primary);
  background: var(--glass-bg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  z-index: var(--z-dropdown);
  min-width: 200px;
  padding: var(--space-3);
  background: rgba(8, 8, 12, 0.97);
  backdrop-filter: blur(var(--blur-strength)) saturate(var(--blur-saturation));
  -webkit-backdrop-filter: blur(var(--blur-strength)) saturate(var(--blur-saturation));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
}
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.dropdown-item:hover {
  color: var(--color-text-primary);
  background: var(--glass-bg);
}

/* ============================================
   HERO SECTION
   Прозрачный — использует ambient body background
   ============================================ */
.hero {
  padding: 160px 0 var(--space-16);  /* 160px = header + margin */
  position: relative;
  overflow: hidden;
}

/* Дополнительное локальное свечение в hero */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.18) 0%, rgba(109, 40, 217, 0.08) 45%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  animation: heroPulse 10s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 45%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(167, 139, 250, 0.08) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

@keyframes heroPulse {
  0%, 100% { opacity: 0.6; transform: scale(1) translateY(0); }
  50%       { opacity: 1;   transform: scale(1.06) translateY(-2%); }
}

/* --- Hero inner page (team, learn, etc.) --- */
.hero--inner {
  padding: 140px 0 var(--space-12);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-16);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(var(--text-5xl), 8vw, var(--text-7xl));
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: var(--space-6);
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  overflow-wrap: break-word;
}

.hero-description {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-6);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.hero-social {
  display: flex;
  gap: var(--space-2);
}

.hero-social .btn--glass-light {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(var(--blur-strength));
  -webkit-backdrop-filter: blur(var(--blur-strength));
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-fast);
}
.hero-social .btn--glass-light:hover {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
  color: white;
}

.hero-ratings {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-4);
  overflow: visible;
}
.hero-ratings > div {
  display: flex;
  gap: 1rem;
  align-items: center;
  overflow: visible;
}
.hero-ratings iframe {
  border: none !important;
  display: block;
  flex-shrink: 0;
  width: 150px;
  height: 50px;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-glass-xl);
}
.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}
.hero-image-wrapper:hover .hero-image {
  transform: scale(1.02);
}

/* --- Mobile hero --- */
@media (max-width: 640px) {
  .hero {
    padding: 110px 0 var(--space-12);
    text-align: center;
  }
  .hero-grid {
    display: flex;
    flex-direction: column;
  }
  .hero-content { order: 1; }
  .hero-image-wrapper { order: 2; margin-top: var(--space-6); }
  .hero-ratings {
    order: 3;
    justify-content: center;
    width: 100%;
    overflow: visible;
    margin-top: var(--space-4);
  }

  /* Заголовки — вписываем в экран без горизонтального overflow */
  .hero-content {
    min-width: 0;
  }
  .hero-title {
    font-size: clamp(2rem, 9.5vw, 3rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  /* Для длинных h1 (внутренние страницы) разрешаем перенос */
  .hero--inner .hero-title {
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
    font-size: clamp(1.8rem, 7.5vw, 3rem);
  }
  .hero-subtitle {
    font-size: clamp(0.95rem, 4.5vw, 1.5rem);
    white-space: normal;
    overflow-wrap: break-word;
  }
  /* Для очень длинных subtitle на внутренних страницах — разрешаем перенос */
  .hero--inner .hero-subtitle {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    overflow-wrap: break-word;
  }
  .hero-description {
    font-size: var(--text-base);
    max-width: 100%;
  }

  /* Кнопки не выходят за экран */
  .btn, .btn-accent {
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-3);
  }
  .hero-social { justify-content: center; }
  .hero-social .btn--glass-light {
    padding: 0.625rem 0.875rem !important;
    min-width: 44px !important;
  }
  .hero-social .btn--glass-light img,
  .hero-social .btn--glass-light i {
    width: 18px;
    height: 18px;
  }

  .hero::before {
    right: 0;
    width: 40%;
    height: 120%;
    top: -10%;
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn--glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-strength));
  -webkit-backdrop-filter: blur(var(--blur-strength));
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-highlight);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-glass-md);
}
.btn--glass:hover {
  background: var(--color-accent-primary);
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 4px 14px var(--color-accent-glow);
  transform: translateY(-2px);
  color: var(--color-text-primary);
}

.btn--glass-prominent,
.btn-accent {
  background: var(--color-accent-primary);
  color: var(--color-text-primary);
  border: 1px solid rgba(124, 58, 237, 0.45);
  box-shadow:
    0 4px 14px var(--color-accent-glow),
    inset 0 1px 2px rgba(255, 255, 255, 0.18);
}
.btn--glass-prominent:hover,
.btn-accent:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  color: var(--color-text-primary);
}

.btn--glass-light {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(var(--blur-strength));
  -webkit-backdrop-filter: blur(var(--blur-strength));
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #18181b;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.12),
    inset 0 1px 2px rgba(255, 255, 255, 0.6);
}
.btn--glass-light:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.16),
    inset 0 1px 2px rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
  color: #18181b;
}

/* ============================================
   CARDS & CONTENT SECTIONS
   ============================================ */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-strength)) saturate(var(--blur-saturation));
  -webkit-backdrop-filter: blur(var(--blur-strength)) saturate(var(--blur-saturation));
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-highlight);
  border-left-color: var(--glass-highlight);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-glass-md);
  transition: all var(--transition-base);
}
.card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-glass-lg);
  transform: translateY(-4px);
}
.card-image {
  width: 100%;
  height: auto;
  display: block;
}
.card-content {
  padding: var(--space-8);
}

/* Подсветка карточки сбоку (акцентная рамка) */
.card--accent-border {
  border-left: 3px solid var(--color-accent-primary) !important;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.content-block { order: 2; }
.content-image { order: 1; }

@media (min-width: 1024px) {
  .content-block--reverse .content-block { order: 1; }
  .content-block--reverse .content-image { order: 2; }
}

.content-title {
  margin-bottom: var(--space-6);
}

.content-text {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

/* ============================================
   TEAM GRID
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-8);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-strength)) saturate(var(--blur-saturation));
  -webkit-backdrop-filter: blur(var(--blur-strength)) saturate(var(--blur-saturation));
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-highlight);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-glass-md);
  transition: all var(--transition-base);
  height: 100%;
}
.team-member > * { flex-shrink: 0; }
.team-member .team-bio { flex-grow: 1; }
.team-member > .btn,
.team-member > .btn-accent {
  margin-top: auto;
  margin-bottom: 12px;
}
.team-member:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-glass-xl);
  transform: translateY(-6px);
}

.team-avatar {
  width: 150px;
  height: 150px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin-bottom: var(--space-6);
  border: 2px solid var(--glass-border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.team-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.team-role {
  font-size: var(--text-sm);
  color: var(--color-accent-primary);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.team-bio {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: rgba(15, 15, 20, 0.95);
  backdrop-filter: blur(var(--blur-strength)) saturate(var(--blur-saturation));
  -webkit-backdrop-filter: blur(var(--blur-strength)) saturate(var(--blur-saturation));
  border-top: 1px solid rgba(124, 58, 237, 0.25);
  padding: var(--space-12) 0 var(--space-8);
  margin-top: var(--space-8);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}
.footer-link:hover {
  color: var(--color-text-primary);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: var(--color-text-muted);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-strength));
  -webkit-backdrop-filter: blur(var(--blur-strength));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}
.footer-social-link:hover {
  color: var(--color-text-primary);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-glass-md);
  transform: translateY(-2px);
}

.footer-legal {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Тонкий разделитель секций через ambient */
.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent-primary), transparent);
  margin: 0 auto var(--space-6);
  border-radius: var(--radius-full);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes glassPulse {
  0%, 100% { box-shadow: var(--shadow-glass-md); }
  50%       { box-shadow: var(--shadow-glass-lg), 0 0 20px var(--color-accent-glow); }
}

.animate-fadeInUp {
  animation: fadeInUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-glassPulse {
  animation: glassPulse 3s ease-in-out infinite;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.35s; }
.animate-delay-4 { animation-delay: 0.5s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
  :root { --text-base: 15px; }
  .header-inner { margin: var(--space-3) var(--space-4); }
}

/* Кнопка «Записаться» только в мобильном меню */
.nav-book-mobile {
  display: none;
  margin-top: var(--space-4);
  width: 100%;
  justify-content: center;
}
@media (max-width: 767px) {
  .nav-book-mobile { display: flex; }
}

/* ============================================
   COOKIE CONSENT
   ============================================ */
.cookie-consent {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: var(--z-toast, 400);
  width: auto;
  min-width: min-content;
  max-width: calc(100% - var(--space-8));
  background: rgba(12, 12, 18, 0.95);
  backdrop-filter: blur(var(--blur-strength)) saturate(var(--blur-saturation));
  -webkit-backdrop-filter: blur(var(--blur-strength)) saturate(var(--blur-saturation));
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-highlight);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glass-xl);
  padding: var(--space-4) var(--space-5);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cookie-consent.show {
  transform: translateX(-50%) translateY(0);
}

.cookie-consent-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.cookie-consent-text {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
  white-space: nowrap;
}
.cookie-consent-text a {
  color: var(--color-accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-consent-text a:hover {
  color: var(--color-accent-hover);
}

.cookie-consent .btn-accent,
.cookie-consent .btn--glass-prominent {
  flex-shrink: 0;
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-xs);
}

@media (max-width: 767px) {
  .cookie-consent-inner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-consent-text {
    white-space: normal;
  }
  .cookie-consent .btn-accent,
  .cookie-consent .btn--glass-prominent {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .header,
  .footer,
  .btn,
  .btn-accent,
  .menu-toggle { display: none !important; }

  body {
    background: white !important;
    color: black !important;
  }
  body::before,
  body::after { display: none !important; }

  .hero { background: #f0f0f0 !important; }

  .card,
  .team-member,
  .liquid-glass {
    background: white !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
  }
}

/* Location section two-column grid */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: stretch;
  margin-top: var(--space-8);
  min-width: 0;
  overflow: hidden;
}

.location-map-col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.location-map-col .liquid-glass {
  flex: 1;
  position: relative;
  min-height: 380px;
  overflow: hidden;
  padding: 0 !important;
}

/* Yandex Maps JS API canvas */
#svoyi-map-canvas {
  width: 100%;
  min-height: 380px;
  filter: invert(100%) hue-rotate(180deg) brightness(90%) contrast(90%);
  overflow: hidden;
}

/* Branded map pin (ymaps JS API custom layout) */
@keyframes pin-pulse {
  0%   { box-shadow: 0 0 0 0    rgba(124, 58, 237, 0.45); }
  65%  { box-shadow: 0 0 0 12px rgba(124, 58, 237, 0);   }
  100% { box-shadow: 0 0 0 0    rgba(124, 58, 237, 0);   }
}
.map-pin-js {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -100%);
  /* counter-invert: cancel parent dark filter so pin shows original colors */
  filter: invert(100%) hue-rotate(180deg) brightness(1.11) contrast(1.11);
  pointer-events: none;
}
.map-pin__circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(8, 8, 8, 0.97);
  border: 1.5px solid rgba(124, 58, 237, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: pin-pulse 2.8s ease-out infinite;
  filter: drop-shadow(0 2px 14px rgba(124, 58, 237, 0.45));
}
.map-pin__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}
.map-pin__needle {
  width: 1.5px;
  height: 24px;
  background: linear-gradient(to bottom, rgba(124, 58, 237, 0.85), rgba(124, 58, 237, 0.05));
}
.map-pin__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.6);
  box-shadow: 0 0 5px rgba(124, 58, 237, 0.5);
}

/* Location info block */
.location-info-heading {
  margin: 0 0 var(--space-3) 0;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}
.location-info-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.location-info-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
  .location-map-col .liquid-glass {
    min-height: 280px;
  }
  #svoyi-map-canvas {
    min-height: 280px;
  }
  .location-info-col {
    text-align: center;
  }
  .location-info-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .location-info-icons {
    flex-direction: row;
    justify-content: center;
  }
  .location-info-col .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   CAROUSEL
   ============================================ */
.carousel-wrapper {
  position: relative;
}
.carousel-wrapper::before,
.carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 2.5rem; /* stop before nav dots */
  width: 2.5rem;
  pointer-events: none;
  z-index: 2;
}
.carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg-primary) 20%, transparent);
}
.carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg-primary) 20%, transparent);
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: var(--space-5);
  padding: var(--space-3) var(--space-8) var(--space-3);
  scroll-padding-left: var(--space-8);
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide { scroll-snap-align: start; flex-shrink: 0; display: flex; }

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.carousel-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-highlight);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-strength));
  -webkit-backdrop-filter: blur(var(--blur-strength));
  color: var(--color-text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-glass-md);
  font-size: var(--text-sm);
}
.carousel-btn:hover:not(:disabled) {
  background: var(--color-accent-primary);
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 4px 14px var(--color-accent-glow);
  transform: translateY(-1px);
}
.carousel-btn:disabled { opacity: 0.22; cursor: default; }

.carousel-dots { display: flex; gap: var(--space-2); align-items: center; }

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-text-muted);
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-base);
}
.carousel-dot.active { width: 24px; background: var(--color-accent-primary); }

/* ============================================
   PRICE CARD (carousel slide content)
   ============================================ */
.price-card {
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  width: clamp(280px, 82vw, 360px);
  box-sizing: border-box;
}
.price-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.price-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--glass-border);
  flex-shrink: 0;
}
.price-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
}
.price-card__role {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-1);
}
.price-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.price-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--glass-border);
  gap: var(--space-4);
}
.price-card__row:last-child { border-bottom: none; }
.price-card__service { color: var(--color-text-secondary); font-size: var(--text-sm); }
.price-card__price { font-weight: 700; color: var(--color-text-primary); white-space: nowrap; }

/* ============================================
   GALLERY CAROUSEL SLIDE
   ============================================ */
.gallery-slide-inner {
  width: clamp(220px, 66vw, 300px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-highlight);
  box-shadow: var(--shadow-glass-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.gallery-slide-inner:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glass-lg);
}
.gallery-slide-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   REVIEW CARD (carousel slide content)
   ============================================ */
.review-card {
  width: clamp(280px, 85vw, 400px);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-sizing: border-box;
  align-self: stretch;
}
.review-card__stars { display: flex; gap: 3px; color: #f59e0b; font-size: var(--text-sm); }
.review-card__text {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  font-size: var(--text-sm);
  font-style: italic;
  flex: 1;
  margin: 0;
}
.review-card__author { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: auto; }

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.faq-item {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-strength)) saturate(var(--blur-saturation));
  -webkit-backdrop-filter: blur(var(--blur-strength)) saturate(var(--blur-saturation));
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-highlight);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.faq-item:hover { box-shadow: var(--shadow-glass-md); }
.faq-item[open] {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: var(--shadow-glass-md), 0 0 0 1px rgba(124, 58, 237, 0.12);
}
.faq-question {
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: 0.01em;
  user-select: none;
  -webkit-user-select: none;
  line-height: var(--leading-snug);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-icon {
  color: var(--color-accent-primary);
  font-size: var(--text-xs);
  flex-shrink: 0;
  margin-top: 0.2em;
  transition: transform var(--transition-fast);
}
.faq-item[open] .faq-icon { transform: rotate(180deg); }
.faq-answer {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  font-size: var(--text-sm);
}
.faq-answer a { color: var(--color-accent-primary); text-decoration: none; }
.faq-answer a:hover { text-decoration: underline; }
.faq-answer strong { color: var(--color-text-primary); font-weight: 600; }

/* ============================================
   CAROUSEL — RESPONSIVE OVERRIDES
   ============================================ */

/* Mobile: hide arrows on all carousels, keep dots */
@media (max-width: 767px) {
  .carousel-btn { display: none; }
}

/* Gallery: never show arrows (dots only) */
[data-carousel="gallery"] .carousel-btn { display: none; }

/* Desktop prices: static centered layout, no carousel UI */
@media (min-width: 768px) {
  [data-carousel="prices"]::before,
  [data-carousel="prices"]::after { display: none; }

  [data-carousel="prices"] .carousel-track {
    overflow-x: visible;
    scroll-snap-type: none;
    justify-content: center;
    flex-wrap: wrap;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }

  [data-carousel="prices"] .carousel-nav { display: none; }
}

/* Gallery: desktop — all 5 in one row, no carousel UI */
@media (min-width: 768px) {
  [data-carousel="gallery"]::before,
  [data-carousel="gallery"]::after { display: none; }

  [data-carousel="gallery"] .carousel-track {
    overflow-x: visible;
    scroll-snap-type: none;
    flex-wrap: nowrap;
    justify-content: center;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }

  [data-carousel="gallery"] .carousel-nav { display: none; }

  [data-carousel="gallery"] .gallery-slide-inner {
    width: clamp(140px, 18vw, 220px);
  }
}

/* Reviews: no edge fade, no arrows */
[data-carousel="reviews"]::before,
[data-carousel="reviews"]::after { display: none; }
[data-carousel="reviews"] .carousel-btn { display: none; }

/* Reviews: equal-height slides (all breakpoints) */
[data-carousel="reviews"] .carousel-track {
  align-items: stretch;
}
[data-carousel="reviews"] .carousel-slide {
  align-self: stretch;
}
[data-carousel="reviews"] .review-card {
  height: 100%;
}

/* Reviews: desktop — 3 visible cards, dots only */
@media (min-width: 768px) {
  [data-carousel="reviews"] .carousel-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-5);
    padding-left: 0;
    padding-right: 0;
  }

  [data-carousel="reviews"] .carousel-slide {
    flex: 0 0 calc((100% - 2 * var(--space-5)) / 3);
    min-width: 0;
    scroll-snap-align: start;
    display: flex;
  }

  [data-carousel="reviews"] .carousel-nav { display: flex; }

  [data-carousel="reviews"] .review-card {
    width: 100%;
    max-width: none;
  }
}

/* Author name always on one line */
.review-card__author { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Mobile: fix card overflow + compact review buttons */
@media (max-width: 767px) {
  .carousel-track {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
    scroll-padding-left: var(--space-4);
  }

  /* Width on SLIDE (the actual flex item) — container: 3rem + track: 2rem = 5rem total */
  [data-carousel="prices"] .carousel-slide,
  [data-carousel="reviews"] .carousel-slide {
    width: calc(100vw - 5rem);
    max-width: 400px;
    box-sizing: border-box;
    flex-shrink: 0;
  }

  /* Cards fill their slide */
  .price-card,
  .review-card {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  .reviews-cta {
    gap: var(--space-2);
  }

  .reviews-cta .btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
    flex: 1;
    justify-content: center;
  }
}

/* ============================================
   SERVICES PAGE
   ============================================ */

.services-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  max-width: 860px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .services-features { grid-template-columns: repeat(4, 1fr); }
}

.services-feature {
  padding: var(--space-6) var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  transition: transform var(--transition-base);
  height: 100%;
}
.services-feature:hover {
  transform: translateY(-3px);
}

.services-feature__icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-accent-glass);
  border: 1px solid rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 18px var(--color-accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: var(--color-accent-primary);
  flex-shrink: 0;
}

.services-feature__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
  margin: 0;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.services-feature__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin: 0;
  flex: 1;
}
