/* ==========================================================================
   RUSTEX — чистая вёрстка без Tilda
   ========================================================================== */

/* Шрифт TildaSans (тот же, что на исходном сайте). Если CDN недоступен,
   используется системный шрифт. Скрипт fetch-remote-assets.sh скачает
   файл в assets/fonts и пропишет локальный путь. */
@font-face {
  font-family: "TildaSans";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../assets/fonts/TildaSans-VF.woff2") format("woff2-variations"),
       url("../assets/fonts/TildaSans-VF.woff2") format("woff2");
}

:root {
  --red: #ff0000;
  --red-dark: #d60000;
  --black: #050505;
  --dark: #101010;
  --dark-2: #202020;
  --slate: #222a2d;
  --gray: #f4f4f4;
  --text: #000;
  --muted: #5c5c5c;
  --white: #fff;

  --radius-xl: 48px;
  --radius-lg: 32px;
  --radius-md: 14px;

  --container: 1200px;
  --gutter: 20px;
  --header-h: 140px;

  --font: "TildaSans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.4;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.center { display: flex; justify-content: center; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 14px 34px;
  border: 2px solid var(--red);
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
  text-transform: uppercase;
  text-align: center;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--white); color: var(--red); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; pointer-events: none; }
.btn--sm { min-height: 44px; padding: 10px 26px; font-size: 15px; }
.btn--lg { min-height: 76px; padding: 18px 46px; font-size: 26px; }
.btn--block { width: 100%; }
.btn--square { border-radius: var(--radius-md); }
.btn--ghost { background: transparent; color: var(--text); border-color: #d5d5d5; }
.btn--ghost:hover { background: #f1f1f1; color: var(--text); }

/* ---------- Секции ---------- */
.section { padding: 70px 0; }
.section--gray { background: var(--gray); }
.section__title {
  margin-bottom: 40px;
  font-size: 52px;
  line-height: 1.1;
  font-weight: 700;
}
.section__title--center { text-align: center; }
.section__subtitle {
  max-width: 820px;
  margin: -24px auto 46px;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
}

/* ==========================================================================
   Шапка
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
}
.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 10px;
  border-bottom: 1px solid #e8e8e8;
}
.header__brand { display: flex; align-items: center; gap: 22px; }
.header__logo { width: 64px; height: 64px; object-fit: contain; }
.header__tagline { font-size: 18px; line-height: 1.35; font-weight: 600; }
.header__actions { display: flex; align-items: center; gap: 28px; }
.header__hint { font-size: 16px; line-height: 1.2; }

.socials { display: flex; gap: 10px; }
.socials__link {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  transition: background-color .2s;
}
.socials__link svg { width: 18px; height: 18px; fill: currentColor; }
.socials__link:hover { background: var(--red); }
.socials--light .socials__link { background: var(--white); color: var(--black); }
.socials--light .socials__link:hover { background: var(--red); color: var(--white); }

.nav__list {
  display: flex;
  justify-content: center;
  gap: 8px 70px;
  flex-wrap: wrap;
}
.nav__list a {
  position: relative;
  display: block;
  padding: 12px 0;
  font-weight: 600;
  font-size: 18px;
  transition: color .2s;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 1px;
  background: var(--red);
  opacity: 0;
  transition: opacity .2s, bottom .2s;
}
.nav__list a:hover { color: var(--red); }
.nav__list a:hover::after { opacity: 1; bottom: 6px; }
.nav__mobile-extra { display: none; }

.burger {
  display: none;
  position: relative;
  width: 32px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
}
.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--red);
  transition: transform .25s, opacity .25s, top .25s;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 10px; }
.burger span:nth-child(3) { top: 20px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ==========================================================================
   Герой
   ========================================================================== */
.hero-wrap { padding: 4px 0 46px; background: var(--gray); }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .62fr);
  grid-template-areas: "content car" "features features";
  align-items: center;
  overflow: hidden;
  padding: 44px 60px 32px;
  border-radius: 40px;
  color: var(--white);
  background:
    radial-gradient(ellipse at 84% 52%, rgba(255,255,255,.20) 0%, rgba(255,255,255,.08) 34%, rgba(255,255,255,0) 60%),
    var(--black);
}
.hero__content { grid-area: content; position: relative; z-index: 1; }
.hero__title {
  font-size: 54px;
  line-height: 1.05;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.hero__lead {
  max-width: 640px;
  margin: 22px 0 32px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 500;
}
.hero__car {
  grid-area: car;
  justify-self: end;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin-right: -20px;
}
.hero__features {
  grid-area: features;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.hero__features li {
  position: relative;
  padding-left: 56px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
  min-height: 43px;
  display: flex;
  align-items: center;
}
.hero__features li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 43px; height: 43px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='21' fill='none' stroke='%23fff' stroke-width='3'/%3E%3Cpath d='m15 24.5 6 6 12-13' fill='none' stroke='%23ff0000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ==========================================================================
   Аукционы
   ========================================================================== */
.partners { padding: 50px 0 30px; }
.partners__title { text-align: center; font-size: 32px; font-weight: 700; line-height: 1.2; margin-bottom: 36px; }
.partners__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  align-items: center;
}
.partners__list a {
  display: grid;
  place-items: center;
  height: 90px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  transition: transform .2s, filter .2s;
}
.partners__list a:hover { transform: translateY(-3px); }
.partners__list img { max-height: 62px; width: auto; object-fit: contain; }

/* ==========================================================================
   Что мы можем привезти
   ========================================================================== */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}
