/* ============================================================
   AppDoctor — премиальный сервис ремонта техники Apple
   Дизайн-система: Dark Mode First, Liquid Glass, #00D4AA
   ============================================================ */

:root {
  --bg: #0A0A0F;
  --bg-2: #14141B;
  --bg-3: #1C1C26;
  --accent: #00D4AA;
  --accent-rgb: 0, 212, 170;
  --accent-2: #FF6B35;
  --text: #F0F0F5;
  --text-2: #8A8A9A;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --radius: 16px;
  --radius-lg: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;
}

[data-theme="light"] {
  --bg: #F5F5FA;
  --bg-2: #FFFFFF;
  --bg-3: #EDEDF4;
  --text: #14141B;
  --text-2: #5A5A6A;
  --glass: rgba(20, 20, 27, 0.03);
  --glass-border: rgba(20, 20, 27, 0.1);
  --shadow: 0 20px 60px rgba(20, 20, 27, 0.1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

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

section { padding: 120px 0; }
@media (max-width: 768px) { section { padding: 72px 0; } }

/* ---------- Типографика ---------- */
h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--accent); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p { color: var(--text-2); margin-top: 16px; font-size: 1.125rem; }

.mono { font-family: var(--mono); }
.accent { color: var(--accent); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 14px;
  font-size: 1rem; font-weight: 600; letter-spacing: -0.01em;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00b894);
  color: #04241D;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn-primary::after {
  content: ''; position: absolute; top: -20%; bottom: -20%; left: -70%; width: 36%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  animation: sheen 4.5s var(--ease) infinite;
}
@keyframes sheen {
  0%, 55% { left: -70%; }
  85%, 100% { left: 140%; }
}
.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(var(--accent-rgb), 0.45), 0 0 0 1px rgba(var(--accent-rgb), 0.6) inset;
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent; color: var(--text);
  border: 1px solid var(--glass-border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.25);
  color: var(--accent);
}
.btn-orange { background: var(--accent-2); color: #fff; }
.btn-orange:hover { box-shadow: 0 0 24px rgba(255, 107, 53, 0.45); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; border-radius: 11px; }
.btn.loading { pointer-events: none; opacity: 0.8; }
.btn .spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.25); border-top-color: #04241D;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(10, 10, 15, 0.65);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.4s var(--ease);
}
[data-theme="light"] .site-header { background: rgba(245, 245, 250, 0.75); }
.site-header.scrolled { border-bottom-color: var(--glass-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #00A88A);
  display: grid; place-items: center; color: #04241D;
}
.logo span em { font-style: normal; color: var(--accent); }

.main-nav { display: flex; gap: 28px; }
.main-nav a { font-size: 0.94rem; font-weight: 500; color: var(--text-2); transition: color 0.25s; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { font-family: var(--mono); font-size: 0.88rem; font-weight: 500; color: var(--text-2); transition: color 0.25s; }
.header-phone:hover { color: var(--accent); }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--glass-border); background: var(--glass);
  display: grid; place-items: center; color: var(--text-2);
  transition: all 0.3s var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }

.burger {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--glass-border);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(24px);
  display: flex; flex-direction: column; justify-content: center; padding: 48px 32px; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
}
[data-theme="light"] .mobile-menu { background: rgba(245, 245, 250, 0.98); }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-size: 1.7rem; font-weight: 700; padding: 12px 0; letter-spacing: -0.02em; color: var(--text-2); }
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .btn { margin-top: 24px; font-size: 1.05rem; }

