/* =========================================================
   Прачка.ru — стили сайта
   Цвета взяты из логотипа. Меняются в одном месте — в :root.
   ========================================================= */

:root {
  --navy-950: #06132F;   /* подвал */
  --navy-900: #0A1F4D;   /* тёмные блоки */
  --navy:     #01308E;   /* логотип, акценты */
  --blue:     #0241A8;   /* ссылки, иконки */
  --sky:      #36C5FD;   /* детали на тёмном фоне */
  --sky-l:    #E4F5FE;   /* подложки иконок */
  --ink:      #0E1B33;   /* основной текст */
  --muted:    #4A5872;   /* второстепенный текст */
  --bg-l:     #F3F7FC;   /* светлые блоки */
  --line:     #DCE4EF;   /* линии и рамки */
  --wa:       #128C4A;   /* кнопка WhatsApp */
  --wa-hover: #0F7A40;

  --font-head: "Montserrat", "Arial", sans-serif;
  --font-body: "Golos Text", "Segoe UI", "Arial", sans-serif;

  --radius: 10px;
  --header-h: 88px;
  --gutter: 20px;
  --section-y: clamp(64px, 9vw, 112px);

  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-head); text-wrap: balance; }
button { font: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: #fff; color: var(--navy); border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Иконки ---------- */
.ic {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 8px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--lg { padding: 17px 28px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--ghost .ic { width: 18px; height: 18px; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Надписи над заголовками ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; flex-shrink: 0; }
.eyebrow--light { color: var(--sky); }

.label { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); }
.label--light { color: var(--sky); }

/* Заглушки для данных, которых пока нет */
.todo { background: #FFF3D1; color: #6E4B00; padding: 2px 8px; border-radius: 6px; font-weight: 500; }
.todo--dark { background: rgba(255,214,102,.16); color: #FFD666; }

.muted { color: var(--muted); font-size: 15px; }
.small { font-size: 14px; }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed; left: 0; right: 0; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid rgba(255,255,255,.14);
  transition: background-color .25s, box-shadow .25s;
}
.site-header.is-scrolled, .site-header.is-open { background: var(--navy-900); box-shadow: 0 6px 24px rgba(6,19,47,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height .25s; }
.site-header.is-scrolled .header-inner { height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; color: #fff; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: .5px; }
.brand-sub { font-family: var(--font-head); font-weight: 600; font-size: 10px; letter-spacing: 3px; color: rgba(255,255,255,.7); }
.brand--sm img { width: 36px; height: 36px; }
.brand--sm .brand-name { font-size: 18px; }
.brand--sm .brand-sub { font-size: 9px; }

.nav ul { display: flex; gap: 36px; }
.nav a { color: #fff; font-size: 15px; font-weight: 500; }
.nav ul a:hover { color: var(--sky); }
.nav-mobile-actions { display: none; }

.header-phone { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 18px; white-space: nowrap; }
.header-phone .ic { width: 18px; height: 18px; color: var(--sky); }
.header-phone:hover { color: var(--sky); }

.header-mobile { display: none; gap: 8px; }
.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; padding: 0;
}
.icon-btn .ic { width: 22px; height: 22px; }
.burger .ic-close { display: none; }
.site-header.is-open .burger .ic-open { display: none; }
.site-header.is-open .burger .ic-close { display: block; }

/* ---------- Первый экран ---------- */
.hero { position: relative; min-height: 820px; display: flex; color: #fff; background: var(--navy-900); overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(6,19,47,.74); }
.hero-waves { display: none; }
@keyframes hero-wave { to { transform: translate3d(-50%, 0, 0); } }
.hero-inner {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 56px;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 96px); padding-bottom: 48px;
}
.hero-content { max-width: 820px; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-weight: 800; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.1; }
.hero-lead { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.55; color: rgba(255,255,255,.86); max-width: 680px; }
.hero .actions { padding-top: 8px; }

.hero-facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(10,31,77,.72); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
}
.hero-facts li { display: flex; align-items: center; gap: 14px; padding: 22px 24px; font-size: 16px; font-weight: 500; line-height: 1.3; }
.hero-facts li + li { border-left: 1px solid rgba(255,255,255,.14); }
.fact-ic { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; background: rgba(54,197,253,.16); color: var(--sky); flex-shrink: 0; }
.fact-ic .ic { width: 22px; height: 22px; }

/* ---------- Секции ---------- */
.section { padding-block: var(--section-y); }
.section--light { background: var(--bg-l); }
.section--dark { background: var(--navy-900); color: #fff; }

.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.section-head h2 { font-weight: 800; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.15; max-width: 760px; }
.section-head--split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 48px; }
.section-head--split > div { display: flex; flex-direction: column; gap: 16px; }
.section-head--center { align-items: center; text-align: center; }
.section-lead { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 440px; }

/* ---------- Кому мы стираем ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.aud-card { display: flex; flex-direction: column; gap: 16px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.aud-card h3 { font-weight: 700; font-size: 19px; line-height: 1.3; }
.aud-card p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.aud-ic { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: var(--radius); background: var(--sky-l); color: var(--blue); }
.aud-ic .ic { width: 28px; height: 28px; }

.aud-card--cta { padding: 0; background: var(--navy); border-color: var(--navy); }
.aud-card--cta a { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; height: 100%; padding: 28px; color: #fff; border-radius: var(--radius); }
.aud-card--cta p { color: rgba(255,255,255,.8); }
.link-arrow { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--sky); }
.aud-card--cta a:hover .link-arrow .ic { transform: translateX(4px); }
.link-arrow .ic { transition: transform .15s; }

/* ---------- Почему нам доверяют ---------- */
.why-head h2 { max-width: none; }
.why-grid { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 72px; align-items: center; }
.why-lead { font-size: 17px; line-height: 1.65; color: rgba(255,255,255,.82); max-width: 62ch; margin-bottom: 40px; }
.why-lead b { color: #fff; font-weight: 600; }
.trust-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; }
.trust-list li { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); }
.trust-list h3 { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 20px; line-height: 1.25; }
.trust-ic { display: flex; color: var(--sky); }
.trust-ic .ic { width: 24px; height: 24px; }
.trust-list p { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.78); }
.why-photos { display: flex; flex-direction: column; gap: 20px; }
.why-photos img { width: 100%; object-fit: cover; border-radius: var(--radius); }
.why-photos img { aspect-ratio: 5 / 4; }

/* ---------- Клиенты ---------- */
.partners-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 20px; }
.partner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.partner-logo {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 96px; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-l);
  font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--navy); letter-spacing: .3px;
}
.partner-logo img { width: auto; height: auto; max-width: 100%; max-height: 80px; object-fit: contain; }
.partner-logo--dark { background: var(--navy-900); border-color: var(--navy-900); }
.partner p { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.partner p span { font-size: 13px; color: var(--muted); }
.partner p b { font-family: var(--font-head); font-size: 16px; }
.partner--dup { display: none; }

/* ---------- Аренда ---------- */
.rent-grid { display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 72px; align-items: center; }
.rent-text { display: flex; flex-direction: column; gap: 24px; }
.rent-text .section-head { margin-bottom: 4px; }
.rent-text .section-lead { max-width: none; font-size: 18px; }
.rent-items { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.rent-items-title { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--navy); }
.rent-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rent-chips li { padding: 8px 14px; border-radius: 999px; background: var(--sky-l); color: var(--navy); font-weight: 600; font-size: 15px; line-height: 1.3; }
.rent-price { color: var(--ink); font-weight: 700; }
.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; align-items: center; gap: 14px; font-size: 17px; }
.check { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sky-l); color: var(--blue); flex-shrink: 0; }
.check .ic { width: 18px; height: 18px; stroke-width: 2.5; }
.rent-photo { width: 100%; height: 100%; min-height: 360px; max-height: 540px; object-fit: cover; border-radius: var(--radius); }

