:root {
    --primary: #1A365D;
    --accent: #E53E3E;
    --accent-hover: #C53030;
    --bg-light: #F7FAFC;
    --text-dark: #2D3748;
    --text-light: #718096;
    --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; color: var(--text-dark); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Кнопки */
.btn {
    background: var(--accent); color: var(--white); border: none; padding: 12px 25px;
    border-radius: 6px; font-weight: 700; font-size: 15px; cursor: pointer;
    transition: 0.3s; text-transform: uppercase; letter-spacing: 0.5px; text-align: center;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3); }
.btn-block { width: 100%; }
.btn-large { padding: 16px 35px; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn-small { padding: 8px 15px; font-size: 13px; }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: #E2E8F0; color: var(--primary); }
.btn-outline-white { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--primary); }

/* Шапка */
.header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; padding: 15px 0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 26px; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.logo i { color: var(--accent); }
.nav { display: flex; gap: 25px; }
.nav a { font-weight: 500; transition: 0.3s; font-size: 15px; }
.nav a:hover { color: var(--accent); }
.header-contacts { display: flex; align-items: center; gap: 20px; }
.phone { font-weight: 800; font-size: 20px; color: var(--primary); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.phone i { color: var(--accent); }
.burger { display: none; background: none; border: none; font-size: 26px; color: var(--primary); cursor: pointer; }

/* Первый экран */
.hero { padding: 80px 0; background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%); }
.hero-inner { display: grid; grid-template-columns: 1.2fr 400px; gap: 50px; align-items: center; }
.hero-badge { display: inline-block; background: rgba(229, 62, 62, 0.1); color: var(--accent); padding: 6px 16px; border-radius: 20px; font-weight: 700; font-size: 13px; margin-bottom: 20px; text-transform: uppercase;}
.hero h1 { font-size: 48px; line-height: 1.1; color: var(--primary); margin-bottom: 20px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 18px; color: var(--text-light); margin-bottom: 25px; }
.hero-list { list-style: none; margin-bottom: 30px; }
.hero-list li { margin-bottom: 12px; font-weight: 500; display: flex; align-items: center; gap: 10px; font-size: 16px; }
.hero-list i { color: #38A169; font-size: 22px; }
.hero-action { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.or-text { color: var(--text-light); font-size: 14px; }

/* Форма в Hero */
.hero-form { background: var(--white); padding: 35px 30px; border-radius: 12px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); border-top: 5px solid var(--accent); }
.hero-form h3 { font-size: 22px; color: var(--primary); margin-bottom: 10px; text-align: center; font-weight: 800;}
.hero-form p { font-size: 14px; text-align: center; margin-bottom: 25px; }
.hero-form input { width: 100%; padding: 16px; margin-bottom: 15px; border: 1px solid #CBD5E0; border-radius: 6px; font-family: inherit; font-size: 16px; background: #F8FAFC; }
.hero-form input:focus { outline: none; border-color: var(--accent); background: var(--white); }

/* Преимущества */
.advantages { padding: 60px 0; background: var(--white); border-bottom: 1px solid #E2E8F0;}
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.adv-card { text-align: center; padding: 20px 15px; border-radius: 8px; transition: 0.3s; }
.adv-card:hover { background: var(--bg-light); transform: translateY(-5px); }
.adv-card i { font-size: 40px; color: var(--accent); margin-bottom: 15px; }
.adv-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--primary); }
.adv-card p { font-size: 14px; color: var(--text-light); }

/* Секции */
.section { padding: 80px 0; }
.bg-light { background: var(--bg-light); }
.section-title { text-align: center; font-size: 36px; color: var(--primary); margin-bottom: 15px; font-weight: 800; }
.section-subtitle { text-align: center; color: var(--text-light); margin-bottom: 45px; font-size: 16px;}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* Услуги */
.service-card { background: var(--white); border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); overflow: hidden; display: flex; flex-direction: column; transition: 0.3s;}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.service-card img { width: 100%; height: 220px; object-fit: cover; }
.service-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.service-card h3 { font-size: 20px; margin-bottom: 10px; color: var(--primary); font-weight: 700;}
.service-card p { font-size: 14px; color: var(--text-light); margin-bottom: 20px; flex-grow: 1; }
.price-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; border-top: 1px solid #EDF2F7; padding-top: 15px;}
.price-row .price { font-size: 20px; font-weight: 800; color: var(--accent); }

/* Проблемы */
.problems-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.problem-item { position: relative; border-radius: 10px; overflow: hidden; height: 220px; }
.problem-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.problem-item:hover img { transform: scale(1.05); }
.problem-label { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(26, 54, 93, 0.9); color: var(--white); text-align: center; padding: 15px; font-weight: 700; font-size: 16px; }

