

/* ==========================================================================
   1. ПОВТОРЯЕМЫЕ КОМПОНЕНТЫ (UI-Kit, который мы используем везде)
   ========================================================================== */

/* Кнопки мессенджеров (из Контактов, но пригодятся в карточке товара и футере) */
.messenger-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.messenger-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.messenger-btn--wa { background-color: #25D366; }
.messenger-btn--tg { background-color: #0088cc; }

/* Универсальные Табы / Переключатели (использовали в маршрутах, пригодятся в FAQ и карточке) */
.ui-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}
.ui-tabs__btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #555;
}
.ui-tabs__btn.is-active {
    background: #0066cc; /* Твой акцентный цвет */
    color: #fff;
    border-color: #0066cc;
}

/* Универсальная сетка контента (2 колонки: десктоп -> 1 колонка: мобильный) */
.ui-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
@media (max-width: 768px) {
    .ui-grid-2 { grid-template-columns: 1fr; }
}

/* Нативное модальное окно (для превью картинок в корзине и макетов) */
/* МОДАЛЬНОЕ ОКНО ДЛЯ ИЗОБРАЖЕНИЯ */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85); /* Размытие фона */
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Класс активации для плавного появления */
.image-modal.is-open {
    display: block;
    opacity: 1;
}

/* Контент внутри модалки (само крупное изображение) */
.image-modal__content {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.image-modal.is-open .image-modal__content {
    transform: scale(1);
}

/* Кнопка закрытия (крестик) */
.image-modal__close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.image-modal__close:hover {
    color: #bbb;
}




/* ==========================================================================
   2. СТИЛИ ДЛЯ СЕРВИСНЫХ СТРАНИЦ (Тематические блоки)
   ========================================================================== */

/* Блок: Карточки технологий (из требований к макетам) */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.tech-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    overflow: hidden;
}

.tech-card__header {
    background: #edf2f7;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-card__title {
    font-size: 16px;
    font-weight: bold;
    color: #2d3748;
    margin: 0;
}

.tech-card__body {
    padding: 20px;
}

.tech-card__text {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
    color: #4a5568;
}

.tech-card__text:last-child {
    margin-bottom: 0;
}

.tech-card__text strong {
    color: #1a202c;
}

@media (max-width: 768px) {
    .req-grid {
        grid-template-columns: 1fr;
    }
}


