/*
 * EIT.KG
 * Публичный редакционный центр.
 */


/* =========================================================
   1. Хлебные крошки
   ========================================================= */

.insights-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;

    margin-bottom: 44px;

    color: rgba(255, 255, 255, 0.4);

    font-size: 12px;
    font-weight: 700;
}

.insights-breadcrumbs a {
    color: rgba(255, 255, 255, 0.64);

    text-decoration: none;
}

.insights-breadcrumbs a:hover {
    color: var(--eit-teal-400);
}


/* =========================================================
   2. Hero каталога
   ========================================================= */

.insights-hero,
.article-hero {
    position: relative;

    padding: 155px 0 95px;

    overflow: hidden;

    color: var(--eit-white);

    background:
        radial-gradient(
            circle at 82% 25%,
            rgba(0, 216, 199, 0.15),
            transparent 31%
        ),
        linear-gradient(
            140deg,
            var(--eit-navy-950),
            var(--eit-navy-800) 58%,
            var(--eit-navy-950)
        );
}

.insights-hero__grid,
.article-hero__grid {
    position: absolute;
    inset: 0;

    opacity: 0.09;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.08) 1px,
            transparent 1px
        );

    background-size: 72px 72px;
}

.insights-hero__glow,
.article-hero__glow {
    position: absolute;
    top: 8%;
    right: -12%;

    width: 680px;
    height: 680px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(0, 216, 199, 0.14),
            transparent 69%
        );
}

.insights-hero__eyebrow {
    display: inline-block;

    color: var(--eit-teal-400);

    font-size: 11px;
    font-weight: 850;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.insights-hero h1 {
    margin: 18px 0 25px;

    color: var(--eit-white);

    font-size: clamp(52px, 6vw, 88px);
    font-weight: 870;
    line-height: 0.97;
    letter-spacing: -4px;
}

.insights-hero h1 span {
    display: block;

    color: transparent;

    background: var(--eit-gradient-brand);
    background-clip: text;
    -webkit-background-clip: text;
}

.insights-hero p {
    max-width: 820px;
    margin: 0;

    color: rgba(255, 255, 255, 0.63);

    font-size: 19px;
    line-height: 1.75;
}

.insights-hero__stat {
    padding: 30px;

    background: rgba(255, 255, 255, 0.055);

    border:
        1px solid rgba(255, 255, 255, 0.11);

    border-radius: 22px;

    backdrop-filter: blur(14px);
}

.insights-hero__stat strong {
    display: block;

    color: var(--eit-white);

    font-size: 52px;
    font-weight: 870;
    line-height: 1;
}

.insights-hero__stat span {
    display: block;

    margin-top: 13px;

    color: rgba(255, 255, 255, 0.46);

    font-size: 12px;
}


/* =========================================================
   3. Каталог и фильтры
   ========================================================= */

.insights-catalog,
.article-content-section,
.related-insights {
    padding: 100px 0 115px;

    background:
        radial-gradient(
            circle at 8% 15%,
            rgba(0, 216, 199, 0.055),
            transparent 24%
        ),
        var(--eit-background);
}

.insights-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 48px;
}

.insights-filters a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 11px 15px;

    color: var(--eit-text-muted);

    background: var(--eit-white);
    border: 1px solid var(--eit-border);
    border-radius: 999px;

    font-size: 12px;
    font-weight: 750;
    text-decoration: none;

    transition:
        color var(--eit-transition),
        background var(--eit-transition),
        border-color var(--eit-transition),
        transform var(--eit-transition);
}

.insights-filters a span {
    display: grid;
    place-items: center;

    min-width: 24px;
    height: 24px;
    padding: 0 6px;

    background: #f2f6f7;
    border-radius: 999px;

    font-size: 9px;
}

.insights-filters a:hover {
    color: var(--eit-teal-700);

    border-color:
        rgba(0, 184, 176, 0.26);

    transform: translateY(-2px);
}

.insights-filters a.is-active {
    color: var(--eit-white);

    background: var(--eit-navy-800);
    border-color: var(--eit-navy-800);
}

.insights-filters a.is-active span {
    color: var(--eit-navy-900);

    background: var(--eit-teal-400);
}


/* =========================================================
   4. Сетка и карточки
   ========================================================= */

.insights-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.insights-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    overflow: hidden;

    background: var(--eit-white);

    border: 1px solid var(--eit-border);
    border-radius: 24px;

    box-shadow: var(--eit-shadow-md);

    transition:
        border-color var(--eit-transition),
        box-shadow var(--eit-transition),
        transform var(--eit-transition);
}

.insights-card:hover {
    border-color:
        rgba(0, 184, 176, 0.25);

    box-shadow:
        0 28px 68px rgba(7, 36, 53, 0.13);

    transform: translateY(-6px);
}

.insights-card__media {
    position: relative;

    display: block;

    min-height: 235px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            var(--eit-navy-800),
            var(--eit-navy-950)
        );
}

.insights-card__cover {
    display: block;

    width: 100%;
    height: 235px;

    object-fit: cover;

    transition:
        transform 0.55s ease;
}

