:root {
    --bg-ivory: #FDFBF7;
    --bg-card: #F4EFE6;
    --gold-primary: #C5A059;
    --gold-light: #D8B775;
    --gold-gradient: linear-gradient(135deg, #D8B775, #A8833C);
    --text-dark: #1A1815;
    --text-gray: #686259;
    --border-gold: rgba(197, 160, 89, 0.4);
    --link-blue: #0066CC;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-primary) var(--bg-ivory);
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-ivory);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 4px;
}

body {
    background-color: var(--bg-ivory);
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, .serif-font {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
}

/* Анимация появления при скролле (работает в обе стороны) */
.fade-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header (Шапка) */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 22px 40px;
    z-index: 1000;
    border-bottom: 1px solid var(--border-gold);
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    align-items: center;
    justify-content: flex-start;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold-primary);
}

.logo-container {
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    justify-self: center;
}

.header-brand-dd {
    font-size: 32px;
    font-weight: 650;
    color: var(--text-dark);
    letter-spacing: 4px;
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.1;
}

.logo-container h1 {
    font-size: 17px;
    letter-spacing: 3px;
    color: var(--text-dark);
    font-weight: 650;
    text-transform: uppercase;
    font-family: 'Cormorant Garamond', serif;
}

.logo-container p {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--text-gray);
    white-space: nowrap;
    margin-top: 2px;
    font-weight: 500;
}

.header-bottom-phone {
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    margin-top: 4px;
    transition: color 0.3s;
    display: inline-block;
}
.header-bottom-phone:hover {
    color: var(--gold-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
}

.phone-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 28px;
    letter-spacing: 1px;
    font-weight: 600;
}

.btn-book {
    background: var(--gold-gradient);
    color: #FFFFFF;
    border: none;
    padding: 12px 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.25);
}

.btn-book:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 28px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
    line-height: 1;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-links {
    list-style: none;
    text-align: center;
}

.mobile-menu-links li {
    margin: 20px 0;
}

.mobile-menu-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 20px;
    letter-spacing: 4px;
    font-family: 'Cormorant Garamond', serif;
    transition: color 0.3s;
}

.mobile-menu-links a:hover {
    color: var(--gold-primary);
}

.mobile-menu-footer {
    margin-top: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.mobile-menu-footer .phone-link {
    font-size: 18px !important;
}

.mobile-menu-footer .btn-book {
    font-size: 16px !important;
    padding: 16px 32px !important;
    width: 240px !important;
}

section {
    scroll-margin-top: 100px;
}

/* Hero Section */
.hero {
    width: 100vw;
    height: 75vh;
    background-color: var(--bg-ivory);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 100px;
    padding-top: 50px;
    position: relative;
    overflow: hidden;
}

.hero-side-img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 220px;
    height: 330px;
    object-fit: cover;
    border: 2.5px solid var(--gold-primary);
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.hero-side-img.left { left: 20px; }
.hero-side-img.right { right: 20px; }

.hero-brand-dd {
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: 2px;
    font-family: 'Cormorant Garamond', serif;
    line-height: 1;
    margin-bottom: 2px;
}

.hero-content h2 {
    font-size: 42px; 
    letter-spacing: 4px;
    color: var(--text-dark);
    font-weight: 650;
    text-transform: uppercase;
    font-family: 'Cormorant Garamond', serif;
    margin-bottom: 12px;
}

.hero-content p {
    font-size: 19px; 
    letter-spacing: 4px;
    color: var(--gold-primary);
    margin-bottom: 45px;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
    max-width: 500px;
}

.hero-buttons .btn {
    background: var(--gold-gradient);
    color: #FFFFFF;
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.25);
    width: auto;
    flex: 0 1 auto;
}

.hero-buttons .btn-alt {
    background: #FFFFFF;
    color: var(--text-dark);
    border: 1px solid var(--border-gold);
    font-weight: 700;
}

/* About Section */
.about-section {
    padding: 60px 20px 40px;
    text-align: center;
    background-color: var(--bg-ivory);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.about-section h2 {
    font-size: 46px;
    letter-spacing: 3px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.about-section p.subtitle {
    font-size: 15px;
    letter-spacing: 1px;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

.priorities-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    padding: 0 10px;
}

.priority-card {
    background: var(--bg-card);
    padding: 35px 25px;
    border: 1px solid var(--border-gold);
    text-align: center;
    border-radius: 4px;
    width: 100%;
}

.priority-card h3 {
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.priority-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-gray);
}

.accent-hundred {
    font-size: 32px;
    font-weight: 800;
    color: var(--gold-primary);
    font-family: 'Cormorant Garamond', serif;
    display: inline-block;
    margin-right: 4px;
    vertical-align: baseline;
}

/* OUR WORKS Section */
.works-section {
    padding: 90px 40px;
    background-color: var(--bg-ivory);
    text-align: center;
}

.works-section h2 {
    font-size: 46px;
    letter-spacing: 3px;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.works-wrapper-mobile {
    position: relative;
    max-width: 1100px;
    margin: 0 auto 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.works-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.work-card {
    background: var(--bg-ivory);
    border: 2.5px solid var(--gold-primary);
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.15);
}

.works-grid img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

.works-slider-arrow {
    display: none; 
}

.works-services-list {
    list-style: none;
    max-width: 750px;
    margin: 0 auto;
}

.works-services-list li {
    font-size: 22px;
    letter-spacing: 1px;
    margin: 20px 0;
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-dark);
    font-weight: 500;
}

/* OUR MASTERS Section */
.artists-section {
    padding: 80px 40px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-gold);
    text-align: center;
}

