/* ═══════════════════════════════════════════
   NORDIC CUTS BARBERSHOP — Main Styles
   Тёмная премиум тема
   ═══════════════════════════════════════════ */

/* ── Импорт ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');
@import 'animations.css';

/* ── CSS Переменные (читаются из Firebase) ─ */
:root {
  --color-primary:    #C9A84C;
  --color-secondary:  #A07830;
  --color-bg:         #0A0A0A;
  --color-surface:    #141414;
  --color-surface2:   #1E1E1E;
  --color-text:       #F5F0E8;
  --color-text-muted: #8A8578;
  --color-border:     #2A2520;
  --color-accent:     #D4AF6A;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 999px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:  0 8px 30px rgba(0,0,0,0.4);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.5);
  --shadow-gold:0 4px 20px rgba(201,168,76,0.25);

  --nav-h: 72px;
  --container: 1200px;
  --section-py: 100px;
}

/* ── Reset ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ── Утилиты ─────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.gold { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }

/* Золотой разделитель */
.gold-line {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  margin: 16px auto;
  animation: goldLine 0.8s var(--ease-out-expo) forwards;
}
.gold-line.left { margin-left: 0; }

/* ── Типографика ─────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
p  { line-height: 1.75; color: var(--color-text-muted); }

.section-title {
  text-align: center;
  margin-bottom: 16px;
}
.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 60px;
}

/* ── Кнопки ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all var(--dur-normal) var(--ease-out-expo);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #0A0A0A;
  font-weight: 600;
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  background-size: 200%;
  opacity: 0;
  transition: opacity var(--dur-normal);
}
.btn-primary:hover::after { opacity: 1; animation: shimmer 0.8s linear; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.45);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--color-text-muted);
  padding: 10px 20px;
}
.btn-ghost:hover { color: var(--color-primary); }

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 44px; font-size: 1.05rem; }

/* ── Навигация ───────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background var(--dur-normal), box-shadow var(--dur-normal), backdrop-filter var(--dur-normal);
  animation: navSlideDown 0.8s var(--ease-out-expo) both;
}
#navbar.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--color-text); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--dur-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--color-primary);
  transition: width var(--dur-normal) var(--ease-out-expo);
}
.nav-links a:hover { color: var(--color-primary); }
.nav-links a:hover::after { width: 100%; }

/* Переключатель языков */
.lang-switcher {
  display: flex;
  gap: 4px;
  margin-left: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px;
}
.lang-btn {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: all var(--dur-fast);
  letter-spacing: 0.05em;
}
.lang-btn.active {
  background: var(--color-primary);
  color: #0A0A0A;
}
.lang-btn:hover:not(.active) { color: var(--color-text); }

/* Мобильное меню */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-text);
  transition: all var(--dur-normal) var(--ease-out-expo);
  border-radius: 2px;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 100vw);
  height: 100vh;
  background: var(--color-surface);
  z-index: 999;
  flex-direction: column;
  padding: 100px 32px 32px;
  border-left: 1px solid var(--color-border);
}
.nav-mobile.open {
  display: flex;
  animation: menuSlideIn 0.4s var(--ease-out-expo) both;
}
.nav-mobile a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--dur-fast);
}
.nav-mobile a:hover { color: var(--color-primary); }
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 998;
  animation: overlayIn 0.3s ease both;
}
.nav-overlay.open { display: block; }

/* ── Hero ────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; animation: heroImageScale 8s var(--ease-out-expo) forwards; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,0.85) 0%,
    rgba(10,10,10,0.5) 50%,
    rgba(10,10,10,0.3) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 24px;
  animation: fadeInDown 0.8s var(--ease-out-expo) 0.3s both;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: goldPulse 2s ease infinite;
}
.hero-title {
  animation: heroTextReveal 1s var(--ease-out-expo) 0.5s both;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  color: var(--color-primary);
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 560px;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.8s both;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out-expo) 1s both;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeIn 1s ease 1.5s both;
}
.hero-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
  animation: goldLineLong 1s ease 2s both;
}
/* Dots */
.hero-dots {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all var(--dur-normal);
}
.hero-dot.active {
  background: var(--color-primary);
  width: 24px;
  border-radius: 3px;
}

/* ── Trust Bar ───────────────────────────── */
#trust {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 60px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
}
.trust-item {
  background: var(--color-surface);
  padding: 40px 24px;
  text-align: center;
}
.trust-value {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}
.trust-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Секции — общий padding ─────────────── */
section { padding: var(--section-py) 0; }

