.hero__wrapper {
    width: 100%;
    height: 100%;
}

.hero__bg {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hero__bg--img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: .2;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(38, 38, 38, 1);
    z-index: 0;
}

.hero {
    position: relative;
    z-index: 2;
}

.hero__content {
    padding: 120px 0 40px;
    max-width: 660px;
    width: 100%;
}

.hero__text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.hero__text h1 {
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 39px;
    line-height: 120%;
    color: #fff;
}

.hero__text p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 19px;
    line-height: 165%;
    color: rgba(255, 255, 255, 0.75);
}

.blog {
    padding: 48px 0 80px;
    background: #f7f4ee;
}

.blog__tabs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog__tab {
    border: 1px solid rgba(26, 87, 61, 0.15);
    border-radius: 33554400px;
    background: #fff;
    padding: 9px 21px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 13px;
    line-height: 150%;
    text-align: center;
    color: #1a573d;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.blog__tab:hover {
    background: #f1ecdf;
    border-color: rgba(26, 87, 61, 0.3);
}

.blog__tab.active {
    border: 1px solid #1a573d;
    background: #1a573d;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 13px;
    line-height: 150%;
    text-align: center;
    color: #fff;
}

.blog__tab.active:hover {
    background: #12402d;
}

.blog__grid {
    margin: 40px 0 64px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 24px;
}

.blog__card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(18, 61, 43, 0.07);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(26, 87, 61, 0.1);
    border-color: rgba(26, 87, 61, 0.18);
}

.blog__card--img {
    width: 100%;
    height: 176px;
    flex-shrink: 0;
    overflow: hidden;
}

.blog__card--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog__card:hover .blog__card--img img {
    transform: scale(1.06);
}

.blog__card--content {
    flex: 1;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    height: 100%;
}

.blog__card--badge {
    border-radius: 33554400px;
    padding: 6px 12px;
    background: #ede8de;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 11px;
    line-height: 100%;
    letter-spacing: 0.04em;
    color: #1a573d;
}

.blog__card--text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.blog__card--text h3 {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 17px;
    line-height: 140%;
    color: #000;
}

.blog__card--text p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 165%;
    color: rgba(40, 40, 40, 0.65);
}

.blog__card--meta {
    border-top: 1px solid rgba(26, 87, 61, 0.06);
    padding-top: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
}

.blog__card--author, .blog__card--time {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog__card--author span, .blog__card--time span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    color: rgba(40, 40, 40, 0.5);
}

.blog__card--date {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    color: rgba(40, 40, 40, 0.4);
    margin-bottom: -4px;
}

.blog__card--btn {
    border-radius: 14px;
    padding: 12px 20px;
    background: #1a573d;
    border: 1px solid #1a573d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    width: 100%;
    transition: background 0.3s ease;
}

.blog__card:hover .blog__card--btn {
    background: #12402d;
}

.blog__card--btn span {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 150%;
    text-align: center;
    color: #fff;
}

.cta {
    border: 1px solid rgba(18, 61, 43, 0.07);
    border-radius: 16px;
    padding: 48px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.cta__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 830px;
}

.cta__text h2 {
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 38px;
    line-height: 150%;
    text-align: center;
    color: #000;
}

.cta__text p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 17px;
    line-height: 160%;
    text-align: center;
    color: rgba(40, 40, 40, 0.65);
}

.cta__btns {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cta__btn {
    border-radius: 14px;
    padding: 16px 40px;
    background: #1a573d;
    border: 1px solid #1a573d;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.cta__btn:hover {
    background: transparent;
    color: #1a573d;
    box-shadow: 0 10px 24px rgba(26, 87, 61, 0.2);
}

.cta__btn span {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: inherit;
}

.cta__btn--link {
    font-family: var(--numbers-family);
    font-weight: 400;
    font-size: 22px;
    line-height: 150%;
    text-align: center;
    color: #1a573d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cta__btn--link:hover {
    color: #c6a65e;
}


.post-hero {
    position: relative;
    padding: 120px 0 40px;
    background: #262626;
    overflow: hidden;
}

.post-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    z-index: 2;
}