.service {
  min-height: 367px;
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--bg, none) center / cover no-repeat, linear-gradient(160deg, #2a2a2a, #0b0b0b);
}
.service__title { font-size: 38px; line-height: 1.15; font-weight: 600; margin-bottom: 14px; }
.service__list, .service__text { font-size: 24px; line-height: 1.2; font-weight: 500; }
.service__text { max-width: 230px; }

/* ==========================================================================
   Этапы
   ========================================================================== */
.steps {
  padding: 54px 64px;
  border-radius: 57px;
  background: var(--bg, none) center / cover no-repeat, linear-gradient(135deg, #1b1b1b, #050505);
}
.steps__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  grid-auto-flow: column;
  grid-template-rows: repeat(3, auto);
  gap: 28px 28px;
  counter-reset: none;
}
.step {
  display: flex;
  align-items: stretch;
  min-height: 89px;
}
.step__num {
  flex: 0 0 63px;
  display: grid;
  place-items: center;
  margin-right: -14px;
  padding-right: 14px;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  background: rgba(255, 255, 255, .2);
  color: var(--white);
  font-size: 34px;
  font-weight: 700;
}
.step__text {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
}
/* порядок: 01-03 слева, 04-05 + кнопка справа */
.steps__list > :nth-child(4) { grid-column: 2; grid-row: 1; }
.steps__list > :nth-child(5) { grid-column: 2; grid-row: 2; }
.steps__cta { grid-column: 2; grid-row: 3; display: flex; }
.steps__cta .btn { min-height: 89px; font-size: 22px; }

/* ==========================================================================
   Каталог / Отчёты / Просчёт
   ========================================================================== */
.tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.tool {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 434px;
  padding: 32px 40px 40px;
  border-radius: 57px;
  color: var(--white);
  background: var(--bg, none) center / cover no-repeat, var(--slate);
}
.tool__title { font-size: 38px; font-weight: 600; line-height: 1.15; margin-bottom: 14px; }
.tool__text { font-size: 20px; line-height: 1.3; font-weight: 500; }
.tool__btn { margin-top: auto; align-self: flex-start; font-size: 19px; min-height: 60px; }

/* ==========================================================================
   Почему с нами надёжно
   ========================================================================== */
