/* ================================================ */
/* === ОСНОВНЫЕ СТИЛИ (ДЕЙСТВУЮТ ВСЕГДА) === */
/* ================================================ */



/* * =========================================
 * ИСПРАВЛЕНИЯ ДЛЯ ВЁРСТКИ
 * =========================================
 */

/* 1. Убираем отступы по умолчанию и исправляем белые полосы */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    /* Предотвращаем появление горизонтальной прокрутки */
    overflow-x: hidden;
}

/* 2. Настраиваем Flexbox-контейнер для "липкого" футера */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Минимальная высота равна высоте экрана */
}

/* 3. Заставляем основной контент растягиваться */
main {
    flex: 1;
    /* <main> займет всё доступное пространство, отодвигая футер вниз */
}

/* Универсальное правило для корректного расчета размеров блоков */
* {
    box-sizing: border-box;
}

/* Шрифты */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

/* Переменные */
:root {
    --red: #e30613;
    --black: #000000;
    --white: #ffffff;
    --gray: #f5f5f5;
    --dark-gray: #1e1e1e;
    --text-dark: #333;
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.section-title {
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
}

/* --- Header --- */
header {
    background: var(--black);
    color: var(--white);
    padding: 20px 0;
    position: relative;
    z-index: 100;
}

header.header-transparent {
    background: transparent;
    position: absolute;
    width: 100%;
    top: 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    z-index: 1002;
    flex-shrink: 0;
}

header .logo img {
    height: 60px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--white);
    font-weight: 500;
    padding-bottom: 8px;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    height: 2px;
    width: 0;
    background: var(--red);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
}

/* --- Баннер на главной --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.full-banner {
    position: relative;
    height: 100vh;
    overflow: hidden;
    color: var(--white);
}

.full-banner .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 1s ease, visibility 1s ease;
}

.full-banner .slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.full-banner .slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.slide-content {
    position: absolute;
    top: 50%; /* ✅ Единственное изменение: смещаем блок выше центра */
    left: 10%; /* ✅ Сохраняем ваше выравнивание по левому краю */
    width: 80%; /* Используем проценты для лучшей адаптивности */
    transform: translateY(-50%);
    text-align: left; /* Убедимся, что текст выровнен по левому краю */
    z-index: 3;
}


.slide-content>* {
    opacity: 0;
    transform: translateY(20px);
}

.slide.active .slide-content>* {
    animation: fadeInUp 0.8s ease forwards;
}

.slide.active .slide-content .subtitle {
    animation-delay: 0.3s;
}

.slide.active .slide-content h1 {
    animation-delay: 0.5s;
}

.slide.active .slide-content p {
    animation-delay: 0.7s;
}

.slide.active .slide-content .cta-button {
    animation-delay: 0.9s;
}

.slide-content .subtitle {
    color: var(--red);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.slide-content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 18px;
    line-height: 1.6;
}

.slide-content .cta-button {
    display: inline-block;
    margin-top: 20px;
    background: var(--red);
    color: var(--white);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}



.full-banner .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(227, 6, 19, 0.7);
    border: none;
    color: white;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.full-banner .nav:hover {
    background: var(--red);
}

.full-banner .nav.prev {
    left: 20px;
}

.full-banner .nav.next {
    right: 20px;
}

/* --- Форма заявки --- */
.quote-form {
    background: var(--gray);
    padding: 60px 20px;
    text-align: center;
}

.quote-form h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.form-container {
    max-width: 600px;
    margin: auto;
}