/* ---------- Прайс ---------- */
.price-tabs { display: none; }
.price-grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 24px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; gap: 24px; padding: 40px; border-radius: 12px; }
.price-card-head { display: flex; flex-direction: column; gap: 8px; }
.price-card-head h3 { font-weight: 700; font-size: 24px; }

.price-card--b2b { background: var(--navy); color: #fff; }
.big-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.big-price span { font-size: 20px; color: rgba(255,255,255,.8); }
.big-price b { font-family: var(--font-head); font-weight: 800; font-size: 72px; line-height: 1; }
.b2b-list { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); flex-grow: 1; }
.b2b-list li { display: flex; align-items: flex-start; gap: 14px; font-size: 16px; line-height: 1.45; color: rgba(255,255,255,.92); }
.b2b-list .ic { color: var(--sky); margin-top: 1px; }

.price-card--private { border: 1px solid var(--line); gap: 20px; }
.price-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.pickup { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg-l); border-radius: 8px; font-size: 14px; }
.pickup .ic { width: 18px; height: 18px; color: var(--blue); }

.price-list { columns: 2; column-gap: 40px; }
/* Вещи / домашний текстиль */
.goods-tabs { display: none; }
.goods-home { border-top: 1px solid var(--line); }
.goods-home > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0;
  cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--navy);
}
.goods-home > summary::-webkit-details-marker { display: none; }
.goods-home > summary small { font-family: var(--font-body); font-weight: 500; font-size: 14px; color: var(--muted); }
.goods-chevron { width: 22px; height: 22px; color: var(--blue); transition: transform .25s; }
.goods-home[open] .goods-chevron { transform: rotate(180deg); }
.goods-home[open] > .goods-groups { animation: goods-down .3s ease; }
@keyframes goods-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .goods-home > .goods-groups, .js .goods .goods-home > .goods-groups { animation: none !important; } .goods-chevron { transition: none; } }

