/* --- Адаптивная вёрстка для страницы комнаты "Комфорт" --- */

/* Базовые настройки */
@media (max-width: 1280px) {
    .mainBlock {
        padding: 0 20px 50px;
    }
    
    .room-title {
        font-size: 42px;
    }
    
    .room-description p {
        font-size: 17px;
        padding: 30px 35px;
    }
}

/* Показываем кнопку меню */
@media (max-width: 1200px) {
    .headerLine {
        justify-content: flex-end;
    }
    
    .nav {
        display: none;
    }
    
    .nav-button {
        display: block;
        position: relative;
        z-index: 1001;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(8px);
        border: none;
        cursor: pointer;
        padding: 12px;
        border-radius: 12px;
        transition: all 0.3s ease;
        margin-left: auto;
    }
    
    .nav-button:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
    }
    
    .but-in-img {
        width: 28px;
        height: 28px;
        display: block;
        filter: brightness(0) invert(1);
    }
    
    .headerLine.open .nav {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 300px;
        background: linear-gradient(135deg, #1e2a2a 0%, #2c3e3e 100%);
        backdrop-filter: blur(20px);
        z-index: 1000;
        padding: 100px 30px 40px;
        gap: 20px;
        animation: slideInRight 0.3s ease-out;
        border-radius: 0;
        margin: 0;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    }
    
    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(100%);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .headerLine.open .navitem {
        color: #fff;
        font-size: 20px;
        font-weight: 500;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        text-align: left;
        letter-spacing: 1px;
        transition: all 0.3s ease;
    }
    
    .headerLine.open .navitem:hover {
        color: #e6c87a;
        border-bottom-color: #e6c87a;
        padding-left: 10px;
    }
    
    .headerLine.open .nav-button {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1002;
        background: rgba(255, 255, 255, 0.2);
    }
    
    .phone {
        display: none;
    }
    
    .room-title {
        font-size: 38px;
    }
    
    .room-description p {
        font-size: 16px;
        padding: 25px 30px;
    }
    
    .room-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 35px;
        width: 250px;
        text-align: center;
    }
}

/* Планшеты */
@media (max-width: 992px) {
    .room-title {
        font-size: 34px;
    }
    
    .room-title::after {
        width: 60px;
    }
    
    .room-description p {
        font-size: 15px;
        padding: 25px;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 36px;
        height: 36px;
    }
    
    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 28px;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .header {
        margin-bottom: 40px;
    }
    
    .mainBlock {
        padding: 0 20px 40px;
    }
    
    .room-header {
        margin-bottom: 30px;
    }
    
    .room-title {
        font-size: 32px;
    }
    
    .room-title::after {
        width: 50px;
        margin-top: 10px;
    }
    
    .gallery-container {
        margin-bottom: 35px;
        border-radius: 20px;
    }
    
    .swiper-slide img {
        max-height: 350px;
    }
    
    .room-description {
        margin-bottom: 35px;
    }
    
    .room-description p {
        font-size: 14px;
        padding: 20px;
        border-radius: 20px;
    }
    
    .footer {
        padding: 40px 0 0;
    }
    
    .footer-container {
        padding: 0 20px;
    }
    
    .last-zag {
        margin-bottom: 35px;
        padding-bottom: 30px;
    }
    
    .last-zag h2 {
        font-size: 24px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 28px;
        font-size: 14px;
        width: 220px;
    }
    
    .footerLine {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 35px;
        padding-bottom: 30px;
    }
    
    .sec-nav, .third-nav {
        text-align: left;
        margin: 0;
        padding: 0;
    }
    
    .sec-nav ul {
        padding: 0;
    }
    
    .foot-zag, .foot-zag-sec {
        font-size: 20px;
    }
    
    .navitem2, .foot-num, .foot-mail, .adres p, .text-foot1, .text-mail {
        font-size: 14px;
    }
    
    .copyright {
        font-size: 12px;
        padding: 20px 0 25px;
    }
}

/* Маленькие мобильные устройства */
@media (max-width: 576px) {
    .room-title {
        font-size: 28px;
    }
    
    .room-description p {
        font-size: 13px;
        padding: 18px;
    }
    
    .swiper-slide img {
        max-height: 280px;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 32px;
        height: 32px;
    }
    
    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 24px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 24px;
        font-size: 13px;
        width: 200px;
    }
    
    .last-zag h2 {
        font-size: 20px;
    }
    
    .foot-zag, .foot-zag-sec {
        font-size: 18px;
    }
    
    .navitem2, .foot-num, .foot-mail, .adres p, .text-foot1, .text-mail {
        font-size: 13px;
    }
}

/* Очень маленькие телефоны */
@media (max-width: 480px) {
    .room-title {
        font-size: 26px;
    }
    
    .room-description p {
        font-size: 12px;
        padding: 16px;
    }
    
    .swiper-slide img {
        max-height: 250px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 8px 20px;
        font-size: 12px;
        width: 180px;
    }
    
    .last-zag h2 {
        font-size: 18px;
    }
}

/* Горизонтальная ориентация */
@media (max-width: 768px) and (orientation: landscape) {
    .swiper-slide img {
        max-height: 300px;
    }
    
    .room-buttons {
        flex-direction: row;
    }
}

/* Стили для десктопа */
@media (min-width: 1201px) {
    .nav-button {
        display: none;
    }
}