/* ==========================================================================
   Анапа-Сервис — премиальная витрина сервисного центра
   Дизайн-система: выразительная типографика, спокойная иерархия, точные
   отступы, атмосферный герой и осмысленный motion.
   ========================================================================== */

:root {
  /* Типографика */
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Unbounded', 'Manrope', sans-serif;

  /* Бренд */
  --brand: #e85d1f;
  --brand-strong: #d24d13;
  --brand-soft: rgba(232, 93, 31, 0.1);
  --brand-line: rgba(232, 93, 31, 0.22);

  /* Светлая палитра — тёплый графит на мягком не плоском фоне */
  --bg: #f6f5f3;
  --bg-tint-1: rgba(232, 93, 31, 0.06);
  --bg-tint-2: rgba(24, 26, 32, 0.035);
  --surface: #ffffff;
  --surface-2: #fbfaf8;
  --ink: #16181d;
  --ink-soft: #3b3f48;
  --muted: #6b6f7a;
  --border: rgba(22, 24, 29, 0.1);
  --border-strong: rgba(22, 24, 29, 0.16);
  --success: #2f9e57;
  --danger: #d0402f;

  /* Геометрия */
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-btn: 12px;
  --header-h: 76px;

  /* Тени — одинарные, мягкие, без многослойности */
  --shadow: 0 18px 48px -24px rgba(20, 22, 28, 0.35);
  --shadow-sm: 0 10px 26px -18px rgba(20, 22, 28, 0.28);

  /* Движение */
  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
  --transition: 0.4s var(--ease);

  /* Тёмный графитовый герой — единый вне зависимости от темы */
  --hero-bg: #0e0f13;
  --hero-ink: #f4f2ee;
  --hero-muted: #a7a9b2;
  --hero-line: rgba(255, 255, 255, 0.12);

  /* Доступность — контрастные токены действий и фокуса (WCAG AA) */
  --action-text: #ad3f0a;
  --action-surface: #bd4708;
  --action-surface-hover: #a63b00;
  --text-muted: #6e6e73;
  --focus-ring: #ad3f0a;
}

[data-theme='dark'] {
  --bg: #0c0d11;
  --bg-tint-1: rgba(232, 93, 31, 0.1);
  --bg-tint-2: rgba(255, 255, 255, 0.02);
  --surface: #16181d;
  --surface-2: #1b1e24;
  --ink: #f4f2ee;
  --ink-soft: #d3d5da;
  --muted: #9b9ea8;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 22px 60px -28px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 12px 30px -20px rgba(0, 0, 0, 0.6);

  --action-text: #ff9a62;
  --action-surface: #bd4708;
  --action-surface-hover: #a63b00;
  --text-muted: #b2b2b7;
  --focus-ring: #ff9a62;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 88% -8%, var(--bg-tint-1), transparent 60%),
    radial-gradient(900px 700px at -6% 12%, var(--bg-tint-2), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
iframe {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Доступность — заметный фокус и skip-link */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 400;
  transform: translateY(-160%);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1200px, calc(100% - clamp(32px, 6vw, 96px)));
  margin-inline: auto;
}

/* ============================ Кнопки ============================ */
.btn {
  --btn-min: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: var(--btn-min);
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background var(--transition),
    border-color var(--transition), color var(--transition);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-strong);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn--sm {
  min-height: 42px;
  padding: 9px 18px;
  font-size: 0.9rem;
}

.btn--lg {
  min-height: 54px;
  padding: 16px 30px;
  font-size: 1.02rem;
}

.btn--block {
  width: 100%;
}

.btn__icon {
  width: 18px;
  height: 18px;
}

/* Ссылка-стрелка */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand);
  font-weight: 600;
  transition: gap 0.25s var(--ease);
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover {
  gap: 10px;
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ============================ Шапка ============================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: height var(--transition), border-color var(--transition),
    background var(--transition), transform var(--transition);
}

.header.is-scrolled {
  height: 62px;
  border-bottom-color: var(--border);
}

.header.is-hidden {
  transform: translateY(calc(-100% - 4px));
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 100%;
}

/* Логотип — бренд как сигнал hero-уровня */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo__mark {
  height: 34px;
  width: auto;
  flex-shrink: 0;
}

.logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo__name {
  color: var(--ink);
}

.logo__accent {
  color: var(--brand);
}

.logo--footer .logo__mark {
  height: 40px;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav__link {
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 0;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--ink);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition),
    transform 0.2s var(--ease);
}

.icon-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.icon-btn:active {
  transform: scale(0.95);
}

.theme-toggle__icon {
  width: 19px;
  height: 19px;
}

.theme-toggle__icon--moon {
  display: none;
}

[data-theme='dark'] .theme-toggle__icon--sun {
  display: none;
}

