/* ==========================================================================
   1. ПЕРЕМЕННЫЕ И ОСНОВНЫЕ НАСТРОЙКИ
   ========================================================================== */
:root {
    --primary: #007AFF;
    --primary-dark: #0056b3;
    --dark: #1D1D1F;
    --light: #F5F5F7;
    --white: #FFFFFF;
    --border: #E5E5E7;
    --gray: #86868B;
    --accent: #FF3B30;
    --green: #34C759;
}

/* Сброс */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html { 
    scroll-behavior: smooth; 
}

body { 
    font-family: 'Inter', sans-serif; 
    color: var(--dark); 
    line-height: 1.6; 
    background: var(--white); 
    -webkit-font-smoothing: antialiased; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.section-padding { 
    padding: 100px 0; 
}

.bg-light { 
    background-color: var(--light); 
}

.bg-dark { 
    background-color: var(--dark); 
    color: #fff; 
}

.text-center { 
    text-align: center; 
}

.bg-white {
    background-color: var(--white);
}

/* Типографика */
h1, h2, h3, h4, .logo { 
    font-family: 'Manrope', sans-serif; 
    font-weight: 800; 
    letter-spacing: -0.02em; 
}

.h2-title { 
    font-size: 2.5rem; 
    margin-bottom: 40px; 
}

.h2-title.light { 
    color: #fff; 
}

/* ==========================================================================
   2. КНОПКИ
   ========================================================================== */
.btn-primary { 
    background: var(--primary); 
    color: #fff; 
    padding: 14px 28px; 
    border-radius: 12px; 
    border: none; 
    font-weight: 600; 
    cursor: pointer; 
    transition: 0.3s; 
    text-decoration: none; 
    display: inline-block; 
}

.btn-primary:hover { 
    background: var(--primary-dark); 
    transform: translateY(-2px); 
    box-shadow: 0 10px 20px rgba(0, 122, 255, 0.3);
}

.btn-primary.btn-lg { 
    padding: 18px 36px; 
    font-size: 1.1rem; 
}

.btn-primary.btn-white { 
    background: #fff; 
    color: var(--primary); 
}

.btn-outline { 
    background: transparent; 
    border: 2px solid var(--primary); 
    color: var(--primary); 
    padding: 10px 20px; 
    border-radius: 10px; 
    font-weight: 600; 
    cursor: pointer;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.full-width {
    width: 100%;
}

/* ==========================================================================
   3. HEADER И ВЕРХНЯЯ ПАНЕЛЬ
   ========================================================================== */
.top-bar { 
    background: #000; 
    color: #fff; 
    padding: 8px 0; 
    font-size: 13px; 
}

.top-bar-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.top-info span {
    margin-right: 20px;
}

.top-info i {
    color: var(--primary);
    margin-right: 5px;
}

.top-contacts a { 
    color: #fff; 
    text-decoration: none; 
    margin-left: 15px; 
}

.phone-bold { 
    font-weight: 700; 
    font-size: 15px; 
}

.header { 
    background: rgba(255,255,255,0.8); 
    backdrop-filter: blur(20px); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 1px solid var(--border); 
}

.header-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 80px; 
}

.logo { 
    font-size: 24px; 
    color: var(--dark); 
    text-decoration: none;
}

.logo span { 
    color: var(--primary); 
}

.nav a { 
    margin: 0 15px; 
    text-decoration: none; 
    color: var(--dark); 
    font-weight: 500; 
    font-size: 14px; 
    transition: 0.2s;
}

.nav a:hover { 
    color: var(--primary); 
}

/* ==========================================================================
   4. HERO СЕКЦИЯ
   ========================================================================== */
.hero { 
    padding: 120px 0; 
    background: radial-gradient(circle at top right, #e3f2fd, #fff); 
}

.hero-grid { 
    display: grid; 
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 40px; 
    align-items: center; 
}

.hero h1 { 
    font-size: 4rem; 
    line-height: 1.1; 
    margin-bottom: 25px; 
}

.hero h1 span { 
    color: var(--primary); 
}

.hero p { 
    font-size: 1.25rem; 
    color: var(--gray); 
    margin-bottom: 35px; 
}

.badge { 
    background: #DBEAFE; 
    color: var(--primary); 
    display: inline-block; 
    padding: 6px 16px; 
    border-radius: 20px; 
    font-weight: 700; 
    margin-bottom: 20px; 
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 20px;
}

.msg-link {
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #24A1DE;
}

.feat-card { 
    background: #fff; 
    padding: 25px; 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    margin-bottom: 20px; 
}

.feat-val { 
    font-size: 2rem; 
    color: var(--primary); 
    margin-bottom: 5px; 
    font-weight: 800;
}

/* ==========================================================================
   5. О НАС, ПРЕИМУЩЕСТВА И СРАВНЕНИЕ
   ========================================================================== */
.about-wrapper { 
    max-width: 1000px; 
    margin: 0 auto; 
}

.about-grid-content { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    align-items: center; 
}

.about-text p { 
    font-size: 1.1rem; 
    color: #424245; 
    margin-bottom: 20px; 
}

.guarantee-banner { 
    background: #fff; 
    padding: 30px; 
    border-radius: 24px; 
    display: flex; 
    gap: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    border: 1px solid var(--border); 
}

.g-icon { 
    background: #EBF5FF; 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0; 
}

.g-icon i { 
    color: var(--primary); 
    font-size: 24px; 
}

.g-info h4 { 
    margin-bottom: 8px; 
    font-size: 1.2rem; 
}

.g-info p { 
    font-size: 0.95rem; 
    color: #6e6e73; 
}

/* Блок сравнения */
.compare-box {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Блок "Что вы получите" (Benefits) */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}
.benefit-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s;
}
.benefit-card:hover { transform: translateY(-5px); }
.benefit-card i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}
.benefit-card h4 { margin-bottom: 15px; font-size: 1.2rem; }
.cta-mini {
    max-width: 700px;
    margin: 40px auto 0;
    font-weight: 500;
}

