
/*
    Buttons
 */

.mainButton {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #3193FF 0%, #2E86E6 100%);
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    color: white;

    width: 304px;
    height: 44px;
    font-size: 14px;
    border-radius: 6px;

    @media (min-width: 640px) {
        width: 380px;
        height: 68px;
        font-size: 16.56px;
        border-radius: 10px;
    }
    @media (min-width: 800px) {
        width: 315px;
        height: 56px;
        font-size: 13.74px;
    }
    @media (min-width: 1400px) {
        width: 367px;
        height: 65px;
        font-size: 16px;
        border-radius: 12px;
    }
}
.mainButton__label {
    font-weight: 500;
}
.mainButton__subtext {
    font-size: 10px;
    @media (min-width: 640px) {
        font-size: 13px;
    }
}

.mainButton--pressed {
    background: linear-gradient(180deg, #006FE8 0%, #0263CD 100%);
}
.mainButton--disabled {
    background: linear-gradient(180deg, #E8E8E8 0%, #DBDBDB 100.29%);
    color: #565656;
    cursor: default;
}

/*
    Main header
 */

.mainHeader {
    min-width: 375px;
    padding-top: 27px;
    height: 558px;
    background-image: image-set(
        url("images/bondana-city-375.jpg") 1x,
        url("images/bondana-city-375@2x.jpg") 2x,
        url("images/bondana-city-375@3x.jpg") 3x
    );
    background-repeat: no-repeat;
    background-position: center 137px;

    @media (min-width: 640px) {
        padding-top: 44px;
        height: 778px;
        background-image: image-set(
            url("images/bondana-city-640.jpg") 1x,
            url("images/bondana-city-640@2x.jpg") 2x,
            url("images/bondana-city-640@3x.jpg") 3x
        );
        background-position: center 130px;
    }
    @media (min-width: 800px) {
        padding-top: 84px;
        height: 758px;
        background-image: image-set(
            url("images/bondana-city-800.jpg") 1x,
            url("images/bondana-city-800@2x.jpg") 2x,
            url("images/bondana-city-800@3x.jpg") 3x
        );
        background-position: center 22px;
    }
    @media (min-width: 1400px) {
        height: 788px;
        background-image: image-set(
            /* здесь не ошибка, попросили поменять на картинку для 800 */
            url("images/bondana-city-800.jpg") 1x,
            url("images/bondana-city-800@2x.jpg") 2x,
            url("images/bondana-city-800@3x.jpg") 3x
        );
        background-position: center 14px;
    }
    @media (min-width: 2000px) {
        height: 944px;
        background-image: image-set(
            url("images/bondana-city-2000.jpg") 1x,
            url("images/bondana-city-2000@2x.jpg") 2x,
            url("images/bondana-city-2000@3x.jpg") 3x
        );
        background-position: center 14px;

    }
}

.mainHeader_logoName {
    margin-left: 26px;
    display: flex;
    align-items: center;
    gap: 13px;

    @media (min-width: 640px) {
        margin-left: 44px;
        gap: 22px
    }
    @media (min-width: 800px) {
        margin-left: 74px;
    }
    @media (min-width: 1400px) {
        margin-left: 84px;
        gap: 28px;
    }
}

.mainHeader_logo {
    width: 47px;
    height: 47px;

    @media (min-width: 640px) {
        width: 80px;
        height: 80px;
    }
    @media (min-width: 1400px) {
        width: 101.5px;
        height: 101.5px;
    }
}
.mainHeader_brandName {
    height: 18.75px;

    @media (min-width: 640px) {
        height: 31.52px;
    }
    @media (min-width: 1400px) {
        height: 39.66px;
    }
}

.mainHeader_slogan {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 30.81px;
    line-height: 36px;
    letter-spacing: 0;
    width: 296px;

    margin-left: 26px;
    margin-top: 16px;

    @media (min-width: 640px) {
        margin-top: 33px;
        margin-left: 44px;
        font-size: 41px;
        line-height: 48px;
        width: 400px;
    }
    @media (min-width: 800px) {
        margin-top: 351px;
        margin-left: 74px;
    }
    @media (min-width: 1400px) {
        width: 505px;
        margin-top: 316px;
        margin-left: 84px;
        font-size: 48px;
        line-height: 61px;
    }
    @media (min-width: 2000px) {
        margin-top: 474px;
    }
}

.mainHeader_buttons {
    margin-top: 267px;
    margin-left: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    /*align-items: center;*/

    @media (min-width: 640px) {
        margin-top: 310px;
        margin-left: 44px;
        gap: 32px;
        align-items: start;
    }
    @media (min-width: 800px) {
        margin-top: 43px;
        margin-left: 74px;
        flex-direction: row;
        gap: 30px;
    }
    @media (min-width: 1400px) {
        margin-top: 50px;
        margin-left: 84px;
        gap: 36px;
    }
}

/*
    Stores
 */

.mainStores {
    display: none;
    position: relative;
    background: rgba(229, 247, 254, 1);
    padding: 22px 36px;

    --color: rgba(229, 247, 254, 1); /* цвет треугольника */
    --size: 15px;     /* размер треугольника */

    @media (min-width: 640px) {
        padding: 33px 43px 28px;
        --size: 30px;     /* размер треугольника */
    }
    @media (min-width: 800px) {
        padding: 33px 93px 42px;
        --size: 30px;     /* размер треугольника */
    }
    @media (min-width: 1400px) {
        padding: 38px 84px 42px;
    }
}
/* треугольник сверху, направленный вверх */
.mainStores::before {
    content: "";
    position: absolute;
    transform: translateX(-50%);
    bottom: 100%; /* располагаем над элементом */
    width: 0;
    height: 0;

    border-left: var(--size) solid transparent;
    border-right: var(--size) solid transparent;
    border-bottom: var(--size) solid var(--color); /* треугольник вершиной вверх */

    left: 180px;

    @media (min-width: 640px) {
        left: 236px;
    }
    @media (min-width: 800px) {
        left: 580px;
    }
    @media (min-width: 1400px) {
        left: 674px;
    }
}
.mainStores--opened {
    display: block;
}
.mainStores_list {
    display: flex;
    gap: 32px;
    margin-bottom: 15px;
    flex-wrap: wrap;

    @media (min-width: 640px) {
        gap: 46px;
        margin-bottom: 25px;
    }
    @media (min-width: 800px) {
        gap: 83px;
        margin-bottom: 42px;
    }
    @media (min-width: 1400px) {
        gap: 120px;
        margin-bottom: 37px;
    }
    @media (min-width: 2000px) {
        gap: 201px;
    }
}
.mainStore {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.mainStore_qr {
    width: 180px;
}

.mainStores_text,
.mainStores_shortText {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 14px;
    letter-spacing: 0;
    color: rgba(107, 107, 107, 1);

    @media (min-width: 640px) {
        font-size: 16px;
        line-height: 19px;
    }
}

/*
    Capabilites
 */

.capabilities {
    background: rgba(249, 249, 249, 1);

}
.capabilities_content {
    height: 257px;
    padding: 27px 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 12px;
    row-gap: 32px;

    @media (min-width: 640px) {
        gap: 0;
        height: 212px;
        padding: 0 22px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    @media (min-width: 800px) {
        height: 248px;
        padding: 0 44px;
    }
    @media (min-width: 1400px) {
        height: 309px;
        padding: 0 91px;
    }
    @media (min-width: 2000px) {
        padding: 0 331px;
    }
}

.capability {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;

    @media (min-width: 640px) {
        max-width: 115px;
        gap: 16px
    }
    @media (min-width: 800px) {
        max-width: 135px;
        gap: 19px;
    }
    @media (min-width: 1400px) {
        max-width: 169px;
        gap: 24px;
    }
}
@media (max-width: 639px) {
    .capability:nth-child(1) {
        max-width: 138px
    }
    .capability:nth-child(2) {
        max-width: 106px
    }
    .capability:nth-child(3) {
        max-width: 91px
    }
    .capability:nth-child(4) {
        max-width: 117px
    }
    .capability:nth-child(5) {
        max-width: 82px
    }
}

.capability_image {
    width: 43px;
    height: 43px;

    @media (min-width: 640px) {
        width: 49px;
        height: 49px;
    }
    @media (min-width: 800px) {
        width: 57px;
        height: 57px;
    }
    @media (min-width: 1400px) {
        width: 72px;
        height: 72px
    }
}

.capability_text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 14px;
    letter-spacing: 0;
    text-align: center;

    @media (min-width: 640px) {
        font-size: 9.59px;
        line-height: 11px;
    }
    @media (min-width: 800px) {
        font-size: 11.22px;
        line-height: 13px;
    }
    @media (min-width: 1400px) {
        font-size: 14px;
        line-height: 16px;
    }
}

/*
    Screens mosaic
 */

.screensMosaic {
    min-width: 375px;
    margin-top: 11px;
    display: flex;
    justify-content: center;

    @media (min-width: 640px) {
        margin-top: 54px;
    }
    @media (min-width: 800px) {
        margin-top: 87px;
    }
    @media (min-width: 1400px) {
        margin-top: 65px;
    }
    @media (min-width: 2000px) {
        margin-top: 107px;
    }
}

/*
    Promo
 */

.promo {
    background-color: rgba(249, 249, 249, 1);

    padding: 21px 0;

    @media (min-width: 640px) {
        padding-top: 45px;
        padding-bottom: 53px;
    }

    @media (min-width: 800px) {
        padding-top: 51px;
        padding-bottom: 51px;
    }
    @media (min-width: 1400px) {
        padding-top: 52px;
        padding-bottom: 52px;
    }
}
.promo_content {
    padding: 0 23px;
    display: flex;
    justify-content: space-around;
    row-gap: 12px;
    column-gap: 18px;
    flex-wrap: wrap;

    @media (min-width: 640px) {
        padding: 0 54px;
        row-gap: 19px;
        column-gap: 48px;
    }
    @media (min-width: 800px) {
        padding: 0 44px;
        flex-wrap: nowrap;
        column-gap: 18.69px;
    }
    @media (min-width: 1400px) {
        padding: 0 94px;
        column-gap: 31.4px;
    }
    @media (min-width: 2000px) {
        padding: 0 312px;
        column-gap: 89px;
    }
}

.promo_item {
    display: flex;
    position: relative;
    opacity: 0.7;
    width: 152px;
    border-radius: 8px;
    overflow: hidden;

    @media (min-width: 640px) {
        width: 241px;
    }
    @media (min-width: 800px) {
        width: 168px;
    }
    @media (min-width: 1400px) {
        width: 282px;
    }
}
.promo_item:hover {
    opacity: 1;
}

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

.promoBackground {
    display: flex;
    opacity: 0;
    transition: all 200ms ease-out;
    cursor: pointer;
    position: absolute;
    flex: 1 1;
    width: 100%;
    height: 100%;
}

.promo_item:hover .promoBackground {
    opacity: 1;
}

.promoBackground_play {
    display: flex;
    flex: 1 1;
    position: absolute;
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.promoBackgroundPlay_icon {
    width: 45px;
    height: 45px;
    position: absolute;
    background: url('./icons/playButton.svg') no-repeat center center;
}

.promoBackground_title {
    position: absolute;
    bottom: 0;
    color: #FFF;
    font-family: 'SF Pro Text', sans-serif;;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    padding: 6px 10px;
}

.promoBackground_gradient {
    height: 50%;
    width: 100%;
    position: absolute;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0, 0.5), transparent 100%)
}

.promo_item:last-child {
    margin-right: 0;
}


/* Player modal window */

.playerModal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
}

.playerModal.__opened {
    display: flex;
}

/* Modal Content */
.playerModal_content {
    background-color: #fefefe;
    border: 1px solid #888;
    width: 74%;
    box-sizing: border-box;
    max-width: 1200px;

    position: absolute;
    height: 627px;
    top: calc(50% - 313px);
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}

/* The Close Button */
.playerModal_close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.playerModal_close:hover,
.playerModal_close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
