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

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #ffffff;
    color: #1e2a3a;
    line-height: 1.5;
    scroll-behavior: smooth;
}

:root {
    --primary: #0f6bff;
    --primary-dark: #0056d2;
    --primary-light: #eef4ff;
    --green: #10b981;
    --green-light: #d1fae5;
    --gray-light: #f8fafc;
    --gray-border: #e2e8f0;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --danger: #ef4444;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.header {
    background: white;
    border-bottom: 1px solid var(--gray-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.94);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    flex-wrap: wrap;
    gap: 16px;
}

.logo { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.5px; }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 28px; font-weight: 500; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--text-dark); transition: 0.2s; }
.nav-links a:hover { color: var(--primary); }

.btn-outline {
    border: 1px solid var(--primary);
    background: transparent;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: 0.2s;
}
.btn-outline:hover { background: var(--primary-light); }

.hero {
    padding: 50px 0 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
}

.hero-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    justify-content: space-between;
}

.hero-text { flex: 1.2; }
.hero-text h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.2; letter-spacing: -1px; margin-bottom: 20px; }
.hero-text p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 24px; max-width: 500px; }

.eco-banner {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    border-radius: 60px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-weight: 600;
    color: var(--primary-dark);
}

.hero-stats { display: flex; gap: 32px; margin-top: 20px; flex-wrap: wrap; }
.stat-item { font-weight: 600; }
.stat-number { font-size: 1.8rem; font-weight: 800; color: var(--primary); }

.hero-image {
    flex: 0.8;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.1);
    height: 320px;
    background: var(--primary-light);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.section { padding: 60px 0; }
.section-title { font-size: 2.2rem; font-weight: 700; text-align: center; margin-bottom: 48px; }
.section-title span { color: var(--primary); }

/* Карточки услуг */
.cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
.service-card {
    background: white;
    border: 1px solid var(--gray-border);
    border-radius: 32px;
    padding: 24px;
    flex: 1;
    min-width: 240px;
    transition: all 0.2s ease;
    text-align: center;
}
.service-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.service-img { width: 100%; height: 180px; object-fit: cover; border-radius: 20px; margin-bottom: 20px; background: var(--gray-light); }
.service-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.price-tag { margin-top: 12px; font-weight: 700; color: var(--primary); background: var(--primary-light); display: inline-block; padding: 4px 16px; border-radius: 30px; font-size: 0.9rem; }

/* Цены */
.price-section { background: var(--gray-light); border-radius: 48px; margin: 20px 0; }
.price-tabs { display: flex; justify-content: center; gap: 20px; margin-bottom: 32px; }
.price-tab { background: white; border: 1px solid var(--gray-border); padding: 12px 32px; border-radius: 60px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.price-tab.active, .price-tab:hover { background: var(--primary); color: white; border-color: var(--primary); }
.price-table { display: none; }
.price-table.active { display: block; }
.price-table h3 { margin: 24px 0 16px; color: var(--text-dark); }
.price-table table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.price-table th, .price-table td { border: 1px solid var(--gray-border); padding: 12px; text-align: left; }
.price-table th { background: var(--primary-light); }
.price-note { text-align: center; margin-top: 32px; font-size: 0.85rem; color: var(--text-muted); }

/* Время уборки */
.time-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 32px;
    padding: 32px;
    margin: 20px 0;
}
.time-card {
    background: white;
    border-radius: 24px;
    padding: 20px;
    flex: 1;
    min-width: 160px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.time-card .area { font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.time-card .hours { font-size: 1rem; color: var(--text-muted); margin-top: 8px; }

/* Слайдер До/После */
.slider-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
.comparison-slider {
    flex: 1;
    min-width: 280px;
    background: var(--gray-light);
    border-radius: 24px;
    overflow: hidden;
    padding: 16px;
}
.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
}
.slider-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slider-after {
    clip-path: inset(0 0 0 50%);
}
.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 40px;
    height: 100%;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 10;
}
.slider-line {
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: white;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}
.slider-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 50%;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--primary);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.slider-caption {
    text-align: center;
    margin-top: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Калькулятор */
.calculator-section { background: var(--gray-light); border-radius: 48px; margin: 20px 0 40px; }
.calculator-wrapper {
    background: white;
    border-radius: 40px;
    padding: 40px 32px;
    box-shadow: 0 25px 40px -12px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-border);
}
.calc-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; }
.radio-group { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 28px; }
.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gray-light);
    padding: 12px 24px;
    border-radius: 60px;
    cursor: pointer;
    border: 1px solid transparent;
}
.radio-option.selected { background: var(--primary-light); border-color: var(--primary); }
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--gray-light);
    padding: 20px 24px;
    border-radius: 28px;
    margin-bottom: 28px;
}
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
}
.checkbox-item input { width: 20px; height: 20px; accent-color: var(--primary); }
.price-preview {
    background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
    border-radius: 32px;
    padding: 28px;
    text-align: center;
}
.total-price { font-size: 3rem; font-weight: 800; color: var(--primary); }
.btn-calc {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 16px;
}
.btn-calc:hover { background: var(--primary-dark); }

/* Преимущества */
.features { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; margin: 40px 0; }
.feature { flex: 1; text-align: center; min-width: 150px; }
.feature-icon { font-size: 2.5rem; margin-bottom: 16px; display: inline-block; }

/* Статьи */
.articles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
}
.article-card {
    background: white;
    border: 1px solid var(--gray-border);
    border-radius: 28px;
    padding: 28px;
    flex: 1;
    min-width: 260px;
    transition: 0.2s;
}
.article-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.article-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.article-card p { color: var(--text-muted); margin-bottom: 20px; }
.read-more { color: var(--primary); text-decoration: none; font-weight: 600; }
.read-more:hover { text-decoration: underline; }

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}
.modal.active { display: flex; }
.modal-content {
    background: white;
    max-width: 500px;
    width: 90%;
    border-radius: 32px;
    padding: 32px 28px;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 28px;
    cursor: pointer;
}
.form-input {
    width: 100%;
    padding: 14px 16px;
    margin: 12px 0;
    border: 1px solid var(--gray-border);
    border-radius: 24px;
    font-size: 1rem;
}
.phone-input-wrapper { display: flex; align-items: center; }
.phone-prefix {
    background: var(--gray-light);
    border: 1px solid var(--gray-border);
    border-right: none;
    padding: 14px 12px;
    border-radius: 24px 0 0 24px;
    font-weight: 600;
}
.phone-input-wrapper .form-input { border-radius: 0 24px 24px 0; margin: 0; }
.checkbox-agree {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    font-size: 0.9rem;
}
.error-text { color: var(--danger); font-size: 0.8rem; text-align: center; margin-top: 8px; }
.success-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 14px 28px;
    border-radius: 60px;
    z-index: 1100;
    display: none;
}

/* Футер */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 48px 0 24px;
    margin-top: 40px;
}
.footer-logo { font-size: 1.8rem; font-weight: 700; color: white; }
.footer-logo span { color: var(--primary); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px; }
.footer-links a { color: #cbd5e1; text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-copy { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #1e293b; }

@media (max-width: 768px) {
    .hero-text h1 { font-size: 2rem; }
    .hero-grid { flex-direction: column; }
    .section-title { font-size: 1.8rem; }
    .total-price { font-size: 2.4rem; }
    .price-table th, .price-table td { font-size: 0.8rem; padding: 8px; }
    .price-tab { padding: 8px 20px; font-size: 0.85rem; }
}