.insights-card:hover
.insights-card__cover {
    transform: scale(1.045);
}

.insights-card__placeholder {
    display: grid;
    place-items: center;

    min-height: 235px;

    color: var(--eit-white);

    background:
        radial-gradient(
            circle at 72% 24%,
            rgba(0, 216, 199, 0.2),
            transparent 31%
        ),
        linear-gradient(
            145deg,
            var(--eit-navy-800),
            var(--eit-navy-950)
        );
}

.insights-card__placeholder strong {
    font-size: 34px;
    font-weight: 900;
}

.insights-card__type {
    position: absolute;
    top: 17px;
    left: 17px;

    padding: 8px 12px;

    color: var(--eit-white);

    background:
        rgba(7, 36, 53, 0.78);

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius: 999px;

    backdrop-filter: blur(12px);

    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.insights-card.is-news
.insights-card__type {
    color: #8dd8ff;
}

.insights-card.is-expertise
.insights-card__type {
    color: #75eadc;
}

.insights-card.is-founder
.insights-card__type {
    color: #ffd590;
}

.insights-card.is-project
.insights-card__type {
    color: #9ce7b8;
}

.insights-card.is-research
.insights-card__type {
    color: #d4c6ff;
}

.insights-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 29px;
}

.insights-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;

    color: var(--eit-text-muted);

    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.insights-card__meta span::before {
    content: "•";

    margin-right: 11px;

    color: var(--eit-teal-500);
}

.insights-card h2 {
    margin: 13px 0 15px;

    color: var(--eit-text);

    font-size: 25px;
    font-weight: 850;
    line-height: 1.17;
    letter-spacing: -0.85px;
}

.insights-card h2 a {
    color: inherit;

    text-decoration: none;
}

.insights-card h2 a:hover {
    color: var(--eit-teal-600);
}

.insights-card__body > p {
    margin: 0;

    color: var(--eit-text-muted);

    font-size: 14px;
    line-height: 1.72;
}

.insights-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-top: auto;
    padding-top: 25px;
}

