/* === ФИКС: убираем пустые белые зоны при медленной загрузке JS === */
/* Проблема: body.ast-premium-loaded .t-rec { display: none } скрывает блоки */
/* Решение: показываем все блоки принудительно */
body.ast-premium-loaded .t-rec {
  display: block !important;
}

/* Стили навигации для телефона в шапке */
.ast-menu__link--phone {
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .ast-menu__link--phone {
    display: none;
  }
}

/* AST mobile hotfix start */
.ast-site-root {
  --ast-mobile-safe-bottom: max(16px, env(safe-area-inset-bottom));
}

@media (max-width: 1040px) {
  .ast-inner {
    width: min(100% - 24px, 1200px);
  }

  .ast-nav__inner {
    min-height: 68px;
    gap: 12px;
  }

  .ast-logo img {
    width: 42px;
    height: 42px;
  }

  .ast-nav__toggle,
  .ast-menu__link,
  .ast-btn,
  .button-link,
  .ast-chip,
  .ast-card__link,
  .ast-cta-card,
  .ast-city-card__link,
  .ast-filter button,
  .ast-messenger-badge,
  .ast-backtop,
  .ast-footer a,
  .ast-phones a,
  .ast-form input[type="checkbox"] + span,
  .ast-form input[type="radio"] + span {
    min-height: 44px !important;
  }

  .ast-nav__toggle {
    min-width: 44px;
    padding: 0 14px;
  }

  .ast-logo,
  .ast-logo--footer {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ast-mobile-nav {
    display: none;
    top: calc(100% + 6px);
    padding: 10px;
    max-height: min(70svh, calc(100vh - 92px));
    overflow: auto;
  }

  .ast-nav.is-open .ast-mobile-nav,
  body.ast-menu-open .ast-mobile-nav {
    display: grid !important;
    gap: 8px;
  }

  .ast-menu {
    max-width: 100%;
    flex-wrap: wrap;
  }

  .ast-menu__link {
    padding: 10px 14px;
  }

  .ast-kicker,
  .ast-tag,
  .ast-tag--hero,
  .ast-messenger-badge,
  .ast-filter button,
  .ast-chip,
  .button-link {
    min-height: 44px;
    padding: 10px 14px;
  }

  .ast-hero__content {
    padding-top: 120px;
    padding-bottom: 32px;
  }

  .ast-hero h1,
  .ast-model h1 {
    font-size: clamp(42px, 11vw, 56px);
    line-height: 1.04;
  }

  .ast-hero__lead,
  .ast-subtitle {
    font-size: 18px;
    line-height: 1.5;
  }

  .ast-actions,
  .ast-messenger-row,
  .ast-button-row {
    gap: 10px;
  }

  .ast-actions > *,
  .ast-button-row > * {
    width: 100%;
  }

  .ast-section {
    padding: 56px 0;
  }

  .ast-section h2 {
    font-size: clamp(30px, 8vw, 40px);
  }

  .ast-proof,
  .ast-model-grid,
  .ast-process,
  .ast-detail-grid,
  .ast-video-grid,
  .ast-city-grid,
  .ast-offer-grid {
    grid-template-columns: 1fr !important;
  }

  .ast-card__media img,
  .ast-model__gallery img,
  .ast-hero__image {
    background: #101214;
  }

  .ast-sticky {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    min-height: 56px;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 34px rgba(15, 17, 20, 0.18);
  }

  .ast-sticky__row,
  .ast-sticky__buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .ast-site-root.has-sticky-offset .ast-form,
  .ast-site-root.has-sticky-offset .t-form,
  .ast-site-root.has-sticky-offset .ast-footer {
    scroll-margin-bottom: 96px;
  }

  .ast-site-root.ast-sticky-hidden .ast-sticky {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
  }

  .ast-backtop {
    bottom: calc(84px + env(safe-area-inset-bottom)) !important;
  }

  .ast-footer a,
  .ast-phones a,
  .ast-contact-mini__item a,
  .ast-consent a,
  .ast-legalbox a,
  .ast-breadcrumbs a,
  .breadcrumbs a,
  .breadcrumb a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
/* AST mobile hotfix end */

/* AST traffic launch hotfix start */
.ast-traffic-hidden {
  display: none !important;
}

.ast-nav .ast-menu__link,
.ast-nav .ast-menu-more > summary {
  color: #202429 !important;
}

.ast-nav .ast-menu__link:hover,
.ast-nav .ast-menu__link:focus,
.ast-nav .ast-menu__link:focus-visible,
.ast-nav .ast-menu__link:active,
.ast-nav .ast-menu-more > summary:hover,
.ast-nav .ast-menu-more > summary:focus,
.ast-nav .ast-menu-more > summary:focus-visible,
.ast-nav .ast-menu-more > summary:active {
  background: #fff !important;
  color: #111315 !important;
}

.ast-nav .ast-menu__link.is-current,
.ast-nav .ast-menu__link.is-current:hover,
.ast-nav .ast-menu__link.is-current:focus,
.ast-nav .ast-menu__link.is-current:focus-visible,
.ast-nav .ast-menu__link.is-current:active,
.ast-nav .ast-menu__link[href*="/offers"],
.ast-nav .ast-menu__link[href*="/offers"]:hover,
.ast-nav .ast-menu__link[href*="/offers"]:focus,
.ast-nav .ast-menu__link[href*="/offers"]:focus-visible,
.ast-nav .ast-menu__link[href*="/offers"]:active {
  background: #111315 !important;
  color: #fff !important;
}

.ast-nav .ast-menu__link[href*="t.me"],
.ast-nav .ast-menu__link[href*="t.me"]:hover,
.ast-nav .ast-menu__link[href*="t.me"]:focus,
.ast-nav .ast-menu__link[href*="t.me"]:focus-visible,
.ast-nav .ast-menu__link[href*="t.me"]:active {
  background: #d71920 !important;
  color: #fff !important;
}

.ast-city-section {
  grid-template-columns: 1fr !important;
}

.ast-city-section__intro {
  display: none !important;
}

.ast-city-list,
.ast-city-list--single {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

.ast-site-root.ast-contacts .ast-section:has(.ast-city-section) {
  display: none !important;
}

.ast-model-grid .ast-card:has(a[href*="/bmw-x7"]),
.ast-model-grid .ast-card:has(img[alt*="BMW X7"]),
.ast-model-grid .ast-card:has(img[src*="bmw-x7-card"]),
.ast-model-grid .ast-card:has(a[href*="/mercedes-benz-s-class-import"]),
.ast-model-grid .ast-card:has(img[alt*="Mercedes-Benz S-Class"]),
.ast-model-grid .ast-card:has(img[src*="mercedes-benz-s-clas"]) {
  display: none !important;
}

.ast-launch-capture,
.ast-launch-capture *,
.ast-traffic-sticky,
.ast-traffic-sticky *,
.ast-offers-filter,
.ast-offers-filter * {
  box-sizing: border-box;
}

.ast-launch-capture {
  margin-top: 22px;
  width: min(720px, 100%);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  color: #111315;
  box-shadow: 0 22px 54px rgba(0, 0, 0, .24);
  backdrop-filter: blur(14px);
}

.ast-launch-capture--light {
  border-color: #dfe3e8;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 17, 20, .08);
}

.ast-launch-capture__inner {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.ast-launch-capture__eyebrow {
  color: #b3151b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ast-launch-capture h2 {
  margin: 0;
  color: #111315;
  font-size: 24px;
  line-height: 1.16;
}

.ast-launch-capture p {
  margin: 0;
  color: #555d66;
}

.ast-launch-capture__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ast-launch-capture__proof span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f2f4f6;
  color: #202429;
  font-size: 12px;
  font-weight: 700;
}

.ast-launch-form {
  display: grid;
  gap: 10px;
}

.ast-launch-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ast-launch-form label {
  display: grid;
  gap: 5px;
  color: #424951;
  font-size: 12px;
  font-weight: 700;
}

.ast-launch-form input,
.ast-launch-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd1d8;
  border-radius: 8px;
  background: #fff;
  color: #111315;
  padding: 11px 12px;
  font: inherit;
  font-size: 15px;
}

.ast-launch-form input:focus,
.ast-launch-form select:focus {
  outline: 2px solid rgba(215, 25, 32, .28);
  border-color: #d71920;
}

.ast-launch-form__consent {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 8px !important;
  color: #5b626b !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.ast-launch-form__consent input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.ast-launch-form__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
}

.ast-launch-form .ast-btn {
  min-height: 48px;
  border-radius: 8px;
}

.ast-launch-form__status {
  min-height: 20px;
  color: #45505a;
  font-size: 13px;
}

.ast-launch-capture--bar {
  width: min(860px, 100%);
  margin-top: 16px;
}

.ast-launch-capture--bar.ast-lead-form-floating {
  position: fixed;
  top: var(--ast-lead-form-top, 88px);
  left: 50%;
  z-index: 1595;
  width: min(574px, calc(100vw - 28px));
  margin: 0;
  transform: translateX(-50%);
  border-radius: 8px;
  border-color: rgba(210, 216, 224, .92);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 14px 34px rgba(15, 17, 20, .16);
}

.ast-launch-capture--bar.ast-lead-form-in-nav {
  position: static;
  flex: 0 0 var(--ast-lead-form-nav-width, 320px);
  width: var(--ast-lead-form-nav-width, 320px);
  max-width: var(--ast-lead-form-nav-width, 320px);
  margin: 0;
  transform: none;
  border-radius: 8px;
  border-color: rgba(210, 216, 224, .9);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 10px 24px rgba(15, 17, 20, .08);
}

.ast-has-floating-lead-form .ast-site-root {
  padding-top: var(--ast-lead-form-space, 62px);
}

.ast-has-inline-lead-form .ast-site-root {
  padding-top: 0;
}

.ast-launch-capture--bar .ast-launch-capture__inner {
  display: block;
  padding: 7px;
}

.ast-launch-capture--bar .ast-launch-capture__eyebrow,
.ast-launch-capture--bar p,
.ast-launch-capture--bar .ast-launch-capture__proof {
  display: none !important;
}

.ast-launch-capture--bar h2 {
  display: none !important;
}

.ast-launch-capture--bar .ast-launch-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 6px;
}

.ast-launch-capture--bar .ast-launch-form__grid {
  display: block;
  min-width: 0;
}

.ast-launch-capture--bar .ast-launch-form__grid label:not(.ast-launch-contact-label) {
  display: none !important;
}

.ast-launch-capture--bar .ast-launch-contact-label {
  gap: 0;
  font-size: 0;
}

.ast-launch-capture--bar .ast-launch-form input {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.ast-launch-capture--bar .ast-launch-form__actions {
  display: block;
  min-width: 128px;
}

.ast-launch-capture--bar.ast-lead-form-in-nav .ast-launch-form__actions {
  min-width: 86px;
}

.ast-launch-capture--bar .ast-launch-form__actions a,
.ast-launch-capture--bar .ast-launch-form__consent {
  display: none !important;
}

.ast-launch-capture--bar .ast-launch-form .ast-btn {
  width: 100%;
  min-width: 0 !important;
  min-height: 34px;
  height: 34px;
  padding: 7px 11px;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.ast-launch-capture--bar.ast-lead-form-in-nav .ast-launch-form .ast-btn {
  font-size: 0;
}

.ast-launch-capture--bar.ast-lead-form-in-nav .ast-launch-form .ast-btn::after {
  content: "Расчет";
  font-size: 13px;
}

.ast-launch-capture--bar .ast-launch-form__status {
  grid-column: 1 / -1;
  min-height: 0;
  font-size: 12px;
  line-height: 1.25;
}

.ast-launch-capture--bar .ast-launch-form__status:empty {
  display: none;
}

.ast-traffic-sticky {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 1600;
  display: none;
  grid-template-columns: 1.2fr .9fr .8fr .8fr;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(17, 17, 17, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 42px rgba(15, 17, 20, .22);
  backdrop-filter: blur(16px);
}

.ast-traffic-sticky a {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 9px 8px;
  text-decoration: none;
  color: #111315 !important;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.ast-traffic-sticky a:first-child {
  background: #d71920;
  color: #fff !important;
}

.ast-traffic-sticky a[data-ast-sticky="telegram"] {
  background: #111315;
  color: #fff !important;
}

.ast-traffic-sticky a[data-ast-sticky="max"],
.ast-traffic-sticky a[data-ast-sticky="phone"] {
  background: #f1f3f5;
}

.ast-site-root.has-traffic-sticky {
  padding-bottom: 82px;
}

.ast-site-root.ast-sticky-hidden .ast-traffic-sticky {
  display: none !important;
}

.ast-offers-page a[href="#main"],
.ast-offers-page a[href="#content"],
.ast-offers-page .skip-link,
.ast-offers-page .ast-skip-link {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.ast-offers-page a[href="#main"]:focus,
.ast-offers-page a[href="#content"]:focus,
.ast-offers-page .skip-link:focus,
.ast-offers-page .ast-skip-link:focus {
  left: 12px !important;
  top: 12px !important;
  z-index: 2500 !important;
  width: auto !important;
  height: auto !important;
  padding: 10px 14px !important;
  clip: auto !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #111315 !important;
  box-shadow: 0 12px 30px rgba(15, 17, 20, .18) !important;
}

.ast-video-poster {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #101214;
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
}

.ast-video-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 17, 20, .16), rgba(15, 17, 20, .72));
}

.ast-video-poster__inner {
  position: relative;
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 22px;
}

.ast-video-poster__play {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #d71920;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 18px 38px rgba(215, 25, 32, .24);
}

.ast-video-poster__text {
  font-weight: 800;
  font-size: 17px;
}

.ast-offers-filter {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 17, 20, .05);
}

.ast-offers-filter--in-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 18px;
}

