/* ============================================
   FixPro — стили сайта
   Простой словарь: переменные цветов заданы один раз
   в самом верху (:root), дальше используются везде.
   Хотите поменять фирменный цвет — меняете 2-3 строки ниже.
   ============================================ */

:root {
  /* Чёрно-белая премиальная палитра. --accent — основной "чёрный" акцент
     для кнопок/ссылок на светлом фоне, --accent-dark/--accent-light —
     его оттенки. Для тёмных секций акцентом служит белый (см. .btn--light,
     .review__avatar и т.д. — они переопределены отдельно). */
  --accent: #0a0a0a;
  --accent-dark: #000000;
  --accent-light: #ececec;

  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --navy: #050505;
  --navy-2: #141414;

  --bg: #ffffff;
  --bg-soft: #f4f4f4;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --border: #e3e3e3;

  --on-dark: #ffffff;
  --on-dark-muted: #a3a3a3;
  --border-dark: rgba(255, 255, 255, 0.12);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.18);

  --container: 1180px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }

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

/* В чёрно-белой палитре выделение слова делается не цветом, а
   насыщенным начертанием — так акцент работает одинаково и на светлом,
   и на тёмном фоне. */
.accent { color: inherit; font-weight: 900; }

.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
/* .btn--dark — тёмная (чёрная) кнопка для СВЕТЛОГО фона (шапка, форма).
   .btn--light — светлая (белая) кнопка для ТЁМНОГО фона (hero, cookie-баннер).
   Раньше была одна оранжевая кнопка, которая одинаково смотрелась на любом
   фоне — в чёрно-белой палитре так нельзя, чёрное на чёрном не видно. */