@media (max-width: 1000px) {
  .main-nav, .header-phone { display: none; }
  .burger { display: flex; }
  .header-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 48px) 0 48px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 100%);
  overflow: hidden;
}
.hero-bg::before, .hero-bg::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35;
}
.hero-bg::before {
  width: 560px; height: 560px; right: -120px; bottom: -160px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.55), transparent 65%);
  animation: blob 14s ease-in-out infinite alternate;
}
.hero-bg::after {
  width: 400px; height: 400px; left: -140px; top: -100px;
  background: radial-gradient(circle, rgba(80, 90, 220, 0.35), transparent 65%);
  animation: blob 18s ease-in-out infinite alternate-reverse;
}
@keyframes blob {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-40px, -50px) scale(1.15); }
}
/* тонкая техно-сетка + затухание к краям */
.hero-bg .grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 55% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 55% 40%, #000 30%, transparent 75%);
  animation: gridDrift 30s linear infinite;
}
[data-theme="light"] .hero-bg .grid-overlay {
  background-image:
    linear-gradient(rgba(20,20,27,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,20,27,0.05) 1px, transparent 1px);
}
@keyframes gridDrift { from { background-position: 0 0, 0 0; } to { background-position: 0 56px, 56px 0; } }

.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: 24px; }
.hero h1 .line2 { color: var(--accent); }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text-2); max-width: 520px; margin-bottom: 36px; font-weight: 500; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; display: grid; place-items: center; perspective: 1000px; }
.hero-visual .tilt-wrap { transform-style: preserve-3d; transition: transform 0.25s ease-out; display: grid; place-items: center; }
.hero-visual svg { width: min(100%, 440px); height: auto; position: relative; z-index: 1; }
/* дышащая орбита за устройством */
.hero-visual::before {
  content: ''; position: absolute; z-index: 0;
  width: min(78%, 380px); aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(var(--accent-rgb), 0.5) 12%, transparent 26%, transparent 55%, rgba(var(--accent-rgb), 0.25) 68%, transparent 82%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: orbit 14s linear infinite;
}
.hero-visual::after {
  content: ''; position: absolute; z-index: 0;
  width: min(60%, 300px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16), transparent 70%);
  filter: blur(28px);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes breathe { 0%,100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.18); opacity: 1; } }
.float-part { animation: float 5s ease-in-out infinite; transform-origin: center; }
.float-part.d1 { animation-delay: -1.2s; }
.float-part.d2 { animation-delay: -2.6s; }
.float-part.d3 { animation-delay: -3.8s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (max-width: 900px) {
  .hero-visual svg { width: min(70%, 300px); margin-top: 8px; }
}

/* ---------- Trust bar ---------- */
.trust-bar {
  margin-top: 72px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.trust-item {
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  border-radius: var(--radius); padding: 22px 24px;
}
.trust-value { font-family: var(--mono); font-size: 1.7rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.trust-value .accent { color: var(--accent); }
.trust-label { font-size: 0.85rem; color: var(--text-2); margin-top: 4px; }
@media (max-width: 900px) { .trust-bar { grid-template-columns: repeat(2, 1fr); margin-top: 48px; } }

/* ---------- Карточки (общее) ---------- */
.card {
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(var(--accent-rgb), 0.07);
}
.faq-item:hover, .booking-box:hover, .contact-card:hover { transform: none; box-shadow: none; }

/* ---------- Диагност (Device Picker) ---------- */
.picker { position: relative; }
.picker-step { margin-bottom: 32px; }
.picker-step-title {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 1.05rem; margin-bottom: 18px;
}
.picker-step-num {
  font-family: var(--mono); font-size: 0.75rem; color: var(--accent);
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  display: grid; place-items: center; flex-shrink: 0;
}
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.picker-cell {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 18px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.92rem; font-weight: 600; text-align: center;
  color: var(--text-2);
  transition: all 0.3s var(--ease);
}
.picker-cell svg { width: 30px; height: 30px; stroke: currentColor; }
.picker-cell:hover { border-color: var(--accent); transform: scale(1.02); color: var(--text); }
.picker-cell.selected { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb), 0.06); }
.picker-models .picker-cell { padding: 13px 10px; font-size: 0.86rem; }
@media (max-width: 768px) {
  .picker-models {
    max-height: 316px; overflow-y: auto; padding-right: 6px;
    -webkit-mask-image: linear-gradient(#000 82%, transparent);
    mask-image: linear-gradient(#000 82%, transparent);
    scrollbar-width: thin; scrollbar-color: rgba(var(--accent-rgb), 0.5) transparent;
  }
  .picker-models::-webkit-scrollbar { width: 4px; }
  .picker-models::-webkit-scrollbar-thumb { background: rgba(var(--accent-rgb), 0.5); border-radius: 2px; }
}
.picker-cell.soon { pointer-events: none; opacity: 0.45; position: relative; }
.picker-cell .soon-badge {
  font-family: var(--mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-2); border: 1px solid rgba(255, 107, 53, 0.4);
  padding: 2px 8px; border-radius: 999px;
}

.picker-result {
  margin-top: 8px;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.05);
  border-radius: var(--radius-lg); padding: 28px;
}
.picker-result h3 { margin-bottom: 4px; }
.picker-result .picker-note { color: var(--text-2); font-size: 0.9rem; margin-bottom: 18px; }
.result-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.result-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px 16px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--glass-border);
  flex-wrap: wrap;
}
.result-row .svc { font-weight: 600; font-size: 0.95rem; }
.result-row .svc small { display: block; color: var(--text-2); font-weight: 400; font-size: 0.8rem; }
.result-row .meta { display: flex; align-items: center; gap: 16px; }
.result-row .time { font-size: 0.8rem; color: var(--text-2); font-family: var(--mono); }
.result-row .price { font-family: var(--mono); font-weight: 700; color: var(--accent); font-size: 1.05rem; white-space: nowrap; }
.picker-hidden { display: none; }

