@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-Variable/Rubik-Variable.woff2') format('woff2');
    font-weight: 100 1000;
    font-optical-sizing: auto;
    font-stretch: 0% 200%;
    font-style: normal;
    font-display: swap;
}

/* Офисы и банкоматы | Мобильные приложения общий контейнер начало */

.offices-and-mobile-container-wrapper * {
    box-sizing: border-box;
}

.offices-and-mobile-container-wrapper {
    /* семейства шрифтов начало */
    --font-family-rubik: "Rubik";
    /* семейства шрифтов конец */

    /* цвета начало */

    /* цвета шрифтов начало */
    --font-color-black: #000000;
    --font-color-gray-1: #2f2f2f;
    --font-color-blue-5: #00b0ff;
    --font-color-blue-6: #09a0dd;
    --font-color-blue-8: #0ea2df;
    /* цвета шрифтов конец */

    /* цвета фонов начало */
    --background-color-white: #ffffff;
    --background-color-blue-2: #b5e2fd;
    /* цвета фонов конец */

    /* цвета конец */

    --offices-and-mobile-container-max-width: 1350px;

    font-family: var(--font-family-rubik);
    font-weight: 300;
    line-height: 1.65;

    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;

    margin-bottom: 37px;
}

/* ! Офисы и банкоматы | Мобильные приложения начало */

.offices-and-mobile-container {
    max-width: var(--offices-and-mobile-container-max-width);
    margin: 0 auto;
    display: grid;

    justify-content: center;
    padding: 1rem;

    grid-column-gap: 131px;

    grid-template-columns: 586px 375px;
    grid-template-areas: "offices__cell mobile__cell";


    padding: 1rem 111px 0 111px;
    margin-bottom: 47.55px;
}

/* Офисы и банкоматы начало */

.offices__cell {
    grid-area: offices__cell;
    max-width: 586px;
    width: 100%;
    justify-self: right;
}

.offices__cell__offices-link {
    position: relative;
    display: flex;
    justify-content: right;
}

.offices__cell__bankomats-link {
    position: relative;
    display: flex;
    justify-content: right;
}

.offices__cell__offices-legend {
    position: absolute;
    top: 24px;
    right: 13px;
    max-width: 276px;
    width: 100%;
    font-family: var(--font-family-rubik);
    font-weight: 300;
    color: var(--font-color-black);
    transition: 0.3s linear all;
    z-index: 100;
}

.offices__cell__offices-caption {
    font-weight: 400;
    font-size: 30px;
    line-height: 36px;
    color: var(--font-color-blue-8);
    margin-bottom: 10px;
}

.offices__cell__offices-description {
    font-weight: 300;
    font-size: 15px;
    line-height: 18px;
}

.offices__cell__bankomats-legend {
    bottom: 42px;
    left: 13px;
    max-width: 221px;
    width: 100%;
    position: absolute;
    color: var(--font-color-black);
    font-family: var(--font-family-rubik);
    font-weight: 300;
    transition: 0.3s linear all;
    z-index: 100;
}

.offices__cell__bankomats-caption {
    font-weight: 400;
    font-size: 30px;
    line-height: 36px;
    color: var(--font-color-blue-8);
    margin-bottom: 8.93px;
}

.offices__cell__bankomats-description {
    font-weight: 300;
    font-size: 15px;
    line-height: 18px;
}

.offices__logo-offices {
    max-width: 586px;    
    width: 100%;    
    margin-bottom: 24.92px;
    transition: 0.3s linear all;
    object-fit: contain;
    text-align: right;
}

.offices__logo-bankomats {
    max-width: 586px;
    width: 100%;    
    transition: 0.3s ease-out all;
    object-fit: contain;
}

.offices__cell__offices-legend:hover~.offices__logo-offices {
    transform: scale(1.115) !important;
}

.offices__cell__bankomats-legend:hover~.offices__logo-bankomats {
    transform: scale(1.115) !important;
}

/* Офисы и банкоматы конец */

/* Мобильные приложения начало */

.mobile__cell {
    grid-area: mobile__cell;
    max-width: 375px;
    width: 100%;    
}