.btn--dark {
  background: #0a0a0a;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
.btn--dark:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3); background: #000; }
.btn--light {
  background: #fff;
  color: #0a0a0a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.26); background: #f2f2f2; }
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn--ghost-dark {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--ink);
}
.btn--ghost-dark:hover { background: var(--bg-soft); }
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--ink); }
.logo__icon {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: #0a0a0a;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}
.logo__text-group { display: flex; flex-direction: column; line-height: 1.15; }
.logo__sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1px;
}
.footer .logo__sub { color: var(--on-dark-muted); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__link {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.93rem; color: var(--ink); }
.header__phone .icon { color: var(--accent); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: 10px;
}
.burger span { width: 20px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }
.burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__link {
  padding: 14px 4px;
  font-weight: 700;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
}
.mobile-menu__phone { padding: 18px 4px 6px; font-weight: 700; color: var(--accent); font-size: 1.05rem; }
.mobile-menu__cta { margin-top: 14px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 90px;
  background: radial-gradient(ellipse at top left, var(--navy-2), var(--navy) 60%);
  color: var(--on-dark);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 600px;
  background:
    radial-gradient(500px 300px at 20% 20%, rgba(255, 255, 255, 0.12), transparent 70%),
    radial-gradient(400px 300px at 85% 10%, rgba(255, 255, 255, 0.07), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  /* stretch (не center): обе колонки растягиваются на всю высоту строки,
     и карточка справа центрируется относительно ВСЕГО блока hero, а не
     только относительно своего небольшого min-height — раньше из-за этого
     она визуально "уезжала" в угол, а не стояла посередине. */
  align-items: stretch;
}

.hero__title { font-size: clamp(2.1rem, 4.2vw, 3.4rem); color: #fff; margin-bottom: 22px; }
.hero__text { font-size: 1.08rem; color: var(--on-dark-muted); max-width: 520px; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero__stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero__stat { display: flex; flex-direction: column; }
/* .hero__stat-value оборачивает число и его значок (+, К+, %), чтобы они
   всегда оставались на одной строке — раньше они были отдельными flex-
   элементами колонки и из-за этого переносились каждый на свою строку. */
.hero__stat-value { display: flex; align-items: baseline; }
.hero__stat-num { font-size: 2rem; font-weight: 800; color: #fff; display: inline; }
.hero__stat .accent { font-size: 2rem; font-weight: 800; }
.hero__stat-label { display: block; font-size: 0.85rem; color: var(--on-dark-muted); margin-top: 2px; }

.hero__visual { display: flex; align-items: center; justify-content: center; min-height: 260px; }

/* Три плавающие карточки друг под другом, со сдвигом вбок — заполняют
   пространство рядом с текстом hero и вместе с тем показывают три
   ключевых факта о сервисе с первого взгляда. Увеличенный gap и разброс
   по горизонтали (margin) специально больше, чтобы группа карточек
   занимала заметно больше места, а не жалась плотной стопкой. */
.hero__card-stack { display: flex; flex-direction: column; gap: 34px; width: 100%; max-width: 360px; }
.hero__card--offset { align-self: flex-end; margin-right: 0; animation-delay: 0.6s; }
.hero__card--offset2 { align-self: flex-start; margin-left: 30px; animation-delay: 1.2s; }
.hero__card {
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.hero__card-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.hero__card-icon { font-size: 1.8rem; }
.hero__card-row strong { display: block; font-size: 1rem; }
.hero__card-row p { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }
.hero__card-status { font-size: 0.8rem; font-weight: 700; color: var(--accent-dark); }

.hero__card--float { display: flex; align-items: center; gap: 20px; padding: 28px 34px; width: 100%; max-width: 340px; animation: float 5s ease-in-out infinite; }
.hero__card-icon--sm { font-size: 2.6rem; }
.hero__card--float strong { font-size: 1.35rem; display: block; }
.hero__card--float p { font-size: 0.94rem; color: var(--text-muted); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ===== Logos strip (бегущая строка) ===== */
.strip { padding: 46px 0; background: var(--bg-soft); border-bottom: 1px solid var(--border); overflow: hidden; }
.strip__inner { text-align: center; }
.strip__label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; margin-bottom: 20px; }

/* Маска по краям (mask-image) плавно "растворяет" бренды у левого и
   правого края строки, чтобы не было резкого обрыва во время бесконечной
   прокрутки. .strip__marquee — окно с overflow:hidden, внутри которого
   едут две одинаковые дорожки .strip__track подряд: пока первая уезжает
   влево ровно на свою ширину, вторая как раз занимает её место — стык
   между ними не заметен, и кажется, что строка бежит без конца. */
.strip__marquee {
  display: flex;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.strip__track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 44px;
  padding-right: 44px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #b7bcc9;
  font-size: 1.05rem;
  white-space: nowrap;
  animation: marquee 34s linear infinite;
}
.strip__marquee:hover .strip__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ===== Section shell ===== */
.section { padding: 110px 0; }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark .section__text { color: var(--on-dark-muted); }

.section__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--on-dark-muted); }
.section__title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 16px; }
.section__text { color: var(--text-muted); font-size: 1.03rem; }
.section__text--muted { font-style: italic; opacity: 0.8; font-size: 0.9rem; }

/* ===== Grids & cards ===== */
.grid { display: grid; gap: 24px; }
.grid--services { grid-template-columns: repeat(2, 1fr); max-width: 800px; margin: 0 auto; }
.grid--advantages { grid-template-columns: repeat(3, 1fr); gap: 32px; }

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(0, 0, 0, 0.18); }
.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #f6f6f6, #e9e9e9);
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 18px; }
.card__price { display: inline-block; font-weight: 800; color: var(--accent-dark); background: var(--accent-light); padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; }

.adv { display: flex; flex-direction: column; gap: 4px; }
.adv__icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  margin-bottom: 18px;
}
.adv__icon svg { width: 24px; height: 24px; }
.adv h3 { font-size: 1.08rem; margin-bottom: 8px; color: #fff; }
.adv p { color: var(--on-dark-muted); font-size: 0.93rem; }

/* ===== Process steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}
.step {
  position: relative;
  padding: 30px 24px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.step__num {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: #0a0a0a;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.92rem; }

/* ===== Brands ===== */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.brand-chip {
  padding: 22px 12px;
  text-align: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  font-weight: 700;
  color: var(--on-dark);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.brand-chip:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-3px); }

