/* Переменные бренда */
:root {
    --brand-blue: #cf0028;
    --brand-dark: #333333;
    --brand-black: #1a1a1a;
    --bg-light: #fdfdfd;
    --text-main: #333333;
    --text-muted: #777777;
    --border-color: #eeeeee;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; transition: all 0.2s ease; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
}

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

/* --- ВЕРХНЯЯ ШАПКА --- */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 30px;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    text-decoration: none;
    color: var(--brand-black);
    letter-spacing: -1px;
}

/* Поиск по центру */
.search-container {
    flex-grow: 1;
    max-width: 500px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 14px 25px;
    border-radius: 50px;
    border: 2px solid #e0e0e0;
    font-size: 14px;
    outline: none;
}

.search-input:focus { border-color: var(--brand-blue); }

.search-button {
    position: absolute;
    right: 6px;
    top: 6px;
    background: var(--brand-blue);
    color: white;
    border: none;
    padding: 9px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: bold;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.phone-link {
    color: var(--brand-black);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
}

/* --- ВТОРОЙ НАВБАР (#333) --- */
.nav-bar {
    background: var(--brand-dark);
    color: white;
}

.nav-wrapper {
    display: flex;
    align-items: center;
}

.catalog-btn {
    background: var(--brand-blue);
    padding: 18px 30px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
}

.menu-links {
    display: flex;
    gap: 20px;
    margin-left: 30px;
}

.menu-links a {
    color: #dfdfdf;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-links a:hover { color: var(--brand-blue); }

/* --- СЕТКА ТОВАРОВ --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 в ряд */
    gap: 20px;
    margin: 40px 0;
}

.product-card {
    background: white;
    border: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
    z-index: 1;
}

.product-image {
    width: 100%;
    height: 160px;
    object-fit: contain;
    margin-bottom: 15px;
}

.product-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 15px 0;
    min-height: 45px;
}

