.page-header {
    position: relative;
    background-color: var(--color-primary-dark);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    min-height: 260px;
    display: flex;
    align-items: flex-end;
}

.page-header__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 35, 55, 0.35) 0%, rgba(20, 35, 55, 0.72) 100%);
}

.page-header__inner {
    position: relative;
    z-index: 1;
    padding-top: 40px;
    padding-bottom: 28px;
    display: block;
}

.page-header__title {
    margin: 0 0 12px;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    color: #fff;
}

.page-header__subtitle {
    margin: 0 0 16px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
}

.page-header__breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.page-header__crumb-home {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #fff;
}
.page-header__crumb-home svg {
    width: 100%;
    height: 100%;
}

.page-header__crumb-sep {
    color: rgba(255, 255, 255, 0.55);
}

.page-header__crumb {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}
a.page-header__crumb:hover {
    color: var(--color-accent);
}
.page-header__crumb--current {
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 640px) {
    .page-header {
        min-height: 190px;
    }
}

.page-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    padding-top: 44px;
    padding-bottom: 64px;
}

.page-content {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.75;
}
.page-content--full {
    max-width: 900px;
}
.page-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text);
}
.page-content p {
    margin: 0 0 16px;
}
.page-content ul {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
}
.page-content ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 14px;
    color: var(--color-text-muted);
}
.page-content ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}
.page-content img {
    border-radius: 8px;
}

/* ===== Сайдбар ===== */

.page-sidebar {
    flex: 0 0 280px;
    width: 280px;
    background: #eef1f3;
    border-left: 3px solid var(--color-primary);
    padding: 28px 24px;
}

.page-sidebar__group {
    margin-bottom: 24px;
}
.page-sidebar__group:last-child {
    margin-bottom: 0;
}

.page-sidebar__group-title {
    display: block;
    margin-bottom: 10px;
    font-size: 19px;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
}
a.page-sidebar__group-title:hover {
    color: var(--color-primary-dark);
}

.page-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.page-sidebar__list li {
    margin-bottom: 8px;
}
.page-sidebar__list li:last-child {
    margin-bottom: 0;
}

.page-sidebar__link {
    position: relative;
    display: inline-block;
    padding-left: 14px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}
.page-sidebar__link::before {
    content: '\2013';
    position: absolute;
    left: 0;
    color: var(--color-text-muted);
}
.page-sidebar__link:hover,
.page-sidebar__link.is-active {
    color: var(--color-primary);
}

/* ===== Карточки записей (рубрика Новости) ===== */

.page-content__intro {
    margin-bottom: 24px;
    color: var(--color-text-muted);
}
.page-content__intro em {
    color: var(--color-text);
    font-style: normal;
    font-weight: 700;
}

.post-card-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ===== Сетка статей (рубрика "Статьи") ===== */

.articles-section {
    padding: 44px 0 64px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 767px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

.post-card {
    position: relative;
    display: block;
    min-height: 260px;
    padding: 28px 32px;
    border-radius: 8px;
    background-color: var(--color-primary-dark);
    background-size: cover;
    background-position: center;
    text-decoration: none;
    overflow: hidden;
}
.post-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 35, 55, 0.35) 0%, rgba(15, 23, 35, 0.82) 100%);
}
.post-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    min-height: 204px;
    color: #fff;
}

.post-card__date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-bottom: auto;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}
.post-card__date svg {
    width: 16px;
    height: 16px;
}

.post-card__title {
    display: block;
    margin-top: 24px;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.post-card__excerpt {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.pagination,
.page-content .navigation.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}
.page-content .nav-links {
    display: flex;
    gap: 8px;
}
.page-content .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    background: #eef1f3;
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.page-content .page-numbers.current {
    background: var(--color-primary);
    color: #fff;
}

@media (max-width: 900px) {
    .page-layout {
        flex-direction: column;
    }
    .page-content {
        order: 1;
        width: 100%;
    }
    .page-sidebar {
        order: 2;
        width: 100%;
        flex-basis: auto;
    }
}

/* ===== Сайдбар записи (последние статьи + новости) ===== */

.post-sidebar {
    flex: 0 0 320px;
    width: 320px;
}

.post-sidebar__articles .post-card {
    min-height: 96px;
    margin-bottom: 16px;
}
.post-sidebar__articles .post-card:last-child {
    margin-bottom: 0;
}
.post-sidebar__articles .post-card__content {
    min-height: auto;
    justify-content: center;
}
.post-sidebar__articles .post-card__date {
    display: none;
}
.post-sidebar__articles .post-card__title {
    margin-top: 0;
    font-size: 15px;
}
.post-sidebar__articles .post-card__excerpt {
    margin-top: 6px;
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-sidebar__divider {
    height: 1px;
    margin: 24px 0;
    background: var(--color-border);
}

.post-sidebar__heading {
    margin: 0 0 16px;
    font-size: 19px;
    font-weight: 800;
    color: var(--color-primary);
}

.post-sidebar__news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-sidebar__news-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}
.post-sidebar__news-item:first-child {
    padding-top: 0;
}
.post-sidebar__news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-sidebar__news-title {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
}
a.post-sidebar__news-title:hover {
    color: var(--color-primary);
}

.post-sidebar__news-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.post-sidebar__news-excerpt {
    flex: 1 1 auto;
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.post-sidebar__news-date {
    flex: 0 0 auto;
    color: var(--color-text-muted);
    font-size: 11px;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .post-sidebar {
        order: 2;
        width: 100%;
        flex-basis: auto;
    }
}