/* ---------- Прайсинг ---------- */
.pricing-toggle {
  display: flex; align-items: center; gap: 14px; margin-bottom: 36px; flex-wrap: wrap;
}
.pricing-toggle .t-label { font-weight: 600; font-size: 0.95rem; color: var(--text-2); transition: color 0.25s; }
.pricing-toggle .t-label.active { color: var(--text); }
.switch {
  position: relative; width: 54px; height: 30px; border-radius: 15px;
  background: var(--bg-3); border: 1px solid var(--glass-border);
  transition: background 0.3s var(--ease);
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent);
  transition: transform 0.3s var(--ease);
}
.switch.on::after { transform: translateX(24px); background: var(--text-2); }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.price-card { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.price-card.original { border-color: rgba(var(--accent-rgb), 0.45); }
.price-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.price-card h3 { font-size: 1.02rem; line-height: 1.35; }
.badge {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.badge-original { background: rgba(var(--accent-rgb), 0.12); color: var(--accent); border: 1px solid rgba(var(--accent-rgb), 0.3); }
.badge-analog { background: rgba(138, 138, 154, 0.12); color: var(--text-2); border: 1px solid var(--glass-border); }
.badge-hit { background: rgba(255, 107, 53, 0.12); color: var(--accent-2); border: 1px solid rgba(255, 107, 53, 0.35); }
.price-value { font-family: var(--mono); font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.price-meta { display: flex; gap: 18px; color: var(--text-2); font-size: 0.85rem; margin-top: auto; }
.price-meta span { display: inline-flex; align-items: center; gap: 6px; }
.price-meta svg { width: 15px; height: 15px; stroke: var(--accent); flex-shrink: 0; }

/* ---------- Процесс (timeline) ---------- */
.timeline { position: relative; max-width: 720px; }
.timeline-line {
  position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px;
  background: var(--glass-border);
}
.timeline-line .fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 0%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.6);
  transition: height 0.15s linear;
}
.timeline-step { position: relative; display: flex; gap: 28px; padding: 26px 0; }
.timeline-icon {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-2); border: 1px solid var(--glass-border);
  display: grid; place-items: center; z-index: 1;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.timeline-icon svg { width: 24px; height: 24px; stroke: var(--accent); stroke-width: 2; fill: none; }
.timeline-step.active .timeline-icon { border-color: var(--accent); box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.35); }
.timeline-body h3 { margin-bottom: 6px; }
.timeline-body p { color: var(--text-2); max-width: 480px; }
.timeline-body .step-tag { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); margin-bottom: 4px; display: block; }

