/* =========================================
   1. ШРИФТЫ И БАЗОВЫЕ НАСТРОЙКИ
========================================= */
@font-face {
    font-family: 'HyundaiSansHead';
    src: url('fonts/HyundaiSansHeadOffice-Medium.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'HyundaiSansHead';
    src: url('fonts/HyundaiSansHeadOffice-Medium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

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

body, a, button, input, textarea { 
    font-family: 'HyundaiSansHead', Arial, sans-serif; 
}

body { 
    /* Общий фон для эффекта стекла */
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%); 
    color: #333; 
}

/* =========================================
   2. ШАПКА И МЕНЮ
========================================= */
.header { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 15px 50px; background: #fff; border-bottom: 1px solid #ddd;
    position: sticky; top: 0; z-index: 100;
}
.header-logo { font-size: 24px; font-weight: bold; color: #002c5f; text-decoration: none; }
.header-contacts { display: flex; align-items: center; gap: 20px; }
.header-phone { font-size: 18px; font-weight: bold; color: #333; text-decoration: none; }
.header-link { color: #002c5f; text-decoration: none; font-size: 14px; font-weight: bold; }

/* Парящие кнопки */
.btn-primary { 
    background: #e63312; color: #fff; padding: 12px 24px; 
    text-decoration: none; border-radius: 12px; font-weight: bold; 
    text-transform: uppercase; letter-spacing: 0.5px;
    border: none; cursor: pointer; transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(230, 51, 18, 0.3);
}
.btn-primary:hover { 
    background: #cc2a0f; 
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(230, 51, 18, 0.6);
}

.main-nav { background: #002c5f; padding: 12px 50px; }
.nav-list { display: flex; list-style: none; gap: 25px; }
.nav-list li { flex-shrink: 0; }
.nav-list a { color: #fff; text-decoration: none; font-size: 14px; text-transform: uppercase; font-weight: bold; transition: 0.3s; padding-bottom: 2px; box-shadow: 0 2px 0 transparent; }
.nav-list a:hover { color: #e63312; }
.nav-list a.active { box-shadow: 0 2px 0 #e63312; }

/* =========================================
   3. ГЛАВНЫЙ ЭКРАН (СЛАЙДЕР)
========================================= */
.main-slider { 
    width: 100%; min-height: 400px; height: 50vh; max-height: 600px; position: relative; 
}
.swiper-slide { 
    display: flex; align-items: center; padding: 0 50px;
    background-color: #002c5f;
    background-image: linear-gradient(90deg, #002c5f 0%, rgba(0,44,95,0.4) 100%), url('img/slide-desktop.jpg');
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
.slide-content { max-width: 600px; color: #fff; }
.slide-content h2 { font-size: 48px; margin-bottom: 20px; text-transform: uppercase; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.slide-content p { font-size: 24px; margin-bottom: 30px; font-weight: bold; }
.slide-price-badge { 
    display: inline-block; background: #e63312; color: #fff; 
    padding: 10px 20px; font-size: 24px; font-weight: bold; margin-bottom: 20px;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}

/* =========================================
   4. КАРТОЧКИ УСЛУГ (ЖИДКОЕ СТЕКЛО)
========================================= */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; padding: 40px 50px; max-width: 1400px; margin: 0 auto;
}
.service-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 44, 95, 0.08);
    padding: 30px; text-decoration: none; color: #333;
    display: flex; flex-direction: column; justify-content: center; min-height: 150px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 45px rgba(0, 44, 95, 0.15), 0 0 20px rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.8);
}
.service-card h3 {
    background: linear-gradient(90deg, #002c5f, #e63312);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 20px; margin-bottom: 10px; font-weight: bold;
}
.service-card p { font-size: 14px; color: #666; font-weight: bold; }

.service-card.highlight {
    background: linear-gradient(135deg, rgba(0, 44, 95, 0.8), rgba(0, 44, 95, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.service-card.highlight h3 { background: none; -webkit-text-fill-color: #fff; }
.service-card.highlight p { color: #fff; }

/* =========================================
   5. SEO, ОТЗЫВЫ И ПОДВАЛ
========================================= */
.seo-section { padding: 50px; max-width: 1400px; margin: 0 auto; color: #333; line-height: 1.6; }
.seo-section h2 { color: #002c5f; font-size: 32px; margin-bottom: 20px; text-transform: uppercase; }
.seo-section p { margin-bottom: 15px; font-size: 16px; }

.reviews-section { background: rgba(255,255,255,0.4); padding: 50px; }
.reviews-title { text-align: center; color: #002c5f; font-size: 32px; margin-bottom: 40px; text-transform: uppercase; }
.reviews-container {
    max-width: 1400px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px;
}
.review-card {
    background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    padding: 30px; border-radius: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.6); border-left: 4px solid #e63312;
}
.review-author { font-weight: bold; font-size: 18px; margin-bottom: 5px; color: #002c5f; }
.review-service { font-size: 13px; color: #666; margin-bottom: 15px; text-transform: uppercase; font-weight: bold; }
.review-text { font-size: 15px; font-style: italic; }

.footer { background: #002c5f; color: #fff; }

/* =========================================
   6. МОДАЛЬНОЕ ОКНО (ЖИДКОЕ СТЕКЛО)
========================================= */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 44, 95, 0.6); z-index: 1000;
    justify-content: center; align-items: center; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.modal-overlay.active { display: flex; }

.modal-content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px; padding: 40px; width: 100%; max-width: 400px;
    position: relative; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}
.modal-close { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #002c5f; font-weight: bold; transition: 0.3s; }
.modal-close:hover { color: #e63312; }
.modal-content h3 {
    background: linear-gradient(90deg, #002c5f, #e63312); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 20px; text-align: center; font-size: 24px;
}
.modal-content input, .modal-content select {
    width: 100%; padding: 15px; margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px; font-size: 16px; outline: none; transition: 0.3s; color: #333; font-weight: bold;
}
.modal-content select option { color: #333; }
.modal-content input:focus, .modal-content select:focus {
    background: rgba(255, 255, 255, 0.95); border-color: #002c5f; box-shadow: 0 0 15px rgba(0, 44, 95, 0.1);
}
.modal-content .btn-primary { width: 100%; }

.form-status { margin-top: 15px; text-align: center; font-size: 14px; display: none; font-weight: bold; }
.form-status.success { color: #28a745; display: block; }
.form-status.error { color: #e63312; display: block; }

/* =========================================
   7. МОБИЛЬНАЯ АДАПТАЦИЯ (МЕДИА-ЗАПРОСЫ)
========================================= */
@media (max-width: 768px) {
    .header { flex-direction: column; padding: 15px; gap: 15px; text-align: center; }
    .header-logo { font-size: 16px; text-align: center; white-space: normal; }
    .header-contacts { width: 100%; flex-wrap: wrap; justify-content: center; gap: 15px; }
    .header-contacts .btn-primary { 
        width: 100%; text-align: center; 
        background-color: #e63312 !important; color: #fff !important; 
    }

    .main-nav { padding: 10px 15px; }
    .nav-list { display: flex; overflow-x: auto; white-space: nowrap; padding-bottom: 5px; -webkit-overflow-scrolling: touch; }
    
    .main-slider { height: 400px; min-height: unset; }
    .swiper-slide { 
        padding: 0 15px; 
        /* Для мобильных можно подставить вертикальную картинку */
        background-image: linear-gradient(180deg, rgba(0,44,95,0.8) 0%, rgba(0,44,95,0.2) 100%), url('img/slide-mobile.jpg');
    }
    .slide-content h2 { font-size: 32px; }
    .slide-content p { font-size: 18px; }
    
    .services-grid, .seo-section, .reviews-section { padding: 30px 15px; }

    .modal-content { padding: 25px 15px; width: 90%; max-width: 350px; }
    .modal-close { top: 5px; right: 15px; }
}

/* =========================================
   8. ВНУТРЕННИЕ СТРАНИЦЫ
   ВНИМАНИЕ: мобильные правки для блоков 8–12
   собраны в медиа-запросе в КОНЦЕ файла —
   только там они перекрывают десктопные стили.
========================================= */

/* =========================================
   8. ВНУТРЕННИЕ СТРАНИЦЫ
========================================= */
.page-hero {
    background: linear-gradient(90deg, #002c5f 0%, rgba(0,44,95,0.75) 100%);
    color: #fff; padding: 45px 50px;
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; }
.breadcrumbs { font-size: 13px; margin-bottom: 12px; text-transform: uppercase; font-weight: bold; letter-spacing: 0.5px; opacity: 0.8; }
.breadcrumbs a { color: #fff; text-decoration: none; }
.breadcrumbs a:hover { color: #e63312; }
.page-hero h1 { font-size: 36px; text-transform: uppercase; margin-bottom: 12px; }
.page-hero p { font-size: 17px; max-width: 720px; line-height: 1.5; opacity: 0.9; }

.content-section { max-width: 1100px; margin: 0 auto; padding: 40px 50px; }
.content-section h2 { color: #002c5f; font-size: 26px; margin-bottom: 20px; text-transform: uppercase; }
.content-section > p { margin-bottom: 15px; line-height: 1.6; font-size: 16px; }

.price-table-wrap {
    overflow-x: auto; border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,44,95,0.08); margin-bottom: 15px;
}
.price-table {
    width: 100%; border-collapse: collapse;
    background: rgba(255,255,255,0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    font-size: 15px; min-width: 500px;
}
.price-table th {
    background: #002c5f; color: #fff; padding: 14px 16px; text-align: left;
    font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;
}
.price-table td { padding: 13px 16px; border-bottom: 1px solid rgba(0,44,95,0.08); }
.price-table tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover td { background: rgba(255,255,255,0.8); }
.price-table td:last-child { font-weight: bold; color: #002c5f; }
/* В таблицах с ценами последняя колонка не переносится (на мобильных — переносится) */
.price-table--prices td:last-child { white-space: nowrap; }
.table-note { font-size: 13px; color: #666; margin-bottom: 25px; line-height: 1.5; }

/* =========================================
   9. КАЛЬКУЛЯТОР ТО
========================================= */
.calc-box {
    background: linear-gradient(135deg, #002c5f 0%, rgba(0,44,95,0.85) 100%);
    border-radius: 24px; padding: 35px; color: #fff;
    box-shadow: 0 16px 40px rgba(0,44,95,0.25);
}
.calc-box h2 { color: #fff !important; }
.calc-box > p { opacity: 0.85; margin-bottom: 25px; line-height: 1.5; }
.calc-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px; }
.calc-field label { display: block; font-size: 13px; text-transform: uppercase; font-weight: bold; margin-bottom: 8px; opacity: 0.8; }
.calc-field select, .calc-field input {
    width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.12); color: #fff; font-size: 16px; font-weight: bold;
    outline: none; transition: 0.3s;
}
.calc-field select:focus, .calc-field input:focus { background: rgba(255,255,255,0.2); border-color: #fff; }
.calc-field select option { color: #333; }
.calc-field input::placeholder { color: rgba(255,255,255,0.5); }
.calc-result {
    display: none; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
    border-radius: 16px; padding: 20px 25px;
}
.calc-result.show { display: block; }
.calc-reglament { font-size: 14px; text-transform: uppercase; font-weight: bold; color: #ff9d8a; margin-bottom: 6px; }
.calc-works { font-size: 14px; opacity: 0.85; margin-bottom: 12px; line-height: 1.5; }
.calc-price { font-size: 32px; font-weight: bold; }
.calc-price small { font-size: 14px; font-weight: normal; opacity: 0.7; }

/* =========================================
   10. КАРТОЧКИ: ПРЕИМУЩЕСТВА И АКЦИИ
========================================= */
.cards-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px; margin-bottom: 10px;
}
.adv-card, .promo-card {
    background: rgba(255,255,255,0.3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5); border-radius: 24px; padding: 25px;
    box-shadow: 0 8px 32px rgba(0,44,95,0.08);
    transition: all 0.4s cubic-bezier(0.25,0.8,0.25,1);
}
.adv-card:hover, .promo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,44,95,0.15), 0 0 20px rgba(255,255,255,0.4);
}
.adv-card h3, .promo-card h3 {
    background: linear-gradient(90deg, #002c5f, #e63312);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    font-size: 18px; margin-bottom: 10px;
}
.adv-card p, .promo-card p { font-size: 14px; color: #666; font-weight: bold; line-height: 1.5; }
.promo-date {
    display: inline-block; background: #e63312; color: #fff; font-size: 12px; font-weight: bold;
    padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px;
}
.promo-price { color: #002c5f !important; font-size: 16px !important; margin-top: 10px; }

/* CTA-баннер */
.cta-banner {
    max-width: 1100px; margin: 20px auto 50px; padding: 40px 50px; border-radius: 24px;
    background: linear-gradient(135deg, rgba(0,44,95,0.92), rgba(0,44,95,0.78));
    color: #fff; display: flex; justify-content: space-between; align-items: center;
    gap: 30px; flex-wrap: wrap; box-shadow: 0 16px 40px rgba(0,44,95,0.2);
}
.cta-banner h2 { font-size: 26px; text-transform: uppercase; margin-bottom: 8px; }
.cta-banner p { opacity: 0.85; line-height: 1.5; }
.cta-banner .actions { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-outline {
    display: inline-block; padding: 12px 24px; border-radius: 12px; font-weight: bold;
    text-transform: uppercase; letter-spacing: 0.5px; text-decoration: none;
    border: 2px solid #fff; color: #fff; transition: 0.3s; font-size: 14px;
}
.btn-outline:hover { background: #fff; color: #002c5f; }

/* Honeypot-поле формы: скрыто от людей */
.hp-field { display: none !important; }

/* =========================================
   11. ПОДВАЛ
========================================= */
.footer { padding: 50px 50px 25px; }
.footer-grid {
    max-width: 1400px; margin: 0 auto 30px;
    display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px;
}
.footer-logo { font-size: 22px; font-weight: bold; margin-bottom: 12px; }
.footer-col > p { opacity: 0.75; font-size: 14px; line-height: 1.6; }
.footer-heading {
    font-size: 13px; text-transform: uppercase; font-weight: bold; letter-spacing: 1px;
    margin-bottom: 15px; color: #ff9d8a;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-col a { color: #fff; text-decoration: none; opacity: 0.85; }
.footer-col a:hover { color: #ff9d8a; opacity: 1; }
.footer-bottom {
    max-width: 1400px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 20px; text-align: center; font-size: 13px; opacity: 0.7;
}

/* =========================================
   12. КОНТАКТЫ
========================================= */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 30px; align-items: start; }
.contact-item { display: flex; gap: 15px; margin-bottom: 20px; align-items: flex-start; }
.contact-ico {
    width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: #002c5f;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(0,44,95,0.25);
}
.contact-ico svg { display: block; }
.ci-title { font-size: 12px; text-transform: uppercase; font-weight: bold; color: #999; margin-bottom: 4px; letter-spacing: 0.5px; }
.ci-value { font-size: 16px; font-weight: bold; color: #333; line-height: 1.4; }
.ci-value a { color: #002c5f; text-decoration: none; }
.ci-value a:hover { color: #e63312; }
.contact-note {
    margin-top: 25px; padding: 18px 20px; border-radius: 16px; font-size: 14px; line-height: 1.5;
    background: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.6);
}
.contact-note a { color: #e63312; font-weight: bold; }
.map-frame {
    width: 100%; height: 420px; border: 0; border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,44,95,0.15);
}


/* =========================================
   13. МОБИЛЬНАЯ АДАПТАЦИЯ БЛОКОВ 8–12
   ВАЖНО: блок размещён в конце файла, чтобы
   эти правила перекрывали десктопные (каскад
   при равной специфичности решает порядок).
========================================= */
@media (max-width: 768px) {
    .page-hero { padding: 28px 16px; }
    .page-hero h1 { font-size: 26px; }
    .breadcrumbs { font-size: 12px; }
    .page-hero p { font-size: 15px; }
    .content-section { padding: 28px 16px; }
    .content-section h2 { font-size: 22px; }

    /* Таблицы: обе колонки видны без горизонтальной прокрутки */
    .price-table { min-width: 0; font-size: 13px; }
    .price-table th, .price-table td { padding: 10px 10px; }
    .price-table--prices td:last-child { white-space: normal; }

    /* Калькулятор */
    .calc-box { padding: 25px 20px; }
    .calc-controls { grid-template-columns: 1fr; gap: 15px; }
    .calc-price { font-size: 26px; }

    /* Контакты */
    .contacts-grid { grid-template-columns: 1fr; gap: 20px; }
    .map-frame { height: 280px; }

    /* CTA-баннер: кнопки друг под другом, телефон одной строкой */
    .cta-banner { margin: 10px 16px 40px; padding: 28px 20px; }
    .cta-banner h2 { font-size: 22px; }
    .cta-banner .actions { width: 100%; flex-direction: column; gap: 12px; }
    .cta-banner .actions .btn-primary,
    .cta-banner .actions .btn-outline {
        width: 100%; flex: none; padding: 12px 10px;
        text-align: center; white-space: nowrap; font-size: 13px;
    }

    /* Телефон в шапке — заметная «кнопка звонка» */
    .header-phone {
        font-size: 20px; color: #002c5f; text-decoration: none;
        padding: 10px 24px; border: 2px solid #002c5f; border-radius: 14px; background: #fff;
    }

    /* Футер — одна колонка */
    .footer { padding: 40px 16px 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .footer-col li { margin-bottom: 8px; }
}
