@font-face {
  font-family: 'tenet-sans';
  src: url('https://static.tildacdn.com/tila3863-3264-4630-a636-613964663034/TENETSans-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'tenet-sans';
  src: url('https://static.tildacdn.com/tila3239-6364-4539-b934-616130643935/TENETSans-SemiExpand.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --t-text-font: 'tenet-sans', Arial, sans-serif !important;
  --t-headline-font: 'tenet-sans', Arial, sans-serif !important;
}

body, html, div, p, span, a, h1, h2, h3, h4, h5, h6, button, input, select, textarea,
.t-body, .t-records, .t396, .t396__artboard, .tn-atom, .tn-atom__button-text,
.t-text, .t-name, .t-title, .t-descr, .t-btn, .t-input, .t-quiz, .t702, .t1040,
.tenet-catalog-section, .tenet-car-card, .tenet-modal-box {
  font-family: 'tenet-sans', Arial, sans-serif !important;
}


/* HIDE TILDA BADGE */
.t-tildalаbеl, #tilda-copyright, #tilda-copy, a[href*="tilda.cc"], .t-tildalаbеl__link-wrapper {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  min-height: 0 !important;
}


/* PREVENT HORIZONTAL SCROLL ON MOBILE */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  position: relative;
}
.t-records, .t396, .t1003, #allrecords {
  overflow-x: hidden !important;
}


/* ========================================================
   ФИКСАЦИЯ ШАПКИ ПРИ СКРОЛЛЕ
   ======================================================== */
#t-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 999999 !important;
  width: 100% !important;
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(33, 28, 25, 0.06) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#t-header .t396 {
  background: #ffffff !important;
}


