/* ==========================================================================
   АвиаИмпульс — основные стили
   Мобильная вёрстка первична, десктоп добавляется через min-width.
   ========================================================================== */

:root {
  --navy: #0b1f3a;
  --navy-soft: #14315a;
  --blue: #1467d6;
  --blue-dark: #0f52ad;
  --sky: #e8f1fd;
  --sky-deep: #cfe2fb;
  --ink: #101828;
  --muted: #5a6a83;
  --line: #dfe6f0;
  --bg: #ffffff;
  --bg-muted: #f5f8fc;
  --warm: #ff8a3d;
  --success: #12855a;
  --danger: #c8352b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 45px rgba(11, 31, 58, .10);
  --shadow-sm: 0 6px 18px rgba(11, 31, 58, .08);
  --container: 1180px;
}

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

/* Атрибут hidden обязан скрывать элемент независимо от display-правил ниже. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 860px; }

/* --- Кнопки --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--light { background: #fff; color: var(--navy); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }

.link-action { font-weight: 700; white-space: nowrap; }

/* --- Верхняя полоса и шапка ---------------------------------------------- */
.topbar {
  background: var(--navy);
  color: #c9d8ec;
  font-size: 13px;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { color: #fff; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.logo:hover { text-decoration: none; }
.logo__mark {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  flex: none;
}
.logo__text { display: flex; flex-direction: column; }
.logo__title { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.logo__title--light { color: #fff; font-size: 22px; }
.logo__tagline { font-size: 11px; color: var(--muted); }

.nav { order: 3; width: 100%; display: none; }
.nav__list { display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 0; padding: 8px 0; }
.nav__link { display: block; padding: 10px 4px; color: var(--navy); font-weight: 600; font-size: 15px; }
.nav__link:hover { color: var(--blue); text-decoration: none; }

.nav-toggle:checked ~ .nav { display: block; }

.nav-burger {
  margin-left: auto;
  display: grid;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--navy); }

.header__contact { display: flex; align-items: center; gap: 12px; width: 100%; order: 4; }
.header__phone { font-weight: 800; color: var(--navy); white-space: nowrap; }

/* --- Герой (по мотивам макета: светлый фон, крупный заголовок) ------------ */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--sky-deep) 0%, var(--sky) 55%, var(--bg-muted) 100%);
  color: var(--ink);
  padding: 48px 0 56px;
}
.hero__inner { display: grid; gap: 0; justify-items: center; text-align: center; }
.hero__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--navy-soft);
  margin-bottom: 14px;
}
.hero__title {
  font-size: clamp(30px, 6vw, 58px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--ink);
  max-width: 16em;
  margin-bottom: .35em;
}
.hero__text { font-size: 17px; color: var(--muted); max-width: 38em; }
.hero__plane { max-width: 760px; margin: 8px auto 26px; }
.hero__plane img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.badge {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.badge--warm { background: rgba(255, 138, 61, .18); border-color: rgba(255, 138, 61, .4); }

/* --- Калькулятор перелётов -------------------------------------------------- */
.calc {
  width: 100%;
  max-width: 980px;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
  text-align: left;
}
.calc__tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.calc__tab {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.calc__tab.is-active { background: var(--sky); border-color: var(--blue); color: var(--blue-dark); }

.calc__grid { display: grid; gap: 12px; align-items: end; }
.calc__swap {
  align-self: center;
  justify-self: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--sky);
  color: var(--blue-dark);
  font-size: 18px;
  cursor: pointer;
}
.calc__submit { margin-top: 14px; }

.field--suggest { position: relative; }
.suggest {
  position: absolute;
  z-index: 20;
  top: 100%; left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  max-height: 280px;
  overflow-y: auto;
}
.suggest__item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.suggest__item:hover, .suggest__item.is-active { background: var(--sky); }
.suggest__city { font-weight: 700; }
.suggest__name { color: var(--muted); font-size: 12px; display: block; }
.suggest__iata { color: var(--blue); font-weight: 800; flex: none; }

.calc__result { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.calc__route { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.calc__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  background: var(--sky);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 12px;
}
.calc__total strong { font-size: 28px; font-weight: 800; color: var(--navy); }
.calc__breakdown { list-style: none; padding: 0; margin: 0 0 12px; font-size: 14px; color: var(--muted); display: grid; gap: 4px; }
.calc__breakdown li { display: flex; justify-content: space-between; gap: 14px; }
.calc__contact { display: grid; gap: 0; margin-top: 14px; }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }

/* --- Поля ----------------------------------------------------------------- */
.field { display: block; margin-bottom: 14px; }
.field__label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.field__input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
textarea.field__input { resize: vertical; min-height: 84px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 6px 0 16px; }
.consent input { margin-top: 4px; flex: none; }

.form-status { margin: 12px 0 0; font-size: 14px; min-height: 1.2em; }
.form-status--error { color: var(--danger); }
.form-status--success { color: var(--success); }

/* --- Показатели ----------------------------------------------------------- */
.stats { background: var(--navy-soft); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; padding: 28px 20px; }
.stats__value { display: block; font-size: 26px; font-weight: 800; }
.stats__label { font-size: 13px; color: #b9cbe4; }

/* --- Секции --------------------------------------------------------------- */
.section { padding: 56px 0; }
.section--muted { background: var(--bg-muted); }
.section__head { max-width: 720px; margin-bottom: 32px; }
.section__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.section__title { font-size: clamp(24px, 4vw, 36px); }
.section__lead { color: var(--muted); font-size: 17px; }
.section__split { display: grid; gap: 32px; align-items: center; }
.section__media img { border-radius: var(--radius); box-shadow: var(--shadow-sm); width: 100%; }

.checklist { list-style: none; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sky);
  color: var(--blue);
  font-size: 12px; font-weight: 800;
}
.checklist--light li::before { background: rgba(255, 255, 255, .2); color: #fff; }

/* --- Карточки услуг ------------------------------------------------------- */
.cards { display: grid; gap: 18px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--sky);
  color: var(--blue);
  margin-bottom: 14px;
}
.card__title { font-size: 18px; }
.card__text { color: var(--muted); margin: 0; font-size: 15px; }

/* --- Направления ---------------------------------------------------------- */
.destinations { display: grid; gap: 18px; }
.destination {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.destination__image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.destination__body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.destination__title { font-size: 18px; margin: 0; }
.destination__meta { color: var(--muted); font-size: 14px; margin: 0; }
.destination__price { font-size: 20px; font-weight: 800; color: var(--navy); margin: 6px 0 12px; }
.destination__price span { font-size: 13px; font-weight: 500; color: var(--muted); display: block; }
.destination .btn { margin-top: auto; align-self: flex-start; }

/* --- Промоблок ------------------------------------------------------------ */
.promo { background: linear-gradient(135deg, var(--navy) 0%, var(--blue-dark) 100%); color: #fff; padding: 48px 0; }
.promo__inner { display: grid; gap: 28px; align-items: center; }
.promo__title { font-size: clamp(24px, 4vw, 34px); }
.promo__text { color: #d5e2f4; }
.promo__side { display: grid; gap: 16px; }
.promo__image { border-radius: var(--radius); width: 100%; object-fit: cover; }
.promo__code {
  border: 2px dashed rgba(255, 255, 255, .45);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.promo__code-label { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #b9cbe4; }
.promo__code-value { display: block; font-size: 32px; font-weight: 800; letter-spacing: .06em; }

/* --- Таблицы -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.price-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.price-table th, .price-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th { background: var(--bg-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.price-table tbody tr:last-child td { border-bottom: none; }

.requisites { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.requisites th, .requisites td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.requisites th { width: 38%; color: var(--muted); font-weight: 600; }

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

/* --- Галерея, отзывы, FAQ, новости --------------------------------------- */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.gallery__item { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__item figcaption { padding: 10px 12px; font-size: 13px; color: var(--muted); }

.reviews { display: grid; gap: 18px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.review__stars { color: #f5a623; letter-spacing: .1em; margin: 0 0 10px; }
.review__text { color: var(--ink); }
.review__person { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.review__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.review__author { font-weight: 700; margin: 0; }
.review__meta { color: var(--muted); font-size: 13px; margin: 0; }

.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 18px; }
.faq__question { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; }
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after { content: '+'; float: right; color: var(--blue); font-size: 22px; line-height: 1; }
.faq__item[open] .faq__question::after { content: '−'; }
.faq__answer { color: var(--muted); padding-bottom: 14px; margin: 0; }

.news { display: grid; gap: 18px; }
.news__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.news__image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news__body { padding: 20px; }
.news__meta { color: var(--blue); font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.news__title { font-size: 18px; }
.news__text { color: var(--muted); font-size: 15px; margin: 0; }

/* --- Контакты и формы ----------------------------------------------------- */
.contact-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.lead-card, .pay-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px;
}
.lead-card__title { font-size: 22px; }
.lead-card__text { color: var(--muted); font-size: 15px; }

/* --- Внутренние страницы -------------------------------------------------- */
.page { padding: 40px 0 64px; }
.page__title { font-size: clamp(26px, 5vw, 38px); }
.page__lead { color: var(--muted); font-size: 17px; margin-bottom: 28px; }

.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs span { margin: 0 6px; }

.legal h2 { font-size: 20px; margin-top: 1.8em; }
.legal p, .legal li { color: #223047; }
.legal__revision { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.doc-list { list-style: none; padding: 0; display: grid; gap: 8px; }

.pay-form__row { display: grid; gap: 0; }
.pay-form__total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0; border-top: 1px solid var(--line); margin-top: 8px;
}
.pay-form__total strong { font-size: 24px; font-weight: 800; }

.info-box { margin-top: 32px; background: var(--bg-muted); border-radius: var(--radius); padding: 24px; }
.info-box__title { font-size: 19px; }
.steps { padding-left: 1.2em; color: #223047; }
.steps li { margin-bottom: 8px; }

.order-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 22px; margin-bottom: 24px; }
.order-card__row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.order-card__row:last-child { border-bottom: none; }
.order-card__row span { color: var(--muted); }

.status { font-weight: 800; }
.status--paid { color: var(--success); }
.status--canceled, .status--expired, .status--failed { color: var(--danger); }
.status--pending, .status--created { color: var(--warm); }

.order-actions { margin-bottom: 24px; }

.alert { border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 20px; }
.alert p { margin: 0; }
.alert--success { background: #e6f6ef; color: #0c6b48; }
.alert--error { background: #fdecea; color: #9c2a22; }

.result { text-align: center; padding: 40px 0; }
.result__icon {
  width: 76px; height: 76px; margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 30px; font-weight: 800;
}
.result--success .result__icon { background: #e6f6ef; color: var(--success); }
.result--fail .result__icon { background: #fdecea; color: var(--danger); }
.result__title { font-size: clamp(24px, 5vw, 34px); }
.result__text { color: var(--muted); max-width: 34em; margin: 0 auto 22px; }
.result__order { margin-bottom: 18px; }

/* --- Документация API ----------------------------------------------------- */
.api-docs h2 { margin-top: 2em; font-size: 22px; }
.api-docs h3 { margin-top: 1.6em; font-size: 18px; }
.api-docs code { background: var(--bg-muted); padding: 2px 6px; border-radius: 6px; font-size: 14px; }
.api-docs pre {
  background: var(--navy); color: #e6eefb;
  padding: 18px; border-radius: var(--radius-sm);
  overflow-x: auto; font-size: 13px; line-height: 1.6;
}
.api-docs pre code { background: none; color: inherit; padding: 0; }
.api-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.api-table th, .api-table td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; }
.api-table th { background: var(--bg-muted); }

/* --- Подвал --------------------------------------------------------------- */
.footer { background: var(--navy); color: #b9cbe4; padding: 48px 0 28px; margin-top: 0; }
.footer__grid { display: grid; gap: 28px; }
.footer__tagline { font-size: 13px; color: #8fa8c8; margin: 6px 0 12px; }
.footer__about { font-size: 14px; }
.footer__title { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer__list { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.footer a { color: #d5e2f4; }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 20px; font-size: 13px; }
.footer__note { color: #8fa8c8; }

.to-top {
  position: fixed; right: 16px; bottom: 16px;
  width: 44px; height: 44px;
  display: none; place-items: center;
  border-radius: 50%;
  background: var(--blue); color: #fff;
  box-shadow: var(--shadow-sm);
  z-index: 30;
}
.to-top:hover { text-decoration: none; background: var(--blue-dark); }
.to-top.is-visible { display: grid; }

/* --- Планшеты ------------------------------------------------------------- */
@media (min-width: 640px) {
  .calc__grid {
    grid-template-columns: 1fr 44px 1fr;
    grid-template-areas:
      'from swap to'
      'date date2 date2'
      'adults kids kids'
      'cabin cabin cabin';
  }
  .calc__from { grid-area: from; }
  .calc__to { grid-area: to; }
  .calc__swap { grid-area: swap; }
  .calc__date { grid-area: date; }
  .calc__return { grid-area: date2; }
  .calc__adults { grid-area: adults; }
  .calc__kids { grid-area: kids; }
  .calc__cabin { grid-area: cabin; }
  .calc__contact { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .destinations { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .news { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .pay-form__row { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* --- Десктоп -------------------------------------------------------------- */
@media (min-width: 992px) {
  .calc__grid {
    grid-template-columns: 1.2fr 44px 1.2fr 1fr 1fr;
    grid-template-areas:
      'from swap to date date2'
      'adults adults kids kids cabin';
  }
  .header__inner { flex-wrap: nowrap; padding-top: 14px; padding-bottom: 14px; }
  .nav { display: block; order: 0; width: auto; margin: 0 auto; }
  .nav__list { flex-direction: row; gap: 18px; padding: 0; }
  .nav__link { padding: 6px 0; font-size: 14px; }
  .nav-burger { display: none; }
  .header__contact { width: auto; order: 0; }

  .hero { padding: 72px 0 84px; }

  .section { padding: 84px 0; }
  .section__split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .section__split--reverse .section__media { order: 2; }

  .cards { grid-template-columns: repeat(3, 1fr); }
  .destinations { grid-template-columns: repeat(4, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .news { grid-template-columns: repeat(3, 1fr); }
  .promo__inner { grid-template-columns: 2fr 1fr; gap: 48px; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; }
  .to-top { right: 28px; bottom: 28px; }
}

/* --- Адаптивная таблица цен на телефоне ---------------------------------- */
@media (max-width: 639px) {
  .table-wrap { border: none; background: transparent; }
  .price-table { min-width: 0; }
  .price-table thead { display: none; }
  .price-table tbody tr {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    padding: 6px 14px;
  }
  .price-table td { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .price-table td:last-child { border-bottom: none; }
  .price-table td::before { content: attr(data-label); color: var(--muted); font-size: 13px; flex: none; }
}

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