/* =========================================
   1. ЗМІННІ (VARIABLES) ТА БАЗОВІ СТИЛІ
   Тут ми задаємо "налиштування" всього сайту.
   Зміна кольору тут змінить його на всьому сайті.
   ========================================= */
:root {
    /* Палітра кольорів */
    --color-black: #1A1A1A;
    --color-dark: #2C3E50;
    --color-accent: #e7433a; /* Головний акцентний колір (помаранчевий/червоний) */
    --color-gray: #F5F5F5;
    --color-white: #FFFFFF;
    --color-border: #E0E0E0;
    
    /* Шрифти */
    --font-main: 'Inter', sans-serif;       /* Для основного тексту */
    --font-heading: 'Montserrat', sans-serif; /* Для заголовків */
    
    /* Розміри та анімації */
    --container-width: 1240px; /* Максимальна ширина контенту на сторінці */
    --transition: all 0.3s ease; /* Плавність анімацій (0.3 секунди) */
}

/* Скидання базових відступів браузера (Reset CSS) */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; /* Важливо: padding не збільшує ширину блоку */
}

body {
    font-family: var(--font-main);
    color: var(--color-black);
    background-color: var(--color-white);
    line-height: 1.5; /* Міжрядковий інтервал для кращого читання */
}

/* Базові стилі для посилань, списків та картинок */
a { 
    text-decoration: none; /* Прибираємо підкреслення */
    color: inherit; /* Колір як у батьківського елемента */
    transition: var(--transition); /* Плавна зміна кольору при наведенні */
}
ul { list-style: none; } /* Прибираємо крапки у списків */
img { max-width: 100%; display: block; } /* Картинки не вилазять за межі батька */

/* Головний контейнер - центрує вміст на сторінці */
.container {
    max-width: var(--container-width);
    margin: 0 auto; /* 0 зверху/знизу, auto зліва/справа (центрування) */
    padding: 0 20px; /* Відступи по боках, щоб текст не прилипав до країв екрану */
}

/* =========================================
   2. КНОПКИ (UI ELEMENTS)
   Стилі для різних станів та видів кнопок.
   ========================================= */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase; /* Всі літери великі */
    letter-spacing: 0.5px; /* Розрядка літер */
    border-radius: 4px;
    cursor: pointer; /* Курсор перетворюється на руку */
    border: none;
    text-align: center;
    transition: var(--transition);
}

/* Основна кнопка (залита кольором) */
.btn--primary {
    background-color: var(--color-accent);
    color: var(--color-white);
}
.btn--primary:hover { 
    background-color: #d35400; /* Темніший колір при наведенні */
}

/* Кнопка з обводкою (прозора) */
.btn--outline {
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-black);
}
.btn--outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Темна кнопка з обводкою */
.btn--outline-dark {
    border: 2px solid var(--color-black);
    color: var(--color-black);
    background: transparent;
}
.btn--outline-dark:hover {
    background: var(--color-black);
    color: var(--color-white);
}

/* Маленька кнопка */
.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
    align-self: flex-start; /* У флекс-контейнері притискається до початку */
}

