/* ===============================
   Верхний блок (крошки + H1) для страницы Ремонт и отделка
=============================== */

.page-licenses__top {
    padding: 32px 0 24px; /* Добавляем отступы сверху и снизу */
}

.page-licenses__top .container {
    max-width: var(--container-max-width); /* Ограничиваем ширину контейнера */
    margin: 0 auto; /* Центрируем контейнер */
}

/* ===============================
   Верхний блок (крошки + H1) для страницы Прайс лист
=============================== */

.page-price__top {
    padding: 32px 0 24px; /* Добавляем отступы сверху и снизу */
}

.page-price__top .container {
    max-width: var(--container-max-width); /* Ограничиваем ширину контейнера */
    margin: 0 auto; /* Центрируем контейнер */
}


/* ===============================
   Карточка контента
=============================== */

.page-licenses__content-wrapper {
    padding-bottom: 80px;
}

.page-licenses__inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 32px 40px 48px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: var(--shadow-light);
}

/* Жёлтый блок (как на других страницах) */
.page-licenses__highlight,
.licenses-highlight {
    position: relative;
    padding: 24px 32px;
    border-radius: var(--radius-medium);
    background-color: var(--color-accent);
    box-shadow: var(--shadow-light);
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    color: #161616;
    overflow: hidden;
}

.page-licenses__highlight::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 1;
    background-image: url(/wp-content/themes/luxrem/assets/img/icons/union.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* ===============================
   Галерея лицензий
=============================== */

.licenses-gallery {
    margin-top: 32px;
}

.licenses-gallery__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #161616;
}

/* Слайдер */
.licenses-gallery__slider {
    position: relative;
}

/* Стрелки как в баннере/галерее */
.licenses-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-small);
    background: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 10;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.licenses-gallery__arrow--prev {
    left: -22px;
}

.licenses-gallery__arrow--next {
    right: -22px;
}

.licenses-gallery__arrow::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #333;
    border-right: 2px solid #333;
    transform: rotate(-135deg);
    margin: 0 auto;
}

.licenses-gallery__arrow--next::before {
    transform: rotate(45deg);
}

.licenses-gallery__arrow:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Слайды */
.licenses-gallery__track {
    padding: 8px 0 16px;
}

.licenses-gallery__slide {
    background: #f8f8f8;
    border-radius: 24px;
    padding: 24px 16px 20px;
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    height: 100%;
    cursor: pointer; /* чтобы было понятно, что можно кликнуть для модалки */
}

.licenses-gallery__image {
    width: 100%;
    display: flex;
    justify-content: center;
}

.licenses-gallery__image img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Подпись под слайдом */
.licenses-gallery__caption {
    font-size: 14px;
    text-align: center;
    color: var(--color-gray-dark);
}

/* Пагинация под слайдером */
.licenses-gallery__pagination-wrapper {
    margin-top: 8px;
    display: flex;
    justify-content: center;
}

.licenses-gallery__pagination {
    position: static !important;
}

/* Кастомные буллеты */
.licenses-gallery__pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.15);
    opacity: 1;
    margin: 0 6px !important;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.licenses-gallery__pagination .swiper-pagination-bullet-active {
    background-color: var(--color-primary);
    transform: scale(1.2);
}

/* Consultation блок */
.page-licenses__consultation {
    margin-top: 56px;
}

/* Адаптив */
@media (max-width: 1200px) {
    .licenses-gallery__arrow--prev {
        left: -10px;
    }

    .licenses-gallery__arrow--next {
        right: -10px;
    }
}

@media (max-width: 1024px) {
    .page-licenses__inner {
        padding: 28px 24px 36px;
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .page-licenses__inner {
        padding: 24px 20px 32px;
        border-radius: 16px;
    }

    .licenses-gallery__arrow {
        display: none; /* на мобильных только свайп и пагинация */
    }
}