.ast-offers-filter input,
.ast-offers-filter select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #cbd1d8;
  border-radius: 8px;
  background: #fff;
  color: #111315;
  padding: 10px 11px;
  font: inherit;
}

.ast-offer-card-hidden {
  display: none !important;
}

.ast-offers-filter {
  display: none !important;
}

a.ast-btn[href="#offersGrid"] {
  display: none !important;
}

section.ast-section:has(a[href="https://avtonds.ru/porsche-import"]),
section.ast-section:has(a[href="/porsche-import"]) {
  display: none !important;
}

.ast-version-section {
  background: #f3f5f7 !important;
}

.ast-version-section .ast-version-layout {
  grid-template-columns: minmax(0, 1fr) minmax(330px, .92fr) !important;
  gap: 56px !important;
  align-items: start !important;
}

.ast-version-section h2 {
  max-width: 520px !important;
}

.ast-version-section .ast-subtitle {
  max-width: 590px !important;
}

.ast-version-metrics {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px !important;
  margin: 26px 0 18px !important;
}

.ast-version-metrics span {
  min-height: 64px;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid #d9dde3;
  border-radius: 8px;
  background: #fff;
  color: #202429;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
}

.ast-version-metrics b {
  color: #d71920;
  font-size: 11px;
  font-weight: 850;
}

