* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ef610f;
    --warning-color: #F3C400;
    --text-dark: #171a1f;
    --text-light: #565d6d;
    --bg-light: #fafafb;
    --border-color: #dee1e6;
    --font-heading: 'Comic Sans MS', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.header > .container {
    max-width: none;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(239, 97, 15, 0.4);
}
.btn-primary:hover {
    background-color: #d6560d;
}

.btn-outline {
    background-color: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}
.btn-outline:hover {
    background-color: var(--bg-light);
}

.btn-warning {
    background-color: var(--warning-color);
    color: #171a1f;
    font-size: 1.1rem;
    padding: 12px 24px;
}
.btn-warning:hover {
    background-color: #e5b800;
}

.btn-full {
    width: 100%;
}

.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    z-index: 1001;
    flex: 0 0 auto;
}

.logo img {
    height: 45px;
    width: auto;
}

.menu-overlay {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    margin-left: 40px;
    min-width: 0;
    gap: 20px;
}

.main-nav {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
}

.main-nav a {
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    font-family: var(--font-heading);
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    flex: 0 1 auto;
    min-width: 0;
}

.header-actions > * {
    min-width: 0;
}

.badge,
.lang-switcher,
.btn {
    white-space: nowrap;
}

.badge,
.lang-switcher {
    flex-shrink: 0;
}

.badge {
    background-color: #ecfdf3;
    border: 1px solid #dafae6;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    text-align: center;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-light);
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

.lang-switcher button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.lang-switcher button:hover {
    color: var(--text-dark);
}

.lang-switcher button.active {
    color: var(--primary-color);
}

.lang-switcher .sep {
    color: var(--border-color);
    font-size: 0.9rem;
}


.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}


.burger-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger-btn.active span:nth-child(2) {
    opacity: 0;
}
.burger-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}



.hero {
    position: relative;
    background-image: url('./assets/IMG_3.png');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    min-height: 700px;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 100%;
}

.booking-widget {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.booking-widget h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.booking-widget p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-group input, 
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-body);
}

.form-group textarea {
    resize: vertical;
}

.booking-widget small {
    display: block;
    text-align: center;
    color: var(--text-light);
    margin-top: 15px;
    font-size: 0.8rem;
}

.hero-title h1 {
    font-size: 3rem;
    color: var(--text-dark);
    text-shadow: 2px 2px 10px rgba(255,255,255,0.8);
    position: absolute;
    right: 0;
    top: 20px;
}



.about {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch; 
}


.about-image {
    height: 100%;
}

.about-image img {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-light);
}


.apartments {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.apartment-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.apartment-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.apartment-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.apartment-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.apartment-desc {
    color: var(--text-light);
    margin-bottom: 25px;
    flex-grow: 1;
}

.amenities {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.amenities li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 400;
}

.amenities li img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.apartment-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
}

.cipat {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 15px;
}



.location-contact {
    padding: 60px 0;
}

.location-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.map-visual img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.relative-map {
    position: relative;
}

.map-overlay {
    position: absolute;
    top: 30px;
    left: 40px;
}

.map-overlay h3 {
    font-size: 2.5rem;
    color: #203f5b;
}

.map-overlay span {
    font-size: 1.2rem;
    color: #171a1f;
    font-weight: 600;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.address-block h4, .contact-block h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.address-block a, .contact-block p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.address-block a{
    text-decoration: underline;
}



.testimonials {
    padding: 80px 0;
    background-color: var(--bg-light);
    overflow: hidden; 
}

.testimonials-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.testimonials-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.testimonials-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}


.testimonials-grid {
    display: grid;
    grid-auto-flow: column; 
    
    grid-auto-columns: calc((100% - 60px) / 3);
    gap: 30px;
    
    overflow-x: auto; 
    padding-bottom: 20px; 
    
    
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    
    
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}


.testimonials-grid::-webkit-scrollbar {
    height: 8px;
}
.testimonials-grid::-webkit-scrollbar-track {
    background: transparent;
}
.testimonials-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.review-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    
    
    scroll-snap-align: start; 
}

.review-card .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.review-card h4 {
    color: var(--warning-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.stars img {
    width: 20px;
    height: 20px;
    margin: 0 2px;
}


@media (max-width: 992px) {
    .testimonials-grid {
        
        grid-auto-columns: calc((100% - 30px) / 2);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        
        grid-auto-columns: 100%;
    }
}


.contact-section {
    padding: 80px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-text-col h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.contact-text-col .subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-details .availability {
    font-weight: 400;
    color: var(--text-light);
    margin-top: 20px;
}

.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-form-wrapper h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.contact-form-wrapper p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.contact-form-wrapper small {
    display: block;
    margin-top: 15px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.lightbox-content img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-nav {
    position: relative;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #1a1a1a;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.lightbox-nav:hover {
    background: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.lightbox-nav:active {
    transform: scale(0.95);
}

.lightbox-caption {
    margin-top: 12px;
    color: #f8f8f8;
    font-size: 1rem;
    text-align: center;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 2002;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

.lightbox-close:active {
    transform: scale(0.95);
}

.footer {
    background-color: var(--warning-color);
    padding: 30px 0;
    text-align: center;
    font-weight: 600;
    color: #171a1f;
}


/* =========================================
   МЕДИАЗАПРОСЫ (АДАПТИВ)
========================================= */


@media (max-width: 992px) {
    
    .burger-btn {
        display: flex;
    }

    
    .menu-overlay {
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        margin-left: 0;
        padding: 40px 20px;
        gap: 30px;
        
        
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        box-shadow: inset 0 10px 10px -10px rgba(0,0,0,0.1);
    }

    
    .menu-overlay.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
    }
    
    .main-nav a {
        font-size: 1.3rem;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .header-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .lang-switcher {
        margin-right: 0;
        margin-bottom: 10px;
    }

    
    .about-container, 
    .location-container, 
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero {
        padding: 40px 0;
        min-height: auto;
    }

    .hero-container {
        flex-direction: column;
        justify-content: center;
        gap: 40px;
    }
    
    .hero-title h1 {
        position: relative;
        text-align: center;
        margin-top: 20px;
        font-size: 3rem;
        top: 0;
    }

    
    .about, .apartments, .location-contact, .testimonials, .contact-section {
        padding: 50px 0;
    }

    .lightbox-content {
        flex-direction: column;
        gap: 10px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-content img {
        max-height: 70vh;
    }
}


@media (max-width: 600px) {
    html {
        font-size: 14px; 
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .amenities {
        grid-template-columns: 1fr; 
    }

    .map-overlay {
        top: 15px;
        left: 20px;
    }

    .map-overlay h3 {
        font-size: 1.8rem;
    }

    .hero-title h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .contact-text-col h2 {
        font-size: 2.2rem;
    }

    .contact-form-wrapper {
        padding: 25px 20px;
    }
    
    .apartment-content {
        padding: 20px;
    }

    .lightbox-overlay {
        padding: 10px;
    }

    .lightbox-content {
        gap: 8px;
    }

    .lightbox-nav {
        width: 38px;
        height: 38px;
    }

    .lightbox-content img {
        max-height: 60vh;
        border-radius: 12px;
    }

    .lightbox-caption {
        font-size: 0.9rem;
        max-width: 100%;
        padding: 0 10px;
    }
}

.btn_book, .badge, .amenities, .subtitle, .contact-details{
    font-family: var(--font-heading);
}
.arrow{
    position: absolute;
    width: 396px;
    height: auto;
    right: 700px;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-images {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-images img {
    min-width: 100%;
    height: 300px; 
    object-fit: cover;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

