/* Юзабилити — 29.09.2026. Отдельный файл: сборка темы (gulp → main.min.css) его не трогает. */

/* Рейтинг и статус «открыто/закрыто» на первом экране */
.akb-hero-rating {
  margin: 4px 0 16px;
  font-size: 16px;
  line-height: 22px;
}
.akb-hero-rating a {
  color: #000;
  text-decoration: none;
}
.akb-hero-rating b {
  font-weight: 700;
}
.akb-hero-rating .akb-stars {
  color: #fbbc04;
  letter-spacing: 1px;
  margin-right: 4px;
}
.akb-open-status {
  margin: -8px 0 16px 28px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
}
.akb-open-status::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 1px;
  background: currentColor;
}
.akb-open-status.is-open { color: #1a9d4b; }
.akb-open-status.is-closed { color: #7a7a7a; }

/* Кнопки под заголовком — только на телефоне (на десктопе есть кнопка в шапке) */
.akb-hero-cta {
  display: none;
}
.akb-btn-call {
  background: #ed193a;
}
@media screen and (max-width: 991px) {
  .akb-hero-cta {
    display: flex;
    gap: 8px;
    margin: 0 0 20px;
  }
  .akb-hero-cta .main-btn {
    flex: 1 1 0;
    min-height: 48px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .akb-hero-cta .akb-btn-order {
    background: #006ab4;
  }
}

/* Липкая панель действий на телефоне */
.akb-bar {
  display: none;
}
@media screen and (max-width: 991px) {
  .akb-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    background: #fff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .12);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    gap: 8px;
  }
  .akb-bar__btn {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    line-height: 18px;
    text-decoration: none;
    color: #fff;
  }
  .akb-bar__call { background: #ed193a; }
  .akb-bar__msg { background: #fff; color: #006ab4; border: 2px solid #006ab4; }
  .akb-bar__order { background: #006ab4; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  /* открыто меню или форма — панель не перекрывает окно */
  .hystmodal__opened .akb-bar { display: none; }
}

/* Поля форм на телефоне: 16 px, иначе iPhone увеличивает страницу при вводе */
@media screen and (max-width: 991px) {
  .wpcf7 .form-input,
  .wpcf7 input[type="text"],
  .wpcf7 input[type="tel"],
  .ui-selectmenu-text {
    font-size: 16px !important;
  }
}

/* Cookie-баннер — тонкая полоса вместо карточки */
#cookie-banner {
  left: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
  width: auto !important;
  max-width: 560px;
  padding: 10px 12px !important;
  font-size: 13px;
  line-height: 17px;
}
#cookie-banner .akb-cookie__row {
  display: flex;
  align-items: center;
  gap: 10px;
}
#cookie-banner p {
  margin: 0 !important;
  flex: 1 1 auto;
}
#cookie-banner button {
  padding: 8px 12px !important;
  white-space: nowrap;
}
#cookie-banner #cookie-deny {
  background: transparent !important;
  color: #555 !important;
  border: 1px solid #bbb !important;
}
@media screen and (max-width: 991px) {
  #cookie-banner {
    bottom: calc(72px + env(safe-area-inset-bottom)) !important;
  }
}

/* Первый экран на десктопе: форма целиком видна на 1440×900 */
@media screen and (min-width: 1200px) {
  .hero { padding-top: 170px !important; }
  .hero__subtitle { margin-bottom: 16px !important; }
  .hero__time { margin-bottom: 8px !important; }
  .akb-open-status { margin-top: 0; }
  .hero__img2 { display: none; }
  /* машина справа от подзаголовка: ниже 2-й строки H1, выше плашки «Акция»; выходит на 40 px за контейнер */
  .hero__img { width: 600px !important; top: 134px !important; right: -40px !important; }
}

/* Адреса: группы и «Маршрут» */
.akb-addr-group {
  margin: 16px 0 8px;
  font-weight: 700;
  font-size: 15px;
  color: #006ab4;
}
.akb-addr-group:first-child {
  margin-top: 0;
}
.address__item .akb-route {
  margin-left: auto;
  padding-left: 12px;
  white-space: nowrap;
  font-size: 14px;
  color: #006ab4;
  text-decoration: underline;
}

/* Меню: «Позвонить» рядом с «Заказать», ссылка на все точки */
.menu-modal__footer .akb-menu-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.menu-modal__footer .akb-menu-points {
  display: inline-block;
  color: #006ab4;
  font-weight: 500;
  text-decoration: underline;
}
