

/* Start:/bitrix/templates/lcon_clean/css/pages/gallery.css?17912138379462*/
/*
 * Галерея: список альбомов (/gallery/) и страница альбома (/gallery/<код>/).
 * Шаблоны: news/gallery (каркас, «Назад к списку»), news.list/gallery-list (альбомы),
 * news.detail/gallery-block (фото альбома, увеличение — fancybox из script.js).
 * Сетка фото .gallery-photos переиспользуется на /company/making/.
 *
 * Важно: постраничный CSS Битрикс отдаёт ДО стилей шаблона (styles.css). Здесь только
 * свои классы; у ссылок цвет задан и для :hover — иначе его перебивает общий a:hover
 * (белый, рассчитан на тёмные блоки).
 */

/* region Каркас */
.gallery-page {
    padding-bottom: 88px;
}

.gallery-page__lead {
    max-width: 760px;
    margin-bottom: 40px;
    font-size: 18px;
    line-height: 1.45;
    color: var(--color-text-secondary);
}

.gallery-page__lead p {
    line-height: inherit;
}

.gallery-page__lead p + p {
    margin-top: 12px;
}

/* Счётчик фото под заголовком альбома. */
.gallery-page__meta {
    margin: -12px 0 28px;
    font-size: 16px;
    line-height: 1.3;
    color: var(--color-text-secondary);
}

.gallery-alert {
    font-size: 16px;
    color: var(--color-text-secondary);
}
/* endregion */

/* region Альбомы */
.gallery-albums {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.gallery-album,
.gallery-album:hover {
    color: var(--color-text);
}

.gallery-album {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 16px;
    background: var(--color-white);
    border: 1px solid var(--color-stroke);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.gallery-album:hover {
    border-color: #d3d4da;
    box-shadow: 0 12px 32px rgba(29, 33, 47, .08);
}

.gallery-album__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #d9d9dd;
}

.gallery-album__pic {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.gallery-album:hover .gallery-album__pic {
    transform: scale(1.04);
}

.gallery-album__count {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-white);
    background: rgba(29, 33, 47, .6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 100px;
}

.gallery-album__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 4px 4px;
}

.gallery-album__title {
    min-width: 0;
    font-size: clamp(18px, 1.6vw, 24px);
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

/* Кнопка-стрелка: та же иконка, что у .link-arrow в styles.css. */
.gallery-album__arrow {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--color-stroke);
    border-radius: var(--radius-xs);
    transition: color var(--transition), background-color var(--transition), border-color var(--transition);
}

.gallery-album__arrow::before {
    content: "";
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M17 7H8M17 7v9'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M17 7H8M17 7v9'/%3E%3C/svg%3E") no-repeat center / contain;
}

.gallery-album:hover .gallery-album__arrow {
    color: var(--color-white);
    background: var(--color-dark);
    border-color: var(--color-dark);
}
/* endregion */

/* region Фото альбома */
.gallery-photos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.gallery-photo {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--color-stroke);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #d9d9dd;
    cursor: zoom-in;
}

.gallery-photo__pic {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

/* Затемнение и значок «увеличить» — только там, где есть наведение (не на тач-экранах). */
@media (hover: hover) {
    .gallery-photo::before,
    .gallery-photo::after {
        content: "";
        position: absolute;
        z-index: 1;
        opacity: 0;
        transition: opacity var(--transition);
        pointer-events: none;
    }

    .gallery-photo::before {
        inset: 0;
        background: rgba(29, 33, 47, .28);
    }

    .gallery-photo::after {
        top: 50%;
        left: 50%;
        width: 48px;
        height: 48px;
        margin: -24px 0 0 -24px;
        border-radius: 50%;
        background: var(--color-white) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D212F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4M11 8v6M8 11h6'/%3E%3C/svg%3E") no-repeat center / 22px;
    }

    .gallery-photo:hover::before,
    .gallery-photo:hover::after {
        opacity: 1;
    }

    .gallery-photo:hover .gallery-photo__pic {
        transform: scale(1.04);
    }
}

.gallery-photo:focus-visible {
    outline: 2px solid var(--color-dark);
    outline-offset: 2px;
}
/* endregion */

/* region «Назад к списку» + шаринг под альбомом (шаринг — разметка Aspro: showShareBlock) */
.gallery-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
}

.gallery-back,
.gallery-back:hover {
    color: var(--color-text);
}

.gallery-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    transition: color var(--transition);
}

.gallery-back::before {
    content: "";
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M5 12l6-6M5 12l6 6'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M5 12l6-6M5 12l6 6'/%3E%3C/svg%3E") no-repeat center / contain;
    transition: transform var(--transition);
}

.gallery-back:hover {
    color: var(--color-accent);
}

.gallery-back:hover::before {
    transform: translateX(-3px);
}
/* endregion */