/* Блок: Списки "Да / Нет" или "Внимание / Успех" */
.ui-card-notice { padding: 25px; border-radius: 6px; border: 1px solid #ddd; }
.ui-card-notice--danger { background-color: #fff5f5; border-color: #feb2b2; }
.ui-card-notice--success { background-color: #f0fff4; border-color: #9ae6b4; }

/* ==========================================================================
   3. СТИЛИ ДЛЯ ПОСАДОЧНЫХ СТРАНИЦ
   ========================================================================== */
   
/* Стили для страницы-хаба печати */
.print-hub {
    max-width: 1200px;
    margin: 20px auto 20px;
    padding: 0 0 30px 0;
}

.print-hub__header {
    margin-bottom: 20px;
    text-align: left; /* Оставляем естественное выравнивание для живого текста */
}

.print-hub__title {
    font-size: 34px;
    font-weight: bold;
    color: #111;
    margin-bottom: 25px;
}

.print-hub__intro {
    font-size: 16px;
    line-height: 1.6;
    color: #334155;
}

.print-hub__intro p {
    margin: 0 0 15px 0;
}

.print-hub__lead {
    font-weight: bold;
    color: #ff5311; /* Твой базовый фирменный оранжево-красный */
    margin-top: 20px !important;
}

/* Карточки-направления */
.hub-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -5px rgba(0, 0, 0, 0.1);
}

.hub-card--corporate {
    border-color: #cbd5e1;
    background: #f8fafc;
}

/* Избавляемся от синего фона и текста в тегах розницы */
.hub-card__tag {
    align-self: flex-start;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    color: #ff5311; /* Наш оранжево-красный */
    background: #fff0eb; /* Нежный оранжево-пастельный фон */
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hub-card__tag--alt {
    color: #475569;
    background: #e2e8f0;
}

.hub-card__title {
    font-size: 22px;
    font-weight: bold;
    color: #1e293b;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.hub-card__body {
    flex-grow: 1; /* Выталкивает кнопку вниз, выравнивая низ карточек */
    display: flex;
    flex-direction: column;
}

.hub-card__text {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 15px 0;
}

/* Визуальный блок со скриншотом/тиражом внутри карточки */
.hub-card__visual {
    margin: 20px 0 35px 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
    height: 220px;
}

.hub-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Кнопки действий */
.hub-card__action {
    margin-top: auto;
}

.landing-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Главная розничная кнопка — теперь строго оранжево-красная */
.landing-btn--primary {
    background-color: #ff5311;
    color: #fff !important;
    border: 1px solid #e04408;
}

.landing-btn--primary:hover {
    background-color: #e04408;
    box-shadow: 0 4px 12px rgba(255, 83, 17, 0.25);
    text-decoration:none;
}

/* Корпоративная кнопка — глубокий серый/серый графит (цвет оборудования и корзины) */
.landing-btn--corporate {
    background-color: #334155; /* Тот самый серый из .print-hub__intro */
    color: #fff !important;
    border: 1px solid #1e293b;
}

.landing-btn--corporate:hover {
    background-color: #1e293b;
    box-shadow: 0 4px 12px rgba(51, 65, 85, 0.25);
    text-decoration:none;
}

/* Блок выгод и списки внутри карточек */
.hub-card__benefits {
    margin-bottom: 25px;
}

.hub-card__benefits-title {
    font-size: 15px;
    font-weight: bold;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.hub-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hub-card__list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
}

/* Фирменная оранжево-красная точка вместо стандартного дефолтного маркера */
.hub-card__list li::before {
    content: "•";
    position: absolute;
    left: 5px;
    color: #ff5311;
    font-size: 18px;
    top: -2px;
}

@media (max-width: 768px) {
    .print-hub__title { font-size: 26px; }
    .hub-card { padding: 25px; }
    .hub-card__title { font-size: 18px; }
}

/* Стили для посадочной страницы Именных подарков */
.gifts-landing {
    max-width: 1200px;
    margin: 20px auto 40px;
    padding: 0;
}

/* Баннерная часть */
.gifts-banner {
    margin-bottom: 50px;
    background: #f8fafc; /* Мягкий светлый серый для контраста с текстом */
    border-radius: 12px;
    padding: 40px;
    border: 1px solid #e2e8f0;
}

.gifts-banner__title {
    font-size: 36px;
    font-weight: bold;
    color: #111;
    margin-bottom: 8px;
}

.gifts-banner__subtitle {
    font-size: 18px;
    font-weight: bold;
    color: #ff5311; /* Твой фирменный оранжево-красный */
    margin-bottom: 25px;
}

.gifts-banner__intro {
    font-size: 16px;
    line-height: 1.6;
    color: #334155;
    max-width: 950px;
}

.gifts-banner__intro p {
    margin: 0 0 15px 0;
}

.gifts-banner__intro p:last-child {
    margin-bottom: 0;
}

/* Галерея и карточки подарков */
.gifts-gallery__main-title {
    font-size: 24px;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 30px;
    text-align: left;
}

.gift-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gift-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -5px rgba(0, 0, 0, 0.1);
}

/* Оболочка под твои будущие фото (сохраняем пропорции кадра) */
.gift-card__image-wrapper {
    width: 100%;
    height: 260px;
    background: #e2e8f0; /* Временный серый плейсхолдер до загрузки фото */
    overflow: hidden;
}

.gift-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gift-card:hover .gift-card__img {
    transform: scale(1.03); /* Легкий интерактивный зум при наведении */
}

.gift-card__content {
    padding: 30px;
    flex-grow: 1;
}

.gift-card__title {
    font-size: 20px;
    font-weight: bold;
    color: #1e293b;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.gift-card__text {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

/* Футер страницы (Блок заказа) */
.gifts-footer {
    margin-top: 50px;
}

.gifts-footer__box {
    background: #334155; /* Глубокий серый графит */
    border-radius: 12px;
    padding: 40px;
    color: #fff;
    text-align: center;
    border: 1px solid #1e293b;
}

.gifts-footer__title {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    margin: 0 0 15px 0;
}

.gifts-footer__text {
    font-size: 15px;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 800px;
    margin: 0 auto 30px;
}

.gifts-footer__text strong {
    color: #cbd5e1;
}

.gifts-footer__action {
    max-width: 320px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .gifts-banner { padding: 25px; }
    .gifts-banner__title { font-size: 28px; }
    .gift-card__image-wrapper { height: 200px; }
    .gift-card__content { padding: 20px; }
    .gifts-footer__box { padding: 25px; }
}


/* Общие стили для сервисных страниц подвала */
.service-page {
    margin: 20px auto 60px;
    padding: 0 20px;
}

.service-page__header {
    margin-bottom: 40px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 25px;
}

.service-page__title {
    font-size: 32px;
    font-weight: bold;
    color: #111;
    margin-bottom: 15px;
}

.service-page__lead {
    font-size: 16px;
    line-height: 1.6;
    color: #334155;
}

.service-page__text {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 15px 0;
}

/* Зоны доставки */
.delivery-zone {
    margin-bottom: 40px;
}

.delivery-zone__title {
    font-size: 22px;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 20px;
}

.delivery-method {
    background: #f8fafc;
    border-left: 4px solid #ff5311; /* Наш фирменный красно-оранжевый */
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
}

.delivery-method__name {
    font-size: 16px;
    font-weight: bold;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.delivery-method__text {
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
    margin: 0 0 5px 0;
}

/* Заметки / Важная информация (Блок-цитата) */
.service-page__note {
    background: #fff0eb; /* Теплый светлый красно-оранжевый подтон */
    border: 1px solid #ff5311;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0 0 0;
}

.service-page__note-title {
    font-size: 16px;
    font-weight: bold;
    color: #ff5311;
    margin: 0 0 10px 0;
}

.service-page__note p {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

/* Стили аккордеона FAQ */
.faq-accordion {
    margin-top: 20px;
}

.faq-item {
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

/* При раскрытии немного подсвечиваем рамку фирменным цветом */
.faq-item[open] {
    border-color: #ff5311;
}

.faq-item__question {
    font-size: 16px;
    font-weight: bold;
    color: #1e293b;
    padding: 20px;
    cursor: pointer;
    list-style: none; /* Убираем дефолтную стрелку в Chrome/Firefox */
    position: relative;
    padding-right: 50px; /* Место под нашу стрелочку */
    user-select: none;
}

/* Убираем дефолтную стрелку для Safari */
.faq-item__question::-webkit-details-marker {
    display: none;
}

/* Создаем свою красивую стрелочку на чистом CSS */
.faq-item__question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #ff5311;
    font-weight: 300;
    transition: transform 0.2s ease;
}

/* Если аккордеон открыт — превращаем плюс в минус или поворачиваем */
.faq-item[open] .faq-item__question::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-item__answer {
    padding: 0 20px 20px 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.faq-item__answer .service-page__text {
    margin: 15px 0 0 0;
}
/* Баннер Cookie */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: calc(100% - 40px);
    max-width: 800px;
    background-color: #1e293b; /* Глубокий темный графит */
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 16px 24px;
    z-index: 9999;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

/* Класс для скрытия баннера (с легким эффектом вылета вниз) */
.cookie-banner--hidden {
    transform: translateX(-50%) translateY(150%);
    opacity: 0;
    pointer-events: none;
}

.cookie-banner__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-banner__text {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: #cbd5e1; /* Мягкий светлый текст */
}

.cookie-banner__link {
    color: #ff5311; /* Наш фирменный акцентный цвет */
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-banner__link:hover {
    color: #ff733e;
    text-decoration: none;
}

.cookie-banner__btn {
    background-color: #ff5311; /* Наш фирменный цвет */
    color: #ffffff !important;
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.cookie-banner__btn:hover {
    background-color: #ff733e;
}

/* Адаптив под мобилки */
@media (max-width: 640px) {
    .cookie-banner {
        bottom: 10px;
        width: calc(100% - 20px);
        padding: 16px;
    }
    .cookie-banner__container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .cookie-banner__btn {
        width: 100%;
        text-align: center;
    }
}

/* Стили для 404 */
.error-page {
    text-align: center;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.error-page__content {
    max-width: 500px;
}
.error-page__code {
    font-size: 120px;
    font-weight: 900;
    color: #e2e8f0;
    line-height: 1;
    margin-bottom: 20px;
}
.error-page__title {
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 15px;
}
.error-page__text {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.6;
}
.error-page__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.error-page__btn {
    display: inline-block;
    text-decoration: none;
}
.error-page__link {
    color: #1e293b;
    font-weight: bold;
    text-decoration: underline;
}
.error-page__link:hover {
    color: #ff5311;
}
@media (max-width: 480px) {
    .error-page__actions {
        flex-direction: column;
        gap: 15px;
    }
    .error-page__btn {
        width: 100%;
    }
}

/* ==========================================================================
   ОБЩИЕ НАСТРОЙКИ КОНТЕЙНЕРОВ И БЛОКА 1
   ========================================================================== */
.video-section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: sans-serif;
    box-sizing: border-box;
}

.social-hero-block {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-bottom: 30px;
    margin-top: 20px;
    background: #1a1a1a;
    padding: 40px;
    border-radius: 16px;
}

.hero-content {
    flex: 1 1 400px;
}

.hero-content h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #ffffff;
}

.hero-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 24px;
}

.social-btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 0 15px 0 0;
    background: #ff5722;
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s;
}

.social-btn:hover { background: #e64a19; }

.hero-video-wrapper {
    flex: 1 1 500px;
    border-radius: 12px;
    overflow: hidden;
}

.hero-video-container {
    width: 100%;
}

.hero-video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000;
}


/* ==========================================================================
   БЛОК 2: КАРУСЕЛЬ СТОРИС
   ========================================================================== */
.stories-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 60px;
}

.stories-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Скрываем скроллбар в Firefox */
}

.stories-carousel::-webkit-scrollbar {
    display: none; /* Скрываем скроллбар в Chrome/Safari */
}

.story-thumb-wrapper {
    flex: 0 0 calc(25% - 12px); /* 4 штуки на десктопе */
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.story-thumb-wrapper:hover {
    transform: scale(1.03);
}

.story-thumb {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 12px;
    background: #2a2a2a;
    display: block;
}

/* Стрелки слайдера */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 26, 26, 0.85);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: background 0.2s;
}
.left-arrow { left: -20px; }
.right-arrow { right: -20px; }
.carousel-arrow:hover { background: #ff5722; color: #fff; }


/* ==========================================================================
   БЛОК 3: СЕТКА ГОРИЗОНТАЛЬНЫХ ВИДЕО
   ========================================================================== */
.horizontal-video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
}

.horizontal-item {
    display: flex;
    flex-direction: column;
}

.video-thumb-overlay {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.standard-player-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.video-thumb-overlay:hover .standard-player-poster {
    transform: scale(1.04);
}

.play-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 87, 34, 0.9);
    color: #fff;
    width: 54px; height: 54px;
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.video-title {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
}

/* ==========================================================================
   СТИЛИ ДЛЯ ЗАГЛУШЕК И ЗАГОЛОВКОВ ВНУТРИ РАЗДЕЛА
   ========================================================================== */
.section-block-header {
    margin-bottom: 24px;
    margin-top: 40px; /* Отступ от предыдущего блока */
    width: 100%;
}

/* Оранжевая маленькая надпись сверху (надзаголовок) */
.section-subtitle {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ff5722; /* Наш фирменный оранжевый */
    font-weight: 700;
    margin-bottom: 6px;
}

/* Главный заголовок подраздела */
.section-main-title {
    font-size: 24px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

/* Легкое, ненавязчивое описание контента */
.section-description {
    font-size: 15px;
    line-height: 1.5;
    color: #aaaaaa;
    max-width: 700px; /* Чтобы текст не растягивался во всю ширину экрана */
    margin: 0;
}

/* Делаем первый заголовок чуть ближе к первому экрану */
.video-section-container .section-block-header:first-child {
    margin-top: 20px;
}
/* ==========================================================================
   МОДАЛЬНЫЕ ОКНА (БАЗА)
   ========================================================================== */
.modal-window {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.93);
    z-index:9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.25s ease;
}

.modal-window.modal-hidden {
    opacity: 0;
    pointer-events: none;
    z-index:-9999;
}

.modal-close-btn {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none;
    color: rgba(255,255,255,0.7); font-size: 42px;
    cursor: pointer; transition: color 0.2s;
    z-index: 100001;
    line-height: 1;
}
.modal-close-btn:hover { color: #ff5722; }

/* ВЕРТИКАЛЬНАЯ МОДАЛКА (Строго под телефон 9:16) */
.vertical-modal-container {
    width: 100%;
    max-width: 420px; /* Идеальная телефонная ширина */
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}
#vertical-modal-player {
    width: 100%;
    height: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover; /* Обрезка краев, эффект Reels */
    border-radius: 16px;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* ГОРИЗОНТАЛЬНАЯ МОДАЛКА (Кинотеатр 16:9) */
.horizontal-modal-container {
    width: 90vw;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    display: flex;
    justify-content: center;
    align-items: center;
}
#horizontal-modal-player {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain; /* Картинка не обрезается */
    border-radius: 8px;
    background: #000;
}


/* ==========================================================================
   АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ СИСТЕМ
   ========================================================================== */
@media (max-width: 1024px) {
    .story-thumb-wrapper { flex: 0 0 calc(33.333% - 11px); } /* 3 сторис */
    .left-arrow { left: -10px; }
    .right-arrow { right: -10px; }
}

@media (max-width: 768px) {
    .story-thumb-wrapper { flex: 0 0 calc(50% - 8px); } /* 2 сторис */
    .horizontal-video-grid { grid-template-columns: 1fr; gap: 24px; } /* Сетка в 1 ряд */
    .carousel-arrow { display: none; } /* На мобилках листают пальцем */
    .social-hero-block { padding: 20px; gap: 20px; }

    .horizontal-modal-container {
        width: 96vw;
    }
}

/* Настройки скролла для ленты сторис в модалке */
.stories-scroll-container {
    width: 100%;
    max-width: 420px;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory; /* Фиксация скролла строго по слайдам */
    scrollbar-width: none;
}
.stories-scroll-container::-webkit-scrollbar {
    display: none;
}

.story-video-slide {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start; /* Привязка начала слайда */
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    pointer-events: auto !important;
}


.story-video-slide .story-player {
    width: 100%;
    height: 100%;
    aspect-ratio: 9 / 16;
    pointer-events: auto !important;
    position: relative;
    z-index: 5;
    object-fit: cover;
    background: #000;
}
/* Принудительно возвращаем контролы при наведении мыши на слайд товара */
.story-video-slide:hover video::-webkit-media-controls-panel {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.2s ease-in-out !important;
}
.story-video-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(4px); /* Легкое размытие для эстетики */
}
/* Корректируем кнопку закрытия, чтобы SVG центрировался */
.modal-close-btn {
    position: absolute;
    top: 20px; right: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100001;
    transition: background 0.2s, color 0.2s;
}
.modal-close-btn:hover { background: #ff5722; color: #fff; }
