/* ═══════════════════════════════════════
   DESIGN SYSTEM
   ═══════════════════════════════════════ */
:root {
  --color-bg: #ffffff;
  --color-surface: #F5F7FA;
  --color-text: #0F172A;
  --color-body: #334155;
  --color-muted: #94A3B8;
  --color-primary: #4280DF;
  --color-accent: #F6AE30;
  --color-primary-light: #6B9DE8;
  --color-accent-light: #F8C468;
  --space-unit: 8px;
  --max-width: 1400px;
  --section-py: 100px;
  --radius: 12px;
  --radius-pill: 50px;
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 88px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  color: var(--color-body);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ═══════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════ */
.heading-hero {
  font-size: clamp(2.6rem, 5.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.heading-section {
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.text-body {
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  color: var(--color-body);
  line-height: 1.65;
}
.text-muted {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.5;
}
.label-upper {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 44px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
  will-change: transform;
}
.btn:hover { transform: scale(1.03); }
.btn-accent {
  background: var(--color-accent);
  color: var(--color-text);
  box-shadow: 0 4px 24px rgba(246, 174, 48, 0.3);
}
.btn-accent:hover { box-shadow: 0 8px 36px rgba(246, 174, 48, 0.4); }
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 24px rgba(66, 128, 223, 0.25);
}
.btn-primary:hover { box-shadow: 0 8px 36px rgba(66, 128, 223, 0.35); }

/* ═══════════════════════════════════════
   SECTION 1: HERO
   ═══════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  opacity: 0.5;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.1) 40%, rgba(10,10,10,0.65) 100%);
}

.hero-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  background: linear-gradient(180deg, rgba(10,10,10,0.8) 0%, transparent 100%);
  transition: background 0.3s ease;
}
.hero-logo { height: 40px; width: auto; }
.hero-logo svg { height: 100%; width: auto; }
.hero-nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.hero-nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: color 0.25s;
}
.hero-nav-links a:hover { color: #fff; }

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px;
  position: relative;
  z-index: 5;
}
.hero-label {
  margin-bottom: 20px;
  color: var(--color-accent);
}
.hero-heading {
  color: #fff;
  max-width: 850px;
  margin-bottom: 24px;
}
.hero-sub {
  max-width: 640px;
  margin-bottom: 40px;
  color: rgba(255,255,255,0.6);
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 0.8s var(--ease-smooth) 0.3s forwards;
}
.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 0.8s var(--ease-smooth) 0.5s forwards;
}
.hero-secondary {
  color: rgba(255,255,255,0.35);
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp 0.8s var(--ease-smooth) 0.7s forwards;
}

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-smooth) 1s forwards;
}
.scroll-indicator span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}
.scroll-indicator-line {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.5);
  position: relative;
  overflow: hidden;
}
.scroll-indicator-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse { 0% { top: -100%; } 50% { top: 100%; } 100% { top: 100%; } }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════════
   SECTION 2: CARE STAGES
   ═══════════════════════════════════════ */
.care-stages {
  position: relative;
  background: #0a0a0a;
  height: 500vh;
}
.care-stages-pin {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}
.video-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* Native browser-loaded background of the first frame — shown instantly
     (with fetchpriority=high) while canvas is still empty. */
  background: #0a0a0a url('/frames/frame_0001.jpg') center / cover no-repeat;
}
.care-stages-2 .video-canvas { background-image: none; }
/* Кадры второго блока сняты на белом фоне: в полный экран белый текст на нём
   не читается. Затемняем полосы сверху и снизу, где стоят заголовок и подписи.
   На вертикальном экране кадр вписан целиком, поля и так чёрные — не нужно. */
@media (orientation: landscape) {
  .care-stages-2 .care-stages-pin::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to bottom,
      rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 30%,
      rgba(0,0,0,0) 62%, rgba(0,0,0,0.6) 100%);
  }
}
.video-canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.stage-caption {
  position: absolute;
  bottom: 60px;
  left: 40px;
  right: 40px;
  max-width: 600px;
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
  pointer-events: none;
  z-index: 5;
}
.stage-caption.is-active { pointer-events: auto; }
.stage-book-btn {
  position: absolute;
  bottom: 60px;
  right: 40px;
  z-index: 10;
  display: inline-block;
  padding: 14px 36px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-text);
  background: var(--color-accent);
  border-radius: 60px;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(246, 174, 48, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stage-book-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 36px rgba(246, 174, 48, 0.45);
}
.stage-caption .stage-num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.stage-caption .stage-num span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.stage-caption .stage-num::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.2);
}
.stage-caption h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.2;
}
.stage-caption p {
  font-size: clamp(0.92rem, 1vw, 1.05rem);
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 520px;
}

.stage-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.06);
  z-index: 10;
}
.stage-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  will-change: width;
}

.stage-dots {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.3s, transform 0.3s;
}
.stage-dot.active {
  background: var(--color-accent);
  transform: scale(1.4);
}

.care-stages-2 { height: 300vh; }
/* Заголовок блока «Детейлинг всего автомобиля»: раньше висел по центру экрана
   поверх машины (на светлом салоне текст не читался). Теперь — сверху, как h1
   в первом блоке, а под кадром идут подписи этапов. */
.stage-caption-center {
  bottom: auto;
  top: calc(var(--nav-h) + 10px);
  left: 40px;
  right: 40px;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: none;
  max-width: 640px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.5);
}
.stage-caption-center h3 { font-size: clamp(1.2rem, 2vw, 1.7rem); margin-bottom: 6px; }
.stage-caption-center p { font-size: clamp(0.85rem, 1vw, 0.98rem); max-width: 560px; }

/* ═══════════════════════════════════════
   SERVICE-PAGE SCROLL ANIMATION
   ═══════════════════════════════════════ */
.service-animation {
  position: relative;
  background: var(--color-surface);
  height: 220vh; /* scroll length */
}
.service-animation-pin {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 60px 0;
}
.service-animation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
  width: 100%;
}
.service-animation-stage {
  width: 100%;
  max-width: 560px;
  justify-self: center;
}
.service-animation-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  background-color: #0a0a0a;
  background-size: cover;
  background-position: center;
  box-shadow: 0 28px 60px -28px rgba(15, 23, 42, 0.45);
}
.service-animation-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.service-animation-progress {
  margin-top: 16px;
  height: 3px;
  width: 100%;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.service-animation-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  will-change: width;
}
.service-animation-text {
  max-width: 480px;
}
.service-animation-heading {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

@media (max-width: 900px) {
  .service-animation { height: auto; }
  .service-animation-pin { height: auto; padding: 60px 0; }
  .service-animation-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .service-animation-stage { max-width: 480px; }
  .service-animation-text { max-width: none; text-align: left; }
}

/* ═══════════════════════════════════════
   SECTION 3: FOCUS MESSAGE
   ═══════════════════════════════════════ */
.focus-section {
  position: relative;
  background: var(--color-bg);
  overflow: hidden;
}
.focus-inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px;
}
.focus-visual {
  position: relative;
  width: 340px;
  height: 340px;
  margin-bottom: 56px;
  will-change: transform, opacity;
  border-radius: 50%;
  overflow: hidden;
}
.focus-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.focus-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.15);
  pointer-events: none;
}
.focus-gloss {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  will-change: transform;
  z-index: 2;
  pointer-events: none;
}
.focus-heading {
  max-width: 700px;
  margin-bottom: 24px;
  opacity: 0;
  will-change: transform, opacity;
}
.focus-body {
  max-width: 600px;
  opacity: 0;
  will-change: transform, opacity;
}

/* ═══════════════════════════════════════
   SECTION 4: SERVICES
   ═══════════════════════════════════════ */
.services-section {
  padding: var(--section-py) 0;
  background: var(--color-bg);
}
.services-header {
  text-align: center;
  margin-bottom: 72px;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  counter-reset: service-counter;
}
.service-item {
  padding: 36px 40px;
  border-bottom: 1px solid rgba(148,163,184,0.1);
  opacity: 0;
  transform: translateY(24px);
  will-change: transform, opacity;
  transition: background 0.3s ease;
  position: relative;
  counter-increment: service-counter;
}
.service-item:hover { background: var(--color-surface); }
.service-item:nth-child(odd) { border-right: 1px solid rgba(148,163,184,0.1); }
.service-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.service-name::before {
  content: counter(service-counter, decimal-leading-zero);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 0;
  letter-spacing: 0.02em;
}
.service-prices {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.service-price-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--color-surface);
  color: var(--color-text);
  white-space: nowrap;
}
.service-price-tag:first-child { background: rgba(66,128,223,0.08); color: var(--color-primary); }
.service-desc {
  font-size: 0.92rem;
  color: var(--color-body);
  line-height: 1.6;
}
.service-note {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 6px;
}
.service-item .home-service-compare {
  width: 100%;
  margin: 14px 0 18px;
  border-radius: 12px;
  aspect-ratio: 1.6 / 1;
  background: #0c1724;
}
.service-item .home-service-compare .ba-tag { bottom: 10px; padding: 5px 9px; font-size: .65rem; }
.service-item .home-service-compare .ba-tag-before { left: 10px; }
.service-item .home-service-compare .ba-tag-after { right: 10px; }
.service-item .home-service-compare .ba-divider span { width: 38px; height: 38px; font-size: 1.1rem; }
.btn-book {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 24px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-primary);
  border: 1px solid rgba(66,128,223,0.3);
  border-radius: 24px;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-book:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ═══════════════════════════════════════
   SECTION 5: VALUES
   ═══════════════════════════════════════ */
.values-section {
  padding: var(--section-py) 0;
  background: var(--color-surface);
}
.values-header { text-align: center; margin-bottom: 20px; }
.values-subtext {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.value-card {
  text-align: center;
  padding: 40px 20px;
  opacity: 0;
  transform: translateY(24px);
  will-change: transform, opacity;
}
.value-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}
.value-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.value-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}
.value-desc {
  font-size: 0.9rem;
  color: var(--color-body);
  line-height: 1.55;
}

/* ═══════════════════════════════════════
   SECTION 6: REVIEWS
   ═══════════════════════════════════════ */
.reviews-section {
  padding: var(--section-py) 0;
}
.reviews-header {
  text-align: center;
  margin-bottom: 64px;
}
.reviews-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}
.reviews-rating-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
}
.reviews-stars {
  display: flex;
  gap: 4px;
}
.reviews-stars svg {
  width: 22px;
  height: 22px;
  fill: var(--color-accent);
}
.reviews-meta {
  font-size: 0.88rem;
  color: var(--color-muted);
}
.reviews-meta a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}
.reviews-meta a:hover { text-decoration: underline; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 32px;
  opacity: 0;
  transform: translateY(24px);
  will-change: transform, opacity;
}
.review-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(66,128,223,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
}
.review-author {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
}
.review-date {
  font-size: 0.78rem;
  color: var(--color-muted);
}
.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}
.review-stars svg {
  width: 14px;
  height: 14px;
  fill: var(--color-accent);
}
.review-text {
  font-size: 0.9rem;
  color: var(--color-body);
  line-height: 1.65;
}
.reviews-cta {
  text-align: center;
  margin-top: 48px;
}
.reviews-cta a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}
.reviews-cta a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════
   SECTION 7: LOCATION + CONTACTS
   ═══════════════════════════════════════ */