[data-theme='dark'] .theme-toggle__icon--moon {
  display: block;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.burger span {
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.burger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 12px clamp(16px, 5vw, 32px) 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav__link {
  padding: 15px 6px;
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
}

.mobile-nav .btn {
  margin-top: 10px;
}

/* ============================ Герой ============================ */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  padding: clamp(56px, 9vw, 104px) 0 clamp(64px, 10vw, 120px);
  color: var(--hero-ink);
  background: var(--hero-bg);
  overflow: hidden;
}

/* Полноэкранная атмосферная плоскость */
.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 120% at 78% 18%, rgba(232, 93, 31, 0.42), transparent 46%),
    radial-gradient(90% 90% at 12% 92%, rgba(232, 93, 31, 0.14), transparent 50%),
    linear-gradient(160deg, #14161c 0%, #0e0f13 55%, #0a0b0e 100%);
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image:
    linear-gradient(var(--hero-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-line) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(115% 100% at 70% 30%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(115% 100% at 70% 30%, #000 25%, transparent 78%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  width: 100%;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hero-muted);
  margin: 0 0 22px;
}

.hero__kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--brand);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.3rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}

.hero__title em {
  font-style: normal;
  color: var(--brand);
}

.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.6;
  color: var(--hero-muted);
  max-width: 46ch;
  margin: 0 0 34px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--hero-ink);
}

.hero .btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.hero__telegram {
  color: var(--hero-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.hero__telegram:hover {
  color: var(--hero-ink);
}

.hero__reassure {
  margin: 30px 0 0;
  font-size: 0.9rem;
  color: var(--hero-muted);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hero__reassure svg {
  width: 17px;
  height: 17px;
  color: var(--brand);
  flex-shrink: 0;
}

/* Доминирующий визуальный якорь — точность/диагностика */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
}

.hero__art {
  width: 100%;
  height: auto;
  color: var(--brand);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
  animation: hero-float 9s var(--ease) infinite;
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

/* ============================ Полоса доверия ============================ */
.trust {
  position: relative;
  z-index: 1;
  margin-top: clamp(-72px, -6vw, -48px);
}

.trust__panel {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
  padding: clamp(22px, 3vw, 32px) clamp(24px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 0.95rem;
  max-width: 30ch;
}

.status__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 22%, transparent);
  flex-shrink: 0;
}

.status__dot.is-closed {
  background: var(--danger);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 22%, transparent);
}

.trust__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2.4vw, 28px);
  border-left: 1px solid var(--border);
  padding-left: clamp(20px, 4vw, 44px);
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat__suffix {
  color: var(--brand);
  margin-left: 2px;
}

.stat__label {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* ============================ Секции ============================ */
.section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.section--alt {
  background: var(--surface-2);
}

.section__head {
  max-width: 680px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.section__title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.1;
  margin: 0 0 14px;
}

.section__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  max-width: 58ch;
}

.section__head--center .section__subtitle {
  margin-inline: auto;
}