/* Блок быстрого выезда */
.fast-block { display: flex; gap: 40px; align-items: center; background: var(--white); padding: 40px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.fast-text { flex: 1; }
.fast-text p { font-size: 16px; margin-bottom: 20px; color: var(--text-dark); }
.fast-badge { display: inline-block; background: var(--primary); color: var(--white); padding: 12px 20px; border-radius: 8px; font-weight: 700; font-size: 16px; }
.fast-image { flex: 1; border-radius: 10px; overflow: hidden; }
.fast-image img { width: 100%; height: 300px; object-fit: cover; display: block; }

/* Таблица цен */
.table-wrapper { background: var(--white); border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); overflow-x: auto; max-width: 800px; margin: 0 auto; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 20px 25px; text-align: left; border-bottom: 1px solid #E2E8F0; font-size: 16px;}
.price-table th { background: var(--primary); color: var(--white); font-weight: 600; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover { background: #EDF2F7; }
.price-table td:last-child { font-weight: 700; color: var(--accent); text-align: right;}
.price-note { margin-top: 20px; font-size: 14px; color: var(--text-light); display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center;}

/* Портфолио */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item { position: relative; border-radius: 10px; overflow: hidden; height: 250px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-label { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: var(--white); padding: 30px 15px 15px; font-size: 14px; }

/* Отзывы */
.review-card { background: var(--white); padding: 30px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.stars { color: #F6E05E; margin-bottom: 15px; font-size: 14px; }
.review-card p { font-size: 15px; color: var(--text-light); font-style: italic; margin-bottom: 15px; }
.review-card strong { color: var(--primary); }

/* CTA Section */
.cta-section { background: var(--primary); padding: 60px 0; color: var(--white); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta-text h2 { font-size: 32px; margin-bottom: 10px; }
.cta-text p { font-size: 16px; opacity: 0.9; }
.cta-actions { display: flex; gap: 20px; flex-wrap: wrap; }

/* Подвал */
.footer { background: #0F2440; color: #A0AEC0; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-logo { color: var(--white); margin-bottom: 15px; display: inline-flex; }
.footer-logo i { color: var(--accent); }
.footer-col h4 { color: var(--white); margin-bottom: 20px; font-size: 18px; }
.footer-col p { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.footer-col a:hover { color: var(--white); }
.copyright-text { margin-top: 20px; font-size: 13px; color: #718096; }

/* Модалка */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; align-items: center; justify-content: center; }
.modal-content { background: var(--white); padding: 40px; border-radius: 10px; max-width: 400px; width: 90%; position: relative; text-align: center; }
.close { position: absolute; top: 15px; right: 20px; font-size: 30px; cursor: pointer; color: var(--text-light); border: none; background: none; line-height: 1; }
.modal-content h3 { font-size: 24px; margin-bottom: 10px; color: var(--primary); }
.modal-content p { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }
.modal-content input { width: 100%; padding: 15px; margin-bottom: 15px; border: 1px solid #CBD5E0; border-radius: 6px; font-size: 16px; }
.privacy { font-size: 11px !important; color: #A0AEC0 !important; margin-top: 15px; margin-bottom: 0 !important; }

/* Плавающие кнопки */
.float-group { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 15px; z-index: 999; }
.float-btn { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--white); box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: 0.3s; }
.float-btn:hover { transform: scale(1.1); }
.float-phone { background: var(--accent); animation: pulse 2s infinite; }
.float-max { background: #6C5CE7; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.6); }
    70% { box-shadow: 0 0 0 20px rgba(229, 62, 62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0); }
}

/* Адаптив */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-list { display: inline-block; text-align: left; }
    .hero-action { justify-content: center; }
    .grid-3, .grid-4, .problems-grid, .gallery-grid, .fast-block { grid-template-columns: 1fr 1fr; display: grid;}
    .cta-inner { flex-direction: column; text-align: center; }
    .nav { display: none; }
    .burger { display: block; }
    .header-contacts .btn { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .grid-3, .grid-4, .problems-grid, .gallery-grid, .fast-block { grid-template-columns: 1fr; }
    .hero h1 { font-size: 34px; }
    .phone { font-size: 16px; }
    .header-contacts { display: none; }
    .hero-form { padding: 25px 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-actions { justify-content: center; }
}
/* Районы обслуживания */
.areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.area-col { background: var(--white); border-radius: 10px; padding: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.area-col h3 { color: var(--primary); font-size: 20px; margin-bottom: 15px; }
.area-col ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.area-col li { background: var(--bg-light); border: 1px solid #E2E8F0; padding: 6px 14px; border-radius: 20px; font-size: 14px; }

/* FAQ */
.faq-wrap { max-width: 800px; }
.faq-item { background: var(--white); border: 1px solid #E2E8F0; border-radius: 8px; margin-bottom: 12px; padding: 0 20px; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--primary); padding: 18px 0; list-style: none; position: relative; padding-right: 30px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--accent); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 18px; color: var(--text-light); font-size: 15px; }

@media (max-width: 768px) { .areas-grid { grid-template-columns: 1fr; } }