.post-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(38, 38, 38, 1);
    z-index: 1;
}

.post-hero__content {
    position: relative;
    z-index: 3;
}

.post-hero__top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.post-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Ubuntu Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s, gap 0.2s;
}

.post-back:hover {
    color: #fff;
    gap: 12px;
}

.post-hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-family: 'Ubuntu Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.44px;
    text-transform: uppercase;
}

.post-hero__title {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 40px;
    line-height: 1.25;
    color: #fff;
    max-width: 880px;
    margin: 0 0 24px;
}

.post-hero__meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.post-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Ubuntu Sans', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.post-body {
    padding: 64px 0;
    background: #F7F4EE;
}

.post-body__grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

.post-content {
    background: #fff;
    border: 1px solid rgba(18, 61, 43, 0.07);
    border-radius: 16px;
    padding: 40px;
    font-family: 'Ubuntu Sans', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: rgba(40, 40, 40, 0.85);
}

.post-content h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 28px;
    color: #1A2E22;
    margin: 40px 0 16px;
}

.post-content h2:first-child {
    margin-top: 0;
}

.post-content h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 19px;
    color: #1A2E22;
    margin: 32px 0 12px;
}

.post-content p {
    margin: 0 0 16px;
}

.post-content ul,
.post-content ol {
    margin: 0 0 16px 20px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content blockquote {
    border-left: 3px solid #C6A65E;
    padding: 14px 20px;
    margin: 24px 0;
    background: #F7F4EE;
    color: #1A2E22;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.post-content img {
    border-radius: 12px;
    margin: 24px 0;
    width: 100%;
}

.post-content a {
    color: #1A573D;
    text-decoration: underline;
}

.post-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-sidebar__card {
    background: #fff;
    border: 1px solid rgba(18, 61, 43, 0.07);
    border-radius: 16px;
    padding: 24px;
}

.post-sidebar__label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1A2E22;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 16px;
}

.post-share-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(26, 87, 61, 0.15);
    background: #fff;
    color: #1A573D;
    font-family: 'Ubuntu Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.post-share-btn:hover {
    background: #1A573D;
    color: #fff;
}

.post-related-card {
    display: flex;
    gap: 12px;
    text-decoration: none;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(26, 87, 61, 0.06);
}

.post-related-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.post-related-card__img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.post-related-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-related-card__text h4 {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1A2E22;
    line-height: 1.4;
    margin: 0 0 6px;
}

.post-related-card__text span {
    font-family: 'Ubuntu Sans', sans-serif;
    font-size: 12px;
    color: rgba(40, 40, 40, 0.4);
}

.post-author {
    margin-top: 40px;
    padding: 32px 40px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(18, 61, 43, 0.07);
}

