/*
|--------------------------------------------------------------------------
| Huhu — Blog
|--------------------------------------------------------------------------
*/

.huhu-blog-main {
    background: #ffffff;
}


/*
|--------------------------------------------------------------------------
| Hero
|--------------------------------------------------------------------------
*/

.huhu-blog-hero {
    padding: 84px 0 78px;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(21, 159, 241, 0.12),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #f7fcff 0%,
            #ffffff 60%,
            #f2f9fd 100%
        );

    border-bottom:
        1px solid #e5eef5;
}


.huhu-blog-hero__content {
    max-width: 760px;
}


.huhu-blog-hero__eyebrow,
.huhu-blog-list__header > span {
    display: inline-block;

    margin-bottom: 14px;

    color: #10aee9;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 0.12em;
}


.huhu-blog-hero h1 {
    margin: 0;

    color: #18365f;

    font-size: clamp(44px, 6vw, 68px);
    font-weight: 800;

    line-height: 1.05;

    letter-spacing: -0.035em;
}


.huhu-blog-hero p {
    max-width: 670px;

    margin: 22px 0 0;

    color: #718394;

    font-size: 18px;

    line-height: 1.7;
}


/*
|--------------------------------------------------------------------------
| Lista
|--------------------------------------------------------------------------
*/

.huhu-blog-list {
    padding: 76px 0 92px;
}


.huhu-blog-list__header {
    margin-bottom: 34px;
}


.huhu-blog-list__header h2 {
    margin: 0;

    color: #18365f;

    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;

    line-height: 1.1;
}


/*
|--------------------------------------------------------------------------
| Grid
|--------------------------------------------------------------------------
*/

.huhu-blog-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 26px;
}


/*
|--------------------------------------------------------------------------
| Karta
|--------------------------------------------------------------------------
*/

.huhu-blog-card {
    overflow: hidden;

    background: #ffffff;

    border:
        1px solid
        #e3edf4;

    border-radius: 18px;

    box-shadow:
        0 14px 36px
        rgba(24, 54, 95, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.huhu-blog-card:hover {
    transform:
        translateY(-5px);

    box-shadow:
        0 22px 48px
        rgba(24, 54, 95, 0.12);
}


/*
|--------------------------------------------------------------------------
| Zdjęcie
|--------------------------------------------------------------------------
*/

.huhu-blog-card__image {
    display: block;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #edf7fc;
}


.huhu-blog-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.35s ease;
}


.huhu-blog-card:hover
.huhu-blog-card__image img {
    transform:
        scale(1.04);
}


.huhu-blog-card__placeholder {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: rgba(21, 159, 241, 0.25);

    font-size: 48px;
    font-weight: 800;
}


/*
|--------------------------------------------------------------------------
| Treść
|--------------------------------------------------------------------------
*/

.huhu-blog-card__body {
    padding: 25px;
}


.huhu-blog-card__meta {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 14px;

    color: #8493a0;

    font-size: 13px;
}


.huhu-blog-card__meta span {
    padding: 4px 9px;

    color: #118fc9;

    background: #eaf8fd;

    border-radius: 999px;

    font-weight: 700;
}


.huhu-blog-card__title {
    margin: 0;

    font-size: 22px;

    line-height: 1.28;
}


.huhu-blog-card__title a {
    color: #18365f;

    text-decoration: none;
}


.huhu-blog-card__excerpt {
    margin: 14px 0 0;

    color: #718394;

    font-size: 15px;

    line-height: 1.7;
}


.huhu-blog-card__more {
    display: inline-flex;

    gap: 8px;

    margin-top: 22px;

    color: #159ff1;

    font-size: 14px;
    font-weight: 800;

    text-decoration: none;
}


/*
|--------------------------------------------------------------------------
| Pagination
|--------------------------------------------------------------------------
*/

.huhu-blog-pagination {
    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    gap: 20px;

    margin-top: 52px;
}


.huhu-blog-pagination > div:last-child {
    text-align: right;
}


.huhu-blog-pagination a {
    color: #18365f;

    font-weight: 700;

    text-decoration: none;
}


.huhu-blog-pagination a:hover {
    color: #159ff1;
}


.huhu-blog-pagination > span {
    color: #8291a0;

    font-size: 14px;
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

    .huhu-blog-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


@media (max-width: 650px) {

    .huhu-blog-hero {
        padding:
            54px 0 50px;
    }


    .huhu-blog-hero p {
        font-size: 16px;
    }


    .huhu-blog-list {
        padding:
            56px 0 64px;
    }


    .huhu-blog-grid {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 20px;
    }


    .huhu-blog-pagination {
        grid-template-columns:
            1fr 1fr;
    }


    .huhu-blog-pagination > span {
        grid-column:
            1 / -1;

        grid-row: 1;

        text-align: center;
    }

}

/*
|--------------------------------------------------------------------------
| Huhu — pojedynczy artykuł
|--------------------------------------------------------------------------
*/

.huhu-post-main {
    background: #ffffff;
}


/*
|--------------------------------------------------------------------------
| Hero artykułu
|--------------------------------------------------------------------------
*/

.huhu-post-hero {
    padding: 68px 0 60px;

    background:
        radial-gradient(
            circle at 88% 12%,
            rgba(21, 159, 241, 0.11),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #f8fcff 0%,
            #ffffff 58%,
            #f2f9fd 100%
        );

    border-bottom: 1px solid #e6eef4;
}


.huhu-post-hero__grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.02fr)
        minmax(0, 0.98fr);

    align-items: center;

    gap: 48px;
}


