/* Статьи, новости, вакансии */
.page-title--article { font-size: 2.4rem; margin-bottom: 15px; line-height: 1.3; }
.page-title--article::after { margin-top: 15px; }

.page-subtitle--compact { margin-bottom: 10px; max-width: 700px; }

.news-date {
    font-family: var(--font-heading);
    color: #888;
    font-size: 1rem;
    margin-bottom: 35px;
    display: block;
}

.news-date span { color: #d62828; margin-right: 5px; }

.news-hero-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 35px;
    border: 1px solid var(--card-border);
}

.news-zoomable {
    cursor: zoom-in;
    transition: opacity 0.25s ease, box-shadow 0.25s ease;
}

.news-zoomable:hover {
    opacity: 0.92;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.news-zoomable:focus-visible {
    outline: 2px solid #d62828;
    outline-offset: 3px;
}

.text-block {
    background: var(--bg-card);
    padding: 50px;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.text-block p { margin-bottom: 25px; text-align: justify; }

.news-blockquote {
    margin: 35px 0;
    padding: 20px 30px;
    border-left: 4px solid #d62828;
    background: var(--blockquote-bg);
    font-style: italic;
    color: var(--text-light);
    font-size: 1.1rem;
}

.text-block h2 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin: 50px 0 20px;
    font-size: 1.7rem;
    text-transform: uppercase;
    border-bottom: 2px solid #d62828;
    padding-bottom: 8px;
}

.text-block h2:first-of-type { margin-top: 0; }

.text-block h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin: 40px 0 20px;
    font-size: 1.5rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.vacancy-list { margin-left: 20px; margin-bottom: 25px; list-style: none; }
.vacancy-list li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.vacancy-list li::before { content: "—"; position: absolute; left: 0; color: #d62828; font-weight: bold; }

.tech-table { width: 100%; border-collapse: collapse; margin: 25px 0 35px; font-size: 0.95rem; }
.tech-table th,
.tech-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--border-color); }
.tech-table th {
    font-family: var(--font-heading);
    background: var(--table-th-bg);
    color: var(--text-primary);
    text-transform: uppercase;
}
.tech-table td:first-child { font-weight: 500; color: var(--text-primary); width: 40%; }

.news-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.news-gallery--duo {
    grid-template-columns: repeat(2, 1fr);
}

.news-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.news-inline-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 4px;
    margin: 10px 0 30px;
    border: 1px solid var(--card-border);
}

/* Полноэкранный просмотр фото в новостях */
body.news-lightbox-open {
    overflow: hidden;
}

.news-lightbox {
    position: fixed;
    inset: 0;
    z-index: 14000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-lightbox.is-open {
    display: flex;
    opacity: 1;
}

.news-lightbox-figure {
    margin: 0;
    max-width: min(1200px, 100%);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.news-lightbox-img {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    transform: scale(0.96);
    transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.news-lightbox.is-open .news-lightbox-img {
    transform: scale(1);
}

.news-lightbox-caption {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    text-align: center;
    max-width: 720px;
    line-height: 1.4;
}

.news-lightbox-close,
.news-lightbox-prev,
.news-lightbox-next {
    position: absolute;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    font-family: var(--font-heading);
    line-height: 1;
}

.news-lightbox-close:hover,
.news-lightbox-prev:hover,
.news-lightbox-next:hover {
    background: rgba(214, 40, 40, 0.85);
}

.news-lightbox-close {
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    font-size: 2rem;
}

.news-lightbox-prev,
.news-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
}

.news-lightbox-prev { left: 16px; }
.news-lightbox-next { right: 16px; }

.news-lightbox-prev[hidden],
.news-lightbox-next[hidden] {
    display: none;
}

@media (max-width: 768px) {
    .news-lightbox {
        padding: 56px 12px 24px;
    }

    .news-lightbox-prev,
    .news-lightbox-next {
        top: auto;
        bottom: 16px;
        transform: none;
        width: 44px;
        height: 44px;
    }

    .news-lightbox-prev { left: calc(50% - 52px); }
    .news-lightbox-next { right: calc(50% - 52px); left: auto; }

    .news-lightbox-img {
        max-height: calc(100vh - 160px);
    }
}

@media (max-width: 768px) {
    .text-block { padding: 25px; }
    .news-gallery,
    .news-gallery--duo { grid-template-columns: 1fr; }
}