.location-section {
  padding: var(--section-py) 0;
  background: var(--color-surface);
  overflow-x: clip;   /* gsap стартует .location-info со сдвигом x:30 — иначе +10px к ширине страницы */
}
.location-header {
  text-align: center;
  margin-bottom: 64px;
}
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.location-map {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-bg);
}
.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.location-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.location-block {}
.location-block-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 10px;
}
.location-block-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.6;
}
.location-block-value a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}
.location-block-value a:hover {
  color: var(--color-primary);
}
.location-block-note {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 4px;
}
.location-contacts-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.location-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  background: var(--color-bg);
  color: var(--color-text);
}
.location-contact-pill:hover {
  background: var(--color-primary);
  color: #fff;
}
.location-contact-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.location-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  border: 1px solid rgba(66,128,223,0.3);
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  margin-top: 4px;
}
.location-nav-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.location-nav-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ═══════════════════════════════════════
   SECTION 8: CTA + FOOTER
   ═══════════════════════════════════════ */
.cta-section {
  padding: 120px 0 80px;
  text-align: center;
}
.cta-heading {
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.cta-btn { margin-bottom: 20px; }
.cta-note { max-width: 480px; margin: 0 auto; }

.footer {
  padding: 48px 0;
  text-align: center;
  border-top: 1px solid rgba(148,163,184,0.1);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 0.85rem; color: var(--color-muted); }
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--color-text); }

/* ═══════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --section-py: 64px; }
  .container { padding: 0 20px; }
  .hero-nav { padding: 16px 20px; }
  .hero-logo { height: 30px; }
  :root { --nav-h: 66px; }   /* реальная высота: 16 + бургер 34 + 16 */
  .hero-nav-links { gap: 20px; }
  .hero-nav-links a { font-size: 0.8rem; }
  .hero-content { padding: 0 20px; }
  .hero-cta { flex-direction: column; align-items: center; }

  .care-stages { height: 350vh; }
  .stage-caption { left: 20px; right: 20px; bottom: 100px; }
  /* Вертикальный телефон: кадр показываем целиком (см. fitFrame в index.php),
     заглушку первого кадра и подпись этапа выравниваем по нему же. */
  @media (orientation: portrait) {
    .video-canvas { background-size: contain; background-position: center 32%; }
    .stage-caption { top: calc(var(--frame-bottom, 54%) + 22px); bottom: auto; }
    /* Заголовок второго блока: на узком экране его translate(-50%,-50%) уводил текст
       за левый край. Ставим над кадром — верхняя чёрная зона перестаёт пустовать,
       а подписи этапов идут под кадром, как в первом блоке. */
    .stage-caption-center { top: auto; bottom: calc(100% - var(--frame-top, 30%) + 14px);
      left: 20px; right: 20px; max-width: none; transform: none !important; }
    .stage-caption-center { text-align: center; }
    .stage-caption-center h3 { font-size: 1.18rem; margin-bottom: 6px; }
    .stage-caption-center p { font-size: 0.82rem; line-height: 1.45; margin: 0 auto; }
  }
  .stage-book-btn { bottom: 40px; right: 20px; padding: 12px 28px; font-size: 0.88rem; }
  /* по центру подсказка налезала на кнопку записи — уводим её к левому краю;
     обе поднимаем: внизу экрана их перекрывает панель браузера */
  .scroll-indicator { left: 20px; transform: none; align-items: flex-start; bottom: 96px; }
  .stage-book-btn { bottom: 104px; }
  .stage-dots { right: 16px; gap: 12px; }
  .stage-dot { width: 6px; height: 6px; }

  .focus-visual { width: 220px; height: 220px; margin-bottom: 40px; }
  .focus-inner { padding: 80px 20px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-item:nth-child(odd) { border-right: none; }
  .service-item { padding: 24px 20px; }

  .values-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .value-card { padding: 24px 12px; }

  .reviews-grid { grid-template-columns: 1fr; }
  .review-card { padding: 24px; }

  .location-grid { grid-template-columns: 1fr; gap: 32px; }
  .location-map { aspect-ratio: 16/10; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .btn { width: 100%; padding: 16px 24px; }
  .cta-section { padding: 80px 0 60px; }
}

@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════
   LOADING
   ═══════════════════════════════════════ */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-smooth);
}
.loading-overlay.hidden { opacity: 0; pointer-events: none; }
.loading-text {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.loading-bar-track {
  width: 160px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width 0.15s linear;
}

/* ═══════════════════════════════════════
   PAGES: uslugi/ overview + service pages
   (appended from uslugi.html — duplicate root tokens are harmless)
   ═══════════════════════════════════════ */
/* ═══════════════════════════════════════
   DESIGN SYSTEM
   ═══════════════════════════════════════ */
:root {
  --color-bg: #ffffff;
  --color-surface: #F5F7FA;
  --color-text: #0F172A;
  --color-body: #334155;
  --color-muted: #94A3B8;
  --color-primary: #4280DF;
  --color-accent: #F6AE30;
  --color-primary-light: #6B9DE8;
  --color-accent-light: #F8C468;
  --space-unit: 8px;
  --max-width: 1400px;
  --section-py: 100px;
  --radius: 12px;
  --radius-pill: 50px;
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
/* Note: no scroll-behavior: smooth here — it conflicts with GSAP's tweened
   window.scrollTo on the main page (care-stages autoscroll).
   Anchor jumps on /uslugi/ still work fine without it. */
html { -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  color: var(--color-body);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ═══════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════ */
.heading-hero {
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.heading-section {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.text-body {
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  color: var(--color-body);
  line-height: 1.65;
}
.text-muted {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.5;
}
.label-upper {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 44px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
  will-change: transform;
}
.btn:hover { transform: scale(1.03); }
.btn-accent {
  background: var(--color-accent);
  color: var(--color-text);
  box-shadow: 0 4px 24px rgba(246, 174, 48, 0.3);
}
.btn-accent:hover { box-shadow: 0 8px 36px rgba(246, 174, 48, 0.4); }
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 24px rgba(66, 128, 223, 0.25);
}
.btn-primary:hover { box-shadow: 0 8px 36px rgba(66, 128, 223, 0.35); }

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */
.top-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.top-logo { height: 36px; width: auto; }
.top-logo svg { height: 100%; width: auto; }
.top-logo .lg1 { fill: var(--color-text); }
.top-nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.top-nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-body);
  transition: color 0.25s;
}
.top-nav-links a:hover { color: var(--color-primary); }
.top-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--color-accent);
  color: var(--color-text) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 16px rgba(246, 174, 48, 0.25);
}
.top-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(246, 174, 48, 0.35);
}

/* ═══════════════════════════════════════
   PAGE HERO
   ═══════════════════════════════════════ */
.page-hero {
  position: relative;
  padding: 96px 0 72px;
  background: linear-gradient(180deg, #F5F7FA 0%, #ffffff 100%);
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(66, 128, 223, 0.08), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(246, 174, 48, 0.09), transparent 45%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .label-upper { margin-bottom: 18px; display: inline-block; }
.page-hero h1 {
  max-width: 860px;
  margin: 0 auto 20px;
  color: var(--color-text);
}
.page-hero p {
  max-width: 640px;
  margin: 0 auto;
}
.page-hero-highlight {
  color: var(--color-primary);
}

/* Тематический кадр услуги рядом с её описанием. */
.page-hero--photo { text-align: left; }
.service-hero-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 44%); gap: clamp(24px, 4vw, 64px); align-items: center; }
.service-hero-intro > * { min-width: 0; }
.page-hero--photo h1, .page-hero--photo p { margin-left: 0; margin-right: 0; }
.service-hero-photo { position: relative; margin: 0; border-radius: 20px; overflow: hidden; background: #dce4ed; box-shadow: 0 18px 48px rgba(7, 24, 43, .13); }
.service-hero-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; }
@media (max-width: 760px) {
  .service-hero-intro { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .service-hero-photo { border-radius: 14px; }
  .service-hero-photo img { aspect-ratio: 16 / 9; }
}

/* ═══════════════════════════════════════
   BREADCRUMBS
   ═══════════════════════════════════════ */
.breadcrumbs {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumbs a {
  color: var(--color-primary);
  transition: color 0.2s;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span.sep { color: var(--color-muted); }

/* ═══════════════════════════════════════
   INTRO / TOC
   ═══════════════════════════════════════ */
.intro-section {
  padding: 60px 0 40px;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.intro-text h2 {
  margin-bottom: 18px;
  color: var(--color-text);
}
.intro-text p + p { margin-top: 14px; }

.toc-card {
  background: var(--color-surface);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.toc-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.toc-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.toc-list a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--color-body);
  padding: 6px 0;
  transition: color 0.2s;
}
.toc-list a::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  margin-top: 8px;
}
.toc-list a:hover { color: var(--color-primary); }

/* ═══════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════ */
.services-section-full {
  padding: 40px 0 var(--section-py);
}
.services-group {
  margin-bottom: 72px;
}
.services-group-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.services-group-header h2 {
  color: var(--color-text);
}
.services-group-header .services-group-count {
  font-size: 0.82rem;
  color: var(--color-muted);
  font-weight: 500;
  flex-shrink: 0;
  padding-bottom: 4px;
}

.service-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  transition: padding 0.3s ease;
}
.service-card:last-child { border-bottom: none; }

.service-card-aside {
  position: sticky;
  top: 100px;
  align-self: start;
}
.service-card-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}
.service-card-num::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(148,163,184, 0.4);
}
.service-card-title {
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.service-card-prices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--color-surface);
  border-radius: 10px;
  border: 1px solid rgba(148,163,184, 0.12);
}
.price-row-label {
  font-size: 0.78rem;
  color: var(--color-body);
  font-weight: 500;
  line-height: 1.3;
}
.price-row-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}
.price-row.single {
  background: rgba(66, 128, 223, 0.06);
  border-color: rgba(66, 128, 223, 0.15);
}
.price-row.single .price-row-value {
  color: var(--color-primary);
}
.btn-card-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--color-primary);
  border-radius: var(--radius-pill);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 16px rgba(66, 128, 223, 0.22);
}
.btn-card-book:hover {
  background: #346fc9;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(66, 128, 223, 0.3);
}

