/* ==========================================================================
Адаптив под мобильные устройства (desktop-first → max-width)
========================================================================== */

/* === Маленькие десктопы / большие планшеты === */
@media (max-width: 1199.98px) {
  .container {
    max-width: 1150px;
  }
  
  .banner__title {
    font-size: 52px;
  }
  
  .rooms__grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
  
  /* .service-card--car {
  max-width: 100%;
  } */
  
  .room-card__image-wrapper {
    width: 100% !important;
    height: 220px !important;
    padding-top: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    max-width: 100%;
  }
  
  .rooms__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .room-card {
    flex-direction: column !important;
    max-height: none;
    max-width: 100%;
  }
  
  .service-card__image-wrapper {
    max-width: 100%;
    height: 200px;
  }
  
  .service-card__divider {
    max-width: 100%;
  }
  
  .services {
    padding-left: 0;
    padding-right: 0;
  }
  
  .restoran__images img {
    max-width: 100%;
    height: auto;
  }
  
  .restoran__images {
    flex-direction: column;
  }
  
}

/* === Планшеты (портрет и альбом) === */
@media (max-width: 991.98px) {
  /* .container {
  max-width: 720px;
  padding: 0 20px;
  } */
  
  .header__burger {
    display: flex;
    align-items: center;
    -moz-column-gap: 16px;
    column-gap: 16px;
    cursor: pointer;
  }
  
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1000;
  }
  
  .burger__line {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #122550;
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  
  .burger--active .burger__line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: #fdc533;
  }
  
  .burger--active .burger__line:nth-child(2) {
    opacity: 0;
  }
  
  .burger--active .burger__line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: #fdc533;
  }
  
  .menu {
    position: absolute;
    width: 100%;
    min-height: 383px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Для Safari */
    background: #3c3b3be3;
    transition: transform 0.4s ease;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    top: 83px;
    left: -80px;
    overflow: hidden;
    transform: translateX(-100%);
    flex-direction: column;
  }
  .menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    width: 100%;
  }
  
  .menu--active .menu__item:nth-child(1)
  {
    transition-delay: 0.1s;
  }
  
  .menu--active .menu__item {
    opacity: 1;
    transform: translateY(0);
  }
  .menu__item {
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    background-color: #fdc533;
  }
  
  .menu {
    top: 0;
    left: 0;
    height: 100%;
  }
  
  .menu--active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    opacity: 1;
    transition: transform 0.4s ease;
  }
  
  .menu__link {
    text-decoration: none;
    color: #fdc533;
    font-size: 20px;
    font-weight: 700;
    transition: color 0.3s ease;
    padding: 12px 20px;
    display: block;
    width: 231px;
    height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: all 0.3s ease;
    width: 100%;
    border: 1px solid #fdc533;
    border-radius: 5px;
  }
  
  .header__top {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 15px;
  }
  
  
  .header__inner,
  .banner__nav,
  .banner__actions {
    gap: 12px;
  }
  
  .banner__title {
    font-size: 44px;
  }
  
  .booking-form {
    padding: 16px;
    gap: 12px;
  }
  
  .booking-form__field:not(:last-of-type) {
    border-right: none;
    padding-right: 0;
  }
  
  .why-choose-us__grid {
    justify-content: center;
  }
  
  .why-choose-us__item {
    max-width: 300px;
  }
  
  
  
  
  
  .room-card__content {
    max-width: 100% !important;
    padding: 16px;
  }
  
  .service-cards-car {
    flex-direction: column;
    align-items: center;
  }
  
  .service-card--car .service-card__image-wrapper {
    max-width: 100% !important;
  }
  
  .contkt__content {
    flex-direction: column;
  }
  
  .map-container {
    height: 400px;
  }
  
  .footer__container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer__navigation {
    margin-left: 0;
    margin-top: 30px;
  }
  
  .hero-banner__title {
    font-size: 32px;
  }
  
  .restoran__desc {
    font-size: 20px;
  }
  
  .contacts {
    text-align: center;
  }
  
  .contacts .contact-item__value {
    font-size: 14px;
  }
  
  .contacts__header {
    display: flex;
    justify-content: center;
    gap: 0px;
    flex-direction: column;
  }
  .contacts__addr {
    margin-top: 50px;
    margin-bottom: 10px;
  }
  
  .social-banner__title {
    font-size: 32px;
    padding: 0 15px;
  }
  
  .social-banner__tagline, .social-banner__description {
    font-size: 15px;
  }
  
  .contkt__content--addr {
    margin-right: 0;
  }
  .modal-hotel__info .service-card__desc {
    font-size: 14px;
  }
  
  .hotel-gallery-item {
    height: 150px;
  }
  
}

