/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --brown-dark:   #3e2c1f;   /* тёмный коричневый — основной фон */
    --brown:        #5c3d28;   /* средний коричневый */
    --brown-light:  #8b6b4e;   /* светлый коричневый */
    --beige:        #c8a27a;   /* бежевый — акцентный */
    --beige-light:  #ddc1a0;   /* светлый бежевый */
    --cream:        #faf3e7;   /* молочный / кремовый — светлые секции */
    --cream-dark:   #f0e4d2;   /* чуть темнее молочного */
    --white:        #ffffff;   /* надписи */
    --gold:         #d4a96a;   /* золотистый акцент для кнопок */
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--white);
    background: var(--cream);
    overflow-x: hidden;
}

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

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; }
a { text-decoration: none; color: inherit; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--brown);
    color: var(--white);
    border-color: var(--brown);
}
.btn-primary:hover {
    background: var(--brown-dark);
    border-color: var(--brown-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
}
.btn-lg { padding: 18px 40px; font-size: 18px; }

/* ===== HEADER ===== */
#header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(62, 44, 31, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.3s;
}
#header.scrolled {
    background: rgba(62, 44, 31, 0.97);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    gap: 20px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { font-size: 32px; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 18px; font-weight: 700; color: var(--white); }
.logo-tag { font-size: 12px; color: var(--beige-light); }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
    color: var(--beige-light);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}
.main-nav a:hover { color: var(--white); }

.header-phone {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    padding: 8px 18px;
    background: var(--brown);
    border-radius: 6px;
    transition: background 0.3s;
}
.header-phone:hover { background: var(--gold); color: var(--brown-dark); }

.burger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--white);
    cursor: pointer;
}

/* ===== HERO ===== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #3e2c1f 0%, #5c3d28 50%, #3e2c1f 100%);
    padding-top: 80px;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(62,44,31,0.5) 100%);
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-pretitle {
    color: var(--gold);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
}
.hero-content h1 {
    font-size: 56px;
    color: var(--white);
    margin-bottom: 24px;
    text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-size: 20px;
    color: var(--beige-light);
    max-width: 700px;
    margin: 0 auto 36px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats { display: flex; gap: 50px; justify-content: center; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 36px; font-weight: 800; color: var(--gold); }
.stat-label { font-size: 14px; color: var(--beige-light); }

/* ===== SECTION HEADS ===== */
.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 { font-size: 38px; color: var(--brown-dark); margin-bottom: 12px; }
.section-head p { font-size: 18px; color: var(--brown-light); }

/* ===== SERVICES ===== */
#services { background: var(--cream); color: var(--brown-dark); padding: 90px 0; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}
.service-card {
    background: var(--white);
    border-radius: 14px;
    padding: 36px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(62,44,31,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--cream-dark);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(62,44,31,0.15);
}
.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
}
.service-card h3 { font-size: 22px; color: var(--brown-dark); margin-bottom: 12px; }
.service-card p { font-size: 15px; color: #6b5a4e; line-height: 1.7; }

/* ===== MATERIALS ===== */
#materials { background: var(--brown-dark); color: var(--white); padding: 90px 0; }
#materials .section-head h2 { color: var(--white); }
#materials .section-head p { color: var(--beige-light); }
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}
.material-feature {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(200,162,122,0.2);
    border-radius: 12px;
    padding: 30px;
}
.material-num { font-size: 36px; font-weight: 800; color: var(--gold); margin-bottom: 12px; }
.material-feature h4 { font-size: 20px; color: var(--white); margin-bottom: 8px; }
.material-feature p { font-size: 15px; color: var(--beige-light); }

/* ===== WORKS ===== */
#works { background: var(--cream-dark); padding: 90px 0; }
.insta-banner {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}
.insta-icon-wrap {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    padding: 14px;
    color: white;
    flex-shrink: 0;
}
.insta-banner-text { flex: 1; min-width: 200px; color: white; }
.insta-banner-text strong { display: block; font-size: 24px; margin-bottom: 4px; }
.insta-banner-text span { font-size: 15px; opacity: 0.95; }
.insta-banner-btn { white-space: nowrap; }

.works-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.work-item {
    aspect-ratio: 1 / 1;
    background: var(--brown);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--beige-light);
    text-align: center;
    border: 2px dashed rgba(200,162,122,0.3);
    transition: transform 0.3s;
}
.work-item:hover { transform: scale(1.03); }
.work-ph { font-size: 48px; margin-bottom: 12px; }
.work-item p { font-size: 14px; padding: 0 16px; }
.works-note { text-align: center; margin-top: 30px; font-size: 16px; color: var(--brown-light); }
.works-note a { color: var(--brown); font-weight: 600; border-bottom: 2px solid var(--gold); }

/* ===== PROCESS ===== */
#process { background: var(--cream); color: var(--brown-dark); padding: 90px 0; }
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    counter-reset: step;
}
.process-step { text-align: center; position: relative; }
.step-num {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--brown);
    color: var(--white);
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.process-step h4 { font-size: 20px; color: var(--brown-dark); margin-bottom: 10px; }
.process-step p { font-size: 15px; color: #6b5a4e; }

/* ===== CTA ===== */
#cta { background: var(--cream); padding: 50px 0 90px; }
.cta-box {
    background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown) 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
}
.cta-box h2 { font-size: 32px; color: var(--white); margin-bottom: 16px; }
.cta-box p { font-size: 18px; color: var(--beige-light); margin-bottom: 36px; }
.cta-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.cta-box .btn-primary { background: var(--gold); color: var(--brown-dark); border-color: var(--gold); }
.cta-box .btn-primary:hover { background: var(--white); border-color: var(--white); }

/* ===== FOOTER ===== */
#contacts { background: var(--brown-dark); color: var(--white); padding: 60px 0 0; }
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 40px;
}
.footer-contacts h4 { color: var(--gold); margin-bottom: 16px; font-size: 18px; }
.footer-contacts p { margin-bottom: 10px; font-size: 16px; }
.footer-contacts a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
}
.footer-bottom p { font-size: 14px; color: var(--brown-light); }

/* ===== FLOATING BUTTONS ===== */
.float-call {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 64px; height: 64px;
    background: var(--gold);
    color: var(--brown-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    animation: pulse 2s infinite;
    transition: transform 0.3s;
}
.float-call:hover { transform: scale(1.1); }
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(212,169,106,0.7); }
    70%  { box-shadow: 0 0 0 20px rgba(212,169,106,0); }
    100% { box-shadow: 0 0 0 0 rgba(212,169,106,0); }
}
.float-insta {
    position: fixed;
    bottom: 110px; right: 30px;
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: transform 0.3s;
}
.float-insta:hover { transform: scale(1.1); }

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 980px) {
    .main-nav { display: none; }
    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--brown-dark);
        padding: 20px;
        gap: 16px;
    }
    .header-phone { font-size: 15px; padding: 6px 14px; }
    .burger { display: block; }
    .hero-content h1 { font-size: 38px; }
    .hero-subtitle { font-size: 17px; }
    .hero-stats { gap: 30px; }
    .stat-num { font-size: 28px; }
}
@media screen and (max-width: 600px) {
    .hero-content h1 { font-size: 30px; }
    .section-head h2 { font-size: 28px; }
    .cta-box h2 { font-size: 24px; }
    .cta-buttons { flex-direction: column; align-items: stretch; }
    .cta-buttons .btn { text-align: center; }
    .insta-banner { flex-direction: column; }
    .float-call { bottom: 20px; right: 20px; }
    .float-insta { bottom: 96px; right: 24px; }
    .logo-tag { display: none; }
}