.service-card-body {
  padding-top: 6px;
}
.service-card-lead {
  font-size: 1.02rem;
  color: var(--color-body);
  line-height: 1.65;
  margin-bottom: 22px;
}
.service-card-body h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary);
  margin: 24px 0 12px;
}
.service-card-body h4:first-child { margin-top: 0; }
.service-steps {
  list-style: none;
  counter-reset: step-counter;
  display: grid;
  gap: 10px;
}
.service-steps li {
  position: relative;
  padding: 12px 16px 12px 56px;
  background: var(--color-bg);
  border: 1px solid rgba(148,163,184, 0.14);
  border-radius: 12px;
  counter-increment: step-counter;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-body);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.service-steps li:hover {
  border-color: rgba(66, 128, 223, 0.25);
  background: rgba(66, 128, 223, 0.02);
}
.service-steps li::before {
  content: counter(step-counter, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: 0.04em;
}
.service-steps li strong {
  color: var(--color-text);
  font-weight: 700;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-body);
  background: var(--color-surface);
  border-radius: 20px;
  border: 1px solid rgba(148,163,184, 0.16);
}
.service-tag.accent {
  background: rgba(246, 174, 48, 0.1);
  border-color: rgba(246, 174, 48, 0.2);
  color: #b37c10;
}

.service-note-block {
  margin-top: 20px;
  padding: 14px 18px;
  background: rgba(66, 128, 223, 0.05);
  border-left: 3px solid var(--color-primary);
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--color-body);
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   PROCESS / STEP-BY-STEP SECTION
   ═══════════════════════════════════════ */
.process-section {
  padding: var(--section-py) 0;
  background: var(--color-surface);
}
.process-header {
  text-align: center;
  margin-bottom: 60px;
}
.process-header h2 { margin: 16px 0 14px; }
.process-header p { max-width: 620px; margin: 0 auto; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.process-step {
  background: var(--color-bg);
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid rgba(148,163,184, 0.12);
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}
.process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}
.process-step-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 18px;
}
.process-step h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}
.process-step p {
  font-size: 0.88rem;
  color: var(--color-body);
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   CTA
   ═══════════════════════════════════════ */
.cta-section {
  padding: 100px 0;
  text-align: center;
  background: var(--color-bg);
}
.cta-heading {
  margin-bottom: 20px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.cta-sub {
  max-width: 520px;
  margin: 0 auto 36px;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
  padding: 48px 0;
  text-align: center;
  border-top: 1px solid rgba(148,163,184,0.1);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 0.85rem; color: var(--color-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--color-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--color-text); }
/* Подпись разработчика — отдельной строкой под контактами */
.footer-dev {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(148,163,184,0.12);
  font-size: 0.8rem;
  color: var(--color-muted);
  text-align: center;
}
.footer-dev a {
  color: var(--color-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(148,163,184,0.35);
  transition: color 0.2s, border-color 0.2s;
}
.footer-dev a:hover { color: var(--color-text); border-color: var(--color-text); }

/* ═══════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 0;
  }
  .service-card-aside { position: static; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .toc-list { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --section-py: 64px; }
  .container { padding: 0 20px; }
  .top-nav { padding: 14px 20px; }
  .top-logo { height: 30px; }
  .top-nav-links { gap: 14px; }
  .top-nav-links a:not(.top-nav-cta) { display: none; }
  .page-hero { padding: 64px 0 48px; }
  .services-group-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; padding: 16px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .process-grid { grid-template-columns: 1fr; }
  .toc-card { padding: 24px; }
  .footer-links { flex-direction: column; gap: 12px; }
}
@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; }
}

/* ═══════════════════════════════════════
   NAVIGATION DROPDOWN + MOBILE BURGER
   (new for multipage site)
   ═══════════════════════════════════════ */
.nav-has-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  padding: 7px 2px;
}
.nav-has-dropdown.is-open > .nav-dropdown-trigger { color: var(--color-accent); }
.nav-dropdown-trigger::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.7;
  transition: transform 0.2s;
}
.nav-has-dropdown.is-open .nav-dropdown-trigger::after { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 720px;
  max-width: min(760px, calc(100vw - 48px));
  padding: 26px 28px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 34px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s var(--ease-smooth), transform 0.18s var(--ease-smooth);
  z-index: 1100;
}
/* Мост: продлевает зону наведения вверх до пункта меню, чтобы панель
   не закрывалась, пока курсор идёт по зазору. */
.nav-dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}
/* Уголок, привязывающий панель к пункту меню */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  margin-left: -7px;
  width: 13px;
  height: 13px;
  background: #fff;
  border-left: 1px solid rgba(15,23,42,0.06);
  border-top: 1px solid rgba(15,23,42,0.06);
  transform: rotate(45deg);
  border-radius: 3px 0 0 0;
}
.nav-has-dropdown.is-open .nav-dropdown,
.nav-has-dropdown:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
}
/* Запас под двухстрочные названия категорий — иначе колонки разъезжаются
   (line-height 1.5 × 2 строки = 3em). В одиночной панели колонок нет — запас не нужен. */
.nav-dropdown:not(.is-single) .nav-dropdown-group-title { min-height: 3em; }
.nav-dropdown a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  color: var(--color-text) !important;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 10px;
  margin: 0 -10px;
  border-radius: 9px;
  transition: color 0.18s, background 0.18s;
}
.nav-dropdown a:hover {
  color: var(--color-primary) !important;
  background: rgba(66,128,223,0.07);
}
.nav-dropdown-price {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-muted);
  white-space: nowrap;
}
.nav-dropdown a:hover .nav-dropdown-price { color: var(--color-primary); }

/* Кнопка калькулятора внизу выпадашки — на всю ширину панели */
.nav-dropdown a.nav-dropdown-calc {
  grid-column: 1 / -1;
  align-items: center !important;
  gap: 14px;
  margin: 4px -10px -6px !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  background: var(--color-accent);
  color: #fff !important;
  font-weight: 700 !important;
}
/* Специфичность выше, чем у .nav-dropdown a:hover — иначе текст остаётся голубым */
.nav-dropdown a.nav-dropdown-calc:hover {
  background: #eda01c !important;
  color: #fff !important;
}
.nav-dropdown-calc-label { display: inline-flex; align-items: center; gap: 10px; }
.nav-dropdown-calc svg { width: 19px; height: 19px; flex-shrink: 0; }
.nav-dropdown-calc-go {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}
.nav-dropdown-calc:hover .nav-dropdown-calc-go { color: #fff; }

/* Дропдаун с одной категорией (шиномонтаж) — не растягиваем на 720px */
.nav-dropdown.is-single {
  min-width: 368px;
  grid-template-columns: 1fr;
  padding: 22px 24px;
}

/* Кнопка «Маршрут» — Яндекс.Карты / Навигатор */
.nav-route {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px 7px 13px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.nav-route svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }
.nav-route:hover {
  border-color: var(--color-accent);
  background: rgba(246,174,48,0.12);
  color: var(--color-accent) !important;
}
.nav-light .nav-route { border-color: rgba(15,23,42,0.18); }

/* Бургер: три линии, при открытом меню складываются в крестик.
   Сам крестик в панели не нужен — шапка поднимается над ней (body.nav-open). */
.nav-burger {
  display: none;
  width: 42px;
  height: 34px;
  padding: 8px 8px;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}
.nav-burger span + span { margin-top: 6px; }
body.nav-open .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; transform: scaleX(0.3); }
body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Затемнение страницы под выдвижной панелью */
.nav-backdrop { display: none; }