.quote-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quote-form input[type="text"],
.quote-form input[type="email"] {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.quote-form label {
    font-size: 14px;
    text-align: left;
}

.quote-form button {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 14px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.quote-form button:hover {
    background: #b9000f;
}

/* --- Категории продукции --- */
.product-categories {
    padding: 60px 20px;
    text-align: center;
}

.product-categories h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.product-categories .product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.product-card {
    min-width: 220px;
    background: var(--gray);
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s ease, background 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    background: #e6e6e6;
}

/* --- Партнеры --- */
.partners {
    padding: 50px 20px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    overflow: hidden;
}

.partners h2 {
    font-size: 28px;
}

.logo-gallery {
    display: flex;
    gap: 40px;
    animation: scroll-logos 30s linear infinite;
    width: max-content;
}

.logo-gallery img {
    height: 80px;
    flex-shrink: 0;
    object-fit: contain;
    filter: grayscale(1);
    transition: filter 0.3s;
}

.logo-gallery img:hover {
    filter: grayscale(0);
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}



/* --- Стили для "липкого" футера --- */

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

main {
    flex-grow: 1;
    /* Заставляет основное содержимое растягиваться */
}



/* --- Страница "О нас" --- */
.about-section {
    background: var(--white);
    padding: 60px 20px;
}

.about-section .section-title {
    margin-bottom: 50px;
}

.about-section .timeline {
    position: relative;
    padding-left: 30px;
    border-left: 3px solid var(--red);
    margin-top: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 5px;
    width: 18px;
    height: 18px;
    background: var(--red);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--red);
}

.timeline-year {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--red);
}

.timeline-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.timeline-content p {
    font-size: 15px;
    color: #444;
}

/* --- Стили для страницы "Контакты" (Исправленная версия) --- */

main.contact-section {
    padding: 60px 20px;
}

/* Используем более конкретный селектор для надежности */
main.contact-section .contact-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.contact-wrapper .contact-map,
.contact-wrapper .contact-info {
    flex: 1;
    /* Каждая колонка занимает половину места */
    min-width: 0;
    /* Предотвращает переполнение flex-элементов */
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 550px;
    /* Задаем минимальную высоту для карты */
    border-radius: 8px;
    border: 1px solid #ddd;
}

.contact-info h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.contact-details li {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-page-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-page-form input[type="text"],
.contact-page-form input[type="email"],
.contact-page-form input[type="tel"],
.contact-page-form textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.2s ease;
}

.contact-page-form input:focus,
.contact-page-form textarea:focus {
    outline: none;
    border-color: var(--red);
}

.contact-page-form button {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    align-self: flex-start;
}

.contact-page-form button:hover {
    background: #b9000f;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-top: 5px;
}

.consent-checkbox input[type="checkbox"] {
    margin-top: 4px;
    /* Улучшаем вертикальное выравнивание галочки */
    flex-shrink: 0;
}

.consent-checkbox a {
    color: var(--red);
    text-decoration: underline;
}
/* --- Страница "Сертификаты" --- */
main.certificates-section {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 20px;
}

.certificates-section .section-title {
    color: var(--white);
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -30px auto 50px auto;
    color: #ccc;
    line-height: 1.6;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.cert-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #2a2a2a;
}

.cert-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.cert-item:hover img {
    transform: scale(1.1);
    opacity: 0.3;
}

.cert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-item:hover .cert-overlay {
    opacity: 1;
}

