

/* Start:/bitrix/templates/.default/components/bitrix/news/webcat_news_list/bitrix/news.detail/.default/style.css?178553589410817*/

.detail-block,
.detail-block * {
    font-family: 'Montserrat', sans-serif !important;
}

.detail-block {
    max-width: 1745px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === НАЗАД К НОВОСТЯМ === */
.detail-back {
    margin-bottom: 30px;
}

.detail-back a {
    color: #e2001a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.detail-back a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}

.detail-card {
    background: #ffffff;
    border: 1px solid #eaedf2;
    overflow: hidden;
    border-radius: 0 !important;
}

/* === КАРТИНКА - УВЕЛИЧЕНА === */
.detail-image {
    width: 100%;
    max-height: 700px;
    min-height: 400px;
    object-fit: cover;
    display: block;
    background: #dce2ec;
    border-radius: 0 !important;
}


.detail-content {
    padding: 40px 50px 50px 50px;
}


.detail-tag {
    display: inline-block;
    background: #e2001a;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 18px;
    border-radius: 0 !important;
    margin-bottom: 16px;
}


.detail-date {
    font-size: 14px;
    color: #8a96a8;
    margin-bottom: 16px;
}


.detail-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1f2b;
    line-height: 1.3;
    margin-bottom: 20px;
}

.detail-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.detail-text p {
    margin-bottom: 20px;
}

.detail-text h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1f2b;
    margin: 30px 0 15px 0;
}

.detail-text h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1f2b;
    margin: 25px 0 12px 0;
}

.detail-text ul,
.detail-text ol {
    margin: 0 0 20px 25px;
}

.detail-text ul li,
.detail-text ol li {
    margin-bottom: 8px;
}

.detail-text img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    display: block;
}

.detail-text blockquote {
    border-left: 4px solid #e2001a;
    padding: 15px 25px;
    margin: 20px 0;
    background: #f8f9fa;
    font-style: italic;
    color: #555;
}

.detail-text a {
    color: #e2001a;
    text-decoration: underline;
}

.detail-text a:hover {
    opacity: 0.8;
}

.detail-gallery {
    margin: 30px 0 30px 0;
}

.detail-gallery .gallery-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1f2b;
    margin-bottom: 16px;
}

.detail-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.detail-gallery .gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #eaedf2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0 !important;
}

.detail-gallery .gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 2;
    border-color: #e2001a;
}

.detail-gallery .gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: #dce2ec;
    border-radius: 0 !important;
    min-height: 180px;
}

.detail-gallery .gallery-item .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 13px;
    padding: 10px 14px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.detail-gallery .gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eff1f5;
}

.detail-tags .tag-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-right: 6px;
}

.detail-tags a {
    display: inline-block;
    background: #f0f2f5;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 16px;
    border: 1px solid #e2e6ec;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 50px !important;
}

.detail-tags a:hover {
    background: #e2001a;
    color: #ffffff;
    border-color: #e2001a;
}

.detail-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e6ec;
    gap: 20px;
}

.detail-navigation a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.detail-navigation a:hover {
    color: #e2001a;
}

.detail-navigation .nav-disabled {
    color: #b0b8c5;
    cursor: default;
    pointer-events: none;
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1f2b;
    margin-bottom: 4px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2001a;
}

.sidebar-item {
    background: #ffffff;
    border: 1px solid #eaedf2;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 0 !important;
}

.sidebar-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #d0d7e2;
}

.sidebar-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: #dce2ec;
    border-radius: 0 !important;
    min-height: 120px;
}

.sidebar-item .sidebar-content {
    padding: 14px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sidebar-item .sidebar-content .sidebar-tag {
    display: inline-block;
    background: #e2001a;
    color: #ffffff !important;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 12px;
    align-self: flex-start;
    margin-bottom: 8px;
    border-radius: 0 !important;
}

.sidebar-item .sidebar-content h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1f2b;
    margin: 0 0 6px 0;
}

.sidebar-item .sidebar-content h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-item .sidebar-content h4 a:hover {
    color: #e2001a;
}

.sidebar-item .sidebar-content .sidebar-date {
    font-size: 12px;
    color: #8a96a8;
    margin-top: auto;
}

/* === МОДАЛЬНОЕ ОКНО ДЛЯ ГАЛЕРЕИ === */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal .modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #ffffff;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
}

.gallery-modal .modal-close:hover {
    color: #e2001a;
    transform: rotate(90deg);
}

.gallery-modal .modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    display: block;
}

.gallery-modal .modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: 0.3s;
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    padding: 20px 30px;
    z-index: 10;
}

.gallery-modal .modal-nav:hover {
    color: #ffffff;
}

.gallery-modal .modal-prev {
    left: 20px;
}

.gallery-modal .modal-next {
    right: 20px;
}

.gallery-modal .modal-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    z-index: 10;
}

@media (max-width: 1100px) {
    .detail-wrapper {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .sidebar-title {
        grid-column: 1 / -1;
    }

    .detail-gallery .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .detail-content {
        padding: 30px 30px 40px 30px;
    }

    .detail-title {
        font-size: 28px;
    }

    .detail-image {
        max-height: 500px;
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .detail-content {
        padding: 24px 20px 30px 20px;
    }

    .detail-title {
        font-size: 24px;
    }

    .detail-text {
        font-size: 15px;
    }

    .detail-sidebar {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .detail-gallery .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .detail-gallery .gallery-item img {
        min-height: 140px;
    }

    .detail-image {
        max-height: 400px;
        min-height: 250px;
    }

    .detail-navigation {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .detail-navigation a {
        justify-content: center;
    }

    .gallery-modal .modal-nav {
        font-size: 30px;
        padding: 10px 15px;
    }

    .gallery-modal .modal-prev {
        left: 10px;
    }

    .gallery-modal .modal-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .detail-content {
        padding: 18px 14px 24px 14px;
    }

    .detail-title {
        font-size: 20px;
    }

    .detail-text {
        font-size: 14px;
    }

    .detail-text h3 {
        font-size: 18px;
    }

    .detail-text h4 {
        font-size: 16px;
    }

    .detail-sidebar {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .detail-gallery .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .detail-gallery .gallery-item img {
        min-height: 120px;
    }

    .detail-gallery .gallery-title {
        font-size: 17px;
    }

    .detail-image {
        max-height: 300px;
        min-height: 200px;
    }

    .detail-tags .tag-label {
        display: block;
        width: 100%;
        margin-bottom: 6px;
    }

    .gallery-modal {
        padding: 20px;
    }

    .gallery-modal .modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .gallery-modal .modal-nav {
        font-size: 24px;
        padding: 8px 12px;
    }

    .gallery-modal .modal-counter {
        font-size: 14px;
        bottom: 15px;
    }
}

/* End */
/* /bitrix/templates/.default/components/bitrix/news/webcat_news_list/bitrix/news.detail/.default/style.css?178553589410817 */