.ast-version-section .ast-toolbar {
  margin: 0 0 14px !important;
  gap: 8px !important;
}

.ast-version-section .ast-chip {
  border-color: #cfd5dd !important;
  background: #fff !important;
}

.ast-version-section .ast-chip.is-active {
  border-color: #111315 !important;
  background: #111315 !important;
  color: #fff !important;
}

.ast-version-card {
  position: relative;
  overflow: hidden;
  padding: 26px 28px 24px !important;
  border: 1px solid #d7dce3 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 22px 58px rgba(18, 24, 31, .08) !important;
}

.ast-version-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: #d71920;
}

.ast-version-card .ast-variant__headline {
  display: block !important;
  max-width: 520px;
  margin-bottom: 14px !important;
  color: #111315 !important;
  font-size: 28px !important;
  font-weight: 850 !important;
  line-height: 1.05 !important;
}

.ast-version-card .ast-muted {
  max-width: 560px;
  color: #5b626b !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
}

.ast-version-card .ast-variant__bullets {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  margin-top: 18px !important;
}

.ast-version-card .ast-variant__bullets li {
  min-height: 0 !important;
  padding: 10px 0 10px 28px !important;
  color: #252a31 !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
}

.ast-version-card .ast-variant__bullets li::before {
  top: 16px !important;
}

