/* ==========================================================================
   AIDroga.pl — warstwa designu (2026)
   Ładowana PO bootstrapie i site.css, więc nadpisuje stare reguły.
   Zasada: nie zmieniamy nazw klas w widokach tam, gdzie nie trzeba —
   stary „chrome" (.menu2, .heading2, .footer2) dostaje tu nowy wygląd,
   dzięki czemu wszystkie podstrony zmieniają się jednocześnie.
   ========================================================================== */

:root {
    /* --- paleta --- */
    --ink: #0F1B2D; /* granat prawie czarny: nagłówki, nav, stopka */
    --ink-2: #33415C; /* tekst podstawowy */
    --muted: #6B7A90; /* metadane, podpisy */
    --bg: #F6F7FA; /* tło strony */
    --surface: #FFFFFF; /* karty */
    --surface-2: #FBFCFD;
    --line: #E4E8EF;
    --accent: #0EA47A; /* szmaragd — akcent marki */
    --accent-dark: #0B8163;
    --accent-soft: #E7F6F0;
    --amber: #F0A22E;
    /* --- typografia --- */
    --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-read: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    /* --- kształt --- */
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15,27,45,.05), 0 2px 8px rgba(15,27,45,.04);
    --shadow-md: 0 6px 18px rgba(15,27,45,.07), 0 16px 40px rgba(15,27,45,.06);
    --container: 1180px;
}

/* ==========================================================================
   PODSTAWY
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ui);
    background: var(--bg);
    color: var(--ink-2);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-ui);
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.2;
}

a {
    color: var(--accent);
}

    a:hover {
        color: var(--accent-dark);
    }

img {
    max-width: 100%;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* stare klasy typograficzne — przemapowane na nowy system */
.mp-mainfont {
    font-family: var(--font-ui);
}

.mp-mainfont-smaller {
    font-family: var(--font-ui);
    font-size: .94rem;
}

.mp-title {
    font-family: var(--font-ui);
    letter-spacing: -.015em;
    font-weight: 700;
    color: var(--ink);
}

.mp-subheader {
    font-family: var(--font-ui);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
}

.link-black,
.mp-title-links a {
    color: var(--ink);
    text-decoration: none;
}

    .link-black:hover,
    .mp-title-links a:hover {
        color: var(--accent);
        text-decoration: none;
    }

/* ==========================================================================
   NAWIGACJA  (stare klasy: .menu2 / .nav2 / .menu__link2)
   ========================================================================== */

.menu2 {
    background: var(--ink);
    padding: 0;
}

/* UWAGA: <nav> nosi jednocześnie .menu2 (tło) i .nav2 (układ), więc nie wolno
   dawać mu max-width — obcięłoby to ciemny pasek razem z treścią. Tło zostaje
   pełnej szerokości, a zawartość centrujemy marginesem wewnętrznym. */
.nav2 {
    max-width: none;
    margin: 0;
    padding: 10px max(24px, calc((100% - var(--container)) / 2));
    align-items: center;
}

.nav__logo2 {
    max-height: 46px;
    width: auto;
}

.menu__list2 {
    gap: 2px;
    align-items: center;
}

.menu__link2 {
    font-family: var(--font-ui);
    font-size: .95rem;
    font-weight: 500;
    color: #AFBBCC;
    padding: 8px 14px;
    border-radius: 8px;
    transition: color .15s ease, background .15s ease;
}

    .menu__link2:hover {
        color: #fff;
        background: rgba(255,255,255,.08);
        text-decoration: none;
    }

.menu__icon2 {
    color: #AFBBCC;
}

/* ==========================================================================
   HERO  (stare klasy: .heading2 / .block2 / .block--dark2 / .block--skewed-left2)
   Skos zastąpiony gradientem i delikatną siatką — czytelniej i nowocześniej.
   ========================================================================== */

.heading2.block2 {
    position: relative;
    padding: 0;
    background: linear-gradient(160deg, #0F1B2D 0%, #16263F 55%, #113A33 100%);
    color: #D7DEE8;
    clip-path: none;
    overflow: hidden;
}

    .heading2.block2::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
        background-size: 22px 22px;
        pointer-events: none;
    }

.heading2 .container2 {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    padding: 64px 24px 72px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
}

.heading_left2 {
    margin: 0;
    align-self: center;
    justify-self: stretch;
    grid-column: auto;
}

.heading_right2 {
    justify-self: end;
}

.h12,
.heading2 h1 {
    font-family: var(--font-ui);
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
    color: #fff;
    margin: 0;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #7FDCBB;
    margin-bottom: 1.1em;
}

    .hero-eyebrow::before {
        content: "";
        width: 22px;
        height: 2px;
        background: var(--accent);
        display: inline-block;
    }

