/* ==========================================================================
   1. ПЕРЕМЕННЫЕ И БАЗОВЫЕ СТИЛИ (RESET)
   ========================================================================== */
:root {
    --primary: #fce01b;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border: rgba(0, 0, 0, 0.08);
    --text: #1a1a1a;
    --text-dim: #666666; /* Добавлено для согласованности */
    --radius: 24px;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    scroll-behavior: smooth; 
}

body { 
    background: var(--light-bg); 
    color: var(--text); 
    font-family: 'Montserrat', sans-serif; 
    line-height: 1.6;
    padding-top: 100px;
}

.wrap { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0px; 
}

h1, h2, h3, h4 { 
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase; 
}

/* ==========================================================================
   2. НАВИГАЦИЯ (NAVIGATION)
   ========================================================================== */
nav.main-nav {
    position: fixed; 
    top: 20px; 
    left: 50%; 
    transform: translateX(-50%);
    width: calc(100% - 40px); 
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(10px);
    z-index: 1000; 
    padding: 15px 30px; 
    border-radius: 20px;
    border: 1px solid var(--border); 
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 20px; 
}

.nav-links a { 
    text-decoration: none; 
    color: #000; 
    font-weight: 700; 
    font-size: 12px; 
}

.logo { 
    font-family: 'Unbounded'; 
    font-weight: 900; 
    font-size: 18px; 
    text-decoration: none; 
    color: #000; 
}

/* ==========================================================================
   3. ГЛАВНЫЙ ЭКРАН (HERO SECTION)
   ========================================================================== */
header.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("uploads/products/175325525.webp");
    padding: 80px 40px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 40px;
}

header.hero::after {
    content: 'RENT 2026';
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-family: 'Unbounded';
    font-size: 10vw;
    font-weight: 900;
    color: rgba(0,0,0,0.02);
    z-index: 1;
    white-space: nowrap;
}

.hero-inner { position: relative; z-index: 2; width: 100%; text-align: center; }