.trust {
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(0, 1fr) minmax(0, 430px);
  grid-template-rows: auto auto;
  gap: 38px 0;
  align-items: start;
}
.trust__card--1 { grid-area: 1 / 1; }
.trust__card--2 { grid-area: 2 / 1; }
.trust__card--3 { grid-area: 1 / 3; }
.trust__card--4 { grid-area: 2 / 3; }
.trust__image {
  grid-area: 1 / 1 / 3 / 4;
  justify-self: center;
  align-self: center;
  width: 617px;
  max-width: 52%;
  z-index: 0;
  pointer-events: none;
}
.trust__card {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-md);
  background: var(--red);
  color: var(--white);
  overflow: hidden;
}
.trust__title {
  padding: 14px 20px 16px;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
}
.trust__text {
  min-height: 128px;
  display: flex;
  align-items: center;
  padding: 14px 20px 14px 160px;
  border-radius: var(--radius-md);
  background: var(--icon, none) left center / auto 100% no-repeat, var(--dark);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 500;
}

/* ==========================================================================
   Менеджеры
   ========================================================================== */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.person {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  background: #b9b3b1;
  color: var(--white);
}
.person__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.person__info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 120px 28px 28px;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.65) 40%, rgba(0,0,0,.95) 100%);
}
.person__name { font-size: 28px; font-weight: 700; line-height: 1.15; }
.person__role { margin: 6px 0 10px; font-size: 19px; font-weight: 600; color: #ff4d4d; }
.person__text { font-size: 17px; line-height: 1.35; font-weight: 500; opacity: .92; }

/* ==========================================================================
   Отзывы
   ========================================================================== */
.reviews {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 30px;
  align-items: end;
}
.reviews .section__title { margin-bottom: 28px; }

.slider {
  position: relative;
  overflow: hidden;
  border-radius: 57px;
  background: var(--dark-2);
  aspect-ratio: 461 / 405;
}
.slider__track {
  display: flex;
  height: 100%;
  transition: transform .5s ease;
}
.slider__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 36px 56px;
}
.slider__arrow {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border: 0;
  background: none;
}
.slider__arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
}
.slider__arrow--prev { left: 12px; }
.slider__arrow--prev::before { transform: translate(-30%, -50%) rotate(45deg); }
.slider__arrow--next { right: 12px; }
.slider__arrow--next::before { transform: translate(-70%, -50%) rotate(-135deg); }
.slider__arrow:hover::before { border-color: var(--red); }

.videos {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 36px;
  border-radius: 57px;
  background: var(--dark);
}
.video {
  position: relative;
  overflow: hidden;
  aspect-ratio: 228 / 420;
  border-radius: 30px;
  background: #1c1c1c;
}
.video__cover {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: none;
}
.video__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.video__cover:hover img { transform: scale(1.04); }
.video video { width: 100%; height: 100%; object-fit: cover; background: #000; }

/* ==========================================================================
   Остались вопросы
   ========================================================================== */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 367px;
  padding: 50px 64px;
  overflow: hidden;
  border-radius: 57px;
  color: var(--white);
  background:
    radial-gradient(ellipse at 83% 55%, rgba(255,255,255,.26) 0%, rgba(255,255,255,.10) 38%, rgba(255,255,255,0) 66%),
    var(--black);
}
.cta__content { position: relative; z-index: 1; max-width: 640px; }
.cta__title { font-size: 51px; font-weight: 700; line-height: 1.1; text-transform: uppercase; }
.cta__text { max-width: 460px; margin: 12px 0 28px; font-size: 26px; line-height: 1.2; font-weight: 500; }
.cta__car {
  position: absolute;
  right: 0;
  top: 50%;
  height: 118%;
  width: auto;
  transform: translateY(-50%);
}

/* ==========================================================================
   Футер
   ========================================================================== */
