/* ========== ОСНОВНЫЕ СТИЛИ САЙТА ========== */
/* ========== ШАПКА В ОТДЕЛЬНОМ ФАЙЛЕ header.css ========== */
/* ========== ГЛАВНАЯ СТРАНИЦА В ОТДЕЛЬНОМ ФАЙЛЕ home.css ========== */

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

body {
    font-family: 'Manrope', sans-serif;
    color: #344955;
    line-height: 1.6;
    background: #f8f9fa;
}

/* ===== ШРИФТЫ ДЛЯ ЗАГОЛОВКОВ ===== */
h1, h2, h3, h4, h5, h6,
.title h1, .title h2, .title h3,
.benefits-list li,
.item strong,
.sec-11 .title,
.sec-11 .desc.f-title,
.form#gift-1 h3,
.form#order-question .big,
.footer-info .logo-text {
    font-family: 'Roboto Serif', serif;
    font-weight: 300;
}

.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* ===== ГЛОБАЛЬНОЕ ИСПРАВЛЕНИЕ ШИРИНЫ ===== */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main-content-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 30px auto;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(74,101,114,0.1);
}

.main-title-section {
    flex: 1;
}

.main-title-section h1 {
    font-size: 48px;
    color: #344955;
    font-weight: 300;
    margin-bottom: 30px;
    line-height: 1.2;
}

.benefits-list ul {
    list-style: none;
}

.benefits-list li {
    font-size: 28px;
    margin-bottom: 20px;
    padding-left: 45px;
    position: relative;
    list-style: none;
    font-weight: 300;
}

.benefits-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #F9AA33;
    font-size: 32px;
    font-weight: 400;
}

.main-form-section {
    flex: 0 0 36%;
    max-width: 562.5px;
}

.form#gift-1 {
    background: white;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #E0E6ED;
}

.form#gift-1 h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #344955;
    text-align: center;
    font-weight: 300;
}

.form#gift-1 input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #E0E6ED;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Manrope', sans-serif;
}

.form#gift-1 input:focus {
    outline: none;
    border-color: #F9AA33;
    box-shadow: 0 0 0 3px rgba(249,170,51,0.1);
}

.form#gift-1 .policy-wrapper {
    margin-bottom: 20px;
    font-size: 14px;
    color: #4A6572;
}

.form#gift-1 .send-form1 {
    width: 100%;
    padding: 16px;
    background: #F9AA33;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.form#gift-1 .send-form1:hover {
    background: #e6991f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249,170,51,0.3);
}

/* ===== НАВИГАЦИЯ ПО ТИПУ ОКНА ===== */
.narrow-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.window-type-nav {
    background: #344955;
    padding: 30px;
    margin: 40px auto;
    max-width: 1400px;
    border-radius: 15px;
}

.window-type-nav h3 {
    color: white;
    text-align: center;
    font-size: 26px;
    margin-bottom: 30px;
    font-weight: 300;
}

.window-type-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.window-type-btn {
    background: white;
    color: #344955;
    border: 2px solid #4A6572;
    border-radius: 12px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    min-width: 240px;
    transition: all 0.3s;
    font-family: 'Manrope', sans-serif;
}

.window-type-btn:hover,
.window-type-btn.active {
    background: #4A6572;
    color: white;
    border-color: #4A6572;
}

.window-type-btn.active {
    background: #F9AA33;
    border-color: #F9AA33;
    color: #344955;
}

.window-type-btn i {
    margin-right: 8px;
}

/* ===== КАТАЛОГ ТОВАРОВ ===== */
.category-section {
    margin: 50px 0 80px;
    display: none;
    padding: 20px 0;
}

.category-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.category-title {
    font-size: 36px;
    color: #344955;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #F9AA33;
    font-weight: 300;
    text-align: center;
    line-height: 1.3;
}

.category-description {
    font-size: 20px;
    color: #4A6572;
    margin-bottom: 50px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    padding: 0 20px;
    font-weight: 300;
}

.subcategory-title {
    font-size: 28px;
    color: #344955;
    margin: 50px 0 35px;
    padding-left: 25px;
    border-left: 5px solid #F9AA33;
    font-weight: 300;
    line-height: 1.4;
}

.catalog-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

@media (max-width: 992px) {
    .catalog-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.column {
    display: flex;
    flex-direction: column;
}

.item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #E0E6ED;
    transition: all 0.3s;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #F9AA33;
}

.item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

.item strong {
    display: block;
    font-size: 20px;
    margin-bottom: 15px;
    color: #344955;
    font-weight: 400;
}

.type {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property {
    margin-bottom: 12px;
}

.property .text {
    font-size: 16px;
    line-height: 1.5;
    color: #4A6572;
    font-weight: 300;
}

.price {
    font-size: 24px;
    color: #F9AA33;
    font-weight: 700;
    margin: 15px 0;
}

.price h6 {
    font-size: 14px;
    color: #4A6572;
    font-weight: 300;
    margin-top: 5px;
}

.txt-center {
    margin-top: auto;
}

.txt-center button {
    width: 100%;
    padding: 12px;
    background: #F9AA33;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.txt-center button:hover {
    background: #e6991f;
    transform: translateY(-2px);
}

/* ===== ФОРМА ВОПРОСОВ ===== */
.sec-11 {
    background: #f0f2f5;
    padding: 60px 0;
    margin-top: 40px;
}

.sec-11 .title {
    text-align: center;
    font-size: 36px;
    color: #344955;
    margin-bottom: 20px;
    font-weight: 300;
}

.sec-11 .desc.f-title {
    text-align: center;
    font-size: 26px;
    margin-bottom: 50px;
    color: #4A6572;
    font-weight: 300;
}

.form#order-question {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 1080px;
    margin: 0 auto;
    border: 1px solid #E0E6ED;
}