/* Кнопка-іконка (кругле стрілочка) */
.btn-icon {
    width: 35px; height: 35px;
    border-radius: 50%; /* Робить коло */
    background: var(--color-gray);
    border: none;
    color: var(--color-dark);
    display: flex; /* Флекс для центрування іконки всередині кола */
    align-items: center; 
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

/* Ефект: коли наводимо на картку товару, кнопка всередині змінюється */
.product-card:hover .btn-icon {
    background: var(--color-accent);
    color: #fff;
}

/* =========================================
   3. HEADER (ШАПКА САЙТУ)
   ========================================= */
.header { 
    position: sticky; /* "Липка" шапка */
    top: 0; 
    z-index: 100; /* Щоб шапка була поверх інших елементів */
    background: #fff; 
}

/* Верхня тонка смужка (телефон, мова) */
.header__top { 
    background-color: var(--color-gray); 
    padding: 10px 0; 
    font-size: 13px; 
    color: #666; 
}
.header__top-inner { 
    display: flex; 
    justify-content: space-between; /* Розносить елементи по краях */
    align-items: center; 
}
.header__contacts { display: flex; gap: 20px; }
.header__phone { font-weight: 700; color: var(--color-black); }
.header__lang a { font-weight: 600; color: #999; }
.header__lang a.active { color: var(--color-black); }

/* Основна частина шапки (Лого, Меню) */
.header__main { 
    padding: 20px 0; 
    border-bottom: 1px solid var(--color-border); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Легка тінь знизу */
}
.header__main-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* Логотип */
.header__logo { 
    font-family: var(--font-heading); 
    font-size: 24px; 
    font-weight: 800; 
    line-height: 1; 
    display: flex; 
    flex-direction: column; /* Текст логотипу один під одним */
}
.logo-text { color: var(--color-dark); }
.logo-sub { 
    font-size: 10px; 
    font-weight: 400; 
    color: #888; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}
.accent { color: var(--color-accent); }

/* Навігація */
.nav__list { display: flex; gap: 30px; }
.nav__link { 
    font-weight: 600; 
    font-size: 15px; 
    color: var(--color-black); 
    text-transform: uppercase; 
}
.nav__link:hover, .nav__link.active { color: var(--color-accent); }

.header__actions { display: flex; align-items: center; gap: 15px; }

/* Кнопка мобільного меню (прихована на ПК) */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* =========================================
   4. ГОЛОВНА СТОРІНКА (HERO & СЛАЙДЕР)
   ========================================= */
.promotion { 
    position: relative;
    height: 600px; /* Фіксована висота */
    overflow: hidden; /* Обрізає все, що виходить за межі */
    margin-bottom: 0;
    background-color: #000; 
}

.promotion__slider {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Окремий слайд */
.promotion__slide {
    position: absolute; /* Слайди накладаються один на одного */
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover; /* Картинка заповнює весь блок */
    background-position: center;
    display: flex;
    align-items: center;
    
    opacity: 0; /* Прихований за замовчуванням */
    transition: opacity 1s ease-in-out; /* Плавна поява */
    z-index: 1;
}

/* Активний слайд (який ми бачимо) */
.promotion__slide.active {
    opacity: 1; 
    z-index: 2;
}

/* Затемнення картинки (Overlay) через псевдо-елемент */
.promotion__slide::before {
    content: ''; 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%;
    /* Градієнт від чорного до прозорого */
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

/* Контент слайдера (текст) */
.promotion__container { position: relative; z-index: 3; } /* z-index > overlay */
.promotion__content { max-width: 600px; color: var(--color-white); }
.promotion__label { 
    text-transform: uppercase; 
    font-size: 12px; 
    letter-spacing: 2px; 
    margin-bottom: 15px; 
    opacity: 0.8; 
}
.promotion__title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}
.promotion__text { font-size: 18px; margin-bottom: 40px; opacity: 0.9; }

/* Кнопки перемикання слайдів (Стрілки) */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Центрування по вертикалі */
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 50px; height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
}
.slider-arrow:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}
.slider-arrow.prev { left: 30px; }
.slider-arrow.next { right: 30px; }

/* --- ПЕРЕВАГИ (Чорна смужка під слайдером) --- */
.advantages { background-color: var(--color-black); color: white; padding: 25px 0; }
.advantages__list { 
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap; /* Дозволяє перенос на новий рядок */
    gap: 20px; 
}
.advantages__item { 
    display: flex; align-items: center; gap: 10px; 
    font-weight: 600; font-size: 14px; text-transform: uppercase; 
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
}
.advantages__item i { color: var(--color-accent); font-size: 18px; transition: color 0.3s ease; }

/* Ефект при наведенні на перевагу */
.advantages__item:hover { color: var(--color-accent); }
.advantages__item:hover i { color: #fff; transform: scale(1.1); }

/* --- ЗАГАЛЬНІ СЕКЦІЇ --- */
.section { padding: 80px 0; }
.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 50px;
    text-align: center;
    color: var(--color-dark);
}

/* Сітка "Чому ми" */
.why__grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Автоматичні колонки */
    gap: 30px; 
}
.why__item { 
    text-align: center; 
    padding: 30px; 
    background: var(--color-gray); 
    border-radius: 8px; 
}
.why__icon { font-size: 40px; color: var(--color-accent); margin-bottom: 20px; }
.why__item p { font-weight: 600; }

/* Сітка "Хіти продажів" */
.hits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}
.hit-card {
    display: block;
    background: var(--color-white);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}