/* ===== Price table ===== */
.price-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.price-row {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1fr;
  gap: 16px;
  padding: 18px 26px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.price-row:last-child { border-bottom: none; }
.price-row--head {
  background: var(--bg-soft);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.price-row:not(.price-row--head):hover { background: var(--bg-soft); }
.price-row__price { font-weight: 800; color: var(--accent-dark); }

/* ===== Reviews ===== */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 28px;
}
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.review__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
  color: #0a0a0a; font-weight: 800; font-size: 0.85rem;
  flex-shrink: 0;
}
.review__head strong { display: block; font-size: 0.95rem; color: #fff; }
.stars { color: #fff; font-size: 0.85rem; letter-spacing: 1px; }
.review p { color: var(--on-dark-muted); font-size: 0.92rem; }

/* ===== FAQ ===== */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-weight: 700;
  font-size: 0.98rem;
}
.faq__arrow { font-size: 1.3rem; color: var(--accent); transition: transform 0.3s var(--ease); flex-shrink: 0; }
.faq__item.is-open .faq__arrow { transform: rotate(45deg); }
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq__answer p { padding: 0 24px 20px; color: var(--text-muted); font-size: 0.93rem; }

/* ===== Contact ===== */
.section--contact { background: var(--bg-soft); }
.contact__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact__info .section__head { text-align: left; margin: 0 0 28px; max-width: none; }
.contact__list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.contact__list li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.95rem; }
.contact__list .icon { color: var(--accent); }

.contact__messengers { display: flex; gap: 12px; }
.msg-btn {
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
}
.msg-btn--tg { background: #229ed9; }

.discount-badge {
  display: inline-block;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--accent-dark);
  background: var(--accent-light);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form__title { font-size: 1.25rem; margin-bottom: 4px; color: var(--text); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }
.field input, .field select, .field textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  background: #fff;
  color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}