.post-author__label {
    font-family: 'Ubuntu Sans', sans-serif;
    font-size: 12px;
    color: rgba(40, 40, 40, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.post-author h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 22px;
    color: #1A2E22;
    margin: 8px 0 12px;
}

.post-author p {
    font-family: 'Ubuntu Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(40, 40, 40, 0.65);
    margin: 0;
    max-width: 700px;
}


/* ==========================================================================
   991px — планшет: сетка статей 3→2, табы фильтра скроллятся, страница
   отдельной статьи переходит в 1 колонку (контент + сайдбар)
   ========================================================================== */
@media (max-width: 991px) {

    .hero__content {
        padding: 110px 0 36px;
    }

    /* BLOG — сетка статей 3 → 2 колонки */
    .blog__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Табы фильтра — горизонтальный скролл, не влезают уже на планшете */
    .blog__tabs {
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .blog__tabs::-webkit-scrollbar {
        display: none;
    }

    .blog__tab {
        flex-shrink: 0;
    }

    .cta {
        padding: 40px 32px;
    }

    /* ===== POST (страница статьи) ===== */
    .post-hero__title {
        font-size: 30px;
    }

    .post-body__grid {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        position: static;
    }

    .post-content,
    .post-author {
        padding: 24px;
    }
}


/* ==========================================================================
   768px — узкий планшет: список статей в 1 колонку
   ========================================================================== */
@media (max-width: 768px) {

    .hero__content {
        padding: 100px 0 32px;
        max-width: 100%;
    }

    .hero__text h1 {
        font-size: 32px;
    }

    .cta {
        padding: 32px 24px;
    }

    .cta__text h2 {
        font-size: 26px;
    }

    .post-hero__title {
        font-size: 26px;
    }
}


@media (max-width: 575px) {

    /* ===== HERO (Блог) ===== */
    .hero__content {
        padding: 100px 0 32px;
        max-width: 100%;
    }

    .hero__text {
        gap: 12px;
    }

    .hero__text h1 {
        font-size: 24px;
    }

    .hero__text p {
        font-size: 15px;
    }

    .hero__text p br {
        display: none;
    }

    /* ===== BLOG ===== */
    .blog {
        padding: 32px 0 40px;
    }

    .blog__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog__tabs {
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .blog__tabs::-webkit-scrollbar {
        display: none;
    }

    .blog__tab {
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 12px;
    }

    .blog__grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 24px 0 40px;
    }

    .blog__card--img {
        height: 200px;
    }

    .blog__card--content {
        padding: 20px;
        gap: 12px;
    }

    .blog__card--text h3 {
        font-size: 16px;
    }

    .blog__card--text p {
        font-size: 13px;
    }

    .blog__card--meta {
        padding-top: 12px;
        gap: 10px;
    }

    .blog__card--btn {
        padding: 12px 16px;
    }

    /* ===== CTA (Не нашли ответ) ===== */
    .cta {
        padding: 28px 20px;
        gap: 20px;
    }

    .cta__text {
        gap: 8px;
    }

    .cta__text h2 {
        font-size: 22px;
    }

    .cta__text p {
        font-size: 14px;
    }

    .cta__btns {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .cta__btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .cta__btn--link {
        font-size: 18px;
    }

    /* ===== POST HERO (страница статьи) ===== */
    .post-hero {
        padding: 100px 0 32px;
    }

    .post-hero__top {
        gap: 12px;
        margin-bottom: 16px;
        flex-wrap: wrap;
    }

    .post-back {
        font-size: 13px;
    }

    .post-hero__badge {
        font-size: 10px;
        padding: 4px 10px;
    }

    .post-hero__title {
        font-size: 24px;
        margin: 0 0 16px;
    }

    .post-hero__meta {
        gap: 12px;
    }

    .post-hero__meta-item {
        font-size: 12px;
    }

    /* ===== POST BODY ===== */
    .post-body {
        padding: 32px 0;
    }

    .post-body__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-content {
        padding: 20px;
        font-size: 14px;
    }

    .post-content h2 {
        font-size: 20px;
        margin: 28px 0 12px;
    }

    .post-content h3 {
        font-size: 16px;
        margin: 24px 0 10px;
    }

    .post-content blockquote {
        padding: 12px 16px;
        margin: 18px 0;
        font-size: 14px;
    }

    .post-sidebar {
        position: static;
        gap: 16px;
    }

    .post-sidebar__card {
        padding: 18px;
    }

    .post-sidebar__label {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .post-share-btn {
        padding: 10px 14px;
        font-size: 12px;
    }

    .post-related-card__img {
        width: 52px;
        height: 52px;
    }

    .post-related-card__text h4 {
        font-size: 12px;
    }

    /* ===== POST AUTHOR ===== */
    .post-author {
        margin-top: 24px;
        padding: 20px;
    }

    .post-author h3 {
        font-size: 18px;
        margin: 6px 0 10px;
    }

    .post-author p {
        font-size: 13px;
        max-width: 100%;
    }
}