/* Компьютер: две вкладки, вещи открыты по умолчанию */
@media (min-width: 961px) {
  .js .goods-tabs { display: inline-flex; align-self: flex-start; padding: 4px; margin-bottom: 8px; background: #E4EAF2; border-radius: 10px; }
  .js .goods-tabs button { padding: 10px 18px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-weight: 600; font-size: 15px; }
  .js .goods-tabs button.is-active { background: var(--navy); color: #fff; }
  .js .goods-home { border-top: 0; }
  .js .goods-home > summary { display: none; }
  .js .goods[data-tab="wear"] .goods-home { display: none; }
  .js .goods[data-tab="home"] .goods-wear { display: none; }
  .js .goods[data-tab="home"] .goods-home > .goods-groups { animation: goods-down .3s ease; }
}
.goods { display: flex; flex-direction: column; }
.goods-groups { display: flex; flex-direction: column; gap: 20px; }
.goods-group-title { margin: 0 0 2px; font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .3px; color: var(--blue); }

.price-offer { margin-top: 20px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.price-list li {
  display: flex; align-items: baseline; gap: 8px; padding: 13px 0; border-bottom: 1px solid var(--line);
  break-inside: avoid; font-size: 16px; line-height: 1.35;
}
.price-list i { flex-grow: 1; min-width: 16px; border-bottom: 1px dotted #B6C3D6; transform: translateY(-4px); }
.price-list b { font-family: var(--font-head); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Как мы работаем ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 12px; position: relative; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 27px; left: 68px; right: 0; height: 2px; background: #B6C3D6;
}
.step-num {
  display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 20px; margin-bottom: 4px;
}
.step-num--done { background: var(--wa); }
.steps h3 { font-weight: 700; font-size: 19px; line-height: 1.3; }
.steps p { font-size: 15px; line-height: 1.5; color: var(--muted); padding-right: 12px; }

/* ---------- Контакты ---------- */
.contacts-grid { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 48px; align-items: stretch; }
.contacts-info { display: flex; flex-direction: column; gap: 32px; }
.contacts-info .section-head { margin-bottom: 0; }
.contact-list { display: flex; flex-direction: column; gap: 24px; }
.contact-list li { display: flex; gap: 18px; align-items: flex-start; }
.contact-list div { display: flex; flex-direction: column; gap: 4px; }
.contact-list div > span { font-size: 14px; color: rgba(255,255,255,.65); }
.contact-list b { font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.3; }
.contact-list b a:hover { color: var(--sky); }
.contact-ic { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--radius); background: rgba(54,197,253,.14); color: var(--sky); flex-shrink: 0; }
.contact-ic .ic { width: 22px; height: 22px; }

.map { position: relative; min-height: 400px; border-radius: 12px; overflow: hidden; background: #E8EEF6; }
.map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Карта из конструктора Яндекса: растягиваем на весь блок, какие бы размеры ни стояли в коде.
   Высоту карты меняйте через min-height у .map (ниже есть отдельное значение для телефона). */
.map iframe { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; display: block; border: 0; }
.map-link {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: #fff; color: var(--blue); border-radius: 8px; font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 16px rgba(6,19,47,.18);
}
.map-link .ic { width: 18px; height: 18px; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.7); font-size: 14px; padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-copy { display: flex; flex-direction: column; gap: 4px; }
.footer-offer { font-size: 12px; color: rgba(255,255,255,.5); }

/* ---------- Плавающая кнопка калькулятора ---------- */
.calc-fab {
  position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%;
  background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(6,19,47,.35); transition: transform .15s, background-color .15s;
}
.calc-fab:hover { background: var(--navy); transform: scale(1.06); }
.calc-fab .ic { width: 30px; height: 30px; stroke-width: 1.8; }
.calc-fab .ic path[d$="h.01"] { stroke-width: 2.6; }
.calc-fab-label {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%);
  padding: 8px 14px; border-radius: 8px; background: #fff; color: var(--navy); font-size: 14px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(6,19,47,.2); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
}
@media (hover: hover) and (pointer: fine) {
  .calc-fab:hover .calc-fab-label, .calc-fab:focus-visible .calc-fab-label { opacity: 1; transform: translate(0, -50%); }
}

/* ---------- Карточки при наведении (только мышь) ---------- */
.aud-card, .partner-logo { transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s, border-color .3s; }
@media (hover: hover) and (pointer: fine) {
  .aud-card:hover, .partner:hover .partner-logo {
    transform: translateY(-6px); box-shadow: 0 18px 36px -14px rgba(6,19,47,.28); border-color: #C3D1E5;
  }
  .aud-card--cta:hover { border-color: var(--navy); }
}

/* ---------- Анимации при прокрутке ----------
   Включаются из js/main.js (класс .anim на <html>). Без JS и при «уменьшении движения» всё видно сразу.
   Двигаем только opacity и transform — их считает видеокарта, страница не перерисовывается. */
.section { overflow-x: clip; }
/* Скрытое состояние — без перехода (мгновенно), плавным делаем только появление (.is-in) */
.anim .rv { opacity: 0; transform: translate3d(0, 44px, 0); }
.anim .rv--left  { transform: translate3d(-56px, 0, 0); }
.anim .rv--right { transform: translate3d(56px, 0, 0); }
.anim .rv--zoom  { transform: translate3d(56px, 0, 0) scale(1.08); }
.anim .rv.is-in {
  opacity: 1; transform: none;
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform 1s cubic-bezier(.22,.61,.36,1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.anim .rv--zoom.is-in { transition-duration: .9s, 1.3s; }

/* Пять шагов: цифры загораются по очереди, линия прорисовывается к следующему шагу */
.anim .steps .step-num { opacity: 0; transform: scale(.3); }
.anim .steps li > h3, .anim .steps li > p { opacity: 0; transform: translate3d(0, 18px, 0); }
.anim .steps li:not(:last-child)::after { transform: scaleX(0); transform-origin: left center; }
.anim .steps.is-in .step-num,
.anim .steps.is-in li > h3,
.anim .steps.is-in li > p,
.anim .steps.is-in li:not(:last-child)::after { opacity: 1; transform: none; }
.anim .steps.is-in .step-num {
  transition: opacity .4s ease, transform .6s cubic-bezier(.34,1.56,.64,1);
  transition-delay: calc(var(--i, 0) * 320ms);
}
.anim .steps.is-in li > h3, .anim .steps.is-in li > p {
  transition: opacity .6s ease, transform .7s cubic-bezier(.22,.61,.36,1);
  transition-delay: calc(var(--i, 0) * 320ms + 120ms);
}
.anim .steps.is-in li:not(:last-child)::after {
  transition: transform .5s cubic-bezier(.65,0,.35,1);
  transition-delay: calc(var(--i, 0) * 320ms + 220ms);
}

/* =========================================================
   Адаптив
   ========================================================= */

@media (max-width: 1180px) {
  .nav ul { gap: 24px; }
  .header-phone span { display: none; }
  .header-phone .ic { width: 22px; height: 22px; }
  .aud-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .aud-card--cta { grid-column: span 2; }
  .partners-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
  .partner { width: calc((100% - 72px) / 4); }
  .why-grid, .rent-grid { gap: 48px; }
  .price-grid { grid-template-columns: 360px minmax(0, 1fr); }
  .price-card { padding: 32px; }
  .big-price b { font-size: 60px; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .site-header.is-scrolled .header-inner { height: var(--header-h); }
  .header-phone { display: none; }
  .header-mobile { display: flex; }
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 8px; }

  /* Мобильное меню */
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; gap: 24px;
    padding: 8px var(--gutter) 28px; background: var(--navy-900);
    border-top: 1px solid rgba(255,255,255,.14); box-shadow: 0 16px 32px rgba(6,19,47,.35);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-header.is-open .nav { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; font-size: 18px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-mobile-actions { display: flex; flex-direction: column; gap: 12px; }

  .hero { min-height: 0; }
  .hero-inner { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 48px); gap: 36px; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); background: none; border: 0; gap: 8px; }
  .hero-facts li { padding: 12px; gap: 10px; font-size: 14px; background: rgba(10,31,77,.72); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; }
  .hero-facts li + li { border-left: 1px solid rgba(255,255,255,.14); }
  .fact-ic { width: 36px; height: 36px; }
  .fact-ic .ic { width: 20px; height: 20px; }

  .section-head { margin-bottom: 32px; }
  .section-head--split { flex-direction: column; align-items: flex-start; gap: 16px; }

  .why-grid, .rent-grid, .contacts-grid { grid-template-columns: minmax(0, 1fr); }
  .why-photos { flex-direction: row; }
  .why-photos img { flex: 1 1 0; min-width: 0; aspect-ratio: 16 / 9; }
  .rent-photo { order: -1; min-height: 0; aspect-ratio: 16 / 9; height: auto; }

  /* Прайс: вкладки */
  .price-tabs { display: flex; padding: 4px; margin-bottom: 20px; background: #E4EAF2; border-radius: 10px; }
  .price-tabs button {
    flex: 1 1 0; padding: 12px; border: 0; border-radius: 8px; background: transparent;
    color: var(--ink); font-weight: 600; font-size: 15px;
  }
  .price-tabs button.is-active { background: var(--navy); color: #fff; }
  .price-grid { grid-template-columns: minmax(0, 1fr); }
  .js .price-panel:not(.is-active) { display: none; }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; padding-bottom: 24px; }
  .steps li:not(:last-child)::after { top: 52px; bottom: 6px; left: 21px; right: auto; width: 2px; height: auto; }
  .anim .steps li:not(:last-child)::after { transform: scaleY(0); transform-origin: center top; }
  .step-num { grid-row: span 2; width: 44px; height: 44px; font-size: 17px; margin: 0; }
  .steps h3 { font-size: 17px; padding-top: 10px; }
  .steps p { font-size: 14px; }

  .map { min-height: 300px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero-content { gap: 20px; }
  .hero .actions { flex-direction: column; }
  .hero .actions .btn, .contacts-info .actions .btn, .rent-text .actions .btn { width: 100%; }
  .contacts-info .actions { flex-direction: column; }

  .aud-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .aud-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; column-gap: 14px; row-gap: 2px; padding: 16px; }
  .aud-card h3 { font-size: 16px; align-self: end; }
  .aud-card p { font-size: 13px; line-height: 1.4; align-self: start; }
  .aud-ic { grid-row: span 2; width: 48px; height: 48px; }
  .aud-ic .ic { width: 24px; height: 24px; }
  .aud-card--cta { display: block; grid-column: auto; padding: 0; }
  .aud-card--cta a { padding: 18px 16px; gap: 6px; }
  .aud-card--cta h3, .aud-card--cta p { align-self: auto; }

  .trust-list { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .trust-list h3 { font-size: 18px; }
  .trust-list p { font-size: 15px; }
  .why-lead { font-size: 15px; margin-bottom: 32px; }
  .why-photos { flex-direction: column; }

  /* Клиенты — бегущая лента в одну строку */
  /* Лента двигается скриптом (js/main.js): палец останавливает, можно листать */
  .partners-marquee {
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter));
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
  }
  .partners-marquee::-webkit-scrollbar { display: none; }
  .partners-grid { display: flex; flex-wrap: nowrap; justify-content: flex-start; width: max-content; gap: 0; }
  .partner { flex: none; width: 150px; margin-right: 12px; }
  .partner--dup { display: flex; }
  .partner-logo { height: 80px; font-size: 15px; }
  .partner-logo img { max-height: 62px; }

  .check-list li { font-size: 15px; gap: 12px; }
  .rent-items { padding: 16px; }
  .rent-chips li { font-size: 14px; padding: 7px 12px; }
  .check { width: 28px; height: 28px; }

  .price-card { padding: 24px; gap: 20px; }
  .big-price b { font-size: 52px; }
  .big-price span { font-size: 17px; }
  .b2b-list li { font-size: 15px; }
  .price-list { columns: 1; }
  .price-list li { font-size: 15px; padding: 11px 0; }
  .pickup { font-size: 13px; }

  .contact-list b { font-size: 17px; }
  .contact-ic { width: 44px; height: 44px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }

  .calc-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; }
  .calc-fab .ic { width: 26px; height: 26px; }
}

/* Если в телефоне включено «уменьшение движения» — лента стоит, листается пальцем */
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .partners-marquee { -webkit-mask-image: none; mask-image: none; }
  .partners-grid { padding-inline: var(--gutter); }
  .partner--dup { display: none; }
}

/* На телефоне всё появляется снизу — без боковых сдвигов */
@media (max-width: 640px) {
  .anim .rv--left, .anim .rv--right { transform: translate3d(0, 36px, 0); }
  .anim .rv--zoom { transform: translate3d(0, 36px, 0) scale(1.05); }
}

/* ---------- Первый экран на телефоне: без видео, фирменный фон и волны ---------- */
@media (max-width: 640px) {
  .hero {
    background:
      radial-gradient(90% 55% at 100% 0%, rgba(54,197,253,.30) 0%, rgba(54,197,253,0) 70%),
      radial-gradient(80% 45% at 0% 70%, rgba(1,48,142,.85) 0%, rgba(1,48,142,0) 75%),
      linear-gradient(165deg, #0A1F4D 0%, #071838 55%, #06132F 100%);
  }
  .hero-video, .hero-overlay { display: none; }
  .hero-waves { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 240px; overflow: hidden; pointer-events: none; }
  .wave { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; animation: hero-wave 24s linear infinite; }
  .wave--back  { fill: rgba(54,197,253,.16); animation-duration: 32s; animation-direction: reverse; }
  .wave--mid   { fill: rgba(1,48,142,.85);  animation-duration: 22s; }
  .wave--front { fill: rgba(54,197,253,.24); animation-duration: 16s; }
  .hero-inner { padding-bottom: 88px; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .wave { animation: none; }
}

/* ---------- Калькулятор ---------- */
.calc-dialog {
  width: min(1040px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  padding: 0; border: 0; border-radius: 14px; background: var(--navy-900); color: #fff; overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 24px 64px rgba(6,19,47,.5);
}
.calc-dialog::backdrop { background: rgba(6,19,47,.72); }
.calc-dialog-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 28px 20px; background: var(--navy-900);
}
.calc-dialog-head h2 { font-weight: 800; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.2; }
.calc-close {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; padding: 0;
  border: 1px solid rgba(255,255,255,.3); border-radius: 8px; background: transparent; color: #fff;
}
.calc-close:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.calc-close .ic { width: 22px; height: 22px; }
.calc-dialog .calc { margin: 0 28px 28px; }
html.modal-open, html.modal-open body { overflow: hidden; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 400px; background: #fff; color: var(--ink); border-radius: 12px; overflow: hidden; }
.calc-form { display: flex; flex-direction: column; gap: 32px; padding: 40px; }
.calc-step { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.calc-step legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 16px; font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.calc-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 15px; font-weight: 800; flex-shrink: 0; }

.calc-spheres { display: flex; flex-wrap: wrap; gap: 10px; }
.calc-chip {
  padding: 11px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--ink); font-size: 15px; font-weight: 500; transition: border-color .15s, background-color .15s, color .15s;
}
.calc-chip:hover { border-color: var(--blue); color: var(--blue); }
.calc-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.calc-items { display: flex; flex-direction: column; gap: 12px; }
.calc-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; background: var(--bg-l); border-radius: var(--radius); }
.calc-item label { display: flex; flex-direction: column; gap: 2px; min-width: 0; cursor: pointer; }
.calc-item-name { font-weight: 600; font-size: 17px; }
.calc-item-hint { font-size: 14px; color: var(--muted); line-height: 1.4; }
.calc-kg { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-weight: 600; color: var(--muted); }
.calc-kg input, .calc-freq input {
  width: 96px; height: 48px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff;
  font: inherit; font-size: 18px; font-weight: 700; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums;
}
.calc-kg input:focus, .calc-freq input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(2,65,168,.15); }

.calc-freq { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.calc-freq input { width: 64px; text-align: center; }
.calc input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.calc input::-webkit-outer-spin-button, .calc input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-stepper { width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); font-size: 22px; font-weight: 600; line-height: 1; }
.calc-stepper:hover { border-color: var(--blue); }
.calc-hint { font-size: 14px; color: var(--muted); margin-left: 8px; }

.calc-result { display: flex; flex-direction: column; gap: 20px; padding: 40px; background: var(--navy); color: #fff; }
.calc-result h3 { font-weight: 700; font-size: 20px; }
.calc-lines { display: flex; flex-direction: column; gap: 12px; }
.calc-lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.16); font-size: 15px; color: rgba(255,255,255,.85); }
.calc-lines b { color: #fff; font-family: var(--font-head); white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc-lines .calc-empty { border: 0; color: rgba(255,255,255,.7); }
.calc-total { display: flex; flex-direction: column; gap: 4px; margin-top: auto; }
.calc-total span { font-size: 15px; color: rgba(255,255,255,.75); }
.calc-total b { font-family: var(--font-head); font-weight: 800; font-size: 44px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc-total small { font-size: 14px; color: var(--sky); }
.calc [hidden] { display: none !important; }
.calc-hint--block { display: block; margin-left: 0; }
.calc-min { padding: 14px 16px; border-radius: 8px; background: rgba(255,214,102,.14); color: #FFD666; font-size: 15px; line-height: 1.5; }
.calc-extra { padding: 10px 14px; border-radius: 8px; background: rgba(54,197,253,.14); color: var(--sky); font-size: 14px; }
.calc-note { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.65); }

@media (max-width: 1180px) {
  .calc { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 960px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc-total { margin-top: 0; }
}
@media (max-width: 640px) {
  .calc-dialog { width: 100%; height: 100%; max-height: none; margin: 0; border-radius: 0; }
  .calc-dialog-head { padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px; }
  .calc-dialog .calc { margin: 0 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .calc-form, .calc-result { padding: 24px 18px; }
  .calc-form { gap: 26px; }
  .calc-step legend { font-size: 17px; align-items: flex-start; }
  .calc-chip { padding: 10px 14px; font-size: 14px; }
  .calc-item { padding: 14px; gap: 12px; }
  .calc-item-name { font-size: 16px; }
  .calc-item-hint { font-size: 13px; }
  .calc-kg input { width: 80px; }
  .calc-hint { margin-left: 0; width: 100%; }
  .calc-total b { font-size: 36px; }
}


/* ---------- H1 первого экрана: надпись + заголовок в одном теге ---------- */
.hero-title { display: flex; flex-direction: column; gap: 28px; }
.hero-title > span:last-child { display: block; }
@media (max-width: 640px) { .hero-title { gap: 20px; } }

/* ---------- Вопросы и ответы ---------- */
.faq { max-width: 880px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item h3 { font-weight: 700; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.35; }
.faq-item > summary:hover h3 { color: var(--blue); }
.faq-item > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
.faq-chevron { width: 22px; height: 22px; flex-shrink: 0; color: var(--blue); transition: transform .25s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item > p { padding: 0 48px 24px 0; font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 760px; }
@media (max-width: 640px) { .faq-item > p { padding-right: 0; } }
@media (prefers-reduced-motion: reduce) { .faq-chevron { transition: none; } }
.nowrap { white-space: nowrap; }
.faq-item > p a { color: var(--blue); }