/* Кнопка записи живёт только в мобильном меню */
.nav-book { display: none; }
@media (max-width: 768px) {
  .nav-burger { display: block; }

  /* Шапка поднимается над панелью: логотип и крестик остаются на месте,
     белая подложка убирается — получается «шапка меню» без лишней вёрстки. */
  body.nav-open .hero-nav { z-index: 1100; }
  body.nav-open .hero-nav::before { opacity: 0; }
  body.nav-open .hero-nav .hero-logo,
  body.nav-open .hero-nav .nav-burger { position: relative; z-index: 1060; color: #fff; }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(3, 7, 18, 0.72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

  .hero-nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(360px, 88vw);
    background: linear-gradient(200deg, #17233f 0%, #0b1120 58%);
    border-left: 1px solid rgba(255,255,255,0.08);
    box-shadow: -26px 0 60px rgba(0,0,0,0.45);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--nav-h) + 6px) 20px 32px;
    transform: translateX(100%);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1050;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .hero-nav-links.is-open { transform: none; }

  /* Пункты выезжают по очереди — панель не «вываливается» целиком.
     Телефон, запись и маршрут перечислены отдельно: их собственные
     transition (только color) иначе перебивают это правило. */
  .hero-nav-links > *,
  .hero-nav-links > a,
  .hero-nav-links > .nav-contact,
  .hero-nav-links > .nav-route,
  .hero-nav-links > .nav-book {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  }
  .hero-nav-links.is-open > * {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i, 0) * 45ms + 90ms);
  }

  /* Строка меню */
  .hero-nav-links > a:not(.nav-contact):not(.nav-route):not(.nav-book),
  .nav-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 2px;
    font-size: 1.02rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .nav-has-dropdown { display: block; }
  .nav-dropdown-trigger::after { margin-left: auto; opacity: 0.55; }
  .nav-has-dropdown.is-open > .nav-dropdown-trigger { border-bottom-color: transparent; }
  .hero-nav-links a.is-current { color: var(--color-accent) !important; }

  /* Подменю — аккордеон */
  .nav-dropdown {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    left: auto;
    transform: none;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: auto;
    transition: max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease, padding 0.3s ease;
  }
  /* Десктопные правила раскрытия тянут за собой translateX(-50%) и ширину
     выпадашки — на мобиле их надо гасить в тех же состояниях. */
  .nav-has-dropdown.is-open .nav-dropdown,
  .nav-has-dropdown:hover .nav-dropdown {
    transform: none;
    left: auto;
    top: auto;
    min-width: 0;
    max-width: none;
    width: 100%;
  }
  .nav-has-dropdown:hover > .nav-dropdown { max-height: 0; opacity: 0; }   /* тач-«залипание» hover */
  .nav-has-dropdown.is-open > .nav-dropdown {
    max-height: 620px;
    opacity: 1;
    padding: 8px 0 14px;   /* только вертикальные: боковые сместили бы перенос строк,
                              а высоту аккордеона js меряет до раскрытия */
    border-radius: 14px;
    position: relative;
    isolation: isolate;    /* чтобы фото на ::after легло под текст, но над фоном панели */
    background: none;      /* никакой плашки — по краям должен остаться чистый фон */
  }
  /* Тематическое фото раздела: в середине еле проступает, к краям растворяется
     в фоне панели — маской, а не прямоугольником. Картинка в --nav-img из config. */
  .nav-has-dropdown.is-open > .nav-dropdown::after {
    content: '';
    display: block;
    position: absolute;
    inset: 0;
    /* гасим десктопный ::after — там это белый «уголок» дропдауна 13x13 */
    width: auto;
    height: auto;
    margin: 0;
    border: 0;
    transform: none;
    background-color: transparent;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    background-image: var(--nav-img, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.32;
    /* Растушёвка: к краям карточки фото полностью растворяется, остаётся фон панели */
    -webkit-mask-image: radial-gradient(78% 62% at 50% 45%, #000 0%, rgba(0,0,0,0.45) 38%, transparent 72%);
    mask-image: radial-gradient(78% 62% at 50% 45%, #000 0%, rgba(0,0,0,0.45) 38%, transparent 72%);
  }
  .nav-dropdown::before { display: none; }   /* десктопный «мост» для курсора */
  .nav-dropdown::after { display: none; }
  .nav-dropdown, .nav-dropdown.is-single { min-width: 0; padding: 0; }
  .nav-dropdown-group { display: block; }
  .nav-dropdown-group-title {
    margin: 8px 0 2px;
    padding: 0 12px;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    color: var(--color-accent);
  }
  .nav-dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255,255,255,0.78) !important;
  }
  .nav-dropdown a:active { background: rgba(255,255,255,0.07); }
  .nav-dropdown-price { color: rgba(255,255,255,0.45); font-size: 0.82rem; }

  /* Калькулятор — подсказка, а не главная кнопка раздела */
  .nav-dropdown a.nav-dropdown-calc {
    margin: 8px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(246,174,48,0.12);
    border: 1px solid rgba(246,174,48,0.32);
    color: var(--color-accent) !important;
  }
  .nav-dropdown-calc-go { font-size: 0.78rem; color: var(--color-accent); }

  /* Телефон, запись и маршрут — блок внизу панели */
  .hero-nav-links .nav-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
  }
  .nav-contact strong { font-size: 1.05rem; }
  .nav-contact span { font-size: 0.78rem; opacity: 1; color: rgba(255,255,255,0.55); }
  .nav-book {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-pill);
    background: var(--color-accent);
    color: #0b1120 !important;
    font-weight: 700;
    font-size: 0.95rem;
  }
  .nav-book:active { transform: scale(0.985); }
  .hero-nav-links .nav-route {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    padding: 13px 16px;
    font-weight: 600;
    background: transparent;
    border-color: rgba(255,255,255,0.22);
  }
  /* Контур акцентом — одинаково и на светлых страницах, и на тёмной главной */
  .hero-nav .hero-nav-links .nav-route { border-color: rgba(246,174,48,0.75); }
  .hero-nav-links .nav-route svg { fill: rgba(255,255,255,0.88); }
  .hero-nav-links .nav-route:active { background: rgba(255,255,255,0.06); }
  .hero-nav.nav-light .hero-nav-links a { color: rgba(255,255,255,0.88); }
  .hero-nav.nav-light .hero-nav-links a:hover { color: #fff; }
  .hero-nav.nav-light .nav-route,
  .nav-light .nav-route { color: rgba(255,255,255,0.88); border-color: rgba(255,255,255,0.22); }
  .hero-nav.nav-light .nav-dropdown-trigger { color: rgba(255,255,255,0.88); }
  .hero-nav.nav-light .hero-nav-links .nav-book { color: #0b1120 !important; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-nav-links, .hero-nav-links > *, .nav-dropdown, .nav-backdrop, .nav-burger span {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* ── Светлая шапка (внутренние страницы) ─────────────────────────────────
   На тёмном hero главной остаётся градиент .nav-dark; на светлых страницах
   шапка становится белой, иначе тёмная полоса висит поверх белого контента. */
.hero-nav.nav-light { background: transparent; }
.hero-nav .hero-logo { color: #fff; transition: color 0.25s ease; }
.hero-nav.nav-light .hero-logo { color: #0F172A; }
.hero-nav .nav-burger { color: #fff; }
.hero-nav.nav-light .nav-burger { color: var(--color-text); }
/* Фон и размытие живут на псевдоэлементе: backdrop-filter на самой шапке
   сделал бы её системой координат для мобильной выдвижной панели (position: fixed),
   и та схлопнулась бы до высоты шапки. */
.hero-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;                       /* на главной шапка переключается на ходу */
  transition: opacity 0.25s ease;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgba(15,23,42,0.07);
}
.hero-nav.nav-light::before { opacity: 1; }
.nav-light .hero-nav-links a { color: var(--color-body); }
.nav-light .hero-nav-links a:hover { color: var(--color-primary); }
.nav-light .nav-burger { color: var(--color-text); }

/* Breadcrumb (internal pages only) */
/* Полоса хлебных крошек — на нашем светлом фоне, сразу под меню, встык с hero */
.breadcrumb-bar {
  background: var(--color-surface);
  padding-top: var(--nav-h);
}
.breadcrumb {
  padding: 18px 0 14px;
  font-size: 0.82rem;
  color: var(--color-muted);
}
.breadcrumb a { color: var(--color-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb-sep { margin: 0 8px; opacity: 0.5; }

/* Service page enhancements */
.service-page section { margin: 0 auto; }
.service-page h2 { margin-bottom: 12px; }
.service-page details { border: 1px solid rgba(148,163,184,0.15); }
.service-page details[open] summary { color: var(--color-primary); }

/* Price tables (шиномонтаж — цены по радиусу колеса) */
.price-table-caption {
  margin: 36px 0 14px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-text);
}
.price-table-caption:first-child { margin-top: 0; }
.price-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: var(--radius);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 520px;
}
.price-table th,
.price-table td {
  padding: 13px 18px;
  text-align: left;
  white-space: nowrap;
}
.price-table thead th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.84rem;
  line-height: 1.35;
  white-space: normal;
}
.price-table thead th.num,
.price-table td.num { text-align: right; }
.price-table tbody th {
  font-weight: 700;
  color: var(--color-text);
}
.price-table tbody td { color: var(--color-body); }
.price-table tbody tr { border-bottom: 1px solid rgba(148,163,184,0.15); }
.price-table tbody tr:last-child { border-bottom: 0; }
.price-table tbody tr:hover { background: rgba(66,128,223,0.04); }

.price-note {
  margin-top: 22px;
  padding: 18px 22px;
  background: #fff;
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--color-body);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 840px;
}
.price-note p + p { margin-top: 10px; }
.price-note strong { color: var(--color-text); }

/* Extras — простой двухколоночный список «услуга — цена» */
.price-list {
  margin-top: 16px;
  max-width: 640px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}
.price-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(148,163,184,0.15);
}
.price-list div:last-child { border-bottom: 0; }
.price-list span:first-child { color: var(--color-body); }
.price-list span:last-child { font-weight: 700; color: var(--color-text); white-space: nowrap; }

@media (max-width: 640px) {
  .price-table { font-size: 0.86rem; }
  .price-table th, .price-table td { padding: 11px 14px; }
}

/* ═══════════════════════════════════════
   Калькулятор шиномонтажа
   ═══════════════════════════════════════ */
.tire-calc {
  background: var(--color-surface);
  padding: 64px 0;
  scroll-margin-top: 90px;
}
.tire-calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 28px;
  margin-top: 34px;
  align-items: start;
}
.tire-calc-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
}
.tire-calc-field { margin-bottom: 20px; }
.tire-calc-field:last-child { margin-bottom: 0; }
.tire-calc-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 9px;
}
.tire-calc-select,
.tire-calc-input {
  width: 100%;
  max-width: 420px;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid rgba(148,163,184,0.35);
  border-radius: 10px;
  transition: border-color 0.2s;
}
.tire-calc-select:focus,
.tire-calc-input:focus { outline: none; border-color: var(--color-primary); }
.tire-calc-input[type="number"] { max-width: 140px; }

.tire-calc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(148,163,184,0.2);
}
.tire-calc-tab {
  font: inherit;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--color-body);
  background: var(--color-surface);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 9px 17px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tire-calc-tab:hover { border-color: rgba(66,128,223,0.4); }
.tire-calc-tab.is-active { background: var(--color-primary); color: #fff; }

.tire-calc-radios,
.tire-calc-checks { display: flex; flex-direction: column; gap: 9px; }
.tire-calc-radios label,
.tire-calc-checks label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--color-body);
  cursor: pointer;
  line-height: 1.45;
}
.tire-calc-radios input,
.tire-calc-checks input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
  cursor: pointer;
}
.tire-calc-hint {
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--color-muted);
  line-height: 1.6;
}
.tire-calc-hint:empty { display: none; }

.tire-calc-extras {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(148,163,184,0.2);
}
.tire-calc-extras summary {
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  font-size: 0.95rem;
}
.tire-calc-extras[open] summary { color: var(--color-primary); margin-bottom: 14px; }
/* Доп-опция хранения при переобувке: отступ у выбора срока */
.tire-calc-addon .tire-calc-radios { margin-top: 10px; }

/* Допуслуги — в две колонки, чтобы блок был компактным и заполнял ширину карточки */
.tire-calc-extras .tire-calc-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
}
@media (max-width: 560px) {
  .tire-calc-extras .tire-calc-checks { grid-template-columns: 1fr; }
}

/* Итог */
.tire-calc-result-inner {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 88px;
}
.tire-calc-result-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 16px;
}
.tire-calc-lines { display: flex; flex-direction: column; gap: 10px; }
.tire-calc-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.89rem;
  color: var(--color-body);
  line-height: 1.45;
}
.tire-calc-line b { color: var(--color-text); white-space: nowrap; }
.tire-calc-empty { font-size: 0.89rem; color: var(--color-muted); }
.tire-calc-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(148,163,184,0.25);
  font-weight: 700;
  color: var(--color-text);
}
.tire-calc-total strong { font-size: 1.5rem; color: var(--color-primary); }
.tire-calc-disclaimer {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.55;
}
.tire-calc-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.tire-calc-actions .btn { text-align: center; }
.btn-outline {
  border: 1px solid rgba(66,128,223,0.45);
  color: var(--color-primary);
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: rgba(66,128,223,0.08); border-color: var(--color-primary); }
.tire-calc-link {
  font: inherit;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--color-muted);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}
.tire-calc-link:hover { color: var(--color-primary); }

