:root {
    --primary-light: #4d3eb6;
    --primary-bg: #3a2e8f;
    --violet: #3b3296;
    --violet-soft: #5249af;
    --blue: #2f3fd6;
    --text: #1c2142;
    --muted: #62698a;
    --line: #dfe1ec;
    --white: #ffffff;
    --bg-gray: #f0f1f5;
    --bg-soft: #f7f8fc;
    --color-1: rgba(0, 0, 0, 0.02);
    --color-2: #f6f8fa;
    --color-3: rgba(255, 255, 255, 0.9);
    --color-4: rgba(255, 255, 255, 0.86);
    --color-5: rgba(255, 255, 255, 0.8);
    --color-6: rgba(0, 0, 0, 0.2);
    --color-7: rgba(0, 0, 0, 0.19);
    --color-8: #2e2e2e;
    --color-9: #f6f7f8;
    --color-10: #222222;
    --color-11: #5641b9;
    --color-12: rgb(175, 185, 207);
    --color-13: #4b39c5;
    --color-14: #5b4cb5;
    --color-15: rgba(213, 213, 213, 0.4);
    --color-16: #372d77;
    --color-17: #fff;
    --color-18: rgba(0, 0, 0, 0.1);
    --color-19: #000;
    --color-20: rgba(23, 42, 40, 0.05);
    --color-21: #44369c;
    --color-22: rgba(34, 34, 34, 0.13);
    --color-23: rgba(34, 34, 34, 1);
    --color-24: #6859c7;
    --color-25: rgba(255, 255, 255, 0.7);
    --color-26: rgba(255, 255, 255, 0.55);
    --color-27: rgba(255, 255, 255, 0.96);
    --color-28: #c8ceff;
    --color-29: #222;
    --color-30: #1e1e1e;
    --color-31: #b8bed4;
    --color-32: #282828;
    --anchor-offset: 90px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--anchor-offset);
}

@media (max-width: 1024px) {
    html {
        scroll-padding-top: 270px;
    }
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background: var(--bg-gray);
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus {
    opacity: 0.8;
}

img {
    display: block;
    max-width: 100%;
}

.layout {
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 0 0 1px var(--color-1);
}

.container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

.section--white {
    background: var(--white);
}

.section--gray {
    background: var(--bg-soft);
}

.section--about {
    background: var(--color-2);
}

.about-bg {
    width: 100%;
    height: 52%;
    z-index: 1;
    position: absolute;
    top: 0;
    background: url("assets/line.svg") center center no-repeat;
    background-size: cover;
}

h1,
h2,
h3,
p {
    margin: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    max-width: 226px;
    width: 100%;
    border-radius: 50px;
    background: #4D3EB6;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    transition: 0.2s ease;
    padding: 0 20px;
}

.btn:hover {
    opacity: 0.8;
}

.btn--small {
    width: auto;
}

.btn--center {
    width: 100%;
    display: flex;
    margin-top: 30px;
}

.hero {
    background: var(--primary-bg);
    color: var(--white);
    padding-bottom: 180px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    height: 90px;
    background: var(--primary-bg);
    box-shadow: rgba(0, 0, 0, 0.04) 0px 1px 2px, rgba(0, 0, 0, 0.08) 0px 4px 8px, rgba(0, 0, 0, 0.12) 0px 8px 16px;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 12px;
}

.nav-wrapper,
.footer-nav-wrapper {
    display: flex;
    gap: 40px;
}

.burger {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    padding: 10px 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--white);
    transition: transform 0.3s ease, opacity 0.25s ease;
}

.nav-wrapper a,
.footer-nav-wrapper a {
    white-space: nowrap;
    font-size: 14px;
    color: var(--color-3);
}

.footer-nav-wrapper {
    padding-bottom: 40px;
}

.logo img {
    width: 160px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--color-4);
}

.main-nav a {
    font-size: 16px;
}

.hero-grid {
    padding-top: 34px;
    display: grid;
    grid-template-columns: 1.16fr 0.84fr;
    gap: 20px;
    align-items: center;
}

.hero-copy h1 {
    font-size: 48px;
}

.hero-copy p {
    color: var(--color-5);
    margin-top: 20px;
    margin-bottom: 40px;
    font-size: 20px;
    max-width: 540px;
}

.hero-visual img {
    width: 94%;
    margin-left: auto;
}

