@font-face {
    font-family: Max Sans;
    font-weight: 400;
    font-display: block;
    src:
            url('static/fonts/MaxSans-Light.woff2') format('woff2'),
            url('static/fonts/MaxSans-Light.woff') format('woff');
}

@font-face {
    font-family: Max Sans;
    font-weight: 500;
    font-display: block;
    src:
            url('static/fonts/MaxSans-Regular.woff2') format('woff2'),
            url('static/fonts/MaxSans-Regular.woff') format('woff');
}

@font-face {
    font-family: Max Sans;
    font-weight: 600;
    font-display: block;
    src:
            url('static/fonts/MaxSans-Medium.woff2') format('woff2'),
            url('static/fonts/MaxSans-Medium.woff') format('woff');
}


html {
    line-height: 1;
    -webkit-text-size-adjust: 100%;
}

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

body {
    margin: 0;
    background-color: #0D0D0D;
    color: white;
    box-sizing: border-box;
    font-family: Max Sans, TT Commons, sans-serif;
}

.main {
    min-height: 99vh;
    overflow: hidden;
    padding-top: 32px;
}

.wrapper {
    margin: 0 auto;
    max-width: 1260px;
}

.wrapper_content {
    /* 92px = 32px + 60px */
    padding-left: 92px;
    padding-right: 92px;
}

.wrapper_footer {
    /* 76px = 32px + 44px */
    padding-left: 76px;
    padding-right: 76px;
}

.section_top_line {
    position: relative;
}

.section_top_line::after {
    content: "";
    background: linear-gradient(90deg, #c4c4c400, #c4c4c455 70%, #c4c4c400);
    position: absolute;
    top: 0;
    height: 1px;
    width: 70%;
}

.section_top_line_left::after {
    left: 0;
}

.section_top_line_right::after {
    right: 0;
}

.section_background_blur {
    position: relative;
    z-index: 1;
}

.section_background_blur::before {
    content: '';
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    position: absolute;
    z-index: -1;
}

.header {
    position: fixed;
    left: 40px;
    right: 40px;
    z-index: 2;
    max-width: 1260px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    border-radius: 32px;
    background-color: rgba(40, 29, 57, 0.8);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow:
            0 40px 25px 0 rgba(0, 0, 0, 0.05),
            0 5px 10px 0 rgba(0, 0, 0, 0.1);
}

.header_top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    height: 88px;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    gap: 29px;
    font-family: 'Max Sans', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 140%;
    letter-spacing: 0;
    text-align: right;
    vertical-align: middle;
}

.logo {
    color: #ffffff;
}

.logo_link {
    display: flex;
    height: 42px;
    justify-content: flex-start;
    gap: 14px;
}

.beta {
    height: 97%;
}

.spacer {
    height: 88px;
    width: 100%;
}

