/* MOBILE FIX — comfort-tlt.ru */
/* Подключать после основного CSS */

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

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
}

/* ===== ПЛАНШЕТ: ВОЗВРАТ К НОРМАЛЬНОМУ ВИДУ БЕЗ СЪЕЗДОВ ===== */

@media (min-width: 768px) and (max-width: 1180px) {

  .hero-split {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .hero-split__content {
    padding: 96px 32px 40px !important;
    max-width: 100% !important;
  }

  .hero-split__photo {
    height: auto !important;
    min-height: 560px !important;
    overflow: hidden !important;
  }

  .hero-split__photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .hero-split h1 {
    font-size: 36px !important;
    line-height: 1.05 !important;
  }

  .hero-split p {
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  .hero-split__stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 !important;
    margin-top: 24px !important;
  }

  .hero-split__bottom {
    display: none !important;
  }

  .hero-split__actions {
    display: flex !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
  }
}
/* ===== ПЛАНШЕТ: СТАБИЛЬНАЯ ВЕРСИЯ БЕЗ СЪЕЗДОВ ===== */

@media (min-width: 981px) and (max-width: 1180px) {

  .hero-split {
    grid-template-columns: 48% 52% !important;
    min-height: 640px !important;
    height: auto !important;
    overflow: hidden !important;
  }

  .hero-split__content {
    padding: 96px 30px 150px 32px !important;
  }

  .hero-split h1 {
    font-size: 46px !important;
    line-height: .96 !important;
    margin-bottom: 20px !important;
  }

  .hero-split p {
    font-size: 16px !important;
    line-height: 1.45 !important;
    max-width: 430px !important;
  }

  .hero-split__actions {
    margin-bottom: 34px !important;
  }

  .hero-split__actions .btn,
  .hero-split__actions a {
    min-height: 46px !important;
    padding: 0 20px !important;
    font-size: 13px !important;
  }

  .hero-split__stats {
    grid-template-columns: repeat(4, 1fr) !important;
    max-width: 560px !important;
  }

  .hero-split__stats div {
    padding: 18px 12px 0 !important;
  }

  .hero-split__stats b {
    font-size: 25px !important;
  }

  .hero-split__stats span {
    font-size: 11px !important;
  }

  .hero-split__photo {
    min-height: 640px !important;
    height: 640px !important;
  }

  .hero-note {
    transform: scale(.85) !important;
  }

  .hero-split__bottom {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 63% !important;
    min-height: 96px !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    padding-left: 32px !important;
    clip-path: polygon(0 0, 94% 0, 100% 100%, 0% 100%) !important;
  }

  .hero-split__bottom div {
    padding: 20px 18px !important;
  }

  .hero-split__bottom b {
    font-size: 12px !important;
  }

  .hero-split__bottom span {
    font-size: 11px !important;
  }
}
/* ===== ПЛАНШЕТ: КРАСИВЫЕ КАРТОЧКИ КОМПЛЕКТАЦИЙ ===== */

@media (min-width: 768px) and (max-width: 1180px) {

  .kits-grid,
  .complete-grid,
  .package-grid,
  . комплектации-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }

  .kit-card,
  .complete-card,
  .package-card,
  . комплектация-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 360px !important;
    padding: 18px !important;
    border-radius: 22px !important;
  }

  .kit-card img,
  .complete-card img,
  .package-card img,
  . комплектация-card img {
    width: 100% !important;
    height: 170px !important;
    object-fit: cover !important;
    border-radius: 16px !important;
    margin-bottom: 16px !important;
  }

  .kit-card h3,
  .complete-card h3,
  .package-card h3,
  . комплектация-card h3 {
    font-size: 22px !important;
    line-height: 1.15 !important;
    margin-bottom: 12px !important;
  }

  .kit-card li,
  .complete-card li,
  .package-card li,
  . комплектация-card li {
    font-size: 14px !important;
    line-height: 1.45 !important;
    margin-bottom: 6px !important;
  }

  .to-top {
    width: 44px !important;
    height: 44px !important;
    right: 18px !important;
    bottom: 18px !important;
  }
}