@font-face {
    font-family: "Gilroy";
    src: url("/app/fonts/Gilroy-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gilroy";
    src: url("/app/fonts/Gilroy-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gilroy";
    src: url("/app/fonts/Gilroy-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.blog-page {
    --blog-ink: #111321;
    --blog-muted: #6f7280;
    --blog-line: #e7e8f3;
    --blog-brand: #615ffb;
    --blog-brand-soft: #e8e7ff;
    --blog-mint: #e2f7ee;
    --blog-green: #2fb67c;
    --blog-red: #ea2c54;
    background: #f7f8fb;
    color: var(--blog-ink);
    font-family: "Gilroy", "Open Sans", Arial, sans-serif;
}

.blog-page a {
    color: inherit;
    text-decoration: none;
}

.blog-hero {
    position: relative;
    overflow: hidden;
    padding: 150px 0 72px;
    background:
        radial-gradient(circle at 85% 30%, rgba(226, 247, 238, .95), transparent 28%),
        linear-gradient(135deg, #fff 0%, #f2f1ff 55%, #fbfcff 100%);
}

.blog-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -170px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: var(--blog-brand);
    opacity: .08;
}

.blog-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 44px;
    align-items: end;
}

.blog-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--blog-brand-soft);
    color: var(--blog-brand);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.blog-hero h1,
.blog-article-hero h1 {
    max-width: 980px;
    margin: 18px 0 0;
    color: var(--blog-ink);
    font-size: clamp(44px, 6vw, 92px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: 0;
}

.blog-hero p,
.blog-article-hero p {
    max-width: 760px;
    margin: 24px 0 0;
    color: var(--blog-muted);
    font-size: clamp(20px, 2vw, 30px);
    line-height: 1.3;
}

.blog-hero__mascot {
    width: min(100%, 230px);
    justify-self: end;
    filter: drop-shadow(0 24px 34px rgba(97, 95, 251, .22));
}

.blog-shell {
    padding: 42px 0 90px;
}

.blog-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    margin-bottom: 34px;
    padding: 18px;
    border: 1px solid var(--blog-line);
    border-radius: 8px;
    background: #fff;
}

.blog-filter__main {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 320px);
    gap: 14px;
}

.blog-filter label {
    display: grid;
    gap: 8px;
    margin: 0;
}

.blog-filter span {
    color: var(--blog-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.blog-filter input,
.blog-filter select {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #dfe2ef;
    border-radius: 6px;
    background: #fff;
    color: var(--blog-ink);
    font: inherit;
    font-size: 16px;
    outline: none;
}

.blog-filter input:focus,
.blog-filter select:focus {
    border-color: var(--blog-brand);
    box-shadow: 0 0 0 3px rgba(97, 95, 251, .12);
}

.blog-filter__actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.blog-filter button,
.blog-filter__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.blog-filter button {
    background: var(--blog-brand);
    color: #fff;
}

.blog-filter__actions a {
    border-color: #dfe2ef;
    background: #fff;
    color: var(--blog-muted);
}

.blog-list-head {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 22px;
}

.blog-list-head h2 {
    margin: 0;
    color: var(--blog-ink);
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 700;
    line-height: 1.06;
}

.blog-list-head span {
    color: var(--blog-muted);
    font-size: 16px;
    line-height: 1.4;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.blog-card {
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--blog-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(18, 22, 42, .06);
}

.blog-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--blog-brand-soft), var(--blog-mint));
}

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

.blog-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.blog-card__meta,
.blog-article-hero__meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    color: var(--blog-muted);
    font-size: 14px;
    line-height: 1.3;
}

.blog-card__meta span,
.blog-article-hero__meta span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--blog-brand-soft);
    color: var(--blog-brand);
    font-weight: 700;
}

.blog-card h3 {
    margin: 16px 0 0;
    color: var(--blog-ink);
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 700;
    line-height: 1.12;
}

.blog-card h3 a:hover,
.blog-back:hover,
.blog-card__read:hover {
    color: var(--blog-brand);
}

.blog-card p {
    margin: 14px 0 0;
    color: var(--blog-muted);
    font-size: 17px;
    line-height: 1.45;
}

.blog-card__read {
    margin-top: auto;
    padding-top: 20px;
    color: var(--blog-brand);
    font-size: 16px;
    font-weight: 700;
}

.blog-empty {
    padding: 52px 24px;
    border: 1px solid var(--blog-line);
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.blog-empty h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.blog-empty p {
    margin: 12px 0 0;
    color: var(--blog-muted);
    font-size: 18px;
}

.blog-article-hero {
    padding: 148px 0 38px;
    background: #fff;
}

.blog-back {
    display: inline-flex;
    align-items: center;
    margin-bottom: 24px;
    color: var(--blog-brand);
    font-size: 16px;
    font-weight: 700;
}

.blog-article {
    padding: 0 0 72px;
    background: #fff;
}

.blog-article__cover {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 42px;
}

.blog-article__content {
    width: min(100%, 860px);
    margin: 0 auto;
    color: var(--blog-ink);
    font-size: 20px;
    line-height: 1.65;
}

.blog-article__content > * {
    margin-top: 0;
    margin-bottom: 1em;
}

.blog-article__content h1,
.blog-article__content h2,
.blog-article__content h3,
.blog-article__content h4,
.blog-article__content h5,
.blog-article__content h6 {
    margin-top: 1.4em;
    margin-bottom: .55em;
    color: var(--blog-ink);
    font-weight: 700;
    line-height: 1.15;
}

.blog-article__content h1 { font-size: 44px; }
.blog-article__content h2 { font-size: 36px; }
.blog-article__content h3 { font-size: 28px; }

.blog-article__content a {
    color: var(--blog-brand);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.blog-article__content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 28px auto;
    border-radius: 8px;
}

.blog-article__content ul,
.blog-article__content ol {
    padding-left: 1.2em;
}

.blog-article__content blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--blog-brand);
    border-radius: 0 8px 8px 0;
    background: var(--blog-brand-soft);
    color: var(--blog-ink);
    font-weight: 600;
}

.blog-related {
    padding: 56px 0 90px;
    background: #f7f8fb;
}

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

@media (max-width: 991px) {
    .blog-hero {
        padding: 118px 0 48px;
    }

    .blog-hero__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-hero__mascot {
        justify-self: start;
        width: 150px;
    }

    .blog-filter,
    .blog-filter__main {
        grid-template-columns: 1fr;
    }

    .blog-filter__actions {
        flex-wrap: wrap;
    }

    .blog-grid,
    .blog-grid--related {
        grid-template-columns: 1fr;
    }

    .blog-article-hero {
        padding-top: 118px;
    }
}

@media (max-width: 575px) {
    .blog-hero h1,
    .blog-article-hero h1 {
        font-size: 42px;
    }

    .blog-hero p,
    .blog-article-hero p {
        font-size: 20px;
    }

    .blog-list-head {
        display: block;
    }

    .blog-list-head span {
        display: block;
        margin-top: 8px;
    }

    .blog-card__body {
        padding: 18px;
    }

    .blog-article__content {
        font-size: 18px;
    }

    .blog-article__content h1 { font-size: 34px; }
    .blog-article__content h2 { font-size: 30px; }
    .blog-article__content h3 { font-size: 24px; }
}