.form#order-question .row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form#order-question input {
    flex: 1;
    padding: 12px;
    border: 1px solid #E0E6ED;
    border-radius: 8px;
    font-size: 16px;
}

.form#order-question textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #E0E6ED;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 100px;
    resize: vertical;
}

.form#order-question .policy-wrapper {
    margin-bottom: 20px;
    font-size: 14px;
    color: #4A6572;
}

.form#order-question .send-form3 {
    width: 100%;
    padding: 16px;
    background: #F9AA33;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.form#order-question .send-form3:hover {
    background: #e6991f;
}

/* ===== ФУТЕР С ФОНОМ BG1 ===== */
.site-footer {
    position: relative;
    padding: 60px 0 30px;
    margin-top: 60px;
    border-top: 4px solid #F9AA33;
    width: 100%;
    background: linear-gradient(rgba(42, 59, 68, 0.92), rgba(42, 59, 68, 0.92)), url('../images/bg1.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; /* Эффект параллакса (опционально) */
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Декоративный элемент */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F9AA33, transparent);
    z-index: 1;
}

/* Две колонки */
.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

//* Левая колонка с логотипами */
.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 5px;
    /* Добавляем светлый фон для контраста */
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 50px;
    backdrop-filter: blur(5px); /* Эффект матового стекла */
    border: 1px solid rgba(255,255,255,0.2);
}

.footer-logo-main {
    height: 45px;
    width: auto;
}

.footer-logo-foroom {
    height: 30px;
    width: auto;
    /* Оригинальный черный логотип, но на светлом фоне виден */
}

.footer-brand {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.footer-subtext {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Правая колонка с контактами */
.footer-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item i {
    color: #F9AA33;
    font-size: 18px;
    width: 24px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.footer-link:hover {
    color: #F9AA33;
    transform: translateX(-3px);
}

/* Социальные сети */
.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.social-icon-img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.social-icon:hover {
    transform: translateY(-5px);
    border-color: transparent;
}

.social-icon.telegram:hover {
    background: #0088cc;
    box-shadow: 0 5px 20px rgba(0,136,204,0.4);
}
.social-icon.max:hover {
    background: #0066FF;
    box-shadow: 0 5px 20px rgba(0,102,255,0.4);
}
.social-icon.whatsapp:hover {
    background: #25D366;
    box-shadow: 0 5px 20px rgba(37,211,102,0.4);
}
.social-icon.email:hover {
    background: #F9AA33;
    box-shadow: 0 5px 20px rgba(249,170,51,0.4);
}
.social-icon.vk:hover {
    background: #4C75A3;
    box-shadow: 0 5px 20px rgba(76,117,163,0.4);
}

/* Нижняя часть */
.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #F9AA33 !important;
}

/* Адаптивность */
@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-info {
        align-items: center;
    }
    
    .footer-contacts {
        align-items: center;
    }
    
    .footer-logos {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 20px;
        background-attachment: scroll; /* Отключаем параллакс на мобильных */
    }
    
    .footer-social {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .social-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    
    .social-icon-img {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .footer-logos {
        gap: 15px;
    }
    
    .footer-logo-main {
        height: 40px;
    }
    
    .footer-logo-foroom {
        height: 28px;
    }
    
    .footer-link {
        font-size: 14px;
    }
}
/* ===== ФИКС ДЛЯ МОДАЛЬНЫХ ОКОН ===== */
.modal-form,
.product-modal,
.gov-modal,
.certificate-modal,
.modal-notification,
.promo-banner {
    display: none !important;
}

.modal-form.active,
.product-modal.active,
.gov-modal.active,
.certificate-modal.active,
.modal-notification.active,
.promo-banner.show {
    display: flex !important;
}
/* ===== ФИКС ДЛЯ МОДАЛЬНЫХ ОКОН ===== */
.modal-form,
.product-modal,
.gov-modal,
.certificate-modal,
.modal-notification,
#orderCalcModal,
#orderModal,
#callbackModal,
#emailModal,
#tzModal,
#kpModal,
#measureModal,
#govModal,
#promoModal,
#productModal,
#notificationModal,
#certificateModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important; /* Очень высокий z-index */
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(5px) !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Показываем только активные */
.modal-form.active,
.product-modal.active,
.gov-modal.active,
.certificate-modal.active,
.modal-notification.active,
#orderCalcModal.active,
#orderModal.active,
#callbackModal.active,
#emailModal.active,
#tzModal.active,
#kpModal.active,
#measureModal.active,
#govModal.active,
#promoModal.active,
#productModal.active,
#notificationModal.active,
#certificateModal.active {
    display: flex !important;
}

/* Содержимое модального окна */
.modal-form-content,
.product-modal-content,
.gov-modal-content,
.certificate-modal-content,
.modal-notification-content {
    position: relative !important;
    z-index: 1000000 !important; /* Ещё выше */
    background: white !important;
    max-width: 500px !important;
    width: 90% !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    border-radius: 20px !important;
    padding: 30px !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5) !important;
}

/* Убедимся, что шапка не перекрывает */
.main-page-header {
    position: relative !important;
    z-index: 100 !important; /* Ниже чем у модальных окон */
}