/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    --color-primary: #8B6F47;
    --color-primary-dark: #6B5434;
    --color-primary-light: #A8895F;
    --color-accent: #C9A961;
    --color-bg: #FDF8F3;
    --color-bg-alt: #F5E6D3;
    --color-bg-card: #FFFFFF;
    --color-text: #3D2E23;
    --color-text-light: #6B5D52;
    --color-text-muted: #9B8B7E;
    --color-border: #E8D5C4;
    --color-success: #4A7C59;
    --color-error: #C45B5B;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(61, 46, 35, 0.06);
    --shadow-md: 0 4px 20px rgba(61, 46, 35, 0.1);
    --shadow-lg: 0 10px 40px rgba(61, 46, 35, 0.15);
    --shadow-xl: 0 20px 60px rgba(61, 46, 35, 0.2);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== СБРОС ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== ТИПОГРАФИКА ===== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 52px);
    color: var(--color-text);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
}

.btn-arrow {
    transition: transform 0.3s;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 248, 243, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
}

.logo-icon {
    font-size: 32px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-nav {
    padding: 10px 20px;
    font-size: 14px;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(253, 248, 243, 0.95) 0%, rgba(245, 230, 211, 0.85) 100%),
        url('../images/hero-bg.jpg') center/cover no-repeat;
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(139, 111, 71, 0.1);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title .accent {
    color: var(--color-primary);
    font-style: italic;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-light);
    margin-top: 4px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-master-photo {
    max-height: 600px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
}

.hero-image-decoration {
    position: absolute;
    top: 40px;
    right: -20px;
    width: 300px;
    height: 400px;
    background: var(--color-accent);
    border-radius: var(--radius-lg);
    z-index: 1;
    opacity: 0.3;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 13px;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    font-size: 24px;
    margin-top: 8px;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ===== ABOUT ===== */
.about {
    padding: 120px 0;
    background: var(--color-bg);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--color-primary);
    color: white;
    padding: 24px 32px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.badge-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    font-size: 14px;
    margin-top: 4px;
}

.about-content .section-label {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-text {
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.about-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-text strong {
    font-size: 16px;
    color: var(--color-text);
}

.feature-text span {
    font-size: 14px;
    color: var(--color-text-light);
}

/* ===== SERVICES ===== */
.services {
    padding: 120px 0;
    background: var(--color-bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.service-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    height: 220px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 28px;
    position: relative;
}

.service-icon {
    position: absolute;
    top: -24px;
    right: 28px;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-md);
}

.service-title {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--color-text);
}

.service-desc {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-price {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
}

.services-cta {
    text-align: center;
}

/* ===== GALLERY ===== */
.gallery {
    padding: 120px 0;
    background: var(--color-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 111, 71, 0) 0%, rgba(139, 111, 71, 0.3) 100%);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ===== REVIEWS ===== */
.reviews {
    padding: 120px 0;
    background: var(--color-bg-alt);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.review-card {
    background: var(--color-bg-card);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.review-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.review-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.review-stars {
    color: var(--color-accent);
    font-size: 14px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.review-date {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ===== CALCULATOR SECTION ===== */
.calculator-section {
    padding: 120px 0;
    background: var(--color-bg);
}

/* ===== CONTACTS ===== */
.contacts {
    padding: 120px 0;
    background: var(--color-bg-alt);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.contact-card {
    background: var(--color-bg-card);
    padding: 32px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.contact-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--color-text);
}

.contact-text {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.contact-link {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--color-primary-dark);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-link {
    font-size: 14px;
    color: var(--color-primary);
    font-weight: 500;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--color-primary-dark);
}

.contacts-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-placeholder {
    background: var(--color-bg-card);
    padding: 80px 40px;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.map-icon {
    font-size: 64px;
}

.map-placeholder p {
    font-size: 18px;
    color: var(--color-text);
}

.map-hint {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-text);
    color: var(--color-bg);
    padding: 60px 0 30px;
}

.footer-container {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-text {
    font-size: 14px;
    color: rgba(253, 248, 243, 0.7);
    margin-bottom: 32px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 14px;
    color: rgba(253, 248, 243, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(253, 248, 243, 0.1);
    font-size: 13px;
    color: rgba(253, 248, 243, 0.5);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 968px) {
    .hero-container,
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-master-photo {
        max-height: 400px;
    }
    
    .hero-image-decoration {
        display: none;
    }
    
    .about-image-badge {
        right: 20px;
        bottom: -20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--color-border);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .btn-nav {
        display: none;
    }
    
    .burger {
        display: flex;
    }
    
    .hero-stats {
        gap: 32px;
    }
    
    .stat-number {
        font-size: 32px;
    }
}

@media (max-width: 640px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .about, .services, .gallery, .reviews, .calculator-section, .contacts {
        padding: 80px 0;
    }
}

/* ===== АНИМАЦИИ ПОЯВЛЕНИЯ ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}