.artists-section h2 {
    font-size: 46px;
    letter-spacing: 3px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.artists-desc {
    max-width: 850px;
    margin: 0 auto 50px;
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-gray);
}

.masters-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.master-card {
    background: var(--bg-ivory);
    border: 1px solid var(--border-gold);
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
}

.master-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 15px;
}

.master-card h4 {
    font-size: 22px;
    color: var(--text-dark);
    letter-spacing: 1px;
}

.master-card p {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--gold-primary);
    text-transform: uppercase;
    margin-top: 6px;
}

/* LOCATIONS Section */
.locations-section {
    padding: 90px 40px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-gold);
    text-align: center;
}

.locations-section h2 {
    font-size: 46px;
    margin-bottom: 40px;
    letter-spacing: 3px;
    color: var(--text-dark);
}

.locations-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.location-card {
    background: var(--bg-ivory);
    padding: 40px;
    border: 1px solid var(--border-gold);
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 4px;
}

.location-card h3 {
    font-size: 26px;
    color: var(--text-dark);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.location-card p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn-outline {
    border: 1px solid var(--gold-primary);
    padding: 12px 20px;
    background: transparent;
    font-size: 11px;
    letter-spacing: 2px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-dark);
    display: inline-block;
    text-align: center;
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--gold-primary);
    color: #FFFFFF;
    border-color: var(--gold-primary);
}

/* Reviews Section */
.reviews-section {
    padding: 90px 40px;
    background-color: var(--bg-ivory);
    text-align: center;
}

.reviews-section h2 {
    font-size: 46px;
    margin-bottom: 50px;
    letter-spacing: 3px;
    color: var(--text-dark);
}

.reviews-slider-container {
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-card {
    background: var(--bg-card);
    padding: 45px 35px;
    border: 1px solid var(--border-gold);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 4px;
    width: 100%;
    min-height: 300px;
}

.review-author {
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.stars {
    color: var(--gold-primary);
    margin-bottom: 15px;
    font-size: 16px;
}

.review-card p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 25px;
    flex-grow: 1;
}

.review-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-open-review {
    display: inline-block;
    text-align: center;
    border: 1px solid var(--gold-primary);
    padding: 10px 22px;
    background: transparent;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
}

.btn-open-review:hover {
    background: var(--gold-primary);
    color: #FFFFFF;
}

.slider-arrow {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    color: var(--text-dark);
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border-radius: 50%;
}

.slider-arrow.prev { left: -65px; }
.slider-arrow.next { right: -65px; }

/* Footer */
footer {
    background-color: var(--bg-card);
    padding: 70px 40px 80px;
    border-top: 1px solid var(--border-gold);
    display: grid;
    grid-template-columns: repeat(4, 1fr) 1.2fr;
    align-items: start;
    gap: 30px;
    font-size: 21px; 
    color: #1A1815;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.footer-col {
    text-align: left;
    padding-left: 20px;
}

footer h4 {
    font-size: 27px; 
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #1A1815;
    font-weight: 750;
}

footer p, footer li {
    color: #1A1815;
    line-height: 1.8;
    list-style: none;
    font-size: 20px; 
    font-weight: 500;
}

.footer-insta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1A1815;
    font-weight: 600;
    font-size: 19px; 
    margin-top: 8px;
    padding: 12px 18px;
    border: 1px solid var(--border-gold);
    border-radius: 4px;
    background: var(--bg-ivory);
}

.footer-insta-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.footer-logo {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 0;
}

.footer-logo .footer-brand-dd {
    font-size: 44px; 
    font-weight: 650;
    color: #1A1815;
    letter-spacing: 3px;
    font-family: 'Cormorant Garamond', serif;
}

.footer-logo h3 {
    font-size: 23px; 
    font-weight: 650;
    letter-spacing: 3px;
    margin-top: 2px;
    color: #1A1815 !important;
    text-transform: uppercase;
}

/* Модальное окно */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-ivory);
    border: 1px solid var(--border-gold);
    padding: 30px;
    border-radius: 6px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

.modal-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.modal-work-item {
    border: 2px solid var(--gold-primary);
    padding: 8px;
    border-radius: 4px;
    background: #FFFFFF;
}

.modal-work-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