.menu {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.burger {
    display: none;
}

.link {
    color: #B5B5B5;
    text-decoration: none;
}

.link:hover {
    color: #fff;
    cursor: pointer;
}

.link_active {
    color: #fff;
}

.action {
    display: flex;
    justify-content: flex-end;
}

.download_link {
    text-decoration: none;
    -webkit-background-clip: text;
    color: transparent;
    --gradient-point: 0.34;
    background-clip: text;
    background-image: linear-gradient(96.2deg, #5A8CFF 0%, #43D6FF calc(100% * var(--gradient-point)), #8F3FFF 99.6%);
    transition: all 0.2ms ease-in;
}

/* Первый блок */
.hero_block {
    color: #ffffff;
}

.hero_block_wrapper {
    display: grid;
    gap: 24px;
    grid-template-columns: auto 36%;
}

.hero_block_text {
    display: flex;
    flex-direction: column;
    padding: 80px 0 90px;
}

.main_header {
    font-size: 72px;
    margin: 0;
    font-weight: 500;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.accent_header {
    text-decoration: none;
    -webkit-background-clip: text;
    color: transparent;
    background-clip: text;
    background-image: linear-gradient(89.93deg, #5A8CFF -16.1%, #43D6FF 16.36%, #8F3FFF 76.63%);
    font-weight: 500;
    font-size: 72px;
    margin: 0;
    max-width: 450px;
}

.main_subheader {
    font-size: 28px;
    line-height: 130%;
    letter-spacing: 0;
    vertical-align: bottom;
    color: #C3C3C3;
    margin: 32px 0 0;
}

.main_buttons {
   display: flex;
    gap: 16px;
    margin-top: 64px;
}

.buttons {
    margin-top: 24px;
}

/* action_button */
.action_button {
    align-items: center;
    border: none;
    border-radius: 20px;
    box-sizing: border-box;
    color: #FFFFFF;
    display: flex;
    font-size: 24px;
    font-weight: 500;
    gap: 8px;
    height: 64px;
    justify-content: center;
    letter-spacing: 0;
    line-height: 140%;
    overflow: hidden;
    padding: 0 24px;
    position: relative;
    text-align: center;
    text-decoration: none;
    z-index: 1;
}

.action_button::before {
    content: '';
    left: 0;
    top: 0;
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.action_button:hover::before {
    opacity: 1;
}

.action_button_primary {
    background-image: linear-gradient(135deg, #161F8A 0%, #2D085F 100%);
}

.action_button_primary::before {
    background-image: linear-gradient(97.21deg, #01C5C8 0.32%, #046EF4 44.6%, #572DFF 62.16%);
}

.action_button_hero {
    min-width: 220px;
}

.action_button_secondary {
    background-image: linear-gradient(135deg, rgba(67, 67, 67, 0.8) 0%, rgba(67, 67, 67, 0.2) 100%);
    z-index: 1;
}

.action_button_secondary::before {
    background-image: linear-gradient(97.21deg, #01C5C8 0.32%, #046EF4 44.6%, #572DFF 62.16%);
}

/* Фон для картинок градиент  */
.circle_block_right {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.circle_block_left {
    position: absolute;
}

.circle {
    position: absolute;
    border-radius: 50%;
    width: 300px;
    height: 300px;
}

.circle1 {
    background:#AA4CFF;
    left: 154px;
}

.circle2 {
    background:#3838FF;
    left: 300px;
    top: 150px;
}

.circle3 {
    background:#3A89FB;
    left: 150px;
    top: 300px;
}

.circle4 {
    background:#630EFF;
    top: 150px;
}

.circle_blur {
    position: relative;
    opacity: 70%;
    -webkit-filter: blur(200px);
    filter: blur(200px);
    width: 500px;
    height: 500px;
}

.hero_block_img {
    position: relative;
    padding-top: 80px;
}

/* block */
.block_webapps + .block,
.block_webapps + .business,
.block_webapps + .download {
    margin-top: -100px;
}

.block_channels + .block,
.block_channels + .business,
.block_channels + .download {
    margin-top: -80px;
}

.block_wrapper {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr 1fr;
    padding-top: 80px;
    padding-bottom: 80px;
}

.graphics {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.graphics_content {
    margin: 0 auto;
    z-index: 1;
    max-width: 322px;
}

.block_webapps .graphics_content {
    position: relative;
    top: 100px;
}

.block_channels .graphics_content {
    position: relative;
    top: 80px;
}

.graphics_image {
    height: auto;
    width: 100%;
}

.graphics_image_chatbots {
    position: relative;
}

.graphics_image_chatbots {
    display: block;
    left: -30%;
    max-width: 134%;
    width: 134%;
}

.graphics_image_channels {
    position: relative;
    left: -25%;
    max-width: 145%;
    width: 145%;
}

.text {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    z-index: 1;
    gap: 24px;
}

.block_header {
    font-weight: 500;
    font-size: 56px;
    line-height: 100%;
    vertical-align: bottom;
    color: #FFFFFF;
    margin: 0;
}

.block_header .mobile {
    display: none;
}
.block_header .notifications {
    display: flex;
}

.block_subheader {
    font-weight: 400;
    font-size: 24px;
    line-height: 140%;
    color: #C3C3C3;
    margin: 0;
}

.circle_block_first {
    position: absolute;
    left: 40%;
    top: 75%;
    transform: translate(-50%, -50%);
}

.hero_graphics_wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: absolute;
    right: 0;
    min-width: 230px;
    z-index: 0;
    transition: transform 0.3s;
    transform: translateY(0);
}

.phone {
    z-index: 1;
}

.video {
    position: absolute;
    width: 96%;
    height: 98%;
    top: 5px;
    border-radius: 8%;
}

.download_wrapper {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding-top: 96px;
}

.download_buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.business_wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 96px;
}

.buttons_block {
    display: flex;
    flex-direction: row;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 800px;
}

.footer_wrapper {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, 1fr);
    justify-content: space-between;
    padding-top: 160px;
    padding-bottom: 40px;
}

.footer_block {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer_block a:hover {
    color: #FFFFFF;
}

.footer_block_logo {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #9A9A9A;
    padding-bottom: 1px;
}

.footer_block_logo img {
    max-width: 94px;
}

.footer_link {
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    text-decoration: none;
    color: #B5B5B5;
    transition: margin-left 0.3s ease;
}

.footer_link:hover {
    color: #fff;
}

.qrButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 64px;
    aspect-ratio: 1;

    position: relative;
    cursor: crosshair;
    z-index: 1;
}


.qrButton::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;

    height: 64px;
    width: 64px;

    background: linear-gradient(
            135deg,
            #161f8a 0%,
            #2d085f 100%
    );
    border-radius: 20px;

    transition:
            width 200ms ease,
            height 200ms ease;

    z-index: -1;
}

.qrButton:hover::after {
    width: 240px;
    height: 240px;

    background: linear-gradient(
            97deg,
            #01c5c8 0.32%,
            #046ef4 44.6%,
            #572dff 62.16%
    );
}

.icon {
    position: absolute;
    bottom: 0;
    left: 0;

    display: flex;

    padding: 12px;

    height: 64px;
    width: 64px;

    opacity: 1;

    transition:
            opacity 200ms ease,
            transform 200ms ease,
            filter 200ms ease;
}

.qrButton:hover .icon {
    opacity: 0;

    transform: scaleX(0);
    -webkit-filter: blur(20px);
    filter: blur(20px);
}

.qr {
    position: absolute;
    bottom: 0;
    left: 0;

    padding: 12px;

    transition:
            opacity 300ms ease,
            width 200ms ease,
            height 200ms ease,
            filter 200ms ease;

    height: 64px;
    width: 64px;
    opacity: 0;
    -webkit-filter: blur(20px);

    filter: blur(20px);

    z-index: 3;
}

.qrButton:hover .qr {
    width: 240px;
    height: 240px;
    display: block;
    opacity: 1;
    -webkit-filter: blur(0);
    filter: blur(0);
}

.img_qr {
    width: 0;
    transition:
            opacity 200ms ease,
            transform 200ms ease,
            filter 200ms ease;
}

.qrButton:hover .img_qr {
    width: 100%;
}

.burger_menu {
    display: none;
}

img {
    max-width: 100%;
}

@media (max-width: 1160px) {
    .wrapper_content {
        /* 64px = 32px + 32px */
        padding-left: 64px;
        padding-right: 64px;
    }

    .circle_block_first {
        left: 40%;
    }

    .videoElementWrapper {
        max-width: 222px;
    }

    .text {
        width: 100%;
    }
}

@media (max-width: 1060px) {
    .wrapper_content {
        /* 48px = 32px + 16px */
        padding-left: 48px;
        padding-right: 48px;
    }

    .menu {
        display: none;
    }

    .spacer {
        height: 64px;
    }

    .logo_link {
        height: 32px;
    }

    .main_subheader {
        font-size: 20px;
        margin-top: 24px;
    }

    .main_buttons {
        gap: 8px;
        margin-top: 32px;
    }

    .beta img {
        height: 105%;
    }

    .header_top {
        height: 64px;
        padding: 0 16px;
        grid-template-columns: 1fr 1fr;
    }

    .header {
        left: 16px;
        right: 16px;
        border-radius: 24px;
    }

    .header.opened {
        height: calc(100vh - 64px);
        max-height: 640px;

        touch-action: none;
    }

    .action {
        display: none;
    }

    .burger {
        display: flex;
        justify-content: flex-end;
        border: none;
        outline: none;
        background: transparent;
        padding: 0 8px;
    }

    .burger_menu {
        display: none
    }

    .burger_menu.opened {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .nav {
        display: flex;
        flex-direction: column;
        gap: 32px;
        margin-top: 48px;

        padding: 16px;
        text-decoration: none;
    }

    .logo {
        height: 32px;
    }

    .nav a {
        text-decoration: none;
        font-weight: 500;
        font-size: 32px;
    }

    .mobileLink {
        color: #fff;
    }

    .mobileCopy {
        font-size: 16px;
        color: #fff;
        padding: 16px;
        margin-top: auto;
    }

    .main_header {
        font-size: 48px;
    }

    .accent_header {
        font-size: 48px;
    }

    .block_header {
        font-size: 40px;
    }

    .block_subheader {
        font-size: 16px;
    }

    .buttons_block {
        gap: 8px;
    }

    .graphics_content {
        max-width: 272px;
    }

    .graphics_image_chatbots {
        left: -23%;
        max-width: 130%;
        width: 130%;
    }

    .circle_blur {
        width: 400px;
        height: 400px;
    }
    .circle1 {
        left: 29px;
    }

    .circle2 {
        left: 50px;
        top: 25px;
    }

    .circle3 {
        left: 25px;
        top: 50px;
    }

    .circle4 {
        top: 25px;
    }

    .circle {
        width: 300px;
        height: 300px;
    }

    .circle_blur {
        -webkit-filter: blur(100px);
        filter: blur(100px);
    }

    .text {
        gap: 16px;
    }

    .buttons {
        margin-top: 16px;
    }

    .action_button {
        border-radius: 16px;
        font-size: 20px;
        height: 46px;
    }

    .action_button_hero {
        min-width: 0;
    }

    .qrButton {
       padding: 10px;
       height: 46px;
       width: 46px;
   }

   .qrButton::after {
       border-radius: 16px;
       padding: 10px;
       height: 46px;
       width: 46px;
   }

   .icon,
   .qr {
       height: 46px;
       width: 46px;
       padding: 7px;
   }

    .footer_wrapper {
        gap: 48px;
        grid-template-columns: 1fr repeat(2, minmax(auto, max-content));
        grid-template-rows: repeat(2, minmax(auto, max-content));
        justify-content: normal;
    }

    .footer_block_logo {
        grid-row: 1/-1;
    }
}

@media (max-width: 860px) {
    .circle_blur {
        width: 357px;
        height: 357px;
    }

    .action_button_primary.desktop {
        display: none;
    }
}

@media (max-width: 790px) {
    .logo {
        color: #ffffff;
        display: flex;
        justify-content: flex-start;
    }

    .logo_link {
        gap: 12px;
    }

    .demo {
        width: 98%;
    }

    .main {
        padding-top: 16px;
    }

    .wrapper_footer {
        /* 60px = 16px + 44px */
        padding-left: 60px;
        padding-right: 60px;
    }

    .wrapper_content {
        /* 16px = 16px + 0px */
        padding-left: 16px;
        padding-right: 16px;
    }

    .section_top_line::after {
        background: linear-gradient(90deg,#c4c4c400,#c4c4c4aa,#c4c4c400);
        width: 100%;
    }

    .header.opened {
        height: calc(100% - 32px);
        max-height: none;
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
    }

    .download_wrapper {
        gap: 28px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .main_header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .accent_header {
        width: 100%;
    }

    .main_subheader {
        margin-left: auto;
        margin-right: auto;
        max-width: 500px;
    }

    .action_button {
        min-width: 203px;
    }

    .main_buttons {
        display: none;
    }

    .nav a {
        font-size: 32px;
    }

    .hero_graphics_wrapper {
        max-width: 400px;
        left: 50%;
        width: 85%;
        translate: -50% 0;
    }

    .hero_block_wrapper {
        text-align: center;
        grid-template-columns: auto;
        grid-template-rows: auto 440px;
        gap: 21px;
    }

    .hero_block_text {
        padding: 40px 0 0;
    }

    .hero_block_img {
        padding: 0;
    }

    .circle_blur {
        width: 400px;
        height: 400px;
    }

    .block_wrapper {
        padding-top: 120px;
        padding-bottom: 30px;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 40px;
    }

    .block_webapps + .block,
    .block_webapps + .business,
    .block_webapps + .download {
        margin-top: -126px;
    }

    .block_channels + .block,
    .block_channels + .business,
    .block_channels + .download {
        margin-top: -100px;
    }

    .text {
        align-items: center;
        text-align: center;
        order: 1;
        max-width: 360px;
        margin: 0 auto;
    }

    .block_graphics {
        order: 2;
    }

    .graphics_content {
        max-width: 232px;
    }

    .block .graphics_content {
        top: 0;
    }

    .graphics_image_chatbots {
        display: block;
        left: -12%;
        max-width: 126%;
        width: 126%;
    }

    .block_header {
        font-size: 32px;
        text-align: center;
    }

    .buttons_block {
        flex-direction: column;
        align-items: center;
    }

    .business_wrapper {
        padding-left: 16px;
        padding-right: 16px;
    }

    .buttons_wrapper {
        min-height: 100px;
    }

    .footer_wrapper {
        flex-direction: column;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4,minmax(auto,max-content));
        padding-bottom: 168px;
    }

    .qrButton {
        display: none;
    }

    .buttons_block.fixed {
        position: fixed;
        bottom: 0;
        left: 0;
        display: flex;
        justify-content: center;
        -webkit-backdrop-filter: blur(33px);
        backdrop-filter: blur(33px);
        background: #0d0d0dcd;
        z-index: 1;
        gap: 8px;
        width: 100%;
        padding: 8px 16px;
        align-items: normal;
    }

    .buttons_block.fixed .action_button {
        width: 100%;
    }

    .buttons_block.fixed .action_button_primary::before {
        opacity: 1;
    }

    .footer_block_logo {
        gap: 16px;
        grid-row-start: 4;
    }

    .action_button_primary.android {
        display: none;
    }
    .action_button_primary.ios {
        display: none;
    }
    .action_button_primary.desktop {
        display: none;
    }

    .mobileLink.android {
        display: none;
    }
    .mobileLink.ios {
        display: none;
    }
    .mobileLink.desktop {
        display: none;
    }

}

@media (max-width: 420px) {
    .main_header {
        font-size: 40px;
    }

    .accent_header {
        font-size: 40px;
    }
}

@media (max-width: 340px) {
    .nav {
        gap: 16px;
        margin-top: 24px;
    }

    .nav a {
        font-size: 28px;
    }

    .block_header .mobile {
        display: flex;
    }
    .block_header .notifications {
        display: none;
    }
}

@media (max-width: 320px) {
    .block_header {
        font-size: 28px;
    }
}