.price-table {
    background: #f8f9fa;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 12px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-buy {
    background: var(--brand-blue);
    color: white;
    border: none;
    padding: 12px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-fast {
    background: transparent;
    border: 1px solid var(--brand-dark);
    color: var(--brand-dark);
    padding: 10px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

/* --- СЕКЦИЯ ПРЕИМУЩЕСТВ --- */
.advantages-section {
    background: #f4f4f4;
    padding: 60px 0;
}

.advantages-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* --- ФУТЕР --- */
.footer {
    background: var(--brand-dark);
    color: #999;
    padding: 60px 0 30px;
}

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

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 14px;
    text-transform: uppercase;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #999; text-decoration: none; font-size: 13px; }
.footer-col a:hover { color: white; }

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .header-top { flex-wrap: wrap; }
    .search-container { order: 3; max-width: 100%; }
}

@media (max-width: 600px) {
    .product-grid { grid-template-columns: 1fr; }
    .advantages-content { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .menu-links { display: none; }
}
:root {
    --gp-blue: #cf0028;
    --gp-dark: #333333;
    --gp-black: #1a1a1a;
    --border: #e8e8e8;
}

body { font-family: 'Arial', sans-serif; margin: 0; background: #fff; }

/* --- ШАПКА --- */
.header-main { padding: 15px 0; border-bottom: 1px solid var(--border); }
.header-container { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 15px; }

.logo { font-size: 26px; font-weight: 900; text-decoration: none; color: #000; }
.search-box { flex-grow: 1; max-width: 500px; margin: 0 40px; position: relative; }
.search-box input { width: 100%; padding: 12px 25px; border-radius: 30px; border: 2px solid var(--gp-blue); outline: none; }
.search-box button { position: absolute; right: 5px; top: 5px; background: var(--gp-blue); border: none; color: #fff; padding: 8px 20px; border-radius: 20px; font-weight: bold; cursor: pointer; }

/* --- ТЕМНЫЙ НАВБАР И КАТАЛОГ --- */
.nav-dark { background: var(--gp-dark); height: 50px; position: relative; }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; height: 100%; }

/* Логика каталога */
.catalog-dropdown { position: relative; height: 100%; }
.catalog-btn { background: var(--gp-blue); color: #fff; height: 100%; padding: 0 30px; display: flex; align-items: center; font-weight: bold; text-decoration: none; cursor: pointer; }
.catalog-menu { 
    position: absolute; top: 50px; left: 0; width: 250px; background: #fff; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: none; z-index: 1000; list-style: none; padding: 0; margin: 0; 
}
.catalog-menu li { border-bottom: 1px solid #f4f4f4; }
.catalog-menu li a { display: block; padding: 12px 20px; color: #333; text-decoration: none; font-size: 14px; }
.catalog-menu li a:hover { background: #f9f9f9; color: var(--gp-blue); }
.catalog-dropdown:hover .catalog-menu { display: block; } /* Раскрытие при наведении */

.top-menu { display: flex; gap: 25px; margin-left: 30px; }
.top-menu a { color: #fff; text-decoration: none; font-size: 13px; font-weight: bold; text-transform: uppercase; }

/* --- СЕТКА ТОВАРОВ (4 в ряд) --- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 40px 0; }
.card { border: 1px solid var(--border); padding: 15px; display: flex; flex-direction: column; transition: 0.3s; }
.card:hover { border-color: var(--gp-blue); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

.card img { width: 100%; height: 160px; object-fit: contain; margin-bottom: 15px; }
.card-title { font-size: 15px; font-weight: bold; margin-bottom: 15px; height: 40px; overflow: hidden; }
.card-title a { color: #333; text-decoration: none; }

.price-block { background: #f9f9f9; padding: 10px; margin-bottom: 15px; border-radius: 4px; }
.price-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.price-row.blue { color: var(--gp-blue); font-weight: bold; }

/* --- КНОПКИ --- */
.btn-blue { background: var(--gp-blue); color: #fff; text-align: center; padding: 12px; text-decoration: none; font-weight: bold; border: none; cursor: pointer; display: block; }
.btn-outline { background: #fff; color: #333; border: 1px solid #333; text-align: center; padding: 10px; text-decoration: none; font-weight: bold; cursor: pointer; display: block; margin-top: 8px; }
.btn-blue:hover { opacity: 0.9; }
.btn-outline:hover { background: #333; color: #fff; }

/* --- МОДАЛЬНОЕ ОКНО --- */
.modal-custom { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; align-items: center; justify-content: center; }
.modal-content-custom { background: #fff; width: 100%; max-width: 400px; padding: 30px; position: relative; border-top: 5px solid var(--gp-blue); }
.modal-close { position: absolute; top: 10px; right: 15px; font-size: 24px; cursor: pointer; color: #999; }
.form-input { width: 100%; padding: 12px; border: 1px solid #ddd; margin-bottom: 15px; outline: none; }

/* Адаптив */
@media (max-width: 992px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .product-grid { grid-template-columns: 1fr; } .header-container { flex-direction: column; gap: 15px; } .top-menu { display: none; } }

:root {
    --gp-blue: #cf0028;
    --gp-dark: #333333;
    --border: #e8e8e8;
}

* { box-sizing: border-box; }
body { font-family: 'Arial', sans-serif; margin: 0; background: #fff; overflow-x: hidden; }

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

/* --- ШАПКА (Исправлено позиционирование) --- */
.header-main { padding: 15px 0; border-bottom: 1px solid var(--border); background: #fff; }
.header-flex { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { font-size: 24px; font-weight: 900; text-decoration: none; color: #000; flex-shrink: 0; }
.search-box { flex-grow: 1; max-width: 500px; position: relative; }
.search-box input { width: 100%; padding: 12px 20px; border-radius: 30px; border: 2px solid var(--gp-blue); outline: none; }
.search-box button { position: absolute; right: 5px; top: 5px; background: var(--gp-blue); border: none; color: #fff; padding: 7px 15px; border-radius: 20px; cursor: pointer; }

.header-contacts { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.phone-num { font-weight: 800; font-size: 16px; color: #333; text-decoration: none; white-space: nowrap; }

/* --- НАВБАР И КАТАЛОГ (Исправлена мобилка) --- */
.nav-dark { background: var(--gp-dark); position: relative; z-index: 1000; }
.nav-flex { display: flex; align-items: center; }

.catalog-wrapper { position: relative; }
.catalog-btn { background: var(--gp-blue); color: #fff; padding: 15px 25px; display: block; font-weight: bold; text-decoration: none; cursor: pointer; }

.catalog-menu { 
    position: absolute; top: 100%; left: 0; width: 280px; background: #fff; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: none; list-style: none; padding: 0; margin: 0; 
}
.catalog-menu.active { display: block; } /* Для мобилок */
.catalog-menu li { border-bottom: 1px solid #eee; }
.catalog-menu li a { display: block; padding: 12px 20px; color: #333; text-decoration: none; font-size: 14px; }

.top-menu { display: flex; gap: 20px; margin-left: 25px; }
.top-menu a { color: #fff; text-decoration: none; font-size: 12px; font-weight: bold; text-transform: uppercase; }

/* --- СЕТКА ТОВАРОВ (Честная адаптация) --- */
.product-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    padding: 30px 0; 
}

.card { border: 1px solid var(--border); padding: 15px; display: flex; flex-direction: column; background: #fff; }
.card img { width: 100%; height: 150px; object-fit: contain; margin-bottom: 10px; }
.card-title { font-size: 14px; font-weight: bold; margin-bottom: 10px; height: 34px; overflow: hidden; }
.card-title a { color: #333; text-decoration: none; }

.price-box { background: #f8f9fa; padding: 8px; margin-bottom: 15px; border-radius: 4px; font-size: 13px; }
.price-line { display: flex; justify-content: space-between; margin-bottom: 3px; }

.btn-blue { background: var(--gp-blue); color: #fff; text-align: center; padding: 10px; text-decoration: none; font-weight: bold; display: block; border: none; width: 100%; cursor: pointer; }
.btn-outline { background: #fff; color: #333; border: 1px solid #333; text-align: center; padding: 9px; text-decoration: none; font-weight: bold; display: block; margin-top: 5px; width: 100%; cursor: pointer; }

/* --- МОДАЛЬНОЕ ОКНО --- */
.modal-overlay { 
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.7); z-index: 3000; align-items: center; justify-content: center; padding: 15px;
}
.modal-window { background: #fff; width: 100%; max-width: 400px; padding: 25px; position: relative; border-top: 5px solid var(--gp-blue); }
.close-modal { position: absolute; top: 10px; right: 15px; font-size: 24px; cursor: pointer; color: #aaa; }
.modal-input { width: 100%; padding: 12px; border: 1px solid #ddd; margin: 10px 0; outline: none; }

/* --- МЕДИА-ЗАПРОСЫ (Адаптация) --- */
@media (max-width: 1100px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .header-flex { flex-wrap: wrap; }
    .search-box { order: 3; max-width: 100%; margin: 0; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .top-menu { display: none; } /* Скрываем меню на мобилках */
}

@media (max-width: 500px) {
    .header-contacts { gap: 10px; }
    .phone-num { font-size: 14px; }
    .product-grid { grid-template-columns: 1fr; }
    .logo { font-size: 20px; }
}
:root {
    --gp-blue: #cf0028;
    --gp-dark: #333333;
    --border: #eeeeee;
}

* { box-sizing: border-box; transition: all 0.2s ease; }
body { font-family: 'Segoe UI', Arial, sans-serif; margin: 0; background: #fff; color: #333; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* --- ВЕРХНЯЯ ШАПКА --- */
.header-main { padding: 15px 0; border-bottom: 1px solid var(--border); }
.h-flex { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.logo { font-size: 26px; font-weight: 900; text-decoration: none; color: #000; flex-shrink: 0; }
.logo span { color: var(--gp-blue); }

.search-box { flex-grow: 1; max-width: 500px; position: relative; }
.search-box input { width: 100%; padding: 12px 20px; border-radius: 30px; border: 2px solid var(--gp-blue); outline: none; }
.search-box button { position: absolute; right: 5px; top: 5px; background: var(--gp-blue); border: none; color: #fff; padding: 7px 18px; border-radius: 20px; cursor: pointer; font-weight: bold; }

.h-contacts { display: flex; align-items: center; gap: 20px; }
.h-phone { font-weight: 800; font-size: 16px; color: #333; text-decoration: none; white-space: nowrap; }

/* --- КОРЗИНА (Кнопка) --- */
.cart-btn { background: var(--gp-dark); color: #fff; padding: 10px 15px; text-decoration: none; border-radius: 5px; font-weight: bold; font-size: 14px; position: relative; }
.cart-badge { position: absolute; top: -10px; right: -10px; background: red; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 50%; }

/* --- ТЕМНЫЙ НАВБАР (#333) --- */
.nav-dark { background: var(--gp-dark); position: relative; z-index: 1000; }
.nav-flex { display: flex; align-items: center; }

.catalog-dropdown { position: relative; }
.catalog-trigger { background: var(--gp-blue); color: #fff; padding: 15px 30px; font-weight: bold; cursor: pointer; display: flex; align-items: center; gap: 10px; }

/* Меню категорий с фото */
.catalog-menu { 
    position: absolute; top: 100%; left: 0; width: 300px; background: #fff; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: none; list-style: none; padding: 0; margin: 0; 
}
.catalog-menu.active { display: block; }
.catalog-menu li a { display: flex; align-items: center; padding: 10px 15px; color: #333; text-decoration: none; border-bottom: 1px solid #f5f5f5; }
.catalog-menu li a:hover { background: #f9f9f9; color: var(--gp-blue); }
.cat-img { width: 40px; height: 40px; object-fit: contain; margin-right: 15px; background: #fff; border: 1px solid #eee; padding: 2px; }

.menu-links { display: flex; gap: 20px; margin-left: 20px; }
.menu-links a { color: #fff; text-decoration: none; font-size: 12px; font-weight: bold; text-transform: uppercase; }

/* --- СЕТКА ТОВАРОВ (4 в ряд) --- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 40px 0; }
.product-card { border: 1px solid var(--border); padding: 15px; display: flex; flex-direction: column; background: #fff; }
.product-card:hover { border-color: var(--gp-blue); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.product-card img { width: 100%; height: 160px; object-fit: contain; margin-bottom: 15px; }
.product-card h3 { font-size: 15px; font-weight: bold; height: 40px; overflow: hidden; margin: 0 0 15px; }
.product-card h3 a { color: #333; text-decoration: none; }

.price-box { background: #f9f9f9; padding: 10px; margin-bottom: 15px; font-size: 13px; }
.price-line { display: flex; justify-content: space-between; margin-bottom: 4px; }

/* --- УСЛУГИ И ФУТЕР --- */
.services-sec { background: #f4f4f4; padding: 60px 0; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.footer { background: var(--gp-dark); color: #ccc; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 40px; }
.footer h4 { color: #fff; margin-bottom: 20px; font-size: 14px; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; font-size: 14px; }
.footer a { color: #bbb; text-decoration: none; }
.footer a:hover { color: #fff; }

/* --- МОДАЛКА --- */
.modal-overlay { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.7); z-index:2000; align-items:center; justify-content:center; padding: 15px; }
.modal-window { background:#fff; width:100%; max-width:400px; padding:30px; border-top:5px solid var(--gp-blue); position:relative; }
.modal-input { width:100%; padding:12px; border:1px solid #ddd; margin-bottom:15px; outline:none; }

/* --- АДАПТАЦИЯ --- */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .h-flex { flex-wrap: wrap; }
    .search-box { order: 3; max-width: 100%; margin: 0; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .menu-links { display: none; }
    .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .h-contacts { width: 100%; justify-content: space-between; }
    .logo { font-size: 22px; }
}
/* Базовое состояние модалки */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0); /* Прозрачный в начале */
    z-index: 9999;
    display: none; /* Скрыто физически */
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

/* Когда добавили класс active */
.modal-overlay.active {
    background: rgba(0,0,0,0.7);
}

.modal-window {
    background: #fff;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    position: relative;
    border-top: 5px solid #cf0028;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    
    /* Эффект вылета */
    opacity: 0;
    transform: translateY(-50px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-window {
    opacity: 1;
    transform: translateY(0);
}

.modal-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}
.modal-input:focus { border-color: #cf0028; }

:root {
    --brand-blue: #cf0028;
    --brand-dark: #333333;
    --brand-black: #1a1a1a;
    --bg-light: #fdfdfd;
    --text-main: #333333;
    --border-color: #eeeeee;
}

* { box-sizing: border-box; transition: all 0.2s ease; }
body { margin: 0; font-family: 'Inter', sans-serif; background-color: var(--bg-light); color: var(--text-main); overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* --- ШАПКА --- */
.header-main { padding: 15px 0; border-bottom: 1px solid var(--border-color); background: #fff; }
.h-flex { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { font-size: 26px; font-weight: 900; text-decoration: none; color: var(--brand-black); }
.logo span { color: var(--brand-blue); }

.search-box { flex-grow: 1; max-width: 500px; position: relative; }
.search-box input { width: 100%; padding: 12px 25px; border-radius: 30px; border: 2px solid var(--brand-blue); outline: none; }
.search-box button { position: absolute; right: 5px; top: 5px; background: var(--brand-blue); border: none; color: #fff; padding: 7px 18px; border-radius: 20px; cursor: pointer; font-weight: bold; }

.h-contacts { display: flex; align-items: center; gap: 20px; }
.h-phone { font-weight: 800; font-size: 16px; color: var(--brand-black); text-decoration: none; }

/* --- НАВБАР (Исправленный каталог) --- */
.nav-dark { background: var(--brand-dark); position: relative; z-index: 1000; }
.nav-flex { display: flex; align-items: stretch; height: 55px; }

.catalog-dropdown { position: relative; display: flex; }
.catalog-trigger { 
    background: var(--brand-blue); 
    color: #fff; 
    padding: 0 30px; 
    font-weight: bold; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    border: none;
    height: 100%; /* Чтобы не вылезала за пределы */
}

/* Меню категорий */
.catalog-menu { 
    position: absolute; top: 100%; left: 0; width: 300px; background: #fff; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: none; list-style: none; padding: 0; margin: 0; 
}
.catalog-menu.active { display: block; animation: fadeInDown 0.3s ease; }

.catalog-menu li a { display: flex; align-items: center; padding: 12px 15px; color: #333; text-decoration: none; border-bottom: 1px solid #f5f5f5; }
.catalog-menu li a:hover { background: #f9f9f9; color: var(--brand-blue); }
.cat-img { width: 35px; height: 35px; object-fit: contain; margin-right: 12px; }

.menu-links { display: flex; align-items: center; gap: 25px; margin-left: 30px; }
.menu-links a { color: #dfdfdf; text-decoration: none; font-size: 13px; font-weight: 600; text-transform: uppercase; }
.menu-links a:hover { color: var(--brand-blue); }

/* --- СЕТКА ТОВАРОВ --- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 40px 0; }
.product-card { border: 1px solid var(--border-color); padding: 20px; display: flex; flex-direction: column; background: #fff; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.product-card img { width: 100%; height: 160px; object-fit: contain; margin-bottom: 15px; }
.product-card h3 { font-size: 15px; font-weight: 700; height: 40px; margin: 0 0 15px; }

.price-box { background: #f9f9f9; padding: 12px; margin-bottom: 15px; border-radius: 4px; }
.price-line { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }

.btn-blue { background: var(--brand-blue); color: #fff; text-align: center; padding: 12px; text-decoration: none; font-weight: bold; border: none; cursor: pointer; display: block; width: 100%; }
.btn-outline { background: #fff; color: #333; border: 1px solid #333; text-align: center; padding: 10px; text-decoration: none; font-weight: bold; cursor: pointer; display: block; width: 100%; margin-top: 8px; }

/* --- МОДАЛКА (Плавно) --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0); z-index: 9999; display: none; align-items: center; justify-content: center; transition: 0.3s; }
.modal-overlay.active { background: rgba(0,0,0,0.7); }
.modal-window { background: #fff; width: 90%; max-width: 400px; padding: 30px; border-top: 5px solid var(--brand-blue); transform: translateY(-30px); opacity: 0; transition: 0.3s; }
.modal-overlay.active .modal-window { transform: translateY(0); opacity: 1; }

/* --- АДАПТАЦИЯ --- */
@media (max-width: 900px) {
    .h-flex { flex-wrap: wrap; }
    .search-box { order: 3; max-width: 100%; margin: 0; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .menu-links { display: none; } /* Скрываем на мобилках */
    
    .nav-flex { height: auto; }
    .catalog-dropdown { width: 100%; }
    .catalog-trigger { width: 100%; padding: 15px; justify-content: center; }
    .catalog-menu { width: 100%; position: static; box-shadow: none; }
}

@media (max-width: 500px) {
    .product-grid { grid-template-columns: 1fr; }
    .h-contacts { width: 100%; justify-content: space-between; }
    .logo { font-size: 22px; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- ГЛОБАЛЬНЫЕ КОРРЕКТИРОВКИ ДЛЯ МОБИЛОК --- */
@media (max-width: 768px) {
    /* 1. Компактная шапка */
    .header-main { padding: 10px 0; }
    .h-flex { 
        display: grid; 
        grid-template-columns: 1fr auto; /* Лого слева, корзина справа */
        gap: 10px; 
    }
    .logo { font-size: 20px; }
    .h-contacts { order: 2; gap: 10px; }
    .h-phone { display: none; } /* Скрываем телефон в шапке для места (он есть в футере) */
    
    .search-box { 
        grid-column: span 2; /* Поиск на всю ширину под логотипом */
        order: 3; 
        margin-top: 5px;
    }
    .search-box input { padding: 10px 15px; font-size: 14px; }

    /* 2. Исправленный каталог (во всю ширину) */
    .nav-dark { background: #333; height: auto; }
    .nav-flex { flex-direction: column; height: auto; }
    .catalog-dropdown { width: 100%; }
    .catalog-trigger { 
        width: 100%; 
        justify-content: center; 
        padding: 15px; 
        border-radius: 0; 
        font-size: 14px;
    }
    .catalog-menu { 
        position: static; /* Меню раздвигает контент вниз, а не висит сверху */
        width: 100%; 
        box-shadow: none; 
        border-top: 1px solid #444;
    }
    .catalog-menu li a { background: #fff; padding: 15px 20px; }

    /* 3. Красивая сетка товаров */
    .product-grid { 
        grid-template-columns: 1fr; /* По одному в ряд для читаемости */
        gap: 15px; 
        padding: 20px 15px;
        background: #f0f0f0; /* Легкий фон для отделения карточек */
    }
    .product-card { 
        border-radius: 8px; 
        border: none; 
        padding: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    .product-card img { height: 180px; }
    .product-card h3 { font-size: 16px; min-height: auto; }

    /* Кнопки в ряд на мобилке, если хочешь сэкономить место */
    .btn-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .btn-outline { margin-top: 0; }
}

/* Фикс для совсем маленьких экранов (iPhone SE и т.д.) */
@media (max-width: 380px) {
    .logo { font-size: 18px; }
    .cart-btn { padding: 8px 10px; font-size: 12px; }
}
@media (max-width: 768px) {
    .nav-dark .container {
        padding: 0; /* Убираем боковые отступы контейнера только для навигации */
    }
}
/* --- КАТАЛОГ (Исправлено) --- */
.nav-dark { 
    background: #333; 
    position: relative; 
    z-index: 100; 
}

.catalog-dropdown {
    width: 100%;
}

.catalog-trigger {
    width: 100%;
    background: #cf0028;
    color: #fff;
    padding: 15px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
}

/* Меню, которое раздвигает контент вниз */
.catalog-menu {
    display: none; /* Скрыто по умолчанию */
    width: 100%;
    background: #fff;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 2px solid #cf0028;
}

/* На мобилках меню НЕ должно висеть над контентом */
@media (max-width: 768px) {
    .catalog-menu.active {
        display: block; /* Показываем */
        position: static; /* Раздвигает контент вниз, а не висит сверху */
    }
    
    .catalog-menu li a {
        display: flex;
        align-items: center;
        padding: 15px 20px;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #eee;
        font-size: 15px;
    }

    .cat-img {
        width: 30px;
        height: 30px;
        margin-right: 15px;
        object-fit: contain;
    }
}

/* Для ПК оставляем выпадающим, если нужно */
@media (min-width: 769px) {
    .catalog-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 300px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .catalog-menu.active { display: block; }
}
/* Контейнер кнопок в карточке */
.btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки поровну */
    gap: 10px;
    margin-top: 15px;
}

.btn-blue, .btn-outline {
    width: 100%;
    padding: 12px 5px;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-blue { background: #cf0028; color: #fff; border: none; }
.btn-outline { background: #fff; color: #333; border: 1px solid #333; }

/* --- СБРОС И БАЗА --- */
.nav-dark .container {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
}

/* 1. ПК ВЕРСИЯ: Кнопка не должна быть на весь экран */
.catalog-dropdown {
    position: relative !important;
    flex: 0 0 auto !important; /* ЗАПРЕЩАЕМ растягиваться на ПК */
    width: auto !important;
}

.catalog-trigger {
    background: #cf0028 !important;
    color: #fff !important;
    height: 50px !important;
    padding: 0 30px !important;
    font-weight: 800;
    display: flex !important;
    align-items: center;
    gap: 10px;
    border: none !important;
    cursor: pointer;
    white-space: nowrap;
}

/* 2. КАТАЛОГ (СПИСОК) */
.catalog-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    z-index: 99999 !important; /* Чтобы был ПОВЕРХ карточек */
    display: none; /* Скрыт по умолчанию */
}

.catalog-menu.active {
    display: block !important;
}

/* СТИЛИ ДЛЯ ПК (ВЫПАДАЮЩЕЕ ОКНО) */
@media (min-width: 769px) {
    .catalog-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 300px !important; /* Фиксированная ширина на ПК */
        box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
    }
    .menu-links {
        display: flex !important;
        gap: 20px;
        margin-left: 30px;
    }
}

/* СТИЛИ ДЛЯ МОБИЛКИ (АККОРДЕОН) */
@media (max-width: 768px) {
    .nav-dark .container {
        flex-direction: column !important; /* На мобилке всё в колонку */
        padding: 0 !important;
    }
    
    .catalog-dropdown {
        width: 100% !important;
    }

    .catalog-trigger {
        width: 100% !important;
        justify-content: center;
    }

    .catalog-menu {
        position: static !important; /* ПРИНУДИТЕЛЬНО вниз, а не вбок */
        width: 100% !important;
        box-shadow: none !important;
        border-bottom: 2px solid #cf0028;
    }
    
    .menu-links { display: none !important; }
}

/* Внутрянка меню */
.catalog-menu li { border-bottom: 1px solid #eee; }
.catalog-menu li a {
    display: flex !important;
    align-items: center;
    padding: 15px 20px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 600;
}
.cat-img { width: 50px; height: 50px; margin-right: 15px; }
@media (max-width: 768px) {
    /* Применяем изменения ТОЛЬКО к контейнеру внутри nav-dark */
    /* Это не тронет корзину и логотип, которые выше */
    .nav-dark .container, 
    .nav-dark .nav-flex {
        height: auto !important; 
        min-height: 0 !important;
        display: block !important; /* Стопкой только тут */
        overflow: visible !important;
        white-space: normal !important;
    }

    /* 2. Кнопка каталога */
    .catalog-dropdown {
        width: 100% !important;
        position: relative !important;
        display: block !important;
    }

    .catalog-trigger {
        width: 100% !important;
        height: 50px !important; 
        justify-content: center !important;
    }

    /* 3. САМО МЕНЮ */
    .catalog-menu {
        position: relative !important; 
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        display: none; 
        transform: none !important;
        float: none !important;
        visibility: visible !important;
    }

    /* Показываем при нажатии */
    .catalog-menu.active {
        display: block !important;
        opacity: 1 !important;
    }

    /* Скрываем только лишние ссылки в навигации */
    .nav-dark .menu-links {
        display: none !important;
    }
}@media (max-width: 768px) {
    .nav-dark .container {
        display: block !important;
        height: auto !important;
    }

    .catalog-dropdown {
        width: 100% !important;
        position: relative !important;
    }

    .catalog-trigger {
        width: 100% !important;
        height: 55px !important;
        justify-content: center !important;
        z-index: 10;
        position: relative;
    }

    /* --- ИСПРАВЛЕННАЯ АНИМАЦИЯ --- */
    .catalog-menu {
        display: block !important; 
        position: relative !important;
        width: 100% !important;
        max-height: 0; /* Исходная высота */
        overflow: hidden;
        opacity: 1 !important;
        visibility: visible !important;
        
        /* Ускоряем время до 0.3s для мгновенного отклика */
        /* Используем ease-in-out для мягкости */
        transition: max-height 0.3s ease-in-out;
        
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    /* Состояние когда открыто */
    .catalog-menu.active {
        /* ВАЖНО: Ставим значение ближе к реальной высоте меню. 
           Если категорий немного, 500px хватит. 
           Это уберет задержку перед закрытием. */
        max-height: 4500px; 
        border-bottom: 2px solid #cf0028 !important;
    }

    .nav-dark .menu-links {
        display: none !important;
    }
}

/* cart */

/* --- СТИЛЬ КОРЗИНЫ --- */

/* 1. Карточка товара */
.cart-item-modern {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    transition: var(--shadow);
    position: relative;
}

.cart-item-modern:hover {
    box-shadow: var(--shadow);
    border-color: var(--gp-blue);
}

.item-img {
    width: 100px;
    height: 80px;
    flex-shrink: 0;
}

.item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.item-info {
    flex-grow: 1;
}

.item-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-black);
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.item-price-day {
    font-size: 14px;
    color: var(--gp-blue);
    font-weight: 700;
}

.item-price-day span { color: var(--text-muted); font-weight: normal; }

/* 2. Управление в карточке */
.item-controls {
    display: flex;
    align-items: center;
    gap: 30px;
}

.days-input-group label, .item-total-val label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 5px;
}

.input-stepper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.input-stepper input {
    width: 50px;
    border: none;
    padding: 8px;
    text-align: center;
    font-weight: 700;
}

.input-stepper .unit {
    background: #f4f4f4;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    border-left: 1px solid #ddd;
}

.item-total-val .val {
    font-size: 18px;
    font-weight: 900;
    color: var(--brand-black);
}

.remove-btn {
    color: #ddd;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
}
.remove-btn:hover { color: #ff4d4d; }

/* 3. Левый блок (Итого) */
.cart-summary-card {
    background: #fff;
    border: 2px solid var(--gp-blue);
    border-radius: 12px;
    padding: 25px;
    position: sticky;
    top: 20px;
}

.summary-title {
    font-weight: 900;
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--brand-black);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.total-row {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.total-price {
    font-size: 24px;
    font-weight: 900;
    color: var(--gp-blue);
}

/* 4. Форма снизу */
.checkout-form-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* Адаптивность */
@media (max-width: 768px) {
    .cart-item-modern {
        flex-direction: column;
        text-align: center;
    }
    .item-controls {
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid #eee;
        padding-top: 15px;
    }
    .remove-btn {
        position: absolute;
        top: 10px;
        right: 15px;
    }
}

/* --- СТРАНИЦА УСПЕХА --- */
.order-success-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: var(--shadow);
}

.success-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.check-circle {
    width: 80px;
    height: 80px;
    background: #e6f7ff; /* Светло-синий фон под иконку */
    color: var(--gp-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-circle svg {
    width: 50px;
    height: 50px;
}

.order-info-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--gp-blue);
    font-size: 1.1rem;
    color: #555;
}

/* Список шагов */
.next-steps {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
}

.step-num {
    width: 24px;
    height: 24px;
    background: var(--brand-dark);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    flex-shrink: 0;
}

.fw-black { font-weight: 900 !important; }

/* Адаптивность */
@media (max-width: 576px) {
    .order-success-card {
        padding: 30px 20px;
    }
    .order-success-card h1 {
        font-size: 22px;
    }
}

/*  */

/* ФИКСИРОВАННЫЕ СТИЛИ - ЧТОБЫ НИЧЕГО НЕ ВЫЛЕТАЛО */
    :root {
        --gp-blue: #cf0028;
        --gp-dark: #1e1e1e;
        --gp-light: #f4f7f9;
        --border-radius: 12px;
    }

    .product-page-container {
        font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
        color: var(--gp-dark);
        padding-top: 20px;
    }

    /* Хлебные крошки */
    .breadcrumb-custom {
        display: flex;
        gap: 10px;
        list-style: none;
        padding: 0;
        margin-bottom: 25px;
        font-size: 14px;
    }
    .breadcrumb-custom a { color: #888; text-decoration: none; }
    .breadcrumb-custom .active { color: var(--gp-blue); fw-bold; }

    /* Основная карточка */
    .main-wrapper {
        display: grid;
        grid-template-columns: 1fr 400px;
        gap: 30px;
        align-items: start;
    }

    @media (max-width: 992px) {
        .main-wrapper { grid-template-columns: 1fr; }
    }

    /* Блок с фото */
    .photo-card {
        background: #fff;
        border-radius: var(--border-radius);
        padding: 40px;
        border: 1px solid #eee;
        text-align: center;
        box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    }
    .photo-card img {
        max-width: 100%;
        height: auto;
        max-height: 450px;
        object-fit: contain;
    }

    /* Правая панель (Заказ) */
    .order-sidebar {
        background: #fff;
        border-radius: var(--border-radius);
        padding: 30px;
        border: 1px solid #eee;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        position: sticky;
        top: 20px;
    }

    .product-title {
        font-size: 24px;
        font-weight: 900;
        text-transform: uppercase;
        margin-bottom: 10px;
        line-height: 1.2;
    }

    .product-id { color: #bbb; font-size: 12px; margin-bottom: 20px; display: block; }

    /* Блок цен */
    .price-box {
        background: var(--gp-light);
        border-radius: 10px;
        padding: 20px;
        margin-bottom: 25px;
    }
    .price-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #e1e8ed;
    }
    .price-row:last-child { border: none; margin: 0; padding: 0; color: var(--gp-blue); font-weight: 800; }
    
    .price-val { font-size: 18px; font-weight: 900; }

    /* Кнопки */
    .btn-cart {
        background: var(--gp-blue);
        color: #fff;
        border: none;
        width: 100%;
        padding: 18px;
        border-radius: 8px;
        font-weight: 800;
        text-transform: uppercase;
        margin-bottom: 10px;
        transition: 0.3s;
        text-decoration: none;
        display: block;
        text-align: center;
    }
    .btn-cart:hover { background: var(--gp-dark); color: #fff; transform: translateY(-2px); }

    .btn-quick {
        background: #fff;
        color: var(--gp-dark);
        border: 2px solid var(--gp-dark);
        width: 100%;
        padding: 15px;
        border-radius: 8px;
        font-weight: 800;
        transition: 0.2s;
    }
    .btn-quick:hover { background: var(--gp-dark); color: #fff; }

    /* Характеристики */
    .bottom-info {
        margin-top: 40px;
        background: #fff;
        border-radius: var(--border-radius);
        padding: 30px;
        border: 1px solid #eee;
    }
    .spec-item {
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px solid #f9f9f9;
    }
    .spec-label { color: #888; font-size: 14px; }
    .spec-value { font-weight: 700; }

    .desc-text {
        line-height: 1.7;
        color: #555;
        font-size: 16px;
    }

/*  */
.menu-divider {
    background: #f4f4f4 !important;
    padding: 12px 20px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #777 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none; /* Чтобы нельзя было нажать */
    display: block;
}

.sale-divider {
    border-top: 1px solid #ddd;
    color: #d9534f !important; /* Выделяем покупку красным */
    margin-top: 5px;
}

/* На мобилках, чтобы категории не слипались с разделителем */
.catalog-menu li:not(.menu-divider) {
    background: #fff;
}