/* Заявка */
.tire-calc-lead {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(148,163,184,0.25);
}
.tire-calc-lead-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 14px;
}
.tire-calc-lead .tire-calc-input { max-width: 100%; margin-bottom: 12px; }
.tire-calc-submit { width: 100%; margin-top: 4px; }
.tire-calc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.tire-calc-status {
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.tire-calc-status:empty { display: none; }
.tire-calc-status.is-ok  { color: #16a34a; }
.tire-calc-status.is-err { color: #dc2626; }
.tire-calc-consent {
  margin-top: 10px;
  font-size: 0.74rem;
  color: var(--color-muted);
  line-height: 1.5;
}

@media (max-width: 980px) {
  .tire-calc-grid { grid-template-columns: 1fr; }
  .tire-calc-result-inner { position: static; }
}
@media (max-width: 640px) {
  .tire-calc { padding: 48px 0; }
  .tire-calc-form, .tire-calc-result-inner { padding: 20px; }
  .tire-calc-tab { font-size: 0.82rem; padding: 8px 14px; }
}

/* ── Hero страниц услуг: бенефиты слева, запись справа ───────────────────── */
.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  margin-top: 44px;
  text-align: left;
}
/* Страницы без бенефитов сохраняют прежний вид — кнопка и цена слева */
.hero-cta-row--plain { justify-content: flex-start; gap: 28px; flex-wrap: wrap; }

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.hero-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.hero-benefit-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-primary);
}
.hero-benefits strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
}
.hero-benefits em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 0.87rem;
  color: var(--color-muted);
  line-height: 1.45;
}

.hero-booking {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  flex-shrink: 0;
}
.hero-booking .btn { white-space: nowrap; }
.hero-booking-price {
  font-size: 0.95rem;
  color: var(--color-muted);
  white-space: nowrap;
}
.hero-booking-price strong {
  color: var(--color-text);
  font-size: 1.1rem;
}
/* Ряд без бенефитов: цена рядом с кнопкой, как было */
.hero-cta-row--plain .hero-booking { flex-direction: row; align-items: center; gap: 28px; }

@media (max-width: 1100px) {
  .hero-benefits { gap: 12px 20px; }
  .hero-benefits em { display: none; }   /* в тесном ряду остаются только заголовки */
}
@media (max-width: 900px) {
  .hero-cta-row {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 32px;
    margin-top: 36px;
  }
  .hero-benefits em { display: block; }
  .hero-booking {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
  }
}
@media (max-width: 700px) {
  .hero-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hero-benefits { grid-template-columns: 1fr; }
  .hero-booking { flex-direction: column; align-items: stretch; text-align: center; gap: 14px; }
  .hero-booking .btn { text-align: center; }
}

/* ═══════════════════════════════════════
   Модальная форма заявки (замена BookNow)
   ═══════════════════════════════════════ */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
/* display:flex перебивает атрибут hidden — возвращаем скрытие явно */
.lead-modal[hidden] { display: none !important; }
.lead-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.lead-modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 18px;
  padding: 32px 30px 28px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  animation: leadIn 0.22s var(--ease-smooth);
}
@keyframes leadIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.lead-modal-x {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.lead-modal-x:hover { background: var(--color-surface); color: var(--color-text); }
.lead-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 8px;
  padding-right: 30px;
}
.lead-modal-sub {
  font-size: 0.92rem;
  color: var(--color-body);
  line-height: 1.5;
  margin-bottom: 20px;
}
.lead-modal-form { display: flex; flex-direction: column; gap: 12px; }
.lead-modal-form input[type="text"],
.lead-modal-form input[type="tel"],
.lead-modal-form textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  transition: border-color 0.2s;
}
.lead-modal-form input:focus,
.lead-modal-form textarea:focus { outline: none; border-color: var(--color-primary); }
.lead-modal-form textarea { resize: vertical; min-height: 46px; }
.lead-modal-submit { width: 100%; margin-top: 4px; text-align: center; cursor: pointer; border: 0; }
.lead-modal-submit:disabled { opacity: 0.6; cursor: default; }
.lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead-modal-status { font-size: 0.86rem; line-height: 1.45; min-height: 1px; }
.lead-modal-status:empty { display: none; }
.lead-modal-status.is-ok  { color: #16a34a; }
.lead-modal-status.is-err { color: #dc2626; }
.lead-modal-consent { font-size: 0.74rem; color: var(--color-muted); line-height: 1.5; }

@media (max-width: 480px) {
  .lead-modal-card { padding: 26px 20px 22px; border-radius: 16px; }
  .lead-modal-title { font-size: 1.2rem; }
}

/* ═══════════════════════════════════════
   Универсальный калькулятор услуг (мойка, детейлинг)
   ═══════════════════════════════════════ */
.svc-calc { background: var(--color-surface); padding: 64px 0; scroll-margin-top: 90px; }
.svc-calc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
}
.svc-calc-item {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--color-body);
  cursor: pointer;
  line-height: 1.4;
  padding: 4px 0;
}
.svc-calc-item input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.svc-calc-price { font-weight: 700; color: var(--color-text); white-space: nowrap; }
.svc-calc-item.is-na { opacity: 0.4; cursor: default; }
.svc-calc-item.is-na input { cursor: default; }
@media (max-width: 760px) {
  .svc-calc-list { grid-template-columns: 1fr; }
}

/* Плитки типа кузова */
.svc-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-cat {
  font: inherit; font-size: 0.9rem; font-weight: 600;
  color: var(--color-body); background: var(--color-surface);
  border: 1px solid rgba(148,163,184,0.35); border-radius: var(--radius-pill);
  padding: 9px 18px; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.svc-cat:hover { border-color: rgba(66,128,223,0.5); }
.svc-cat.is-active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Комплексы — радио-карточки */
.svc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.svc-card {
  position: relative; display: flex; align-items: flex-start; gap: 12px;
  background: #fff; border: 2px solid rgba(148,163,184,0.28); border-radius: var(--radius);
  padding: 16px 16px 16px 15px; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.svc-card:hover { border-color: rgba(66,128,223,0.5); }
.svc-card input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--color-primary); flex-shrink: 0; cursor: pointer; }
.svc-card-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.svc-card-name { font-weight: 700; color: var(--color-text); font-size: 0.98rem; line-height: 1.25; }
.svc-card-desc { font-size: 0.82rem; color: var(--color-muted); line-height: 1.4; }
.svc-card-price { font-weight: 800; color: var(--color-primary); white-space: nowrap; font-size: 1.02rem; }
.svc-card:has(input:checked) { border-color: var(--color-primary); box-shadow: 0 8px 24px rgba(66,128,223,0.12); }
.svc-card.is-na { opacity: 0.45; cursor: default; }
.svc-card.is-na .svc-card-price { color: var(--color-muted); }

/* Свёрнутые доп-группы */
.svc-group { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(148,163,184,0.2); }
.svc-group summary { font-weight: 700; color: var(--color-text); cursor: pointer; font-size: 0.95rem; }
.svc-group[open] summary { color: var(--color-primary); margin-bottom: 14px; }

/* Панель «Стоимость» следует за скроллом */
.tire-calc-result { align-self: stretch; }

/* Опция одной строкой: чекбокс + текст + инфо-иконка */
.tire-calc-optline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--color-body);
  line-height: 1.45;
  cursor: pointer;
}
.tire-calc-optline > input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--color-primary); flex-shrink: 0; cursor: pointer; }
.tire-calc-optline > span { flex: 0 1 auto; }

/* Инфо-иконка с подсказкой */
.tire-calc-info {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border: 0; border-radius: 50%;
  background: var(--color-muted); color: #fff;
  font-size: 12px; font-weight: 700; font-style: italic;
  line-height: 18px; text-align: center; cursor: help;
  position: relative; padding: 0;
  font-family: Georgia, 'Times New Roman', serif;
}
.tire-calc-info:hover { background: var(--color-primary); }
.tire-calc-info::after {
  content: attr(data-tip);
  position: absolute;
  left: 0; top: calc(100% + 8px);
  width: 260px; max-width: 70vw;
  background: var(--color-text); color: #fff;
  font: 400 0.8rem/1.5 var(--font); font-style: normal;
  text-align: left; letter-spacing: 0;
  padding: 10px 12px; border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15,23,42,0.25);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 20; pointer-events: none;
}
.tire-calc-info:hover::after, .tire-calc-info:focus-visible::after { opacity: 1; visibility: visible; transform: none; }
/* На узком экране подсказка (скрытая, но занимающая место) вылезала вправо
   и давала горизонтальный скролл — прижимаем её правым краем к значку. */
@media (max-width: 760px) {
  .tire-calc-info::after { left: auto; right: 0; }
}

/* Допуслуги: ровное выравнивание строк по верху */
.tire-calc-extras .tire-calc-checks { align-items: start; }

/* Галочка согласия на обработку ПД (все формы) */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.45;
  margin: 6px 0 10px;
  cursor: pointer;
}
.form-consent input { margin-top: 2px; width: 15px; height: 15px; accent-color: var(--color-primary); flex-shrink: 0; cursor: pointer; }
.form-consent a { color: var(--color-primary); }

/* Страница политики обработки ПД */
.legal-body h2 { margin: 34px 0 12px; }
.legal-body p { color: var(--color-body); line-height: 1.7; margin-bottom: 12px; }
.legal-body .legal-list { margin: 6px 0 14px; padding-left: 22px; line-height: 1.8; color: var(--color-body); }
.legal-body .legal-list li { margin-bottom: 4px; }
.legal-body a { color: var(--color-primary); }

/* Доп-услуги / свёрнутые группы: без рамки, лёгкий фон-полутон для отделения */
.tire-calc-extras, .svc-group {
  margin-top: 18px;
  padding: 16px 18px;
  border: 0;
  border-top: 0;
  border-radius: var(--radius);
  background: rgba(148, 163, 184, 0.08);
}
.service-page .tire-calc-extras, .service-page .svc-group { border: 0; }

/* Сезонное хранение: чекбокс слева, срок справа (не в один столбец) */
.tire-calc-optrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  flex-wrap: wrap;
}
.tire-calc-optterm { display: flex; gap: 16px; flex-wrap: wrap; }
.tire-calc-optterm label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--color-body); cursor: pointer; }
.tire-calc-optterm input { width: 16px; height: 16px; accent-color: var(--color-primary); cursor: pointer; }

/* Кнопка «Маршрут» — залита акцентом, заметна без наведения */
.nav-route {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text) !important;
}
.nav-route svg { fill: var(--color-text); }
.nav-route:hover { background: var(--color-accent-light); border-color: var(--color-accent-light); color: var(--color-text) !important; }
.nav-light .nav-route, .hero-nav.nav-light .nav-route { border-color: var(--color-accent); color: var(--color-text) !important; }

/* Hero страницы услуг: текст + фото в два столбца, компактнее */
.uslugi-hero { padding: 40px 0 48px; text-align: left; }
.uslugi-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.uslugi-hero .heading-hero { max-width: none; margin: 12px 0 18px; }
.uslugi-hero .text-body { max-width: 560px; margin: 0; }
.uslugi-hero-media img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(15,23,42,0.16);
}
@media (max-width: 900px) {
  .uslugi-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .uslugi-hero-media img { height: 240px; }
}