.field textarea { resize: vertical; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--text-muted); }
.checkbox input { margin-top: 3px; }
.checkbox a { color: var(--accent-dark); font-weight: 700; text-decoration: underline; }
.checkbox a:hover { color: var(--accent); }
.form__note { font-size: 0.85rem; font-weight: 700; min-height: 1.2em; }
.form__note.is-success { color: #16a34a; }
.form__note.is-error { color: #dc2626; }

.review-form-wrap { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.review-form { width: 100%; max-width: 480px; }
.review-form[hidden] { display: none; }
.star-picker { display: flex; align-items: center; gap: 6px; }
.star-picker__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  padding: 0;
  color: var(--border);
  transition: color 0.15s var(--ease), transform 0.15s var(--ease);
}
.star-picker__btn.is-active { color: #f5a623; }
.star-picker__btn:hover { transform: scale(1.12); }

/* ===== Footer ===== */
.footer { background: var(--navy); color: var(--on-dark-muted); padding: 70px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border-dark);
}
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col--brand p { font-size: 0.88rem; line-height: 1.6; margin-top: 8px; max-width: 280px; }
.footer .logo { color: #fff; }
.footer__col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 6px; }
.footer__col a, .footer__col span { font-size: 0.88rem; transition: color 0.2s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  padding: 22px 0;
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  text-align: center;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; }
.footer__legal a { font-size: 0.8rem; transition: color 0.2s var(--ease); }
.footer__legal a:hover { color: #fff; }

/* ===== Floating buttons ===== */
.fab-group { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.fab {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.fab--top {
  background: var(--ink);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}
.fab--top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fab:hover { transform: translateY(-3px); }
.fab--top.is-visible:hover { transform: translateY(-3px); }

/* ===== Cookie-уведомление ===== */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 200;
  max-width: 620px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--on-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  pointer-events: none;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner p { font-size: 0.86rem; color: var(--on-dark-muted); }
.cookie-banner a { color: #fff; font-weight: 700; text-decoration: underline; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cookie-banner .btn { white-space: nowrap; padding: 11px 20px; font-size: 0.88rem; }
.cookie-banner__link {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--on-dark-muted);
  text-decoration: underline;
  padding: 8px 4px;
}
.cookie-banner__link:hover { color: #fff; }

.cookie-banner__settings {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-dark);
}
/* Моё правило выше (display:flex) иначе перебивает стандартное
   поведение атрибута hidden — явно возвращаем скрытие. */
.cookie-banner__settings[hidden] { display: none; }
.cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--on-dark-muted);
}
.cookie-toggle input { width: 18px; height: 18px; accent-color: #fff; }

@media (max-width: 560px) {
  .cookie-banner__actions { flex-direction: column; align-items: stretch; }
  .cookie-banner .btn, .cookie-banner__link { width: 100%; text-align: center; }
}

/* ===== Юридическая страница (privacy.html) ===== */
.legal {
  padding: calc(var(--header-h) + 56px) 0 100px;
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-dark);
  margin-bottom: 24px;
}
.legal__updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 44px; }
.legal__body { max-width: 760px; }
.legal__body h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.legal__body h2 { font-size: 1.25rem; margin: 42px 0 14px; }
.legal__body h3 { font-size: 1.05rem; margin: 24px 0 10px; }
.legal__body p { color: var(--text); margin-bottom: 14px; font-size: 0.98rem; }
.legal__body ul, .legal__body ol { margin: 0 0 14px 22px; display: flex; flex-direction: column; gap: 8px; }
.legal__body li { font-size: 0.98rem; }
.legal__body strong { font-weight: 700; }
.legal__note {
  margin-top: 40px;
  padding: 18px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ===== Разбор техники на детали (scroll-эффект) ===== */
.exploded {
  position: relative;
  height: 260vh;
  background: var(--bg);
}
.exploded__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 90px 0 40px;
}
.exploded__head { text-align: center; margin-bottom: 4px; max-width: 640px; }
.exploded__stage {
  width: 100%;
  max-width: 620px;
  padding: 0 24px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.exploded__svg { width: 100%; height: 100%; max-height: 58vh; display: block; overflow: visible; }

.xp-part {
  transform-box: fill-box;
  transform-origin: center;
}
.xp-part path, .xp-part rect, .xp-part circle, .xp-part line {
  vector-effect: non-scaling-stroke;
}
.xp-label { opacity: 0; transition: opacity 0.25s linear; }
.xp-label text {
  font-size: 15px;
  font-weight: 700;
  fill: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.xp-label line { stroke: var(--text-muted); stroke-width: 1.2; stroke-dasharray: 3 3; }
.xp-label circle { fill: var(--ink); }

.exploded__hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.03em;
  animation: bob 1.6s ease-in-out infinite;
  transition: opacity 0.3s var(--ease);
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  .exploded { height: auto; }
  .exploded__sticky { position: relative; height: auto; padding: 40px 0; }
  .exploded__hint { display: none; }
}

@media (max-width: 720px) {
  .exploded { height: 220vh; }
  .exploded__stage { max-width: 360px; }
  .exploded__svg { max-height: 48vh; }
}

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Людям, которые в настройках ОС отключили анимации, показываем
   контент сразу, без эффекта появления — это стандартная практика
   доступности (prefers-reduced-motion). */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__card--float { animation: none; }
  .strip__track { animation: none; }
  .strip__marquee { overflow-x: auto; }
}

/* ============================================
   Адаптивность
   ============================================ */
@media (max-width: 1024px) {
  .nav, .header__phone { display: none; }
  .burger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { min-height: 200px; margin-top: 20px; }
  .grid--services, .grid--advantages { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding: calc(var(--header-h) + 36px) 0 60px; }
  .grid--services, .grid--advantages, .steps, .reviews { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .hero__stats { gap: 24px; }
  .form__row { grid-template-columns: 1fr; }
  .price-row--head { display: none; }
  .price-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 20px;
  }
  .price-row span::before { content: attr(data-label) ": "; font-weight: 800; color: var(--text-muted); }
  .price-row span[data-label="Цена"]::before { content: ""; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .footer__inner { grid-template-columns: 1fr; }
}