/* ============================ Услуги ============================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2vw, 22px);
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--transition), border-color var(--transition),
    box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-line);
  box-shadow: var(--shadow-sm);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 18px;
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
}

.service-card__title {
  font-size: 1.24rem;
  margin: 0 0 8px;
}

.service-card__text {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.98rem;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.service-card__tags li {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.service-card__btn {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  padding: 0;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
}

.service-card__btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.service-card__btn:hover svg {
  transform: translateX(3px);
}

/* ============================ Подбор услуги ============================ */
.wizard {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.wizard__intro .section__title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.wizard__body {
  padding: clamp(24px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.wizard__progress {
  height: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 26px;
}

.wizard__progress-bar {
  height: 100%;
  background: var(--brand);
  border-radius: 6px;
  transition: width 0.5s var(--ease);
}

.wizard__question {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.wizard__options {
  display: grid;
  gap: 10px;
}

.wizard__option {
  text-align: left;
  min-height: 52px;
  padding: 15px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition),
    transform 0.2s var(--ease);
}

.wizard__option:hover,
.wizard__option.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.wizard__option:active {
  transform: scale(0.99);
}

.wizard__back {
  margin-top: 18px;
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition);
}

.wizard__back:hover {
  color: var(--ink);
}

.wizard__result {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.wizard__result h4 {
  margin: 0 0 10px;
  font-size: 1.14rem;
}

.wizard__result p {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.wizard__result em {
  color: var(--muted);
}

.wizard__result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.request-form {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 14px;
}

.request-form__lead,
.request-form__note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.request-form__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.request-form__field {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.request-form__field span {
  letter-spacing: -0.01em;
}

.request-form__optional {
  font-weight: 500;
  color: var(--text-muted);
}

.request-form__field input,
.request-form__field select,
.request-form__field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

.request-form__field textarea {
  min-height: 96px;
  resize: vertical;
}

.request-form__field input:focus-visible,
.request-form__field select:focus-visible,
.request-form__field textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.request-form__submit {
  justify-self: start;
}

.request-form__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.request-form__status {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.request-form__status[data-state='pending'] {
  color: var(--text-muted);
}

.request-form__status[data-state='success'] {
  color: var(--ink);
}

.request-form__status[data-state='error'] {
  color: var(--danger);
}

@media (max-width: 720px) {
  .request-form__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================ Преимущества ============================ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 22px);
}

.benefit {
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.benefit__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 16px;
}

.benefit__icon svg {
  width: 24px;
  height: 24px;
}

.benefit h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.benefit p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ============================ О компании ============================ */
.about {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.about p {
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.about__brands {
  margin-top: 28px;
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee__track span {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.about-card {
  padding: clamp(26px, 3vw, 34px);
  border-radius: var(--radius-lg);
  background: var(--hero-bg);
  color: var(--hero-ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.about-card h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.about-card p {
  color: var(--hero-muted);
  margin: 0 0 22px;
}

.about-card .btn--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--hero-ink);
}

.about-card .btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ============================ FAQ ============================ */
.faq-search {
  position: relative;
  margin-bottom: 22px;
}

.faq-search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  color: var(--muted);
  pointer-events: none;
}

.faq-search__input {
  width: 100%;
  min-height: 54px;
  padding: 15px 18px 15px 48px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-search__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.is-open {
  border-color: var(--brand-line);
}

.faq-item__question {
  width: 100%;
  min-height: 56px;
  text-align: left;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--brand);
  transition: transform var(--transition);
}

.faq-item.is-open .faq-item__chevron {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
  padding: 0 20px;
  transition: max-height 0.5s var(--ease), padding 0.5s var(--ease);
}

.faq-item.is-open .faq-item__answer {
  max-height: 280px;
  padding: 0 20px 20px;
}

/* ============================ Контакты и филиалы ============================ */
.site-contacts {
  margin-bottom: 22px;
}

.site-contacts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 20px);
}

.site-contacts__item {
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.site-contacts__label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.site-contacts__link {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand);
}

.site-contacts__hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.branches__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.branches__tab {
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-btn);
  background: var(--surface);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), border-color var(--transition),
    color var(--transition);
}

.branches__tab--active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.branch-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(18px, 3vw, 28px);
  padding: clamp(22px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.branch-panel h3 {
  font-size: 1.2rem;
  margin: 0 0 10px;
}

.branch-panel__schedule {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.branch-panel__phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand);
  margin: 14px 0;
}

.branch-panel__maps {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.branch-panel__maps a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--brand-line);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.branch-panel__maps a:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.branch-panel__map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: var(--radius);
}

/* ============================ Подвал ============================ */
.footer {
  padding: clamp(48px, 6vw, 72px) 0 40px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.footer__brand p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 14px 0 0;
  max-width: 34ch;
}

.footer__col-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

.footer__nav,
.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__contacts [data-footer-contacts] {
  display: contents;
}

.footer__nav a,
.footer__contacts a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.footer__nav a:hover,
.footer__contacts a:hover {
  color: var(--brand);
}

.footer__note {
  grid-column: 1 / -1;
  margin: clamp(28px, 4vw, 40px) 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ============================ Плавающая кнопка звонка ============================ */
.fab {
  position: fixed;
  right: clamp(16px, 3vw, 26px);
  bottom: clamp(16px, 3vw, 26px);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  z-index: 90;
  transition: transform 0.25s var(--ease), background var(--transition);
}

.fab:hover {
  transform: scale(1.06);
  background: var(--brand-strong);
}

.fab:active {
  transform: scale(0.94);
}

.fab svg {
  width: 24px;
  height: 24px;
}

/* ============================ Motion: появление ============================ */
.reveal,
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible,
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.reveal--delay {
  --reveal-delay: 90ms;
}

.reveal--delay-2 {
  --reveal-delay: 180ms;
}

.reveal--delay-3 {
  --reveal-delay: 270ms;
}

[data-stagger] > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--stagger-index, 0) * 80ms);
}

[data-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}

.wizard__step {
  animation: step-in 0.45s var(--ease) both;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================ Адаптив ============================ */
@media (max-width: 960px) {
  .nav,
  .header__actions .btn {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: clamp(28px, 8vw, 48px);
  }

  .hero__visual {
    order: -1;
    max-width: 340px;
    margin-inline: auto;
  }

  .trust__panel {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .trust__stats {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 22px;
  }

  .wizard,
  .about,
  .branch-panel,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .benefits-grid,
  .site-contacts__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Компактные и сенсорные экраны — отключаем усиленный motion героя */
@media (max-width: 960px), (pointer: coarse) {
  .hero__art {
    animation: none;
  }
}

@media (max-width: 620px) {
  .services-grid,
  .benefits-grid,
  .site-contacts__grid,
  .trust__stats {
    grid-template-columns: 1fr;
  }

  .trust__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__telegram {
    text-align: center;
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal,
  [data-reveal],
  [data-stagger] > * {
    opacity: 1;
    transform: none;
  }
}
