:root {
    --brand-blue: #1c5287;
    --brand-sky: #5ea7e5;
    --brand-yellow: #ffc107;
}

body {
    font-family: 'Manrope', sans-serif;
    color: #2b2b2b;
    background-color: #f7f9fc;
}

.fw-extrabold { font-weight: 800; }
.very-small { font-size: 0.78rem; }
.cursor-pointer { cursor: pointer; }

/* Первый экран Hero */
.hero-section {
    min-height: 100vh;
    background: radial-gradient(circle at 50% 30%, #7dc0f5 0%, #4f9adc 60%, #357cb9 100%);
}

.nav-link-custom {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-link-custom:hover { color: #fff; }

/* Визуал кондиционера */
.ac-visual-container {
    max-width: 680px;
}
.ac-unit-img {
    max-height: 220px;
    filter: drop-shadow(0 20px 30px rgba(10, 42, 71, 0.4));
    transition: transform 0.3s ease;
}
.ac-unit-img:hover {
    transform: translateY(-3px) scale(1.01);
}

/* Конфигуратор */
.hero-calculator {
    max-width: 880px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(14px);
    border-radius: 24px;
    padding: 24px;
}

.room-tab {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 0.9rem;
    font-weight: 600;
}
.room-tab.active {
    background: #fff;
    color: var(--brand-blue);
    border-color: #fff;
}

.mount-toggle-box {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Карточки конфигуратора */
.config-card {
    background: #ffffff;
    border-radius: 18px;
    color: #333;
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}
.config-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}
.config-card-img {
    max-height: 110px;
    object-fit: contain;
    margin: 0 auto 10px;
}

/* Блок сравнения шума */
.noise-card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.noise-card:hover {
    transform: translateY(-3px);
}
.noise-card.playing {
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.4);
}

/* Каталог 21 модели */
.catalog-item-card {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 18px;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.catalog-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
}
.catalog-item-img {
    height: 120px;
    object-fit: contain;
    margin-bottom: 12px;
}

/* SEO блок */
.seo-content-preview, .seo-content-full {
    line-height: 1.7;
}

/* Подвал */
.footer-section a:hover {
    color: #fff !important;
}

/* ========================================================
   БЛОК КОНТАКТОВ И КАРТЫ
======================================================== */
.contact-icon {
    min-width: 32px;
}

.map-wrapper {
    background-color: #e5e3df; /* Заглушка под цвет карты до загрузки */
}

.map-wrapper iframe {
    filter: saturate(0.9);
    transition: filter 0.3s ease;
}

.map-wrapper:hover iframe {
    filter: saturate(1.1);
}

/* Единая ширина для кондиционера и калькулятора */
.hero-wrapper {
    max-width: 880px;
    width: 100%;
}

/* Стили и адаптив кондиционера */
.ac-stage {
    position: relative;
    padding-bottom: 20px;
}

.ac-hero-img {
    max-height: 390px;
    width: auto;
    filter: drop-shadow(0 15px 25px rgba(0, 40, 80, 0.3));
}

/* ========================================================
   CSS-АНИМАЦИЯ ПОТОКА ВОЗДУХА
======================================================== */
.air-flow-container {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 70px;
    overflow: visible;
    pointer-events: none;
    z-index: 1;
}

.air-wave {
    position: absolute;
    left: 10%;
    right: 10%;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 75%);
    filter: blur(4px);
    opacity: 0;
    transform: translateY(0) scaleX(0.7);
    animation: airBlowing 2.4s ease-out infinite;
}

.wave-1 { animation-delay: 0s; }
.wave-2 { animation-delay: 0.8s; }
.wave-3 { animation-delay: 1.6s; }

@keyframes airBlowing {
    0% {
        opacity: 0;
        transform: translateY(0px) scaleX(0.7);
    }
    30% {
        opacity: 0.9;
    }
    80% {
        opacity: 0.4;
    }
    100% {
        opacity: 0;
        transform: translateY(60px) scaleX(1.3);
    }
}

/* ========================================================
   КОНТРАСТНЫЕ ЭЛЕМЕНТЫ ПЕРВОГО ЭКРАНА
======================================================== */

/* Яркая цифра площади */
.area-badge {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8), 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

/* Плашка с чекбоксом монтажа */
.mount-box {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
}

.text-shadow-sm {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* Стиль кастомного свитча */
.custom-switch {
    width: 2.5em !important;
    height: 1.3em !important;
    cursor: pointer;
}
.custom-switch:checked {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

/* ========================================================
   МОБИЛЬНЫЙ BOTTOM NAVIGATION BAR
======================================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1040; /* Выше обычного контента, но ниже модалок (1050+) */
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding-top: 6px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); /* Защита для iPhone X/11/12/13/14/15/16 */
}

/* Стандартные вкладки */
.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 4px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.mobile-nav-link i {
    line-height: 1.1;
    margin-bottom: 2px;
}

.mobile-nav-link:hover,
.mobile-nav-link:active,
.mobile-nav-link.active {
    color: #1c5287;
}

/* Центральная выделенная кнопка CTA */
.mobile-nav-link-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #1e293b;
    font-size: 0.68rem;
    font-weight: 700;
    margin-top: -16px; /* Выступает немного вверх над панелью */
}

.cta-circle {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 3px solid #ffffff;
    margin-bottom: 2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-nav-link-cta:active .cta-circle {
    transform: scale(0.92);
}

/* Добавляем нижний отступ телу страницы на мобильных, чтобы футер не перекрывался баром */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 70px;
    }
}

/* ========================================================
   БЛОК ЭКОСИСТЕМЫ И ПЕРЕХОДА НА ОСНОВНОЙ САЙТ
======================================================== */
.bg-gradient-brand {
    background: linear-gradient(135deg, #184b7a 0%, #2b6cb0 50%, #1a365d 100%);
}

.badge-link {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    display: inline-block;
}

.badge-link:hover {
    background: #ffffff;
    color: #1a365d !important;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-main-catalog {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-main-catalog:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4) !important;
}

.feature-circle {
    width: 28px;
    height: 28px;
    background: #eef6fc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    flex-shrink: 0;
}

.hover-underline:hover {
    text-decoration: underline !important;
}