:root {
    /* Цветовая палитра: Теплые пастельные тона */
    --bg-color: #FDFBF7; /* Очень теплый белый */
    --text-primary: #4A3F35; /* Мягкий темно-коричневый */
    --text-secondary: #8B7366; /* Приглушенный коричневый */
    --accent-color: #DDA77B; /* Теплый персиково-бежевый */
    --accent-hover: #C59062;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(139, 115, 102, 0.1);
    
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 10px 20px -10px var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -10px var(--accent-color);
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
}

.full-width {
    width: 100%;
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    box-shadow: var(--glass-shadow);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: -0.05em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(253, 251, 247, 0.98) 0%, rgba(253, 251, 247, 0.9) 50%, rgba(253, 251, 247, 0.4) 100%); } @media (max-width: 768px) { .hero-bg::after { background: linear-gradient(180deg, rgba(253, 251, 247, 0.95) 0%, rgba(253, 251, 247, 0.9) 100%); } }

.hero-content { max-width: 850px; text-shadow: 0 0 30px rgba(253, 251, 247, 0.8); }

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem 2rem;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.9);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    padding: 3rem 2.5rem;
    position: relative;
    text-align: center;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.popular {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.5rem 0;
}

.price span {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 2.5rem;
    text-align: left;
}

.pricing-card ul li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 2rem;
}

.pricing-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    height: 400px;
    box-shadow: var(--glass-shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gradient-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F2E3D5 0%, #E2C7B1 100%);
}

/* Contacts */
.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem;
}

.info-items {
    margin-top: 3rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 500;
    color: var(--text-primary);
}

.input-group input {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(139, 115, 102, 0.2);
    background: rgba(255, 255, 255, 0.5);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
}

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.875rem;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .pricing-card.popular {
        transform: scale(1);
    }
    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
    .contacts-wrapper {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-bg::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(253, 251, 247, 0.98) 0%, rgba(253, 251, 247, 0.9) 50%, rgba(253, 251, 247, 0.4) 100%); } @media (max-width: 768px) { .hero-bg::after { background: linear-gradient(180deg, rgba(253, 251, 247, 0.95) 0%, rgba(253, 251, 247, 0.9) 100%); } }
    .hero-content { max-width: 850px; text-shadow: 0 0 30px rgba(253, 251, 247, 0.8); }
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }
}

/* Before / After Comparison */
.image-comparison {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    height: 500px;
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
}
@media (max-width: 768px) {
    .image-comparison {
        height: 350px;
    }
}
.image-comparison img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    border-radius: 24px;
}
.img-comp-before {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    z-index: 1;
}
.comp-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    outline: none;
    cursor: ew-resize;
    z-index: 2;
}
.comp-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 4px;
    height: 500px;
    background: white;
    cursor: ew-resize;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    position: relative;
}
.comp-slider::-moz-range-thumb {
    width: 4px;
    height: 500px;
    background: white;
    cursor: ew-resize;
    border: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.comparison-labels {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 1rem auto 0;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0 1rem;
}

/* Video Section */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    aspect-ratio: 16/9;
    background: #000;
}
.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.4s ease;
}
.video-wrapper.is-playing video {
    opacity: 1;
}
.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}
.play-button-overlay:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.play-icon {
    color: white;
    font-size: 2rem;
    margin-left: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Mobile Adaptation (Horizontal Scroll for Cards) */
@media (max-width: 768px) {
    .services-grid, .pricing-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
        padding-bottom: 2rem;
        margin-left: -2rem;
        margin-right: -2rem;
        padding-left: 2rem;
        padding-right: 2rem;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .services-grid::-webkit-scrollbar, .pricing-grid::-webkit-scrollbar {
        display: none;
    }
    .service-card, .pricing-card {
        min-width: 85vw;
        scroll-snap-align: center;
    }
    h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
}

/* Hamburger Menu & Mobile Navbar */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-primary);
    border-radius: 2px;
}
.desktop-only { display: inline-block; }
.mobile-only { display: none; }

@media (max-width: 768px) {
    .hamburger { display: block; }
    .desktop-only { display: none !important; }
    .mobile-only { 
        display: block; 
        margin-top: 2rem; 
    }
    .mobile-only .btn {
        width: auto;
        padding: 1rem 2.5rem;
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: rgba(253, 251, 247, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        padding-top: 120px;
        z-index: 1000;
        gap: 2rem;
    }
    .nav-links.active {
        left: 0;
    }
    .nav-links a {
        font-size: 1.5rem;
    }
    
    /* Animated Hamburger */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
