section {
    /*border: 1px solid crimson;*/
}

.hero {
    margin-top: 1.2rem;
    position: relative;
    align-items: center;
    overflow: hidden;
    padding: 0;

    @media (max-width: 1320px) {
    }

    @media (max-width: 928px) {
        flex-direction: column;
    }

    .image {
        width: 100%;
        /*height: 100%;*/
        aspect-ratio: 1.8 / 1;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 1rem;
        overflow: hidden;


        img {
            width: 126%;
            margin-top: -10%;
            margin-left: 26%;

            @media (max-width: 928px) {
                width: 160%;
                margin-top: -16%;
                margin-left: -10%;
                position: relative;
            }
        }
    }

    .text-block {
        width: min(72%, 360px);
        position: absolute;
        top: 8%;
        left: 4%;
        background-color: var(--bg-hero);
        padding: 1.6rem;

        @media (max-width: 928px) {
            width: 100%;
            top: 0;
            left: 0;
            position: relative;
            background: none;
            padding: 1.6rem;
        }

        h1 {
            font-size: 2.6rem;
            line-height: 3rem;

            span {
                color: var(--primary);
            }
        }


        .subheader {
            margin: 1rem 0;
            display: flex;
            gap: 1rem;
            align-items: center;
            /*color: var(--text-secondary);*/
            color: var(--text-subheader);
            font-size: .9rem;
            font-weight: 600;

            .marker {
                display: inline-block;
                width: 1rem;
                height: 1rem;
                background-color: var(--text);
            }
        }

        .text-content {
            width: min(100%, 640px);
        }

        .bottom-link {
            margin-top: 1rem;
            color: var(--primary);
            font-size: .9rem;
            font-weight: 500;
            cursor: pointer;
        }
    }


}

.meet-trackly {
    /*margin-top: 120px;*/
    padding: 120px 2rem;
    /*background-color: var(--bg-main-page-block);*/
    flex-direction: column;

    .subheader {
        font-size: 1.4rem;
        font-weight: 500;
        color: var(--text-subheader);
    }

    .section-content {
        margin-top: 2rem;
        display: flex;
        gap: 2rem;
        align-items: center;

        @media (max-width: 928px) {
            flex-direction: column;
        }
    }

    .container {

    }

    .text-block {
        display: flex;
        flex-direction: column;
        gap: 1.4rem;
        margin: 0 1.4rem;
        padding: 1.4rem;
    }


    .feature-item {
        border: none;
        border-radius: 1rem;
        /*background-color: var(--bg-hero);*/

        svg {
            stroke: var(--primary);
        }
    }

    .image {
        width: 100%;
        aspect-ratio: 4 / 3;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;

        img {
            width: 140%;
            /*transform: scaleX(-1);*/
        }
    }
}

.parallax {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    /*border: 1px solid crimson;*/

    .parallax-image {
        width: 100%;
        height: 100%;
        aspect-ratio: 6 / 4;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: flex-end;

        img {
            width: 100%;
            height: auto;
            margin-bottom: -16%;
            will-change: transform; /* Допомагає браузеру виділити шар для GPU */

            @media (max-width: 968px) {
                width: 120%;
                margin-bottom: -8%;
            }

            @media (max-width: 698px) {
                width: 140%;
                margin-bottom: -6%;
            }

            @media (max-width: 544px) {
                width: 188%;
                margin-bottom: -10%;
            }
        }

        &::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            box-shadow: inset 0 10px 20px -5px rgba(0, 0, 0, 0.5);
            pointer-events: none; /* Щоб тінь не перешкоджала клікам */
        }
    }
}


.features {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 рівні колонки */
    grid-template-rows: repeat(2, auto); /* 2 рядки */
    gap: 1.5rem; /* Відстань між картками */

    @media (max-width: 960px) {
        grid-template-columns: repeat(2, 1fr);
    }

    @media (max-width: 698px) {
        grid-template-columns: 1fr; /* 1 колонка на смартфонах */
    }
}