.benefit-grid {
    position: relative;
    top: -90px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.benefit {
    background: var(--white);
    height: 100%;
    border-radius: 24px;
    box-shadow: 0 4px 20px 0 var(--color-6), 0 2px 20px 0 var(--color-7);
    max-width: 375px;
    padding: 32px;
}

.benefit p {
    margin-top: 24px;
    font-size: 16px;
    letter-spacing: 0;
    color: var(--color-8);
}

.benefit-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.benefit-title h3 {
    font-size: 24px;
    font-weight: 600;
}

.benefit-grid-wrapper {
    position: relative;
}

.fit-wrapper h2 {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
}

.fit-wrapper h2::after {
    margin-top: 20px;
    width: 50px;
    height: 3px;
    content: "";
    display: block;
    background: var(--color-11);
    margin-left: auto;
    margin-right: auto;
}

.fit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
    margin-top: 60px;
}

.fit-content h2 {
    margin-bottom: 18px;
}

.fit-list {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fit-list li {
    border-radius: 20px;
    padding: 30px 20px;
    background: var(--color-9);
    color: var(--color-8);
    font-size: 18px;
    font-weight: 500;
    display: flex;
    gap: 20px;
    align-items: center;
}

.double-text {
    margin-top: 60px;
    margin-bottom: 100px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    font-size: 16px;
    color: var(--color-10);
}

.stats {
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 50px;
    gap: 20px;
}

.stats h2 {
    font-size: 30px;
    font-weight: 600;
    color: var(--color-8);
    width: 100%;
    text-align: center;
}

.stats h2::after {
    margin-top: 20px;
    width: 50px;
    height: 3px;
    content: "";
    display: block;
    background: var(--color-11);
    margin-left: auto;
    margin-right: auto;
}

.stats span {
    color: #3A2E8F;
}

.stats-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.stats-grid-wrapper {
    display: flex;
    gap: 20px;
}

.stat {
    border-bottom: 1px dashed var(--color-12);
    border-right: 1px dashed var(--color-12);
    padding: 20px;
    gap: 6px;
}

.stat:nth-child(3),
.stat:nth-child(4) {
    border-bottom: unset;
}

.stat:nth-child(2),
.stat:last-child {
    border-right: unset;
}

.stat strong {
    display: block;
    font-size: 34px;
    color: var(--color-13);
}

.stat span {
    font-size: 16px;
    color: #62698a;
}

.stat .colored {
    color: var(--color-13);
}

.panel {
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    padding-bottom: 80px;
    align-items: center;
}

.panel-copy {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 20px;
}

.panel-copy h2 {
    font-weight: 600;
    font-size: 44px;
    color: var(--color-8);
}

.panel-copy h2 span {
    color: var(--color-14);
}

.panel-copy p {
    color: var(--color-8);
    font-size: 18px;
}

.score {
    margin-top: 16px;
    color: #2f3fd6;
    font-size: 28px;
    font-weight: 800;
}

.panel-visual {
    padding-top: 30px;
}

.btn-partner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    max-width: 180px;
    width: 100%;
    border-radius: 12px;
    background: #4D3EB6;
    color: var(--primary-bg);
    font-size: 16px;
    font-weight: 600;
    transition: 0.2s ease;
    padding: 0 20px;
}

.integration {
    margin-top: 30px;
    border-radius: 20px;
    background: var(--color-15) url("/assets/map-route.svg") no-repeat center center;
    padding-top: 80px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
    align-items: center;
}

.integration h3 {
    color: var(--color-16);
    text-align: center;
    font-weight: 700;
    font-size: 26px;
    max-width: 680px;
}

.integration p {
    color: var(--color-16);
    text-align: center;
    font-size: 16px;
    max-width: 846px;
}

.integration .btn--center {
    max-width: 40%;
}

.line-container {
    position: relative;
}

.about {
    position: relative;
    z-index: 5;
    padding-top: 80px;
    padding-bottom: 80px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: start;
}

.about-title h2 {
    padding-top: 16px;
    font-size: 44px;
    font-weight: 600;
    color: var(--color-8);
}

.about-title h2 span {
    color: #3A2E8F;
}