.hit-card:hover { 
    transform: translateY(-5px); /* Картка "спливає" вгору */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

/* Картка-кнопка: відкриває модалку товару, а не переходить на іншу сторінку.
   Скидаємо типові стилі <button>, щоб виглядала так само, як раніше посилання. */
button.hit-card {
    width: 100%;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
button.hit-card:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* Картинка в картці хіта */
.hit-card__img { height: 280px; overflow: hidden; background: #f0f0f0; }
.hit-card__img img { 
    width: 100%; height: 100%; 
    object-fit: cover; 
    transition: 0.5s; 
}
.hit-card:hover .hit-card__img img { transform: scale(1.05); /* Зум картинки */ }

.hit-card__info { padding: 25px; }
.hit-card__title { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--color-dark); }
.hit-card__price { color: var(--color-accent); font-weight: 700; font-size: 20px; }

.center-btn { text-align: center; }

/* =========================================
   5. КАТАЛОГ І БАНЕРИ СТОРІНОК
   ========================================= */

/* Базовий банер для всіх сторінок */
.default-banner {
    position: relative;
    background-color: #fff; 
    padding: 130px 0;
    overflow: hidden;
}
.default-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    background-color: #f0f0f0; 
}

/* Конкретний фон для сторінки КАТАЛОГУ */
.banner-catalog::before {
    background-image: url('../assets/images/catalog-bg.png');
    background-size: 50% auto; 
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.35; 
    /* Маска робить краї прозорими */
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

/* Текст всередині банера */
.default-banner__inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.default-banner__title {
    font-family: 'Inter', sans-serif; 
    font-size: 60px; 
    font-weight: 900; 
    margin-bottom: 15px;
    color: #111111; 
    text-transform: none; 
    letter-spacing: -2px; 
    line-height: 1.1;
    /* Тінь тексту для об'єму */
    text-shadow: 
        3px 3px 0px #ffffff,
        -1px -1px 0 #ffffff,  
        1px -1px 0 #ffffff,
        -1px 1px 0 #ffffff,
        1px 1px 0 #ffffff;
}

.default-banner__text {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: #2c3e50; 
    background-color: rgba(255, 255, 255, 0.6);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 600;
}

/* --- ФІЛЬТРИ КАТАЛОГУ --- */

.catalog-main__inner {
    display: block; /* Елементи йдуть один під одним */
}

.catalog-main__filters {
    display: grid;
    /* Налаштування ширини колонок фільтра: Категорії | Товщина | Колір */
    grid-template-columns: 1.6fr 0.8fr 1.2fr; 
    gap: 40px; 
    background: #fff;
    padding: 25px 30px;
    margin-bottom: 40px;
    border: 1px solid #eee;
    border-radius: 12px;
    align-items: start;
}

.filter-block {
    border-right: 1px solid #eee; 
    padding-right: 20px;
}
.filter-block:last-child {
    border-right: none;
    padding-right: 0;
}

/* Список фільтрів */
.filter-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: block;
}
.filter-list li { margin-bottom: 1px; }

/* Двоколоночний список (для категорій) */
.filter-list.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
    row-gap: 1px;
}