.ast-version-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.ast-version-cta .ast-btn {
  min-height: 46px !important;
  padding: 13px 18px !important;
  border-radius: 8px !important;
}

.ast-version-outcomes {
  padding: 28px 30px !important;
  border: 1px solid #d7dce3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 22px 58px rgba(18, 24, 31, .07);
}

.ast-version-outcomes__head {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e3e6eb;
}

.ast-version-outcomes__head span {
  display: block;
  margin-bottom: 8px;
  color: #d71920;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.ast-version-outcomes__head b {
  display: block;
  color: #111315;
  font-size: 24px;
  font-weight: 850;
  line-height: 1.1;
}

.ast-version-outcomes__head small {
  display: block;
  margin-top: 8px;
  color: #6b737d;
  font-size: 14px;
  line-height: 1.35;
}

.ast-version-outcomes .ast-list {
  counter-reset: version-outcomes;
}

.ast-version-outcomes .ast-list li {
  counter-increment: version-outcomes;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 15px 0 !important;
  color: #252a31 !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
}

.ast-version-outcomes .ast-list li::before {
  content: counter(version-outcomes) !important;
  position: static !important;
  width: 28px !important;
  height: 28px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f3f5f7 !important;
  color: #d71920 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  transform: none !important;
}

.ast-referral-amount {
  white-space: nowrap;
}

.ast-nowrap {
  white-space: nowrap;
}

.ast-sample-card--filled {
  background: #111315 !important;
  border-color: #111315 !important;
  color: #fff !important;
  box-shadow: 0 24px 56px rgba(15, 17, 20, .22) !important;
}

.ast-path--filled {
  background: #111315 !important;
  border-color: #111315 !important;
  color: #fff !important;
  box-shadow: 0 24px 56px rgba(15, 17, 20, .22) !important;
}

.ast-site-root .ast-sample-card--filled,
.ast-site-root .ast-sample-card--dark.ast-sample-card--filled {
  background: #111315 !important;
  border-color: #111315 !important;
  color: #fff !important;
  box-shadow: 0 24px 56px rgba(15, 17, 20, .22) !important;
}