/* ── Услуги ──────────────────────────────── */
#services { background: var(--color-bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 16px;
}
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--dur-normal) var(--ease-out-expo);
  position: relative;
}
.service-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}
.service-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}
.service-card:hover .service-card-img { transform: scale(1.05); }
.service-card-body { padding: 24px; }
.service-card-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--color-primary);
  color: #0A0A0A;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.service-card-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--color-text);
}
.service-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}
.service-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-heading);
}
.service-duration {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.service-masters-icons {
  display: flex;
  gap: -8px;
}

/* ── Мастера ─────────────────────────────── */
#masters { background: var(--color-surface); }
.masters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.master-card {
  background: var(--color-surface2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-align: center;
  transition: all var(--dur-normal) var(--ease-out-expo);
}
.master-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.master-photo-wrap {
  position: relative;
  height: 320px;
  overflow: hidden;
}
.master-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}
.master-card:hover .master-photo { transform: scale(1.06); }
.master-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.8) 0%, transparent 60%);
}
.master-speciality-tag {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  background: rgba(201,168,76,0.15);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.master-body { padding: 28px 24px; }
.master-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 4px;
}
.master-role {
  font-size: 0.85rem;
  color: var(--color-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.master-bio {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ── Кодекс джентльмена ─────────────────── */
#gentleman {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}
#gentleman::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.gentleman-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.gentleman-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 60px;
}
.gentleman-rules { list-style: none; }
.gentleman-rule {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s var(--ease-out-expo);
}
.gentleman-rule.anim-visible {
  opacity: 1;
  transform: none;
}
.gentleman-rule:last-child { border-bottom: none; }
.gentleman-icon {
  color: var(--color-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.gentleman-text {
  font-size: 1.05rem;
  color: var(--color-text);
  font-style: italic;
  font-family: var(--font-heading);
}

/* ── Галерея ─────────────────────────────── */
#gallery { background: var(--color-surface); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}
.gallery-item:hover .gallery-img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.7);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--dur-normal);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption {
  color: var(--color-text);
  font-size: 0.9rem;
  font-style: italic;
  font-family: var(--font-heading);
}

/* ── Отзывы ──────────────────────────────── */
#reviews { background: var(--color-bg); }
.reviews-slider {
  position: relative;
  overflow: hidden;
}
.reviews-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s var(--ease-out-expo);
}
.review-card {
  min-width: calc(50% - 12px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--dur-normal);
}
.review-card:hover { border-color: var(--color-primary); }
.review-stars {
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.review-text {
  font-size: 1rem;
  font-style: italic;
  color: var(--color-text);
  font-family: var(--font-heading);
  line-height: 1.7;
  margin-bottom: 20px;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-surface2);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
}
.review-name { font-weight: 600; font-size: 0.95rem; color: var(--color-text); }
.review-verified { font-size: 0.75rem; color: var(--color-text-muted); }
.reviews-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.reviews-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 1.2rem;
  transition: all var(--dur-fast);
}
.reviews-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(201,168,76,0.08);
}

/* ── Запись (Booking) ────────────────────── */
#booking { background: var(--color-surface); }
.booking-wrap {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: start;
}
.booking-info h2 { text-align: left; }
.booking-info .gold-line { margin-left: 0; }

/* Шаги */
.steps-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: all var(--dur-normal);
  flex-shrink: 0;
}
.step-num.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #0A0A0A;
}
.step-num.done {
  border-color: var(--color-primary);
  background: transparent;
  color: var(--color-primary);
}
.step-line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
  margin: 0 8px;
}
.step-line.done { background: var(--color-primary); }

/* Форма записи */
.booking-form { display: flex; flex-direction: column; gap: 16px; }
.form-step { display: none; }
.form-step.active { display: block; animation: fadeInUp 0.4s var(--ease-out-expo) both; }

.step-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--color-text);
}

/* Выбор услуги */
.service-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}
.service-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--dur-fast);
}
.service-option:hover,
.service-option.selected {
  border-color: var(--color-primary);
  background: rgba(201,168,76,0.06);
}
.service-option-info { flex: 1; }
.service-option-name { font-weight: 600; color: var(--color-text); font-size: 0.95rem; }
.service-option-dur  { font-size: 0.8rem; color: var(--color-text-muted); }
.service-option-price{ font-weight: 700; color: var(--color-primary); font-size: 1rem; }
.service-option-radio {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  transition: all var(--dur-fast);
  flex-shrink: 0;
}
.service-option.selected .service-option-radio {
  border-color: var(--color-primary);
  background: var(--color-primary);
  box-shadow: inset 0 0 0 3px var(--color-surface);
}

/* Выбор мастера */
.master-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.master-option {
  padding: 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: all var(--dur-fast);
}
.master-option:hover, .master-option.selected {
  border-color: var(--color-primary);
  background: rgba(201,168,76,0.06);
}
.master-option img {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 8px;
  border: 2px solid var(--color-border);
  transition: border-color var(--dur-fast);
}
.master-option.selected img { border-color: var(--color-primary); }
.master-option-name { font-size: 0.9rem; font-weight: 600; color: var(--color-text); }