/* ---------- Before / After ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.ba-card { overflow: hidden; }
.ba-compare { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; touch-action: none; cursor: ew-resize; }
.ba-compare .ba-img { position: absolute; inset: 0; }
.ba-compare .ba-img svg { width: 100%; height: 100%; object-fit: cover; }
.ba-compare .ba-after { clip-path: inset(0 0 0 50%); }
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: var(--accent); z-index: 2;
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.7);
}
.ba-divider::after {
  content: '⟷'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #04241D;
  display: grid; place-items: center; font-size: 1rem; font-weight: 700;
}
.ba-caption { padding: 16px 20px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ba-caption strong { font-size: 0.95rem; }
.ba-caption span { font-family: var(--mono); font-size: 0.8rem; color: var(--text-2); }
.ba-tag { position: absolute; top: 12px; z-index: 1; font-family: var(--mono); font-size: 0.68rem; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,0.55); color: #fff; backdrop-filter: blur(8px); }
.ba-tag.before { left: 12px; }
.ba-tag.after { right: 12px; }

/* ---------- Отзывы ---------- */
.reviews-wrap { position: relative; }
.reviews-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
.reviews-track::-webkit-scrollbar { display: none; }
.review-card {
  min-width: min(380px, 85vw); scroll-snap-align: start;
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
}
.review-stars { color: #FFC531; letter-spacing: 3px; font-size: 0.9rem; }
.review-text { color: var(--text); font-size: 0.98rem; line-height: 1.65; }
.review-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 700; color: #04241D;
  background: linear-gradient(135deg, var(--accent), #4ADE80);
}
.review-author .name { font-weight: 600; font-size: 0.95rem; }
.review-author .device { font-family: var(--mono); font-size: 0.75rem; color: var(--text-2); }
.review-verified { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--text-2); }
.review-verified svg { width: 14px; height: 14px; stroke: var(--accent); }
.reviews-nav { display: flex; gap: 10px; margin-top: 20px; }
.reviews-nav button {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--glass-border); color: var(--text-2);
  display: grid; place-items: center; transition: all 0.3s var(--ease);
}
.reviews-nav button:hover { border-color: var(--accent); color: var(--accent); }