/* Чекбокси */
.custom-checkbox { 
    display: flex; align-items: center; 
    cursor: pointer; 
    font-size: 14px; color: var(--color-black); 
    transition: color 0.2s;
}
.custom-checkbox:hover { color: #E67E22; }
.custom-checkbox input { 
    margin-right: 10px; 
    accent-color: var(--color-accent); /* Колір галочки */
    width: 16px; height: 16px; 
}

/* Кольори (кружечки/квадратики) */
.color-options { display: flex; flex-wrap: wrap; gap: 8px; }
.color-checkbox {
    width: 28px; height: 28px;
    border-radius: 6px; 
    cursor: pointer;
    border: 1px solid #ddd;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s;
}
.color-checkbox:hover { transform: scale(1.1); }
.color-checkbox input { display: none; }

/* Адаптив фільтрів (на планшеті в колонку) */
@media (max-width: 992px) {
    .catalog-main__filters {
        flex-direction: column;
        gap: 20px;
    }
    .filter-block {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }
    .filter-block:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* --- СІТКА ТОВАРІВ (GRID) --- */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Картка товару */
.product-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column; /* Щоб ціна була завжди внизу */
}
.product-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.product-card__img { height: 240px; background: #f9f9f9; overflow: hidden; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.product-card:hover .product-card__img img { transform: scale(1.05); }

.product-card__body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.product-card__category { font-size: 11px; text-transform: uppercase; color: #999; margin-bottom: 5px; letter-spacing: 1px; }
.product-card__title { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--color-dark); }
.product-card__specs { font-size: 13px; color: #666; margin-bottom: 20px; }

/* Кольорові крапки в картці */
.product-card__colors { display: flex; gap: 5px; margin-bottom: 15px; flex-wrap: wrap; }
.color-dot {
    width: 18px; height: 18px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.1);
}

.product-card__footer {
    margin-top: auto; /* Притискає футер картки до низу */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}
.product-card__price { font-size: 18px; font-weight: 700; color: var(--color-accent); }
.product-card__price span { font-size: 12px; font-weight: 400; color: #999; }

.catalog-pagination { text-align: center; margin-top: 50px; }

/* =========================================
   6. СТОРІНКА ТОВАРУ (PRODUCT PAGE)
   ========================================= */
.section-padding { padding: 60px 0; }
.bg-gray { background-color: #f9f9f9; }

/* Хлібні крихти (навігація шлях) */
.breadcrumbs { padding: 20px 0; background-color: #f8f9fa; margin-bottom: 40px; }
.breadcrumbs__list { display: flex; list-style: none; gap: 10px; font-size: 14px; color: #666; }
.breadcrumbs__list a { color: #333; }
.breadcrumbs__list a:hover { color: #e63222; }

/* Макет сторінки товару (Зліва фото, справа інфо) */
.product-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-main-img img {
    width: 100%; height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Інфо блок */
.product-sku { color: #999; font-size: 14px; margin-bottom: 10px; }
.product-title {
    font-size: 32px; font-weight: 800; margin-bottom: 20px;
    color: #2c3e50; font-family: 'Montserrat', sans-serif; line-height: 1.2;
}

.product-price-block {
    display: flex; align-items: center; gap: 20px;
    margin-bottom: 25px; padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}
.product-price-block .price { font-family: var(--font-heading); font-size: 32px; font-weight: 800; color: var(--color-accent); }
.product-price-block .price span { font-family: var(--font-main); font-size: 18px; font-weight: 400; color: #737B84; }
.availability { color: #16A34A; font-weight: 600; font-size: 14px; }

.product-short-desc { color: var(--color-text, #464C53); line-height: 1.6; margin-bottom: 30px; font-size: 16px; }

/* Вибір кольору */
.product-options h3 { font-family: var(--font-heading); font-size: 16px; font-weight: 700; margin-bottom: 15px; color: var(--color-dark); }
.color-selector { display: flex; gap: 15px; margin-bottom: 30px; }
.color-radio input { display: none; }
.color-radio .swatch {
    display: block; width: 40px; height: 40px;
    border-radius: 50%; cursor: pointer;
    border: 2px solid transparent; transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
/* Стан checked (обраний колір) */
.color-radio input:checked + .swatch {
    transform: scale(1.1);
    border-color: var(--color-accent);
    box-shadow: 0 5px 10px rgba(229, 34, 36, 0.28);
}
.color-radio:hover .swatch { transform: scale(1.1); }

/* Короткі характеристики */
.product-specs-short {
    background: #f8f9fa; padding: 20px;
    border-radius: 8px; margin-bottom: 30px;
}
.spec-row {
    display: flex; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px dashed #e0e0e0; font-size: 15px;
}
.spec-row:last-child { border-bottom: none; }
.spec-name { color: #666; }
.spec-value { font-weight: 600; color: #333; }

.product-actions { display: flex; gap: 15px; }
.product-actions .btn { flex: 1; text-align: center; padding: 15px 20px; font-size: 16px; }

/* Детальна таблиця характеристик (внизу) */
.specs-table {
    background: #fff; border-radius: 10px; overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    max-width: 800px; margin: 0 auto;
}
.specs-row { display: flex; border-bottom: 1px solid #eee; }
.specs-row:last-child { border-bottom: none; }
.specs-col { padding: 15px 20px; flex: 1; }
.specs-col:first-child {
    background-color: #fcfcfc; font-weight: 600; color: #555;
    flex: 0 0 40%; border-right: 1px solid #eee;
}

/* =========================================
   7. СТОРІНКА ПОСЛУГИ (SERVICES)
   ========================================= */
.services-main { padding-bottom: 80px; background-color: var(--color-white); }
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

/* Сітка для карток */
.services-list {
    display: grid;
    /* Рівно 4 колонки, які стискаються, якщо треба */
    grid-template-columns: repeat(4, minmax(0, 1fr)); 
    
    /* Зменшуємо відступи між картками, щоб вони влізли */
    gap: 20px; 
    
    /* Наші налаштування "наїзду" на банер */
    position: relative;
    z-index: 10;
    margin-top: -150px; /* Піднімаємо картки вгору */
    padding: 0 10px;    /* Невеликі відступи з боків */
}

/* На планшетах (коли екран менший) робимо 2 ряди по 2 картки, 
   бо 4 в ряд буде занадто дрібно */
@media (max-width: 1100px) {
    .services-list {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки */
        gap: 20px;
    }
    /* Якщо карток стане 2 ряди, треба збільшити банер-підкладку, 
       але поки давай зробимо хоча б ПК версію */
}

@media (max-width: 600px) {
    .services-list {
        grid-template-columns: 1fr; /* 1 колонка на мобільному */
    }
}
.service-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px; overflow: hidden;
    transition: var(--transition);
    display: flex; flex-direction: column;
}
.service-item:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.service-item__image { height: 180px; overflow: hidden; position: relative; }
.service-item__image img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    transition: transform 0.5s ease;
}
.service-item:hover .service-item__image img { transform: scale(1.05); }

.service-item__content {
    /* Зменшуємо внутрішній відступ, щоб текст вліз */
    padding: 20px 15px; 
    
    flex-grow: 1;
    display: flex; 
    flex-direction: column; 
    position: relative;
}

/* Іконка поверх картки */
.service-item__icon {
    width: 50px; height: 50px;
    background-color: var(--color-accent);
    color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    position: absolute; top: -25px; right: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Трішки зменшимо шрифт заголовка, щоб не розпирав картку */
.service-item__title {
    font-family: var(--font-heading);
    font-size: 18px; /* Було 20px, робимо 18px */
    font-weight: 700;
    margin-bottom: 10px; 
    color: var(--color-dark);
    line-height: 1.3;
}

.service-item__desc {
    font-size: 14px; color: #666;
    margin-bottom: 25px; line-height: 1.6;
}

.service-item__price {
    margin-top: auto; background-color: var(--color-gray);
    padding: 15px; border-radius: 4px;
    list-style: none; margin-bottom: 20px;
}
.service-item__price li {
    display: flex; justify-content: space-between;
    margin-bottom: 8px; font-size: 13px;
    border-bottom: 1px dashed #ddd; padding-bottom: 4px;
}
.service-item__price li:last-child { border-bottom: none; margin-bottom: 0; }
.service-item__price.label { color: #555; }
.service-item__price.value { font-weight: 700; color: var(--color-black); }
.service-item__price.note {
    display: block; font-size: 11px; color: #888;
    font-style: italic; margin-top: 5px; border-bottom: none;
}

/* 1. БАНЕР-ПІДКЛАДКА */
.banner-services {
    position: relative;
    /* Робимо його частиною потоку, але з можливістю перекриття */
    z-index: 1; 
    
    /* Відступи всередині: 
       80px зверху (щоб текст не прилип)
       200px знизу (ВАЖЛИВО: це місце, куди заїдуть машини) */
    padding: 80px 0 200px 0 !important;
    
    /* Зовнішній вигляд "Карти" */
    background: linear-gradient(135deg, #2c3e50 0%, #1a1a1a 100%); /* Темний фон */
    border-radius: 24px;       /* Заокруглення */
    border: 8px solid #fff;    /* Біла рамка */
    box-shadow: 0 20px 60px rgba(0,0,0,0.3); /* Глибока тінь */
    
    /* Центрування і ширина */
    max-width: var(--container-width);
    margin: 40px auto 0 auto; /* 0 знизу, щоб не відштовхував машини */
    width: 96%;
    
    /* Текст */
    text-align: center;
}

/* Затемнення фону (підготовка під фото) */
.banner-services::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 16px; /* Трохи менше заокруглення всередині */
    z-index: -1; /* За текст, але всередині блоку */
    /* Тут потім буде твоя картинка */
}

/* Стилізація тексту, щоб він був білим і читався */
.banner-services .default-banner__title {
    color: #fff;
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.banner-services .default-banner__text {
    color: #ddd;
    font-size: 18px;
    background: transparent;
}

/* =========================================
   8. КОНТАКТИ (CONTACT PAGE)
   ========================================= */
.page-hero {
    background-color: #f8f9fa;
    padding: 60px 0 40px;
    text-align: center;
}
.page-hero__title { font-size: 3rem; font-weight: 800; margin-bottom: 10px; color: #1a1a1a; }
.page-hero__subtitle { font-size: 1.2rem; color: #666; }

/* Картки контактів */
.contacts-grid-section { padding: 50px 0 80px; background-color: #f8f9fa; }
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.contact-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.contact-card__icon {
    width: 60px; height: 60px;
    background: #FF4D4D;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
}
.contact-card__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.contact-card__address { color: #666; margin-bottom: 20px; line-height: 1.6; }
.contact-card__links a {
    display: block; color: #1a1a1a; font-weight: 600; font-size: 1.1rem;
    margin-bottom: 5px; text-decoration: none; transition: color 0.2s;
}
.contact-card__links a:hover { color: #FF4D4D; }

.contact-card__map-btn {
    display: inline-block; margin-top: 20px; padding: 10px 25px;
    border: 1px solid #ddd; border-radius: 50px;
    text-decoration: none; color: #1a1a1a; font-weight: 600; font-size: 0.9rem;
    transition: all 0.3s;
}
.contact-card__map-btn:hover { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.contact-card__map-btn.filled { background: #FF4D4D; color: #fff; border-color: #FF4D4D; }
.contact-card__map-btn.filled:hover { background: #e04444; }

/* Форма зворотного зв'язку */
.modern-form-section { padding: 80px 0; background: #fff; }
.form-wrapper { max-width: 700px; margin: 0 auto; text-align: center; }
.form-header { margin-bottom: 40px; }
.form-header h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 10px; }
.central-form { display: flex; flex-direction: column; gap: 20px; }

/* Поля вводу */
.input-group { position: relative; }
.input-group i {
    position: absolute; left: 20px; top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}
.input-group input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    border: 2px solid #eee; border-radius: 12px;
    font-size: 1.1rem; font-family: 'Inter', sans-serif;
    transition: border-color 0.3s; outline: none; background: #f9f9f9;
}
.input-group input:focus { border-color: #FF4D4D; background: #fff; }

/* Кнопка відправки форми */
.submit-btn {
    background: #FF4D4D; color: #fff; border: none;
    padding: 18px; border-radius: 12px;
    font-size: 1.1rem; font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.submit-btn:hover { background: #e04444; transform: translateY(-2px); }
.privacy-note { margin-top: 15px; font-size: 0.85rem; color: #999; }

/* Карта */
.map-section { padding-bottom: 80px; background: #fff; }
.map-wrapper {
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 8px solid #fff;
    height: 450px;
    position: relative;
    transform: translateY(-50px); /* Ефект наїзду на верхній блок */
    z-index: 2;
}

/* =========================================
   9. FOOTER (ПІДВАЛ)
   ========================================= */
.footer { background-color: #222; color: #fff; padding-top: 80px; }
.footer__inner { 
    display: grid; 
    grid-template-columns: 1.5fr 1fr 1fr; /* Ліва колонка ширша */
    gap: 40px; 
    padding-bottom: 60px; 
}
.footer__logo { 
    font-family: var(--font-heading); font-size: 24px; font-weight: 800; 
    color: #fff; display: block; margin-bottom: 20px; 
}
.footer__desc { color: #888; font-size: 14px; max-width: 300px; }
.footer__title { font-size: 18px; margin-bottom: 25px; color: #fff; }
.footer__list li { margin-bottom: 15px; }
.footer__list a { color: #aaa; font-size: 14px; }
.footer__list a:hover { color: var(--color-accent); }
.contacts-list i { color: var(--color-accent); margin-right: 10px; width: 20px; }
.contacts-list li { color: #aaa; font-size: 14px; display: flex; align-items: start; }
.contacts-list a { color: #aaa; font-size: 14px; text-decoration: none; transition: color .2s ease; word-break: break-word; }
.contacts-list a:hover, .contacts-list a:focus-visible { color: var(--color-accent); text-decoration: underline; }
.footer__bottom { border-top: 1px solid #333; padding: 20px 0; font-size: 13px; color: #666; text-align: center; }

/* =========================================
   10. MEDIA QUERIES (АДАПТИВНІСТЬ)
   Правила для менших екранів
   ========================================= */

/* Планшети і менше (менше 992px) */
@media (max-width: 992px) {
    .nav__list { display: none; } /* Ховаємо меню */
    .mobile-toggle { display: block; } /* Показуємо кнопку "бургер" */
    .header__top { display: none; }
    .promotion__title { font-size: 32px; }
    
    .footer__inner { grid-template-columns: 1fr; } /* Футер в одну колонку */
    .catalog-main__inner { grid-template-columns: 1fr; }
    .catalog-main__filters { display: none; }
    
    .product-wrapper { grid-template-columns: 1fr; gap: 30px; } /* Товар: фото над текстом */
    .product-title { font-size: 26px; }
    .product-actions { flex-direction: column; }
}

/* Телефони (менше 768px) */
@media (max-width: 768px) {
    .default-banner { padding: 80px 0; background-position: center bottom; }
    .default-banner__title { font-size: 32px; }
    
    .services-list { grid-template-columns: 1fr; } /* Послуги в одну колонку */
    
    .slider-arrow { width: 40px; height: 40px; font-size: 16px; }
    .slider-arrow.prev { left: 10px; }
    .slider-arrow.next { right: 10px; }
    
    .page-hero__title { font-size: 2rem; }
    .contacts-grid { grid-template-columns: 1fr; }
    .input-group input { font-size: 1rem; }
    
    /* Прибираємо ефект наїзду карти на мобільному, щоб не ламало верстку */
    .map-wrapper {
        transform: none;
        height: 300px;
        margin-top: 40px;
    }
}
/* ПОРАДИ */
/* Контейнер для списку питань */
.faq-container {
    max-width: 800px; /* Робимо вужчим, щоб читати було зручно */
    margin: 0 auto;   /* Центруємо по горизонталі */
}

/* Одне питання (віконце) */
.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px; /* Відступ між питаннями */
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* Легка тінь */
    border: 1px solid #eee;
    overflow: hidden; /* Щоб контент не вилазив за заокруглені кути */
}

/* Кнопка-заголовок (на яку тиснеш) */
.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex; /* Щоб рознести текст і стрілку */
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa; /* Легке підсвічування при наведенні */
}

/* Стрілочка */
.faq-arrow {
    font-size: 0.8rem;
    color: #e7433a; /* Твій акцентний колір */
    transition: transform 0.3s ease; /* Плавний поворот */
}

/* Клас active додасться через JS, коли питання відкрите */
.faq-question.active .faq-arrow {
    transform: rotate(180deg); /* Перевертаємо стрілку */
}

.faq-question.active {
    color: #e7433a; /* Текст стає помаранчевим при відкритті */
}

/* Блок з відповіддю (спочатку схований) */
.faq-answer {
    max-height: 0; /* Висота 0 - сховано */
    overflow: hidden; /* Все що не влізло - обрізати */
    transition: max-height 0.4s ease-out; /* Плавне виїжджання */
    background-color: #fff;
}

.faq-content {
    padding: 0 25px 25px 25px; /* Відступи для тексту всередині */
    color: #555;
    line-height: 1.6;
}
/* Контейнер для карток */
.details-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Стиль картки */
.info-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card.highlight {
    border-top: 4px solid #e53935; /* Акцентний колір StarBruk */
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.card-header i {
    font-size: 24px;
    color: #e53935;
}

.card-header h3 {
    font-size: 20px;
    margin: 0;
    font-weight: 700;
}

/* Списки всередині карток */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list .label {
    font-size: 14px;
    color: #777;
    margin-bottom: 4px;
}

.info-list .value {
    font-weight: 600;
    color: #333;
}

.sub-list {
    background: #f9f9f9;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 8px;
}

.sub-list div {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 4px 0;
}

/* Технічні характеристики */
.tech-specs-container {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.tech-specs-container h3 {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.specs-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #fcfcfc;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
}

.specs-item span {
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
}

.specs-item strong {
    font-size: 15px;
    color: #222;
}

@media (max-width: 600px) {
    .specs-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== СТИЛІ ДИНАМІЧНОГО КАЛЬКУЛЯТОРА ===== */
.thickness-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
.thickness-card {
    border: 2px solid var(--color-border); border-radius: 8px; padding: 12px 10px;
    text-align: center; cursor: pointer; transition: var(--transition); background: var(--color-white);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.thickness-card:hover { border-color: var(--color-accent); }
.thickness-card.active { border-color: var(--color-accent); background: rgba(231,67,58,0.05); }
.thickness-card__mm { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 800; color: var(--color-dark); line-height: 1; margin-bottom: 4px; }
.thickness-card__use { font-size: 0.75rem; color: #666; font-weight: 500;}

.color-toggle { display: flex; gap: 10px; }
.color-radio { flex: 1; cursor: pointer; }
.color-radio input { display: none; }
.color-btn {
    display: block; text-align: center; padding: 12px; border: 2px solid var(--color-border);
    border-radius: 8px; font-size: 0.9rem; font-weight: 600; color: #555; transition: var(--transition); background: #fff;
}
.color-radio input:checked + .color-btn {
    border-color: var(--color-accent); background: var(--color-accent); color: #fff;
}

/* Стиль для select */
select.calc-field { cursor: pointer; background-image: url('data:image/svg+xml;utf8,<svg fill="%232c3e50" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>'); background-repeat: no-repeat; background-position-x: 96%; background-position-y: 50%; }