/* Поля формы */
.form-group { margin-bottom: 4px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.form-input, .form-textarea {
  width: 100%;
  background: var(--color-surface2);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: border-color var(--dur-fast);
  outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--color-primary);
  background: rgba(201,168,76,0.04);
}
.form-input.error { border-color: #e74c3c; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-privacy {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 8px;
}

/* Навигация шагов */
.step-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  gap: 12px;
}

/* Календарь */
.booking-calendar { background: var(--color-surface2); border-radius: var(--radius-lg); padding: 24px; }
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.cal-month {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text);
}
.cal-nav {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: all var(--dur-fast);
}
.cal-nav:hover { border-color: var(--color-primary); color: var(--color-primary); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-day-label { font-size: 0.72rem; color: var(--color-text-muted); padding: 4px 0; text-transform: uppercase; letter-spacing: 0.05em; }
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--dur-fast);
  color: var(--color-text);
}
.cal-day:hover:not(.disabled):not(.empty) { background: var(--color-border); }
.cal-day.today { color: var(--color-primary); font-weight: 700; }
.cal-day.selected { background: var(--color-primary); color: #0A0A0A; font-weight: 700; border-radius: 50%; }
.cal-day.disabled { color: var(--color-border); cursor: not-allowed; }
.cal-day.empty { cursor: default; }
.cal-day.has-slots::after {
  content: '';
  display: block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  margin: 1px auto 0;
}

/* Слоты времени */
.time-slots {
  margin-top: 20px;
}
.time-slots-title { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 12px; }
.time-slots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.time-slot {
  padding: 8px 4px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur-fast);
  color: var(--color-text);
}
.time-slot:hover:not(.booked) { border-color: var(--color-primary); color: var(--color-primary); }
.time-slot.selected { background: var(--color-primary); border-color: var(--color-primary); color: #0A0A0A; font-weight: 700; }
.time-slot.booked { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }

/* Итог записи */
.booking-summary {
  background: var(--color-surface2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
}
.booking-summary h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--color-text);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}
.summary-row:last-child { border-bottom: none; }
.summary-label { color: var(--color-text-muted); }
.summary-value { color: var(--color-text); font-weight: 500; }
.summary-total .summary-value { color: var(--color-primary); font-size: 1.2rem; font-weight: 700; }

/* ── Контакты ────────────────────────────── */
#contacts { background: var(--color-bg); }
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-items { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-text-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); margin-bottom: 4px; }
.contact-text-value { color: var(--color-text); font-weight: 500; }
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}
.social-link {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  transition: all var(--dur-normal);
}
.social-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(201,168,76,0.08);
  transform: translateY(-3px);
}
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 350px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(100%) invert(90%) contrast(85%); }

/* ── Футер ───────────────────────────────── */
#footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}
.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.footer-brand-desc { font-size: 0.9rem; color: var(--color-text-muted); max-width: 280px; }
.footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.9rem; color: var(--color-text-muted); transition: color var(--dur-fast); }
.footer-links a:hover { color: var(--color-primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.footer-bottom a { transition: color var(--dur-fast); }
.footer-bottom a:hover { color: var(--color-primary); }

/* ── FAB кнопка ──────────────────────────── */
#fab {
  display: none;
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #0A0A0A;
  font-size: 1.4rem;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold), var(--shadow-md);
  animation: fabIn 0.6s var(--ease-bounce) 1.5s both;
}
#fab:hover {
  animation: fabPulse 1s ease infinite;
  background: var(--color-accent);
}

/* ── Toast ───────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: #0A0A0A;
  background: var(--color-primary);
  box-shadow: var(--shadow-md);
  animation: toastIn 0.4s var(--ease-bounce) both;
  pointer-events: all;
  white-space: nowrap;
}
.toast.success { background: #27ae60; color: #fff; }
.toast.error   { background: #e74c3c; color: #fff; }

/* ── Лайтбокс галереи ────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; animation: overlayIn 0.3s ease both; }
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  animation: modalIn 0.4s var(--ease-out-expo) both;
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast);
}
.lightbox-close:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ── Спиннер ─────────────────────────────── */
.spinner {
  width: 32px; height: 32px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}

/* ── Stripe форма ───────────────────────── */
#stripe-element {
  background: var(--color-surface2);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.stripe-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.stripe-lock { color: var(--color-primary); }

/* ── Адаптив ─────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-py: 72px; }
  .booking-wrap { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 40px; }
  .trust-grid   { grid-template-columns: repeat(2, 1fr); }
  .reviews-track .review-card { min-width: calc(100% - 0px); }
}

@media (max-width: 768px) {
  :root { --section-py: 60px; --nav-h: 60px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  #fab { display: flex; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .master-options { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .masters-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .time-slots-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-value { font-size: 2rem; }
}