/* STRICT CIRCLE BUTTONS FOR MODAL CLOSE & ARROWS */
button.tenet-modal-close,
.tenet-modal-close {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

button.tenet-gal-nav,
.tenet-gal-nav {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}


/* ========================================================
   ФИКСАЦИЯ ШАПКИ НАВЕРХУ ЭКРАНА ПРИ СКРОЛЛЕ (FIXED)
   ======================================================== */
#t-header,
.skm-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 999999 !important;
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

body {
  padding-top: 110px !important;
}

@media (max-width: 1080px) {
  body {
    padding-top: 65px !important;
  }
}

/* ========================================================
   ИСПРАВЛЕНИЯ КНОПОК И МОБИЛЬНОГО ВЬЮПОРТА (430px+ / 320-480px)
   ======================================================== */

/* 1. ОБЯЗАТЕЛЬНО: ВО ВСЕХ КНОПКАХ ОБЫЧНЫЙ ШРИФТ (400) И НИКАКИХ ПЕРЕНОСОВ */
button,
a.t-btn,
.t-btn,
.t-btnflex,
.t-btnflex__text,
.tn-atom__button-text,
.t396 a.tn-atom,
.t396 button.tn-atom,
.tenet-btn,
.tenet-btn *,
.skm-call-btn,
.tenet-tab-btn,
.tenet-tab-btn *,
.tenet-btn-show-all,
.tenet-card-btn-book,
.tenet-card-btn-credit,
.tenet-card-details-link,
.tenet-cbtn,
.tenet-cbtn *,
.tenet-social-btn,
.tenet-social-pill,
.t1040__btn,
.t1040 button,
.t702 [type="submit"],
.btn-offer,
.offer-button-text {
  font-weight: 400 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
}

/* 2. Глобальный запрет горизонтального скролла на всех устройствах */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#allrecords,
.t-records,
.t396,
.t396__artboard,
.t396__carrier,
.t396__filter {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

/* 3. Адаптивные правила для мобильных экранов (до 680px, включая 430px iPhone Pro Max) */
@media (max-width: 680px) {
  /* Запрет распирания flex-групп Zero Block */
  .t396__artboard .tn-group,
  .t396__artboard .tn-molecule,
  .t396__artboard .t396__elem-flex {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Адаптация заголовков, вылезавших за пределы 430px */
  .tn-elem__54892326012026082004550000009 .tn-atom {
    font-size: 22px !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    max-width: calc(100vw - 32px) !important;
  }
  .tn-elem__54892339011470209944682 .tn-atom {
    font-size: 22px !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    max-width: calc(100vw - 32px) !important;
  }
  .direct-title .tn-atom,
  .tn-group__5489234201175792204679558510 .tn-atom {
    font-size: 24px !important;
    max-width: calc(100vw - 32px) !important;
  }

  /* Вертикальный стек двух кнопок в карточке модели (Тест-драйв и Зафиксировать выгоду) */
  .tn-molecule:has(.tn-elem__54892326012026082004550000074),
  .t396__elem:has(.tn-elem__54892326012026082004550000074) {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }
  .tn-elem__54892326012026082004550000074,
  .tn-elem__54892326012026082004550000073 {
    width: 100% !important;
    max-width: 100% !important;
  }
  .tn-elem__54892326012026082004550000074 a.tn-atom,
  .tn-elem__54892326012026082004550000073 a.tn-atom {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 14px !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
  }

  /* Кнопка "Смотреть все автомобили в наличии" */
  .tenet-btn-show-all {
    width: calc(100vw - 32px) !important;
    max-width: 360px !important;
    padding: 13px 16px !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
  }

  /* Куки-баннер */
  .tenet-cookie-banner {
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    box-sizing: border-box !important;
  }
  .tenet-cbtn {
    width: 100% !important;
    box-sizing: border-box !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
  }

  /* Карточки авто в наличии: предотвращение наложения цены и выгоды */
  .tenet-card-price-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }
  .tenet-card-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }
  .tenet-btn-primary, .tenet-btn-secondary {
    width: 100% !important;
    justify-content: center !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
  }
}

/* 4. Фикс отображения иконки локации в контактах */
.tn-elem__5489235601175799312463190100,
.tn-elem__5489235601175799312463190100 .tn-atom {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  display: block !important;
}

/* Бегущая строка: строгое ограничение по ширине экрана */
#rec5489232301,
.t1003,
.t1003__wrapper,
.t1003__content-wrapper {
  max-width: 100vw !important;
  overflow: hidden !important;
}

/* Принудительный font-weight: 400 для абсолютно всех внутренних span и text кнопок */
.tn-atom__button-text,
.tn-atom__button-text *,
.tn-atom__button-content,
.tn-atom__button-content * {
  font-weight: 400 !important;
  white-space: nowrap !important;
}


/* Запрет жирности и переносов для табов моделей и кнопок карточек */
[data-elem-type="tabs"] span,
[data-elem-type="tabs"] .tn-atom__button-text,
[data-elem-type="tabs"] *,
.model-btn,
.model-btn *,
.tn-elem[class*="model-btn"],
.tn-elem[class*="model-btn"] * {
  font-weight: 400 !important;
  white-space: nowrap !important;
}


span.tn-atom__button-text,
div.tn-atom__button-content,
.t396 span.tn-atom__button-text,
.t396 .tn-atom__button-text,
.t396 [data-elem-type="button"] *,
.t396 [data-elem-type="tabs"] * {
  font-weight: 400 !important;
}


/* ========================================================
   СТИЛИЗАЦИЯ КВИЗА №1 (ВЫГОДА И ТРЕЙД-ИН)
   ======================================================== */
#rec5489233201 .t-container {
  max-width: 1600px !important;
  padding: 0 40px !important;
}

#rec5489233201 .t-btnflex.t-btnflex_type_button,
#rec5489233201 .t-btnflex.t-btnflex_type_submit,
#rec5489233201 .t1040 button[type="button"]:not(.t-btnflex_type_button2) {
  background-color: #C30E23 !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  font-weight: 400 !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 14px rgba(195, 14, 35, 0.2) !important;
}

#rec5489233201 .t-btnflex.t-btnflex_type_button:hover,
#rec5489233201 .t-btnflex.t-btnflex_type_submit:hover {
  background-color: #a50c1d !important;
}

#rec5489233201 .t-btnflex.t-btnflex_type_button2 {
  background-color: #F7F0EB !important;
  color: #211c19 !important;
  border: 1px solid rgba(97, 89, 82, 0.2) !important;
  border-radius: 12px !important;
  font-weight: 400 !important;
}

#rec5489233201 input:checked ~ .t-img-select__control,
#rec5489233201 .t-img-select__control.t-img-select__control_active {
  border-color: #C30E23 !important;
  box-shadow: 0 4px 14px rgba(195, 14, 35, 0.15) !important;
}

/* ========================================================
   СКРЫТИЕ ПУСТЫХ ЛИНИЙ В ТАБАХ МОДЕЛЕЙ НА МОБИЛЬНЫХ
   ======================================================== */
@media (max-width: 680px) {
  .tn-elem__54892326012026082004550000012,
  .tn-elem__54892326011790668189517000003,
  .tn-elem__54892326011787302214100000020 {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
  }
}