.hero-lead {
    color: #AEBCCE;
    font-size: 1.06rem;
    max-width: 52ch;
    margin: 1em 0 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.8em;
}

.heading-banner2 {
    border-radius: 18px;
    box-shadow: 0 24px 50px rgba(0,0,0,.35);
    max-width: 460px;
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.10);
}

/* ==========================================================================
   PRZYCISKI
   ========================================================================== */

.btn-solid,
.btn-outline-light2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: .98rem;
    padding: 13px 24px;
    border-radius: 10px;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, background .15s ease, border-color .15s ease;
}

.btn-solid {
    background: var(--accent);
    color: #fff;
}

    .btn-solid:hover {
        background: var(--accent-dark);
        color: #fff;
        text-decoration: none;
        transform: translateY(-2px);
    }

.btn-outline-light2 {
    border-color: rgba(255,255,255,.28);
    color: #fff;
}

    .btn-outline-light2:hover {
        border-color: #fff;
        color: #fff;
        text-decoration: none;
    }

/* bootstrapowe przyciski w treści bloga — dociągnięte do nowej palety */
.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    font-family: var(--font-ui);
    font-weight: 600;
    border-radius: 9px;
    padding: 10px 20px;
}

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:not(:disabled):not(.disabled):active {
        background-color: var(--accent-dark);
        border-color: var(--accent-dark);
        box-shadow: none;
    }

.btn-outline-primary {
    color: var(--accent);
    border-color: var(--accent);
    font-family: var(--font-ui);
    font-weight: 600;
    border-radius: 9px;
}

    .btn-outline-primary:hover {
        background-color: var(--accent);
        border-color: var(--accent);
        color: #fff;
    }

/* ==========================================================================
   UKŁAD TREŚCI
   ========================================================================== */

body > .container.mp-mainfont {
    max-width: var(--container);
    padding-left: 24px;
    padding-right: 24px;
}

/* stara kreska rozdzielająca kolumnę wpisów od sidebara — już niepotrzebna,
   karty same się separują */
.border-right {
    border-right: none !important;
}

.blog-main {
    padding-top: 44px;
    padding-bottom: 24px;
}

.blog-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

    .blog-section-head h2 {
        font-size: 1.55rem;
        font-weight: 800;
        margin: 0;
    }

    .blog-section-head .count {
        font-size: .85rem;
        color: var(--muted);
    }

/* ==========================================================================
   KARTA WPISU (lista artykułów)
   ========================================================================== */

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.post-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .post-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
        border-color: #D3DAE5;
    }

.post-card__media {
    display: block;
    background: var(--surface-2);
    overflow: hidden;
}

    .post-card__media img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        display: block;
        border: 0;
        transition: transform .3s ease;
    }

.post-card:hover .post-card__media img {
    transform: scale(1.03);
}

.post-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

