/* =================================================
   HOME / HERO (Top Story)
================================================= */

.home-hero {
    margin: 18px 0 26px;
}

.hero-card {
    border: 1px solid #E7E3DA;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 0;
    align-items: stretch;
}

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

.hero-content {
    padding: 26px 26px 24px;
}

.hero-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
    border: 1px solid rgba(15, 118, 110, .25);
    background: #E7F6F4;
    color: #0F766E;
}

.hero-badge.ad {
    border: 1px solid rgba(15, 118, 110, .20);
    background: #FBFAF7;
    color: #334155;
}

.hero-title {
    margin: 0 0 10px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    color: #0f172a;
}

.hero-lede {
    margin: 0 0 14px;
    color: #334155;
    font-size: 16px;
    line-height: 1.7;
    max-width: 62ch;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    color: #556070;
    margin-bottom: 18px;
}

.hero-meta span + span::before {
    content: "•";
    margin: 0 8px 0 6px;
    color: #94a3b8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    user-select: none;
}

.hero-btn-primary {
    background: var(--hdr-accent);
    color: #fff;
    border: 1px solid rgba(15, 118, 110, .35);
}

.hero-btn-primary:hover {
    background: #0B5F59;
    text-decoration: none;
}

.hero-btn-secondary {
    background: #FBFAF7;
    color: #0f172a;
    border: 1px solid #E7E3DA;
}

.hero-btn-secondary:hover {
    background: #F3EFE8;
    text-decoration: none;
}

/* Image side */
.hero-media {
    position: relative;
    min-height: 260px;
    background: linear-gradient(135deg, #FBFAF7, #F3EFE8);
    border-left: 1px solid #E7E3DA;
}

@media (max-width: 991px) {
    .hero-media {
        border-left: 0;
        border-top: 1px solid #E7E3DA;
        min-height: 220px;
    }
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .08), transparent 55%);
    pointer-events: none;
}

/* =================================================
   HOME / LATEST (full styles)
================================================= */

.home-latest {
    margin: 36px 0 52px;
}

/* Header */
.latest-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.latest-title {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0;
}

.latest-more {
    font-size: 14px;
    color: #556070;
    text-decoration: none;
}

.latest-more:hover {
    color: #0f766e;
    text-decoration: underline;
}

/* Grid */
.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

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

/* Card */
.latest-card {
    border: 1px solid #E7E3DA;
    border-radius: 18px;
    background: #ffffff;
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    min-height: 260px;

    transition: box-shadow .18s ease,
    transform .18s ease;
}

.latest-card:hover {
    box-shadow: 0 14px 34px rgba(15, 23, 42, .10);
    transform: translateY(-1px);
}

/* Kicker */
.latest-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.latest-badge {
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;

    background: #E7F6F4;
    color: #0F766E;
    border: 1px solid rgba(15, 118, 110, .25);
}

.latest-badge.ad {
    background: #FBFAF7;
    color: #475467;
    border-color: #E7E3DA;
}

/* Title */
.latest-title-card {
    font-size: 16px;
    font-weight: 850;
    line-height: 1.4;
    margin: 0 0 10px;
    color: #0f172a;
}

.latest-title-card a {
    color: inherit;
    text-decoration: none;
}

.latest-title-card a:hover {
    text-decoration: underline;
}

/* Excerpt */
.latest-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #475467;
    margin: 0 0 18px;
}

/* Meta */
.latest-meta {
    margin-top: auto;
    font-size: 13px;
    color: #667085;
}

.latest-meta span + span::before {
    content: "•";
    margin: 0 6px;
    color: #94a3b8;
}

/* =================================================
   HOME / CATEGORIES BLOCK (FINAL)
================================================= */

.home-cats {
    margin: 60px 0 80px;
}

/* Grid */
.cats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px; /* больше воздуха между колонками */
}

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

/* Category block */
.cat-block {
    border: 1px solid #E7E3DA;
    border-radius: 20px;
    background: #ffffff;
    overflow: hidden;
}

/* Header */
.cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    padding: 18px 22px;
    background: #FBFAF7;
    border-bottom: 1px solid #E7E3DA;
}

.cat-title {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.cat-more {
    font-size: 13px;
    font-weight: 650;
    color: #556070;
    text-decoration: none;
}

.cat-more:hover {
    color: #0F766E;
    text-decoration: underline;
}

/* Body */
.cat-body {
    padding: 22px 22px 26px;
}

/* Featured article */
.cat-feature {
    border: 0; /* убрали рамку */
    border-radius: 16px;
    padding: 22px 22px 24px;

    background: #FBFAF7; /* мягкая подложка вместо рамки */
    box-shadow: inset 0 0 0 1px rgba(231, 227, 218, .65); /* очень тонкий контур */

    margin-bottom: 28px; /* сильнее отделяем от списка */

    transition: background .18s ease, box-shadow .18s ease;
}

.cat-feature:hover {
    background: #F3EFE8; /* лёгкий hover */
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .18);
    transform: none; /* убираем “подпрыгивание” */
}


