

/* Start:/local/templates/tszp/components/bitrix/news.list/gallery/style.css?178230875312700*/
/* === Список галерей === */
.gallery-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 16px 0;
}

/* === Элемент списка === */
.gallery-item {
    display: flex;
    gap: 32px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    align-items: flex-start;
}

/* === Левая часть: галерея 40% === */
.gallery-item__media {
    flex: 0 0 40%;
    max-width: 40%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-item__main {
    position: relative;
    width: 100%;
    height: clamp(280px, 40vw, 480px);
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item__main--empty {
    color: #999;
    font-size: 14px;
}

.gallery-item__main-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

/* Стрелки навигации */
.gallery-item__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    z-index: 2;
}

.gallery-item__nav:hover {
    background: rgba(0, 0, 0, 0.75);
}

.gallery-item__nav--prev { left: 8px; }
.gallery-item__nav--next { right: 8px; }

.gallery-item__counter {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 10px;
    z-index: 2;
}

/* Миниатюры с горизонтальной прокруткой */
.gallery-item__thumbs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.gallery-item__thumbs::-webkit-scrollbar { height: 6px; }
.gallery-item__thumbs::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 3px; }
.gallery-item__thumbs::-webkit-scrollbar-thumb { background: #c0c0c0; border-radius: 3px; }

.gallery-item__thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.15s;
    background: #fff;
}

.gallery-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item__thumb.is-active {
    border-color: #003C71;
}

.gallery-item__thumb:hover {
    border-color: #2ea043;
}

/* === Правая часть: описание === */
.gallery-item__content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-item__title {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    color: #222;
}

.gallery-item__title a {
    color: inherit;
    text-decoration: none;
}

.gallery-item__title a:hover {
    color: #003C71;
}

.gallery-item__date {
    font-size: 13px;
    color: #888;
}

.gallery-item__text {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.gallery-item__text p {
    margin: 0 0 10px;
}

/* Постраничная навигация */
.gallery-list__nav {
    margin-top: 16px;
}

/* ========================================== */
/*    КНОПКИ И КОНТАКТНОЕ МЕНЮ                */
/* ========================================== */

.gallery-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    align-items: center;
}

.gallery-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.2;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.gallery-btn:hover,
.gallery-btn:focus {
    text-decoration: none;
    outline: none;
}

/* Обе кнопки в едином стиле: синие, зелёные при hover */
.gallery-btn--primary,
.gallery-btn--secondary {
    background: #003C71;
    color: #fff;
    border-color: #003C71;
}

.gallery-btn--primary:hover,
.gallery-btn--secondary:hover,
.gallery-btn--primary:focus,
.gallery-btn--secondary:focus {
    background: #2ea043;
    border-color: #2ea043;
    color: #fff;
    text-decoration: none;
}

.gallery-btn--primary:active,
.gallery-btn--secondary:active {
    background: #248838;
    border-color: #248838;
}

.gallery-btn__arrow,
.gallery-btn__caret {
    font-size: 13px;
    line-height: 1;
}

/* Выпадающее меню контактов */
.gallery-contact {
    position: relative;
}

.gallery-contact__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    padding: 6px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gallery-contact__menu[hidden] {
    display: none;
}

.gallery-contact__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 14px;
    color: #333;
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    width: 100%;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
}

.gallery-contact__item:hover {
    background: #f3f4f6;
    color: #003C71;
    text-decoration: none;
}

.gallery-contact__icon {
    font-size: 18px;
    width: 22px;
    text-align: center;
    color: #003C71;
    line-height: 1;
    transition: color 0.15s;
}

.gallery-contact__item:hover .gallery-contact__icon {
    color: #2ea043;
}

/* ========================================== */
/*    МОДАЛЬНЫЕ ОКНА                          */
/* ========================================== */

.gallery-modal[hidden] {
    display: none;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.gallery-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 32px 28px 24px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.gallery-modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
}

.gallery-modal__close:hover {
    color: #333;
}

.gallery-modal__title {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 500;
    color: #222;
}

.gallery-modal__phone {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 500;
    text-align: center;
}

.gallery-modal__phone a {
    color: #003C71;
    text-decoration: none;
    transition: color 0.15s;
}

.gallery-modal__phone a:hover {
    color: #2ea043;
}

.gallery-modal__hint {
    margin: 0;
    font-size: 13px;
    color: #888;
    text-align: center;
}

/* Форма обратного звонка */
.gallery-callback-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gallery-callback-form__label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #555;
}

.gallery-callback-form__label input,
.gallery-callback-form__label input[type="text"],
.gallery-callback-form__label input[type="tel"],
.gallery-callback-form__label input[type="email"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    margin: 0;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: #222;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.15s;
    -webkit-appearance: none;
    appearance: none;
    height: auto;
    min-height: 40px;
    line-height: 1.4;
}

.gallery-callback-form__label input:focus {
    border-color: #003C71;
}

.gallery-callback-form__hint {
    margin: 4px 0 0;
    font-size: 12px;
    color: #888;
    text-align: center;
}

.gallery-callback-form__submit {
    margin-top: 6px;
}

.gallery-callback-form__result {
    font-size: 14px;
    text-align: center;
    min-height: 20px;
}

.gallery-callback-form__result.is-success {
    color: #2ea043;
}

.gallery-callback-form__result.is-error {
    color: #d04444;
}

/* ========================================== */
/*    ЛАЙТБОКС                                */
/* ========================================== */

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.gallery-lightbox__stage {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox__img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: manipulation;
}

.gallery-lightbox__close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    z-index: 2;
    padding: 0;
}

.gallery-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    z-index: 2;
    padding: 0;
}

.gallery-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.gallery-lightbox__nav--prev { left: 24px; }
.gallery-lightbox__nav--next { right: 24px; }

.gallery-lightbox__counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 14px;
    border-radius: 14px;
    z-index: 2;
}

/* === Адаптив: планшеты === */
@media (max-width: 900px) {
    .gallery-item {
        gap: 20px;
        padding: 16px;
    }
    .gallery-item__title {
        font-size: 19px;
    }
}

/* === Адаптив: мобильные === */
@media (max-width: 640px) {
    .gallery-item {
        flex-direction: column;
        gap: 16px;
        padding: 14px;
    }
    .gallery-item__media {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
    }
    .gallery-item__main {
        height: auto;
        min-height: 220px;
        max-height: 60vh;
    }
    .gallery-item__main-img {
        max-height: 60vh;
    }
    .gallery-item__nav {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    .gallery-item__thumb {
        width: 56px;
        height: 42px;
    }
    .gallery-modal__dialog {
        padding: 26px 18px 18px;
    }
    .gallery-modal__phone {
        font-size: 22px;
    }
    .gallery-contact__menu {
        min-width: 200px;
    }
    .gallery-lightbox__nav {
        width: 44px;
        height: 44px;
        font-size: 28px;
    }
    .gallery-lightbox__nav--prev { left: 8px; }
    .gallery-lightbox__nav--next { right: 8px; }
    .gallery-lightbox__close {
        width: 40px;
        height: 40px;
        font-size: 28px;
        top: 10px;
        right: 10px;
    }
}
/* End */
/* /local/templates/tszp/components/bitrix/news.list/gallery/style.css?178230875312700 */