/* ==========================================================================
   6. ДЛИТЕЛЬНОСТЬ УБОРКИ
   ========================================================================== */
.duration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}
.duration-col {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
}
.duration-col.accent {
    border: 2px solid var(--primary);
    background: #f0f7ff;
}
.duration-col h3 {
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1.5rem;
}
.duration-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.duration-item:last-child { border-bottom: none; }

/* ==========================================================================
   7. ЧТО ВХОДИТ В УБОРКУ (КАРТОЧКИ)
   ========================================================================== */
.include-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.include-card { 
    background: #fff; 
    padding: 35px; 
    border-radius: 24px; 
    border: 1px solid var(--border); 
}

.include-card.accent { 
    border: 2px solid var(--primary); 
}

.include-card.danger { 
    border-top: 5px solid var(--accent); 
}

.include-type { 
    font-size: 1.2rem; 
    font-weight: 800; 
    margin-bottom: 20px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

ul { 
    list-style: none; 
}

ul li { 
    font-size: 15px; 
    margin-bottom: 12px; 
    position: relative; 
    padding-left: 25px; 
}

ul li span {
    font-weight: 700;
    color: var(--dark);
    margin-left: 5px;
}

.list-checked li::before { content: '✓'; color: var(--green); position: absolute; left: 0; font-weight: 900; }
.list-plus li::before { content: '+'; color: var(--primary); position: absolute; left: 0; font-weight: 900; }
.list-cross li::before { content: '×'; color: var(--accent); position: absolute; left: 0; font-weight: 900; }

/* ==========================================================================
   8. ТАБЛИЦА ЦЕН
   ========================================================================== */
.table-container { 
    margin-top: 40px; 
    overflow-x: auto; 
    border-radius: 24px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.05); 
    border: 1px solid var(--border);
}

.price-table { 
    width: 100%; 
    border-collapse: collapse; 
    background: #fff; 
}

.price-table th { 
    background: #f9f9fb; 
    color: var(--dark); 
    font-weight: 700; 
    padding: 20px; 
    text-align: left; 
    border-bottom: 2px solid var(--border); 
}

.price-table td { 
    padding: 18px 20px; 
    border-bottom: 1px solid var(--border); 
    font-size: 15px; 
}

.price-table tr:last-child td { 
    border-bottom: none; 
}

.price-table tr:hover { 
    background: #f0f7ff; 
}

/* ==========================================================================
   9. КАЛЬКУЛЯТОР
   ========================================================================== */
.calc-grid { 
    display: grid; 
    grid-template-columns: 0.8fr 1.2fr; 
    gap: 60px; 
    align-items: center; 
}

.calc-box { 
    background: #fff; 
    padding: 40px; 
    border-radius: 24px; 
    color: var(--dark); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.2); 
}

.f-group { 
    margin-bottom: 20px; 
}

.f-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    font-size: 14px; 
}

input, select { 
    width: 100%; 
    padding: 14px; 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    font-size: 16px; 
    font-family: inherit;
    outline: none;
    transition: 0.3s;
}

input:focus, select:focus {
    border-color: var(--primary);
}