/* === Мобильные устройства (все телефоны) === */
@media (max-width: 767.98px) {
  .container {
    padding: 0 16px;
  }
  
  .banner__content {
    padding: 0;
    padding-top: 40px;
  }
  
  .banner__title {
    font-size: 36px;
    line-height: 1.2;
  }
  
  .banner__description {
    font-size: 15px;
  }
  
  .booking-form {
    padding: 14px;
    gap: 14px;
  }
  
  .booking-form__submit {
    width: 100%;
  }
  
  .service-card {
    max-width: 100%;
    width: 100%;
  }
  
  /* Заголовки секций */
  .why-choose-us__title,
  .rooms__title-fill,
  .services__title,
  .contkt__title,
  .restoran__desc {
    font-size: 32px;
    word-wrap: break-word;
  }
  
  .restoran__content {
    padding: 40px 15px;
  }
  
  .restoran__desc {
    font-size: 20px;
  }
  
  .rooms__title svg {
    max-width: 300px;
  }
  
  .rooms__footer {
    flex-direction: column;
    gap: 12px;
  }
  
  .rooms__more-btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Контакты */
  .contkt__title {
    margin-top: 60px;
  }
  
  .map-container {
    height: 300px;
    border-radius: 16px;
  }
  
  /* Footer */
  .footer {
    margin-top: 60px;
  }
  
  .footer__contacts--block {
    flex-direction: column;
  }
  
  .footer__social-links {
    justify-content: center;
  }
  
  .footer__logo__text--main {
    font-size: 20px;
  }
  
  .footer__contacts__phone {
    font-size: 18px;
  }
  
  .footer__copyright {
    text-align: center;
  }
  
  /* Универсальные отступы */
  .section-gap,
  .why-choose-us,
  .rooms,
  .services,
  .contkt,
  .restoran__content {
    margin-top: 60px;
  }
  
  .contkt {
    text-align: center;
  }
}

/* === Очень узкие экраны (iPhone SE, старые Android) === */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  .banner__title {
    font-size: 28px;
  }
  
  .booking-form__label {
    font-size: 14px;
  }
  
  .booking-form__input,
  .booking-form__field_type_check-in input,
  .booking-form__field_type_check-out input {
    font-size: 16px; /* предотвращает автоувеличение в iOS */
  }
  
  .why-choose-us__item,
  .service-card {
    padding: 12px;
  }
  
  .why-choose-us__item-title,
  .service-card__title {
    font-size: 20px;
  }
  
  .room-card__title {
    font-size: 20px;
  }
  
  .room-card__specs li {
    font-size: 13px;
    padding: 3px 8px;
  }
  
  .room-card__price {
    font-size: 20px;
  }
  
  .footer__logo__text--main {
    font-size: 18px;
  }
}

/* === Адаптация на мобильных === */
@media (max-width: 991.98px) {
  
  .banner__actions {
    gap: clamp(8px, 2vw, 12px);
  }
  
  .banner__action-button {
    padding: clamp(6px, 1.8vw, 10px) clamp(10px, 2.5vw, 16px);
    font-size: clamp(13px, 2.6vw, 15px);
    justify-content: center;
  }
  
  .tl-button-book {
    display: flex;
    align-items: center;
  }
}

/* === Очень узкие экраны === */
@media (max-width: 480px) {
  .header__inner {
    flex-wrap: wrap;
    gap: clamp(10px, 3vw, 16px);
  }
  
  .banner__logo {
    flex: 1 1 100%;
    text-align: center;
  }
  
  .banner__actions {
    width: 100%;
    justify-content: center;
  }
  
  .footer__contacts--block {
    flex-direction: column;
  }
  .contkt-item__value {
    font-size: 14px;
  }
  
  .footer__social-links {
    justify-content: center;
  }
}