/* Адаптивные стили */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .unique-offer-title {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .features {
        order: 1;
    }
    
    .photo-gallery {
        order: 2;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .location-content-wrapper {
        margin-bottom: 70px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .unique-offer {
        height: 50vh;
    }
    
    .unique-offer-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .apartments-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-form-container {
        padding: 25px;
    }
    
    .bnovo-widget-container,
    .bnovo-module-container {
        padding: 0 15px;
        min-height: 350px;
    }
    
    .bnovo-widget-wrapper {
        min-height: 350px;
    }
    
    .booking {
        padding: 80px 0;
    }
    
    .booking-page {
        padding: 120px 0 80px;
    }
    
    .ratings-section {
        padding: 60px 0;
    }
    
    .ratings-container {
        gap: 40px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .rating-card {
        min-width: 250px;
        max-width: 350px;
        padding: 50px 40px;
    }
    
    .rating-number {
        font-size: 5rem;
    }
    
    .platform-name {
        font-size: 1.1rem;
    }
    
    .platform-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .platform-icon-wrapper i {
        font-size: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .prev-btn, .next-btn, .submit-btn {
        width: 100%;
    }
        .photo-gallery {
        padding: 15px;
    }
    
    /* На мобильных - горизонтальный свайп */
    /* Скрываем основное фото на мобильных */
    .gallery-main-photo {
        display: none !important;
    }
    
    /* Показываем слайды на мобильных */
    .gallery-track {
        display: flex !important;
        flex-wrap: nowrap;
        gap: 10px;
        scroll-snap-type: x mandatory;
    }
    
    .gallery-container {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .gallery-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .gallery-slide {
        flex: 0 0 calc(100% - 10px);
        min-width: calc(100% - 10px);
        aspect-ratio: 1;
        scroll-snap-align: start;
    }
    
    .gallery-slide img {
        height: 100%;
        width: 100%;
    }
    
    /* Кнопки навигации - показываем на мобильных */
    .gallery-nav {
        display: flex;
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        justify-content: space-between;
        padding: 0 10px;
        transform: translateY(-50%);
        pointer-events: none;
        z-index: 10;
    }
    
    .gallery-prev,
    .gallery-next {
        pointer-events: all;
    }
    
    .location-timeline {
        padding: 80px 0;
    }
    
    .location-content-wrapper {
        margin-bottom: 60px;
        padding: 0 15px;
    }
    
    .location-title {
        font-size: 2rem;
    }
    
    .location-text {
        font-size: 1rem;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
        padding: 0 15px;
    }
    
    .advantage-card {
        padding: 30px 20px;
    }
    
    .advantage-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .advantage-icon i {
        font-size: 24px;
    }
    
    .advantage-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .advantage-desc {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .unique-offer-title {
        font-size: 1.5rem;
    }
    
    .unique-offer-desc {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-item {
        padding: 15px;
    }
    
    .apartment-info {
        padding: 20px;
    }
    
    .apartment-name {
        font-size: 1.1rem;
    }
    
    .modal-content {
        padding: 25px;
    }
    
    .contact-links {
        flex-direction: column;
    }
    
    .gallery-slide {
        flex: 0 0 calc(100% - 5px);
        min-width: calc(100% - 5px);
    }
    
    .gallery-slide img {
        height: 100%;
    }
    
    .bnovo-widget-container,
    .bnovo-module-container {
        padding: 0 10px;
        min-height: 300px;
    }
    
    .bnovo-widget-wrapper {
        min-height: 300px;
    }
    
    .booking {
        padding: 60px 0;
    }
    
    .booking-page {
        padding: 100px 0 60px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .ratings-section {
        padding: 40px 0;
    }
    
    .ratings-container {
        flex-direction: column;
        gap: 25px;
        padding: 0 10px;
    }
    
    .rating-card {
        min-width: 100%;
        max-width: 100%;
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .rating-number {
        font-size: 4rem;
    }
    
    .platform-name {
        font-size: 0.95rem;
    }
    
    .platform-icon-wrapper {
        width: 32px;
        height: 32px;
    }
    
    .platform-icon-wrapper i {
        font-size: 20px;
    }
    
    .rating-platform {
        margin-bottom: 20px;
        gap: 8px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    
    .rating-value {
        margin-top: 8px;
    }
    
    .platform-icon-wrapper i {
        font-size: 22px;
    }
    
    .rating-platform {
        margin-bottom: 30px;
    }
    
    .location-timeline {
        padding: 60px 0;
    }
    
    .location-content-wrapper {
        margin-bottom: 50px;
        padding: 0 10px;
    }
    
    .location-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .location-text {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .advantage-card {
        padding: 25px 20px;
    }
    
    .advantage-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 18px;
    }
    
    .advantage-icon i {
        font-size: 22px;
    }
    
    .advantage-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .advantage-desc {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Адаптивность для страниц апартаментов */
    .apartment-detail {
        padding: 100px 0 60px;
    }
    
    .apartment-header {
        margin-bottom: 50px;
        padding: 0 15px;
    }
    
    .apartment-title {
        font-size: 2.2rem;
    }
    
    .carousel {
        margin: 0 auto 60px;
        padding: 0 15px;
    }
    
    .carousel-container {
        height: 450px;
    }
    
    .features-section {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
        padding: 0 15px;
    }
    
    .feature-card {
        padding: 30px 25px;
    }
    
    .spa-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
        padding: 0 15px;
    }
    
    .collage {
        padding: 0 15px;
        grid-template-rows: repeat(2, 220px);
    }
    
    .booking-cta-section {
        padding: 60px 0;
    }
    
    .booking-cta {
        padding: 40px 30px;
        margin: 0 15px;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-description {
        font-size: 0.95rem;
    }
    
    .booking-button {
        padding: 16px 40px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    /* Дополнительные стили для страниц апартаментов на планшетах */
    .apartment-detail {
        padding: 90px 0 50px;
    }
    
    .apartment-title {
        font-size: 2rem;
    }
    
    .carousel-container {
        height: 400px;
    }
    
    .carousel-nav {
        width: 45px;
        height: 45px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .collage {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 180px);
        gap: 10px;
    }
    
    .collage-item:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }
    
    .collage-item:nth-child(2) {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }
    
    .collage-item:nth-child(3) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
    
    .collage-item:nth-child(4) {
        grid-column: 1 / 3;
        grid-row: 3 / 4;
    }
}

@media (max-width: 480px) {
    /* Дополнительные стили для страниц апартаментов на мобильных */
    .apartment-detail {
        padding: 80px 0 40px;
    }
    
    .apartment-header {
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .apartment-title {
        font-size: 1.8rem;
    }
    
    .apartment-category {
        font-size: 0.85rem;
        padding: 6px 16px;
    }
    
    .apartment-location {
        font-size: 0.95rem;
    }
    
    .carousel {
        margin: 0 auto 40px;
        padding: 0 10px;
        border-radius: 12px;
    }
    
    .carousel-container {
        height: 300px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-dots {
        bottom: 15px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    .features-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .features-grid {
        padding: 0 10px;
        gap: 15px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .feature-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .feature-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .spa-section {
        padding: 40px 0;
    }
    
    .collage {
        padding: 0 10px;
        grid-template-rows: repeat(3, 150px);
        gap: 8px;
    }
    
    .booking-cta-section {
        padding: 40px 0;
    }
    
    .booking-cta {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .cta-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .cta-description {
        font-size: 0.9rem;
        margin-bottom: 25px;
        line-height: 1.5;
    }
    
    .booking-button {
        padding: 14px 35px;
        font-size: 0.95rem;
        width: 100%;
    }
}