.cert-view-button {
    padding: 12px 28px;
    border-radius: 50px;
    background: var(--red);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cert-item:hover .cert-view-button {
    transform: scale(1);
}

.popup-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.popup-modal.is-active {
    display: flex;
}

.popup-content {
    display: block;
    max-width: 85%;
    max-height: 90vh;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.popup-close:hover {
    color: #ccc;
}

/* --- Футер --- */
footer {
    background: var(--dark-gray);
    color: var(--white);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 40px 20px;
}

.footer-col {
    flex: 1 1 250px;
    margin: 10px;
}

.footer-col h4 {
    margin-bottom: 15px;
    color: var(--red);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
    font-size: 14px;
}


/* ======================================================= */
/* === ОБЩИЙ БЛОК ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ (до 768px) === */
/* ======================================================= */

@media (max-width: 768px) {

    /* --- Мобильный Header и Гамбургер-меню --- */
    header,
    header.header-transparent {
        position: relative;
        background: var(--black);
    }

    header .nav-container {
        display: none;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 2.2rem;
        height: 2.2rem;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .hamburger-menu .line {
        width: 2.2rem;
        height: 0.25rem;
        background: var(--white);
        border-radius: 10px;
        transition: all 0.3s linear;
        transform-origin: 1px;
    }

    .nav-container.is-active {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(10, 10, 10, 0.98);
        z-index: 1000;
        justify-content: center;
        align-items: center;
    }

    .nav-container.is-active nav ul {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .nav-container.is-active nav a {
        font-size: 1.8rem;
        font-weight: 600;
        padding: 0.5rem 1rem;
    }

    .hamburger-menu.is-active .line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger-menu.is-active .line:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .hamburger-menu.is-active .line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* --- Мобильный баннер на главной --- */
    .full-banner {
        height: 70vh;
        /* Адаптивная высота для мобильных */
    }

    .slide-content {
        top: 50%;
        left: 5%;
        right: 5%;
        width: 90%;
        text-align: center;
    }

    .slide-content h1 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 14px;
    }
    /* Сокращаем отступы для мобильных */
    .full-banner .nav {
        background: transparent;
        border: none;
        font-size: 24px;
        /* ✅ Уменьшаем размер в 2 раза */
        font-weight: 400;
        color: white;
        padding: 5px 10px;
        /* Уменьшаем отступы */
        text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
    }

    /* --- Прочие мобильные стили --- */
    .product-categories .product-grid {
        flex-direction: column;
    }

    .partners {
        /* Анимация уже выключена для мобильных, если нет hover */
    }

    .contact-wrapper {
        flex-direction: column;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }

    .cert-carousel {
        height: auto;
    }

    .prev-cert,
    .next-cert {
        left: 10px;
        right: auto;
    }

    .next-cert {
        left: auto;
        right: 10px;
    }
    


    /* --- Адаптивность для страницы "продукция" --- */
        .product-nav-pills .container {
            flex-wrap: wrap;
            /* Возвращаем перенос на новую строку */
            overflow-x: hidden;
            /* Убираем горизонтальную прокрутку */
            padding-bottom: 0;
        }



        /* --- Адаптивность для страницы "Политика конфиденциальности" --- */
        /* Используем #privacy-policy для более точного применения стилей */
    
        main#privacy-policy {
            padding: 40px 15px;
            /* Уменьшаем общие отступы на странице */
        }
    
        /* Исправляем главный заголовок */
        #privacy-policy .section-title {
            font-size: 26px;
            line-height: 1.3;
            margin-bottom: 30px;
        }
    
        #privacy-policy .privacy-intro {
            text-align: left;
            /* Выравниваем текст по левому краю для удобства */
            font-size: 15px;
            margin-bottom: 30px;
        }
    
        #privacy-policy .accordion-header {
            font-size: 16px;
            /* Уменьшаем шрифт заголовков в аккордеоне */
            padding: 15px;
            padding-right: 45px;
            /* Место для иконки +/- */
        }
    
        #privacy-policy .accordion-header::after {
            right: 15px;
            /* Подвигаем иконку +/- ближе к краю */
        }
    
        #privacy-policy .accordion-content p,
        #privacy-policy .accordion-content ul {
            font-size: 14px;
            /* Уменьшаем шрифт основного текста */
        }
}

/* Дополнительная точка для очень маленьких экранов */
@media (max-width: 600px) {
    .timeline {
        padding-left: 20px;
    }

    .timeline-item::before {
        left: -13px;
    }
}

/* --- Стили для страницы "Политика конфиденциальности" --- */
.privacy-section {
    padding: 60px 20px;
}

.privacy-intro {
    max-width: 800px;
    margin: -30px auto 40px auto;
    text-align: center;
    color: #555;
    line-height: 1.7;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid #ddd;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    position: relative;
    padding-right: 50px;
    /* Место для иконки */
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--red);
    transition: transform 0.3s ease;
}

.accordion-header.active::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    padding: 0 20px;
}

.accordion-content p,
.accordion-content ul {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #333;
}

.accordion-content ul {
    padding-left: 20px;
}

/* Стили для списка реквизитов */
.requisites-list {
    list-style: none;
    padding: 0;
}

.requisites-list li {
    margin-bottom: 1em;
    padding-left: 25px;
    position: relative;
}

.requisites-list li::before {
    content: '▪';
    color: var(--red);
    position: absolute;
    left: 0;
    top: 0;
}

.requisites-list li strong {
    display: block;
    color: var(--text-dark);
}



/* --- Стили для страницы "Продукция" --- */

/* Уменьшаем высоту баннера на этой странице */
.product-banner {
    height: 55vh;
    /* Высота чуть больше половины экрана */
    min-height: 450px;
    /* Минимальная высота для сохранения вида */
}

/* Секция с кнопками-переключателями */
.product-nav-pills {
    padding: 30px 20px;
    background: var(--gray);
    border-bottom: 1px solid #ddd;
}