.calc-res { 
    padding: 25px; 
    background: #f0f7ff; 
    border-radius: 20px; 
    margin: 25px 0; 
    text-align: center; 
}

.calc-res span {
    font-size: 14px;
    color: var(--gray);
    display: block;
    margin-bottom: 5px;
}

#totalPrice { 
    font-size: 3rem; 
    font-weight: 800; 
    color: var(--primary); 
}

/* ==========================================================================
   10. ОБОРУДОВАНИЕ
   ========================================================================== */
.equip-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.equip-card { 
    background: #fff; 
    padding: 40px; 
    border-radius: 28px; 
    text-align: center; 
    border: 1px solid var(--border); 
    transition: 0.3s; 
}

.equip-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
}

.equip-img-box { 
    width: 100px; 
    height: 100px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 25px; 
}

.equip-img-box img {
    max-width: 60px;
}

.equip-card h4 { 
    margin-bottom: 15px; 
    font-size: 1.3rem; 
}

.equip-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ==========================================================================
   11. FAQ (АККОРДЕОН)
   ========================================================================== */
.accordion {
    max-width: 800px;
    margin: 40px auto 0;
}

.acc-item { 
    border-bottom: 1px solid var(--border); 
    padding: 20px 0; 
}

.acc-head { 
    font-weight: 700; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    font-size: 1.1rem;
}

.acc-head i {
    color: var(--primary);
    transition: 0.3s;
}

.acc-body { 
    padding-top: 15px; 
    display: none; 
    color: var(--gray); 
    font-size: 1rem;
    line-height: 1.5;
}

/* ==========================================================================
   12. СЕРТИФИКАТЫ
   ========================================================================== */
.cert-banner { 
    background: linear-gradient(135deg, #007AFF 0%, #00C6FF 100%); 
    border-radius: 40px; 
    padding: 60px; 
    color: #fff; 
    overflow: hidden; 
    position: relative; 
}

.cert-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: relative; 
    z-index: 2; 
}

.cert-text { 
    max-width: 500px; 
}

.cert-text h2 { 
    font-size: 3rem; 
    margin: 15px 0; 
    line-height: 1.1;
}

.cert-tag { 
    background: rgba(255,255,255,0.2); 
    padding: 5px 15px; 
    border-radius: 20px; 
    font-size: 0.8rem; 
    font-weight: 700; 
    text-transform: uppercase;
}

.cert-image i { 
    font-size: 10rem; 
    opacity: 0.2; 
    transform: rotate(-15deg); 
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.footer { 
    background: #f5f5f7; 
    padding: 80px 0; 
    border-top: 1px solid var(--border); 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    gap: 40px; 
}

.footer-about .logo {
    margin-bottom: 20px;
    display: block;
}

.footer-about p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer-contacts h4 {
    margin-bottom: 20px;
}

.footer-contacts p {
    margin-bottom: 10px;
    font-weight: 600;
}

/* ==========================================================================
   14. АДАПТИВНОСТЬ (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid, .about-grid-content, .calc-grid, .cert-content, .footer-grid { 
        grid-template-columns: 1fr; 
    }
    
    .duration-grid { grid-template-columns: 1fr; }
    
    .hero h1 { 
        font-size: 2.8rem; 
    }
    
    .nav { 
        display: none; 
    }
    
    .cert-image { 
        display: none; 
    }

    .hero-btns {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-padding {
        padding: 60px 0;
    }

    .about-wrapper {
        text-align: center;
    }

    .guarantee-banner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    #totalPrice {
        font-size: 2.2rem;
    }

    .top-bar-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .top-info span {
        display: block;
        margin-bottom: 5px;
    }
}
/* ==========================================================================
   15. МОДАЛЬНОЕ ОКНО
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none; /* Скрыто по умолчанию */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 28px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalFadeUp 0.4s ease;
}

@keyframes modalFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--gray);
    cursor: pointer;
    line-height: 1;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.modal-header p {
    color: var(--gray);
    font-size: 0.95rem;
}

.form-note {
    font-size: 12px;
    color: var(--gray);
    text-align: center;
    margin-top: 15px;
}

.modal-form .f-group {
    margin-bottom: 15px;
}
.max-button {
    background-color: #f8f9fa; /* Светлый фон, чтобы выделить логотип */
    color: #333 !important;    /* Темный текст */
    border: 1px solid #ddd;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.max-button:hover {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-color: #bbb;
}

/* Стиль самого логотипа внутри кнопки */
.max-btn-logo {
    width: 20px;   /* Компактный размер */
    height: 20px;
    object-fit: contain;
    display: block;
}

.footer-max {
    margin: 10px 0;
}