@layer reset, global, custom, base;

:root {
    --font-body: 'Geologica', Arial, Helvetica, sans-serif;
    --font-button: 'Inter', Arial, Helvetica, sans-serif;

    --white: rgba(255, 255, 255, 1);
    --black: rgba(0, 0, 0, 1);

    --gray-dark-3: rgba(20, 20, 20, 1);
    --gray-dark-2: rgba(22, 22, 22, 1);
    --gray-dark-1: rgba(32, 32, 32, 1);
    --gray-dark-0: rgba(61, 61, 61, 1);
    --gray-dark: rgba(99, 99, 99, 1);
    --gray: rgba(156, 156, 156, 1);

    --green: rgba(212, 252, 86, 1);
    --green-dark-2: rgba(59, 63, 48, 1);
    --green-light-2: rgba(252, 255, 242, 1);

    --purple: rgba(216, 143, 255, 1);
    --purple-light-1: rgba(238, 206, 255, 1);

    --sb-track-color: var(--gray-dark-3);
    --sb-thumb-color: var(--green);
}

@layer global {
    ::-webkit-scrollbar {
        width: 0.25rem;
        height: 0.25rem
    }

    ::-webkit-scrollbar-corner {
        background: var(--sb-track-color);
    }

    ::-webkit-scrollbar-track {
        background: var(--sb-track-color);
        border-radius: 0.04rem;
    }

    ::-webkit-scrollbar-thumb {
        background: var(--sb-thumb-color);
        border-radius: 0.25rem;
    }

    * {
        box-sizing: border-box;
    }

    html {
        scrollbar-gutter: stable;
        scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
        scroll-behavior: smooth;
        scroll-padding: 5rem;
        font-family: var(--font-body);
        font-size: 16px;
        -moz-osx-font-smoothing: grayscale;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
        -webkit-tap-highlight-color: transparent;
    }

    main {
        overflow-x: clip;
    }

    body {
        font-family: var(--font-body);
        font-size: 16px;
        line-height: 1.4;
        color: var(--white);
        background: var(--gray-dark-1);
    }

    section {
        padding: 48px 0;
    }

    section .container {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    h1,
    .h1,
    h2,
    .h2,
    h3,
    .h3,
    h4,
    .h4,
    h5,
    .h5,
    h6,
    .h6 {
        font-family: var(--font-body);
        line-height: 1.1;
        font-weight: 600;
    }

    h1,
    .h1 {
        font-size: 44px;
    }

    h2,
    .h2 {
        font-size: 36px;
    }

    h3,
    .h3 {
        font-size: 24px;
    }

    h4,
    .h4 {
        font-size: 20px;
    }

    h6,
    .h6 {
        font-size: 16px;
    }

    .body-1 {
        font-size: 18px;
        line-height: 1.4;
        font-weight: 400;
    }

    .body-2 {
        font-size: 16px;
        line-height: 1.4;
        font-weight: 400;
    }

    .body-3 {
        font-size: 14px;
        line-height: 1.4;
        font-weight: 400;
    }

    img,
    video {
        display: block;
        max-width: 100%;
        height: auto;
    }

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

    button {
        font: inherit;
        color: inherit;
        background: none;
        border: 0;
        cursor: pointer;
    }


    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="tel"],
    input[type="number"],
    select {
        width: 100%;
        height: 52px;
    }

    textarea {
        width: 100%;
        resize: none;
        display: block;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-family: inherit;
        padding: 14px 28px;
        border-radius: 30px;
        font-size: 1rem;
        background: var(--white);
        color: var(--gray-dark-3);
        border: 0;
    }

    input[type="text"]::placeholder,
    input[type="email"]::placeholder,
    input[type="password"]::placeholder,
    input[type="search"]::placeholder,
    input[type="tel"]::placeholder,
    input[type="number"]::placeholder,
    textarea::placeholder {
        color: var(--gray);
    }

    input[type="checkbox"] {
        border-radius: 0;
        background: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        width: 1rem;
        height: 1rem;
        flex-shrink: 0;
        border: 2px solid var(--gray-dark-3);
        margin: 3px;
        cursor: pointer;
    }

    input[type="checkbox"]:checked {
        background-color: var(--gray-dark-3);
        background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMCIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgMTAgOSIgZmlsbD0ibm9uZSI+CjxwYXRoIGQ9Ik05LjcxMjI0IDAuMTI3MzhDMTAuMDI0OCAwLjM2NTMzNyAxMC4wOTE4IDAuNzk3OTg3IDkuODY4NTMgMS4xMDA4NEw0LjE1MjgyIDguNzE1NDdDNC4wMTg4NiA4Ljg2Njg5IDMuODQwMjQgOC45NzUwNSAzLjYzOTMgOC45OTY2OUMzLjQxNjAzIDkuMDE4MzIgMy4yMTUwOSA4LjkzMTc5IDMuMDU4OCA4LjgwMTk5TDAuMjAwOTQzIDYuMDMzMDRDLTAuMDY2OTgxIDUuNzUxODIgLTAuMDY2OTgxIDUuMzE5MTcgMC4yMDA5NDMgNS4wMzc5NUMwLjQ5MTE5NCA0Ljc3ODM2IDAuOTM3NzM0IDQuNzc4MzYgMS4yMjc5OCA1LjAzNzk1TDMuNDgzMDEgNy4yNDQ0Nkw4LjcwNzUzIDAuMjc4ODA4QzguOTUzMTIgLTAuMDI0MDQ2OCA5LjM5OTY2IC0wLjA4ODk0NDIgOS43MTIyNCAwLjEyNzM4WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+');
        background-repeat: no-repeat;
        background-position: center;
        background-size: 0.625rem;
    }

    .container {
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
        padding: 0 1.25rem;
    }

    @media screen and (max-width: 960px) {
        h1,
        .h1 {
            font-size: 44px;
        }

        h2,
        .h2 {
            font-size: 32px;
        }

        h3,
        .h3 {
            font-size: 20px;
        }

        h4,
        .h4 {
            font-size: 16px;
        }

        h5,
        .h5,
        h6,
        .h6 {
            font-size: 14px;
        }

        body {
            font-size: 14px;
        }
    }

    @media screen and (max-width: 640px) {
        h1,
        .h1 {
            font-size: 36px;
        }

        h2,
        .h2 {
            font-size: 28px;
        }

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

@layer custom {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 80px;
        z-index: 10;
        background: linear-gradient(180deg, var(--gray-dark-1) 0%, rgba(32, 32, 32, 0) 100%);
    }

    .header > .container,
    .header__inner {
        height: 100%;
    }

    .header__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 26px;
        font-weight: 600;
        line-height: 1;
        letter-spacing: -0.36px;
        color: var(--white);
    }

    .logo__toggle {
        position: relative;
        flex-shrink: 0;
        width: 39px;
        height: 20px;
        border: 1px solid var(--green);
        border-radius: 10px;
    }

    .logo__toggle:before {
        content: '';
        position: absolute;
        top: 50%;
        left: 2px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: var(--green);
        transform: translateY(-50%);
        transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    }

    .logo__toggle[data-state="on"]:before {
        transform: translate(17px, -50%);
    }
    .button {
        font-family: var(--font-button);
        height: 52px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: center;
        border-radius: 160px;
        padding: 8px 56px 8px 20px;
        background: var(--green);
        color: var(--gray-dark-3);
        border: 1px solid var(--green);
        overflow: hidden;
        position: relative;
        isolation: isolate;
        transition: all 0.4s ease;
        font-size: 1rem;
        font-weight: 500;
        max-width: 100%;
    }

    .button span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 100%;
    }

    .button:before,
    .button:after {
        content: '';
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        aspect-ratio: 1 / 1;
    }

    .button:before {
        background-color: var(--gray-dark-3);
        border-radius: 50%;
        transition: all 0.6s cubic-bezier(0.67, 0.06, 0.43, 0.97);
        z-index: -2;
    }

    .button:after {
        background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNi4xNjQgMTJIMTcuODMxTTEyIDE3LjgzM0wxNy44MzEgMTJMMTIgNi4xNjYiIHN0cm9rZT0iI0Q0RkM1NiIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L3N2Zz4=') no-repeat center / 24px;
    }

    .button:not(:disabled):hover {
        color: var(--white);
    }

    .button:not(:disabled):hover:before {
        width: 200% !important;
        transform: translate(50%, -50%);
    }

    .button_secondary {
        background: var(--gray-dark-3);
        border-color: var(--gray-dark-3);
        color: var(--white);
    }

    .button_secondary:before {
        background-color: var(--green);
    }

    .button_secondary:after {
        background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNi4xNjQgMTJIMTcuODMxTTEyIDE3LjgzM0wxNy44MzEgMTJMMTIgNi4xNjYiIHN0cm9rZT0iIzE0MTQxNCIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L3N2Zz4=') no-repeat center / 24px;
    }

    .button_secondary:not(:disabled):hover {
        color: var(--gray-dark-3);
    }

    .highlight {
        z-index: -1;
        position: relative;
        -webkit-box-decoration-break: clone;
        box-decoration-break: clone;
    }

    .highlight.highlight_sm {
        background: url('../assets/images/highlight_sm.svg') no-repeat center / 100% 100%;
        padding: 2px 10px 11px 10px;
        margin: -2px -10px -11px -10px;
    }

    .list_disc {
        list-style: disc;
        padding-left: 22px;
    }

    .section_timeline {
        background: url('../assets/images/timeline_bg.png') no-repeat top center / 1440px 1516px;
    }

    .timeline {
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .timeline__item {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: calc(50% - 47px);
    }

    .timeline__item_right {
        margin-left: auto;
    }


    .timeline__item:not(:last-child):after {
        content: '';
        position: absolute;
        top: 22px;
        bottom: -22px;
        width: 1px;
        background: var(--white);
    }

    .timeline__item_right:not(:last-child):after {
        left: -47px;
    }

    .timeline__item_left:not(:last-child):after {
        right: -48px;
    }

    .timeline__badge {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: flex-start;
        height: 46px;
        width: 150px;
        padding: 0 24px;
        border-radius: 23px;
        background: var(--green);
        color: var(--gray-dark-3);
        white-space: nowrap;
    }

    .timeline__item_left .timeline__badge {
        align-self: flex-end;
    }

    .timeline__badge:before {
        content: '';
        position: absolute;
        top: 50%;
        width: 50px;
        height: 1px;
        background: var(--white);
    }

    .timeline__badge:after {
        content: '';
        position: absolute;
        top: 50%;
        z-index: 1;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: var(--green);
        transform: translateY(-50%);
    }

    .timeline__item_right .timeline__badge:before {
        left: -47px;
    }

    .timeline__item_right .timeline__badge:after {
        left: -60px;
    }

    .timeline__item_left .timeline__badge:before {
        right: -47px;
    }

    .timeline__item_left .timeline__badge:after {
        right: -60px;
    }

    .font_button {
        font-family: var(--font-button);
    }

    .cfr-form {
        display: flex;
        flex-direction: column;
        gap: 1.125rem;
        position: relative;
    }

    .cfr-form__fields {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .cfr-form__submit {
        cursor: pointer;
    }

    .cfr-form .button {
        width: 100%;
        background: var(--gray-dark-3);
        border-color: var(--gray-dark-3);
        color: var(--white);
    }

    .cfr-form .button:before {
        background-color: var(--white);
    }

    .cfr-form .button:after {
        background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNi4xNjQgMTJIMTcuODMxTTEyIDE3LjgzM0wxNy44MzEgMTJMMTIgNi4xNjYiIHN0cm9rZT0iIzE0MTQxNCIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L3N2Zz4=') no-repeat center / 24px;
    }

    .cfr-form .button:not(:disabled):hover {
        color: var(--gray-dark-3);
    }

    .cfr-form .wpcf7-spinner {
        position: absolute !important;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none;
        margin: 0;
        display: block !important;
    }

    .cfr-form__agreement label {
        display: flex;
        gap: 10px;
        align-items: flex-start;
    }

    .cfr-form__agreement .wpcf7-list-item {
        margin-left: 0 !important;
    }

    .cfr-form__agreement .wpcf7-list-item-label {
        font-size: 0.875rem;
        line-height: 1.4;
        font-weight: 300;
        color: var(--gray-dark-3);
    }

    .cfr-form__agreement .wpcf7-list-item-label a {
        color: var(--gray-dark-3);
        text-decoration: underline !important;
    }

    .cfr-form .wpcf7-not-valid-tip {
        font-size: 0.875rem;
        line-height: 1.1;
        margin-top: 4px;
    }

    input.wpcf7-not-valid {
        outline: 2px solid #dc3232;
    }

    .wpcf7 form .wpcf7-response-output {
        padding: 20px 28px;
        border-radius: 30px;
        margin: 20px 0 0;
        color: var(--white);
    }

    .wpcf7 form.invalid .wpcf7-response-output,
    .wpcf7 form.failed .wpcf7-response-output,
    .wpcf7 form.aborted .wpcf7-response-output {
        background: #dc3232;
        border-color: #dc3232 !important;
        color: var(--white);
    }

    .wpcf7 form.sent .wpcf7-response-output {
        background: #46b450;
        border-color: #46b450 !important;
        color: var(--white);
    }

    .wpcf7 form.spam .wpcf7-response-output {
        background: #f56e28;
        border-color: #f56e28 !important;
        color: var(--white);
    }

    .wpcf7 form.unaccepted .wpcf7-response-output,
    .wpcf7 form.payment-required .wpcf7-response-output {
        background: #ffb900;
        border-color: #ffb900 !important;
        color: var(--gray-dark-3);
    }

    .form-card {
        background: linear-gradient(246deg, var(--purple) 0%, #F4FFD3 36%, #E6FF97 53%);
    }

    .form-card:before {
        content: '';
        position: absolute;
        top: -188px;
        right: -410px;
        width: 872px;
        height: 950px;
        pointer-events: none;
        background: url('../assets/images/form_pattern.svg') no-repeat center / contain;
    }

    .faq__question {
        cursor: pointer;
    }

    .faq__icon {
        transition: transform 0.3s ease;
    }

    .faq__item.active .faq__icon {
        transform: rotate(45deg);
    }

    .faq__content {
        overflow: hidden;
        height: 0;
        transition: height 0.3s ease;
    }

    .faq__question span,
    .faq__content {
        transition: all 0.3s ease;
    }

    .faq__item.active .faq__content {
        margin-top: -0.75rem;
    }

    .section_price {
        background: url('../assets/images/price_bg.png') no-repeat top center / auto 100%;
    }

    .price__head {
        background: linear-gradient(205deg, var(--green) 15%, var(--purple-light-1) 90%);
    }

    .section_how {
        position: relative;
        overflow: hidden;
        isolation: isolate;
    }

    .section_how:before {
        content: '';
        position: absolute;
        top: 16px;
        right: 0;
        width: clamp(200px, 26.87vw, 387px);
        aspect-ratio: 387 / 282;
        background: url('../assets/images/main_right.svg') no-repeat center / contain;
        pointer-events: none;
        z-index: -1;
        mix-blend-mode: overlay;
    }

    .section_from {
        background: url('../assets/images/bg_line.svg') no-repeat center 137px / 2081px 564px;
    }

    .section_main {
        isolation: isolate;
        z-index: 1;
    }

    .section_main__bg {
        position: absolute;
        top: -300px;
        left: max(calc(600px - (1440px - 100vw) / 4), calc(50% - 55px));
        width: 1000px;
        aspect-ratio: 1461 / 1589;
        background: url('../assets/images/main_bg.png') no-repeat center / contain;
        pointer-events: none;
        z-index: -2;
    }

    .section_main:before,
    .section_main:after {
        content: '';
        position: absolute;
        pointer-events: none;
        z-index: -1;
        mix-blend-mode: overlay;
    }

    .section_main:before {
        top: 0;
        right: 4px;
        width: clamp(200px, 26.87vw, 387px);
        aspect-ratio: 387 / 282;
        background: url('../assets/images/main_right.svg') no-repeat center / contain;
    }

    .section_main:after {
        bottom: 0;
        left: 0;
        width: clamp(180px, 23.19vw, 334px);
        aspect-ratio: 334 / 282;
        background: url('../assets/images/main_left.svg') no-repeat center / contain;
    }

    .preloader {
        background: var(--gray-dark-1);
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        inset: 0;
        z-index: 100000000;
        transition: opacity 0.3s ease;
    }

    .preloader__svg {
        max-width: 14.375rem;
        transition: transform 0.3s ease;
    }

    .preloader[data-visible="false"] {
        opacity: 0;
    }

    .preloader[data-visible="false"] .preloader__svg {
        transform: scale(0.8);
    }

    .footer {
        display: flex;
        align-items: center;
        height: 80px;
        background: var(--gray-dark-2);
    }

    .posts {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .posts__item {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    @media screen and (max-width: 768px) {
        .timeline {
            padding-left: 40px;
        }

        .timeline__item {
            width: 100%;
            margin-left: 0;
        }

        .timeline__item:not(:first-child) {
            padding-top: 30px;
        }

        .timeline__item_left .timeline__badge {
            align-self: flex-start;
        }

        .timeline__item_right:not(:last-child):after,
        .timeline__item_left:not(:last-child):after {
            top: 52px;
            bottom: -52px;
            left: -30px;
            right: auto;
        }

        .timeline__item:first-child:not(:last-child):after {
            top: 22px;
        }

        .timeline__item_right .timeline__badge:before,
        .timeline__item_left .timeline__badge:before {
            left: -30px;
            right: auto;
            width: 30px;
        }

        .timeline__item_right .timeline__badge:after,
        .timeline__item_left .timeline__badge:after {
            left: -43px;
            right: auto;
        }
    }

    @media screen and (max-width: 640px) {
        .logo {
            font-size: 20px;
        }
    }

    @media screen and (max-width: 480px) {
        .header__inner .button {
            display: none;
        }
    }
}