.feature-item {
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;

    .header {
        /*height: 3rem;*/
        line-height: 1.6rem;
        display: flex;
        gap: 1rem;
        align-items: center;
        margin-bottom: .2rem;
    }

    .icon {
        width: 2rem;
        height: 2rem;
        flex-shrink: 0;

        svg {
            width: 100%;
            height: 100%;
            stroke: var(--primary);
        }
    }

    .title {
        font-size: 1.4rem;
        font-weight: 500;
        color: var(--text-subheader);
    }

    .text {
        margin-left: 3rem;
    }
}

.why-trackly {
    padding: 3.2rem 3.2rem;
    flex-direction: column;
    /*background-color: var(--bg-main-page-block);*/
    background: var(--bg-landing-block);
    border-radius: 2rem 2rem 0 0;

    .subheader {
        margin: 2rem 0 .2rem;
        font-size: 1.4rem;
        font-weight: 500;
        color: var(--text-subheader);
    }

    .text-content {
        margin: 0 0 2rem;
        width: min(100%, 640px);
    }

    .image {
        margin-bottom: 3.2rem;
        border-radius: 1rem;
        overflow: hidden;
    }

    .feature-item {
        background-color: var(--bg-hero);
    }
}

.keep-ahead {
    padding: 8rem 2rem;
    flex-direction: column;

    .container.header {
        margin-bottom: 2rem;
    }

    .subheader {
        font-size: 1.4rem;
        font-weight: 500;
        color: var(--text-subheader);
    }

    .text-content {
        margin: 1rem 0 2rem;
        width: min(100%, 640px);
    }

    .subtext {
        /*    width: 100%;*/
        /*    font-size: .9rem;*/
        font-weight: 600;
        color: var(--text-subheader);
    }

    .features {
        @media (max-width: 962px) {
            grid-template-columns: 1fr; /* 1 колонка на смартфонах */
            margin-bottom: 2rem;
        }
    }

    /*962*/
}

.where-it-fits {
    padding: 3.2rem 3.2rem;
    flex-direction: column;
    /*background-color: var(--bg-main-page-block);*/
    background: var(--bg-landing-block);
    border-radius: 2rem;

    .subheader {
        margin: 2rem 0 .2rem;
        font-size: 1.4rem;
        font-weight: 500;
        color: var(--text-subheader);
    }

    .text-content {
        margin: 0 0 2rem;
        width: min(100%, 640px);
    }

    .image {
        margin-bottom: 3.2rem;
        border-radius: 1rem;
        overflow: hidden;
    }

    .features {
        /*margin-top: 1rem;*/
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 3 рівні колонки */
        grid-template-rows: repeat(2, auto); /* 2 рядки */
        gap: 1.5rem; /* Відстань між картками */

        @media (max-width: 1164px) {
            grid-template-columns: repeat(2, 1fr);
        }

        @media (max-width: 698px) {
            grid-template-columns: 1fr; /* 1 колонка на смартфонах */
        }
    }

    .feature-item {
        background-color: var(--bg-hero);
    }
}