/* Badge */
.cat-feature .badge {
    display: inline-block;
    margin-bottom: 12px;

    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;

    background: #E7F6F4;
    color: #0F766E;
    border: 1px solid rgba(15, 118, 110, .25);
}

/* Featured title */
.cat-feature h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
    color: #0f172a;
}

.cat-feature h3 a {
    color: inherit;
    text-decoration: none;
}

.cat-feature h3 a:hover {
    text-decoration: underline;
}

/* Featured excerpt */
.cat-feature p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #475467;
}

/* Links list */
.cat-links
    /* Single link */
.cat-link {
    display: flex;
    justify-content: space-between;
    gap: 18px;

    padding: 16px 0; /* больше воздуха */
    color: #0f172a;
    text-decoration: none;
}

.cat-link:not(:last-child) {
    border-bottom: 1px solid rgba(231, 227, 218, .45); /* тоньше/тише */
}

/* Link title */
.cat-link-title {
    font-size: 15px;
    font-weight: 750;
    line-height: 1.4;
    color: #0f172a;
}

/* Link meta */
.cat-link-meta {
    font-size: 12px;
    color: #667085;
    white-space: nowrap;
}

/* =================================================
   HOME / NEWSLETTER (FINAL)
================================================= */

.home-newsletter {
    padding: 60px 0;
    background: #FBFAF7;
    border-top: 1px solid #E7E3DA;
    border-bottom: 1px solid #E7E3DA;
}

.newsletter-box {
    max-width: 880px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 22px;
    padding: 42px 44px;
    border: 1px solid #E7E3DA;
}

@media (max-width: 767px) {
    .home-newsletter {
        margin: 64px 0 72px;
        padding: 42px 0;
    }

    .newsletter-box {
        padding: 30px 22px;
        border-radius: 18px;
    }
}

/* Kicker */
.newsletter-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 14px;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;

    background: #E7F6F4;
    color: #0F766E;
    border: 1px solid rgba(15, 118, 110, .25);
}

/* Title & text */
.newsletter-title {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    font-weight: 950;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #0f172a;
}

.newsletter-sub {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.7;
    color: #475467;
    max-width: 70ch;
}

/* Form */
.newsletter-form {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 12px;
}

@media (max-width: 575px) {
    .newsletter-form {
        flex-direction: column;
    }
}

/* Input */
.newsletter-input {
    flex: 1;
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 14px;
    border: 1px solid #E7E3DA;
    background: #ffffff;
    color: #0f172a;

    outline: none;
    box-shadow: none;

    transition: border-color .15s ease, box-shadow .15s ease;
}

.newsletter-input::placeholder {
    color: #8A93A3;
}

.newsletter-input:focus {
    border-color: rgba(15, 118, 110, .55);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .15);
}

/* Button */
.newsletter-btn {
    padding: 14px 20px;
    border-radius: 14px;

    background: #0F766E;
    color: #ffffff;
    border: 1px solid rgba(15, 118, 110, .35);

    font-size: 15px;
    font-weight: 900;
    letter-spacing: -0.01em;

    cursor: pointer;
    user-select: none;

    transition: background .15s ease, border-color .15s ease;
}

.newsletter-btn:hover {
    background: #0B5F59;
    border-color: #0B5F59;
}

.newsletter-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .2);
}

/* Notes */
.newsletter-note {
    margin: 10px 0 0;
    font-size: 13px;
    color: #667085;
    line-height: 1.6;
}

.newsletter-note a {
    color: #0F766E;
    text-decoration: none;
}

.newsletter-note a:hover {
    text-decoration: underline;
}

/* Success / error */
.newsletter-success,
.newsletter-error {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
}

.newsletter-success {
    background: #ECFDF3;
    color: #027A48;
    border: 1px solid #ABEFC6;
}

.newsletter-error {
    background: #FEF3F2;
    color: #B42318;
    border: 1px solid #FDA29B;
}

/* Trust row */
.newsletter-trust {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #E7E3DA;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

.trust-item {
    display: flex;
    align-items: center; /* ВАЖНО */
    gap: 14px;
}

.trust-ico {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-text {
    font-size: 14px;
    line-height: 1.55;
    color: #475467;
}

/* Consent checkbox */
.newsletter-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;

    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #475467;
}

.newsletter-consent input {
    margin-top: 3px;
    accent-color: #0F766E;
}

.newsletter-consent a {
    color: #0F766E;
    text-decoration: none;
}

.newsletter-consent a:hover {
    text-decoration: underline;
}