.ast-site-root .ast-sample-card--filled h3,
.ast-site-root .ast-sample-card--filled p,
.ast-site-root .ast-sample-card--filled li {
  color: #fff !important;
}

.ast-site-root .ast-sample-card--filled p,
.ast-site-root .ast-sample-card--filled li {
  color: rgba(255, 255, 255, .78) !important;
}

.ast-site-root .ast-sample-card--filled .ast-inline-meta span,
.ast-site-root .ast-sample-card--filled .ast-sample-card__eyebrow {
  background: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
}

.ast-path--filled h3,
.ast-path--filled p,
.ast-path--filled li {
  color: #fff !important;
}

.ast-path--filled p,
.ast-path--filled li {
  color: rgba(255, 255, 255, .78) !important;
}

.ast-path--filled .ast-inline-meta span,
.ast-path--filled .ast-path__eyebrow {
  background: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
}

.ast-offer-risk-note {
  margin: 10px 0 0;
  color: #6a727d;
  font-size: 13px;
  line-height: 1.35;
}

.ast-related-offers {
  border-top: 1px solid #e4e6ea;
  background: #f7f8fa;
}

.ast-related-offers__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.ast-related-offers__head h2 {
  margin: 0;
}

.ast-related-offers__subtitle {
  max-width: 760px;
  margin: 8px 0 0;
  color: #5f6873;
  font-size: 17px;
  line-height: 1.45;
}

.ast-related-offers__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ast-related-offer {
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 17, 20, .06);
}

.ast-related-offer__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: #101214;
  overflow: hidden;
}

.ast-related-offer__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ast-related-offer__body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.ast-related-offer__eyebrow {
  margin: 0;
  color: #6a727d;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.ast-related-offer h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.16;
}

.ast-related-offer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #5b626b;
  font-size: 14px;
}

.ast-related-offer__meta span {
  padding: 7px 10px;
  border-radius: 8px;
  background: #eef1f4;
  color: #2c3136;
  font-weight: 700;
}

.ast-related-offer__price {
  color: #111315;
  font-size: 18px;
  font-weight: 800;
}

.ast-related-offer__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ast-related-offer__actions .ast-btn {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 14px;
  text-align: center;
}

/* Public offers page fallback: keeps /offers usable even when the external offers API stylesheet fails. */
.ast-offers-page {
  color: #111315;
  background: #f7f8fa;
  font-family: Inter, Arial, sans-serif;
  line-height: 1.45;
  min-height: 100vh;
}

.ast-offers-page *,
.ast-offers-page *::before,
.ast-offers-page *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.ast-offers-page a {
  color: inherit;
  text-decoration: none;
}

.ast-offers-page .ast-inner,
.ast-offers-page .offer-detail {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.ast-offers-page .offer-detail {
  max-width: 980px;
}

.ast-offers-page .ast-nav {
  position: sticky;
  top: 0;
  z-index: 1500;
  border-bottom: 1px solid rgba(17, 17, 17, .08);
  background: rgba(248, 249, 250, .96);
  color: #111315;
  backdrop-filter: blur(14px);
}

.ast-offers-page .ast-nav__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.ast-offers-page .ast-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.ast-offers-page .ast-logo img {
  width: 54px;
  height: 54px;
  display: block;
  object-fit: contain;
  border-radius: 6px;
  background: #050607;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
}

.ast-offers-page .ast-logo--footer img {
  width: 44px;
  height: 44px;
  box-shadow: none;
}

.ast-offers-page .ast-menu {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.ast-offers-page .ast-menu::-webkit-scrollbar {
  display: none;
}

.ast-offers-page .ast-menu__link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid rgba(17, 17, 17, .10);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  color: #202429 !important;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(15, 17, 20, .04);
}

.ast-offers-page .ast-menu__link:hover,
.ast-offers-page .ast-menu__link:focus-visible {
  border-color: rgba(215, 25, 32, .42);
  background: #fff;
  color: #111315 !important;
}

.ast-offers-page .ast-menu__link.is-current {
  border-color: #d71920;
  background: #d71920;
  color: #fff !important;
}

.ast-offers-page .ast-offers-hero {
  color: #fff;
  background: linear-gradient(96deg, rgba(6, 6, 7, .94), rgba(6, 6, 7, .80)), #101214;
}

.ast-offers-page .ast-offers-hero__grid {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: end;
  padding: 112px 0 72px;
}

.ast-offers-page .ast-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
}

.ast-offers-page .ast-breadcrumbs a {
  color: rgba(255, 255, 255, .86);
}

