/* =====================================================
     FREZER66.RU — ОСНОВНЫЕ СТИЛИ (ВЕРСИЯ 2.0)
     ===================================================== */

/* ----- ПЕРЕМЕННЫЕ (тёмная тема по умолчанию) ----- */
:root {
    --primary: #e31e24;
    --primary-dark: #c4191f;
    --secondary: #1f2937;
    --accent: #ff9800;
    --dark: #1a1a2e;
    --gray: #4b5563;
    --light: #f9fafb;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--secondary);
    line-height: 1.5;
    background: var(--white);
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ----- ТИПОГРАФИКА ----- */
h1 { font-size: 48px; font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
h2 { font-size: 32px; font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--gray); font-size: 18px; }

/* ----- КНОПКИ ----- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }
.btn-accent {
    background: var(--accent);
    color: #1a1a2e;
}
.btn-accent:hover { background: #e68900; }

/* ----- HEADER (ТЁМНЫЙ) ----- */
.site-header {
    background: #1a1a2e;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 32px;
}
.logo strong { display: block; font-size: 20px; color: white; }
.logo span { font-size: 11px; color: #8b8ba5; display: block; }
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a { color: #e0e0e0; text-decoration: none; font-size: 14px; font-weight: 500; }
.main-nav a:hover { color: var(--accent); }
.has-submenu { position: relative; }
.submenu-toggle {
    background: none; border: none; font-size: 14px; font-weight: 500;
    color: #e0e0e0; cursor: pointer; font-family: inherit;
}
.submenu {
    position: absolute; top: 100%; left: 0; background: #1a1a2e;
    min-width: 220px; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: none; flex-direction: column; padding: 8px 0; z-index: 100; margin-top: 8px;
}
.has-submenu.open .submenu { display: flex; }
.submenu a { padding: 10px 20px; color: #c0c0d0; font-size: 13px; }
.submenu a:hover { background: rgba(255,255,255,0.05); color: var(--accent); }
.header-contacts { text-align: right; }
.header-contacts .phone {
    font-size: 18px; font-weight: 700; color: var(--accent);
    text-decoration: none; display: block;
}
.header-contacts .email {
    font-size: 12px; color: #8b8ba5; text-decoration: none; display: block;
}
.burger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
}
.burger span { width: 24px; height: 2px; background: white; border-radius: 2px; }

/* ----- HERO С ФОНОМ И ЗАТЕМНЕНИЕМ ----- */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 80px 0;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.65); z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero__content { max-width: 800px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: 42px; font-weight: 700; color: white; margin-bottom: 16px; }
.hero__price { font-size: 36px; font-weight: 700; color: var(--accent); margin-bottom: 20px; }
.hero__desc { font-size: 18px; color: #e2e8f0; margin-bottom: 32px; }
.hero__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ----- ОБЩИЕ БЛОКИ ----- */
.section { padding: 60px 0; }
.section-light { background: var(--light); }
.section-white { background: var(--white); }

/* ----- КАРТОЧКИ ТРИГГЕРОВ ----- */
.triggers { padding: 40px 0; background: var(--white); border-bottom: 1px solid #eef2f6; }
.triggers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trigger-card { text-align: center; padding: 24px 16px; }
.trigger-card i { font-size: 32px; color: var(--primary); margin-bottom: 12px; display: block; }
.trigger-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.trigger-card p { font-size: 13px; color: var(--gray); }

/* ===== PRICE TABLE ===== */
.price-table {
    background: var(--light);
    border-radius: 16px;
    overflow-x: auto;
    margin: 24px 0;
}
.price-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}
.price-table th, .price-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.price-table th {
    background: var(--secondary);
    color: var(--white);
    font-weight: 600;
}
.price-table tr:hover { background: #f1f5f9; }

/* ----- ТАБЛИЦА ЦЕН ----- */
/* .prices { padding: 60px 0; background: var(--light); }
.prices-table-wrapper { overflow-x: auto; margin-bottom: 24px; }
.prices-table {
    width: 100%; border-collapse: collapse; background: white;
    border-radius: 16px; overflow: hidden; min-width: 500px;
}
.prices-table th, .prices-table td {
    padding: 16px 20px; text-align: left; border-bottom: 1px solid #e2e8f0;
}
.prices-table th { background: var(--secondary); color: white; font-weight: 600; }
.prices-table tr:hover td { background: #f1f5f9; }
.prices-footer { text-align: center; }
.prices-footer p { color: var(--gray); font-size: 14px; margin-bottom: 20px; } */

/* ----- СЕТКИ (GALLERY, CARDS, ETC) ----- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.service-card {
    background: white; border-radius: 20px; padding: 32px; text-align: center;
    box-shadow: var(--shadow); transition: all 0.3s ease; border: 1px solid #eef2f6;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.service-price { font-size: 28px; font-weight: 700; color: var(--primary); margin: 20px 0; }
.service-link { color: var(--primary); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }

.advantages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.advantage-card {
    text-align: center; padding: 32px 20px; background: var(--light);
    border-radius: 16px; transition: all 0.3s ease;
}
.advantage-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.advantage-card i { font-size: 40px; color: var(--primary); margin-bottom: 16px; display: block; }
.advantage-card h3 { font-size: 18px; margin-bottom: 8px; }
.advantage-card p { font-size: 14px; color: var(--gray); }

.materials-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.material-card {
    background: var(--light); padding: 14px 16px; border-radius: 12px;
    text-align: center; font-weight: 500; font-size: 14px; word-break: break-word;
}

.applications-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.app-card {
    text-align: center; padding: 20px 16px; background: white; border-radius: 16px;
    box-shadow: var(--shadow); transition: all 0.2s; word-break: break-word;
}
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.app-card i { font-size: 28px; color: var(--primary); margin-bottom: 12px; display: block; }
.app-card h3 { font-size: 16px; margin-bottom: 8px; }
.app-card p { font-size: 12px; color: var(--gray); }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card {
    background: white; border-radius: 16px; padding: 28px; text-align: center; box-shadow: var(--shadow);
}
.card i { font-size: 40px; color: var(--primary); margin-bottom: 16px; display: block; }

/* ----- FAQ ----- */
.faq-list { max-width: 800px; margin: 0 auto 40px; }
.faq-item { border-bottom: 1px solid #e2e8f0; }
.faq-question {
    width: 100%; text-align: left; background: none; border: none; padding: 20px 0;
    font-size: 18px; font-weight: 600; cursor: pointer; display: flex;
    justify-content: space-between; align-items: center;
}
.faq-question:hover { color: var(--primary); }
.faq-question::after { content: '+'; font-size: 24px; color: var(--primary); }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { display: none; padding-bottom: 20px; color: var(--gray); }
.faq-item.open .faq-answer { display: block; }

/* ----- ХЛЕБНЫЕ КРОШКИ ----- */
.breadcrumbs { background: var(--light); padding: 12px 0; font-size: 14px; }
.breadcrumbs a { color: var(--gray); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }

/* ----- ФУТЕР ----- */
.footer {
    background: #1a1a2e; color: #9ca3af; padding: 48px 0 24px; margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 48px; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: white; margin-bottom: 16px; text-transform: uppercase; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #9ca3af; text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--accent); }
.footer-contacts p { margin-bottom: 12px; font-size: 13px; }
.footer-contacts a { color: #9ca3af; text-decoration: none; }
.footer-contacts a:hover { color: var(--accent); }
.footer-bottom {
    text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 12px; color: #6b6b8a;
}
.footer-bottom-links { margin-top: 8px; }
.footer-bottom-links a { color: #6b6b8a; text-decoration: none; margin: 0 8px; }
.footer-bottom-links a:hover { color: var(--accent); }

/* ----- СТИКИ-КНОПКА ----- */
.sticky-btn {
    position: fixed; bottom: 20px; right: 20px; z-index: 999;
    opacity: 0; transform: translateY(20px); transition: all 0.3s ease;
    pointer-events: none; background: var(--primary); color: white;
    padding: 12px 24px; border-radius: 40px; text-decoration: none;
    font-weight: 600; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.sticky-btn.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sticky-btn:hover { background: var(--primary-dark); }

/* ----- НАВИГАЦИЯ ПО УСЛУГАМ (ХАБ) ----- */
.services-navigation { padding: 60px 0; background: var(--white); }
.services-nav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.service-nav-card {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--light); padding: 20px 24px; border-radius: 16px;
    text-decoration: none; transition: all 0.3s; color: var(--secondary);
}
.service-nav-card i { font-size: 28px; color: var(--primary); }
.service-nav-card span { font-size: 16px; font-weight: 500; flex: 1; margin-left: 16px; }
.service-nav-card:hover { transform: translateX(5px); background: white; box-shadow: var(--shadow); }

/* ----- СТРАНИЦА ПОДГОТОВКИ ФАЙЛА ----- */
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.seo-text-block { padding: 60px 0; }
.seo-text-block h2 { font-size: 28px; margin-bottom: 24px; }
.seo-text-block h3 { font-size: 22px; margin: 32px 0 16px; }
.seo-text-block p { font-size: 16px; line-height: 1.6; color: var(--gray); margin-bottom: 16px; }
.seo-text-block ul { margin: 16px 0 16px 24px; color: var(--gray); }
.form-section { padding: 60px 0; background: var(--light); }

/* ----- СТРАНИЦА КОНТАКТОВ ----- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contacts-info p { margin-bottom: 20px; font-size: 16px; }
.contacts-info a { color: var(--primary); text-decoration: none; }
.contacts-map iframe { width: 100%; height: 400px; border-radius: 12px; }

/* ----- ПРОИЗВОДСТВО (GALLERY) ----- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.gallery-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; }

/* ----- СТРАНИЦА "КАК МЫ РАБОТАЕМ" ----- */
.work-step { padding: 40px 0; border-bottom: 1px solid #e5e5e5; }
.work-step h2 { font-size: 28px; margin-bottom: 16px; color: var(--primary); }

/* ----- HPL / БРЕНДЫ ----- */
.brands-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.brand-card {
    background: var(--light); padding: 16px; text-align: center;
    border-radius: 12px; font-weight: 500; font-size: 14px;
}

/* ----- ТЕХНИЧЕСКИЕ ХАРАКТЕРИСТИКИ (ФАНЕРА) ----- */
.specs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; }
.spec-card {
    text-align: center; padding: 28px 20px; background: var(--light); border-radius: 16px;
}
.spec-card i { font-size: 36px; color: var(--primary); margin-bottom: 16px; display: block; }
.spec-card h3 { font-size: 18px; margin-bottom: 8px; }
.spec-card p { font-size: 14px; color: var(--gray); }

/* ----- СТРАНИЦА ГКЛ ----- */
.how-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 32px; }
.step { text-align: center; padding: 24px 16px; }
.step-num {
    display: inline-block; width: 36px; height: 36px; background: var(--primary);
    color: white; border-radius: 50%; line-height: 36px; font-weight: 700; margin-bottom: 16px;
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.services-list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 32px; }
.services-list-grid ul { list-style: none; }
.services-list-grid li { padding: 8px 0; border-bottom: 1px solid #eef2f6; }
.compare-table { width: 100%; border-collapse: collapse; background: white; border-radius: 16px; overflow: hidden; }
.compare-table th, .compare-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #e2e8f0; }
.compare-table th { background: var(--secondary); color: white; }


/* ----- АДАПТАЦИЯ (МОБИЛЬНАЯ) ----- */
@media (max-width: 900px) {
    .main-nav {
        position: fixed; top: 70px; left: -100%; width: 80%; max-width: 320px;
        height: calc(100% - 70px); background: #1a1a2e; flex-direction: column;
        align-items: flex-start; transition: left 0.3s; padding: 20px; z-index: 999;
    }
    .main-nav.open { left: 0; }
    .main-nav a, .submenu-toggle { padding: 12px 0; width: 100%; text-align: left; }
    .submenu { position: static; background: rgba(255,255,255,0.05); box-shadow: none; padding-left: 20px; }
    .burger { display: flex; }
    .header-contacts { display: none; }
    .services-grid, .cards-grid, .gallery-grid { grid-template-columns: 1fr 1fr; }
    .advantages-grid, .triggers-grid, .materials-grid, .applications-grid,
    .brands-grid, .specs-grid, .services-nav-grid, .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .two-columns { grid-template-columns: 1fr; gap: 32px; }
    .how-steps { grid-template-columns: repeat(2, 1fr); }
    .services-list-grid { grid-template-columns: 1fr; gap: 0; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .container { padding: 0 16px; }
    h1 { font-size: 32px; }
    h2 { font-size: 24px; }
    .hero h1 { font-size: 28px; }
    .hero__price { font-size: 24px; }
    .hero__desc { font-size: 14px; }
    .hero__buttons { flex-direction: column; align-items: center; }
    .hero__buttons .btn { width: 220px; text-align: center; }
    .services-grid, .cards-grid, .gallery-grid,
    .advantages-grid, .triggers-grid, .materials-grid, .applications-grid,
    .brands-grid, .specs-grid, .services-nav-grid, .footer-grid,
    .stats-grid, .contacts-grid {
        grid-template-columns: 1fr;
    }
    .how-steps { grid-template-columns: 1fr; }
    .prices-table th, .prices-table td { padding: 10px 12px; font-size: 12px; }
    .gallery-grid img { height: 200px; }
}

/* =====================================================
     МОБИЛЬНАЯ АДАПТАЦИЯ — ДВА В РЯД НА МАЛЕНЬКИХ ЭКРАНАХ
     ===================================================== */

/* Планшеты и небольшие экраны (601–900px) — 2 колонки */
@media (min-width: 601px) and (max-width: 900px) {
    .services-nav-grid,
    .advantages-grid,
    .triggers-grid,
    .materials-grid,
    .applications-grid,
    .brands-grid,
    .specs-grid,
    .cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Телефоны (до 600px) — 2 колонки для большинства блоков */
@media (max-width: 600px) {
    .services-nav-grid,
    .advantages-grid,
    .triggers-grid,
    .materials-grid,
    .applications-grid,
    .brands-grid,
    .specs-grid,
    .cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Только главная страница — карточки услуг в 1 колонку (иначе слишком узко) */
    .services-grid {
        grid-template-columns: 1fr !important;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Контакты — одна колонка */
    .contacts-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Карточки кейсов — одна колонка (фото крупнее) */
    .cases-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Общие отступы на мобилке */
    .container {
        padding: 0 16px;
    }
    
    /* Карточкам добавим нормальные отступы */
    .material-card,
    .app-card,
    .advantage-card,
    .trigger-card,
    .brand-card,
    .spec-card,
    .service-nav-card {
        padding: 16px 12px;
    }
    
    .material-card i,
    .app-card i,
    .advantage-card i {
        font-size: 28px;
    }
    
    .app-card h3,
    .advantage-card h3 {
        font-size: 14px;
    }
    
    .app-card p,
    .advantage-card p {
        font-size: 11px;
    }
}

/* Очень маленькие телефоны (до 480px) — уже спорно, но оставим 2 колонки */
@media (max-width: 480px) {
    .services-nav-grid,
    .advantages-grid,
    .triggers-grid,
    .materials-grid,
    .applications-grid,
    .brands-grid,
    .specs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    .material-card,
    .app-card,
    .advantage-card,
    .trigger-card {
        padding: 12px 8px;
    }
    
    .material-card i,
    .app-card i,
    .advantage-card i {
        font-size: 24px;
    }
}

/* ===== СВЕТЛАЯ ТЕМА ===== */
body.light-theme {
    --primary: #e31e24;
    --primary-dark: #c4191f;
    --secondary: #1f2937;
    --accent: #ff9800;
    --dark: #f5f5f5;
    --gray: #6b7280;
    --light: #ffffff;
    --white: #f5f5f5;
    background: #f5f5f5;
}
body.light-theme .site-header { background: white; border-bottom: 1px solid #e5e7eb; }
body.light-theme .logo strong { color: #1a1a2e; }
body.light-theme .main-nav a, .light-theme .submenu-toggle { color: #374151; }
body.light-theme .submenu { background: white; }
body.light-theme .footer { background: #f9fafb; border-top: 1px solid #e5e7eb; }
body.light-theme .footer strong { color: #1f2937; }
body.light-theme .hero-overlay { background: rgba(255,255,255,0.7); }
body.light-theme .hero h1 { color: #1e293b; }
body.light-theme .hero__desc { color: #475569; }
body.light-theme .hero__price { color: #e31e24; }