/* WIWO site patch 26.08.2026 — promo + bot CTA */
.promo-banner {
  background: linear-gradient(90deg, #0f766e, #115e59);
  color: #fff;
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.promo-banner p { margin: 0; }
.bot-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
  align-items: stretch;
}
.bot-cta .btn {
  flex: 1 1 140px;
  justify-content: center;
  text-align: center;
}
.bot-cta--hero {
  flex-direction: column;
  max-width: 420px;
  margin-top: 0;
}
.bot-cta--hero .btn {
  width: 100%;
}
.bot-cta--header {
  display: none !important;
}
.bot-cta--sticky {
  width: auto;
  margin-top: 0;
  gap: 0.5rem;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}
.bot-cta--sticky .btn {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.65rem 1rem;
  line-height: 1.2;
  white-space: nowrap;
}
.bot-cta--sticky .bot-cta__badge {
  width: 1.1rem;
  height: 1.1rem;
  font-size: 0.65rem;
  margin-right: 0.25rem;
}
.bot-cta--sticky .bot-cta__tg .contact-channels__icon {
  width: 16px;
  height: 16px;
}
.contact-float {
  display: none !important;
}
.sticky-bar__copy {
  flex: 1 1 auto;
  min-width: 0;
}
.sticky-bar__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  line-height: 1.35;
}
.sticky-bar__text strong {
  font-size: 0.875rem;
  font-weight: 800;
  color: #fff;
}
.sticky-bar__hint {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}
.sticky-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.sticky-bar__actions {
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .bot-cta--hero {
    flex-direction: row;
  }
  .bot-cta--hero .btn {
    width: auto;
  }
}
.bot-cta--float {
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}
.bot-cta--float .btn {
  font-size: 0.78rem;
  padding: 0.55rem 0.75rem;
  justify-content: center;
}
.bot-cta__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #fff;
  color: #2563eb;
  font-weight: 800;
  font-size: 0.75rem;
  margin-right: 0.35rem;
}
.bot-cta__tg {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.contact-float__stack--bots {
  align-items: stretch;
}
.lead-card--bots h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--text-dark, #1b1717);
}
.lead-card--bots p {
  margin: 0 0 0.75rem;
  color: var(--text-dark-muted, #5c5656);
  opacity: 1;
}
.section--dark .lead-card--bots .lead-card__title,
.section--final .lead-card--bots .lead-card__title {
  color: var(--text-dark, #1b1717);
}
.section--dark .lead-card--bots .lead-card__text,
.section--final .lead-card--bots .lead-card__text {
  color: var(--text-dark-muted, #5c5656);
  opacity: 1;
}
.case-card--new .case-card__brand {
  color: #0f766e;
}

.case-card.is-ad-focus {
  outline: 2px solid #cc1419;
  outline-offset: 2px;
  box-shadow: 0 8px 28px rgba(204, 20, 25, 0.18);
}

/* Все новые авто на главной — сетка вниз, не карусель */
#inventory .cases-nav[data-track="inventory-track"] {
  display: none !important;
}
#inventory-track.cases-track--inventory-all {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  scroll-snap-type: none !important;
  padding-bottom: 0;
}
#inventory-track.cases-track--inventory-all .case-card,
#inventory-track.cases-track--inventory-all button.case-card {
  flex: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  scroll-snap-align: unset !important;
  display: flex !important;
  flex-direction: column;
  height: auto;
}
#inventory-track.cases-track--inventory-all .case-card .media-block {
  width: 100%;
  flex: 0 0 auto;
}
#inventory-track.cases-track--inventory-all .case-card__body {
  flex: 1 1 auto;
}
@media (min-width: 768px) {
  #inventory-track.cases-track--inventory-all {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.bot-picker {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.bot-picker[hidden] {
  display: none !important;
}
.bot-picker__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 18, 0.72);
}
.bot-picker__panel {
  position: relative;
  width: min(100%, 420px);
  background: #12121a;
  color: #fff;
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.bot-picker__panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}
.bot-picker__panel p {
  margin: 0 0 1rem;
  opacity: 0.85;
  line-height: 1.45;
}
.bot-picker__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.bot-cta--modal {
  flex-direction: column;
}
.bot-cta--modal .btn {
  width: 100%;
  justify-content: center;
}
button.case-card {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  color: inherit;
  background: var(--bg-card);
}
button.case-card:focus-visible {
  outline: 2px solid var(--accent, #cc1419);
  outline-offset: 2px;
}
.fast-offers-page .case-card h3 {
  color: var(--text-dark, #1b1717);
}
body.bot-picker-open {
  overflow: hidden;
}

/* Bot funnel modal — 1:1 с квиз-воронкой */
.wq.wq--funnel {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  /* Горизонтальный gutter — иначе sheet визуально «уезжает» от центра на мобилке */
  padding: 0 max(10px, env(safe-area-inset-right, 0px)) 0 max(10px, env(safe-area-inset-left, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .wq.wq--funnel {
    align-items: center;
    padding: clamp(16px, 3vh, 28px);
  }
}

.wq.wq--funnel .wq__panel--funnel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 440px;
  height: auto;
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 8px);
  margin: 0 auto;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .wq.wq--funnel .wq__panel--funnel {
    border-radius: 20px;
  }
}

.wq.wq--funnel .wq__close--funnel {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.wq.wq--funnel .wq__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 1.35rem 1.15rem 1.25rem;
  padding-bottom: max(1.35rem, env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.wq.wq--funnel .wq__screen--start {
  flex: none;
  min-height: min-content;
  justify-content: flex-start;
  gap: 0.85rem;
  width: 100%;
  box-sizing: border-box;
}

.wq.wq--funnel .wq__eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  padding-right: 2.5rem;
}

.wq.wq--funnel .wq__screen--start .wq__title {
  font-family: var(--font-display, "Unbounded", sans-serif);
  font-size: clamp(1.35rem, 5.2vw, 1.65rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.wq.wq--funnel .wq__text {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.wq.wq--funnel .wq__bonuses {
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.wq.wq--funnel .wq__bonus {
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 0;
}

.wq.wq--funnel .wq__bonus strong {
  font-size: 0.8125rem;
  line-height: 1.25;
  text-wrap: balance;
}

.wq.wq--funnel .wq__bonus span {
  font-size: 0.75rem;
  line-height: 1.35;
}

.wq.wq--funnel .wq__gifts-label {
  margin: 0.55rem 0 -0.1rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8a0a2;
}

.wq.wq--funnel .wq__bonuses--gifts .wq__bonus {
  background: rgba(224, 32, 44, 0.1);
  border-color: rgba(224, 32, 44, 0.32);
}

.wq.wq--funnel .wq__funnel-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  margin-top: 0.5rem;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 0.65rem 0 0.15rem;
  background: linear-gradient(180deg, rgba(18, 18, 26, 0) 0%, #12121a 28%);
}

.wq.wq--funnel .wq__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
  min-height: 3.25rem;
  padding: 0.95rem 1.1rem;
  border: 0;
  border-radius: 12px;
  background: var(--accent, #e0202c);
  color: #fff;
  font-family: var(--font-body, "Manrope", sans-serif);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.wq.wq--funnel .wq__cta:hover {
  background: var(--accent-hover, #c41c26);
}

.wq.wq--funnel .wq__cta--secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  font-weight: 700;
}

.wq.wq--funnel .wq__cta--secondary:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.06);
}

.wq.wq--funnel .wq__cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-body, "Manrope", sans-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.wq.wq--funnel .wq__cta-link .contact-channels__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.wq.wq--funnel .wq__cta-link:hover {
  color: rgba(255, 255, 255, 0.85);
}

.wq.wq--funnel .wq__note {
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.15rem;
  text-align: center;
}

.wq.wq--funnel .wq__car-note {
  margin: -0.25rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e8a0a2;
}

/* Кастом: CTA в потоке. Need-car — sticky снизу (кнопки видны, бонусы скроллятся сверху). */
.wq.wq--funnel .wq__screen--custom .wq__funnel-actions {
  position: static;
  margin: 0.85rem 0 0.35rem;
  padding: 0;
  background: none;
}

.wq.wq--funnel .wq__screen--need-car .wq__cta,
.wq.wq--funnel .wq__screen--custom .wq__cta {
  min-height: 3.4rem;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.wq.wq--funnel .wq__text-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
  font: inherit;
  font-size: inherit;
}

.wq.wq--funnel .wq__text-btn:hover {
  color: #fff;
}

#inventory.inventory--pulse {
  outline: 2px solid rgba(196, 48, 54, 0.85);
  outline-offset: 8px;
  border-radius: 12px;
  transition: outline-color 0.3s ease;
}

@media (max-width: 380px) {
  .wq.wq--funnel .wq__bonuses {
    grid-template-columns: 1fr;
  }

  .wq.wq--funnel .wq__screen--start .wq__title {
    font-size: 1.25rem;
  }
}

.wq__car-note {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e8a0a2;
}

.sticky-bar {
  display: none !important;
}
.cat-page {
  padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
}

.page-offset {
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  .page-offset {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 767px) {
  #lead-form.lead-card--bots .bot-cta,
  .section--final .lead-card--bots .bot-cta {
    flex-direction: column;
    gap: 0.65rem;
  }
  #lead-form.lead-card--bots .bot-cta .btn,
  .section--final .lead-card--bots .bot-cta .btn {
    width: 100%;
    flex: none;
    white-space: normal;
    text-align: center;
  }

  .sticky-bar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding-block: 0.65rem 0.75rem;
  }
  .sticky-bar__text {
    text-align: center;
  }
  .sticky-bar__text strong {
    font-size: 0.8125rem;
  }
  .sticky-bar__hint {
    font-size: 0.6875rem;
  }
  .sticky-bar__actions {
    width: 100%;
  }
  .bot-cta--sticky {
    width: 100%;
  }
  .bot-cta--sticky .btn {
    flex: 1 1 0;
    padding: 0.7rem 0.55rem;
    font-size: 0.75rem;
  }
  .contact-float {
    display: none !important;
  }
  .bot-cta--float {
    display: none !important;
  }
  .promo-banner {
    font-size: 0.78rem;
    padding: 0.55rem 0.75rem;
  }
  #inventory-track .case-card--new .media-block__img {
    min-height: 140px;
    object-fit: cover;
  }
}

.inventory-used-link {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.92rem;
}
.inventory-used-link a {
  color: var(--text-muted, #666);
  text-decoration: underline;
}

.section--inventory-china {
  padding-top: 0;
}

#inventory + .section--inventory-used {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 0;
  padding-top: clamp(2rem, 4vw, 3rem);
}

.fast-offers-page .fast-offers-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.fast-offers-search {
  flex: 1 1 220px;
  max-width: 420px;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font: inherit;
}
.fast-offers-count {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.fast-offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}
.fast-offers-card {
  height: 100%;
}
.fast-offers-page {
  padding-bottom: calc(var(--sticky-h, 64px) + 1.25rem + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 767px) {
  .fast-offers-page,
  .page-offset {
    padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
  }
}
.fast-offers-footer-note {
  margin-top: 2rem;
  text-align: center;
  color: var(--text-muted);
}
.cat-head__promo {
  margin-top: 0.5rem;
  color: #0f766e;
  font-weight: 600;
}
