:root {
    --primary-text: #333333;
    --blue-dark: #2B3D5A;
    --blue-light: #5A8FAD;
    --blue-accent: #4982A5;
    --container-width: 1400px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--primary-text);
    background-color: #ffffff;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.site-wrapper {
    flex: 1 0 auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.btn {
    background: linear-gradient(90deg, #4982A5 0%, #2B3D5A 100%);
    color: #ffffff;
    border: none;
    padding: 18px 30px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
    width: 100%;
}
.btn:hover { 
    opacity: 0.9; 
    transform: translateY(-2px);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.floating-phone {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: #FBB03B; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
}
.floating-phone:hover { 
    transform: scale(1.1); 
    animation: none; 
}
.floating-phone svg { fill: #ffffff; width: 28px; height: 28px; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(251, 176, 59, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(251, 176, 59, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 176, 59, 0); }
}

.header-wrapper { 
    position: absolute; 
    top: 25px; 
    width: 100%; 
    z-index: 100; 
    padding: 0 20px; 
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: #ffffff;
    border-radius: 60px;
    padding: 12px 40px;
    max-width: 1400px;
    margin: 0 auto;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.nav-links { 
    display: flex; 
    gap: 30px; 
    justify-self: start;
    font-size: 11px; 
    font-weight: 700; 
    text-transform: uppercase; 
    color: var(--blue-dark); 
}

.logo { 
    justify-self: center;
    display: flex;
    align-items: center;
}
.logo-img { height: 40px; width: auto; }

.header-contacts { 
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 15px;
    font-weight: 700;
    color: var(--blue-dark);
}
.header-phone { display: flex; align-items: center; gap: 6px; }


.hero {
    background: linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 100%), url('../img/bg.webp') center/cover no-repeat;
    padding-top: 180px;
    padding-bottom: 80px;
}

.hero-layout { 
    display: flex; 
    justify-content: space-between; 
    align-items: stretch; 
    gap: 50px; 
}


.glass-form {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 50px 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    color: #ffffff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.glass-form h2 { font-size: 26px; margin-bottom: 30px; font-weight: 500; line-height: 1.3;}
.glass-form input, .glass-form select { width: 100%; padding: 18px 20px; margin-bottom: 20px; border: none; border-radius: 10px; font-size: 14px; outline: none; }

.hero-content { color: #ffffff; width: 100%; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;}
.hero-content h1 { font-size: 54px; line-height: 1.1; margin-bottom: 30px; font-weight: 600;}

.hero-features { display: flex; gap: 30px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-feature { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; }
.feature-icon { width: 32px; height: 32px; object-fit: contain; }

.hero-slider-container {
    display: flex;
    flex-direction: column;
    gap: 15px; 
}

.hero-slider-wrap {
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
}

.slider-track { display: flex; gap: 15px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.slider-track::-webkit-scrollbar { display: none; } 
.slider-track:active { cursor: grabbing; }

.h-card {
    flex: 0 0 240px; width: 240px; height: 240px; border-radius: 15px; background-color: #555; background-size: cover; background-position: center; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 20px 15px; text-align: center; scroll-snap-align: start; user-select: none;
}
.h-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(30,40,60,0.9) 0%, transparent 60%); z-index: 1; }
.h-card span { position: relative; z-index: 2; color: #ffffff; font-size: 13px; font-weight: 600; width: 100%; line-height: 1.3; }

.hero-dots { display: flex; align-items: center; gap: 10px; padding-left: 10px; }
.h-dot { width: 10px; height: 10px; background: #ffffff; border-radius: 50%; opacity: 0.5; cursor: pointer; transition: 0.3s;}
.h-dot.active { width: 40px; height: 8px; border-radius: 5px; background: var(--blue-light); opacity: 1;}

.what-we-wash { padding: 100px 0; background: #ffffff; }
.www-layout { display: flex; gap: 60px; align-items: center; }
.www-images-left { display: flex; gap: 20px; align-items: center; width: 50%; }
.www-img-short { width: 45%; height: 450px; object-fit: cover; border-radius: 20px; }
.www-img-tall { width: 55%; height: 600px; object-fit: cover; border-radius: 20px; }
.www-content-right { width: 50%; display: flex; flex-direction: column; }
.www-content-right h2 { font-size: 38px; color: var(--blue-dark); font-weight: 400; margin-bottom: 40px; }
.www-list li { font-size: 15px; color: var(--primary-text); margin-bottom: 18px; padding-left: 35px; position: relative; line-height: 1.4; }
.www-list li::before { content: '✔'; position: absolute; left: 0; top: -2px; color: #4CAF50; background: #E8F5E9; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.www-img-wide { width: 100%; height: 250px; object-fit: cover; border-radius: 20px; margin-top: 40px; }

.cases { background: linear-gradient(to bottom, #4A7A9C, #2C3F5E); padding: 80px 0 100px; }
.section-title { text-align: center; color: #ffffff; font-size: 36px; font-weight: 400; margin-bottom: 50px; }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.case-card { background: #ffffff; border-radius: 15px; padding: 15px 15px 30px; display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s;}
.case-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
.case-img { width: 100%; height: 220px; object-fit: cover; border-radius: 10px; margin-bottom: 20px;}
.case-info { padding: 0 15px; }
.case-title { font-size: 18px; font-weight: 700; color: var(--blue-dark); margin-bottom: 5px;}
.case-price { font-size: 28px; font-weight: 400; color: var(--blue-light); margin-bottom: 20px;}
.case-list li { font-size: 13px; line-height: 1.5; color: #555555; margin-bottom: 12px; padding-left: 25px; position: relative; }
.case-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--blue-light); background: #E6F0F6; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: bold; }

.savings { padding: 100px 0; background: #ffffff; }
.savings-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.savings-header h2 { font-size: 32px; color: var(--blue-dark); font-weight: 400;}
.slider-arrows { display: flex; gap: 15px; }
.arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #cccccc; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #888888; transition: 0.3s; user-select: none;}
.arrow:hover, .arrow:active { background: var(--blue-light); color: #ffffff; border-color: var(--blue-light);}

.save-card { 
    flex: 0 0 380px; width: 380px; background: #ffffff; border: 1px solid #b5c7d3; border-radius: 15px; padding: 35px 30px; scroll-snap-align: start; user-select: none; box-shadow: 0 15px 40px rgba(43, 61, 90, 0.08); transition: transform 0.3s, box-shadow 0.3s;
}
.save-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(43, 61, 90, 0.12); }
.save-card h4 { font-size: 18px; color: var(--blue-dark); margin-bottom: 15px; font-weight: 700;}
.save-card p, .save-card li { font-size: 14px; color: #475569; margin-bottom: 10px; line-height: 1.6;}
.save-card ul { margin-top: 15px; padding-left: 20px;}
.save-card ul li { list-style-type: disc; }

.bottom-form-section { padding-bottom: 100px; background: #ffffff; }

.bottom-form-wrap { display: flex; background: #ffffff; }
.bottom-form-wrap.no-border.no-radius { border: none; border-radius: 0; box-shadow: none; }

.bf-left { padding: 50px 50px 50px 0; width: 50%; flex-shrink: 0; }
.bf-left h2 { font-size: 26px; color: var(--blue-dark); margin-bottom: 30px; font-weight: 500; line-height: 1.3;}
.bf-left input, .bf-left select { width: 100%; padding: 18px 0; margin-bottom: 15px; border: none; border-bottom: 1px solid #dddddd; font-size: 14px; outline: none; background: transparent; }
.bf-left .btn { margin-top: 20px; width: 100%; max-width: 300px;}

.bf-right { flex-grow: 1; display: flex; align-items: stretch; }
.bottom-form-img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }

footer { 
    background-color: #263354; 
    color: #ffffff; 
    padding: 60px 0 30px; 
    flex-shrink: 0; 
}
.footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 50px; }
.footer-logo { flex: 1; }
.footer-logo img { height: 40px; object-fit: contain; }

.footer-nav { display: flex; gap: 35px; font-size: 13px; font-weight: 600; text-transform: uppercase; flex: 2; justify-content: center; }
.footer-nav a { transition: opacity 0.3s; }
.footer-nav a:hover { opacity: 0.7; }

.footer-contacts-inner { flex: 1; display: flex; flex-direction: column; align-items: flex-end; font-size: 16px; font-weight: 600; gap: 8px; }
.footer-contacts-inner .ask-question { font-size: 13px; font-weight: 400; color: #cbd5e1; margin-bottom: 2px; }
.contact-item { display: flex; align-items: center; gap: 12px; }
.contact-item a { transition: color 0.3s; }
.contact-item a:hover { color: var(--blue-light); }

.copyright { text-align: center; font-size: 12px; color: rgba(255,255,255,0.7); padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); }

@media (max-width: 1024px) {
    .header-inner { max-width: 100%; margin: 0; }
    .hero-layout { flex-direction: column; align-items: center; }
    .glass-form { max-width: 100%; }
    .www-layout { flex-direction: column; }
    .www-images-left, .www-content-right { width: 100%; }
    .www-img-short { height: 350px; }
    .www-img-tall { height: 450px; }
    .cases-grid { grid-template-columns: repeat(2, 1fr); }
    
    .bottom-form-wrap { flex-direction: column; }
    .bf-left { width: 100%; padding: 40px 20px; }
    .bf-right { min-height: 300px; padding: 0 20px; }
}

@media (max-width: 768px) {
    .header-wrapper { padding: 0 10px; top: 10px; }
    .header-inner { padding: 15px 20px; border-radius: 30px; }
    .nav-links, .header-contacts-text { display: none; } 
    .floating-phone { bottom: 20px; right: 20px; width: 50px; height: 50px; }
    
    .hero { padding-top: 130px; }
    .hero-content h1 { font-size: 38px; }
    
    .www-images-left { flex-direction: column; }
    .www-img-short, .www-img-tall { width: 100%; height: auto; aspect-ratio: 4/3; }
    
    .cases-grid { grid-template-columns: 1fr; }
    
    .savings-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .save-card { flex: 0 0 85vw; width: 85vw; } 
    
    .footer-top { flex-direction: column; gap: 40px; text-align: center; }
    .footer-logo, .footer-nav, .footer-contacts-inner { flex: auto; align-items: center; }
    .footer-nav { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
    .hero-feature { font-size: 14px; white-space: normal; align-items: flex-start;}
    .h-card { flex: 0 0 200px; width: 200px; height: 200px; }
    .bf-left h2 { font-size: 22px; }
}
@media (max-width: 768px) {
    .header-inner {
        display: flex !important; 
        justify-content: center !important; 
        padding: 15px 20px !important;
        position: relative;
    }
    .logo {
        position: static !important; 
        transform: none !important;
    }
    .nav-links, .header-contacts-text {
        display: none !important;
    }
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}
.burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--blue-dark);
    transition: 0.3s;
}


.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.4s ease;
}
.mobile-menu.active { left: 0; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 30px; align-items: center; font-size: 20px; font-weight: 700; color: var(--blue-dark); }

@media (max-width: 768px) {

    .header-inner {
        display: grid !important; 
        grid-template-columns: 1fr auto 1fr !important; 
        align-items: center !important;
        padding: 10px 20px !important;
        position: relative;
    }


    .burger { 
        display: flex !important; 
        justify-self: start; 
    }


    .logo { 
        position: static !important; 
        transform: none !important;
        justify-self: center; 
    }

    .header-contacts { 
        justify-self: end;
    }

    .nav-links { display: none !important; }
    .header-contacts-text { display: none !important; } 
    
    .floating-phone { bottom: 20px; right: 20px; width: 50px; height: 50px; }

}
.modal {
    display: none; 
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.modal.active { display: flex; } 

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 90%;
}
.close-btn {
    position: absolute;
    top: 10px; right: 20px;
    font-size: 30px;
    cursor: pointer;
}