.product-nav-pills .container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: nowrap;
    /* Запрещаем перенос */
    overflow-x: auto;
    /* Добавляем горизонтальную прокрутку */
    padding-bottom: 10px;
    /* Небольшой отступ снизу для тени скроллбара */
}

.nav-pill {
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 10px 25px;
    border-radius: 0px;
    /* Делаем кнопки овальными */
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-pill:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Стиль для активной кнопки */
.nav-pill.active {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Стиль для баннера уменьшенной высоты */
.banner-half-height {
    height: 50vh;
    /* Высота в половину экрана (vh = viewport height) */
    min-height: 200px;
    /* Минимальная высота для очень низких экранов */
}

/* Стили для карточек продукции */



/* --- Стили для страницы категории продуктов --- */
.product-category-page {
    padding: 60px 20px;
}

.category-description {
    text-align: center;
    max-width: 700px;
    margin: -30px auto 50px auto;
    color: #555;
    line-height: 1.7;
}

.category-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
     justify-content: center; /* ✅ Центрируем карточки по горизонтали */
}

.product-item {
    background: #ffffff;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-item-image {
    height: 180px;
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
    /* Прячем части изображения, которые выходят за рамки */
}
.product-item-image img {
    max-width: 100%;
    max-height: 100%;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    flex-grow: 1;
    /* Заставляет название занимать доступное место, прижимая кнопку вниз */
}

.product-specs {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    min-height: 40px;
    /* Резервируем место для 2 строк описания */
}

.product-button {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}

.product-button:hover {
    background: #b9000f;
}


/* --- Стили для контента на страницах продукции --- */
.product-page-content ul,
.product-page-content ol {
    padding-left: 20px;
    margin-bottom: 1em;
}

.product-page-content li {
    margin-bottom: 0.5em;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
    font-size: 14px;
}

.product-table th,
.product-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.product-table th {
    background-color: #f7f7f7;
    font-weight: 600;
}



/* --- Стили для аккордеона в карточке товара --- */

/* Убедимся, что кнопка выглядит как надо */
.product-button.accordion-trigger {
    width: 100%;
    border: none;
    font-family: 'Montserrat', sans-serif;
    /* Наследуем шрифт */
}

/* Контейнер для опций покупки, скрыт по умолчанию */
.product-purchase-options {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, margin-top 0.3s ease-out;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Показываем контейнер при активации */
.product-purchase-options.is-open {
    max-height: 120px;
    /* Высота, достаточная для двух кнопок */
    margin-top: 15px;
    /* Отступ сверху при открытии */
}

/* Стили для ссылок покупки */
.purchase-link {
    display: block;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #ddd;
    transition: background-color 0.2s, color 0.2s;
}

.purchase-link.wholesale {
    background-color: #e9e9e9;
    color: var(--text-dark);
}

.purchase-link.wholesale:hover {
    background-color: #dcdcdc;
}

.purchase-link.retail {
    background-color: #005bff;
    /* Цвет Ozon */
    color: white;
    border-color: #005bff;
}

.purchase-link.retail:hover {
    background-color: #004ac9;
}
/* --- Стили для страницы категории продуктов --- */



/* --- Стили для блока оптом --- */
.wholesale-info {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--gray);
    border-top: 1px solid #ddd;
}

.slide-content .download-button {
    display: inline-block;
    margin-top: 20px;
    background: var(--red);
    color: var(--white);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}
.wholesale-info p {
    margin-bottom: 25px;
    font-size: 18px;
    color: var(--text-dark);
}
/* Кнопка для перехода на страницу оптовых закупок */


/* видео баннеры фв форме запроса */
.quote-form {
    position: relative;
    padding: 60px 20px;
    text-align: center;
    overflow: hidden;
    color: white;
}

.quote-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.quote-form .form-container {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
}

.quote-form input,
.quote-form button,
.quote-form label {
    color: white;
}

.quote-form input[type="text"],
.quote-form input[type="email"] {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.quote-form button {
    background: var(--red);
}

.section-spacer {
    height: 60px;
    /* стандартный отступ */
}

@media (max-width: 768px) {
    .section-spacer {
        height: 40px;
        /* меньше на мобильных */
    }
}



.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    /* ограничение по ширине на десктопе */
    margin: 30px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.about-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}


/* --- ПАТЧ ДЛЯ О НАС" --- */
/* --- FIX таймлайна --- */
.about-section .timeline {
    --accent: var(--red);
    --line-w: 3px;
    --rail: 28px;
    /* позиция линии */
    --dot: 14px;
    /* диаметр кружка */

    position: relative;
    padding-left: 60px;
    /* увеличиваем отступ для текста */
    border-left: none;
    /* отключаем старую линию */
}

/* вертикальная линия */
.about-section .timeline::before {
    content: "";
    position: absolute;
    left: var(--rail);
    top: 0;
    bottom: 0;
    width: var(--line-w);
    background: var(--accent);
}

/* точка */
.about-section .timeline-item::before {
    content: "";
    position: absolute;
    left: var(--rail);
    top: 0.75em;
    /* центрируем примерно по высоте года */
    width: var(--dot);
    height: var(--dot);
    border: 3px solid var(--accent);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px #fff;
    transform: translateX(-50%);
}

/* год */
.about-section .timeline-year {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 10px;
    line-height: 1.2;
}

/* адаптив */
@media (max-width: 768px) {
    .about-section .timeline {
        padding-left: 48px;
    }

    .about-section .timeline::before {
        left: 20px;
    }

    .about-section .timeline-item::before {
        left: 20px;
        top: 0.9em;
    }
}
/* === FIX: линия и точки выровнены, год не перекрывается === */
.about-section .timeline {
    /* настраиваемые переменные */
    --accent: var(--red);
    --line-w: 3px;
    /* толщина вертикальной линии */
    --rail: 24px;
    /* расстояние линии от ЛЕВОГО края самого таймлайна */
    --pad: 60px;
    /* паддинг слева под контент */
    --dot: 14px;
    /* диаметр точки без бордера */

    position: relative;
    padding-left: var(--pad) !important;
    /* двигаем контент вправо */
    border-left: none !important;
    /* убираем старую линию */
    margin-top: 0;
}

/* Рисуем вертикальную линию строго по --rail */
.about-section .timeline::before {
    content: "";
    position: absolute;
    left: var(--rail);
    top: 0;
    bottom: 0;
    width: var(--line-w);
    background: var(--accent);
}

/* Каждый кружок: считаем left с учётом паддинга контейнера */
.about-section .timeline-item {
    position: relative;
    margin: 36px 0;
}

.about-section .timeline-item::before {
    content: "";
    position: absolute;
    /* ключевая строка: позиция точки = линия (rail) минус паддинг таймлайна */
    left: calc(var(--rail) - var(--pad));
    top: 0.8em;
    /* по строке с годом */
    width: var(--dot);
    height: var(--dot);
    border: 3px solid var(--accent);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px #fff;
    /* зазор вокруг точки */
    transform: translateX(-50%);
    /* центрируем по линии */
}

/* Оформление года */
.about-section .timeline-year {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    margin: 0 0 8px;
    line-height: 1.1;
}

/* На всякий случай гасим любые старые псевдо-элементы у года */
.about-section .timeline-year::before,
.about-section .timeline-year::after {
    content: none !important;
}

/* Адаптив: уменьшаем паддинг, и автоматически пересчитывается left */
@media (max-width: 768px) {
    .about-section .timeline {
        --pad: 48px;
        --rail: 20px;
    }

    .about-section .timeline-item {
        margin: 28px 0;
    }
}

/* Перебиваем старые мобильные правила из файла */
@media (max-width: 600px) {
    .timeline {
        padding-left: var(--pad) !important;
    }

    .timeline-item::before {
        left: calc(var(--rail) - var(--pad)) !important;
    }
}


/* ===== Popup: wholesale ===== */
#wholesale-modal {
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#wholesale-modal .wholesale-modal__dialog {
    position: relative;
    width: min(680px, 92vw);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    color: var(--text-dark);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    padding: 28px 24px 22px;
}

