/* ============================================================
   style.css – единый файл стилей для всех страниц ecoclean24
   ============================================================ */

:root {
    --primary-green: #2A9D8F;
    --primary-dark: #264653;
    --accent-orange: #F4A261;
    --light-bg: #f8f9fa;
    --shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* ----- Общие стили ----- */
body {
    font-family: 'Inter', sans-serif;
    color: #2d2d2d;
    background: #fff;
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
}

.section-padding {
    padding: 80px 0;
}

.bg-soft {
    background: var(--light-bg);
}

/* Кнопки */
.btn-primary-custom {
    background: var(--accent-orange);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 14px 40px;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.4);
}
.btn-primary-custom:hover {
    background: #e08f4a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 162, 97, 0.5);
    color: #fff;
}
.btn-outline-custom {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    font-weight: 600;
    border-radius: 50px;
    padding: 12px 32px;
    transition: all 0.3s;
}
.btn-outline-custom:hover {
    background: var(--primary-green);
    color: #fff;
}

/* Цветовые утилиты */
.text-green {
    color: var(--primary-green);
}
.bg-green {
    background: var(--primary-green);
}
.accent-orange {
    color: var(--accent-orange);
}

/* Карточка преимуществ (общая) */
.feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
    transition: 0.3s;
}
.feature-card:hover {
    transform: translateY(-5px);
}
.feature-card .icon {
    font-size: 2.8rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}
.feature-card h5 {
    font-weight: 700;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: #cbd5e1;
    padding: 50px 0 30px;
}
.footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.2s;
}
.footer a:hover {
    color: #fff;
}
.footer .social a {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    margin-right: 8px;
    transition: 0.3s;
}
.footer .social a:hover {
    background: var(--accent-orange);
    color: #fff;
}

/* Cookie-баннер */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e293b;
    color: #f1f5f9;
    padding: 18px 20px;
    z-index: 9999;
    display: none;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.cookie-banner a {
    color: var(--accent-orange);
}

/* Поля форм */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(42, 157, 143, 0.25);
}

/* ----- Стили для главной страницы (калькулятор и пр.) ----- */
.hero {
    background: linear-gradient(135deg, #f0fdf4 0%, #e6f7f4 100%);
    padding: 60px 0 40px;
}
.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
}
.hero .sub {
    font-size: 1.2rem;
    color: #4a5568;
}
.trust-badge {
    background: rgba(42, 157, 143, 0.1);
    border-radius: 50px;
    padding: 8px 20px;
    display: inline-block;
    font-weight: 500;
    color: var(--primary-green);
}
.calculator-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 40px 30px;
    transition: all 0.3s;
}
.calculator-card .form-label {
    font-weight: 600;
    font-size: 0.95rem;
}
.calculator-card .icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(42, 157, 143, 0.1);
    border-radius: 12px;
    color: var(--primary-green);
    font-size: 1.4rem;
    margin-right: 12px;
}
.price-result {
    background: #f0fdf4;
    border-radius: 20px;
    padding: 25px 30px;
    border-left: 6px solid var(--primary-green);
}
.price-result .total {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-dark);
}
.price-result .total span {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-green);
}
.price-breakdown {
    list-style: none;
    padding-left: 0;
    font-size: 0.95rem;
}
.price-breakdown li {
    padding: 6px 0;
    border-bottom: 1px dashed #e2e8f0;
}
.price-breakdown li:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.1rem;
}
.example-price {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.example-price .service {
    font-weight: 500;
}
.example-price .price {
    font-weight: 700;
    color: var(--primary-green);
}
.before-after img {
    border-radius: 16px;
    width: 100%;
    height: 220px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.testimonial-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow);
    height: 100%;
}
.testimonial-card .stars {
    color: #fbbf24;
    letter-spacing: 2px;
}
.testimonial-card .name {
    font-weight: 700;
    margin-top: 12px;
}
.faq-accordion .accordion-button {
    font-weight: 600;
    color: var(--primary-dark);
}
.faq-accordion .accordion-button:not(.collapsed) {
    background: rgba(42, 157, 143, 0.05);
    color: var(--primary-dark);
    box-shadow: none;
}
.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(42, 157, 143, 0.3);
}

/* Слайдер */
input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: #d1d5db;
    border-radius: 10px;
    outline: none;
    transition: background 0.3s;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-green);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(42, 157, 143, 0.4);
}
input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-green);
    cursor: pointer;
}
.range-value {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.2rem;
    min-width: 50px;
    display: inline-block;
}

/* ----- Стили для страницы 404 ----- */
.hero-404 {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #f0fdf4 0%, #e6f7f4 100%);
    text-align: center;
}
.hero-404 .display-1 {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary-green);
    text-shadow: 0 10px 30px rgba(42,157,143,0.2);
}
.hero-404 h1 {
    font-size: 2.5rem;
    font-weight: 800;
}
.hero-404 p {
    font-size: 1.2rem;
    color: #4a5568;
}

/* ----- Адаптивность (общая) ----- */
@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }
    .btn-primary-custom,
    .btn-outline-custom {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .calculator-card {
        padding: 25px 16px;
    }
    .price-result .total {
        font-size: 2.2rem;
    }
    .before-after img {
        height: 160px;
    }
    .hero-404 .display-1 {
        font-size: 5rem;
    }
    .hero-404 h1 {
        font-size: 1.8rem;
    }
}

/* ----- Блок выбора города с картинками (только на главной) ----- */
.city-grid-section {
    padding: 40px 0;
    background: var(--light-bg);
}
.city-grid-section h2 {
    text-align: center;
    margin-bottom: 30px;
}
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}
.city-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
    text-decoration: none;
    color: var(--primary-dark);
}
.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.city-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.city-card .city-name {
    padding: 12px;
    font-weight: 600;
    text-align: center;
    font-size: 1.1rem;
}
@media (max-width: 576px) {
    .city-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 400px) {
    .city-grid {
        grid-template-columns: 1fr 1fr;
    }
}