.sale-badge {
    display: inline-flex;
    align-items: center;
    background: #1a1a1a;
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 11px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1.main-title { 
    font-size: clamp(32px, 6vw, 64px); 
    line-height: 1; 
    margin-bottom: 20px; 
    color: #000;
    letter-spacing: -1.5px;
}

.sub-title { 
    color: var(--text-dim); 
    font-size: clamp(15px, 1.5vw, 18px); 
    margin-bottom: 40px; 
    max-width: 600px; 
    margin-left: auto; 
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.h-feat-item span { font-family: 'Unbounded'; font-size: 20px; font-weight: 700; color: #000; }
.h-feat-item label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; font-weight: 700; display: block; }

/* ==========================================================================
   4. СЕКЦИИ: ПРЕИМУЩЕСТВА, ЭТАПЫ, ДОВЕРИЕ
   ========================================================================== */
.trust-line { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    opacity: 0.4; 
    filter: grayscale(1); 
    padding: 40px 0; 
    gap: 20px; 
    flex-wrap: wrap; 
}
.trust-line img { height: 25px; }

.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.benefit-card { background: var(--white); padding: 40px; border-radius: var(--radius); border: 1px solid var(--border); }
.benefit-card h3 { font-size: 16px; margin-bottom: 15px; color: #000; }
.benefit-card p { font-size: 14px; color: var(--text-dim); }

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    background: #1a1a1a;
    padding: 60px 40px;
    border-radius: var(--radius);
    color: #fff;
    margin-top: 40px;
}
.step-num { font-family: 'Unbounded'; font-size: 40px; color: var(--primary); margin-bottom: 15px; display: block; }
.step-item h4 { font-family: 'Unbounded'; font-size: 14px; margin-bottom: 10px; }
.step-item p { font-size: 13px; opacity: 0.7; }

/* ==========================================================================
 /* ==========================================================================
   5. КАТАЛОГ И КАРТОЧКИ ТОВАРОВ
   ========================================================================== */
.catalog-page { padding-top: 120px; padding-bottom: 40px; }

.tabs-container { display: flex; justify-content: center; gap: 10px; margin: 40px 0; flex-wrap: wrap; }

.tab-link {
    padding: 12px 25px; 
    border: 1px solid var(--border); 
    background: var(--white);
    border-radius: 50px; 
    font-family: 'Unbounded'; 
    font-size: 11px;
    text-decoration: none; 
    color: var(--text); 
    transition: 0.3s; 
    text-transform: uppercase;
}
.tab-link.active { background: var(--primary); border-color: var(--primary); }

/* minmax изменен с 300px до 240px для вывода большего числа компактных карточек в ряд */
/* auto-fill вместо auto-fit: пустые колонки не схлопываются, поэтому карточки 
   не растягиваются, когда товаров меньше, чем помещается в ряд (1-2-3 шт.) */
.product-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
    gap: 20px; 
    justify-content: start;
}

.card { 
    background: #fff; 
    border-radius: var(--radius); 
    padding: 15px; /* Уменьшено с 20px для компактности */
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%; /* Чтобы все карточки в ряду были одной высоты */
}

/* Стилизованный компактный заголовок */
.card h3 {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 10px;
}

/* Высота уменьшена до 150px, чтобы карточки были меньше */
.card-img { 
    width: 100%; 
    height: 150px; 
    border-radius: 15px; 
    margin-bottom: 15px; 
    background-color: #eee; 
    background-size: cover; 
    background-position: center; 
}

/* Обновленный бокс: теперь цена сверху, а кнопки под ней */
.price-box { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    margin-top: auto; /* Выталкивает блок вниз, заполняя пустоту сверху */
    padding-top: 15px; 
}

/* На одной базовой линии выводим цену и подпись "смена" */
.price-tag { 
    font-family: 'Unbounded'; 
    font-weight: 700; 
    font-size: 15px; 
    display: inline-block; 
}

.price-unit { 
    font-size: 11px; 
    color: #888; 
    text-transform: lowercase; 
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    margin-left: 2px;
}

/* ==========================================================================
   6. СТРАНИЦА ОДИНОЧНОГО ТОВАРА (PRODUCT DETAIL)
   ========================================================================== */
.back-link {
    text-decoration: none; 
    color: var(--text-dim); 
    font-size: 12px; 
    font-weight: 700;
    text-transform: uppercase; 
    display: inline-block; 
    margin-bottom: 30px; 
    transition: 0.3s;
}
.back-link:hover { color: #000; padding-left: 5px; }

.product-card { 
    display: grid; 
    grid-template-columns: 1.2fr 1fr; 
    gap: 50px; 
    background: var(--white); 
    padding: 40px; 
    border-radius: var(--radius); 
    border: 1px solid var(--border); 
}

.product-gallery img { width: 100%; border-radius: 16px; border: 1px solid var(--border); }

.backstage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 15px; }
.backstage-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

.product-info h1 { font-family: 'Unbounded'; font-size: clamp(22px, 3vw, 32px); margin-bottom: 15px; }

.category-label { 
    display: inline-block; 
    background: var(--primary); 
    padding: 5px 15px; 
    border-radius: 50px; 
    font-size: 10px; 
    font-weight: 700; 
    text-transform: uppercase; 
    margin-bottom: 15px; 
}
.product-description-card {
    background: #fff;       /* Белый фон */
    border: 1px solid #eee; /* Тонкая рамка как у карточек */
    border-radius: 20px;    /* Скругление как у галереи */
    padding: 0 40px 40px 40px;          /* Внутренние отступы */
    margin-top: 40px;       /* Отступ от верхнего блока */
}

.product-description-card .section-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    margin-bottom: 25px;
    text-transform: uppercase;
}
.product-info .price-tag { font-size: 32px; font-weight: 900; margin: 20px 0; }
.product-info .price-tag span { font-size: 16px; margin-left: 5px; }
.all-products-card {
    text-decoration: none;
    color: #000;
    background: #f9f9f9; /* Светло-серый фон, чтобы выделялась */
    border: 1px dashed var(--border); /* Пунктирная рамка для интереса */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
}

.all-products-card:hover {
    background: #000;
    color: var(--primary); /* При наведении становится черной с желтым текстом */
    border-style: solid;
}

.all-products-content {
    padding: 20px;
}

.all-products-content .arrow-icon {
    font-size: 40px;
    margin-bottom: 15px;
    font-family: 'Unbounded', sans-serif;
}