#wholesale-modal .popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    line-height: 1;
    color: #999;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.wholesale-modal__title {
    font-size: 22px;
    line-height: 1.3;
    margin: 6px 0 16px;
    color: var(--text-dark);
}

.wholesale-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.wholesale-form label {
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.wholesale-form input,
.wholesale-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    font: 16px/1.4 'Montserrat', sans-serif;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.wholesale-form input:focus,
.wholesale-form textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, .12);
}

.wholesale-form .submit-btn {
    width: 100%;
    margin-top: 8px;
}

.wholesale-form__fineprint {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    text-align: center;
}

/* маленькие экраны */
@media (max-width: 600px) {
    .wholesale-modal__title {
        font-size: 18px;
    }
}

/*
 * =========================================
 * Стили для страницы "Фото продукции"
 * =========================================
 */

/* Стили для секции галереи */
.gallery-section {
    padding: 60px 0;
    /* Внутренние отступы сверху и снизу */
    background-color: #f9f9f9;
    /* Светлый фон для секции */
}

/* Общие стили для заголовков секций (если у вас их еще нет) */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

/* Сетка для карточек галереи */
.gallery-grid {
    display: grid;
    /* Создает адаптивные колонки: минимум 300px, максимум 1 фракция */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    /* Расстояние между карточками */
}