/* region Адаптив */
@media (max-width: 1199px) {
    .gallery-photos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* Ровно четыре фото (/company/making/): 4 в ряд на десктопе, ниже — 2×2,
       без «висящей» плитки в неполном ряду. */
    .gallery-photos--quad {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .gallery-page {
        padding-bottom: 48px;
    }

    .gallery-page__lead {
        margin-bottom: 28px;
    }

    .gallery-albums {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .gallery-album {
        padding: 12px;
    }

    .gallery-album__body {
        padding: 16px 4px 4px;
    }

    .gallery-photos {
        gap: 12px;
    }

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

@media (max-width: 767px) {
    .gallery-page {
        padding-bottom: 40px;
    }

    .gallery-page__lead {
        margin-bottom: 24px;
        font-size: 16px;
    }

    .gallery-page__meta {
        margin: -8px 0 20px;
        font-size: 15px;
    }

    .gallery-album__arrow {
        width: 40px;
        height: 40px;
    }

    .gallery-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .gallery-photo {
        border-radius: var(--radius-xs);
    }

    .gallery-links {
        margin-top: 24px;
    }
}

/* Телефон: альбомы в одну колонку — обложка крупная, подпись не переносится. */
@media (max-width: 575px) {
    .gallery-albums {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* endregion */

/* End */


/* Start:/bitrix/templates/lcon_clean/css/pages/blog.css?17869458345739*/
/*
 * Страница «Блог» (Figma 13202-11517 / mobile 13202-13385).
 * Сетка новостных карточек (3 колонки) + пагинация. Планшет — 2 колонки,
 * мобайл — 1 колонка (как в мобильном макете, без кнопки, текст в 2 строки).
 */

/* region Шапка страницы */
.blog-header-bar {
    padding-top: 32px;
}

.blog-top {
    padding-top: 0;
    padding-bottom: 88px;
}

.blog-head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 24px;
}

.blog-head__title {
    font-family: var(--font-family-primary), sans-serif;
    font-size: 50px;
    font-weight: 700;
    line-height: 1.18;
    color: var(--color-text);
}
/* endregion */

/* region Сетка карточек */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
/* endregion */

/* region Карточка новости */
.news-card {
    display: flex;
    flex-direction: column;
    padding: 8px;
    background: var(--color-white);
    border: 1px solid var(--color-stroke);
    border-radius: var(--radius-md);
}

.news-card__image {
    position: relative;
    display: block;
    height: 320px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-stroke);
    /* center/cover — фолбэк для закэшированной разметки с inline background-image;
       поверх ложится <img>. */
    background: #d9d9dd center / cover no-repeat;
}

/* Превью поста — <img> вместо background-image (индексация). */
.news-card__pic {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 16px;
    padding: 16px 8px 8px;
}

.news-card__head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.news-card__date {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.news-card__title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-text);
}

.news-card__title a {
    color: inherit;
    transition: color var(--transition);
}

.news-card__title a:hover {
    color: var(--color-accent);
}

.news-card__text {
    font-size: 16px;
    line-height: 1.2;
    color: var(--color-text);
    opacity: .45;
}

/* Кнопка «Читать подробнее» прижата к низу карточки */
.news-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    margin-top: auto;
    padding: 8px 24px;
    border-radius: 10px;
    background: rgba(29, 33, 47, .03);
    color: var(--color-text);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    transition: background var(--transition), color var(--transition);
}

.news-card__btn:hover {
    background: rgba(29, 33, 47, .08);
    color: var(--color-text);
}
/* endregion */

/* region Пагинация */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--color-text);
    background: transparent;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    transition: background var(--transition);
}

.pagination__arrow svg {
    width: 24px;
    height: 24px;
}

.pagination__arrow:hover {
    background: #2A2735;
}

.pagination__arrow:disabled {
    opacity: .3;
    cursor: default;
    pointer-events: none;
}

.pagination__pages {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pagination__page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 12px 21px;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    border-radius: 12px;
    border: 1px solid var(--color-bg);
    transition: border var(--transition-fast), color var(--transition-fast);
}

.pagination__page:not(.is-active):hover {
    color: var(--color-text);
    border: 1px solid #2A2735;
}

.pagination__page.is-active {
    color: var(--color-white);
    background: #2A2735;
}

.pagination__page.is-active:hover {
    background: #2A2735;
}
/* endregion */

/* region Адаптив */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .blog-top {
        padding-bottom: 48px;
    }

    .blog-head__title {
        font-size: 40px;
    }
}

@media (max-width: 767px) {
    .blog-header-bar {
        padding-top: 16px;
    }

    .blog-head {
        gap: 8px;
        padding-bottom: 16px;
    }

    .blog-head__title {
        font-size: 36px;
        line-height: 1.1;
    }

    /* В мобильном макете крошки скрыты */
    .blog-head .breadcrumbs {
        display: none;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .news-card__image {
        height: 208px;
    }

    /* На мобиле карточка кликается целиком: текст обрезаем, кнопку прячем */
    .news-card__text {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-card__btn {
        display: none;
    }

    .pagination {
        margin-top: 32px;
        gap: 4px;
    }

    .pagination__pages {
        gap: 4px;
    }

    .pagination__page {
        padding: 12px 14px;
    }
}
/* endregion */

/* End */
/* /bitrix/templates/lcon_clean/css/pages/gallery.css?17912138379462 */
/* /bitrix/templates/lcon_clean/css/pages/blog.css?17869458345739 */
