.blog-page,
.post-page,
.post-view,
.post__hero,
.post__thumb,
.post-view__close,
.post-view__nav {
    font-family: 'Noto Sans', sans-serif;
}

.blog-page {
    padding: 148px 0 88px;
}

.blog-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #2a2a2a;
}

.blog-eyebrow {
    margin: 0 0 10px;
    color: #fbb800;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.blog-head h1,
.post h1 {
    margin: 0;
    color: #fff;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.blog-head h1 {
    font-size: clamp(34px, 4vw, 52px);
}

.blog-lead {
    max-width: 540px;
    margin: 14px 0 0;
    color: #a3a3a3;
    font-size: 16px;
    line-height: 1.65;
}

.blog-head__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 0 0 auto;
}

.blog-head__actions .tg-btn {
    gap: 8px;
}

.blog-lead-card {
    display: grid;
    grid-template-columns: 1.25fr 0.9fr;
    margin-bottom: 36px;
    border-radius: 20px;
    overflow: hidden;
    background: #191a1b;
    border: 1px solid #2c2c2c;
    color: #fff;
}

.blog-lead-card:hover,
.blog-lead-card:focus-visible {
    border-color: rgba(251, 184, 0, 0.75);
    color: #fff;
}

.blog-lead-card:focus-visible,
.blog-card a:focus-visible,
.post__back:focus-visible,
.blog-filters button:focus-visible {
    outline: 2px solid #fbb800;
    outline-offset: 3px;
}

.blog-lead-card__media {
    position: relative;
    min-height: 420px;
    background: #111;
    overflow: hidden;
}

.blog-lead-card__media img,
.blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-lead-card__media img {
    position: absolute;
    inset: 0;
}

.blog-lead-card:hover img,
.blog-card a:hover img {
    transform: scale(1.04);
}

.blog-lead-card__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 36px 32px;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #9a9a9a;
    font-size: 13px;
    font-weight: 600;
}

.blog-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fbb800;
    color: #181818;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.blog-lead-card h2,
.blog-card h2 {
    margin: 0;
    color: #fff;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.blog-lead-card h2 {
    font-size: clamp(26px, 2.5vw, 36px);
    line-height: 1.15;
}

.blog-lead-card p,
.blog-card p {
    margin: 14px 0 0;
    color: #b5b5b5;
    font-size: 16px;
    line-height: 1.6;
}

.blog-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: #fbb800;
    font-weight: 600;
}

.blog-read i {
    transition: transform 0.25s ease;
}

.blog-lead-card:hover .blog-read i {
    transform: translateX(4px);
}

.blog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-filters button {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #363636;
    background: transparent;
    color: #d6d6d6;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.blog-filters button[aria-pressed="true"],
.blog-filters button:hover {
    border-color: #fbb800;
    background: #fbb800;
    color: #181818;
}

.blog-count {
    margin: 0;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.blog-card[hidden] {
    display: none;
}

.blog-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #191a1b;
    border: 1px solid #2c2c2c;
    color: #fff;
}

.blog-card a:hover {
    border-color: rgba(251, 184, 0, 0.75);
    color: #fff;
}

.blog-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111;
}

.blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 16px 18px;
}

.blog-card .blog-meta {
    margin-bottom: 10px;
}

.blog-card h2 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.blog-card p {
    margin-top: 8px;
    color: #9a9a9a;
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.blog-more-wrap[hidden] {
    display: none;
}

.post-page {
    padding: 148px 0 56px;
}

.post {
    max-width: 980px;
    margin: 0 auto;
}

.post__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: #fbb800;
    font-weight: 600;
}

.post__back:hover {
    color: #fff;
}

.post__head {
    max-width: 760px;
    margin-bottom: 22px;
}

.post__head .blog-meta {
    margin-bottom: 12px;
}

.post h1 {
    font-size: clamp(32px, 4vw, 48px);
}

.post__lead {
    margin: 16px 0 0;
    color: #888888;
    font-size: 16px;
    line-height: 1.5;
}

.post__stage {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(132px, 0.62fr);
    gap: 12px;
    align-items: stretch;
    margin: 0 0 28px;
}

.post__stage[data-count="1"] {
    grid-template-columns: 1fr;
}

.post__hero,
.post__thumb {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid #2c2c2c;
    overflow: hidden;
    background: #111;
    font-family: 'Noto Sans', sans-serif;
}

.post__hero {
    min-height: 420px;
    border-radius: 18px;
    cursor: zoom-in;
}

.post__side {
    display: grid;
    grid-auto-rows: 1fr;
    gap: 12px;
    min-height: 420px;
}

.post__thumb {
    height: 100%;
    min-height: 0;
    border-radius: 14px;
    cursor: pointer;
}

.post__hero img,
.post__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post__hero img {
    transition: opacity 0.35s ease;
}

.post__hero:hover,
.post__thumb:hover {
    border-color: rgba(251, 184, 0, 0.75);
}

.post__hero:focus-visible,
.post__thumb:focus-visible {
    outline: 2px solid #fbb800;
    outline-offset: 3px;
}

.post__body {
    max-width: 720px;
    margin-top: 8px;
    color: #888888;
    font-size: 16px;
    line-height: 1.5;
}

.post__body p {
    margin: 0;
}

.post__body p + p {
    margin-top: 16px;
}

.post .tg-btn {
    margin-top: 32px;
}

.post-view {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 72px;
    background: rgba(8, 8, 8, 0.92);
}

.post-view[hidden] {
    display: none;
}

body.post-view-open {
    overflow: hidden;
}

.post-view__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.post-view__close,
.post-view__nav {
    position: absolute;
    border: 0;
    border-radius: 999px;
    background: #fbb800;
    color: #181818;
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.post-view__close {
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
}

.post-view__nav {
    top: 50%;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
}

.post-view__nav--prev { left: 16px; }
.post-view__nav--next { right: 16px; }

.post-view[data-count="1"] .post-view__nav {
    display: none;
}

@media (max-width: 991.98px) {
    .blog-head,
    .blog-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .blog-lead-card {
        grid-template-columns: 1fr;
    }

    .blog-lead-card__media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .blog-lead-card__copy {
        padding: 22px 20px 24px;
    }

    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767.98px) {
    .blog-page,
    .post-page {
        padding-top: 118px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-head h1 {
        font-size: 34px;
    }

    .post__body,
    .post__lead {
        font-size: 16px;
        line-height: 1.5;
    }

    .post__stage {
        grid-template-columns: 1fr;
    }

    .post__hero,
    .post__side {
        min-height: 0;
    }

    .post__hero {
        aspect-ratio: 16 / 10;
    }

    .post__side {
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        grid-auto-rows: 96px;
        height: 96px;
    }

    .post-view {
        padding: 58px 8px;
    }

    .post-view__nav--prev { left: 8px; }
    .post-view__nav--next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .blog-lead-card img,
    .blog-card img,
    .blog-read i,
    .post__hero img {
        transition: none;
    }
}
