@font-face {
    font-family: "Roboto Slab";
    src: url("../fonts/RobotoSlab-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto Slab", serif;
    background: linear-gradient(to right, #F7FAFF, #EEF4FF);
    color: #24446B;
}

.container {
    width: calc(100% - 6cm);
    margin: 0 auto;
}

/* HEADER */

.header {
    padding: 52px 0 24px;
}

.header-inner {
    background: #FFFFFF;
    border: 1px solid #D9E5F5;
    border-radius: 22px;
    padding: 14px 20px 14px 18px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 24px rgba(47, 128, 237, 0.03);
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo span {
    margin-left: 10px;
    font-size: 32px;
    line-height: 1;
    font-weight: 900;
    color: #24446B;
}

.right-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav a {
    color: #24446B;
    text-decoration: none;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.nav a.active {
    background: #CFE0FA;
    color: #31547D;
    border-radius: 13px;
    padding: 3px 9px 5px;
}

.btn {
    border: none;
    background: #2F80ED;
    color: #FFFFFF;
    border-radius: 12px;
    padding: 9px 18px 11px;
    font-family: "Roboto Slab", serif;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
}

/* PAGE */

.about-page {
    padding-bottom: 56px;
}

:root {
    --analytics-preview-width: 680px;
    --analytics-preview-width-medium: 610px;
}

.hero-card,
.problem-card,
.functions-card,
.value-card,
.analysis-card,
.final-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #D2E1F7;
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(36, 68, 107, 0.06);
}

/* HERO */

.hero-card {
    min-height: 390px;
    padding: 28px 62px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--analytics-preview-width);
    align-items: center;
    gap: 54px;
}

.eyebrow {
    color: #0965E8;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.hero-card h1 {
    max-width: 640px;
    color: #31547D;
    font-size: 32px;
    line-height: 1.35;
    font-weight: 900;
    letter-spacing: 0.2px;
    margin-bottom: 30px;
}

.hero-text {
    max-width: 610px;
    color: #5A7190;
    font-size: 18px;
    line-height: 1.65;
    font-weight: 500;
}

.hero-preview {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-preview img {
    display: block;
    width: var(--analytics-preview-width);
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(36, 68, 107, 0.14);
}

/* PROBLEMS */

.problem-card {
    margin-top: 32px;
    min-height: 510px;
    padding: 46px 60px 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 54px;
}

.problem-card h2,
.functions-card h2,
.value-card h2,
.analysis-card h2,
.final-card h2 {
    color: #31547D;
    font-size: 29px;
    line-height: 1.35;
    font-weight: 900;
}

.problem-left > p,
.problem-right > p,
.functions-card > p,
.value-card > p,
.analysis-text > p,
.final-card > p {
    color: #24446B;
    font-size: 15px;
    line-height: 1.65;
    font-weight: 650;
}

.problem-left > p,
.problem-right > p {
    margin-top: 24px;
}

.problem-left {
    display: flex;
    flex-direction: column;
}

.problem-grid {
    margin-top: 44px;
    min-height: 244px;
    flex: 1;
    border: 1px solid #D2E1F7;
    border-radius: 17px;
    background: rgba(247, 250, 255, 0.8);
    padding: 26px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
}

.mini-problem {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.mini-problem:nth-child(3) {
    grid-column: 1 / 3;
}

.mini-problem span,
.solution-grid span,
.features-grid span,
.value-list span,
.audience-list span {
    min-width: 32px;
    height: 32px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
}

.mini-problem span {
    background: #FFF0F0;
    color: #FF4D4D;
}

.mini-problem h3,
.solution-grid h3,
.features-grid h3,
.value-list h3,
.audience-list h3,
.metric-cards h3 {
    color: #31547D;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 900;
}

.mini-problem p,
.solution-grid p,
.features-grid p,
.value-list p,
.audience-list p,
.metric-cards p {
    margin-top: 7px;
    color: #6D829F;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
}

.problem-right {
    border: 1px solid #D2E1F7;
    border-radius: 17px;
    background: rgba(247, 250, 255, 0.65);
    padding: 34px 36px 54px;
}

.solution-grid {
    margin-top: 42px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
}

.solution-grid article,
.features-grid article,
.audience-list > div {
    border: 1px solid #D2E1F7;
    background: #FFFFFF;
    border-radius: 13px;
    min-height: 72px;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 22px rgba(36, 68, 107, 0.04);
}

.solution-grid article {
    min-height: 82px;
}

.solution-grid span,
.features-grid span {
    background: #EAF2FF;
    color: #2F80ED;
}

/* FUNCTIONS */

.functions-card {
    margin-top: 34px;
    padding: 34px 48px 36px;
}

.functions-card > p {
    margin-top: 22px;
}

.features-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 27px 18px;
}

.features-grid article {
    min-height: 82px;
}

/* VALUE */

.value-row {
    margin-top: 34px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
}

.value-card {
    min-height: 314px;
    padding: 36px 48px 32px;
}

.value-card > p {
    margin-top: 24px;
    max-width: 620px;
}

.value-list,
.audience-list {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
}

.value-list > div {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.value-list span.green {
    background: #E6F8EF;
    color: #00A85A;
}

.audience-list > div {
    min-height: 64px;
}

.audience-list span {
    background: #FFF7DD;
    color: #F0A000;
}

/* ANALYSIS */

.analysis-card {
    margin-top: 34px;
    min-height: 180px;
    padding: 36px 60px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 676px;
    gap: 42px;
    align-items: center;
}

.analysis-text > p {
    margin-top: 24px;
    max-width: 730px;
}

.analysis-pills {
    margin-top: 24px;
    display: flex;
    gap: 38px;
    flex-wrap: wrap;
}

.analysis-pills span {
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
}

.analysis-pills span:nth-child(1) {
    min-width: 132px;
}

.analysis-pills span:nth-child(2) {
    min-width: 158px;
}

.analysis-pills span:nth-child(3) {
    min-width: 122px;
}

.analysis-pills span:nth-child(4) {
    min-width: 140px;
}

.analysis-pills span:nth-child(1) {
    background: #EAF2FF;
    color: #2F80ED;
}

.analysis-pills span:nth-child(2) {
    background: #EAF2FF;
    color: #2F80ED;
}

.analysis-pills span:nth-child(3) {
    background: #E6F8EF;
    color: #00A85A;
}

.analysis-pills span:nth-child(4) {
    background: #FFF0F0;
    color: #F05050;
}

.metric-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 38px;
}

.metric-cards article {
    min-height: 98px;
    border: 1px solid #D2E1F7;
    background: #FFFFFF;
    border-radius: 13px;
    padding: 20px 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 12px 26px rgba(36, 68, 107, 0.05);
}

.metric-cards img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

/* FINAL */

.final-card {
    margin-top: 34px;
    min-height: 160px;
    padding: 34px 60px;
    display: grid;
    grid-template-columns: 590px minmax(0, 1fr);
    align-items: center;
    gap: 76px;
}

.final-tags {
    margin-top: 26px;
    display: flex;
    gap: 18px;
}

.final-tags span {
    min-width: 70px;
    height: 26px;
    border-radius: 999px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
}

.final-tags span:nth-child(1) {
    background: #EAF2FF;
    color: #2F80ED;
}

.final-tags span:nth-child(2) {
    background: #E6F8EF;
    color: #00A85A;
}

.final-tags span:nth-child(3) {
    background: #FFF7DD;
    color: #E89500;
}

.final-card > p {
    max-width: 760px;
}

/* MAIN CONTENT FONT WEIGHT CORRECTION */

.about-page .eyebrow {
    font-weight: 800;
}

.about-page .hero-card h1 {
    font-weight: 800;
}

.about-page .hero-text {
    font-weight: 400;
}

.about-page .problem-card h2,
.about-page .functions-card h2,
.about-page .value-card h2,
.about-page .analysis-card h2,
.about-page .final-card h2 {
    font-weight: 800;
}

.about-page .problem-left > p,
.about-page .problem-right > p,
.about-page .functions-card > p,
.about-page .value-card > p,
.about-page .analysis-text > p,
.about-page .final-card > p {
    font-weight: 550;
}

.about-page .mini-problem span,
.about-page .solution-grid span,
.about-page .features-grid span,
.about-page .value-list span,
.about-page .audience-list span {
    font-weight: 800;
}

.about-page .mini-problem h3,
.about-page .solution-grid h3,
.about-page .features-grid h3,
.about-page .value-list h3,
.about-page .audience-list h3,
.about-page .metric-cards h3 {
    font-weight: 800;
}

.about-page .mini-problem p,
.about-page .solution-grid p,
.about-page .features-grid p,
.about-page .value-list p,
.about-page .audience-list p,
.about-page .metric-cards p {
    font-weight: 400;
}

.about-page .analysis-pills span {
    font-weight: 800;
}

.about-page .final-tags span {
    font-weight: 800;
}

/* ADAPTIVE */

@media (max-width: 1500px) {
    .container {
        width: calc(100% - 3cm);
    }

    .hero-card {
        grid-template-columns: minmax(0, 1fr) var(--analytics-preview-width-medium);
        gap: 42px;
    }

    .hero-preview img {
        width: var(--analytics-preview-width-medium);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .analysis-card {
        grid-template-columns: 1fr;
    }

    .metric-cards {
        max-width: 620px;
    }
}

@media (max-width: 1100px) {
    .container {
        width: calc(100% - 32px);
    }

    .header-inner,
    .right-menu,
    .nav {
        flex-wrap: wrap;
    }

    .hero-card,
    .problem-card,
    .value-row,
    .final-card {
        grid-template-columns: 1fr;
    }

    .hero-preview {
        justify-content: flex-start;
    }

    .hero-preview img {
        width: 100%;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .metric-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .hero-card,
    .problem-card,
    .functions-card,
    .value-card,
    .analysis-card,
    .final-card {
        padding: 28px 22px;
    }

    .hero-card h1,
    .problem-card h2,
    .functions-card h2,
    .value-card h2,
    .analysis-card h2,
    .final-card h2 {
        font-size: 24px;
    }

    .features-grid,
    .solution-grid,
    .problem-grid,
    .value-list,
    .audience-list {
        grid-template-columns: 1fr;
    }

    .mini-problem:nth-child(3) {
        grid-column: auto;
    }

    .nav a,
    .btn {
        font-size: 18px;
    }
}