/* ФД ЭКСПРЕСС — лендинг перевозок. Без внешних зависимостей и шрифтов. */

:root {
  --paper: #eef7ff;
  --paper-2: #deeffc;
  --white: #fbfdff;
  --ink: #102942;
  --ink-2: #243e58;
  --muted: #49617a;
  --line: #b9d5eb;
  --line-dark: rgba(244, 241, 233, 0.18);
  --accent: #155bb4;
  --accent-bright: #246dd0;
  --accent-dark: #104783;
  --accent-soft: #d9edff;
  --danger: #a8231b;
  --font: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "Cascadia Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
  --wrap: 1200px;
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

svg {
  display: block;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  font-size: 14px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

/* Верхняя служебная строка */

.topbar {
  background: var(--ink);
  color: #c8dff5;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 9px 0;
}

.topbar__right {
  color: #a4c1dc;
}

/* Шапка */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 241, 233, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 241, 233, 0.97);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}

.brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
}

.brand__mark svg {
  width: 100%;
  height: 100%;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.brand__text strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.brand__text small {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav a {
  position: relative;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

/* Кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--accent-dark);
}

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

.btn:disabled {
  opacity: 0.65;
  cursor: progress;
  transform: none;
}

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

.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn--small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

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

.btn.is-loading .icon {
  display: none;
}

.btn.is-loading {
  cursor: progress;
  opacity: 0.8;
}

/* Первый экран */

.hero {
  position: relative;
  padding: clamp(40px, 5.5vw, 76px) 0 clamp(56px, 7vw, 92px);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--accent);
}

.eyebrow--light {
  color: #b5cfe9;
}

.eyebrow--light .eyebrow__dot {
  background: #83caff;
}

.hero h1 {
  margin: 0 0 24px;
  max-width: 15ch;
  font-size: clamp(34px, 4.5vw, 60px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lead {
  max-width: 52ch;
  margin: 0 0 28px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.micro {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 30px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero__facts li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-2);
}

.hero__facts .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.hero__media {
  position: relative;
}

.hero__shot {
  position: relative;
}

.hero__figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #cce3f6;
}

.hero__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero__caption {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.calc-card {
  position: absolute;
  left: -28px;
  bottom: 18px;
  width: 300px;
  padding: 18px 20px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(18, 22, 26, 0.14);
}

.calc-card__title {
  margin: 0 0 10px;
  font: 600 11px/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.calc-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: calc;
}

.calc-card__list li {
  counter-increment: calc;
  display: flex;
  gap: 9px;
  padding: 4px 0;
  font-size: 13.5px;
  color: var(--ink-2);
}

.calc-card__list li::before {
  content: counter(calc);
  font: 600 11px/1.5 var(--mono);
  color: var(--muted);
}

.calc-card__note {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* Секции */

.section {
  padding: clamp(64px, 8.5vw, 108px) 0;
}

.section--dark {
  background: var(--ink);
  color: var(--paper);
}

.section--bordered {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.section__head--narrow {
  max-width: 620px;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.3vw, 44px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.section__sub {
  max-width: 62ch;
  margin: 0;
  font-size: 16.5px;
  color: var(--muted);
}

.section__sub--light {
  color: #b9d2eb;
}

/* Грузы */

.cargo__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.cargo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.cargo-card--wide {
  grid-column: span 7;
}

.cargo-card--photo:not(.cargo-card--wide) {
  grid-column: span 5;
}

.cargo-card--plain {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
}

.cargo-card--photo {
  display: flex;
  align-items: flex-end;
  min-height: 360px;
  color: #fff;
}

.cargo-card--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cargo-card--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 15, 18, 0.9) 0%, rgba(12, 15, 18, 0.35) 52%, rgba(12, 15, 18, 0.05) 100%);
}

.cargo-card__body {
  position: relative;
  z-index: 1;
  padding: 28px;
  max-width: 44ch;
}

.cargo-card__num {
  margin: 0 0 12px;
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.16em;
  color: var(--accent);
}

.cargo-card--photo .cargo-card__num {
  color: #a5d9ff;
}

.cargo-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.cargo-card p:last-child {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

.cargo-card--photo p:last-child {
  color: rgba(255, 255, 255, 0.84);
}

/* Стоимость */

.pricing__head {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}

.pricing__head h2 {
  margin-bottom: 0;
}

.factors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}

.factor {
  padding: 28px 36px 30px 0;
  border-bottom: 1px solid var(--line-dark);
}

.factor:nth-child(even) {
  padding-left: 36px;
  padding-right: 0;
  border-left: 1px solid var(--line-dark);
}

.factor__num {
  display: block;
  margin-bottom: 16px;
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.16em;
  color: #83caff;
}

.factor h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.factor p {
  max-width: 42ch;
  margin: 0;
  font-size: 14.5px;
  color: #b9d2eb;
}

.pricing__note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 40px;
  padding: 24px 28px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.pricing__note p {
  max-width: 58ch;
  margin: 0;
  font-size: 15px;
  color: #deeffc;
}

/* Процесс */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.step {
  position: relative;
  padding: 26px 26px 0 0;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
  padding-right: 0;
}

.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 38px;
  height: 2px;
  background: var(--accent);
}

.step__num {
  display: block;
  margin-bottom: 20px;
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.14em;
  color: var(--accent);
}

.step h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
}

.step p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* Доверие и реквизиты */

.proof__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.trust {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.trust li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.trust li:last-child {
  border-bottom: 1px solid var(--line);
}

.trust h3 {
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 600;
}

.trust p {
  max-width: 56ch;
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

.requisites {
  position: sticky;
  top: 104px;
  padding: 4px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.requisites__block {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.requisites__block:last-child {
  border-bottom: 0;
}

.requisites__label {
  margin: 0 0 10px;
  font: 500 10.5px/1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.requisites__name {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
}

.requisites__list {
  display: grid;
  gap: 7px;
  margin: 0;
}

.requisites__list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
}

.requisites__list dt {
  color: var(--muted);
}

.requisites__list dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  text-align: right;
}

.doc-list {
  display: grid;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.doc-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-2);
}

.doc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.requisites__note {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* Вопросы */

.faq {
  max-width: 900px;
}

.faq__list {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font: 300 26px/1 var(--font);
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%);
}

.faq details p {
  max-width: 66ch;
  margin: 0 0 24px;
  font-size: 15.5px;
  color: var(--muted);
}

/* Заявка */

.section--lead {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}

.lead__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.lead__copy h2 {
  margin-bottom: 14px;
}

.after-list {
  display: grid;
  gap: 10px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.after-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--ink-2);
}

.after-list span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border: 1px solid #b9b1a0;
  border-radius: 50%;
  font: 600 12px/1 var(--mono);
  color: var(--muted);
}

.lead__note {
  max-width: 46ch;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.lead__form-wrap {
  padding: clamp(22px, 3vw, 36px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(18, 22, 26, 0.08);
}

.form__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.form__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.form__hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.form__hint span {
  color: var(--accent);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.req {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #8f8776;
  border-radius: 3px;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.field select {
  padding-right: 42px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2312161a' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6f6a60;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(226, 83, 31, 0.16);
}

.field--error input,
.field--error select,
.field--error textarea {
  border-color: var(--danger);
  background: #fff8f7;
}

.field__error {
  display: none;
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--danger);
}

.field--error .field__error {
  display: block;
}

.field--check {
  margin-top: 2px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  cursor: pointer;
}

.check input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--accent);
}

.check a {
  color: var(--ink);
}

.field--error .check {
  color: var(--danger);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__legal {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.form__status {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--danger);
}

.form__status:empty {
  min-height: 0;
  margin-top: 0;
}

.lead__success {
  padding: 8px 0;
}

.lead__success:focus {
  outline: none;
}

.success__badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 0 18px;
  background: var(--accent-soft);
  border-radius: 50%;
  color: var(--accent-dark);
}

.success__badge .icon {
  width: 22px;
  height: 22px;
}

.lead__success h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.lead__success p {
  max-width: 52ch;
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--ink-2);
}

.lead__success .success__next {
  margin-bottom: 24px;
  font-size: 13.5px;
  color: var(--muted);
}

/* Подвал */

.site-footer {
  padding: clamp(48px, 6vw, 72px) 0 24px;
  background: var(--ink);
  color: #d7d1c4;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 1fr;
  gap: 48px;
}

.brand--footer .brand__text strong {
  color: var(--paper);
}

.brand--footer .brand__text small {
  color: #b9d2eb;
}

.footer__brand p {
  max-width: 40ch;
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #b5cfe9;
}

.footer__label {
  margin: 0 0 14px;
  font: 500 10.5px/1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b9d2eb;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer__nav a {
  font-size: 14px;
  color: #d7d1c4;
  text-decoration: none;
}

.footer__nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__legal p {
  margin: 0 0 5px;
  font-size: 13px;
  color: #b5cfe9;
}

.footer__legal a {
  color: #d7d1c4;
  font-size: 13px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(244, 241, 233, 0.14);
}

.footer__bottom p {
  margin: 0;
  font-size: 12px;
  color: #b9d2eb;
}

/* Юридическая страница */

.legal-page {
  padding: clamp(40px, 6vw, 72px) 0 88px;
}

.legal {
  max-width: 760px;
}

.legal h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.legal__meta {
  margin: 0 0 32px;
  font: 12px/1.4 var(--mono);
  color: var(--muted);
}

.legal h2 {
  margin: 32px 0 10px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.legal p,
.legal li {
  font-size: 15.5px;
  color: var(--ink-2);
}

.legal ul {
  padding-left: 20px;
}

.legal a {
  color: var(--ink);
}

.legal__back {
  display: inline-block;
  margin-top: 36px;
  font-size: 14px;
}

/* Анимация первого экрана */

@media (prefers-reduced-motion: no-preference) {
  .hero__copy > *,
  .hero__figure {
    animation: rise 0.65s ease both;
  }

  .hero__copy > :nth-child(2) {
    animation-delay: 0.05s;
  }

  .hero__copy > :nth-child(3) {
    animation-delay: 0.1s;
  }

  .hero__copy > :nth-child(4) {
    animation-delay: 0.15s;
  }

  .hero__copy > :nth-child(5) {
    animation-delay: 0.2s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(12px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

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

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

/* Адаптив */

@media (max-width: 1080px) {
  .hero h1 {
    font-size: clamp(34px, 5vw, 50px);
  }

  .calc-card {
    left: -12px;
    bottom: 14px;
    width: 280px;
  }

  .nav {
    gap: 20px;
  }

  .proof__grid,
  .lead__grid {
    gap: 40px;
  }
}

@media (max-width: 920px) {
  .nav {
    display: none;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero h1 {
    max-width: 18ch;
    font-size: clamp(36px, 6.4vw, 54px);
  }

  .hero__media {
    max-width: 680px;
  }

  .calc-card {
    position: static;
    width: auto;
    margin: -36px 18px 0;
  }

  .cargo-card--wide,
  .cargo-card--photo:not(.cargo-card--wide) {
    grid-column: span 12;
  }

  .cargo-card--photo {
    min-height: 320px;
  }

  .pricing__head,
  .proof__grid,
  .lead__grid {
    grid-template-columns: 1fr;
  }

  .pricing__head {
    gap: 16px;
  }

  .factors {
    grid-template-columns: 1fr;
  }

  .factor,
  .factor:nth-child(even) {
    padding: 24px 0;
    border-left: 0;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .step {
    padding: 24px 24px 24px 0;
    border-bottom: 1px solid var(--line);
  }

  .step:nth-child(even) {
    padding-left: 24px;
    border-right: 0;
  }

  .requisites {
    position: static;
  }

  .lead__form-wrap {
    order: 2;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16.5px;
  }

  .wrap {
    width: calc(100% - 36px);
  }

  .topbar__right {
    display: none;
  }

  .site-header__inner {
    min-height: 66px;
    gap: 14px;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .brand__text strong {
    font-size: 13px;
  }

  .brand__text small {
    font-size: 8.5px;
  }

  .btn--small {
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero h1 {
    font-size: clamp(32px, 9vw, 42px);
    max-width: none;
  }

  .lead {
    font-size: 17px;
  }

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

  .hero__actions .btn {
    width: 100%;
  }

  .hero__facts {
    flex-direction: column;
    gap: 8px;
  }

  .calc-card {
    margin: -24px 12px 0;
  }

  .cargo-card--plain {
    grid-column: span 12;
    min-height: 0;
    padding: 24px;
  }

  .cargo-card--photo {
    min-height: 300px;
  }

  .cargo-card__body {
    padding: 22px;
  }

  .pricing__note {
    flex-direction: column;
    align-items: flex-start;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step,
  .step:nth-child(even) {
    padding: 22px 0;
    border-right: 0;
  }

  .step:last-child {
    border-bottom: 0;
  }

  .form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form__head {
    flex-direction: column;
    gap: 6px;
  }

  .lead__form-wrap {
    padding: 20px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
  }
}