.brand-row {
  margin-top: 48px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brand-track { display: flex; gap: 14px; width: max-content; animation: marquee 26s linear infinite; }
.brand-row:hover .brand-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.brand-chip {
  font-family: var(--mono); font-size: 0.85rem; color: var(--text-2);
  border: 1px solid var(--glass-border); border-radius: 999px; padding: 9px 20px;
  white-space: nowrap; flex-shrink: 0;
}
.brand-chip.soon { color: var(--text-2); opacity: 0.6; }
.brand-chip.soon em { font-style: normal; color: var(--accent-2); font-size: 0.7rem; margin-left: 6px; }

/* ---------- Запись (booking) ---------- */
.booking-box { max-width: 720px; padding: 36px; }
.booking-steps-bar { display: flex; gap: 8px; margin-bottom: 28px; }
.booking-steps-bar .bs {
  flex: 1; height: 3px; border-radius: 2px; background: var(--glass-border);
  transition: background 0.4s var(--ease);
}
.booking-steps-bar .bs.done { background: var(--accent); }
.bk-step { display: none; }
.bk-step.active { display: block; animation: fadeUp 0.45s var(--ease); }
.bk-step h3 { margin-bottom: 20px; }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-bottom: 20px; }
.bk-slot {
  padding: 12px 8px; border-radius: 12px; text-align: center;
  background: var(--glass); border: 1px solid var(--glass-border);
  font-family: var(--mono); font-size: 0.85rem; color: var(--text-2);
  transition: all 0.25s var(--ease);
}
.bk-slot:hover { border-color: var(--accent); color: var(--text); }
.bk-slot.selected { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb), 0.07); }
.bk-slot .d { display: block; font-size: 0.7rem; opacity: 0.7; }
.bk-field { margin-bottom: 16px; }
.bk-field label { display: block; font-size: 0.85rem; color: var(--text-2); margin-bottom: 7px; font-weight: 500; }
.bk-field input, .bk-field select, .bk-field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text); font-size: 0.98rem; outline: none;
  transition: border-color 0.25s;
}
.bk-field input:focus, .bk-field select:focus { border-color: var(--accent); }
.bk-field select option { background: var(--bg-2); color: var(--text); }
.bk-nav { display: flex; gap: 12px; margin-top: 24px; }
.bk-confirm { text-align: center; padding: 12px 0; }
.bk-confirm .qr { width: 160px; height: 160px; margin: 20px auto; border-radius: 16px; background: #fff; padding: 12px; }
.bk-confirm .qr svg { width: 100%; height: 100%; }
.bk-confirm .code { font-family: var(--mono); color: var(--accent); font-size: 1.1rem; letter-spacing: 0.1em; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { overflow: hidden; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; text-align: left; font-weight: 600; font-size: 1.02rem;
}
.faq-q .chev { transition: transform 0.35s var(--ease); color: var(--accent); flex-shrink: 0; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a-inner { padding: 0 24px 22px; color: var(--text-2); }

/* ---------- Контакты ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; }
.contact-line svg { width: 20px; height: 20px; stroke: var(--accent); flex-shrink: 0; margin-top: 3px; }
.contact-line .v { font-weight: 600; }
.contact-line .v a:hover { color: var(--accent); }
.contact-line small { display: block; color: var(--text-2); font-weight: 400; }
.map-box {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px;
  background: var(--bg-2); border: 1px solid var(--glass-border);
}
.map-box iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(0.35) contrast(1.02);
}
[data-theme="light"] .map-box iframe { filter: none; }
.map-actions { position: absolute; bottom: 16px; left: 16px; z-index: 2; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--glass-border); padding: 56px 0 32px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-2); margin-bottom: 16px; font-family: var(--mono); font-weight: 500; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-grid ul a { color: var(--text-2); font-size: 0.94rem; transition: color 0.25s; }
.footer-grid ul a.mono { white-space: nowrap; font-size: 0.86rem; }
.footer-grid ul a:hover { color: var(--accent); }
.footer-about p { color: var(--text-2); font-size: 0.9rem; margin-top: 14px; max-width: 300px; }
.footer-bottom { border-top: 1px solid var(--glass-border); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-2); font-size: 0.82rem; }

/* ---------- Chat widget ---------- */
.chat-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  backdrop-filter: blur(20px);
  display: grid; place-items: center; color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.chat-fab::before {
  content: ''; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  animation: chatPulse 2.4s ease-out infinite;
}
@keyframes chatPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.55); opacity: 0; }
}
.chat-fab:hover { transform: scale(1.08); }
.chat-fab svg { width: 26px; height: 26px; }

.chat-panel {
  position: fixed; right: 24px; bottom: 96px; z-index: 91;
  width: min(360px, calc(100vw - 32px));
  background: var(--bg-2); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(0.97); pointer-events: none;
  transition: all 0.35s var(--ease);
}
.chat-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.chat-head { padding: 18px 20px; border-bottom: 1px solid var(--glass-border); display: flex; align-items: center; gap: 12px; }
.chat-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.chat-head strong { font-size: 0.95rem; }
.chat-head small { display: block; color: var(--text-2); font-size: 0.75rem; }
.chat-body { padding: 18px 20px; max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 14px 14px 14px 4px; padding: 12px 16px; font-size: 0.9rem; max-width: 90%; }
.chat-msg.user { align-self: flex-end; border-radius: 14px 14px 4px 14px; border-color: rgba(var(--accent-rgb), 0.4); }
.chat-quick { display: flex; flex-direction: column; gap: 8px; padding: 0 20px 20px; }
.chat-quick button {
  text-align: left; padding: 11px 16px; border-radius: 12px; font-size: 0.87rem;
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--text);
  transition: all 0.25s;
}
.chat-quick button:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 89;
  display: none; gap: 10px;
  background: rgba(20, 20, 27, 0.85); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: 18px; padding: 10px;
}
[data-theme="light"] .sticky-cta { background: rgba(255,255,255,0.85); }
.sticky-cta .btn { flex: 1; padding: 13px 10px; font-size: 0.92rem; }
@media (max-width: 768px) {
  .sticky-cta { display: flex; }
  .chat-fab { bottom: 86px; }
  .chat-panel { bottom: 156px; }
  body { padding-bottom: 76px; }
}

