/* Адаптив всего сайта — подключается после Tilda vendor CSS */

/* ========== Глобальные правила ========== */
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body {
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
}

#allrecords .r,
#allrecords .section {
  max-width: 100%;
  overflow-x: clip;
}

#allrecords .t396 {
  max-width: 100%;
  overflow-x: clip;
}

#allrecords .t396__artboard,
#allrecords .t396__carrier,
#allrecords .t396__filter {
  max-width: 100% !important;
  width: 100% !important;
  overflow-x: clip !important;
  margin-left: auto;
  margin-right: auto;
}

#allrecords img,
#allrecords video,
#allrecords iframe {
  max-width: 100%;
  object-fit: contain!important;
}

#allrecords .tn-elem[data-elem-type="text"] .tn-atom {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Служебный элемент анимации Tilda (не должен влиять на ширину страницы) */
.tn-elem[data-elem-id="1729934228689"] {
  pointer-events: none !important;
  visibility: hidden !important;
}

/* ========== Контейнеры ========== */
@media screen and (max-width: 1199px) {
  #allrecords .t-container,
  #allrecords .t-container_100 {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media screen and (max-width: 639px) {
  #allrecords .t-container,
  #allrecords .t-container_100 {
    padding-left: 0;
    padding-right: 15px;
  }
}

/* ========== Формы Zero Block (общие) ========== */
@media screen and (max-width: 768px) {
  .tn-elem[data-elem-type="form"] .t-form,
  .tn-elem[data-elem-type="form"] .t-form__inputsbox,
  .tn-elem[data-elem-type="form"] .t-input-group,
  .tn-elem[data-elem-type="form"] .t-input-block {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .tn-elem[data-elem-type="form"] .t-input,
  .tn-elem[data-elem-type="form"] textarea.t-input,
  .tn-elem[data-elem-type="form"] .t-select,
  .tn-elem[data-elem-type="form"] .t-input-phonemask__wrap {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    height: 50px!important;
  }

  .tn-elem[data-elem-type="form"] .t-input-phonemask__wrap {
    display: flex !important;
    align-items: stretch !important;
    overflow: hidden !important;
  }

  .tn-elem[data-elem-type="form"] .t-input-phonemask__select,
  .tn-elem[data-elem-type="form"] .t-input-phonemask__select-flag {
    flex-shrink: 0 !important;
  }

  .tn-elem[data-elem-type="form"] .t-input-phonemask {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
  }

  .tn-elem[data-elem-type="form"] .t-checkbox__control {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 14px!important;
  }

  .tn-elem[data-elem-type="form"] .t-checkbox__control span {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    line-height: 1.4 !important;
  }

  .tn-elem[data-elem-type="form"] .t-submit,
  .tn-elem[data-elem-type="form"] .t-btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    height: auto !important;
    min-height: 3rem !important;
    padding: 0.75rem 1rem !important;
    line-height: 1.3 !important;
  }
}

@media screen and (max-width: 639px) {
  .t-input-block,
  .t-input,
  .t-select,
  textarea.t-input,
  .t-input-phonemask__wrap {
    max-width: 100%;
    box-sizing: border-box;
  }

  .t-submit,
  .t-btn {
    max-width: 100%;
  }
}

/* ========== Квиз ========== */
@media screen and (min-width: 641px) {
  .section--quiz .t-quiz__btn-wrapper.t-quiz__btn-wrapper_mobile {
    display: none !important;
  }
}

@media screen and (max-width: 959px) {
  .section--quiz .t-col_8 {
    width: 100% !important;
    max-width: 100% !important;
  }

  .section--quiz .t-quiz__quiz-wrapper {
    height: auto !important;
    min-height: 500px;
  }
}

