/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #f9f6f1;
    --color-primary: #753f32;
    --color-text: #4a4a4a;
    --color-text-light: #5c5c5c;
    --color-white: #ffffff;
    --color-overlay: rgba(0, 0, 0, 0.55);
    --color-border: rgba(0, 0, 0, 0.06);
    --color-footer: #e2dbcf;
    
    --font-forum: 'Forum', serif;
    --font-inter: 'Inter', sans-serif;
    --font-cormorant: 'Cormorant Infant', serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-inter);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;    background-color: transparent;
    z-index: 1000;
    padding: 60px 60px;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: var(--color-bg);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 60px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    transition: all 0.3s ease;
}

.header.scrolled .burger span,
.burger.active span {
    background-color: #753F32;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-svg {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
}

.header.scrolled .logo-svg {
    filter: brightness(0) saturate(100%) invert(22%) sepia(36%) saturate(1234%) hue-rotate(334deg) brightness(94%) contrast(93%);
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    padding: 8px;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.49px;
    text-decoration: none;
    color: var(--color-white);
    transition: opacity 0.3s ease;
}

.header.scrolled .nav-link {
    color: #753F32;
}

.nav-link:hover {
    opacity: 0.7;
}

.nav-btn {
    padding: 10px 12px;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.49px;
    text-decoration: none;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.header.scrolled .nav-btn {
    color: #753F32;
    border-color: #753F32;
}

.nav-btn:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.header.scrolled .nav-btn:hover {
    background-color: #753F32;
    color: var(--color-white);
}

/* Hero Section */
.hero {
    position: relative;
    height: 672px;
    overflow: hidden;
    border-radius: 12px;
    margin: 20px;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 100%;
    transform: translateY(-50%);
    object-fit: cover;
}.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--color-overlay);
}

.hero-content {
    position: absolute;
    top: 189px;
    left: 50%;
    transform: translateX(-50%);
    width: 820px;
    max-width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    color: var(--color-white);
}

.hero-title {
    font-family: var(--font-forum);
    font-size: 80px;
    line-height: 0.92;
    letter-spacing: -0.8px;
    font-weight: 400;
    margin: 0;
}

.hero-text {
    margin-top: 24px;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.4;
    letter-spacing: -0.36px;
    max-width: 100%;
}

.hero-btn {
    margin-top: 40px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 14px 20px;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: -0.56px;
    text-decoration: none;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.hero-btn-icon {
    width: 20px;
    height: 20px;
}

.hero-btn:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.hero-btn:hover .hero-btn-icon {
    filter: brightness(0) saturate(100%) invert(22%) sepia(36%) saturate(1234%) hue-rotate(334deg) brightness(94%) contrast(93%);
}

/* Services Section */
.services {
    padding: 56px 0;
    background-color: var(--color-bg);
}

.services .container {
    padding: 0;
}

.section-title {
    font-family: var(--font-forum);
    font-size: 48px;
    line-height: 0.92;
    letter-spacing: -0.48px;
    color: var(--color-primary);
    margin-bottom: 24px;
    font-weight: 400;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 391px);
    gap: 18px;
}

.service-card {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 12px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: transparent;
}