.ast-offers-page .ast-kicker,
.ast-offers-page .ast-path__eyebrow,
.ast-offers-page .eyebrow {
  color: #d71920;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.ast-offers-page .ast-kicker,
.ast-offers-page .ast-path__eyebrow {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 8px;
}

.ast-offers-page .ast-kicker {
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .92);
}

.ast-offers-page .ast-path__eyebrow {
  margin-bottom: 14px;
  background: rgba(215, 25, 32, .08);
}

.ast-offers-page h1,
.ast-offers-page h2,
.ast-offers-page p {
  margin: 0;
}

.ast-offers-page .ast-offers-hero h1 {
  max-width: 820px;
  color: #fff;
  font-size: 68px;
  line-height: 1.04;
}

.ast-offers-page .ast-hero__lead {
  max-width: 720px;
  margin-top: 22px;
  color: rgba(255, 255, 255, .92);
  font-size: 22px;
  line-height: 1.45;
}

.ast-offers-page .ast-actions,
.ast-offers-page .offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ast-offers-page .ast-btn,
.ast-offers-page .button-link,
.ast-offers-page .order-form button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid #b3151b;
  border-radius: 8px;
  background: #b3151b;
  color: #fff !important;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(179, 21, 27, .18);
}

.ast-offers-page .ast-btn--dark,
.ast-offers-page .button-link.secondary {
  border-color: #0f1114;
  background: #0f1114;
  box-shadow: 0 14px 32px rgba(15, 17, 20, .18);
}

.ast-offers-page .ast-offers-hero__panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
}

.ast-offers-page .ast-offers-hero__panel span,
.ast-offers-page .ast-offers-hero__panel p {
  color: rgba(255, 255, 255, .74);
}

.ast-offers-page .ast-offers-hero__panel strong {
  display: block;
  margin: 10px 0 12px;
  color: #fff;
  font-size: 40px;
  line-height: 1;
}

.ast-offers-page .ast-section {
  padding: 86px 0;
}

.ast-offers-page .ast-section-head,
.ast-offers-page .offer-detail-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.ast-offers-page .ast-section h2,
.ast-offers-page .offer-detail h1 {
  color: #111315;
  font-size: 44px;
  line-height: 1.16;
}

.ast-offers-page .ast-subtitle {
  max-width: 620px;
  color: #5b626b;
  font-size: 18px;
  line-height: 1.58;
}

.ast-offers-page .offers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ast-offers-page .offer-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid #dadde2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 17, 20, .04);
}

.ast-offers-page .offer-media {
  width: 100%;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #dfe5eb;
}

.ast-offers-page .offer-media img,
.ast-offers-page .detail-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ast-offers-page .offer-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.ast-offers-page .offer-card h2 {
  color: #111315;
  font-size: 24px;
  line-height: 1.15;
}

.ast-offers-page .offer-meta {
  display: grid;
  gap: 4px;
}

.ast-offers-page .offer-meta strong,
.ast-offers-page .detail-price strong {
  color: #111315;
  font-size: 23px;
}

.ast-offers-page .offer-meta span,
.ast-offers-page .public-muted {
  color: #5b626b;
}

.ast-offers-page .offer-actions {
  margin-top: auto;
  gap: 8px;
}

.ast-offers-page .offer-actions .button-link {
  flex: 1 1 150px;
  min-height: 42px;
  padding: 10px 13px;
  font-size: 14px;
}

.ast-offers-page .offers-table-wrap {
  margin-top: 28px;
  overflow-x: auto;
  border: 1px solid #dadde2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 17, 20, .04);
}

.ast-offers-page .offers-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.ast-offers-page .offers-table th,
.ast-offers-page .offers-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e6e8eb;
  text-align: left;
}

.ast-offers-page .offers-table th {
  color: #5b626b;
  font-size: 13px;
  font-weight: 650;
}

.ast-offers-page .offers-table a,
.ast-offers-page .back-link {
  color: #b3151b;
  font-weight: 700;
}

.ast-offers-page .public-empty,
.ast-offers-page .order-form {
  padding: 22px;
  border: 1px solid #dadde2;
  border-radius: 8px;
  background: #fff;
  color: #5b626b;
  box-shadow: 0 18px 40px rgba(15, 17, 20, .04);
}

.ast-offers-page .back-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
}

.ast-offers-page .back-link::before {
  content: "<";
  margin-right: 8px;
}

.ast-offers-page .detail-price {
  display: grid;
  gap: 4px;
  text-align: right;
}

.ast-offers-page .detail-price span {
  color: #5b626b;
}

.ast-offers-page .detail-image {
  height: auto;
  border: 1px solid #dadde2;
  border-radius: 8px;
  background: #dfe5eb;
  box-shadow: 0 18px 40px rgba(15, 17, 20, .04);
}