@media screen and (max-width: 639px) {
  .section--quiz .t-quiz__quiz-wrapper_fixed-height,
  .section--quiz .t-quiz__quiz-wrapper {
    height: auto !important;
    min-height: 0;
    max-height: none;
  }

  .section--quiz .t-quiz .t-step-form__step {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section--quiz .t-quiz__footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section--quiz .t-radio__wrapper_button .t-radio__item {
    width: 100%;
  }
}

/* ========== Видео-галерея ========== */
.section--gallery .t331__wrap-video {
  height: auto !important;
  max-height: 70vh;
  aspect-ratio: 16 / 9;
}

/* ========== Попапы ========== */
@media screen and (max-width: 639px) {
  .t-popup__container {
    width: calc(100% - 30px) !important;
    max-width: 100% !important;
    margin-left: 15px !important;
    margin-right: 15px !important;
    box-sizing: border-box;
  }

  .section--popup-consultation .t-popup__container {
    padding: 20px 15px;
  }
}

/* ========== Табы (отзывы, цены) ========== */
@media screen and (max-width: 639px) {
  .t395__select {
    width: 100%;
    max-width: 100%;
  }

  .t395__wrapper_mobile {
    display: block;
  }
}

/* ========== Плавающая навигация ========== */
@media screen and (max-width: 639px) {
  .t354__opener {
    transform: scale(0.85);
    transform-origin: bottom right;
  }
}

/* ========== Cookie-баннер ========== */
@media screen and (max-width: 639px) {
  .section--cookie-banner .t-popup__container {
    width: calc(100% - 20px) !important;
    margin: 10px !important;
  }
}

/* ========== Hero / шапка ========== */
@media screen and (min-width: 980px) and (max-width: 1199px) {
  .section--header-info .tn-elem[data-elem-id="176252302019852790"],
  .section--header-info .tn-elem[data-elem-id="176252302020686870"] {
    display: none !important;
  }
}

@media screen and (max-width: 1199px) {
  .section--hero .tn-elem[data-elem-id="1729856145025"],
  .section--hero .tn-elem[data-elem-id="1729856145016"],
  .section--hero .tn-elem[data-elem-id="1764504815902"] {
    max-width: calc(100vw - 20px);
  }
}

@media screen and (max-width: 768px) {
  .section--hero .t396__artboard,
  .section--hero .t396__filter,
  .section--hero .t396__carrier {
    overflow-x: clip !important;
  }

  .section--hero .tn-elem[data-elem-type="text"] .tn-atom,
  .section--hero .tn-elem[data-elem-type="button"] .tn-atom,
  .section--hero .tn-elem[data-elem-type="button"] .tn-atom__button-text {
    white-space: normal !important;
  }

  .section--hero .tn-elem[data-elem-id="1729855659580"],
  .section--hero .tn-elem[data-elem-id="1729856070854"],
  .section--hero .tn-elem[data-elem-id="1729856070859"],
  .section--hero .tn-elem[data-elem-id="1729856070863"],
  .section--hero .tn-elem[data-elem-id="1729856144980"],
  .section--hero .tn-elem[data-elem-id="176310650795111540"] .tn-atom__button-text {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  .section--hero .tn-elem.hero-m-center .tn-atom {
    text-align: center !important;
    width: 100% !important;
  }

  .section--hero .tn-elem[data-elem-id="1729857939789"] {
    left: calc(50% - 50vw + 16px) !important;
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
  }

  .section--hero .tn-elem[data-elem-id="1729856144986"] .tn-atom,
  .section--hero .tn-elem[data-elem-id="1729856144986"] .tn-atom a {
    font-size: 18px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .section--hero .tn-elem[data-elem-id="1729856144990"],
  .section--hero .tn-elem[data-elem-id="1729856144992"],
  .section--hero .tn-elem[data-elem-id="1729856144998"],
  .section--hero .tn-elem[data-elem-id="1729856145006"] {
    z-index: 12 !important;
    pointer-events: auto !important;
  }

  .section--hero .tn-elem[data-elem-id="1729856070871"],
  .section--hero .tn-elem[data-elem-id="1729856070868"],
  .section--hero .tn-elem[data-elem-id="1729856070866"] {
    max-width: calc(100vw - 30px) !important;
  }

  /* Карточки этапов под видео — в одну колонку */
  .section--hero .tn-elem[data-elem-id="1752504298416"],
  .section--hero .tn-elem[data-elem-id="1752504298369"],
  .section--hero .tn-elem[data-elem-id="1752504298307"],
  .section--hero .tn-elem[data-elem-id="1752504298243"] {
    left: calc(50% - 50vw + 10px) !important;
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
  }

  .section--hero .tn-elem[data-elem-id="1752504298416"] .tn-atom,
  .section--hero .tn-elem[data-elem-id="1752504298369"] .tn-atom,
  .section--hero .tn-elem[data-elem-id="1752504298307"] .tn-atom,
  .section--hero .tn-elem[data-elem-id="1752504298243"] .tn-atom {
    width: 100% !important;
  }
}

/* ========== Секция «Как мы работаем» (видео-переход) ========== */
@media screen and (max-width: 768px) {
  .section--how-we-work .t396__artboard,
  .section--how-we-work .t396__filter,
  .section--how-we-work .t396__carrier {
    overflow-x: clip !important;
  }

  /* Волнистый тёмный переход под «Посмотрите короткое видео» */
  .section--how-we-work .tn-elem[data-elem-id="1731335350168"] {
    left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: clamp(10rem, 42vw, 21rem) !important;
    overflow: hidden !important;
  }

  .section--how-we-work .tn-elem[data-elem-id="1731335350168"] .tn-atom {
    width: 100% !important;
    height: 100% !important;
    min-height: inherit !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
  }

  .section--how-we-work .tn-elem[data-elem-id="1753964672615"],
  .section--how-we-work .tn-elem[data-elem-id="1752614330105"],
  .section--how-we-work .tn-elem[data-elem-id="1731336505456"],
  .section--how-we-work .tn-elem[data-elem-id="1752615508228"] {
    left: calc(50% - 50vw + 15px) !important;
    width: calc(100vw - 30px) !important;
    max-width: calc(100vw - 30px) !important;
    height: auto !important;
  }

  .section--how-we-work .tn-elem[data-elem-id="1753964672615"] .tn-atom {
    white-space: normal !important;
    text-align: left !important;
    font-size: clamp(0.875rem, 3.8vw, 1.125rem) !important;
    line-height: 1.45 !important;
  }
}

/* ========== Форма заявки (белая карточка) ========== */
@media screen and (max-width: 959px) {
  .section--contact-form .tn-elem[data-elem-id="1729904673301"],
  .section--footer-form .tn-elem[data-elem-id="1710028352717"] {
    left: calc(50% - 50vw + 10px) !important;
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
  }

  .section--contact-form .tn-elem[data-elem-id="1729904673301"] .tn-atom,
  .section--footer-form .tn-elem[data-elem-id="1710028352717"] .tn-atom {
    width: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
  }
}

@media screen and (max-width: 768px) {
  .section--contact-form .t396__artboard,
  .section--contact-form .t396__filter,
  .section--contact-form .t396__carrier {
    overflow-x: clip !important;
    height: auto !important;
    min-height: 32rem !important;
  }

  .section--contact-form .tn-elem[data-elem-id="1729904673301"] {
    left: calc(50% - 50vw + 10px) !important;
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    height: auto !important;
    min-height: 28rem !important;
  }

  .section--contact-form .tn-elem[data-elem-id="1729933787753"],
  .section--contact-form .tn-elem[data-elem-id="1729934104090"],
  .section--contact-form .tn-elem[data-elem-id="1752528345034"] {
    left: calc(50% - 50vw + 15px) !important;
    width: calc(100vw - 30px) !important;
    max-width: calc(100vw - 30px) !important;
    height: auto !important;
    top: 80px!important;
  }

  .section--contact-form .tn-elem[data-elem-id="1729933787753"] .tn-atom,
  .section--contact-form .tn-elem[data-elem-id="1729934104090"] .tn-atom {
    white-space: normal !important;
    font-size: clamp(1.25rem, 5vw, 1.625rem) !important;
    line-height: 1.3 !important;
  }

  .section--contact-form .tn-elem[data-elem-id="1729934104090"] .tn-atom {
    font-size: clamp(0.875rem, 3.5vw, 1rem) !important;
  }

  /* Фоновое фото с авто */
  .section--contact-form .tn-elem[data-elem-id="1729934200962"] {
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(92vw, 20rem) !important;
    max-width: calc(100vw - 20px) !important;
    height: auto !important;
    max-height: 14rem !important;
    pointer-events: none !important;
  }

  .section--contact-form .tn-elem[data-elem-id="1729934200962"] .tn-atom {
    width: 100% !important;
    height: 100% !important;
    background-size: contain !important;
    background-position: center bottom !important;
    background-repeat: no-repeat !important;
  }
}

/* ========== Форма в подвале (тёмный блок) ========== */
@media screen and (max-width: 959px) {
  .section--footer-form .t396__artboard,
  .section--footer-form .t396__filter,
  .section--footer-form .t396__carrier {
    overflow-x: clip !important;
    height: auto !important;
    min-height: 66rem !important;
    padding-bottom: 2rem !important;
  }

  .section--footer-form .tn-elem[data-elem-id="1710028352717"] {
    left: calc(50% - 50vw + 10px) !important;
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    height: auto !important;
    min-height: 99% !important;
    top: 0 !important;
  }

  .section--footer-form .tn-elem[data-elem-id="1710028352717"] .tn-atom {
    width: 100% !important;
    min-height: inherit !important;
    border-radius: 0.9375rem !important;
  }

  /* Заголовок */
  .section--footer-form .tn-elem[data-elem-id="1710028352737"] {
    left: calc(50% - 50vw + 15px) !important;
    width: calc(100vw - 30px) !important;
    max-width: calc(100vw - 30px) !important;
    top: 1.5rem !important;
    height: auto !important;
  }

  .section--footer-form .tn-elem[data-elem-id="1710028352737"] .tn-atom {
    white-space: normal !important;
    line-height: 1.25 !important;
    font-size: clamp(1.25rem, 5.5vw, 1.625rem) !important;
    text-align: left !important;
  }

  /* Подзаголовок */
  .section--footer-form .tn-elem[data-elem-id="1710028352756"] {
    left: calc(50% - 50vw + 15px) !important;
    width: calc(100vw - 30px) !important;
    max-width: calc(100vw - 30px) !important;
    top: 6.5rem !important;
    height: auto !important;
  }

  .section--footer-form .tn-elem[data-elem-id="1710028352756"] .tn-atom {
    white-space: normal !important;
    line-height: 1.45 !important;
    font-size: clamp(0.9375rem, 4vw, 1.125rem) !important;
    text-align: left !important;
  }

  /* WhatsApp — первая строка */
  .section--footer-form .tn-elem[data-elem-id="1710028352764"] {
    left: calc(50% - 50vw + 15px) !important;
    top: 13rem !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
  }

  .section--footer-form .tn-elem[data-elem-id="1710028352768"] {
    left: calc(50% - 50vw + 3.75rem) !important;
    top: 13.125rem !important;
    width: calc(100vw - 4.5rem) !important;
    max-width: calc(100vw - 4.5rem) !important;
    height: auto !important;
  }

  .section--footer-form .tn-elem[data-elem-id="1710028352768"] .tn-atom {
    white-space: normal !important;
    font-size: clamp(0.875rem, 3.8vw, 1rem) !important;
    line-height: 1.4 !important;
  }

  /* Telegram — вторая строка */
  .section--footer-form .tn-elem[data-elem-id="1710028352766"] {
    left: calc(50% - 50vw + 15px) !important;
    top: 16.25rem !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
  }

  .section--footer-form .tn-elem[data-elem-id="1710028352771"] {
    left: calc(50% - 50vw + 3.75rem) !important;
    top: 16.375rem !important;
    width: calc(100vw - 4.5rem) !important;
    max-width: calc(100vw - 4.5rem) !important;
    height: auto !important;
  }

  .section--footer-form .tn-elem[data-elem-id="1710028352771"] .tn-atom {
    white-space: normal !important;
    font-size: clamp(0.875rem, 3.8vw, 1rem) !important;
    line-height: 1.4 !important;
  }

  /* Фото руководителя */
  .section--footer-form .tn-elem[data-elem-id="1710028352722"] {
    display: block !important;
    left: calc(50% - 50vw + 15px) !important;
    top: 19rem !important;
    width: calc(100vw - 30px) !important;
    max-width: 20.125rem !important;
    height: auto !important;
    min-height: 15.5rem !important;
    z-index: 10 !important;
  }

  .section--footer-form .tn-elem[data-elem-id="1710028352722"] .tn-atom {
    width: 9rem !important;
    height: 9rem !important;
    min-height: 15.5rem !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    border-radius: 0.75rem !important;
  }

  /* Красный бейдж — на фото */
  .section--footer-form .tn-elem[data-elem-id="1752532200033"] {
    left: calc(50% - 50vw + 15px) !important;
    top: 28.75rem !important;
    width: 8.5rem !important;
    height: 2rem !important;
    z-index: 4 !important;
  }

  .section--footer-form .tn-elem[data-elem-id="1752532200033"] .tn-atom {
    width: 100% !important;
    height: 100% !important;
    background-size: contain !important;
    background-position: left center !important;
    background-repeat: no-repeat !important;
  }

  /* Имя и должность */
  .section--footer-form .tn-elem[data-elem-id="1710028352727"] {
    left: calc(50% - 50vw + 15px) !important;
    width: calc(100vw - 30px) !important;
    max-width: calc(100vw - 30px) !important;
    top: 28.875rem !important;
    height: auto !important;
    z-index: 4 !important;
    text-align: left !important;
  }

  .section--footer-form .tn-elem[data-elem-id="1710028352727"] .tn-atom {
    white-space: normal !important;
    font-size: clamp(1rem, 4.2vw, 1.25rem) !important;
    line-height: 1.3 !important;
    text-align: left !important;
  }

  .section--footer-form .tn-elem[data-elem-id="1710028352731"] {
    left: calc(50% - 50vw + 15px) !important;
    width: calc(100vw - 30px) !important;
    max-width: calc(100vw - 30px) !important;
    top: 30.75rem !important;
    height: auto !important;
    text-align: left !important;
  }

  .section--footer-form .tn-elem[data-elem-id="1710028352731"] .tn-atom {
    white-space: normal !important;
    font-size: clamp(0.75rem, 3.2vw, 0.875rem) !important;
    line-height: 1.35 !important;
    text-align: left !important;
  }

  /* Тёмная панель с формой */
  .section--footer-form .tn-elem[data-elem-id="1710028352734"] {
    width: 100% !important;
    left: 0 !important;
    top: 33.25rem !important;
    height: auto !important;
    min-height: 22rem !important;
  }

  .section--footer-form .tn-elem[data-elem-id="1710028352743"] {
    left: calc(50% - 50vw + 15px) !important;
    width: calc(100vw - 30px) !important;
    max-width: calc(100vw - 30px) !important;
    top: 34.25rem !important;
    height: auto !important;
    text-align: left !important;
  }

  .section--footer-form .tn-elem[data-elem-id="1710028352743"] .tn-atom {
    white-space: normal !important;
    line-height: 1.3 !important;
    font-size: clamp(1.125rem, 4.8vw, 1.375rem) !important;
    text-align: left !important;
  }

  .section--footer-form .tn-elem[data-elem-id="1710028352759"] {
    left: calc(50% - 50vw + 15px) !important;
    width: calc(100vw - 30px) !important;
    max-width: calc(100vw - 30px) !important;
    top: 37.75rem !important;
    height: auto !important;
  }

  .section--footer-form .tn-elem[data-elem-id="1710028352751"] {
    left: calc(50% - 50vw + 15px) !important;
    width: calc(100vw - 30px) !important;
    max-width: calc(100vw - 30px) !important;
    top: 51.25rem !important;
    height: auto !important;
    text-align: left !important;
  }

  .section--footer-form .tn-elem[data-elem-id="1710028352751"] .tn-atom {
    white-space: normal !important;
    line-height: 1.4 !important;
    font-size: clamp(0.625rem, 2.8vw, 0.8125rem) !important;
    text-align: left !important;
  }
}

@media screen and (max-width: 639px) {
  .section--footer-form .t396__artboard,
  .section--footer-form .t396__filter,
  .section--footer-form .t396__carrier {
    min-height: 54rem !important;
    background: #2a2a2a;
  }
}

/* ========== Секция команды / тексты ========== */
@media screen and (max-width: 768px) {
  .section--team .t396__artboard,
  .section--team .t396__filter,
  .section--team .t396__carrier {
    overflow-x: clip !important;
  }

  .section--team .tn-elem[data-elem-id="1470209944682"],
  .section--team .tn-elem[data-elem-id="1752531516711"] {
    left: calc(50% - 50vw + 15px) !important;
    width: calc(100vw - 30px) !important;
    max-width: calc(100vw - 30px) !important;
    height: auto !important;
  }

  .section--team .tn-elem[data-elem-id="1470209944682"] .tn-atom,
  .section--team .tn-elem[data-elem-id="1752531516711"] .tn-atom {
    white-space: normal !important;
    text-align: left !important;
    line-height: 1.25 !important;
    font-size: clamp(1.25rem, 5.5vw, 1.75rem) !important;
  }

  .section--team .tn-elem[data-elem-id="1752531516711"] .tn-atom {
    font-size: clamp(1rem, 4.2vw, 1.25rem) !important;
    line-height: 1.45 !important;
    text-align: center !important;
  }

  .section--team .tn-elem[data-elem-type="shape"],
  .section--team .tn-elem[data-elem-type="text"] {
    max-width: calc(100vw - 20px);
  }

  .section--team .tn-elem[data-elem-type="text"] .tn-atom {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}

/* ========== CTA «Остались вопросы» ========== */
@media screen and (max-width: 639px) {
  .section--cta-questions .tn-elem[data-elem-id="1688314635439"],
  .section--cta-questions .tn-elem[data-elem-id="1688314635494"] {
    left: calc(50% - 50vw + 10px) !important;
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    height: auto !important;
    min-height: 12rem !important;
  }

  .section--cta-questions .tn-elem[data-elem-id="1688314635494"] .tn-atom {
    display: none;
  }
}

/* ========== Подвал на мобильных ========== */
@media screen and (max-width: 959px) {
  .section--footer .tn-elem[data-elem-id="1707750851422"],
  .section--footer .tn-elem[data-elem-id="1707750851180"],
  .section--footer .tn-elem[data-elem-id="1707750851631"] {
    left: calc(50% - 50vw + 10px) !important;
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
  }

  .section--footer .tn-elem[data-elem-id="1707751260334"] {
    left: calc(50% - 50vw + 20px) !important;
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
  }
}

@media screen and (max-width: 639px) {
  .section--footer .tn-elem[data-elem-id="1707750851422"] {
    top: 430px !important;
    height: 174px !important;
  }

  .section--footer .tn-elem[data-elem-id="1707750851180"] {
    top: 614px !important;
    height: 180px !important;
  }

  .section--footer .tn-elem[data-elem-id="1707750851429"] {
    left: calc(50% - 50vw + 20px) !important;
    top: 450px !important;
    width: auto !important;
  }

  .section--footer .tn-elem[data-elem-id="1707750851478"] {
    left: calc(50% - 50vw + 20px) !important;
    top: 479px !important;
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
  }

  .section--footer .tn-elem[data-elem-id="1707750851436"] {
    left: calc(50% - 50vw + 20px) !important;
    top: 523px !important;
    width: auto !important;
  }

  .section--footer .tn-elem[data-elem-id="1707750851465"] {
    left: calc(50% - 50vw + 20px) !important;
    top: 567px !important;
    width: auto !important;
  }

  .section--footer .tn-elem[data-elem-id="1707799396046"] {
    left: calc(50% - 50vw + 20px) !important;
    top: 554px !important;
    width: 35px !important;
  }

  .section--footer .tn-elem[data-elem-id="1707799392435"] {
    left: calc(50% - 50vw + 60px) !important;
    top: 554px !important;
    width: 35px !important;
  }

  .section--footer .tn-elem[data-elem-id="1707750851192"] {
    left: calc(50% - 50vw + 20px) !important;
    top: 634px !important;
    width: auto !important;
  }

  .section--footer .tn-elem[data-elem-id="1707750851209"] {
    left: calc(50% - 50vw + 20px) !important;
    top: 663px !important;
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
  }

  .section--footer .tn-elem[data-elem-id="1707750851199"] {
    left: calc(50% - 50vw + 20px) !important;
    top: 697px !important;
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
  }

  .section--footer .t396__artboard,
  .section--footer .t396__filter,
  .section--footer .t396__carrier {
    height: 780px !important;
  }
}

@media screen and (min-width: 640px) and (max-width: 959px) {
  .section--footer .tn-elem[data-elem-id="1707750851422"] {
    top: 439px !important;
    height: 140px !important;
  }

  .section--footer .tn-elem[data-elem-id="1707750851180"] {
    top: 597px !important;
    height: 180px !important;
  }

  .section--footer .tn-elem[data-elem-id="1707750851429"],
  .section--footer .tn-elem[data-elem-id="1707750851478"],
  .section--footer .tn-elem[data-elem-id="1707750851436"],
  .section--footer .tn-elem[data-elem-id="1707750851465"],
  .section--footer .tn-elem[data-elem-id="1707750851192"],
  .section--footer .tn-elem[data-elem-id="1707750851209"],
  .section--footer .tn-elem[data-elem-id="1707750851199"] {
    left: calc(50% - 50vw + 20px) !important;
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
  }

  .section--footer .tn-elem[data-elem-id="1707750851429"] {
    top: 459px !important;
    width: auto !important;
  }

  .section--footer .tn-elem[data-elem-id="1707750851478"] {
    top: 488px !important;
  }

  .section--footer .tn-elem[data-elem-id="1707750851436"] {
    top: 525px !important;
    width: auto !important;
  }

  .section--footer .tn-elem[data-elem-id="1707750851465"] {
    top: 553px !important;
    width: auto !important;
  }

  .section--footer .tn-elem[data-elem-id="1707799396046"] {
    left: calc(50% - 50vw + 20px) !important;
    top: 522px !important;
    width: 35px !important;
  }

  .section--footer .tn-elem[data-elem-id="1707799392435"] {
    left: calc(50% - 50vw + 65px) !important;
    top: 522px !important;
    width: 35px !important;
  }

  .section--footer .tn-elem[data-elem-id="1707750851192"] {
    top: 617px !important;
    width: auto !important;
  }

  .section--footer .tn-elem[data-elem-id="1707750851209"] {
    top: 644px !important;
  }

  .section--footer .tn-elem[data-elem-id="1707750851199"] {
    top: 681px !important;
  }

  .section--footer .t396__artboard,
  .section--footer .t396__filter,
  .section--footer .t396__carrier {
    height: 760px !important;
  }
}

/* ========== Кейсы / отзывы — медиа ========== */
[class*="section--case-"] .tn-elem[data-elem-id="1753041721102"] {
  overflow: hidden !important;
  border-radius: 12px;
  display: block !important;
  z-index: 4 !important;
  left: calc(50% - 600px + 20px)!important;
}

[class*="section--case-"] .tn-elem[data-elem-id="1753041721102"] .tn-atom.case-media {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: inherit;
  overflow: hidden;
  line-height: 0;
}

[class*="section--case-"] .case-media__image,
[class*="section--case-"] .case-media__video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 220px;
  max-height: 500px;
  aspect-ratio: 4 / 3;
  object-fit: cover !important;
  object-position: center;
  background: #000;
}

@media screen and (max-width: 959px) {
  [class*="section--case-"] .tn-elem[data-elem-id="1753041721102"] {
    left: calc(50% - 50vw + 15px) !important;
    width: calc(100vw - 30px) !important;
    max-width: calc(100vw - 30px) !important;
    top: 0.625rem !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 3;
  }

  [class*="section--case-"] .case-media__image,
  [class*="section--case-"] .case-media__video {
    min-height: 200px;
    max-height: 400px;
    aspect-ratio: 4 / 3;
  }

  /* Карточка кейса — одна колонка */
  [class*="section--case-"] .t396__artboard,
  [class*="section--case-"] .t396__filter,
  [class*="section--case-"] .t396__carrier {
    height: auto !important;
    overflow-x: clip !important;
    padding-bottom: 1.5rem !important;
  }

  [class*="section--case-"] .tn-elem[data-elem-id="1594114656903"],
  [class*="section--case-"] .tn-elem[data-elem-id="1594316043876"] {
    left: calc(50% - 50vw + 10px) !important;
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    top: 0 !important;
    height: auto !important;
    min-height: 100% !important;
  }

  [class*="section--case-"] .tn-elem[data-elem-id="1596632348005"] {
    display: none !important;
  }

  [class*="section--case-"] .tn-elem[data-elem-id="1594675343802"],
  [class*="section--case-"] .tn-elem[data-elem-id="1594675343813"] {
    left: calc(50% - 50vw + 15px) !important;
    width: calc(100vw - 30px) !important;
    max-width: calc(100vw - 30px) !important;
    height: auto !important;
    text-align: center !important;
  }

  [class*="section--case-"] .tn-elem[data-elem-id="1594675343802"] .tn-atom {
    white-space: normal !important;
    line-height: 1.3 !important;
    font-size: clamp(1rem, 4.5vw, 1.25rem) !important;
    text-align: center !important;
  }

  [class*="section--case-"] .tn-elem[data-elem-id="1594675343813"] .tn-atom {
    white-space: normal !important;
    line-height: 1.45 !important;
    font-size: clamp(0.8125rem, 3.6vw, 0.9375rem) !important;
    text-align: center !important;
  }

  [class*="section--case-"] .case-stars {
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 639px) {
  [class*="section--case-"] .case-media__image,
  [class*="section--case-"] .case-media__video {
    min-height: 180px;
    max-height: 320px;
  }
}

/* ========== Кейсы / отзывы — рейтинг ========== */
.section--case-kia-k5 .tn-elem[data-elem-id="1729951989593"],
.section--case-kia-k5 .tn-elem[data-elem-id="1729951989597"],
.section--case-kia-k5 .tn-elem[data-elem-id="1729951989600"],
.section--case-kia-k5 .tn-elem[data-elem-id="1729951989604"],
.section--case-kia-k5 .tn-elem[data-elem-id="1729951989607"],
.section--case-vw-tharu .tn-elem[data-elem-id="1729951989593"],
.section--case-vw-tharu .tn-elem[data-elem-id="1729951989597"],
.section--case-vw-tharu .tn-elem[data-elem-id="1729951989600"],
.section--case-vw-tharu .tn-elem[data-elem-id="1729951989604"],
.section--case-vw-tharu .tn-elem[data-elem-id="1729951989607"],
.section--case-vw-tayron .tn-elem[data-elem-id="1729951989593"],
.section--case-vw-tayron .tn-elem[data-elem-id="1729951989597"],
.section--case-vw-tayron .tn-elem[data-elem-id="1729951989600"],
.section--case-vw-tayron .tn-elem[data-elem-id="1729951989604"],
.section--case-vw-tayron .tn-elem[data-elem-id="1729951989607"],
.section--case-audi-a3l .tn-elem[data-elem-id="1729951989593"],
.section--case-audi-a3l .tn-elem[data-elem-id="1729951989597"],
.section--case-audi-a3l .tn-elem[data-elem-id="1729951989600"],
.section--case-audi-a3l .tn-elem[data-elem-id="1729951989604"],
.section--case-audi-a3l .tn-elem[data-elem-id="1729951989607"],
.section--case-vw-troc .tn-elem[data-elem-id="1729951989593"],
.section--case-vw-troc .tn-elem[data-elem-id="1729951989597"],
.section--case-vw-troc .tn-elem[data-elem-id="1729951989600"],
.section--case-vw-troc .tn-elem[data-elem-id="1729951989604"],
.section--case-vw-troc .tn-elem[data-elem-id="1729951989607"] {
  display: none !important;
}

.case-stars {
  display: block;
  width: 100px;
  height: 20px;
  margin-top: 14px;
  background-image: url('https://static.tildacdn.com/tild6633-3064-4361-b063-306464313065/star_77949.svg');
  background-repeat: repeat-x;
  background-size: 20px 20px;
}

/* ========== Секция отзывов — заголовок ========== */
@media screen and (max-width: 959px) {
  .section--reviews-heading .t396__artboard,
  .section--reviews-heading .t396__filter,
  .section--reviews-heading .t396__carrier {
    height: auto !important;
    min-height: 11rem !important;
    overflow-x: clip !important;
    padding-bottom: 1rem !important;
  }

  .section--reviews-heading .tn-elem[data-elem-id="1729951867495"] {
    left: calc(50% - 50vw + 15px) !important;
    width: calc(100vw - 30px) !important;
    max-width: calc(100vw - 30px) !important;
    top: 2rem !important;
    height: auto !important;
  }

  .section--reviews-heading .tn-elem[data-elem-id="1729951867495"] .tn-atom {
    white-space: normal !important;
    line-height: 1.25 !important;
    font-size: clamp(1.375rem, 6vw, 1.75rem) !important;
  }

  .section--reviews-heading .tn-elem[data-elem-id="1729951930221"] {
    left: calc(50% - 50vw + 15px) !important;
    width: calc(100vw - 30px) !important;
    max-width: calc(100vw - 30px) !important;
    top: 9rem !important;
    height: auto !important;
  }

  .section--reviews-heading .tn-elem[data-elem-id="1729951930221"] .tn-atom {
    white-space: normal !important;
    line-height: 1.4 !important;
    font-size: clamp(0.875rem, 3.8vw, 1rem) !important;
  }

  /* Бейджи Яндекс / 2GIS — позиционирование через JS (fixReviewsBadges) */
  .section--reviews-heading .tn-elem[data-elem-id="1729951930231"] .tn-atom,
  .section--reviews-heading .tn-elem[data-elem-id="1729951930244"] .tn-atom {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  .section--reviews-heading .tn-elem[data-elem-id="1729951930227"] .tn-atom__img,
  .section--reviews-heading .tn-elem[data-elem-id="1729951930240"] .tn-atom__img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  .section--reviews-heading .tn-elem[data-elem-id="1729951930235"] .tn-atom,
  .section--reviews-heading .tn-elem[data-elem-id="1729951930247"] .tn-atom {
    display: block !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
  }
}

/* ========== Секция отзывов — табы кейсов ========== */
@media screen and (max-width: 639px) {
  .section--reviews-slider .t-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .section--reviews-slider .t395__wrapper_mobile {
    margin-bottom: 0.75rem;
  }

  .section--reviews-slider .t395__select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 1rem !important;
    padding: 0.875rem 1rem !important;
    border-radius: 10px !important;
  }
}

@media screen and (min-width: 640px) and (max-width: 959px) {
  .section--reviews-slider .t395__wrapper {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    justify-content: center !important;
  }

  .section--reviews-slider .t395__tab {
    flex: 1 1 auto !important;
    min-width: 7rem !important;
  }

  .section--reviews-slider .t395__title {
    white-space: normal !important;
    line-height: 1.2 !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }
}

/* ========== Кейсы / прайс-примеры ========== */
@media screen and (max-width: 639px) {
  .section--pricing-example-1 .t396__artboard,
  .section--pricing-example-2 .t396__artboard,
  .section--pricing-example-3 .t396__artboard,
  [class*="section--case-"] .t396__artboard,
  .section--case-vw-tharu-2021 .t396__artboard {
    overflow-x: clip !important;
  }
}