/* Адаптивность для мобильных и планшетов */
@media (max-width: 1024px) {
    header { padding: 15px 20px; display: flex; justify-content: space-between; }
    .nav-links { display: none; }
    .hamburger-btn { display: block; }
    .logo-container { justify-self: auto; }
    .header-bottom-phone { display: block; font-size: 11px; }
    .header-brand-dd { font-size: 24px; font-weight: 650; }
    .logo-container h1 { font-size: 13px; font-weight: 650; }
    .logo-container p { font-size: 9px; letter-spacing: 1px; }
    .hero-side-img { display: none; }
    .hero { padding: 0 20px; }
    .hero-brand-dd { font-size: 48px; }
    .hero-content h2 { font-size: 26px; }
    .hero-content p { font-size: 15px; }
    
    .priorities-grid { 
        grid-template-columns: 1fr; 
        gap: 20px; 
        padding: 0 15px;
    }
    .priority-card {
        grid-column: span 1 !important;
        max-width: 100% !important;
    }

    .masters-grid { grid-template-columns: repeat(2, 1fr); }
    
    .works-grid { 
        grid-template-columns: 1fr; 
        max-width: 280px;
        margin: 0 auto;
    }
    .works-wrapper-mobile { padding: 0 45px; }
    .works-slider-arrow {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: var(--bg-card);
        border: 1px solid var(--border-gold);
        color: var(--text-dark);
        font-size: 24px;
        width: 38px;
        height: 38px;
        align-items: center;
        justify-content: center;
        z-index: 10;
        cursor: pointer;
        border-radius: 50%;
    }
    .works-slider-arrow.prev { left: 0px; }
    .works-slider-arrow.next { right: 0px; }

    .locations-grid { flex-direction: column; }
    footer { grid-template-columns: 1fr; text-align: center; padding: 40px 25px; gap: 20px; }
    .footer-col { text-align: center; padding-left: 0; }
    .footer-logo { text-align: center !important; align-items: center; }
    .slider-arrow.prev { left: -10px; }
    .slider-arrow.next { right: -10px; }
    .reviews-slider-container { padding: 0 35px; }
    .modal-works-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    header { padding: 10px 15px; }
    
    .header-bottom-phone { display: block; font-size: 14px; margin-top: 2px; }
    .header-brand-dd { font-size: 22px; font-weight: 650; letter-spacing: 2px; }
    .logo-container h1 { font-size: 12px; font-weight: 650; letter-spacing: 2px; }
    .logo-container p { font-size: 8px; letter-spacing: 1.5px; }
    
    .btn-book { padding: 8px 18px; font-size: 12px; letter-spacing: 1px; }
    
    .hero-brand-dd { font-size: 44px; letter-spacing: 2px; font-weight: 500; }
    .hero-content h2 { font-size: 20px; letter-spacing: 4px; }
    .hero-content p { font-size: 12px; letter-spacing: 1px; }
    .hero-buttons { flex-direction: column; align-items: center; width: 100%; }
    .hero-buttons .btn { width: 100%; max-width: 285px; text-align: center; }
    .header-right .phone-link { display: none; }
    .about-section h2, .artists-section h2, .works-section h2, .locations-section h2, .reviews-section h2 { font-size: 32px; }
    
    .priorities-grid { 
        grid-template-columns: 1fr !important; 
        gap: 15px; 
        padding: 0 10px;
    }
    .priority-card {
        grid-column: span 1 !important;
        max-width: 100% !important;
        padding: 25px 20px;
    }

    .masters-grid { grid-template-columns: 1fr; }
    
    .works-grid { max-width: 260px; }
    .works-wrapper-mobile { padding: 0 35px; }

    .review-card { padding: 25px 20px; min-height: auto; }
    .review-card p { font-size: 14px; }
    
    footer {
        padding: 30px 15px 35px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px !important;
    }
    
    .footer-col {
        min-width: 100%;
        margin-bottom: 0 !important;
        padding-left: 0 !important;
    }
    
    footer h4 {
        font-size: 24px !important; 
        margin-bottom: 5px !important;
        letter-spacing: 1px;
    }
    
    footer p, footer li {
        font-size: 18px !important; 
        line-height: 1.4 !important;
    }
    
    .footer-insta-btn {
        font-size: 18px;
        width: auto;
        padding: 8px 16px;
        justify-content: center;
        margin-top: 6px !important;
    }
    
    .footer-logo {
        margin-top: 8px !important;
    }
    
    .footer-logo .header-brand-dd {
        font-size: 34px !important;
        font-weight: 650 !important;
    }
    
    .footer-logo h3 {
        font-size: 18px !important;
        font-weight: 650 !important;
        margin-top: 0px !important;
    }
    
    .modal-works-grid { grid-template-columns: 1fr; }
}

@media (min-width: 1225px) {
    .header-bottom-phone {
        display: none !important;
    }
    .hero-side-img {
        display: none !important;
    }
    .hero {
        padding: 0 20px !important;
    }
}