.post-card__date {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.post-card__title {
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
}

    .post-card__title a {
        color: var(--ink);
        text-decoration: none;
    }

        .post-card__title a:hover {
            color: var(--accent);
            text-decoration: none;
        }

.post-card__excerpt {
    font-size: .94rem;
    line-height: 1.6;
    color: var(--ink-2);
    margin: 0 0 16px;
    flex: 1;
}

.post-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.post-card__more {
    align-self: flex-start;
    font-weight: 700;
    font-size: .92rem;
    color: var(--accent);
    text-decoration: none;
}

    .post-card__more:hover {
        color: var(--accent-dark);
        text-decoration: none;
    }

/* ==========================================================================
   TAGI (renderowane przez TagLink jako .badge.mp-tagfont)
   ========================================================================== */

.badge.mp-tagfont,
a.mp-tagfont {
    display: inline-block;
    background: var(--accent-soft) !important;
    color: var(--accent-dark) !important;
    font-family: var(--font-ui);
    font-size: .76rem !important;
    font-weight: 600;
    letter-spacing: .01em;
    padding: 6px 12px !important;
    border-radius: 99px;
    border: 1px solid rgba(14,164,122,.18);
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

    .badge.mp-tagfont:hover,
    a.mp-tagfont:hover {
        background: var(--accent) !important;
        color: #fff !important;
        text-decoration: none;
    }

.tags-div {
    display: inline-block;
}

/* ==========================================================================
   ARTYKUŁ
   ========================================================================== */

.post-article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 28px;
}

.post-header h1,
h1.mp-title {
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: .5rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
    font-size: .88rem;
    color: var(--muted);
}

.post-meta__date {
    font-weight: 600;
}

.post-meta__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* --- treść artykułu: szeryfy, większy oddech --- */
.post-body {
    font-family: var(--font-read);
    font-size: 1.12rem;
    line-height: 1.78;
    color: #1F2C42;
}

    .post-body p {
        margin-bottom: 1.35em;
    }

    .post-body h2,
    .post-body h3,
    .post-body h4 {
        font-family: var(--font-ui);
        margin: 1.8em 0 .6em;
        letter-spacing: -.015em;
    }

    .post-body h2 {
        font-size: 1.6rem;
        font-weight: 800;
    }

    .post-body h3 {
        font-size: 1.3rem;
        font-weight: 700;
    }

    .post-body a {
        color: var(--accent-dark);
        text-decoration: underline;
        text-underline-offset: 3px;
        text-decoration-thickness: 1.5px;
    }

    .post-body ul,
    .post-body ol {
        margin: 0 0 1.35em 1.1em;
        padding-left: .8em;
    }

    .post-body li {
        margin-bottom: .45em;
    }

    .post-body img {
        border-radius: var(--radius-sm);
        border: 1px solid var(--line);
        margin: 1.4em 0;
        height: auto;
    }

    .post-body blockquote {
        border-left: 4px solid var(--accent);
        background: var(--accent-soft);
        border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
        padding: 16px 22px;
        margin: 1.6em 0;
        font-style: italic;
        color: var(--ink-2);
    }

        .post-body blockquote p:last-child {
            margin-bottom: 0;
        }

    .post-body code {
        font-family: var(--font-mono);
        font-size: .88em;
    }

    .post-body :not(pre) > code {
        background: #EEF1F6;
        color: #0B4F3C;
        padding: .15em .4em;
        border-radius: 5px;
        border: 1px solid var(--line);
    }

    .post-body pre {
        background: var(--ink);
        border-radius: var(--radius-sm);
        padding: 18px 20px;
        overflow-x: auto;
        margin: 1.5em 0;
        border: 1px solid #1D2C44;
    }

        .post-body pre code {
            background: transparent;
            border: 0;
            padding: 0;
            color: #D8E2EF;
            font-size: .86rem;
            line-height: 1.6;
        }

    .post-body table {
        width: 100%;
        border-collapse: collapse;
        margin: 1.5em 0;
        font-family: var(--font-ui);
        font-size: .95rem;
        display: block;
        overflow-x: auto;
    }

    .post-body th,
    .post-body td {
        border: 1px solid var(--line);
        padding: 10px 14px;
        text-align: left;
    }

    .post-body th {
        background: var(--surface-2);
        font-weight: 700;
        color: var(--ink);
    }

/* --- poprzedni / następny wpis --- */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 28px 0;
}

.post-nav__item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    text-decoration: none;
    display: block;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

    .post-nav__item:hover {
        border-color: var(--accent);
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
        text-decoration: none;
    }

    .post-nav__item.is-next {
        text-align: right;
    }

        /* gdy istnieje tylko „następny" — trzymaj go w prawej kolumnie */
        .post-nav__item.is-next:only-child {
            grid-column: 2;
        }

.post-nav__label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--accent);
    margin-bottom: 6px;
}

.post-nav__title {
    color: var(--ink);
    font-weight: 600;
    font-size: .98rem;
    line-height: 1.4;
}

/* --- ramka autora --- */
.author-box {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin: 28px 0;
}

.author-box__img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-soft);
}

.author-box__label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    margin-bottom: 4px;
}

.author-box__name {
    font-family: var(--font-ui);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

.author-box__bio {
    font-size: .92rem;
    color: var(--ink-2);
    margin: 0;
}

/* ==========================================================================
   KOMENTARZE
   ========================================================================== */

.comments-block {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 30px;
    margin-bottom: 28px;
}

.comments-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.comment {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

    .comment:first-of-type {
        border-top: 0;
        padding-top: 0;
    }

.comment__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-2);
}

.comment__head {
    font-size: .88rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.comment__author {
    font-weight: 700;
    color: var(--ink);
    text-transform: none;
}

    .comment__author.is-admin {
        color: var(--accent-dark);
    }

.comment__text {
    color: var(--ink-2);
}

/* formularz komentarza */
.comment-form .form-control {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-family: var(--font-ui);
    font-size: .96rem;
    background: var(--surface-2);
    margin-bottom: 14px;
}

    .comment-form .form-control:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(14,164,122,.14);
        background: #fff;
    }

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.sidebar {
    padding-top: 44px;
    padding-bottom: 40px;
}

.widget {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 20px;
}

    .widget .mp-subheader,
    .widget h3 {
        margin: 0 0 14px;
    }

.widget--plain {
    background: transparent;
    border: 0;
    padding: 0;
}

.widget__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
}

    .widget__list li {
        border-bottom: 1px solid var(--line);
    }

        .widget__list li:last-child {
            border-bottom: 0;
        }

        .widget__list li a {
            display: block;
            padding: 10px 0;
            font-size: .95rem;
            line-height: 1.45;
            color: var(--ink-2);
            text-decoration: none;
        }

            .widget__list li a:hover {
                color: var(--accent);
                text-decoration: none;
            }