.all-products-content p {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 10px;
}
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.spec-table td { padding: 12px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.spec-table td:last-child { text-align: right; font-weight: 700; }
.spec-label { color: var(--text-dim); }

.included-box { 
    background: #fcfcfc; 
    padding: 25px; 
    border-radius: 16px; 
    border: 1px dashed var(--border); 
    margin: 30px 0; 
}
.included-box h4 { font-size: 12px; margin-bottom: 15px; color: #000; letter-spacing: 1px; }
.included-box ul { list-style: none; }
.included-box li { font-size: 13px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }

.warning-box { 
    background: #fff5cc; 
    padding: 20px; 
    border-radius: 16px; 
    font-size: 13px; 
    border-left: 4px solid var(--primary); 
    margin-top: 25px; 
}
/* Контейнер для текстового контента (характеристики, описание) */
.description-content {
    line-height: 1.6;
    color: #333;
    font-size: 15px;
}

/* Оформление списков характеристик */
.description-content ul {
    list-style: none; /* Убираем стандартные точки */
    padding: 0;
    margin: 20px 0;
}

.description-content ul li {
    position: relative;
    padding-left: 25px; /* Место под кастомный маркер */
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

/* Кастомный маркер (стильный квадрат или черточка) */
.description-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px; /* Выравнивание по первой строке текста */
    width: 6px;
    height: 6px;
    background-color: #ffc107; /* Желтый акцент под бренд */
    border-radius: 1px; /* Слегка скругленные углы */
}

/* Если внутри списка есть жирный текст (например, название параметра) */
.description-content ul li strong {
    font-weight: 700;
    margin-right: 5px;
    color: #000;
}

/* Оформление для блока "В стоимость включено", если там тоже списки */
.included-box .description-content ul li::before {
    background-color: #28a745; /* Зеленый маркер для "включено" */
}

/* Адаптивность для мобилок */
@media (max-width: 768px) {
    .description-content {
        font-size: 14px;
    }
}
/* ==========================================================================
   7. КОМАНДА И ПОРТФОЛИО (TEAM & PORTFOLIO)
   ========================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.team-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.team-img { height: 250px; background-size: cover; background-position: center; }
.team-info { padding: 20px; }
.team-info label { font-size: 10px; color: var(--primary); background: #000; padding: 2px 8px; border-radius: 4px; }
.team-info h4 { margin: 10px 0 5px; }
.team-info p { font-size: 13px; color: #666; }

.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.portfolio-item { position: relative; border-radius: var(--radius); overflow: hidden; height: 350px; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-overlay { 
    position: absolute; 
    bottom: 0; left: 0; right: 0; 
    padding: 30px; 
    background: linear-gradient(transparent, rgba(0,0,0,0.8)); 
    color: #fff; 
}

/* ==========================================================================
   8. КАЛЬКУЛЯТОР, КОРЗИНА И ФОРМЫ
   ========================================================================== */
#cart-btn {
    position: fixed; bottom: 30px; right: 30px; z-index: 1001;
    background: #000; color: var(--primary); width: 60px; height: 60px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; border: none; box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
#cart-count { position: absolute; top: 0; right: 0; background: red; color: #fff; font-size: 10px; padding: 3px 6px; border-radius: 50%; }

.cart-overlay {
    position: fixed; top: 0; right: -100%; width: 100%; max-width: 400px; height: 100vh;
    background: #fff; z-index: 2000; transition: 0.4s; padding: 40px; overflow-y: auto;
    box-shadow: -10px 0 50px rgba(0,0,0,0.1);
}
.cart-overlay.active { right: 0; }
.cart-close { position: absolute; top: 20px; right: 20px; font-size: 30px; cursor: pointer; }

.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; }
.cart-total-box { background: #f8f9fa; padding: 20px; border-radius: 15px; margin: 20px 0; }

.calc-box { 
    background: #fff; 
    padding: 40px; 
    border-radius: var(--radius); 
    border: 1px solid var(--border); 
    max-width: 800px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px; 
}
.calc-result { 
    background: var(--primary); 
    padding: 20px; 
    border-radius: 15px; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}
#total-price { font-family: 'Unbounded'; font-size: 20px; font-weight: 700; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 11px; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; }
.form-control { 
    width: 100%; 
    padding: 15px; 
    border-radius: 12px; 
    border: 1px solid #ddd; 
    font-family: 'Montserrat', inherit; 
    outline: none;
}

/* ==========================================================================
   9. КНОПКИ (BUTTONS)
   ========================================================================== */
.btn { 
    background: var(--primary); 
    color: #000; 
    padding: 15px 30px; 
    border-radius: 12px; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 14px; 
    border: none; 
    cursor: pointer; 
    transition: 0.3s; 
    display: inline-block; 
}
.btn-sm { padding: 10px 20px; font-size: 11px; }
.btn-outline { background: transparent; border: 1px solid #000; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.btn-order { 
    background: var(--primary); 
    color: #000; 
    padding: 22px; 
    width: 100%; 
    border: none;
    border-radius: 16px; 
    font-family: 'Montserrat'; 
    font-weight: 700; 
    cursor: pointer;
    text-transform: uppercase; 
    letter-spacing: 1px; 
    transition: 0.3s;
}
.btn-order:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(252, 224, 27, 0.3); }
/* Группировка кнопок в карточке */
.card-buttons {
    display: flex;
    gap: 8px; /* Расстояние между кнопками */
}

/* Настройка кнопок, чтобы они были одинаковой высоты */
.card-buttons .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* Стили для контурной кнопки "Подробнее" */
.btn-outline {
    background: transparent;
    border: 1px solid #000;
    color: #000;
}

.btn-outline:hover {
    background: #000;
    color: var(--primary);
}

/* Мобильная адаптация: если кнопки не влезают в ряд */
@media (max-width: 400px) {
    .price-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .card-buttons {
        width: 100%;
    }
    .card-buttons .btn {
        flex: 1; /* Кнопки делят ширину поровну */
    }
}
/* ==========================================================================
   10. FAQ И ФУТЕР
   ========================================================================== */
.faq-list { max-width: 900px; margin: 0 auto; text-align: left; }
.faq-item { background: var(--white); margin-bottom: 15px; padding: 30px; border-radius: 20px; border: 1px solid var(--border); }
.faq-item h4 { font-size: 15px; margin-bottom: 10px; color: #000; }
.faq-item p { font-size: 14px; color: var(--text-dim); }

.section-title { text-align: center; padding-top: 40px; font-size: clamp(22px, 3vw, 30px); margin-bottom: 40px; }
.section-title span { 
    color: var(--text-dim); 
    display: block; 
    font-size: 13px; 
    margin-top: 8px; 
    font-family: 'Montserrat'; 
    text-transform: none; 
    font-weight: 400; 
}

.contact-section { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 40px; }
.contact-form-box { background: var(--white); padding: 40px; border-radius: var(--radius); border: 1px solid var(--border); text-align: left; }
.map-box { 
    background: #eee; 
    border-radius: var(--radius); 
    overflow: hidden; 
    min-height: 450px; 
    border: 1px solid var(--border); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #999; 
}

footer { 
    background: var(--white); 
    padding: 60px 20px !important; 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    text-align: center; 
    margin-top: 40px !important; 
    margin-bottom: 20px !important;
}

/* ==========================================================================
   11. АДАПТИВНОСТЬ (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) { 
    .product-card { grid-template-columns: 1fr; padding: 20px; } 
}

@media (max-width: 768px) {
    nav.main-nav { padding: 10px 20px; }
    .nav-links { display: none; } 
    header.hero { padding: 60px 20px; }
    .main-title { font-size: 32px; }
    .product-grid,
    .contact-section, 
    .portfolio-grid { grid-template-columns: 1fr; }
}
/* Стили для контентной области SEO-текста */
.seo-content {
    line-height: 1.8;
    color: #444;
    font-family: 'Montserrat', sans-serif;
}

/* Заголовки */
.seo-content h2 {
    font-family: 'Unbounded', sans-serif;
    font-size: 28px;
    margin: 40px 0 20px;
    color: #000;
}

.seo-content h3 {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    margin: 30px 0 15px;
    color: #000;
}

/* Абзацы */
.seo-content p {
    margin-bottom: 20px;
}

/* Списки (Общее) */
.seo-content ul, 
.seo-content ol {
    margin-bottom: 30px;
    padding-left: 25px; /* Отступ для маркеров */
}

.seo-content li {
    margin-bottom: 12px;
}

/* Маркированный список (точки) */
.seo-content ul {
    list-style-type: disc;
}

/* Нумерованный список (цифры) */
.seo-content ol {
    list-style-type: decimal;
}

/* Выделение жирным */
.seo-content strong {
    font-weight: 700;
    color: #222;
}

/* Адаптивность для мобилок */
@media (max-width: 768px) {
    .seo-block {
        padding: 25px !important;
        margin-top: 50px !important;
    }
    .seo-content h2 {
        font-size: 22px;
    }
    .seo-content h3 {
        font-size: 18px;
    }
}