@font-face {
    font-family: Hyperion;
    src: url(../fonts/Hyperion_Regular.woff) format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: JetBrainsMono;
    src: url(../fonts/JetBrainsMono-Medium.ttf) format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: JetBrainsMono;
    src: url(../fonts/JetBrainsMono-ExtraLight.ttf) format('truetype');
    font-weight: normal;
    font-style: normal;
}


:root {
    --color-bg: #1A1B1E;
    --color-content: #FFFFFF;
    --color-base: #000000;
    --color-container: #303134;
    --color-light-container: #D9D9D9;

    --font-title: 'Hyperion', Arial, sans-serif;
    --font-regular: 'JetBrainsMono', Arial, sans-serif;

    --breakpoint-mobile: 600px;
    --breakpoint-tablet: 768px;
    --breakpoint-laptop: 992px;
    --breakpoint-desktop: 1200px;
    --breakpoint-huge: 1442px;
}


* {
    box-sizing: border-box;
}

body {
    background-color: var(--color-base);
    margin: 0;
    padding: 0;
}

p {
    margin: 0;
    padding: 0;
}

.content {
    background-color: var(--color-bg);
    color: var(--color-content);
    font-family: var(--font-regular);
    font-weight: normal;
    margin: 0 auto;
    padding: 10px 65px;
    max-width: var(--breakpoint-huge);

    @media screen and (max-width: 768px) {
        padding: 10px 0 10px 10px;
    }
}

/* header */

.header {
    background-color: var(--color-bg);
    color: var(--color-bg);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 20px 65px;
    max-width: var(--breakpoint-huge);

    @media screen and (max-width: 768px) {
        background-color: var(--color-container);
        padding: 10px 10px;
    }
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 60px;
}

.nav-link {
    color: var(--color-base);
    background-color: var(--color-content);
    padding: 6px 16px;
    border-radius: 27px;
    font-family: var(--font-regular);
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.section {
    margin: 0;
    padding: 0;
}

.section-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;


    @media screen and (min-width: 768px) {
        gap: 20px;
        margin-top: 100px;
        margin-bottom: 140px;
    }

    @media screen and (min-width: 992px) {
        margin-top: 100px;
        margin-bottom: 240px;
    }

}

.title {
    font-size: 44px;
    line-height: 64px;
    font-family: var(--font-title);
    margin: 0;
    padding: 0;
    z-index: 1;
}

.title-top {
    max-width: 60%;

    @media screen and (max-width: 768px) {
        font-size: 32px;
        line-height: 47px;
        max-width: 100%;
    }

}

.large-text {
    z-index: 1;
    font-size: 22px;
    line-height: 26px;
    font-family: var(--font-regular);
    font-weight: normal;
}

.bold {
    font-weight: bold;
}

.medium-text {
    z-index: 1;
    font-size: 16px;
    line-height: 18px;
    font-family: var(--font-regular);
    font-weight: normal;
}

.small-text {
    z-index: 1;
    font-size: 10.5px;
    line-height: 14px;
    font-family: var(--font-regular);
    font-weight: normal;
}

.large-text-top {
    max-width: 60%;

    @media screen and (max-width: 768px) {
        font-size: 16px;
        line-height: 19px;
        max-width: 100%;
        margin-bottom: 16px;
    }
}

.nav-link-large {
    z-index: 1;
    display: flex;
    gap: 86px;
    justify-content: space-between;
    align-items: center;
    width: fit-content;
    max-width: 60%;

    @media screen and (max-width: 600px) {
        width: 90%;
        align-self: center;
        margin-right: 10px;
        max-width: 100%;
    }
}

.phones-planet {
    position: absolute;
    z-index: 0;
    top: -160px;
    right: -65px;
    max-width: 500px;

    @media screen and (max-width: 768px) {
        align-self: flex-end;
        position: static;
        max-width: 400px;
    }
}

.section-history {
    /* display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    margin: 20px auto;
    width: 100%;

    @media screen and (max-width: 768px) {
        margin: 30px auto 0;
        gap: 40px;
        justify-content: space-evenly;
        /* grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); */
    }
}

.history-block {
    width: 270px;

    @media screen and (max-width: 768px) {
        height: 100px;
        min-width: 130px;
    }
}

.hr {
    display: block;
    margin: 80px auto;
    width: clamp(300px, 100%, 800px);

    @media screen and (max-width: 768px) {
        margin: 40px auto;

    }
}