.huhu-post-hero__content {
    min-width: 0;
}


.huhu-post-hero__media {
    min-width: 0;
}


/*
|--------------------------------------------------------------------------
| Breadcrumbs
|--------------------------------------------------------------------------
*/

.huhu-post-breadcrumbs {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 8px;

    margin-bottom: 28px;

    color: #8797a5;

    font-size: 13px;
    font-weight: 600;
}


.huhu-post-breadcrumbs a {
    color: #62798c;
    text-decoration: none;
}


.huhu-post-breadcrumbs a:hover {
    color: #159ff1;
}


/*
|--------------------------------------------------------------------------
| Meta
|--------------------------------------------------------------------------
*/

.huhu-post-meta {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 12px;

    margin-bottom: 18px;

    color: #8293a1;

    font-size: 13px;
    font-weight: 600;
}


.huhu-post-category {
    display: inline-flex;

    align-items: center;

    min-height: 28px;

    padding: 4px 11px;

    color: #0c8fc8;

    background: #e9f8fd;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.03em;
}


/*
|--------------------------------------------------------------------------
| Tytuł + lead
|--------------------------------------------------------------------------
*/

.huhu-post-title {
    margin: 0;

    color: #18365f;

    font-size: clamp(40px, 5vw, 62px);
    font-weight: 800;

    line-height: 1.08;

    letter-spacing: -0.035em;
}


.huhu-post-lead {
    max-width: 720px;

    margin: 24px 0 0;

    color: #6f8292;

    font-size: 19px;

    line-height: 1.7;
}


/*
|--------------------------------------------------------------------------
| Featured image
|--------------------------------------------------------------------------
*/

.huhu-post-featured {
    margin: 0;
}


.huhu-post-featured img {
    display: block;

    width: 100%;
    height: auto;

    min-height: 320px;
    max-height: 520px;

    object-fit: cover;

    border-radius: 22px;

    box-shadow:
        0 18px 50px
        rgba(24, 54, 95, 0.10);
}


.huhu-post-featured figcaption {
    margin-top: 12px;

    color: #8a98a4;

    font-size: 12px;

    line-height: 1.5;

    text-align: center;
}


/*
|--------------------------------------------------------------------------
| Body
|--------------------------------------------------------------------------
*/

.huhu-post-body {
    padding: 46px 0 26px;
}


.huhu-post-layout {
    max-width: 820px;

    margin: 0 auto;
}


.huhu-post-content {
    color: #40566a;

    font-size: 17px;

    line-height: 1.8;

    overflow-wrap: break-word;
}


/*
|--------------------------------------------------------------------------
| Typografia artykułu
|--------------------------------------------------------------------------
*/

.huhu-post-content h2 {
    margin: 52px 0 18px;

    color: #18365f;

    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;

    line-height: 1.2;

    letter-spacing: -0.025em;
}


.huhu-post-content h3 {
    margin: 40px 0 16px;

    color: #18365f;

    font-size: 26px;
    font-weight: 800;

    line-height: 1.25;
}


.huhu-post-content h4 {
    margin: 32px 0 14px;

    color: #18365f;

    font-size: 21px;
    font-weight: 800;
}


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


.huhu-post-content a {
    color: #159ff1;

    font-weight: 600;

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}


.huhu-post-content strong {
    color: #263f59;
    font-weight: 800;
}


/*
|--------------------------------------------------------------------------
| Listy
|--------------------------------------------------------------------------
*/