.mobile__cell__container {
    max-height: 545px;
    height: 100%;
}

.mobile__cell__title {
    font-family: var(--font-family-rubik);
    font-weight: 300;
    font-size: 35px;
    margin-bottom: 8px;
}

.mobile__cell__logo {
    max-width: 250px;
    width: 100%;
    margin: 0 auto;
}

.mobile__cell__logo img {
    width: 100%;
    object-fit: contain;
}

.mobile__cell__title--blue {
    color: var(--font-color-blue-5);
}

.mobile__cell__apps {
    display: flex;
    flex-direction: column;
    background-color: var(--background-color-white);
}

.apps__item {
    --padding-left-after-logo: 111px;
    display: flex;
    justify-content: left;
    align-items: center;
    max-width: 375px;
    width: 100%;
    max-height: 65px;
    min-height: 65px;
    height: 100%;
    border-radius: 10px;
    color: var(--font-color-gray-1);
    font-family: var(--font-family-rubik);
    font-weight: 300;
    font-size: 20px;
    line-height: 24px;
    text-decoration: none;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: 0.3s ease-out all;
    margin-bottom: 10px;
    padding-left: var(--padding-left-after-logo);
}

.apps__item:nth-last-child(1) {
    margin-bottom: 0;
}

.apps__item-android {
    background-size: 62px auto;
    background-image: url("../images/android-blue-icon.svg");
    background-position: 18px center;
    background-repeat: no-repeat;
}

.apps__item-ios {
    background-size: 59px auto;
    background-image: url("../images/appstore-blue-icon.svg");
    background-position: 18px center;
    background-repeat: no-repeat;
}

.apps__item-appgallery {
    background-size: 60px auto;
    background-image: url("../images/huawei-app-gallery-blue-icon.svg");
    background-position: 18px center;
    background-repeat: no-repeat;
}

.apps__item-arrow {
    position: relative;
}

.apps__item-arrow::after {
    position: absolute;
    content: '';
    width: 221px;
    height: 201px;
    background-size: 221px auto;
    background-image: url("../images/arrow.png");
    background-position: auto;
    background-repeat: no-repeat;
    top: 10%;
    left: -110px;
    z-index: -100;
}

/* Мобильные приложения конец */

/* ! Офисы и банкоматы | Мобильные приложения конец */

/* Мобильные приложения большой заголовок начало */

.mobile-container {
    max-width: var(--offices-and-mobile-container-max-width);
    display: block;
    margin: 0 auto;
    padding: 0 56px 0 56px;
}

.mobile-container__title {
    font-family: var(--font-family-rubik);
    font-weight: 300;
    font-size: 40px;
}

.mobile-container__title--blue {
    color: var(--font-color-blue-6);
}

/* Мобильные приложения большой заголовок конец */

/* Офисы и банкоматы | Мобильные приложения общий контейнер конец */

@media screen and (max-width: 1200px) {
    .offices-and-mobile-container {
        grid-column-gap: 60px;
    }

    .apps__item-arrow::after {
        left: -50px;
    }
}

@media screen and (max-width: 1120px) {
    .offices-and-mobile-container {
        grid-column-gap: 30px;
    }

    .apps__item-arrow::after {
        left: 0px;
    }

    .offices__cell__offices-legend:hover~.offices__logo-offices {
        transform: scale(1.02) !important;
    }

    .offices__cell__bankomats-legend:hover~.offices__logo-bankomats {
        transform: scale(1.02) !important;
    }
}

@media screen and (max-width: 1024px) {
    .offices-and-mobile-container {
        grid-template-columns: 500px 375px;
    }

    .apps__item-arrow::after {
        top: -40px;
        left: 150px;
    }

    .offices__cell__offices-legend {
        top: -10px;
    }
}