/* Стили для одной карточки */
.gallery-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    /* Скрывает все, что выходит за рамки скругленных углов */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-10px);
    /* Приподнимаем карточку при наведении */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Изображение в карточке */
.gallery-card img {
    width: 100%;
    height: 220px;
    /* Фиксированная высота для всех изображений */
    object-fit: cover;
    /* Изображение покроет всю область, сохранив пропорции */
    display: block;
}

/* Контентная часть карточки (текст) */
.gallery-card .card-content {
    padding: 20px;
    flex-grow: 1;
    /* Позволяет этому блоку занять все доступное место в карточке */
}

.gallery-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.25rem;
    color: #333;
}

.gallery-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

/*
 * =========================================
 * Стили для модального окна галереи (попапа)
 * =========================================
 */

/* Добавляем курсор-указатель на карточки, чтобы показать, что они кликабельны */
.gallery-card {
    cursor: pointer;
}

/* Затемняющий фон */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none;
    /* По умолчанию скрыто */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Активное состояние, когда попап виден */
.modal-overlay.is-active {
    display: flex;
    opacity: 1;
}

/* Контейнер для контента внутри попапа */
.modal-content {
    position: relative;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.is-active .modal-content {
    transform: scale(1);
}

/* Кнопка "Закрыть" (крестик) */
.modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 35px;
    height: 35px;
    background: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.1);
}

/* Контейнер самой карусели */
.carousel-container {
    position: relative;
    max-width: 85vw;
    max-height: 85vh;
    overflow: hidden;
}

/* Обертка для всех слайдов */
.carousel-slides {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

/* Отдельный слайд */
.carousel-slide {
    flex-shrink: 0;
    width: 100%;
    padding: 0 10px;
    /* Небольшой отступ по бокам, если нужно */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 80vh;
    /* Ограничение по высоте, чтобы картинка не была слишком большой */
    object-fit: contain;
    /* Сохраняет пропорции изображения */
    display: block;
    margin: 0 auto;
}

/* Кнопки навигации "вперед" и "назад" */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-nav.prev {
    left: -50px;
}

.carousel-nav.next {
    right: -50px;
}

@media (max-width: 900px) {
    .carousel-nav.prev {
        left: 5px;
    }

    .carousel-nav.next {
        right: 5px;
    }
}


/*
 * =========================================
 * Стили для главной карусели и Попап-окна
 * =========================================
 */

/* Контейнер для главной карусели */
.swiper.main-carousel {
    width: 100%;
    height: 450px;
    /* Высота карусели */
    padding: 10px 0 50px 0;
    /* Отступ снизу для пагинации */
}

/* Стили для одного слайда */
.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 85%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.swiper-slide:hover img {
    transform: scale(1.05);
}

/* Подпись под изображением */
.slide-caption {
    height: 15%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    background-color: #fff;
    border-top: 1px solid #eee;
}

/* Стилизация кнопок навигации */
.swiper-button-next,
.swiper-button-prev {
    color: var(--red);
}

/* Стилизация пагинации (точек) */
.swiper-pagination-bullet-active {
    background: var(--red);
}

/* --- Стили для попап-окна (остаются без изменений, но включены для полноты) --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.is-active {
    display: flex;
    opacity: 1;
}

.popup-content {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    animation: zoomIn 0.3s;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.popup-close:hover {
    transform: scale(1.1);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}