/* --- Стили для информационных страниц --- */

.site-page {
    padding-top: 40px;
    /* padding-bottom: 100px; */
}

/* Хлебные крошки (Breadcrumbs) */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 20px 0;
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
}

.breadcrumb li a:hover {
    color: #ee9118;
}

.breadcrumb .divider {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.3);
}

.breadcrumb li.active {
    color: #fff;
}

/* Заголовки */
.site-page h2 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #fff;
}

/* Контентный блок */
.site-page__content {
    line-height: 1.6;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.site-page__content p {
    margin-bottom: 20px;
}

/* Стилизация подчеркиваний как акцентов (как в твоем примере) */
.site-page__content u {
    text-decoration: none;
    color: #ee9118;
    font-weight: 500;
    margin-right: 5px;
}

/* Изображения в тексте */
.site-page__content img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 20px;
}

.site-page__content img[align="right"] {
    margin-left: 30px;
}

.site-page__content img[align="left"] {
    margin-right: 30px;
}

/* Списки (восстанавливаем маркеры, так как глобально они отключены) */
.site-page__content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 30px;
}

.site-page__content ul li {
    margin-bottom: 10px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 991.98px) {
    .site-page h2 {
        font-size: 32px;
    }
    
    .site-page__content {
        font-size: 16px;
    }

    .site-page__content img[align="right"],
    .site-page__content img[align="left"] {
        float: none;
        margin: 0 0 20px 0;
        display: block;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .site-page {
        padding-top: 20px;
        padding-bottom: 60px;
    }
}


/* Вводный текст */
.delivery-intro {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Основная карточка доставки */
.delivery-card {
    background-color: rgba(255, 255, 255, 0.03); /* Очень тонкий светлый фон для выделения на черном */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Тонкая рамка */
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Эффект при наведении */
.delivery-card:hover {
    border-color: #ee9118; /* Фирменный оранжевый при наведении */
}

/* Текстовая часть карточки */
.delivery-card__info {
    flex: 1;
}

/* Заголовок внутри карточки */
.delivery-card__title {
    font-size: 28px;
    font-weight: 600;
    color: #ee9118; /* Выделяем заголовок оранжевым */
    margin-bottom: 25px !important;
}

/* Список особенностей */
.delivery-card__list {
    margin: 20px 0;
    padding-left: 20px;
}

.delivery-card__list li {
    margin-bottom: 10px;
    position: relative;
    list-style: none;
}

/* Красивый маркер для списка */
.delivery-card__list li::before {
    content: "—";
    position: absolute;
    left: -20px;
    color: #ee9118;
}

/* Блок с изображением */
.delivery-card__image {
    width: 45%;
    border-radius: 15px;
    overflow: hidden;
    line-height: 0;
}

.delivery-card__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.delivery-card:hover .delivery-card__image img {
    transform: scale(1.05); /* Небольшой зум картинки при наведении на карточку */
}

/* Адаптивность для планшетов и телефонов */
@media (max-width: 1200px) {
    .delivery-card {
        padding: 30px;
    }
    .delivery-card__title {
        font-size: 24px;
    }
}

@media (max-width: 991px) {
    .delivery-card {
        flex-direction: column; /* Перестраиваем в одну колонку */
        align-items: flex-start;
    }
    .delivery-card__image {
        width: 100%;
        order: -1; /* Картинка будет над текстом на мобильных */
    }
}

/* Заголовки секций */
.section-title {
    font-size: 32px;
    color: #fff;
    margin: 60px 0 30px !important;
    border-left: 4px solid #ee9118;
    padding-left: 20px;
}

/* Стилизация этапов производства */
.process-steps {
    list-style: none;
    padding: 0;
    counter-reset: steps-counter;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.process-steps li {
    counter-increment: steps-counter;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 25px 25px 70px;
    border-radius: 15px;
    position: relative;
    font-size: 16px;
    line-height: 1.5;
}

.process-steps li::before {
    content: counter(steps-counter);
    position: absolute;
    left: 20px;
    top: 22px;
    width: 35px;
    height: 35px;
    background: #ee9118;
    color: #000;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.process-steps li strong {
    display: block;
    color: #ee9118;
    margin-bottom: 5px;
    font-size: 18px;
}

/* Галерея */
.production-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Эффект наведения на фото */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(238, 145, 24, 0.8); /* Оранжевый полупрозрачный фон */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay span {
    color: #000;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    border: 1px solid #000;
    padding: 8px 15px;
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Адаптивность */
@media (max-width: 991px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
    .production-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .production-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-title {
        font-size: 24px;
    }
}
/* Хлебные крошки внутри компонента */
.breadcrumbs-pos {
    margin: 20px 0;
}

.pagination-wrapper {
    margin: 60px 0;
    display: flex;
    justify-content: center;
}
.pagination-list {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

/* Базовый стиль круга для ссылок и активных элементов */
.pagination-list li a, 
.pagination-list li span:not([class^="icon-"]) {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
}

/* Стиль для активной страницы */
.pagination-list li.active a {
    background: #ee9118;
    border-color: #ee9118;
    color: #000;
    font-weight: 700;
}

/* Эффект наведения */
.pagination-list li a:hover {
    background: #ee9118;
    border-color: #ee9118;
    color: #000;
}

/* Состояние Disabled (когда некуда листать) */
.pagination-list li.disabled a {
    opacity: 0.3;
    cursor: default;
}

/* --- РИСУЕМ СТРЕЛКИ --- */

/* Общий стиль для всех иконок-спанов внутри ссылок */
.pagination-list [class^="icon-"] {
    display: inline-block;
    font-style: normal;
    line-height: 1;
}

/* Вставляем символы стрелок в соответствующие классы */
.icon-first::before    { content: "«"; font-size: 18px; }
.icon-previous::before { content: "‹"; font-size: 20px; }
.icon-next::before     { content: "›"; font-size: 20px; }
.icon-last::before     { content: "»"; font-size: 18px; }

/* Убираем лишние отступы, если Joomla добавила пустые ссылки вокруг иконок */
.pagination-list li a:has(span) {
    line-height: 0;
}

/* Стили для даты в карточке */
.blog_item-date {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #ee9118; /* Твой фирменный оранжевый */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Можно добавить маленькую полоску перед датой для красоты */
.blog_item-date::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 1px;
    background-color: #ee9118;
    margin-right: 10px;
}

/* Корректировка заголовка, чтобы он стоял ближе к дате */
.blog_item-title {
    margin-top: 0;
    line-height: 1.3;
}

/* Стили для модального окна с формой */
.order_modal.order_modal {
    border: 2px solid #dd8718;
    box-shadow: 0 0 30px rgba(221, 135, 24, 0.2);
    padding: 40px;
    
}
@media (max-width: 1200px) {
    .order_modal.order_modal {
        padding: 20px;
    }
}

.order_modal .order_title {
    color: #fff;
    font-weight: 600;
}

/* Настройка инпутов внутри модалки, если они отличаются */
.order_modal .inp {
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.05);
}

.order_modal .form_btn {
    margin-top: 10px;
}

/* Настройка Fancybox для этого окна */
.order_modal.fancybox-content {
    /* background: transparent !important; */
}

/* Исправление отступа для чекбокса в модалке */
.order_modal .sf2-checkbox-label {
    text-align: left;
    line-height: 1.4;
    margin-top: 15px;
}

/* Убираем жесткую ширину для формы именно внутри модального окна */
.order_modal .order_form {
    width: 100%;
    max-width: 576px; /* Ограничиваем максимальную ширину как в вашей верстке */
    margin: 0 auto;
}

/* Гарантируем, что Fancybox не накладывает свои ограничения по умолчанию */
.fancybox-content {
    max-width: 100%;
}

/* Стили для чекбокса SimpleForm2 внутри модалки */
.order_modal .sf2-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding-left: 0; /* Сбрасываем лишний отступ */
    margin-top: 20px;
    font-size: 14px;
}

/* Настройка иконки чекбокса */
.order_modal .sf2-checkbox-label i {
    flex-shrink: 0;
    position: relative;
    top: 0;
    left: 0;
    transform: none;
}