.footer { padding: 30px 0; background: var(--dark); color: var(--white); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer__logo { width: 90px; height: 90px; object-fit: contain; }
.footer__text { text-align: center; font-size: 15px; font-weight: 600; line-height: 1.5; }

/* ==========================================================================
   Попапы
   ========================================================================== */
body.is-locked { overflow: hidden; }
.modal {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 48px 40px 40px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--text);
  overflow: auto;
}
.modal--quiz { width: min(720px, calc(100% - 32px)); }
.modal::backdrop { background: rgba(0, 0, 0, .7); }
.modal[open] { animation: modal-in .25s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px); } }
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f1f1f1;
}
.modal__close::before, .modal__close::after {
  content: "";
  position: absolute;
  left: 9px; right: 9px; top: 17px;
  height: 2px;
  background: #000;
  transform: rotate(45deg);
}
.modal__close::after { transform: rotate(-45deg); }
.modal__close:hover { background: var(--red); }
.modal__close:hover::before, .modal__close:hover::after { background: #fff; }
.modal__title { padding-right: 30px; font-size: 32px; line-height: 1.15; font-weight: 700; }
.modal__text { margin: 10px 0 24px; font-size: 19px; color: var(--muted); }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 15px; font-weight: 600; }
.input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid #d5d5d5;
  border-radius: 12px;
  background: #fff;
  font-size: 18px;
  transition: border-color .2s;
}
.input::placeholder { color: rgba(0, 0, 0, .45); }
.input:focus { outline: none; border-color: #000; }
.input.is-invalid { border-color: var(--red); background: #fff5f5; }
.form__error { color: var(--red); font-size: 15px; font-weight: 600; }

/* ---------- Квиз ---------- */
.quiz__progress { height: 6px; border-radius: 6px; background: #eee; overflow: hidden; margin: 6px 0 8px; }
.quiz__bar { display: block; height: 100%; width: 20%; background: var(--red); transition: width .3s; }
.quiz__step { display: none; }
.quiz__step.is-active { display: grid; gap: 16px; animation: modal-in .25s ease; }
.quiz__question { margin-bottom: 4px; font-size: 24px; font-weight: 700; line-height: 1.2; }
.quiz__hint { margin-top: -6px; color: var(--muted); }
.quiz__step.is-invalid .quiz__question { color: var(--red); }

.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.option { position: relative; cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 16px 12px 48px;
  border: 1px solid #d5d5d5;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 500;
  transition: border-color .2s, background-color .2s;
}
.option span::before {
  content: "";
  position: absolute;
  left: 16px; top: 50%;
  width: 20px; height: 20px;
  margin-top: -10px;
  border: 2px solid #bdbdbd;
  border-radius: 50%;
  transition: border .2s;
}
.option:hover span { border-color: #999; }
.option input:checked + span { border-color: var(--red); background: #fff3f3; }
.option input:checked + span::before { border: 6px solid var(--red); }
.option input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }

.range__value { font-size: 34px; font-weight: 700; color: var(--red); }
.range { width: 100%; accent-color: var(--red); height: 28px; }
.range__limits { display: flex; justify-content: space-between; color: var(--muted); font-size: 15px; }

.quiz__nav { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.quiz__nav .btn { min-height: 52px; padding: 12px 28px; font-size: 16px; border-radius: 12px; }
.quiz__nav [data-next], .quiz__nav [data-submit] { margin-left: auto; }
.quiz__counter { color: var(--muted); font-size: 15px; }

/* ---------- Успех ---------- */
.success { display: grid; justify-items: center; gap: 12px; padding: 10px 0; text-align: center; }
.success__icon { width: 88px; height: 88px; }
.success__title { font-size: 34px; font-weight: 700; }
.success__text { max-width: 400px; font-size: 19px; color: var(--muted); margin-bottom: 8px; }
.success__timer { font-size: 15px; color: var(--muted); }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1199px) {
  .section__title { font-size: 44px; }
  .hero__title { font-size: 46px; }
  .hero__lead { font-size: 22px; }
  .hero__features li { font-size: 18px; }
  .nav__list { gap: 8px 44px; }
  .trust { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .trust__card--1 { grid-area: auto; }
  .trust__card--2, .trust__card--3, .trust__card--4 { grid-area: auto; }
  .trust__image { display: none; }
  .reviews { grid-template-columns: 1fr; }
  .reviews__side { display: grid; grid-template-columns: 1fr; }
  .slider { max-width: 520px; width: 100%; margin-inline: auto; }
  .service__title, .tool__title { font-size: 32px; }
  .service__list, .service__text { font-size: 21px; }
}

@media (max-width: 980px) {
  :root { --header-h: 76px; }
  .header__tagline, .header__actions { display: none; }
  .header__logo { width: 56px; height: 56px; }
  .header__top { border-bottom: 0; padding-block: 10px; }
  .burger { display: block; }

  .nav {
    position: fixed;
    inset: 76px 0 0 0;
    padding: 20px 0 40px;
    background: var(--white);
    overflow: auto;
    opacity: 0;
    transform: translateY(-12px);
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: center; gap: 4px; }
  .nav__list a { font-size: 22px; padding: 12px 0; }
  .nav__mobile-extra { display: flex; justify-content: center; margin-top: 24px; }

  .section { padding: 50px 0; }
  .section__title { font-size: 36px; margin-bottom: 28px; }
  .section__subtitle { font-size: 18px; margin: -14px auto 30px; }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "content" "car" "features";
    padding: 36px 28px 30px;
  }
  .hero__car { justify-self: center; max-width: 320px; margin: 20px auto 0; }
  .hero__features { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }

  .partners__title { font-size: 26px; }
  .partners__list { grid-template-columns: repeat(3, 1fr); }

  .services, .tools, .team { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .service { min-height: 300px; }
  .tool { min-height: 360px; }

  .steps { padding: 32px 24px; border-radius: 40px; }
  .steps__list { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; max-width: 520px; margin-inline: auto; gap: 16px; }
  .steps__list > :nth-child(n) { grid-column: auto; grid-row: auto; }

  .trust { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }

  .videos { padding: 24px; gap: 14px; border-radius: 40px; }

  .cta { flex-direction: column; align-items: flex-start; padding: 40px 28px 0; border-radius: 40px; }
  .cta__title { font-size: 40px; }
  .cta__text { font-size: 21px; }
  .cta__car { position: static; transform: none; height: auto; width: 80%; max-width: 360px; margin: 10px auto 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .btn--lg { min-height: 60px; padding: 14px 18px; font-size: 18px; width: 100%; }
  .steps__cta .btn { min-height: 64px; font-size: 18px; }
  .section__title { font-size: 30px; }

  .hero-wrap { padding-top: 0; }
  .hero { padding: 30px 20px 26px; border-radius: 28px; }
  .hero__title { font-size: 30px; }
  .hero__lead { font-size: 18px; margin: 14px 0 22px; }
  .hero__features { grid-template-columns: 1fr; gap: 14px; }
  .hero__features li { font-size: 17px; padding-left: 46px; min-height: 34px; }
  .hero__features li::before { width: 34px; height: 34px; }

  .partners__title { font-size: 22px; }
  .partners__list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .partners__list a { height: 72px; }

  .service { padding: 26px 24px; border-radius: 24px; }
  .tool { padding: 26px 24px 30px; border-radius: 32px; }
  .tool__btn { align-self: stretch; }
  .step__text { font-size: 18px; }
  .step__num { font-size: 28px; flex-basis: 54px; }
  .trust__title { font-size: 22px; }
  .trust__text { font-size: 17px; padding-left: 120px; }

  .videos {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .videos::-webkit-scrollbar { display: none; }
  .video { flex: 0 0 62%; scroll-snap-align: center; border-radius: 22px; }
  .slider { border-radius: 36px; }
  .slider__slide { padding: 24px 44px; }

  .cta { padding: 32px 20px 0; border-radius: 28px; }
  .cta__title { font-size: 32px; }
  .cta__text { font-size: 18px; }

  .footer__inner { flex-direction: column; text-align: center; }

  .modal { padding: 44px 20px 24px; border-radius: 24px; }
  .modal__title { font-size: 24px; }
  .quiz__question { font-size: 20px; }
  .options { grid-template-columns: 1fr; }
  .quiz__counter { display: none; }
  .quiz__nav .btn { padding: 12px 18px; font-size: 15px; }
  .quiz__nav [data-next], .quiz__nav [data-submit] { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