.about-title p {
    margin-top: 60px;
    font-size: 18px;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mini-card {
    border-radius: 20px;
    background: var(--color-17);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 10px 0 var(--color-18), 0 2px 10px 0 var(--color-18);
}

.mini-card h3 {
    color: var(--color-8);
    font-size: 24px;
    font-weight: 600;
}

.mini-card p {
    font-size: 16px;
}

.section-connect {
    position: relative;
    z-index: 3;
    padding-top: 80px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
}

.section-connect h2 {
    font-size: 30px;
    font-weight: 700;
    text-align: center;
}

.section-connect h2::after {
    margin-top: 20px;
    width: 50px;
    height: 3px;
    content: "";
    display: block;
    background: var(--color-11);
    margin-left: auto;
    margin-right: auto;
}

.steps-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-inner {
    display: flex;
    gap: 48px;
}

.step {
    position: relative;
    border-radius: 20px;
    padding: 40px;
    background: var(--white);
    box-shadow: 0 4px 10px 0 var(--color-18), 0 2px 10px 0 var(--color-18);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.step span {
    color: var(--color-19);
    font-weight: 800;
    font-size: 30px;
    display: flex;
    align-items: flex-end;
    font-family: Montserrat, sans-serif;
}

.step span::after {
    position: absolute;
    top: 18%;
    left: 12%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-20);
    display: block;
    content: "";
}

.step h3 {
    font-size: 22px;
    width: 100%;
    font-weight: 700;
    color: var(--color-21);
    font-family: Montserrat, sans-serif;
}

.step h3::after {
    margin-top: 8px;
    width: 100%;
    height: 3px;
    content: "";
    display: block;
    background-color: var(--color-22);
}

.step p {
    font-size: 16px;
    color: var(--color-23);
}

.section-cta {
    padding-bottom: 80px;
}

.cta {
    position: relative;
    border-radius: 20px;
    background: var(--color-24) url("/assets/kp-bg.svg") no-repeat center center;
    background-size: cover;
    padding: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.cta h2 {
    max-width: 580px;
    width: 100%;
    color: var(--color-17);
    font-size: 30px;
    font-weight: 600;
}

.cta-stack {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 460px;
    background: var(--color-25);
    border-radius: 20px;
    padding: 12px 20px;
}

.partner-form {
    display: grid;
    gap: 12px;
}

.partner-form__field {
    display: grid;
    gap: 6px;
    color: var(--color-21);
    font-size: 14px;
}

.partner-form__field input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--color-26);
    border-radius: 10px;
    padding: 0 12px;
    background: var(--color-27);
    color: var(--color-21);
    font-size: 14px;
    outline: 2px solid var(--color-28);
}

.partner-form__field input:focus {
    outline: 2px solid var(--color-21);
    outline-offset: 1px;
}

.partner-form__checkbox {
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-29);
    font-size: 14px;
    cursor: pointer;
    accent-color: var(--color-21);
}

.partner-form__checkbox a {
    color: var(--color-21);
}

.partner-form__checkbox input {
    width: 20px;
    height: 20px;
}

.partner-form__submit {
    height: 50px;
    width: 100%;
    border: none;
    cursor: pointer;
}

.partner-form__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.partner-form__status {
    margin: 0;
    min-height: 20px;
    font-size: 14px;
    color: var(--color-21);
}

.site-footer {
    background: var(--color-30);
    color: var(--color-31);
    padding-top: 40px;
}

.footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom {
    padding: 16px 0;
    background: var(--color-32);
    font-size: 12px;
    color: var(--color-17);
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contacts a {
    font-size: 16px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom p+p {
    margin-top: 6px;
}

@media (max-width: 1140px) {
    .benefit-title img {
        width: 40px;
    }

    .benefit-title h3 {
        font-size: 22px;
    }

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

    .step span:after {
        left: 46px;
    }

    .footer-nav-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .footer-contacts {
        flex-direction: row;
    }
}

@media (max-width: 1024px) {
    .about {
        grid-template-columns: 1fr;
    }

    .about-cards {
        margin-top: 20px;
    }

    .stats-grid-wrapper {
        flex-direction: column;
    }

    .stats-grid-wrapper img {
        position: absolute;
        left: 50%;
        transform: translate(-50%, 0);
        opacity: 0.2;
        top: 30%;
    }

    .topbar {
        flex-direction: column;
    }
}

@media (max-width: 900px) and (min-width: 769px) {
    .nav-wrapper .btn {
        display: none;
    }
}

@media (max-width: 1024px) {
    .benefit-grid {
        grid-template-columns: repeat(2, 1fr);
        place-items: center;
    }

    .topbar {
        height: auto;
        padding: 10px 0;
    }

    .topbar-inner {
        flex-wrap: wrap;
    }

    .burger {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-wrapper {
        width: 100%;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.35s ease, padding 0.35s ease;
        gap: 14px;
        flex-direction: column;
        align-items: flex-start;
        border: 1px solid var(--color-26);
        border-radius: 12px;
        padding: 0 14px;
    }

    .topbar.menu-open .nav-wrapper {
        max-height: 360px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        padding: 14px;
    }

    .topbar.menu-open .burger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .topbar.menu-open .burger span:nth-child(2) {
        opacity: 0;
    }

    .topbar.menu-open .burger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .main-nav {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .main-nav a {
        width: 100%;
        font-size: 14px;
    }

    .nav-wrapper .btn {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .hero-copy {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-copy h1 {
        width: 100%;
        font-size: 32px;
    }

    .hero-copy p {
        font-size: 18px;
        max-width: 100%;
        width: 100%;
    }

    .benefit-title h3 {
        font-size: 18px;
    }

    .fit-grid {
        margin-top: 30px;
        grid-template-columns: 1fr;
    }

    .double-text {
        margin-top: 30px;
        margin-bottom: 40px;
        grid-template-columns: 1fr;
    }

    .about-bg {
        height: 35%;
    }

    .fit-art {
        display: none;
    }

    .stat {
        padding: 10px;
    }

    .stat strong {
        font-size: 26px;
    }

    .stat:nth-child(4) {
        border-right: 1px dashed var(--color-12);
    }

    .stat:nth-child(5),
    .stat:nth-child(6) {
        border-bottom: 1px dashed var(--color-12);
    }

    .stat:nth-child(8) {
        border-bottom: unset;
    }

    .stat:last-child {
        border-right: unset;
    }

    .stats {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .stats h2 {
        font-size: 26px;
    }

    .integration {
        padding: 40px 10px;
    }

    .panel {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .panel-copy {
        grid-template-columns: 1fr;
    }

    .panel-copy h2 {
        font-size: 26px;
    }

    .panel-copy p {
        font-size: 16px;
    }

    .about {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .about-title h2 {
        font-size: 26px;
    }

    .about-title p {
        margin-top: 30px;
        font-size: 16px;
    }

    .section-connect {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .section-connect h2 {
        font-size: 26px;
    }

    .partner-form__submit {
        max-width: 100%;
    }

    .cta {
        grid-template-columns: 1fr;
        gap: 20px;
        place-items: center;
    }

    .cta h2 {
        font-size: 26px;
    }

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

    .step span:after {
        top: 20%;
        left: 50px;
    }

    .footer-nav-wrapper {
        align-items: flex-start;
    }

    .footer-contacts {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .main-nav {
        overflow-y: auto;
        max-width: 100%;
    }

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

@media (max-width: 425px) {
    .topbar {
        align-items: unset;
    }

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

    .step {
        padding: 20px;
    }

    .step h3 {
        font-size: 18px;
    }

    .step span {
        font-size: 26px;
    }

    .step span:after {
        top: 8%;
        left: 24px;
    }

    .step p {
        font-size: 14px;
    }

    .fit-list li {
        font-size: 16px;
    }

    .integration .btn {
        max-width: 100%;
    }

    .footer-nav {
        gap: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    .fit-wrapper h2 {
        text-align: left;
    }

    .fit-wrapper h2::after {
        margin-left: unset;
        margin-right: unset;
    }

    .stats h2 {
        text-align: left;
    }

    .stats h2::after {
        margin-left: unset;
        margin-right: unset;
    }

    .section-connect h2 {
        text-align: left;
    }

    .section-connect h2::after {
        margin-left: unset;
        margin-right: unset;
    }

    .integration h3 {
        text-align: left;
    }

    .integration p {
        text-align: left;
    }

    .mini-card p {
        font-size: 14px;
    }

    .benefit p {
        font-size: 14px;
    }
}

@media (max-width: 375px) {
    .stats h2 {
        font-size: 24px;
    }

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

    .stat:nth-child(n) {
        border-right: unset;
    }

    .stat:nth-child(3) {
        border-bottom: 1px dashed var(--color-12);
    }

    .step-inner {
        gap: 26px;
    }

    .step span:after {
        top: 8%;
        left: 22px;
    }
}
