/* Публичные страницы «Блог ректора» (список и статья) — в одной стилистике с главной */
.rb-page {
    --rb-accent: #05612a;
    --rb-accent-soft: rgba(5, 97, 42, 0.12);
    --rb-text: #1a1f1c;
    --rb-muted: #5c6560;
    --rb-surface: #ffffff;
    --rb-radius: 20px;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3rem) 1.25rem 4rem;
    color: var(--rb-text);
}

.rb-nav-top {
    margin-bottom: 1.25rem;
}

.rb-nav-top__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--rb-accent);
    text-decoration: none;
}

.rb-nav-top__link:hover {
    text-decoration: underline;
}

.rb-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2.75rem;
    padding: clamp(1.75rem, 4vw, 2.25rem) clamp(1.25rem, 3vw, 2rem);
    border-radius: calc(var(--rb-radius) + 2px);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(5, 97, 42, 0.14);
    box-shadow: 0 8px 36px rgba(15, 40, 25, 0.08);
}

.rb-hero__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 1rem;
    background: linear-gradient(145deg, #05612a, #0a7d3a);
    color: #fff;
    box-shadow: 0 8px 24px rgba(5, 97, 42, 0.28);
}

.rb-hero__icon svg {
    width: 26px;
    height: 26px;
}

.rb-hero h1 {
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 0.6rem;
    color: #0a1f14;
    line-height: 1.15;
}

.rb-hero p {
    margin: 0 auto;
    max-width: 38rem;
    color: var(--rb-muted);
    font-size: clamp(0.95rem, 2vw, 1.06rem);
    line-height: 1.55;
}

.rb-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--rb-muted);
    font-size: 1.05rem;
}

.rb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.rb-card {
    background: var(--rb-surface);
    border-radius: var(--rb-radius);
    overflow: hidden;
    border: 1px solid rgba(5, 97, 42, 0.1);
    box-shadow: 0 12px 36px rgba(15, 40, 25, 0.08);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.rb-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(15, 40, 25, 0.14);
}

.rb-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.rb-card__media {
    aspect-ratio: 16 / 10;
    background: linear-gradient(145deg, #e8f0ec 0%, #dfe8e3 100%);
    overflow: hidden;
}

.rb-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.rb-card:hover .rb-card__media img {
    transform: scale(1.05);
}

.rb-card__body {
    padding: 1.15rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

.rb-card__date {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rb-muted);
}

.rb-card__title {
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
}

.rb-card__excerpt {
    font-size: 0.92rem;
    color: var(--rb-muted);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rb-card__cta {
    margin-top: auto;
    padding-top: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--rb-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.rb-card__cta::after {
    content: "→";
    transition: transform 0.2s ease;
}

.rb-card:hover .rb-card__cta::after {
    transform: translateX(4px);
}

.rb-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.rb-pager a,
.rb-pager span {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
}

.rb-pager a {
    background: var(--rb-accent);
    color: #fff;
    text-decoration: none;
    border: none;
}

.rb-pager a:hover {
    filter: brightness(1.05);
}

.rb-pager span {
    color: var(--rb-muted);
    background: #f0f3f1;
}

.rb-pager .is-muted {
    opacity: 0.45;
    pointer-events: none;
}

/* Страница статьи */
.rb-article {
    background: var(--rb-surface);
    border-radius: calc(var(--rb-radius) + 4px);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 16px 48px rgba(15, 40, 25, 0.08);
}

.rb-article__hero {
    position: relative;
    min-height: 220px;
    background: linear-gradient(120deg, #0d3d22 0%, var(--rb-accent) 45%, #2a8f55 100%);
}

.rb-article__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 280px;
    display: block;
    opacity: 0.95;
}

.rb-article__hero--plain {
    min-height: 120px;
}

.rb-article__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 55%);
    pointer-events: none;
}

.rb-article__title-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.75rem 1.5rem 1.5rem;
    color: #fff;
}

.rb-article__title-wrap h1 {
    margin: 0;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.rb-article__meta {
    margin-top: 0.5rem;
    font-size: 0.88rem;
    opacity: 0.92;
}

.rb-article__body {
    padding: 2rem 1.5rem 2.5rem;
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.75;
}

.rb-article__body h2,
.rb-article__body h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.65rem;
    color: var(--rb-text);
}

.rb-article__body p {
    margin: 0 0 1rem;
}

.rb-article__body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.au-richtext table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
}

.au-richtext th,
.au-richtext td {
    border: 1px solid #cfd6d1;
    padding: 0.5rem 0.65rem;
}

.rb-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--rb-accent);
    text-decoration: none;
}

.rb-back:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .rb-page {
        padding-top: 3rem;
    }

    .rb-article__body {
        padding-left: 2.25rem;
        padding-right: 2.25rem;
    }
}

.rb-article__head--noimg {
    padding: 2rem 1.5rem 1.25rem;
    background: linear-gradient(120deg, #f4f7f5, #fff);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.rb-article__head--noimg h1 {
    margin: 0;
    font-size: clamp(1.45rem, 3.5vw, 2rem);
    font-weight: 700;
    color: #0d2418;
    line-height: 1.25;
}

.rb-article__head--noimg .rb-article__meta {
    margin-top: 0.65rem;
    color: var(--rb-muted);
    font-size: 0.9rem;
}