/* Тело калькулятора: параметры работ слева, сезонное хранение — правой колонкой
   от самого верха (вровень с «Тип шины»). Когда хранение скрыто, левая часть
   занимает всю ширину сама — поэтому flex, а не grid с фиксированными колонками. */
.tire-calc-body {
  display: flex;
  align-items: flex-start;
  gap: 16px 28px;
}
.tire-calc-body-main { flex: 1 1 auto; min-width: 0; }
/* Наценка за внедорожные шины — не впритык к полю «Количество колёс» */
.tire-calc-body-main > #calcAtWrap { margin-top: 18px; }
.tire-calc-body > #calcStorageAddon {
  flex: 0 0 clamp(200px, 32%, 260px);
  margin-bottom: 0;
}
@media (max-width: 640px) {
  .tire-calc-body { display: block; }
  .tire-calc-body > #calcStorageAddon { margin-top: 20px; }
}

/* Доп-услуги: раскладка колонками — строки не «прыгают», выглядит ровно */
.svc-calc-list,
.tire-calc-extras .tire-calc-checks {
  display: block;
  column-count: 2;
  column-gap: 28px;
}
.svc-calc-item,
.tire-calc-extras .tire-calc-checks > label {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 9px;
}
@media (max-width: 700px) {
  .svc-calc-list,
  .tire-calc-extras .tire-calc-checks { column-count: 1; }
}

