/* Стили подвала (footer) — вынесены из include/footer.php 26.11.2026.
   Блок 2.6, шаг 1: оформление больше не зависит от JS.
   Здесь же: подписка (модалка), cookie-баннер и прижатие подвала к низу экрана. */


    /* =========================================
       СТИЛИ ПОДВАЛА (FOOTER)
       ========================================= */
    footer {
        background: #04395e;
        color: #c4c9cf;
        padding: 50px 0;
    }

    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
        margin-bottom: 40px;
    }

    .footer-col h3 {
        color: white;
        font-size: 18px;
        margin-bottom: 20px;
        position: relative;
    }

    .footer-col h3::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -8px;
        width: 40px;
        height: 2px;
        background: #e67e22;
    }

    .footer-col ul {
        list-style: none;
    }

    .footer-col ul li {
        margin-bottom: 10px;
    }

    .footer-col ul li a {
        color: #c4c9cf;
        text-decoration: none;
        transition: color 0.3s;
    }

    .footer-col ul li a:hover {
        color: #e67e22;
    }

    .contact-info p {
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .contact-info i {
        color: #e67e22;
        width: 20px;
    }

    .footer-bottom {
        border-top: 1px solid #75818e;
        padding-top: 20px;
        text-align: center;
        font-size: 14px;
    }

    .footer-bottom a {
        color: #c4c9cf;
        text-decoration: none;
        margin: 0 10px;
    }

    .footer-bottom a:hover {
        color: #e67e22;
    }

    /* =========================================
       КОМПАКТНАЯ КНОПКА В ФУТЕРЕ
       ========================================= */
    .subscribe-btn-footer {
        display: inline-block; /* Кнопка по размеру текста */
        background: #e67e22;
        color: white;
        border: none;
        padding: 10px 24px; /* Размеры как на скрине */
        border-radius: 4px;
        cursor: pointer;
        transition: background 0.3s;
        font-weight: 600;
        font-size: 14px;
        font-family: inherit;
        margin-top: 10px;
        width: auto; /* Убираем растягивание на 100% */
    }
    .subscribe-btn-footer:hover { background: #cf711c; }

    /* =========================================
       СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ПОДПИСКИ
       ========================================= */
    .modal-overlay {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.6);
        z-index: 10000;
        display: none;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .modal-overlay.active {
        display: flex;
        opacity: 1;
    }

    .modal-content {
        background: #fff;
        border-radius: 12px;
        padding: 30px;
        width: 100%;
        max-width: 450px;
        position: relative;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        transform: translateY(20px);
        transition: transform 0.3s ease;
        font-family: 'Inter', system-ui, sans-serif;
    }
    .modal-overlay.active .modal-content {
        transform: translateY(0);
    }

    .modal-close {
        position: absolute;
        top: 15px; right: 20px;
        font-size: 28px;
        color: #999;
        cursor: pointer;
        line-height: 1;
        transition: color 0.2s;
    }
    .modal-close:hover { color: #333; }

    .modal-content h3 {
        margin: 0 0 10px;
        font-size: 20px;
        color: #1a2b3c;
    }
    .modal-content p {
        margin: 0 0 20px;
        font-size: 14px;
        color: #666;
        line-height: 1.5;
    }
    .modal-input {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        font-family: inherit;
        font-size: 15px;
        margin-bottom: 15px;
        outline: none;
        box-sizing: border-box;
    }
    .modal-input:focus { 
        border-color: #1f6390; 
        box-shadow: 0 0 0 3px rgba(31,99,144,0.1); 
    }
    
    .modal-consent-wrapper {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 10px;
    }
    .modal-consent-wrapper input[type="checkbox"] {
        margin-top: 3px;
        width: 16px; height: 16px;
        accent-color: #1f6390;
        cursor: pointer;
        flex-shrink: 0;
    }
    .modal-consent-wrapper label {
        font-size: 11px;
        color: #666;
        line-height: 1.4;
        cursor: pointer;
    }
    .modal-consent-wrapper a {
        color: #1f6390;
        text-decoration: underline;
    }

    .modal-submit-btn {
        background: #1f6390;
        color: white;
        border: none;
        padding: 14px;
        border-radius: 8px;
        font-weight: 600;
        font-size: 16px;
        cursor: pointer;
        width: 100%;
        margin-top: 15px;
        transition: background 0.2s;
        font-family: inherit;
    }
    .modal-submit-btn:hover { background: #0e4a6f; }
    .modal-submit-btn:disabled { background: #999; cursor: not-allowed; }

    .modal-message {
        margin-top: 15px;
        font-size: 14px;
        font-weight: 500;
        text-align: center;
    }

    /* =========================================
       СТИЛИ COOKIE-БАННЕРА (CMP)
       ========================================= */
    .cookie-overlay {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 9998;
        display: none;
    }
    .cookie-overlay.active { display: block; }

    .cookie-banner {
        position: fixed;
        bottom: 0; left: 0; width: 100%;
        background-color: #fff;
        color: #333;
        padding: 30px;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
        z-index: 9999;
        font-family: 'Inter', system-ui, sans-serif;
        font-size: 14px;
        transition: transform 0.3s ease-in-out;
    }
    .cookie-banner.hidden { transform: translateY(100%); }

    .cookie-container { max-width: 1200px; margin: 0 auto; }
    .cookie-settings { display: none; margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
    .cookie-settings.active { display: block; }
    .cookie-setting-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; }
    .cookie-setting-item input[type="checkbox"] { width: 20px; height: 20px; cursor: pointer; accent-color: #1f6390; margin-top: 2px; }
    .cookie-setting-item label { cursor: pointer; }
    .cookie-setting-item strong { display: block; font-size: 15px; color: #1a2b3c; margin-bottom: 4px; }
    .cookie-setting-item span { color: #666; font-size: 13px; }

    .cookie-main-text { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
    .cookie-main-text p { margin: 0; max-width: 700px; line-height: 1.5; color: #444; }
    .cookie-main-text a { color: #1f6390; text-decoration: underline; }
    .cookie-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
    .cookie-btn { border: none; padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; transition: background 0.2s; font-family: inherit; }
    .cookie-btn-settings { background: transparent; color: #555; text-decoration: underline; }
    .cookie-btn-settings:hover { color: #1f6390; }
    .cookie-btn-reject { background: #f0f4f8; color: #555; }
    .cookie-btn-reject:hover { background: #e2e8f0; }
    .cookie-btn-accept { background: #1f6390; color: #fff; }
    .cookie-btn-accept:hover { background: #0e4a6f; }

    @media (max-width: 768px) {
        .cookie-main-text { flex-direction: column; align-items: flex-start; }
        .cookie-buttons { width: 100%; flex-direction: column; }
        .cookie-btn { width: 100%; }
    }

  /* ===== Подвал прижат к низу экрана (ред. 26.11.2026) =====
     На коротких страницах (заглушки, контакты и т. п.) контент ниже экрана,
     и под подвалом оставалась белая полоса: body заканчивался по контенту.
     Делаем body flex-колонкой и отдаём подвалу свободный остаток высоты. */
  body {
    min-height: 100vh;
    /* height: auto обязателен: style-index.css и др. ставят body height: 100vh,
       а во flex-колонке это заставляет детей сжиматься — видео первого экрана
       (.heroshot, height: 560px) схлопывалось в 0. С auto body тянется по контенту,
       а подвал всё равно прижат через margin-top: auto. */
    height: auto;
    display: flex;
    flex-direction: column;
  }

  body > footer {
    margin-top: auto;
    flex: 0 0 auto;
  }

  /* Во flex-контейнере дети по умолчанию имеют min-width: auto и не могут
     стать уже своего содержимого — из-за этого страница политики получала
     горизонтальный скролл 59 px на 360. Возвращаем блочное поведение. */
  body > * {
    min-width: 0;
    /* width: 100% — вторая половина той же проблемы (найдено 26.11.2026):
       у контейнеров страниц `margin: 0 auto`, а флекс-элемент с auto-полями
       по поперечной оси не растягивается и вырастает по содержимому. Таблица
       характеристик с min-width: 900px растягивала `.container` до 1280 px,
       и на телефоне 10 страниц уезжали в горизонтальный скролл на 920 px.
       100% возвращает блочную ширину, ограничения max-width в классах остаются. */
    width: 100%;
  }