.stay-in-loop {
    padding: 8rem 1.4rem;
    flex-direction: column;
    /*background-color: var(--bg-main-page-block);*/

    .subheader {
        margin: 2rem 0 .2rem;
        font-size: 1.4rem;
        font-weight: 500;
        color: var(--text-subheader);
    }


    .content-wrapper {
        width: 100%;
        display: flex;
        gap: 2rem;

        @media (max-width: 828px) {
            flex-direction: column-reverse;
        }
    }

    .text-block {
        flex: 1;
    }

    .text-content {
        /*margin-top: 1rem;*/
        /*width: min(100%, 640px);*/
    }

    .list {
        list-style: square inside;
    }

    #user-feedback-form {
        margin-top: 2rem;
        padding: 2rem;
        border: 1px solid var(--border);
        border-radius: 1rem;
        /*background-color: var(--bg-main-page-block);*/
        background: var(--bg-landing-block);
        display: flex;
        flex-direction: column;
        gap: 1.4rem;

        div {
            display: flex;
            flex-direction: column;
        }

        label {
            /*margin-left: 1rem;*/
            margin-bottom: .8rem;
            font-size: .9rem;
            font-weight: 500;
            color: var(--text-subheader);
        }

        input[type="email"],
        select {
            outline: none;
            padding: 1rem;
            border: 1px solid var(--border-input);
            border-radius: 1rem;
            background-color: var(--bg);
            color: var(--text);
        }

        select {
            appearance: none; /* прибирає стандартну стрілочку браузера */
            -webkit-appearance: none;
            -moz-appearance: none;

            /* Робимо відступ праворуч, щоб текст не наїжджав на майбутню стрілочку */
            padding-right: 2.5rem;

            /* Додаємо свою стрілочку як фонове зображення */
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24"><path fill="%23da7059" d="M7 10l5 5 5-5z"/></svg>');
            background-repeat: no-repeat;
            background-position: right 1rem center; /* зсуваємо стрілочку вправо та по центру по вертикалі */
            background-size: 2rem;
        }

        button {
            margin-top: 2rem;
        }
    }

    .image {
        width: 100%;
        height: 100%;
        flex: 1;
        border-radius: 1rem;
        overflow: hidden;

        img {
            /*transform: scaleX(-1);*/
            width: 100%; /* Заповнює ширину контейнера */
            height: 100%; /* Заповнює висоту контейнера */
            object-fit: cover;
        }


        /*margin-bottom: 2rem;*/
    }

}

.for-investors {
    padding: 3.2rem 3.2rem;
    flex-direction: column;
    /*background-color: var(--bg-main-page-block);*/
    background: var(--bg-landing-block);
    border-radius: 2rem;

    .subheader {
        margin: 2rem 0 .2rem;
        font-size: 1.4rem;
        font-weight: 500;
        color: var(--text-subheader);
    }

    .content-wrapper {
        margin-top: 2rem;
        width: 100%;
        display: flex;
        gap: 2rem;
        align-items: center;

        @media (max-width: 828px) {
            flex-direction: column;
        }
    }

    .image {
        width: 100%;
        height: 100%;
        /*margin-bottom: 2rem;*/
        flex: 1;
        border-radius: 1rem;
        overflow: hidden;

        img {
            width: 100%; /* Заповнює ширину контейнера */
            height: 100%; /* Заповнює висоту контейнера */
            object-fit: cover;
        }
    }

    .text-block {
        flex: 1;
    }

    .text-content {
        display: flex;
        flex-direction: column;
        gap: .6rem;
        align-items: flex-start;

        .subheader {
            margin: 1rem 0;
        }
    }

    .list {
        list-style: square inside;
    }

    #investor-feedback-form {
        margin-top: 2rem;
        padding: 2rem;
        border: 1px solid var(--border);
        border-radius: 1rem;
        /*background-color: var(--bg-main-page-block);*/
        background: var(--bg-landing-block);
        display: flex;
        flex-direction: column;
        gap: 1.4rem;

        div {
            display: flex;
            flex-direction: column;
        }

        label {
            /*margin-left: 1rem;*/
            margin-bottom: .8rem;
            font-size: .9rem;
            font-weight: 500;
            color: var(--text-subheader);
        }

        input[type="text"],
        input[type="email"],
        select {
            outline: none;
            padding: 1rem;
            border: 1px solid var(--border-input);
            border-radius: 1rem;
            background-color: var(--bg);
            color: var(--text);
        }

        select {
            appearance: none; /* прибирає стандартну стрілочку браузера */
            -webkit-appearance: none;
            -moz-appearance: none;

            /* Робимо відступ праворуч, щоб текст не наїжджав на майбутню стрілочку */
            padding-right: 2.5rem;

            /* Додаємо свою стрілочку як фонове зображення */
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24"><path fill="%23da7059" d="M7 10l5 5 5-5z"/></svg>');
            background-repeat: no-repeat;
            background-position: right 1rem center; /* зсуваємо стрілочку вправо та по центру по вертикалі */
            background-size: 2rem;
        }

        button {
            margin-top: 2rem;
        }

        .subform-text {
            margin-bottom: -1rem;
            color: var(--text-subheader);
            font-size: .9rem;
            font-weight: 500;
        }
    }


}