.service-image {
    width: 100%;
    height: 290px;
    border-radius: 6px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}.service-content {
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-title {
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -0.3px;
    color: var(--color-text);
}

.service-text {
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.21px;
    color: var(--color-text);
}

/* Location Section */
.location {
    padding: 56px 0;
    background-color: var(--color-bg);
}

.location .container {
    padding: 0;
}

.location-content {
    display: flex;
    gap: 24px;
    align-items: center;
}

.location-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.location-address {
    font-family: var(--font-forum);
    font-size: 32px;
    line-height: 0.99;
    letter-spacing: -0.32px;
    color: var(--color-primary);
}

.location-description {
    font-weight: 500;
    font-size: 22px;
    line-height: 30px;
    letter-spacing: -0.33px;
    color: var(--color-text-light);
}

.location-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: -0.56px;
    text-decoration: none;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 6px;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.location-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.location-map {
    flex: 1;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
}

/* Booking Section */
.booking {
    padding: 56px 0;
    background-color: var(--color-bg);
}

.booking .container {
    padding: 0;
}

.booking-content {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.booking-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}.booking-description {
    font-weight: 500;
    font-size: 22px;
    line-height: 30px;
    letter-spacing: -0.33px;
    color: var(--color-text);
    max-width: 578px;
}

.booking-contacts {
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contacts-title {
    font-family: var(--font-forum);
    font-size: 32px;
    line-height: 0.99;
    letter-spacing: -0.32px;
    color: var(--color-primary);
    font-weight: 400;
}

.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 22px;
    line-height: 30px;
    letter-spacing: -0.33px;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-phone:hover {
    color: var(--color-primary);
}

.contact-phone-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 11px;
    padding-bottom: 16px;
}

.social-link {
    display: block;
    width: 32px;
    height: 32px;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 0.7;
}

.social-link img {
    width: 100%;
    height: 100%;
    display: block;
}

.booking-note {
    font-weight: 500;
    font-size: 22px;
    line-height: 30px;
    letter-spacing: -0.33px;
    color: var(--color-text);
    max-width: 578px;
}

.booking-image {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    max-height: 366px;
}

.booking-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Section */
.gallery {
    padding: 24px 0 80px;
    background-color: var(--color-bg);
}

.gallery .container {
    padding: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-grid a:hover {
    transform: scale(1.02);
}

.gallery-item {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

/* Строка 1: 3 фото (4 + 4 + 2 колонки) */
.gallery-grid a:nth-child(1) {
    grid-column: span 4;
    height: 311px;
}

.gallery-grid a:nth-child(2) {
    grid-column: span 4;
    height: 311px;
}

.gallery-grid a:nth-child(3) {
    grid-column: span 2;
    height: 311px;
}

/* Строка 2: 4 фото (2 + 4 + 2 + 2 колонки) */
.gallery-grid a:nth-child(4) {
    grid-column: span 2;
    height: 311px;
}

.gallery-grid a:nth-child(5) {
    grid-column: span 4;
    height: 311px;
}

.gallery-grid a:nth-child(6) {
    grid-column: span 2;
    height: 311px;
}

.gallery-grid a:nth-child(7) {
    grid-column: span 2;
    height: 311px;
}

/* Строка 3: 3 фото (4 + 2 + 4 колонки) */
.gallery-grid a:nth-child(8) {
    grid-column: span 4;
    height: 311px;
}

.gallery-grid a:nth-child(9) {
    grid-column: span 2;
    height: 311px;
}

.gallery-grid a:nth-child(10) {
    grid-column: span 4;
    height: 311px;
}/* Footer */
.footer {
    background-color: var(--color-footer);
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-svg {
    height: 80px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(22%) sepia(36%) saturate(1234%) hue-rotate(334deg) brightness(94%) contrast(93%);
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .services .container,
    .location .container,
    .booking .container,
    .gallery .container {
        padding: 0 20px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .service-card {
        width: 100%;
    }
    
    .location-content,
    .booking-content {
        flex-direction: column;
    }
    
    .location-map {
        width: 100%;
        height: 400px;
    }
    
    .booking-image {
        width: 100%;
        max-height: 300px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid a:nth-child(n) {
        grid-column: span 1;
        height: 200px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
    }

    .header {
        padding: 32px 32px;
        z-index: 1002;
    }

    .header.scrolled {
        padding: 12px 16px;
    }

    .logo-svg {
        height: 40px;
    }

    /* Burger Menu */
    .burger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 32px 0;
        gap: 24px;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav-link {
        font-size: 20px;
        padding: 8px 0;
        color: #753F32;
    }

    .nav-btn {
        font-size: 18px;
        padding: 12px 24px;
        color: #753F32;
        border-color: #753F32;
    }

    .nav-btn:hover {
        background-color: #753F32;
        color: var(--color-white);
    }

    /* Hero */
    .hero {
        height: 600px;
        margin: 16px;
        border-radius: 8px;
    }

    .hero-content {
        top: 50%;
        transform: translate(-50%, -50%);
        width: 320px;
        max-width: calc(100% - 32px);
        padding: 0;
    }

    .hero-title {
        font-size: 36px;
        line-height: 1.05;
    }

    .hero-text {
        margin-top: 12px;
        font-size: 16px;
        line-height: 1.4;
    }

    .hero-btn {
        margin-top: 20px;
        font-size: 16px;
        padding: 12px 20px;
    }

    /* Services */
    .services {
        padding: 20px 0;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 10px;
        padding: 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-image {
        height: 220px;
    }

    .service-title {
        font-size: 18px;
    }

    .service-text {
        font-size: 14px;
    }

    /* Location */
    .location {
        padding: 20px 0;
    }

    .location-text {
        gap: 12px;
        padding: 0;
    }

    .location-address {
        font-size: 24px;
    }

    .location-description {
        font-size: 16px;
        line-height: 24px;
    }

    .location-btn {
        font-size: 16px;
        padding: 12px 20px;
    }

    .location-map {
        height: 300px;
        border-radius: 0;
    }

    /* Booking */
    .booking {
        padding: 20px 0;
    }

    .booking-text {
        gap: 12px;
        padding: 0;
    }

    .booking-description {
        font-size: 16px;
        line-height: 24px;
    }

    .booking-contacts {
        padding-top: 4px;
        gap: 12px;
    }

    .contacts-title {
        font-size: 24px;
    }

    .contact-phone {
        font-size: 18px;
        line-height: 24px;
        flex-wrap: wrap;
    }

    .contact-phone-icon {
        width: 28px;
        height: 28px;
    }

    .social-links {
        justify-content: flex-start;
        gap: 12px;
        padding-bottom: 0;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .booking-note {
        font-size: 16px;
        line-height: 24px;
    }

    .booking-image {
        border-radius: 0;
        max-height: 250px;
    }

    /* Gallery */
    .gallery {
        padding: 10px 0 40px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .gallery-grid a:nth-child(n) {
        grid-column: span 1;
        height: auto;
    }

    .gallery-grid a .gallery-item {
        height: auto;
        aspect-ratio: 4/3;
    }

    /* Footer */
    .footer {
        height: auto;
        padding: 32px 16px;
    }

    .footer-logo-svg {
        height: 60px;
    }
}

/* Scroll Animations — only when JS is ready */
body.anim-ready .fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

body.anim-ready .fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

body.anim-ready .fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

body.anim-ready .fade-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

body.anim-ready .fade-up.visible,
body.anim-ready .fade-in.visible,
body.anim-ready .fade-left.visible,
body.anim-ready .fade-right.visible {
    opacity: 1;
    transform: none;
}

/* Hero cascade delays */
body.anim-ready .hero-title.fade-up { transition-delay: 0.1s; }
body.anim-ready .hero-text.fade-up { transition-delay: 0.3s; }
body.anim-ready .hero-btn.fade-up { transition-delay: 0.5s; }

/* Service cards stagger */
body.anim-ready .service-card.fade-up:nth-child(1) { transition-delay: 0s; }
body.anim-ready .service-card.fade-up:nth-child(2) { transition-delay: 0.1s; }
body.anim-ready .service-card.fade-up:nth-child(3) { transition-delay: 0.2s; }
body.anim-ready .service-card.fade-up:nth-child(4) { transition-delay: 0.15s; }
body.anim-ready .service-card.fade-up:nth-child(5) { transition-delay: 0.25s; }

/* Gallery stagger */
body.anim-ready .gallery-grid a.fade-in:nth-child(1) { transition-delay: 0s; }
body.anim-ready .gallery-grid a.fade-in:nth-child(2) { transition-delay: 0.05s; }
body.anim-ready .gallery-grid a.fade-in:nth-child(3) { transition-delay: 0.1s; }
body.anim-ready .gallery-grid a.fade-in:nth-child(4) { transition-delay: 0.15s; }
body.anim-ready .gallery-grid a.fade-in:nth-child(5) { transition-delay: 0.2s; }
body.anim-ready .gallery-grid a.fade-in:nth-child(6) { transition-delay: 0.1s; }
body.anim-ready .gallery-grid a.fade-in:nth-child(7) { transition-delay: 0.15s; }
body.anim-ready .gallery-grid a.fade-in:nth-child(8) { transition-delay: 0s; }
body.anim-ready .gallery-grid a.fade-in:nth-child(9) { transition-delay: 0.05s; }
body.anim-ready .gallery-grid a.fade-in:nth-child(10) { transition-delay: 0.1s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .fade-up,
    .fade-in,
    .fade-left,
    .fade-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
}