.title-history {
    @media screen and (max-width: 768px) {
        text-align: center;
    }
}

.large-text-history {
    font-size: 25px;
    line-height: 30px;
    font-weight: normal;
    margin: 0;
    padding: 0;

    @media screen and (max-width: 768px) {
        font-size: 14px;
        line-height: 16px;
        text-align: center;
    }
}

.section-work {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 20px auto;
    width: 100%;

    @media screen and (max-width: 768px) {
        gap: 10px;
        padding-right: 20px;
        justify-content: center;
    }
}

.title-work {
    margin-top: 20px;
    font-size: 47px;
    line-height: 68px;

    @media screen and (max-width: 768px) {
        font-size: 32px;
        line-height: 47px;
    }
}

.work-block {
    width: 430px;
    height: 760px;
    border-radius: 36px;
    background-color: var(--color-container);
    padding: 20px 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    @media screen and (max-width: 600px) {
        width: 100vw;
        height: fit-content;
    }
}

.large-text-work {
    font-size: 16px;
    line-height: 19px;
    font-weight: normal;
    margin: 0;
    padding: 0;

    @media screen and (max-width: 768px) {
        font-size: 14px;
        line-height: 16px;
    }
}

.mini-link {
    color: var(--color-base);
    background-color: var(--color-content);
    border-radius: 38px;
    font-family: var(--font-title);
    text-decoration: none;
    width: 90px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
}

.circle {
    width: 37px;
    height: 37px;
    border-radius: 50%;
    background-color: var(--color-light-container);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 27px;
}

.work-block-title {
    font-size: 20px;
    line-height: 29px;
    font-family: var(--font-title);
    margin: 22px 0;
    padding: 0;
}

.title-venture {
    font-size: 31px;
    line-height: 45px;
    margin: 0 0 20px;
    padding: 0;

    @media screen and (max-width: 768px) {
        font-size: 16px;
        line-height: 23px;
        text-align: center;
    }
}

.large-text-venture {
    font-size: 22px;
    line-height: 33px;
    font-weight: normal;
    margin: 5px 0;
    padding: 0;


    @media screen and (max-width: 768px) {
        font-size: 14px;
        line-height: 21px;
    }
}

.card {
    border-radius: 36px;
    background-color: var(--color-container);
    padding: 10px 26px;


    @media screen and (max-width: 600px) {
        border-radius: 20px;
        padding: 10px 10px;
    }
}

.section-invest {
    display: flex;
    flex-direction: column;
    gap: 26px;

    @media screen and (max-width: 768px) {
        gap: 8px;
    }
}

.card-invest {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    padding: 0;

    @media screen and (max-width: 600px) {
        padding: 0;
    }
}

.even-card {
    @media screen and (max-width: 768px) {
        justify-content: flex-end;

    }
}

.title-invest {
    font-size: 37px;
    line-height: 54px;
    margin: 0;
    padding: 0;

    @media screen and (max-width: 1200px) {
        font-size: 22px;
        line-height: 24px;
    }

    @media screen and (max-width: 768px) {
        font-size: 14px;
        line-height: 16px;
    }
}

.large-text-invest {
    font-size: 22px;
    line-height: 26px;
    font-weight: normal;
    margin: 0;
    padding: 0;

    @media screen and (max-width: 992px) {
        font-size: 10px;
        line-height: 12px;
    }
}

.nav-link-invest {
    z-index: 1;
    display: flex;
    gap: 86px;
    justify-content: space-between;
    align-items: center;
    width: fit-content;
    max-width: 60%;

    @media screen and (max-width: 992px) {
        max-width: 100%;
        gap: 10px;
        margin-right: 10px;
        font-size: 11px;
        line-height: 12px;
    }
}

.card-invest-right-img {
    border-radius: 0 36px 36px 0;
    display: block;
    height: 390px;
    width: 500px;
    object-fit: fill;
    z-index: 0;

    @media screen and (max-width: 1200px) {
        /* max-height: 100%; */
    }

    @media screen and (max-width: 768px) {
        position: absolute;
        right: 0;
        height: 197px;
        width: 220px;
        border-radius: 0 20px 20px 0;

    }
}

.card-invest-left-img {
    border-radius: 36px 0 0 36px;
    display: block;
    max-height: 390px;
    width: 500px;
    object-fit: fill;

    @media screen and (max-width: 1200px) {
        /* max-height: 100%; */
    }

    @media screen and (max-width: 768px) {
        border-radius: 20px 0 0 20px;
        position: absolute;
        left: 0;
        height: 197px;
        width: 220px;

    }
}