.ast-offers-page .ast-anchor {
  display: block;
  scroll-margin-top: 96px;
}

.ast-offers-page .order-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.ast-offers-page .order-form h2 {
  color: #111315;
  font-size: 28px;
}

.ast-offers-page .order-form label {
  display: grid;
  gap: 6px;
  color: #5b626b;
  font-size: 13px;
}

.ast-offers-page .order-form input,
.ast-offers-page .order-form textarea {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 13px 12px;
  border: 1px solid #c8ccd2;
  border-radius: 8px;
  background: #fff;
  color: #111315;
  font: inherit;
}

.ast-offers-page .order-form textarea {
  min-height: 104px;
}

.ast-offers-page .ast-footer {
  padding: 28px 0;
  background: #101214;
  color: #fff;
}

.ast-offers-page .ast-footer__inner,
.ast-offers-page .ast-footer__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ast-offers-page .ast-footer__brand {
  justify-content: flex-start;
}

.ast-offers-page .ast-footer span,
.ast-offers-page .ast-footer a {
  color: rgba(255, 255, 255, .78);
}

@media (max-width: 980px) {
  .ast-offers-page .ast-offers-hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ast-offers-page .offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .ast-offers-page .ast-inner,
  .ast-offers-page .offer-detail {
    width: min(100% - 28px, 1200px);
  }

  .ast-offers-page .ast-nav__inner,
  .ast-offers-page .ast-section-head,
  .ast-offers-page .offer-detail-head,
  .ast-offers-page .ast-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .ast-offers-page .ast-offers-hero__grid {
    padding: 72px 0 46px;
  }

  .ast-offers-page .ast-offers-hero h1 {
    font-size: 42px;
  }

  .ast-offers-page .ast-hero__lead {
    font-size: 18px;
  }

  .ast-offers-page .ast-section {
    padding: 54px 0;
  }

  .ast-offers-page .ast-section h2,
  .ast-offers-page .offer-detail h1 {
    font-size: 34px;
  }

  .ast-offers-page .offers-grid {
    grid-template-columns: 1fr;
  }

  .ast-offers-page .offers-table-wrap {
    display: none;
  }

  .ast-offers-page .detail-price {
    text-align: left;
  }

  .ast-version-section .ast-version-layout {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .ast-version-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
    margin: 18px 0 14px !important;
  }

  .ast-version-metrics span {
    min-height: 54px;
    padding: 8px 7px;
    font-size: 11px;
  }

  .ast-version-metrics b {
    font-size: 10px;
  }

  .ast-version-card,
  .ast-version-outcomes {
    padding: 20px 18px !important;
    border-radius: 9px !important;
  }

  .ast-version-card .ast-variant__headline {
    font-size: 22px !important;
  }

  .ast-version-card .ast-variant__bullets {
    grid-template-columns: 1fr !important;
  }

  .ast-version-card .ast-muted,
  .ast-version-card .ast-variant__bullets li,
  .ast-version-outcomes .ast-list li {
    font-size: 14px !important;
  }

  .ast-version-outcomes__head b {
    font-size: 21px;
  }

  .ast-version-cta {
    display: grid !important;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1040px) {
  .ast-traffic-sticky {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .ast-traffic-sticky a {
    min-height: 38px;
    padding: 7px 6px;
    font-size: 12px;
  }

  .ast-site-root.has-traffic-sticky .ast-sticky {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: none !important;
  }

  .ast-site-root.has-traffic-sticky .ast-backtop {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .ast-launch-capture {
    margin-top: 18px;
  }

  .ast-launch-capture__inner {
    padding: 14px;
  }

  .ast-launch-capture h2 {
    font-size: 21px;
  }

  .ast-launch-form__grid,
  .ast-launch-form__actions,
  .ast-offers-filter,
  .ast-related-offers__grid {
    grid-template-columns: 1fr;
  }

  .ast-related-offers__head {
    display: grid;
    align-items: start;
    gap: 14px;
  }

  .ast-related-offers__subtitle {
    font-size: 15px;
  }

  .ast-launch-capture--bar .ast-launch-capture__inner {
    padding: 7px;
  }

  .ast-launch-capture--bar.ast-lead-form-floating {
    width: calc(100vw - 18px);
  }

  .ast-launch-capture--bar .ast-launch-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ast-launch-capture--bar .ast-launch-form__actions {
    min-width: 108px;
  }

  .ast-launch-capture--bar .ast-launch-form .ast-btn {
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 10px !important;
    font-size: 0;
  }

  .ast-offers-filter--in-content {
    width: calc(100vw - 18px);
    max-width: calc(100vw - 18px);
  }

  .ast-launch-capture--bar .ast-launch-form .ast-btn::after {
    content: "Расчет";
    font-size: 13px;
  }

  .ast-has-floating-lead-form .ast-traffic-sticky {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .ast-has-floating-lead-form .ast-traffic-sticky a {
    min-height: 38px;
    padding: 7px 6px;
    font-size: 12px;
  }

  .ast-has-floating-lead-form .ast-traffic-sticky a[data-ast-sticky="calc"] {
    display: none !important;
  }

  .ast-related-offers,
  .ast-model #video,
  .ast-model .ast-footer {
    content-visibility: auto;
  }

  .ast-related-offers {
    contain-intrinsic-size: 1120px;
  }

  .ast-model #video {
    contain-intrinsic-size: 940px;
  }

  .ast-model .ast-footer {
    contain-intrinsic-size: 260px;
  }
}

@media (max-width: 680px) {
  .ast-nav,
  .ast-offers-page .ast-nav {
    padding: 4px 0 !important;
  }

  .ast-nav__inner,
  .ast-offers-page .ast-nav__inner {
    min-height: 38px !important;
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center !important;
    flex-direction: initial !important;
    gap: 7px !important;
  }

  .ast-nav .ast-logo,
  .ast-offers-page .ast-logo {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .ast-nav .ast-logo img,
  .ast-offers-page .ast-logo img {
    width: 32px !important;
    height: 32px !important;
    border-radius: 5px !important;
    box-shadow: none !important;
  }

  .ast-nav .ast-nav__toggle {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    width: 70px !important;
    min-width: 70px !important;
    min-height: 39px !important;
    padding: 0 10px !important;
    border-radius: 9px !important;
  }

  .ast-nav .ast-mobile-nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .ast-nav .ast-menu,
  .ast-offers-page .ast-menu {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100% !important;
    margin-left: 0 !important;
    gap: 5px !important;
    align-self: center;
  }

  .ast-nav .ast-menu__link,
  .ast-offers-page .ast-menu__link {
    min-height: 31px !important;
    padding: 6px 9px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
    box-shadow: none !important;
  }

  .ast-offers-page .ast-offers-hero__grid {
    min-height: 0 !important;
    padding: 38px 0 32px !important;
  }

  .ast-offers-page .ast-breadcrumbs {
    margin-bottom: 8px !important;
    font-size: 11.5px !important;
  }

  .ast-offers-page .ast-kicker {
    min-height: 25px !important;
    margin-bottom: 10px !important;
    padding: 3px 7px !important;
  }

  .ast-offers-page .ast-offers-hero h1 {
    font-size: 34px !important;
    line-height: 1.03 !important;
  }

  .ast-offers-page .ast-hero__lead {
    margin-top: 12px !important;
    font-size: 15.5px !important;
    line-height: 1.42 !important;
  }

  .ast-launch-capture--bar.ast-lead-form-floating,
  .ast-launch-capture--bar.ast-lead-form-in-mobile-nav {
    width: calc(100vw - 10px) !important;
    border-radius: 9px !important;
  }

  .ast-launch-capture--bar.ast-lead-form-in-mobile-nav {
    position: static !important;
    grid-column: 2;
    grid-row: 1;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
    transform: none !important;
    box-shadow: 0 10px 26px rgba(15, 17, 20, .10) !important;
  }

  .ast-launch-capture--bar .ast-launch-capture__inner {
    padding: 4px !important;
  }

  .ast-launch-capture--bar .ast-launch-form {
    gap: 4px !important;
  }

  .ast-launch-capture--bar .ast-launch-form input {
    min-height: 34px !important;
    height: 34px !important;
    padding: 5px 9px !important;
    font-size: 12px !important;
  }

  .ast-launch-capture--bar .ast-launch-form__actions {
    min-width: 70px !important;
  }

  .ast-launch-capture--bar .ast-launch-form .ast-btn {
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 7px !important;
  }

  .ast-has-floating-lead-form .ast-site-root {
    padding-top: var(--ast-lead-form-space, 36px) !important;
  }

  .ast-has-mobile-inline-lead-form .ast-site-root {
    padding-top: 0 !important;
  }

  .ast-has-mobile-inline-lead-form .ast-traffic-sticky {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ast-has-mobile-inline-lead-form .ast-traffic-sticky a[data-ast-sticky="calc"] {
    display: none !important;
  }
}

@media (max-width: 390px) {
  .ast-traffic-sticky {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ast-launch-capture--bar .ast-launch-form__actions {
    min-width: 68px !important;
  }

  .ast-has-floating-lead-form .ast-traffic-sticky {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ast-has-mobile-inline-lead-form .ast-traffic-sticky {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* AST traffic launch hotfix end */