/* Кнопка «Маршрут»: надписи внутри белым */
.nav-route, .nav-route:hover,
.nav-light .nav-route, .hero-nav.nav-light .nav-route { color: #fff !important; }
.nav-route svg { fill: #fff; }

/* Счётчик количества у штучных услуг: отдельной строкой под названием.
   .tire-calc-checks label задаёт flex и перебивает .svc-calc-item по специфичности —
   поэтому раскладку строки задаём с тем же весом. */
.svc-calc-list .svc-calc-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: start;
  gap: 6px 10px;
}
.svc-qty { grid-column: 2 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 6px; }
.svc-qty[hidden] { display: none; }
.svc-qty-btn {
  width: 26px; height: 26px; padding: 0;
  border: 1px solid rgba(148,163,184,0.4); background: #fff; border-radius: 7px;
  font-size: 17px; line-height: 1; color: var(--color-text); cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.svc-qty-btn:hover { border-color: var(--color-primary); background: rgba(66,128,223,0.06); }
.svc-qty-val { width: 32px; text-align: center; border: 0; background: transparent; font: inherit; font-weight: 700; color: var(--color-text); padding: 0; }

/* Страницы-калькуляторы: блок ссылок на услуги раздела */
.calc-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.calc-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.07);
  border-radius: 16px;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.calc-link:hover {
  border-color: rgba(66,128,223,0.35);
  box-shadow: 0 18px 40px rgba(15,23,42,0.10);
  transform: translateY(-2px);
}
.calc-link-title { font-weight: 700; color: var(--color-text); }
.calc-link-desc { font-size: 0.88rem; line-height: 1.55; color: var(--color-muted); }
.calc-link-price { margin-top: auto; font-weight: 700; color: var(--color-primary); }

/* Голая страница калькулятора (/kalkulyator/) — для быстрой отправки клиенту */
.calc-only-top {
  background: #fff;
  border-bottom: 1px solid rgba(15,23,42,0.07);
  padding: 14px 0 18px;
}
.calc-only-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.calc-only-logo { display: block; color: var(--color-text); }
.calc-only-logo svg { height: 42px; width: auto; display: block; }
.calc-only-phone { font-weight: 700; color: var(--color-text); white-space: nowrap; }
.calc-only-tabs { margin-top: 16px; }
.calc-only .tire-calc,
.calc-only .svc-calc { padding: 28px 0 44px; }
.calc-only .tire-calc-grid { margin-top: 0; }
@media (max-width: 520px) {
  .calc-only-phone { font-size: 0.9rem; }
  .calc-only-logo svg { height: 34px; }
}

/* ── Тёмная тема (переключатель на /kalkulyator/) ──────────────────────────
   Атрибут ставится на <html>, поэтому правила легко распространить на весь
   сайт, если понадобится. Здесь — палитра + те места, где белый вбит руками. */
html[data-theme="dark"] {
  --color-bg: #0B1120;
  --color-surface: #131F36;
  --color-text: #E8EDF6;
  --color-body: #C3CEDF;
  --color-muted: #8FA0B8;
  --color-primary: #7FA9EC;
  /* color-scheme: dark не ставим: Chrome красит галочки и радио в грязно-бежевый,
     светлые контролы на тёмной карточке читаются лучше. */
}
html[data-theme="dark"] .calc-only-top,
html[data-theme="dark"] .tire-calc-form,
html[data-theme="dark"] .tire-calc-result-inner,
html[data-theme="dark"] .svc-card,
html[data-theme="dark"] .svc-qty-btn {
  background: #18253E;
  border-color: rgba(148,163,184,0.22);
}
html[data-theme="dark"] .calc-only-top { border-bottom-color: rgba(148,163,184,0.18); }
html[data-theme="dark"] .tire-calc-input { background: #0F1A2E; border-color: rgba(148,163,184,0.28); }
html[data-theme="dark"] .tire-calc-input::placeholder { color: #6F7F97; }
html[data-theme="dark"] .svc-cat.is-active { color: #0B1120; }
html[data-theme="dark"] .svc-card.is-na { opacity: 0.35; }
html[data-theme="dark"] .tire-calc-info { background: #5A6B87; color: #fff; }
/* Подсказка: на тёмной теме фон брали из --color-text, который здесь светлый,
   и белый текст на нём пропадал. */
html[data-theme="dark"] .tire-calc-info::after {
  background: #1E2C48;
  color: #E8EDF6;
  border: 1px solid rgba(148,163,184,0.28);
  box-shadow: 0 16px 36px rgba(0,0,0,0.55);
}

/* Кнопка переключения темы */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(148,163,184,0.35);
  background: transparent;
  color: var(--color-body);
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.theme-toggle:hover { color: var(--color-primary); border-color: var(--color-primary); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.calc-only-actions { display: flex; align-items: center; gap: 14px; }

/* Телефон: длинные плитки калькуляторa не должны ломаться на строки.
   «Внедорожник, кроссовер, микроавтобус» — в одну строку с запасом;
   девять радиусов — ровно в два ряда (5 + 4). */
@media (max-width: 560px) {
  #calcVehicle .svc-cat {
    font-size: clamp(0.58rem, 2.85vw, 0.9rem);
    padding: 8px 11px;
    white-space: nowrap;
  }
  #calcRadius .svc-cat {
    font-size: clamp(0.66rem, 3vw, 0.85rem);
    padding: 7px 11px;
    white-space: nowrap;
  }
  #calcRadius.svc-cats { gap: 7px; }
  /* на телефоне показываем радиус без «R» — подпись группы и так говорит, что это радиус */
  #calcRadius .rad-full { display: none; }
  #calcRadius .rad-short { display: inline; }
}

/* Короткая подпись радиуса — только на телефоне (см. медиазапрос выше) */
.rad-short { display: none; }

/* Телефон и часы работы в шапке — перед кнопкой «Маршрут» */
.nav-contact {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
  white-space: nowrap;
}
.nav-contact { transition: color 0.25s ease; }
.nav-contact strong { font-size: 0.95rem; font-weight: 800; letter-spacing: -0.2px; }
.nav-contact span { font-size: 0.7rem; font-weight: 500; opacity: 0.62; }
.hero-nav-links .nav-contact { color: #fff; }
.nav-light .hero-nav-links .nav-contact { color: var(--color-text); }
.nav-light .hero-nav-links .nav-contact:hover { color: var(--color-primary); }
/* Плотнее только на узком десктопе: ниже 768 работает выдвижная панель,
   и этот gap ломал бы ей вертикальный ритм. */
@media (max-width: 1200px) and (min-width: 769px) {
  .hero-nav-links { gap: 22px; }
  .nav-contact strong { font-size: 0.88rem; }
}

/* «Подробнее об услуге» под липкой кнопкой «Записаться»: пока та наезжает,
   ссылку прячем (класс вешает скрипт на /uslugi/). */
.service-card-more {
  margin-top: 16px;
  padding: 0 32px 24px;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}
.service-card-more.is-hidden { opacity: 0; visibility: hidden; }

/* Выбор даты и свободного времени (данные из API Автотеха) */
.booking-pick { margin: 4px 0 14px; }
.booking-pick.is-off { display: none; }
.booking-days,
.booking-times { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.booking-times {
  max-height: 132px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) transparent;
  /* обрезанные сверху и снизу ряды растворяем, иначе выглядят «отрубленными» */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.booking-times::-webkit-scrollbar { width: 2px; }
.booking-times::-webkit-scrollbar-track { background: transparent; }
.booking-times::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 2px; }
.booking-day,
.booking-slot {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-body);
  background: var(--color-surface);
  border: 1px solid rgba(148,163,184,0.35);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
/* Выбранный день крупный, остальные — мельче и бледнее: блок из четырнадцати
   дат иначе занимает пол-формы. */
.booking-day:not(.is-active) {
  font-size: 0.71rem;
  padding: 4px 10px;
  color: var(--color-muted);
  background: transparent;
  border-color: rgba(148,163,184,0.28);
}
.booking-days { align-items: center; }
.booking-day:hover,
.booking-slot:hover { border-color: rgba(66,128,223,0.5); }
.booking-day:not(.is-active):hover { color: var(--color-body); }
.booking-day.is-active,
.booking-slot.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.booking-note { margin-top: 8px; font-size: 0.76rem; line-height: 1.45; color: var(--color-muted); }
.booking-note:empty { display: none; }
html[data-theme="dark"] .booking-day,
html[data-theme="dark"] .booking-slot { background: #0F1A2E; border-color: rgba(148,163,184,0.28); }
html[data-theme="dark"] .booking-day:not(.is-active) { background: transparent; }

html[data-theme="dark"] .booking-day.is-active,
html[data-theme="dark"] .booking-slot.is-active { background: var(--color-primary); color: #0B1120; }

/* Марка и модель — два поля в ряд перед выбором кузова */
.car-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; position: relative; }
/* Сброс пары «марка + модель»: стирать вручную и переучивать подсказки долго */
.car-pick-reset {
  position: absolute;
  top: 0;
  right: 0;
  display: none;
  padding: 0 2px;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}
.car-pick-reset.is-on { display: inline-block; }
.car-pick-reset:hover { color: var(--color-primary); }
.car-pick .tire-calc-input { max-width: 100%; margin-bottom: 0; }
.car-pick .tire-calc-label { display: block; margin-bottom: 8px; }
@media (max-width: 420px) { .car-pick { grid-template-columns: 1fr; } }

/* Заголовок голой страницы калькулятора */
.calc-only-title { margin-top: 14px; font-size: 1.12rem; font-weight: 700; color: var(--color-text); }

/* H1 главной — поверх видео, у верхнего края: имя бренда и чем занимаемся */
.hero-h1 {
  position: absolute;
  top: calc(var(--nav-h) + 10px);
  left: 40px;
  z-index: 5;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 18px rgba(0,0,0,0.45);
  pointer-events: none;
}
@media (max-width: 900px) {
  .hero-h1 { left: 20px; right: 20px; font-size: 0.95rem; }
}

/* ── Автосервис: перечни работ и перелинковка ─────────────────────────────── */
.as-group-title {
  margin: 28px 0 12px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-text);
}
.as-works {
  list-style: none;
  column-count: 2;
  column-gap: 34px;
}
.as-works li {
  break-inside: avoid;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 5px 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-body);
  border-bottom: 1px solid rgba(148,163,184,0.14);
}
.as-works li a { color: var(--color-primary); font-weight: 600; }
.as-works li a:hover { text-decoration: underline; }
.as-works li b { font-weight: 700; color: var(--color-text); white-space: nowrap; }
@media (max-width: 760px) { .as-works { column-count: 1; } }

.as-related { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.as-related a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-body);
  background: #fff;
  border: 1px solid rgba(148,163,184,0.3);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  transition: border-color 0.18s, color 0.18s;
}
.as-related a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.as-related .as-related-all { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
html[data-theme="dark"] .as-related a { background: #18253E; }

/* ── Калькулятор автосервиса ──────────────────────────────────────────────
   Отбор в два шага: раздел → узел. Строки компактные, в две колонки,
   список ограничен по высоте — иначе на «Двигателе» это простыня. */
.as-cats { margin-bottom: 8px; gap: 6px; }
.as-cats .svc-cat { font-size: 0.82rem; padding: 7px 14px; }
.as-subcats { gap: 6px; }
.as-subcat { font-size: 0.78rem !important; padding: 6px 12px !important; display: inline-flex; align-items: center; gap: 7px; }
.as-subcat-count { font-size: 0.7rem; opacity: 0.6; }

.as-calc-list { margin-top: 6px; }
.as-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 18px;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}
.as-rows::-webkit-scrollbar { width: 2px; }
.as-rows::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 2px; }
@media (max-width: 900px) { .as-rows { grid-template-columns: 1fr; max-height: 300px; } }

.as-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--color-body);
  transition: background 0.15s;
}
.as-row:hover { background: rgba(66,128,223,0.06); }
.as-row.is-on { background: rgba(66,128,223,0.1); color: var(--color-text); }
.as-row input { margin: 0; width: 15px; height: 15px; accent-color: var(--color-primary); flex-shrink: 0; }
.as-row-name { flex: 1; min-width: 0; }
.as-row-cap { display: block; font-size: 0.7rem; font-style: normal; color: var(--color-muted); }
.as-row-price { font-size: 0.78rem; font-weight: 600; color: var(--color-muted); white-space: nowrap; }
.as-row.is-on .as-row-price { color: var(--color-primary); }
.as-rows-note { margin-top: 8px; font-size: 0.76rem; color: var(--color-muted); }

.as-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.as-quick-btn {
  display: inline-flex; align-items: baseline; gap: 8px;
  font: inherit; font-size: 0.78rem; font-weight: 600;
  color: var(--color-body); background: var(--color-surface);
  border: 1px solid rgba(148,163,184,0.3); border-radius: var(--radius-pill);
  padding: 6px 13px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.as-quick-btn b { font-weight: 700; font-size: 0.72rem; color: var(--color-muted); }
.as-quick-btn:hover { border-color: var(--color-primary); }
.as-quick-btn.is-on { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.as-quick-btn.is-on b { color: rgba(255,255,255,0.8); }

.as-line { position: relative; padding-left: 22px; }
.as-line-del {
  position: absolute; left: 0; top: 1px;
  width: 16px; height: 16px; padding: 0; line-height: 14px;
  border: 0; border-radius: 50%; background: rgba(148,163,184,0.18);
  color: var(--color-muted); font-size: 13px; cursor: pointer;
}
.as-line-del:hover { background: var(--color-primary); color: #fff; }
html[data-theme="dark"] .as-quick-btn { background: #0F1A2E; }

/* Автосервис: перечень работ компактнее и группами, которые можно свернуть */
.as-group { margin-bottom: 14px; border-bottom: 1px solid rgba(148,163,184,0.16); }
.as-group summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 12px 0; cursor: pointer; list-style: none;
}
.as-group summary::-webkit-details-marker { display: none; }
.as-group summary::after { content: '▾'; color: var(--color-muted); font-size: 0.8rem; }
.as-group[open] summary::after { content: '▴'; }
.as-group summary .as-group-title { margin: 0; font-size: 1rem; font-weight: 700; color: var(--color-text); }
.as-group-count { font-size: 0.78rem; font-weight: 600; color: var(--color-muted); margin-left: auto; }
.as-group .as-works { column-count: 3; column-gap: 28px; padding-bottom: 14px; }
.as-group .as-works li { padding: 3px 0; font-size: 0.85rem; border-bottom: 0; gap: 10px; }
.as-group .as-works li b { font-size: 0.8rem; font-weight: 600; color: var(--color-muted); }
@media (max-width: 1000px) { .as-group .as-works { column-count: 2; } }
@media (max-width: 640px)  { .as-group .as-works { column-count: 1; } }
.as-benefits { margin-top: 22px; }

/* Свободное описание проблемы в калькуляторе автосервиса */
.as-comment {
  min-height: 84px;
  resize: vertical;
  line-height: 1.45;
  font-size: 0.9rem;
  padding: 11px 14px;
  margin-bottom: 6px;
}
.as-comment-hint {
  margin: 0 0 12px;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--color-muted);
}

/* ═══════════════════════════════════════
   Липкая карточка записи на страницах услуг (десктоп)
   Справа от текста остаётся широкое поле — пока листаешь страницу,
   кнопка из hero превращается в короткую форму и едет вместе со скроллом.
   ═══════════════════════════════════════ */
.svc-dock {
  position: fixed;
  z-index: 900;
  top: calc(var(--nav-h) + 20px);
  right: max(40px, calc((100vw - var(--max-width)) / 2 + 40px));
  width: 320px;
  padding: 22px 22px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 26px 60px rgba(15,23,42,0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px) scale(0.96);
  transform-origin: top right;
  transition: opacity 0.3s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.3s;
}
.svc-dock.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.svc-dock-title { font-size: 1.1rem; font-weight: 800; color: var(--color-text); }
.svc-dock-service { margin-top: 2px; font-size: 0.88rem; color: var(--color-body); }
.svc-dock-price { margin: 10px 0 16px; font-size: 0.9rem; color: var(--color-muted); }
.svc-dock-price strong { font-size: 1.15rem; color: var(--color-text); }
.svc-dock .tire-calc-label { display: block; margin-bottom: 4px; }
.svc-dock .tire-calc-input { margin-bottom: 12px; }
.svc-dock .form-consent { margin: 2px 0 14px; }
.svc-dock-submit { width: 100%; justify-content: center; }
.svc-dock-status:empty { display: none; }
.svc-dock-phone {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.svc-dock-phone b { color: var(--color-primary); }

/* Шапка сжалась — карточка поднимается за ней */
body.is-scrolled .svc-dock { top: 76px; }

/* Узкий экран: справа места нет, работает обычная кнопка «Записаться» */
@media (max-width: 1199px) {
  .svc-dock { display: none; }
}

/* ═══════════════════════════════════════
   Сжатая шапка при прокрутке (десктоп)
   Ниже первого экрана шапка мешает смотреть контент: ужимаем высоту,
   убираем часы работы, «Маршрут» превращаем в круглую иконку.
   На мобиле шапка и так компактная — там не трогаем.
   ═══════════════════════════════════════ */
@media (min-width: 769px) {
  /* Одна кривая на все свойства, чтобы части шапки ехали синхронно, а не вразнобой. */
  .hero-nav { transition: padding 0.42s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease; }

  /* Пункты меню тоже ужимаются — кегль и просветы на той же кривой */
  .hero-nav-links { transition: gap 0.42s cubic-bezier(0.4, 0, 0.2, 1); }
  .hero-nav-links > a:not(.nav-contact):not(.nav-route),
  .hero-nav-links .nav-dropdown-trigger {
    transition: color 0.25s ease, font-size 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .hero-nav.is-compact .hero-nav-links { gap: 26px; }
  .hero-nav.is-compact .hero-nav-links > a:not(.nav-contact):not(.nav-route),
  .hero-nav.is-compact .hero-nav-links .nav-dropdown-trigger { font-size: 0.83rem; }
  .hero-logo { transition: height 0.42s cubic-bezier(0.4, 0, 0.2, 1); }
  .nav-contact strong { transition: font-size 0.42s cubic-bezier(0.4, 0, 0.2, 1); }

  /* Часы работы не выключаем, а сворачиваем — иначе телефон дёргается вверх */
  .nav-contact span {
    display: block;
    max-height: 1.6em;
    overflow: hidden;
    transition: max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.22s ease 0.1s;
  }
  .hero-nav.is-compact .nav-contact span {
    max-height: 0;
    opacity: 0;
    transition-delay: 0s, 0s;
  }

  /* «Маршрут»: подпись уезжает по ширине, кнопка стягивается в круг */
  .nav-route {
    transition: width 0.42s cubic-bezier(0.4, 0, 0.2, 1), height 0.42s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.42s cubic-bezier(0.4, 0, 0.2, 1), gap 0.42s cubic-bezier(0.4, 0, 0.2, 1),
                border-radius 0.42s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.25s, background 0.25s, color 0.25s;
  }
  .nav-route span {
    display: inline-block;
    vertical-align: middle;   /* inline-block по базовой линии добавлял кнопке пару пикселей */
    max-width: 140px;
    max-height: 2.4em;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.42s cubic-bezier(0.4, 0, 0.2, 1),
                max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.22s ease 0.1s;
  }
  .nav-route svg { transition: width 0.42s cubic-bezier(0.4, 0, 0.2, 1), height 0.42s cubic-bezier(0.4, 0, 0.2, 1); }

  .hero-nav.is-compact { padding-top: 10px; padding-bottom: 10px; }
  .hero-nav.is-compact .hero-logo { height: 28px; }
  .hero-nav.is-compact .nav-contact strong { font-size: 0.88rem; }
  /* Ширину не фиксируем: от auto к px переход не анимируется и кнопка
     схлопывалась рывком. Размер задают отступы и свёрнутая подпись. */
  .hero-nav.is-compact .nav-route {
    padding: 7px;   /* по вертикали столько же, сколько в полной шапке: иначе кнопка
                       успевает подрасти, прежде чем подпись свернётся */
    gap: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .hero-nav.is-compact .nav-route span {
    max-width: 0;
    max-height: 0;      /* иначе строка держит высоту и «круг» выходит овалом */
    opacity: 0;
    transition-delay: 0s, 0s, 0s;
  }
  .hero-nav.is-compact .nav-route svg { width: 16px; height: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-nav, .hero-logo, .nav-contact strong, .nav-contact span,
  .nav-route, .nav-route span, .nav-route svg { transition-duration: 0.01ms !important; }
}

/* ═══════════════════════════════════════
   Полоса прокрутки в фирменных цветах
   Тоньше стандартной; по ходу страницы градиент переливается
   из оранжевого в синий и обратно — как дуги в логотипе.
   Положение градиента двигает nav.js (--sb-pos).
   ═══════════════════════════════════════ */
/* Системную полосу убираем совсем: она резервирует колонку справа, и на
   тёмных блоках эта колонка светилась белым. Вместо неё — свой ползунок
   поверх контента: фона нет, фирменный градиент, виден только при прокрутке. */
html { scrollbar-width: none; }
html::-webkit-scrollbar { width: 0; height: 0; }

.sb {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 12px;
  z-index: 2000;
  pointer-events: none;      /* ловит события только сам ползунок */
}
.sb-thumb {
  position: absolute;
  right: 3px;
  width: 6px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: auto;
  cursor: grab;
  background-image: linear-gradient(180deg,
    #f6ae30 0%, #f2b449 14%, #8aa0d8 34%,
    #4280df 48%, #6fb2ff 55%, #4280df 62%,
    #8aa0d8 76%, #f2b449 90%, #f6ae30 100%);
  background-size: 100% 300%;
  background-position: 0 var(--sb-pos, 0%);
}
.sb-thumb:active { cursor: grabbing; }
@media (max-width: 768px) { .sb { display: none; } }   /* на телефоне полоса и так плавающая */

/* Фотографии АвтоСПА: сравнение результата и переходы между направлениями. */
.visual-showcase {
  padding: 76px 0 84px;
  background: #eef3f8;
}
.visual-showcase-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 26px;
}
.visual-showcase-head .label-upper { margin-bottom: 13px; }
.visual-showcase-head .text-body { max-width: 580px; }
.visual-showcase-stage {
  overflow: hidden;
  border-radius: 22px;
  background: #071626;
  box-shadow: 0 24px 60px rgba(12, 31, 54, .14);
}
.ba-compare {
  --ba-position: 50%;
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 2.15 / 1;
  background: #0c1724;
  isolation: isolate;
}
.ba-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.ba-image-after { clip-path: inset(0 0 0 var(--ba-position)); }
.ba-tag {
  position: absolute;
  bottom: 18px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(5, 17, 30, .8);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba-tag-before { left: 18px; }
.ba-tag-after { right: 18px; }
.ba-divider {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: var(--ba-position);
  width: 2px;
  transform: translateX(-1px);
  background: #fff;
  pointer-events: none;
}
.ba-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.45rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .28);
}
.ba-range {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  touch-action: none;
}
.ba-compare:focus-within { outline: 3px solid var(--color-primary); outline-offset: 3px; }
.visual-showcase-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 23px;
  color: #cbd8e9;
  font-size: .88rem;
}
.visual-showcase-caption a { color: #fff; font-weight: 700; }
.visual-showcase-caption a:hover { color: var(--color-accent); }
.visual-showcase-note,
.review-visual-note {
  margin-top: 12px;
  color: #617188;
  font-size: .75rem;
  line-height: 1.5;
}
.visual-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin-top: 30px;
}
.visual-link {
  position: relative;
  display: block;
  min-height: 185px;
  overflow: hidden;
  border-radius: 16px;
  background: #10233b;
  color: #fff;
  isolation: isolate;
}
.visual-link img,
.visual-link-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.visual-link img { object-fit: cover; transition: transform .45s var(--ease-smooth); }
.visual-link:hover img { transform: scale(1.06); }
.visual-link-shade { background: linear-gradient(0deg, rgba(2, 13, 27, .88), rgba(2, 13, 27, .2) 78%); }
.visual-link-copy { position: absolute; z-index: 1; left: 21px; right: 65px; bottom: 20px; }
.visual-link-copy strong { display: block; font-size: 1.2rem; line-height: 1.2; }
.visual-link-copy small { display: block; margin-top: 5px; color: #d6e0ea; font-size: .75rem; line-height: 1.35; }
.visual-link-arrow {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 21px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #071626;
  font-size: 1.15rem;
  font-weight: 700;
}
.visual-link.is-current { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.reviews-grid--with-visual { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.review-card--visual { grid-column: auto; display: flex; flex-direction: column; min-width: 0; }
.reviews-grid--page .review-card { opacity: 1; transform: none; }
.review-source { display: inline-block; margin-top: 12px; color: var(--color-primary); font-size: .82rem; font-weight: 700; }
.review-source:hover { text-decoration: underline; }
.review-summary-label { margin-bottom: 8px; color: var(--color-muted); font-size: .73rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.review-visual-title { margin-top: auto; padding-top: 22px; color: var(--color-text); font-size: .84rem; font-weight: 700; }
.review-card--visual .ba-compare { width: 100%; max-width: none; margin-top: 12px; border-radius: 12px; aspect-ratio: 1.6 / 1; }
.ba-compare--interior .ba-image { object-position: center 65%; }

@media (max-width: 900px) {
  .visual-showcase-head { grid-template-columns: 1fr; gap: 15px; }
  .visual-links { gap: 11px; }
  .visual-link { min-height: 155px; }
  .visual-link-copy { left: 14px; right: 43px; bottom: 14px; }
  .visual-link-copy strong { font-size: 1rem; }
  .visual-link-arrow { right: 13px; bottom: 13px; width: 28px; height: 28px; }
}
@media (max-width: 640px) {
  .visual-showcase { padding: 54px 0 62px; }
  .ba-compare { aspect-ratio: 1.25 / 1; }
  .visual-showcase-caption { align-items: flex-start; flex-direction: column; gap: 6px; padding: 14px 16px; }
  .visual-links { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .visual-link { min-height: 145px; }
  .reviews-grid--with-visual { grid-template-columns: 1fr; }
  .review-card--visual { grid-column: auto; }
  .review-card--visual .ba-compare { aspect-ratio: 1.3 / 1; }
  .ba-divider span { width: 44px; height: 44px; }
}

/* ═══════════════════════════════════════
   Виджет «Очередь сейчас» (includes/queue-widget.php) — приборная панель внизу справа.
   Шкала: заполнение дуги = загрузка постов, цвет = состояние очереди.
   ═══════════════════════════════════════ */
.qw {
  --qw-ok: #22A06B;
  --qw-mid: var(--color-accent);
  --qw-busy: #E5484D;
  --qw-state: var(--qw-ok);
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 950;
  font-family: var(--font);
}
.qw { transition: bottom 0.35s var(--ease-smooth); }
.qw[data-level="mid"] { --qw-state: var(--qw-mid); }
.qw[data-level="busy"] { --qw-state: var(--qw-busy); }
.qw-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--qw-state);
  box-shadow: 0 0 0 0 var(--qw-state);
  animation: qw-pulse 2.4s ease-out infinite;
  flex: none;
}
@keyframes qw-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--qw-state) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 9px transparent; }
}
.qw-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border: 0; border-radius: var(--radius-pill);
  background: #0F172A; color: #fff;
  font: 700 0.92rem/1 var(--font);
  box-shadow: 0 14px 34px rgba(15,23,42,0.28);
  cursor: pointer;
  transition: transform 0.25s var(--ease-smooth), opacity 0.2s ease;
}
.qw-pill:hover { transform: translateY(-2px); }
.qw-pill:focus-visible, .qw-btn:focus-visible, .qw-close:focus-visible { outline: 3px solid var(--color-primary-light); outline-offset: 2px; }
.qw.is-open .qw-pill { opacity: 0; pointer-events: none; transform: scale(0.9); }
.qw-panel {
  position: absolute; right: 0; bottom: 0;
  width: 368px;
  padding: 18px 18px 14px;
  border-radius: 22px;
  background: radial-gradient(120% 90% at 50% 0%, #1E2A44 0%, #0F172A 70%);
  color: #E8EDF6;
  box-shadow: 0 30px 70px rgba(15,23,42,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
  opacity: 0; visibility: hidden;
  transform: translateY(12px) scale(0.96); transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.4s var(--ease-smooth), visibility 0s linear 0.25s;
}
.qw.is-open .qw-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.qw-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.qw-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.01em; }
.qw-close {
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: #C3CEDF; font-size: 20px; line-height: 1; cursor: pointer;
}
.qw-gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qw-gauge {
  --g: var(--qw-ok);
  position: relative; min-width: 0;
  padding: 10px 8px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  text-align: center;
}
.qw-gauge[data-level="mid"] { --g: var(--qw-mid); }
.qw-gauge[data-level="busy"] { --g: var(--qw-busy); }
.qw-gauge svg { display: block; width: 100%; max-width: 132px; margin: 0 auto; }
.qw-arc-bg, .qw-arc { fill: none; stroke-width: 9; stroke-linecap: round; }
.qw-arc-bg { stroke: rgba(255,255,255,0.1); }
.qw-arc {
  stroke: var(--g);
  stroke-dasharray: 100; stroke-dashoffset: 100;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--g) 60%, transparent));
  transition: stroke-dashoffset 0.9s var(--ease-smooth), stroke 0.3s ease;
}
.qw-value { margin-top: -30px; display: flex; flex-direction: column; align-items: center; }
.qw-value b { font-size: 2rem; line-height: 1; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.qw-value span { margin-top: 3px; font-size: 0.7rem; color: #8FA0B8; }
.qw-label { margin-top: 8px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #C3CEDF; }
.qw-note { margin-top: 4px; font-size: 0.8rem; font-weight: 600; color: var(--g); }
.qw-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.qw-btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 10px;
  border-radius: 12px;
  font-weight: 700; font-size: 0.86rem; text-align: center; text-decoration: none; white-space: nowrap;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.qw-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.qw-btn-route { background: var(--color-accent); color: #0F172A; }
.qw-btn-book { background: var(--color-primary); color: #fff; }
.qw-foot { margin-top: 10px; font-size: 0.7rem; color: #8FA0B8; text-align: center; }
@media (max-width: 480px) {
  .qw { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .qw-panel { width: calc(100vw - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  .qw-dot { animation: none; }
  .qw-pill, .qw-panel, .qw-arc { transition: none; }
}