.insights-card__link {
    color: var(--eit-teal-600);

    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.insights-card__product {
    padding: 6px 10px;

    color: var(--eit-text-muted);

    background: #f5f8f9;
    border: 1px solid var(--eit-border);
    border-radius: 999px;

    font-size: 9px;
    font-weight: 750;
}


/* =========================================================
   5. Пустой результат и пагинация
   ========================================================= */

.insights-empty {
    padding: 75px 30px;

    text-align: center;

    background: var(--eit-white);
    border: 1px solid var(--eit-border);
    border-radius: 25px;
}

.insights-empty > span {
    color: var(--eit-teal-500);

    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.insights-empty h2 {
    margin: 13px 0;

    color: var(--eit-text);

    font-weight: 850;
}

.insights-empty p {
    margin: 0;

    color: var(--eit-text-muted);
}

.insights-pagination {
    margin-top: 50px;
}


/* =========================================================
   6. Hero статьи
   ========================================================= */

.article-hero__content {
    max-width: 1050px;
}

.article-hero__type {
    display: inline-flex;

    padding: 9px 13px;

    color: var(--eit-teal-400);

    background:
        rgba(0, 216, 199, 0.08);

    border:
        1px solid rgba(0, 216, 199, 0.18);

    border-radius: 999px;

    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.article-hero h1 {
    margin: 23px 0 28px;

    color: var(--eit-white);

    font-size: clamp(48px, 6vw, 82px);
    font-weight: 870;
    line-height: 1;
    letter-spacing: -3.8px;
}

.article-hero__content > p {
    max-width: 900px;
    margin: 0;

    color: rgba(255, 255, 255, 0.64);

    font-size: 20px;
    line-height: 1.75;
}

.article-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;

    margin-top: 34px;

    color: rgba(255, 255, 255, 0.45);

    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.article-hero__meta > * + *::before {
    content: "•";

    margin-right: 17px;

    color: var(--eit-teal-400);
}

.article-hero__meta strong {
    color: rgba(255, 255, 255, 0.8);
}


/* =========================================================
   7. Обложка статьи
   ========================================================= */

.article-cover-wrap {
    position: relative;
    z-index: 2;

    margin-top: -40px;

    background: var(--eit-background);
}

.article-cover {
    margin: 0;

    overflow: hidden;

    background: var(--eit-white);
    border: 8px solid var(--eit-white);
    border-radius: 27px;

    box-shadow:
        0 30px 80px rgba(7, 36, 53, 0.19);
}

.article-cover img {
    display: block;

    width: 100%;
    max-height: 720px;

    object-fit: cover;

    border-radius: 19px;
}


/* =========================================================
   8. Текст статьи
   ========================================================= */

.article-content-section {
    padding-top: 95px;
}

.article-content {
    color: #344854;

    font-size: 18px;
    line-height: 1.9;
}

.article-content > *:first-child {
    margin-top: 0;
}

.article-content h2 {
    margin: 52px 0 21px;

    color: var(--eit-text);

    font-size: 38px;
    font-weight: 860;
    line-height: 1.13;
    letter-spacing: -1.5px;
}

.article-content h3 {
    margin: 40px 0 17px;

    color: var(--eit-text);

    font-size: 29px;
    font-weight: 850;
}

.article-content h4 {
    margin: 32px 0 14px;

    color: var(--eit-text);

    font-size: 22px;
    font-weight: 820;
}

.article-content p {
    margin: 0 0 25px;
}

.article-content ul,
.article-content ol {
    margin: 28px 0;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 12px;
    padding-left: 7px;
}

.article-content blockquote {
    margin: 42px 0;
    padding: 29px 33px;

    color: var(--eit-text);

    background:
        rgba(0, 184, 176, 0.065);

    border-left:
        4px solid var(--eit-teal-500);

    border-radius: 0 18px 18px 0;

    font-size: 21px;
    font-weight: 650;
    line-height: 1.65;
}

.article-content a {
    color: var(--eit-teal-700);

    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.article-content code {
    padding: 3px 7px;

    color: var(--eit-teal-700);

    background:
        rgba(0, 184, 176, 0.08);

    border-radius: 6px;
}

.article-content pre {
    padding: 24px;

    overflow-x: auto;

    color: #d8eef0;

    background: var(--eit-navy-900);
    border-radius: 17px;
}


/* =========================================================
   9. Связанный продукт
   ========================================================= */

.article-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;

    margin-top: 65px;
    padding: 37px;

    color: var(--eit-white);

    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(0, 216, 199, 0.15),
            transparent 31%
        ),
        linear-gradient(
            145deg,
            var(--eit-navy-800),
            var(--eit-navy-950)
        );

    border-radius: 24px;
}

.article-product > div > span {
    color: var(--eit-teal-400);

    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.article-product h2 {
    margin: 10px 0;

    color: var(--eit-white);

    font-size: 31px;
    font-weight: 850;
}

.article-product p {
    max-width: 620px;
    margin: 0;

    color: rgba(255, 255, 255, 0.52);

    line-height: 1.65;
}

.article-product__link {
    flex: 0 0 auto;

    color: var(--eit-teal-400);

    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}


/* =========================================================
   10. Похожие публикации
   ========================================================= */

.related-insights {
    padding-top: 0;
}

.related-insights__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 45px;
}

.related-insights__heading span {
    color: var(--eit-teal-500);

    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.related-insights__heading h2 {
    margin: 11px 0 0;

    color: var(--eit-text);

    font-size: 46px;
    font-weight: 860;
    letter-spacing: -1.8px;
}

.related-insights__all {
    color: var(--eit-teal-700);

    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}


/* =========================================================
   11. CTA
   ========================================================= */

.insights-cta {
    padding: 0 0 115px;

    background: var(--eit-background);
}

.insights-cta__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;

    padding: 52px 58px;

    color: var(--eit-white);

    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(0, 216, 199, 0.16),
            transparent 31%
        ),
        linear-gradient(
            145deg,
            var(--eit-navy-800),
            var(--eit-navy-950)
        );

    border-radius: 28px;
}

.insights-cta__card > div > span {
    color: var(--eit-teal-400);

    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.insights-cta__card h2 {
    margin: 11px 0 12px;

    color: var(--eit-white);

    font-size: 38px;
    font-weight: 850;
    letter-spacing: -1.4px;
}

.insights-cta__card p {
    max-width: 680px;
    margin: 0;

    color: rgba(255, 255, 255, 0.53);

    line-height: 1.65;
}


/* =========================================================
   12. Адаптивность
   ========================================================= */

@media (max-width: 1199.98px) {
    .insights-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .insights-hero,
    .article-hero {
        padding-top: 135px;
    }

    .insights-cta__card,
    .article-product {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .insights-hero,
    .article-hero {
        padding: 120px 0 75px;
    }

    .insights-hero h1,
    .article-hero h1 {
        font-size: 48px;
        letter-spacing: -2.3px;
    }

    .insights-hero p,
    .article-hero__content > p {
        font-size: 16px;
    }

    .insights-catalog,
    .article-content-section,
    .related-insights {
        padding: 75px 0 90px;
    }

    .insights-grid {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .article-content {
        font-size: 16px;
    }

    .article-content h2 {
        font-size: 31px;
    }

    .article-content h3 {
        font-size: 25px;
    }

    .article-cover-wrap {
        margin-top: -25px;
    }

    .article-cover {
        border-width: 5px;
    }

    .related-insights__heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .related-insights__heading h2 {
        font-size: 37px;
    }

    .insights-cta__card {
        padding: 39px 29px;
    }
}

@media (max-width: 575.98px) {
    .insights-filters {
        flex-wrap: nowrap;

        margin-right: -12px;
        padding-right: 12px;
        padding-bottom: 8px;

        overflow-x: auto;

        scrollbar-width: none;
    }

    .insights-filters::-webkit-scrollbar {
        display: none;
    }

    .insights-filters a {
        flex: 0 0 auto;
    }

    .article-hero__meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .article-hero__meta > * + *::before {
        display: none;
    }

    .article-product {
        padding: 29px;
    }

    .insights-cta__card .btn {
        width: 100%;
    }
}