.card-invest-left-text {
    min-height: 350px;
    display: flex;
    width: 50%;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0 10px 20px;
    z-index: 10;

    @media screen and (max-width: 768px) {
        min-height: 177px;
    }
}

.card-invest-right-text {
    min-height: 350px;
    display: flex;
    width: 50%;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 20px 10px 0;
    z-index: 10;

    @media screen and (max-width: 768px) {
        min-height: 167px;
        width: 45%;
    }
}

.section-caption {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    margin: 20px auto;
    width: 100%;

    @media screen and (max-width: 768px) {
        justify-content: center;

    }
}

.caption-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 0 20px;
    border-radius: 36px;
    background-color: var(--color-container);
    width: 432px;
    min-height: 360px;

    @media screen and (max-width: 470px) {
        width: calc(100vw - 20px);
    }

    @media screen and (max-width: 390px) {
        width: 331px;
    }
}

.caption-title {
    font-size: 20px;
    line-height: 27px;
    padding: 0 20px;
    margin: 0;
}

.caption-text {
    font-size: 16px;
    line-height: 20px;
    padding: 0 0 0 20px;
}

.caption-img {
    display: block;
    height: 219px;
    width: 432px;
    object-fit: fill;
    border-radius: 36px;

    @media screen and (max-width: 470px) {
        width: calc(100vw - 20px);
    }

    @media screen and (max-width: 390px) {
        width: 331px;
        height: 200px;
    }
}

.section-howto {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    margin: 20px auto;
    width: 100%;

    @media screen and (max-width: 768px) {
        justify-content: center;

    }
}

.howto-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    border-radius: 36px;
    background-color: var(--color-container);
    width: 432px;
    min-height: 370px;

    @media screen and (max-width: 470px) {
        width: calc(100vw - 20px);
        min-height: 275px;
    }

    @media screen and (max-width: 390px) {
        width: 331px;
    }
}

.howto-block:last-child {
    width: 100%;
    min-height: 200px;
    flex-direction: row;

    @media screen and (max-width: 1442px) {
        width: 870px;
    }

    @media screen and (max-width: 1000px) {
        width: 432px;
        flex-direction: column;
    }
}

.howto-text-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.howto-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.18);
    padding: 14.5px 10px;
    border-radius: 38px;
}

.howto-nav-vertical {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 50px;
    background-color: rgba(255, 255, 255, 0.18);
    padding: 10px 14.5px;
    border-radius: 38px;
    height: 100%;
    min-height: 180px;

    @media screen and (max-width: 1442px) {
        min-height: 230px;

    }
}

.howto-title {
    font-size: 20px;
    line-height: 27px;
    padding: 0;
    margin: 0;
}

.howto-text {
    font-size: 16px;
    line-height: 20px;
    padding: 0;
    font-weight: normal;
}

.circle-negative {
    background-color: var(--color-base);
    color: var(--color-content);
    opacity: 1;
}

.circle-shadow {
    box-shadow: 0px 0px 30px 0px rgba(18, 246, 255, 1);
}

/* footer */
.footer {
    background-color: var(--color-container);
    color: var(--color-content);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
    padding: 50px 150px 50px;
    max-width: var(--breakpoint-huge);

    @media screen and (max-width: 768px) {
        background-color: var(--color-container);
        padding: 50px 10px;
        gap: 30px;
        flex-direction: column-reverse;
        justify-content: center;
        align-self: center;
        gap: 40px;
    }
}

.footer-block {
    display: flex;
    flex-direction: column;
    gap: 40px;

    @media screen and (max-width: 768px) {
        width: 100%;
        justify-content: center;
        flex-direction: column-reverse;
    }
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;

    @media screen and (max-width: 768px) {
        justify-content: center;
        align-items: center;
    }
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;

    @media screen and (max-width: 768px) {
        justify-content: center;
        align-items: center;
    }
}

.footer-bottom {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
    font-size: 15px;

    @media screen and (max-width: 768px) {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }
}

.footer-social {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;

}

/* common styles */

.center {
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.desktop {
    @media screen and (max-width: 768px) {
        display: none;
    }
}

.mobile {
    @media screen and (min-width: 769px) {
        display: none;
    }
}

.desktop-howto {
    @media screen and (max-width: 1000px) {
        display: none;
    }
}

.mobile-howto {
    @media screen and (min-width: 1001px) {
        display: none;
    }
}