/* ---------- Модалка ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5, 5, 8, 0.75); backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(680px, 100%); max-height: 90svh; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 36px; position: relative;
  transform: translateY(20px); transition: transform 0.35s var(--ease);
}
.modal-overlay.open .modal { transform: none; }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--glass-border); color: var(--text-2);
  display: grid; place-items: center; transition: all 0.25s;
}
.modal-close:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* ---------- Внутренние страницы ---------- */
.page-hero { padding: calc(var(--header-h) + 72px) 0 56px; position: relative; overflow: hidden; }
.page-hero .hero-bg { z-index: -1; }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); margin-bottom: 16px; }
.page-hero p { color: var(--text-2); font-size: 1.15rem; max-width: 640px; }
.breadcrumbs { font-family: var(--mono); font-size: 0.78rem; color: var(--text-2); margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--accent); }

.models-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.model-card {
  padding: 20px 16px; text-align: center; font-weight: 600; font-size: 0.94rem;
  display: flex; flex-direction: column; gap: 6px; align-items: center;
  color: var(--text-2);
}
.model-card:hover { color: var(--text); transform: scale(1.02); }
.model-card .from { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); font-weight: 500; }

.model-panel { margin-top: 40px; }
.model-panel h2 { margin-bottom: 8px; }
.model-panel .panel-sub { color: var(--text-2); margin-bottom: 28px; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th {
  text-align: left; font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-2);
  padding: 12px 16px; border-bottom: 1px solid var(--glass-border);
}
.price-table td { padding: 15px 16px; border-bottom: 1px solid var(--glass-border); font-size: 0.94rem; vertical-align: top; }
.price-table td.svc { font-weight: 600; }
.price-table td.svc small { display: block; color: var(--text-2); font-weight: 400; font-size: 0.8rem; margin-top: 2px; }
.price-table td.time { font-family: var(--mono); font-size: 0.82rem; color: var(--text-2); white-space: nowrap; }
.price-table td.price { font-family: var(--mono); font-weight: 700; color: var(--accent); white-space: nowrap; text-align: right; }
.price-table tr:hover td { background: var(--glass); }
.table-wrap { overflow-x: auto; border: 1px solid var(--glass-border); border-radius: var(--radius); background: var(--glass); backdrop-filter: blur(20px); }

.prose { max-width: 780px; color: var(--text-2); font-size: 1.05rem; }
.prose h2 { color: var(--text); margin: 40px 0 16px; font-size: 1.6rem; }
.prose h3 { color: var(--text); margin: 28px 0 12px; }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.feature-card { padding: 28px; }
.feature-card svg { width: 32px; height: 32px; stroke: var(--accent); stroke-width: 1.8; fill: none; margin-bottom: 16px; }
.feature-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.feature-card p { color: var(--text-2); font-size: 0.92rem; }

/* ---------- Анимации появления ---------- */
.reveal {
  opacity: 0; transform: translateY(28px) scale(0.985); filter: blur(10px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
  will-change: opacity, transform, filter;
}
.reveal.visible { opacity: 1; transform: none; filter: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

/* каскадный вход hero-контента при загрузке */
.hero-enter > * {
  opacity: 0; transform: translateY(26px); filter: blur(8px);
  animation: heroIn 0.9s var(--ease) forwards;
}
.hero-enter > *:nth-child(1) { animation-delay: 0.05s; }
.hero-enter > *:nth-child(2) { animation-delay: 0.22s; }
.hero-enter > *:nth-child(3) { animation-delay: 0.38s; }
@keyframes heroIn { to { opacity: 1; transform: none; filter: none; } }
.hero-visual { opacity: 0; animation: heroVis 1.1s var(--ease) 0.35s forwards; }
@keyframes heroVis { from { opacity: 0; transform: translateY(30px) scale(0.96); } to { opacity: 1; transform: none; } }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