.widget__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.widget__promo img {
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    width: 100%;
    height: auto;
}

/* banery promocyjne w treści artykułu (_NewsletterPost) */
.links img {
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* wyszukiwarka */
.search-form .form-control {
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    background: var(--surface-2);
    font-size: .95rem;
    padding: 12px 14px;
    height: auto;
}

    .search-form .form-control:focus {
        border-color: var(--accent);
        box-shadow: none;
        background: #fff;
    }

.search-form .btn {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 10px 16px;
}

    .search-form .btn img {
        width: 18px;
        height: 18px;
        filter: brightness(0) invert(1);
    }

/* ==========================================================================
   PAGINACJA
   ========================================================================== */

.pager {
    display: flex;
    gap: 10px;
    justify-content: center;
    float: none !important;
    padding: 36px 0 8px;
}

    .pager .btn {
        min-width: 150px;
    }

/* ==========================================================================
   KARTY KURSÓW  (/szkolenia — współdzielone z Courses.cshtml)
   ========================================================================== */

.courses-hero {
    max-width: 780px;
    margin: 48px auto 40px;
    text-align: center;
    padding: 0 16px;
}

    .courses-hero h2 {
        font-family: var(--font-ui);
        font-size: 2.25rem;
        font-weight: 800;
        letter-spacing: -.02em;
        margin-bottom: 12px;
        color: var(--ink);
    }

    .courses-hero p {
        color: var(--muted);
        font-size: 1.05rem;
        line-height: 1.65;
        margin: 0;
    }

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.course-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .course-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
        border-color: #D3DAE5;
    }

    .course-card--new {
        border-color: var(--accent);
    }

.course-card__img {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--surface-2);
}

    .course-card__img img {
        width: 100%;
        height: auto;
        display: block;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

.course-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(14,164,122,.35);
}

.course-card__body {
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex: 1;
}

.course-card__title {
    font-family: var(--font-ui);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
}

    .course-card__title a {
        color: var(--ink);
        text-decoration: none;
    }

        .course-card__title a:hover {
            color: var(--accent);
            text-decoration: none;
        }

.course-card__desc {
    color: var(--ink-2);
    font-size: .94rem;
    line-height: 1.6;
    margin: 0 0 18px;
    flex: 1;
}

.course-card__link {
    color: var(--accent);
    font-weight: 700;
    font-size: .92rem;
    text-decoration: none;
    align-self: flex-start;
}

    .course-card__link:hover {
        color: var(--accent-dark);
        text-decoration: none;
    }

/* ==========================================================================
   STOPKA  (stare klasy: .footer2 / .footer-info2 / .footer-info3)
   ========================================================================== */

.footer2 {
    background: var(--ink);
    color: #9FAEC2;
    margin-top: 40px;
    padding: 48px 0 40px;
}

    .footer2 .container2 {
        max-width: var(--container);
        margin: 0 auto;
        padding: 0 24px;
    }

    .footer2 .grid2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        align-items: start;
    }

    .footer2 .nav__logo2 {
        max-height: 44px;
        margin-bottom: 14px;
    }

    .footer2 a {
        color: #D7DEE8;
        text-decoration: none;
    }

        .footer2 a:hover {
            color: #fff;
            text-decoration: underline;
            text-underline-offset: 3px;
        }

.footer-info2 {
    font-size: .88rem;
    color: #7E8FA6;
}

.footer-info3 {
    font-size: .92rem;
    display: grid;
    gap: 4px;
    justify-items: start;
}

.footer-name2 {
    font-weight: 700;
    color: #fff;
}

.footer-form2 {
    margin-top: 2px;
}

/* ==========================================================================
   RESPONSYWNOŚĆ
   ========================================================================== */

@media (max-width: 991px) {
    .heading2 .container2 {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 48px 24px 56px;
    }

    .heading_right2 {
        justify-self: start;
    }

    .heading-banner2 {
        max-width: 100%;
    }

    .post-article {
        padding: 28px 22px;
    }

    .sidebar {
        padding-top: 8px;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 16px;
    }

    .post-body {
        font-size: 1.06rem;
    }

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

        .post-nav__item.is-next {
            text-align: left;
        }

    .author-box {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .comments-block {
        padding: 22px 18px;
    }

    .comment {
        grid-template-columns: 1fr;
    }

    .comment__avatar {
        display: none;
    }

    .footer2 .grid2 {
        grid-template-columns: 1fr;
    }

    .pager {
        flex-direction: column;
    }

        .pager .btn {
            width: 100%;
        }
}

@media (max-width: 580px) {
    .courses-hero h2 {
        font-size: 1.75rem;
    }

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition-duration: .001s !important;
        animation-duration: .001s !important;
    }
}
