/* Хаб новин /news (09.11.2026) — за макетом Миколи з Асани; заміри: ~/work/irbis-news/maket/SPEC.md.
   Шрифт — Proxima Nova сайту замість Montserrat макета (рішення Andrij 09.11), розміри підібрано за висотою великих літер.
   Файл з датою в імені: CSS кешується на рік (див. head.blade.php), нова версія = новий файл.
   Пастки styles.css, які тут скинуто: html { font-size: 62.5% } (тому все в px), p { font: 1.5rem; color: #555659f2 },
   ul { margin-left: 1rem; list-style: none }, li { width: max-content }, li::before, svg { width: 2.3rem }, div/section { font }.
   Іконки соцмереж у шаблоні — Font Awesome Free 6.7.2, https://fontawesome.com/license/free (CC BY 4.0). */

.nh {
    display: block;
    color: #131a40;
    font-family: 'ProximaNova-Regular', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.nh :where(div, section, h1, h2, h3, p, ul, li, a, strong, span, nav) {
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    min-height: 0;
}

.nh :where(ul) {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.nh :where(li) {
    width: auto;
    max-width: none;
}

.nh :where(li)::before {
    content: none;
    transform: none;
}

.nh :where(a) {
    text-decoration: none;
}

.nh a:focus-visible {
    outline: 3px solid #2f37dd;
    outline-offset: 3px;
}

.nh-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Відступи по боках — як у шапки (site-header-20261027.css): 48 / 24 / 16. Лише left/right: скорочення padding у медіазапитах
   обнуляло б вертикальні відступи .nh-intro і .nh-hero__inner (той самий рівень специфічності, правило нижче у файлі). */
.nh-container {
    box-sizing: border-box;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 48px;
    padding-right: 48px;
}

/* ---------- Герой ---------- */

.nh-hero {
    background: #2c34d5;
    background: linear-gradient(90deg, #1d24b0 0%, #2c34d5 45%, #4954fe 100%);
    color: #fff;
}

.nh-hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 252px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.nh-hero__title {
    font-family: 'ProximaNova-Bold', Arial, sans-serif;
    font-weight: 700;
    font-size: 56px;
    line-height: 1.1;
    color: #fff;
}

.nh-hero__mark {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.nh-hero__mark svg {
    width: 100px;
    height: 56px;
    fill: #fff;
}

/* ---------- Вступ ---------- */

.nh-intro {
    padding-top: 56px;
}

.nh-intro__title {
    font-family: 'ProximaNova-Bold', Arial, sans-serif;
    font-weight: 700;
    font-size: 38px;
    line-height: 1.2;
    color: #131a40;
}

.nh-intro__lead {
    max-width: 900px;
    margin-top: 16px;
    font-size: 18px;
    line-height: 27px;
    color: #505165;
}

/* Друге речення з нового рядка, як у макеті; на вузьких екранах тече разом з першим. */
.nh-intro__lead2 {
    display: block;
}

/* ---------- Facebook ---------- */

.nh-fb {
    display: grid;
    grid-template-columns: minmax(0, 457fr) minmax(0, 737fr);
    gap: 40px;
    margin-top: 34px;
    padding: 40px;
    border-radius: 20px;
    background: #f4f4ff;
}

.nh-fb__about {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nh-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
}

.nh-icon svg {
    display: block;
    width: auto;
    fill: #fff;
}

.nh-icon--fb {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #2f37dd;
}

.nh-icon--fb svg {
    height: 30px;
}

.nh-fb__name {
    margin-top: 18px;
    font-family: 'ProximaNova-Bold', Arial, sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.2;
}

.nh-fb__text {
    margin-top: 14px;
    font-size: 17px;
    line-height: 25.5px;
    color: #505165;
}

.nh-fb__about .nh-btn {
    margin-top: 24px;
}

.nh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 48px;
    padding: 0 32px;
    border-radius: 8px;
    font-family: 'ProximaNova-Semibold', Arial, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.nh-btn--solid {
    background: #2f37dd;
    color: #fff;
}

.nh-btn--solid:hover {
    background: #1d24b0;
    color: #fff;
}

.nh-btn--outline {
    height: 46px;
    padding: 0 24px;
    border: 2px solid #2f37dd;
    background: #fff;
    color: #2f37dd;
}

.nh-btn--outline:hover {
    background: #2f37dd;
    color: #fff;
}

.nh-topics {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nh-topic {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
    min-height: 76px;
    padding: 14px 24px;
    border-radius: 12px;
    background: #fff;
    color: #131a40;
    transition: box-shadow 0.2s;
}

.nh-topic:hover {
    box-shadow: 0 6px 20px rgba(19, 26, 64, 0.1);
}

.nh-topic__text {
    position: relative;
    display: block;
    min-width: 0;
}

.nh-topic__title {
    display: block;
    font-family: 'ProximaNova-Bold', Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
}

.nh-topic__desc {
    display: block;
    margin-top: 2px;
    font-size: 15px;
    line-height: 1.35;
    color: #505165;
}

.nh-topic__arrow {
    flex: none;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #2f37dd;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s;
}

.nh-topic:hover .nh-topic__arrow {
    transform: translateX(4px);
}

/* ---------- Канали ---------- */

.nh-channels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
}

/* «Архів новин» під картками каналів — на розділи /news/{slug} (коментар Миколи 09.11). */
.nh-archive {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 64px;
}

.nh-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
    padding: 32px;
    border: 2px solid #e1e4f5;
    border-radius: 20px;
    background: #fff;
}

.nh-icon--dark {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #141a3e;
}

.nh-icon--dark svg {
    height: 22px;
}

.nh-card__name {
    margin-top: 15px;
    font-family: 'ProximaNova-Bold', Arial, sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.2;
}

.nh-card__text {
    margin-top: 12px;
    font-size: 16px;
    line-height: 24px;
    color: #505165;
}

.nh-card__list {
    margin-top: 14px;
}

.nh-card__list li {
    position: relative;
    padding-left: 14px;
    font-size: 16px;
    line-height: 26px;
    color: #131a40;
}

.nh-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #131a40;
    transform: none;
}

.nh-card__cta {
    margin-top: auto;
    padding-top: 26px;
}

/* ---------- Адаптив (у макеті лише десктоп 1440) ---------- */

@media (max-width: 1279px) {
    .nh-container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 1023px) {
    .nh-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nh-hero__inner {
        min-height: 200px;
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .nh-hero__title {
        font-size: 44px;
    }

    .nh-hero__mark {
        width: 104px;
        height: 104px;
    }

    .nh-hero__mark svg {
        width: 72px;
        height: 40px;
    }

    .nh-intro {
        padding-top: 48px;
    }

    .nh-intro__title {
        font-size: 32px;
    }

    .nh-fb {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        margin-top: 36px;
        padding: 32px;
    }
}

@media (max-width: 899px) {
    .nh-channels {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .nh-hero__inner {
        min-height: 0;
    }

    .nh-hero__title {
        font-size: 36px;
    }

    .nh-hero__mark {
        display: none;
    }

    .nh-intro {
        padding-top: 36px;
    }

    .nh-intro__title {
        font-size: 28px;
        line-height: 1.2;
    }

    .nh-intro__lead {
        margin-top: 12px;
        font-size: 17px;
        line-height: 1.5;
    }

    .nh-intro__lead2 {
        display: inline;
    }

    .nh-fb {
        margin-top: 28px;
        padding: 24px;
        border-radius: 16px;
    }

    .nh-fb__name {
        margin-top: 20px;
        font-size: 24px;
    }

    .nh-fb__text {
        font-size: 16px;
        line-height: 1.5;
    }

    .nh-topic {
        min-height: 68px;
        padding: 12px 16px;
    }

    .nh-topic__title {
        font-size: 17px;
    }

    .nh-topic__desc {
        font-size: 14px;
    }

    .nh-channels {
        gap: 16px;
    }

    .nh-archive {
        margin-top: 32px;
        margin-bottom: 48px;
    }

    .nh-card {
        padding: 24px;
        border-radius: 16px;
    }

    .nh-card__name {
        font-size: 24px;
    }

    .nh-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nh-btn,
    .nh-topic,
    .nh-topic__arrow {
        transition: none;
    }
}
