/* БАЗА */
:root {
    --dark: #1e272e;
    --accent: #d35400;
    --wa: #25D366;
    --tg: #0088cc;
    --white: #ffffff;
    --light: #f8f9fa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Manrope', sans-serif; color: var(--dark); background: #fff; scroll-behavior: smooth; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.accent { color: var(--accent); }
.section { padding: 100px 0; }

/* ШАПКА */
.header { 
    background: rgba(255,255,255,0.8); 
    backdrop-filter: blur(12px);
    padding: 15px 0; border-bottom: 1px solid rgba(0,0,0,0.05); 
    position: sticky; top: 0; z-index: 1000; 
}
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 800; letter-spacing: -1px; }
.nav a { text-decoration: none; color: var(--dark); margin: 0 15px; font-weight: 700; font-size: 13px; text-transform: uppercase; }
.nav a:hover { color: var(--accent); }

.header-right { display: flex; align-items: center; gap: 20px; }
.social-icons { display: flex; gap: 8px; }
.social-link { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: 0.3s; text-decoration: none;}
.social-link svg { width: 18px; height: 18px; }
.wa { background: var(--wa); }
.tg { background: var(--tg); }
.max { background: url('https://maxicons.ru/icons/MAX.svg') center/contain no-repeat; }
.header-contacts { text-align: right; line-height: 1.2; }
.phone { font-weight: 800; text-decoration: none; color: var(--dark); font-size: 17px; display: block; }
.email { font-size: 12px; color: #777; }

/* HERO */
.hero { 
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.4)), 
                url('asset-static/img/background.jpg'); 
    background-size: cover; background-position: center; background-attachment: fixed;
    padding: 160px 0; color: #fff;
}
.badge-new { background: var(--accent); display: inline-block; padding: 6px 16px; border-radius: 50px; font-size: 12px; font-weight: 700; margin-bottom: 25px; text-transform: uppercase; }
.hero h1 { font-size: 64px; font-weight: 800; line-height: 1.1; margin-bottom: 25px; }
.hero p { font-size: 20px; max-width: 650px; margin-bottom: 45px; opacity: 0.95; }
.hero-btns { display: flex; align-items: center; gap: 20px; }
.btn-primary { background: var(--accent); color: #fff; padding: 20px 45px; border-radius: 8px; text-decoration: none; font-weight: 800; transition: 0.3s; border: none; cursor: pointer; display: inline-block; }
.btn-secondary { background: rgba(255,255,255,0.1); border: 1px solid #fff; color: #fff; padding: 20px 45px; border-radius: 8px; text-decoration: none; font-weight: 800; backdrop-filter: blur(5px); transition: 0.3s; }
.btn-primary:hover { background: #e67e22; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(211, 84, 0, 0.4); }
.btn-secondary:hover { background: #fff; color: var(--dark); }

/* ПРЕИМУЩЕСТВА */
.features { margin-top: -65px; position: relative; z-index: 10; }
.features-white-box { background: #fff; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); padding: 45px; border-radius: 15px; box-shadow: 0 25px 60px rgba(0,0,0,0.12); gap: 30px; }
.feature-item { display: flex; align-items: center; gap: 18px; }
.f-icon { width: 55px; height: 55px; color: var(--accent); background: rgba(211, 84, 0, 0.1); padding: 12px; border-radius: 50%; flex-shrink: 0; }
.f-text h4 { font-weight: 800; font-size: 19px; margin-bottom: 3px; }
.f-text p { font-size: 14px; color: #666; }

/* КАТАЛОГ */
.title { font-size: 40px; font-weight: 800; margin-bottom: 15px; text-align: center; }
.subtitle { text-align: center; margin-bottom: 50px; color: #888; font-size: 16px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 35px; }
.card { border: 1px solid #eee; border-radius: 20px; overflow: hidden; position: relative; transition: 0.4s; background: #fff; }
.card:hover { transform: translateY(-12px); box-shadow: 0 25px 50px rgba(0,0,0,0.08); }
.card-img { position: relative; height: 260px; background-size: cover; background-position: center; transition: 0.6s; background-repeat: no-repeat; }
.sale-tag { position: absolute; top: 20px; left: 20px; background: #e74c3c; color: #fff; padding: 6px 14px; border-radius: 6px; font-weight: 800; font-size: 13px; z-index: 5; }
.card:hover .card-img { transform: scale(1.08); }
.card-body { padding: 35px; }
.card-body h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.card-p { color: #777; font-size: 15px; margin-bottom: 20px; }
.price-box { margin-bottom: 30px; }
.old-p { text-decoration: line-through; color: #bbb; margin-right: 12px; font-size: 18px; }
.new-p { font-size: 32px; font-weight: 800; color: var(--accent); }
.btn-buy { width: 100%; padding: 16px; border-radius: 12px; border: 2px solid var(--dark); background: none; font-weight: 800; cursor: pointer; transition: 0.3s; font-size: 16px; }
.btn-buy:hover { background: var(--dark); color: #fff; }

/* ЭКОНОМИЯ */
.bg-dark { background: var(--dark); color: #fff; }
.white-t { color: #fff; }

.economy-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 800px; margin: 0 auto 55px; }
.stat-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 24px 16px; text-align: center; }
.stat-number { font-size: 28px; font-weight: 800; color: var(--accent); margin-bottom: 6px; }
.stat-label { font-size: 13px; opacity: 0.75; line-height: 1.4; }

.chart-box { max-width: 800px; margin: 0 auto; }
.chart-row { margin-bottom: 28px; }
.chart-label { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 600; opacity: 0.8; font-size: 15px; }
.chart-icon { font-size: 18px; }
.best-badge { background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 50px; text-transform: uppercase; margin-left: 4px; }

.bar-track { position: relative; height: 50px; border-radius: 10px; background: rgba(255,255,255,0.08); overflow: hidden; }
.bar { height: 100%; border-radius: 10px; transition: width 0.6s ease; }
.bar-1 { background: #4b6584; width: 100%; }
.bar-2 { background: #778ca3; width: 82%; }
.bar-3 { background: var(--accent); width: 28%; box-shadow: 0 0 20px rgba(211, 84, 0, 0.4); }
.bar-value { position: absolute; top: 0; right: 18px; height: 50px; display: flex; align-items: center; font-weight: 800; color: #fff; font-size: 15px; z-index: 2; }

.chart-row.best .chart-label { opacity: 1; color: var(--accent); font-size: 16px; }

/* ГАЛЕРЕЯ */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.gallery-item { height: 320px; border-radius: 20px; background-size: cover; background-position: center; position: relative; overflow: hidden; cursor: pointer; transition: 0.4s; border: 4px solid transparent; }
.gallery-item:hover { border-color: var(--accent); transform: scale(1.02); }
.g-overlay { position: absolute; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,0.85)); width: 100%; padding: 50px 25px 25px; color: #fff; font-weight: 700; transition: 0.3s; }

/* ФУТЕР */
.footer { background: #f4f4f4; padding: 70px 0 30px; border-top: 1px solid #eee; }
.footer-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 50px; }
.f-info p { margin-top: 10px; color: #666; }
.f-contacts { text-align: right; }
.f-contacts p { font-size: 18px; color: var(--dark); }
.copy { text-align: center; font-size: 13px; opacity: 0.6; border-top: 1px solid #ddd; padding-top: 25px; }

/* ПЛАВАЮЩАЯ КНОПКА */
.fixed-action-btn { position: fixed; bottom: 35px; right: 35px; z-index: 999; }
.fab-main { background: var(--wa); color: #fff; text-decoration: none; display: flex; align-items: center; padding: 14px 24px; border-radius: 50px; box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4); transition: 0.3s; }
.fab-label { margin-right: 12px; font-weight: 800; font-size: 15px; }
.fab-icon { font-size: 22px; }
.fab-main:hover { transform: scale(1.08) translateY(-5px); background: #20ba5a; }

/* МОДАЛЬНОЕ ОКНО */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.3s; z-index: 2000; backdrop-filter: blur(6px); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: #fff; width: 90%; max-width: 650px; padding: 45px; border-radius: 25px; position: relative; max-height: 90vh; overflow-y: auto; transform: translateY(30px); transition: 0.4s; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.close-modal { position: absolute; top: 20px; right: 25px; font-size: 35px; cursor: pointer; color: #bbb; line-height: 1; transition: 0.2s; }
.close-modal:hover { color: var(--accent); }

/* ПОЛОСА ДОВЕРИЯ (УТП) */
.usp-bar { background: var(--light); border-bottom: 1px solid #eee; }
.usp-flex { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; padding: 14px 20px; }
.usp-item { font-size: 13px; font-weight: 700; color: var(--dark); white-space: nowrap; }

/* БУРГЕР-МЕНЮ (мобильное) */
.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 34px; height: 34px; background: none; border: none; cursor: pointer; padding: 0; }
.burger span { display: block; width: 100%; height: 3px; background: var(--dark); border-radius: 2px; transition: 0.3s; }
.burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-phone-mobile { display: none; }
.nav-social { display: none; }

/* ГЕРО: соцдоказательство */
.hero-social-proof { color: #fff; margin-top: 22px; font-weight: 700; font-size: 14px; opacity: 0.95; }

/* КАТАЛОГ: срочность/дефицит */
.urgency-banner { background: #fff3e9; border: 2px dashed var(--accent); border-radius: 14px; padding: 20px 28px; text-align: center; margin-bottom: 45px; }
.urgency-text { font-size: 15px; font-weight: 600; color: var(--dark); }
.stock-tag { position: absolute; top: 20px; right: 20px; background: var(--dark); color: #fff; padding: 6px 14px; border-radius: 6px; font-weight: 700; font-size: 12px; z-index: 5; }
.social-proof { font-size: 13px; color: #2f9e44; font-weight: 700; margin-bottom: 15px; margin-top: -10px; }

/* ЭТАПЫ УСТАНОВКИ */
.steps-section { background: var(--light); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 30px; counter-reset: step; }
.step-item { background: #fff; border: 1px solid #eee; border-radius: 18px; padding: 32px 26px; position: relative; transition: 0.3s; }
.step-item:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.step-num { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; margin-bottom: 18px; }
.step-item h4 { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.step-item p { font-size: 14px; color: #666; line-height: 1.5; }

/* СОГЛАСИЕ НА ОБРАБОТКУ ПЕРСОНАЛЬНЫХ ДАННЫХ */
.consent-label { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; font-size: 13px; color: #666; line-height: 1.4; cursor: pointer; }
.consent-label a { color: var(--accent); text-decoration: underline; }

/* ФУТЕР: ссылка на политику */
.copy-link { color: inherit; text-decoration: underline; }
.copy-link:hover { color: var(--accent); }

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .hero h1 { font-size: 38px; }
    .hero p { font-size: 18px; }
    .hero-btns { flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
    .features-white-box { margin-top: 30px; padding: 30px; }
    .footer-flex { flex-direction: column; gap: 35px; text-align: center; }
    .f-contacts { text-align: center; }
    .fab-label { display: none; }
    .fab-main { padding: 15px; border-radius: 50%; }

    .hero { background-attachment: scroll; padding: 110px 0 90px; }
    .burger { display: flex; }
    .logo { font-size: 20px; }
    .header-flex { gap: 10px; }
    .header-right .header-contacts .email { display: none; }
    .header-right { gap: 12px; }
    .header-right .social-icons { display: none; }
    .social-link { width: 30px; height: 30px; }
    .phone { font-size: 14px; }

    .nav {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; width: 100%;
        background: #fff; padding: 10px 20px 20px;
        box-shadow: 0 15px 25px rgba(0,0,0,0.08);
        max-height: 0; overflow: hidden; opacity: 0;
        transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
        border-bottom: 1px solid #eee;
    }
    .nav.mobile-open { max-height: 400px; opacity: 1; padding: 15px 20px 25px; }
    .nav a { margin: 0; padding: 12px 0; border-bottom: 1px solid #f2f2f2; font-size: 14px; }
    .nav-phone-mobile { display: block; color: var(--accent) !important; font-weight: 800 !important; }
    .nav-social { display: flex; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #f2f2f2; }
    .nav-social .social-link { width: 38px; height: 38px; }

    .usp-bar { display: none; }

    .urgency-banner { padding: 18px 20px; }
    .stock-tag { top: auto; bottom: 20px; right: 20px; }
    .steps-grid { grid-template-columns: 1fr; }

    .section { padding: 60px 0; }
    .title { font-size: 28px; }
    .subtitle { margin-bottom: 30px; font-size: 14px; }
    .features { margin-top: -40px; }
    .card-body { padding: 26px; }
    .card-img { height: 220px; }

    .modal-content { padding: 30px 22px; width: 92%; border-radius: 18px; }
    .close-modal { top: 12px; right: 16px; font-size: 28px; }
    .details-content { padding: 22px; width: 94%; margin: 6% auto; }
    .details-close { top: 8px; right: 14px; font-size: 28px; }

    .fixed-action-btn { bottom: 20px; right: 20px; }
    .gallery-item { height: 240px; }
}

@media (max-width: 420px) {
    .hero h1 { font-size: 30px; }
    .hero p { font-size: 16px; }
    .badge-new { font-size: 11px; padding: 5px 12px; }
    .header-right .header-contacts { display: none; }
    .social-icons { gap: 8px; }
    .btn-primary, .btn-secondary { padding: 16px 20px; }
    .usp-item { font-size: 11px; }
}

/* Стили для формы обратной связи */
.modal-window {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #ccc;
}

.modal-header h3 {
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 800;
}

.modal-header p {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

#feedbackForm input[type="text"],
#feedbackForm input[type="tel"],
#feedbackForm input[type="email"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
}

#feedbackForm input[type="checkbox"] {
    width: 18px;
    height: 18px;
    padding: 0;
    margin: 2px 0 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex-shrink: 0;
    accent-color: var(--accent);
}

.btn-send {
    width: 100%;
    padding: 16px;
    background: var(--accent); /* Используем ваш цвет из style.css [2] */
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.btn-send:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(211, 84, 0, 0.4);
}


.btn-details {
    margin-top:5%;
    width: 100%;
    flex: 1;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid #eee;
    background: #fff;
    color: var(--dark);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
}

.btn-details:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Оболочка (фон) */
.modal-details-wrapper {
    display: none; 
    position: fixed;
    z-index: 2000; /* Делаем выше, чем другие элементы */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    overflow-y: auto;
}

/* Контейнер с контентом */
.details-content {
    background-color: #fff;
    margin: 3% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    position: relative;
    min-height: 200px;
}

/* Кнопка закрытия */
.details-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 35px;
    cursor: pointer;
    color: #333;
}

/* Стили для загруженного контента (внутри файла) */
#details-container img {
    max-width: 100%;
    height: auto;
}