/* content.css — стили для статей, документов (фильтр), галереи, видео и служебных блоков */

.page-article__meta {
    margin: -10px 0 24px;
    font-family: var(--font-mono);
    color: var(--brand-gray);
    opacity: 0.8;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.article-figure {
    margin: 28px 0;
    max-width: 100%;
}
.article-figure img {
    display: block;
    width: 100%;
    height: auto;
    background: var(--brand-light);
    border: 1px solid var(--color-border);
}
.article-figure figcaption {
    margin-top: 8px;
    color: var(--brand-gray);
    opacity: 0.8;
    font-size: 13px;
    letter-spacing: 0.02em;
}
.article-figure--featured {
    margin: 24px 0 36px;
}

/* Цитата / Callout-блок: подложка #E0EFF3 и акцент #006C76 */
.article-quote,
.callout-box {
    margin: 28px 0;
    padding: 16px 20px 16px 24px;
    background-color: var(--brand-light);
    border-left: 4px solid var(--brand-primary);
    color: var(--brand-gray);
    border-radius: 0 4px 4px 0;
}
.article-quote p {
    margin: 0 0 8px;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.55;
    color: var(--brand-gray);
    font-weight: 500;
}
.article-quote cite {
    font-style: normal;
    color: var(--brand-primary);
    font-weight: 600;
}

/* Хлебные крошки (16. Навигация) */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--brand-gray);
    margin-bottom: 24px;
}
.breadcrumbs a {
    color: var(--brand-primary);
    text-decoration: none;
}
.breadcrumbs a:hover {
    color: var(--brand-blue);
    text-decoration: underline;
}
.breadcrumbs .separator {
    color: var(--color-border);
}
.breadcrumbs .current {
    color: var(--brand-gray);
    opacity: 0.7;
}

/* === Фильтр документов === */
.doc-filter {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin: 0 0 32px;
    padding: 20px 24px;
    background: var(--brand-light);
    border: 1px solid var(--color-border);
}
.doc-filter__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--brand-gray);
}
.doc-filter__field span {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.doc-filter__field select,
.doc-filter__field input[type="date"] {
    font-family: var(--font-body);
    font-size: 14px;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    background: var(--surface-card);
    color: var(--brand-gray);
    min-width: 160px;
}
.doc-filter__actions {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.doc-filter .btn {
    padding: 10px 18px;
    font-size: 12px;
    border-color: var(--line);
    color: var(--navy);
    background: var(--surface-card);
}
.doc-filter .btn-primary {
    background: var(--navy);
    color: var(--on-dark);
    border-color: var(--navy);
}
.doc-filter .btn-ghost {
    background: transparent;
    color: var(--titan);
}
@media (max-width: 640px) {
    .doc-filter { padding: 16px; }
    .doc-filter__actions { width: 100%; margin-left: 0; }
}

/* === Галерея === */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--strato);
    overflow: hidden;
    border: 1px solid var(--line);
    cursor: zoom-in;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-item__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 14px;
    background: linear-gradient(180deg, transparent, rgba(10, 46, 77, 0.85));
    color: var(--on-dark);
    font-size: 11px;
    letter-spacing: 0.04em;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.gallery-item:hover .gallery-item__caption,
.gallery-item:focus-visible .gallery-item__caption {
    opacity: 1;
}

/* === Лайтбокс (нативный <dialog>) === */
.lightbox {
    margin: auto;
    width: min(92vw, 1100px);
    height: min(86vh, 720px);
    max-width: 1100px;
    max-height: 720px;
    padding: 0;
    border: 1px solid var(--line);
    background: var(--navy-deep);
    color: var(--on-dark);
}
.lightbox::backdrop {
    background: rgba(7, 31, 54, 0.85);
}
.lightbox__img {
    display: block;
    width: 100%;
    height: calc(100% - 48px);
    object-fit: contain;
    background: var(--navy-deep);
}
.lightbox__caption {
    display: block;
    padding: 12px 24px;
    color: var(--on-dark-muted);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-align: center;
}
.lightbox__close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--on-dark);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 10px;
}

/* === Видео-карточка === */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.video-card {
    display: block;
    color: var(--navy-deep);
    text-decoration: none;
}
.video-card__thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--strato);
    overflow: hidden;
}
.video-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.video-card__overlay {
    position: absolute;
    inset: 0;
    background: var(--media-video-overlay);
}
.video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 18px 0 18px 30px;
    border-color: transparent transparent transparent var(--on-dark);
    transform: translate(-50%, -50%);
}
.video-card__duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    background: rgba(7, 31, 54, 0.85);
    color: var(--on-dark);
    font-size: 11px;
    letter-spacing: 0.04em;
}
.video-card__title {
    display: block;
    margin: 12px 0 4px;
    line-height: 1.35;
}
.video-card__meta {
    color: var(--titan);
    font-size: 11px;
}

/* === Видео-модалка === */
.video-modal {
    margin: auto;
    width: min(94vw, 1000px);
    height: min(80vh, 600px);
    padding: 0;
    border: 1px solid var(--line);
    background: var(--navy-deep);
}
.video-modal::backdrop {
    background: rgba(7, 31, 54, 0.9);
}
.video-modal__frame {
    width: 100%;
    height: 100%;
}
.video-modal__frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.video-modal__close {
    position: absolute;
    top: 6px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--on-dark);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 10px;
    z-index: 1;
}