.huhu-post-content ul,
.huhu-post-content ol {
    margin: 22px 0 28px;
    padding-left: 26px;
}


.huhu-post-content li {
    margin-bottom: 10px;
    padding-left: 3px;
}


.huhu-post-content li::marker {
    color: #159ff1;
    font-weight: 800;
}


/*
|--------------------------------------------------------------------------
| Media / cytaty / tabele
|--------------------------------------------------------------------------
*/

.huhu-post-content img {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 34px auto;

    border-radius: 14px;
}


.huhu-post-content blockquote {
    margin: 36px 0;

    padding: 24px 28px;

    color: #315474;

    background: #f3faff;

    border-left: 4px solid #159ff1;
    border-radius: 0 12px 12px 0;

    font-size: 18px;

    line-height: 1.7;
}


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


.huhu-post-content table {
    width: 100%;

    margin: 32px 0;

    border-collapse: collapse;
}


.huhu-post-content th,
.huhu-post-content td {
    padding: 13px 15px;

    border: 1px solid #dce8f0;

    text-align: left;
    vertical-align: top;
}


.huhu-post-content th {
    color: #18365f;

    background: #f3f9fd;

    font-weight: 800;
}


.huhu-post-content hr {
    margin: 44px 0;

    border: 0;
    border-top: 1px solid #dfe9f0;
}


/*
|--------------------------------------------------------------------------
| Footer artykułu
|--------------------------------------------------------------------------
*/

.huhu-post-footer {
    padding: 18px 0 70px;
}


.huhu-post-footer__inner {
    max-width: 820px;

    margin: 0 auto;

    padding-top: 28px;

    border-top: 1px solid #e3edf4;
}


.huhu-post-back {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: #18365f;

    font-size: 14px;
    font-weight: 800;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.huhu-post-back:hover {
    color: #159ff1;
    transform: translateX(-3px);
}


/*
|--------------------------------------------------------------------------
| CTA
|--------------------------------------------------------------------------
*/

.huhu-post-cta {
    padding: 0 0 92px;
}


.huhu-post-cta__inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 50px;

    padding: 46px 52px;

    background:
        linear-gradient(
            135deg,
            #f0f9ff,
            #ffffff
        );

    border: 1px solid rgba(21, 159, 241, 0.14);
    border-radius: 20px;

    box-shadow:
        0 18px 48px
        rgba(24, 54, 95, 0.06);
}


.huhu-post-cta__content {
    max-width: 700px;
}


.huhu-post-cta__eyebrow {
    display: inline-block;

    margin-bottom: 13px;

    color: #10aee9;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.12em;
}


.huhu-post-cta h2 {
    margin: 0;

    color: #18365f;

    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -0.025em;
}


.huhu-post-cta p {
    margin: 15px 0 0;

    color: #6f8292;

    line-height: 1.7;
}


.huhu-post-cta__button {
    display: inline-flex;

    flex-shrink: 0;

    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 52px;

    padding: 13px 24px;

    color: #ffffff;

    background: #159ff1;

    border-radius: 10px;

    font-size: 15px;
    font-weight: 800;

    text-decoration: none;

    box-shadow:
        0 10px 28px
        rgba(21, 159, 241, 0.25);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.huhu-post-cta__button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 34px
        rgba(21, 159, 241, 0.32);
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 980px) {

    .huhu-post-hero__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

}


@media (max-width: 850px) {

    .huhu-post-cta__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 650px) {

    .huhu-post-hero {
        padding: 46px 0 42px;
    }


    .huhu-post-breadcrumbs {
        margin-bottom: 24px;
    }


    .huhu-post-title {
        font-size: clamp(34px, 10vw, 44px);
    }


    .huhu-post-lead {
        margin-top: 18px;
        font-size: 16px;
    }


    .huhu-post-featured img {
        min-height: 0;
        max-height: none;

        border-radius: 14px;
    }


    .huhu-post-body {
        padding: 46px 0 20px;
    }


    .huhu-post-content {
        font-size: 16px;
        line-height: 1.75;
    }


    .huhu-post-content h2 {
        margin-top: 40px;
        font-size: 28px;
    }


    .huhu-post-content h3 {
        margin-top: 32px;
        font-size: 23px;
    }


    .huhu-post-footer {
        padding-bottom: 54px;
    }


    .huhu-post-cta {
        padding-bottom: 64px;
    }


    .huhu-post-cta__inner {
        padding: 30px 24px;
    }


    .huhu-post-cta__button {
        width: 100%;
    }


    .huhu-post-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }

}
