/* ===== Правки удобства (inc/ui.php) — подключается после style.css ===== */

/* 1. Горизонтальная прокрутка на широких экранах: слайдер услуг вылезал на ~90px.
      Тема обрезала его только до 1200px. clip (не hidden) — не ломает вертикальные выпадашки. */
.section.services {
  overflow-x: clip;
}

/* 2. Компактный баннер cookie: одна строка на десктопе, ~120px вместо 250px на телефоне */
.cookies {
  padding-bottom: 16px;
}

.cookies__container {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  max-width: 640px;
  padding: 12px 12px 12px 20px;
  border-radius: 20px;
}

.cookies__header {
  display: none;
}

.cookies__text {
  font-size: 14px;
  line-height: 130%;
}

.cookies__text br {
  display: none;
}

.cookies__container .button {
  flex: none;
  padding: 10px 20px;
}

@media (max-width: 768px) {
  .cookies {
    padding-bottom: 12px;
  }

  .cookies__container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
  }

  .cookies__text {
    font-size: 13px;
  }
}

/* 3. Кнопка меню: зона нажатия 44×44 (была 40×18), в открытом состоянии — крестик */
.header__burger {
  box-sizing: content-box;
  padding: 13px 2px;
  margin: -13px -2px;
  background: none;
  border: 0;
  cursor: pointer;
}

.header__burger:focus-visible {
  outline: 2px solid var(--PURPLE-200);
  outline-offset: 2px;
  border-radius: 8px;
}

.header__burger.active span:first-child {
  transform: translateY(8px) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

/* 4. Телефон в мобильной шапке вместо бегущей строки преимуществ */
.header__call {
  display: none;
}

@media screen and (max-width: 1024px) {
  .header .utp-slider {
    display: none;
  }

  .header__call {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--GRADIENT-PURPLE);
  }

  .header__call img,
  .header__call svg {
    width: 24px;
    height: 24px;
  }
}

/* 5. Хлебные крошки переносятся, а не прячут конец за горизонтальной прокруткой */
.breadcrumbs .container {
  flex-wrap: wrap;
  overflow: visible;
  row-gap: 4px;
}

.breadcrumb:last-child {
  white-space: normal;
}

/* 6. Первый экран на телефоне: без стрелок слайдера над текстом (листается свайпом, есть точки) */
@media (max-width: 768px) {
  .hero-content__navigation .swiper-hero-prev,
  .hero-content__navigation .swiper-hero-next {
    display: none !important;
  }
}

/* 7. Первый экран на телефоне: картинка → точки слайдера → карточка с текстом и кнопкой.
      Тема ставила текст над слайдером (order: -1). Картинка 4:3, чтобы кнопка помещалась на первом экране. */
@media (max-width: 768px) {
  .hero-content__column {
    order: 0;
    margin-top: 12px;
    margin-bottom: 0;
  }

  .hero-swiper .hero-swiper__img,
  .hero-swiper .hero-swiper__video {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
    max-height: none;
    object-position: center 25%;
  }

  .hero-swiper .swiper-pagination {
    margin-top: 8px;
  }
}