@media screen and (max-width: 930px) {
    .offices-and-mobile-container {
        grid-template-columns: minmax(586px, 1fr);
        grid-template-areas:
            "offices__cell"
            "mobile__cell";
        grid-column-gap: 30px;
        grid-row-gap: 30px;
        margin-bottom: 60px;
    }

    .apps__item-arrow::after {
        background-size: 130px auto;
        top: 0px;
    }

    .offices__cell {
        justify-self: center;
    }

    .mobile__cell {
        justify-self: center;
    }

    .mobile-container {
        padding: 0 30px 0 30px;
    }

    .mobile-container__title {
        font-size: 30px;
    }

    .offices__cell__offices-legend {
        top: 24px;
    }
}

@media screen and (max-width: 610px) {
    .offices-and-mobile-container {
        grid-template-columns: minmax(486px, 1fr);
    }

    .offices__cell__offices-legend {
        top: -10px;
        right: 10px;
    }

    .offices__cell__bankomats-legend {
        bottom: 16px;
        left: 10px;
    }

    .offices__cell__offices-legend:hover~.offices__logo-offices {
        transform: none !important;
    }

    .offices__cell__bankomats-legend:hover~.offices__logo-bankomats {
        transform: none !important;
    }
}

@media screen and (max-width: 520px) {
    .offices-and-mobile-container {
        grid-template-columns: minmax(430px, 1fr);
    }

    .offices__cell__offices-legend {
        right: -16px;
    }

    .offices__cell__offices-caption {
        font-size: 25px;
        line-height: 28px;
        margin-bottom: 6px;
    }

    .offices__cell__offices-description {
        font-size: 14px;
        line-height: 16px;
    }

    .offices__cell__bankomats-legend {
        bottom: 16px;
        left: 16px;
    }

    .offices__cell__bankomats-caption {
        font-size: 25px;
        line-height: 28px;
        margin-bottom: 6px;
    }

    .offices__cell__bankomats-description {
        font-size: 14px;
        line-height: 16px;
    }
}

@media screen and (max-width: 440px) {
    .offices-and-mobile-container {
        grid-template-columns: minmax(400px, 1fr);
    }

    .mobile__cell__title {
        font-size: 25px;
        padding: 0 1rem 0 2rem;
    }

    .mobile-container__title {
        font-size: 25px;
    }

    .offices__cell__offices-legend {
        background-color: #00000099;
        border-top-right-radius: 20px;
        padding: 5px 5px 10px 10px;
        top: 0;
        right: 2px;
    }

    .offices__cell__offices-caption {
        color: var(--background-color-blue-2);
    }

    .offices__cell__offices-description {
        color: var(--background-color-white);
    }

    .offices__cell__bankomats-legend {
        background-color: #00000099;
        border-bottom-left-radius: 20px;
        padding: 5px 5px 10px 10px;
        left: 2px;
        bottom: 2px;
    }

    .offices__cell__bankomats-caption {
        color: var(--background-color-blue-2);
    }

    .offices__cell__bankomats-description {
        color: var(--background-color-white);
    }
}

@media screen and (max-width: 420px) {
    .offices-and-mobile-container {
        grid-template-columns: minmax(375px, 1fr);
    }
}

@media screen and (max-width: 400px) {
    .apps__item-arrow::after {
        background-size: 130px auto;
        top: 0px;
        left: 0;
        transform: scale(-1, 1);
    }
}

@media screen and (max-width: 390px) {
    .offices-and-mobile-container {
        grid-template-columns: minmax(350px, 1fr);
    }
}

@media screen and (max-width: 360px) {
    .offices-and-mobile-container {
        grid-template-columns: minmax(320px, 1fr);
    }

    .mobile__cell__title {
        font-size: 20px;
        padding: 0 1rem 0 2rem;
    }

    .mobile-container__title {
        font-size: 20px;
    }
}

@media screen and (max-width: 340px) {
    .offices-and-mobile-container {
        grid-template-columns: minmax(300px, 1fr);
    }
}

@media screen and (max-width: 315px) {
    .offices-and-mobile-container {
        grid-template-columns: minmax(300px, 1fr);
    }

    .mobile__cell__title {
        font-size: 16px;
        padding: 0 1rem 0 2rem;
    }

    .mobile-container__title {
        font-size: 16px;
    }
}