
.ib-upright-footer {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    color:#303030;
}


/* NEWSLETTER */

.ib-upright-newsletter {
    background:#303030;
    color:#fff;

    padding:58px 20px 64px;
}

.ib-upright-newsletter-inner {
    width:min(1040px,100%);
    margin:0 auto;

    text-align:center;
}

.ib-upright-newsletter h2 {
    margin:0 0 12px;

    color:#fff;

    font-size:34px;
    line-height:1.15;
    font-weight:400;

    letter-spacing:5px;
}

.ib-upright-newsletter p {
    margin:0 0 38px;

    color:#fff;

    font-size:18px;
    line-height:1.45;
    font-weight:300;
}

.ib-upright-subscribe {
    width:min(405px,100%);

    margin:0 auto;

    display:grid;

    grid-template-columns:1fr 70px;
}

.ib-upright-subscribe input {
    height:39px;

    padding:0 16px;

    border:1px solid #fff;
    border-right:0;

    border-radius:4px 0 0 4px;

    background:transparent;

    color:#fff;

    outline:none;

    font-size:13px;
}

.ib-upright-subscribe input::placeholder {
    color:#fff;
    opacity:.9;
}

.ib-upright-subscribe button {
    height:39px;

    border:0;
    border-radius:0 4px 4px 0;

    background:#fff;

    color:#222;

    font-size:30px;
    line-height:1;

    cursor:pointer;
}


/* LIGHT FOOTER */

.ib-upright-main {
    background:#f5f6f7;

    padding:48px 0 20px;
}

.ib-upright-container {
    width:min(1390px,calc(100% - 70px));

    margin:0 auto;
}


/* TOP LOGO / SOCIAL */

.ib-upright-top {
    display:grid;

    grid-template-columns:auto minmax(260px,1fr) auto;

    align-items:center;

    gap:35px;
}

.ib-upright-logo {
    display:flex;

    align-items:center;

    gap:11px;

    color:#111 !important;

    text-decoration:none !important;
}

.ib-upright-logo-mark {
    display:inline-block;

    color:#38b54a;

    font-size:56px;
    line-height:.75;

    transform:scaleX(.52);

    transform-origin:center;
}

.ib-upright-logo-text {
    font-size:41px;
    line-height:1;

    font-weight:600;

    letter-spacing:-1px;
}

.ib-upright-tagline {
    max-width:410px;

    padding-left:30px;

    border-left:1px solid #c7c7c7;

    color:#2e2e2e;

    font-size:15px;
    line-height:1.55;
}

.ib-upright-socials {
    display:flex;

    align-items:center;

    justify-content:flex-end;

    gap:22px;
}

.ib-upright-socials span {
    display:flex;

    align-items:center;

    justify-content:center;

    min-width:27px;
    height:27px;

    color:#272727;

    font-size:20px;
    line-height:1;

    font-weight:700;
}


/* DIVIDER */

.ib-upright-divider {
    height:1px;

    margin:34px 0 36px;

    background:#c9c9c9;
}


/* COLUMNS */

.ib-upright-grid {
    display:grid;

    grid-template-columns:
        1.05fr
        .85fr
        1.15fr
        1.1fr;

    gap:44px 54px;
}

.ib-upright-col,
.ib-upright-apps {
    min-width:0;
}

.ib-upright-col h3,
.ib-upright-apps h3 {
    margin:0 0 19px;

    color:#252525;

    font-size:15px;
    line-height:1.2;

    font-weight:700;

    letter-spacing:.25px;
}

.ib-upright-col a {
    display:block;

    margin:0 0 10px;

    color:#3d3d3d !important;

    font-size:14px;
    line-height:1.38;

    font-weight:400;

    text-decoration:none !important;
}

.ib-upright-col a:hover {
    color:#38a94c !important;
}

.ib-upright-company {
    display:flex;

    flex-direction:column;

    gap:7px;

    color:#3d3d3d;

    font-size:14px;
    line-height:1.35;
}

.ib-upright-company strong {
    color:#303030;
}


/* LEGAL */

.ib-upright-legal {
    grid-column:span 2;
}


/* APPS */

.ib-upright-apps {
    padding-left:34px;

    border-left:1px solid #c8c8c8;
}

.ib-upright-store {
    display:flex;

    align-items:center;

    gap:12px;

    width:220px;
    min-height:54px;

    margin:0 0 16px;

    padding:6px 15px;

    background:#f8f8f8;

    border:1px solid #333;
    border-radius:5px;

    color:#111;
}

.ib-store-icon {
    display:flex;

    width:36px;

    justify-content:center;

    font-size:28px;
}

.ib-google-icon {
    font-size:25px;
}

.ib-store-copy {
    display:flex;

    flex-direction:column;
}

.ib-store-copy small {
    margin-bottom:1px;

    color:#333;

    font-size:9px;
    line-height:1;
}

.ib-store-copy strong {
    color:#111;

    font-size:18px;
    line-height:1.08;

    font-weight:500;
}

.ib-upright-social-note {
    max-width:250px;

    margin-top:22px;

    color:#818794;

    font-size:11px;
    line-height:1.5;
}


/* BOTTOM */

.ib-upright-bottom {
    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:30px;

    margin-top:38px;

    padding-top:16px;

    border-top:1px solid #c9c9c9;

    color:#666;

    font-size:12px;
}


/* RESPONSIVE */

@media(max-width:1100px){

    .ib-upright-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .ib-upright-legal {
        grid-column:auto;
    }

    .ib-upright-top {
        grid-template-columns:auto 1fr;
    }

    .ib-upright-socials {
        grid-column:1/-1;

        justify-content:flex-start;
    }

}

@media(max-width:650px){

    .ib-upright-main {
        padding-top:35px;
    }

    .ib-upright-container {
        width:min(100% - 34px,1390px);
    }

    .ib-upright-top {
        grid-template-columns:1fr;
    }

    .ib-upright-tagline {
        padding-left:0;

        border-left:0;
    }

    .ib-upright-grid {
        grid-template-columns:1fr;
    }

    .ib-upright-apps {
        padding-left:0;

        border-left:0;
    }

    .ib-upright-bottom {
        flex-direction:column;

        align-items:flex-start;
    }

    .ib-upright-newsletter h2 {
        font-size:27px;
        letter-spacing:3px;
    }

}


/* HEADER LOGO DOT COVER */

.logo-block a {
    position:relative !important;
    display:inline-block !important;
}

.logo-block a::after {
    content:"";

    position:absolute;

    right:0;
    top:38%;

    width:20px;
    height:32px;

    background:#7bc673;

    pointer-events:none;
}


/* IBACK UPRIGHT FOOTER V2 — LAYOUT FIX */

/* футер должен выйти из старого узкого контейнера сайта */
.ib-upright-footer {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    overflow-x: hidden !important;
}

.ib-upright-newsletter,
.ib-upright-main {
    width: 100% !important;
    max-width: none !important;
}

/* нормальная ширина как у Upright */
.ib-upright-container {
    width: calc(100% - 120px) !important;
    max-width: 1395px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}


/* ВЕРХ: ЛОГО + СЛОГАН + СОЦСЕТИ */

.ib-upright-top {
    display: grid !important;
    grid-template-columns: auto minmax(360px,1fr) auto !important;
    gap: 38px !important;
    align-items: center !important;
}

.ib-upright-logo-text {
    font-size: 46px !important;
    font-weight: 600 !important;
    letter-spacing: -1.8px !important;
}

.ib-upright-logo-mark {
    font-size: 64px !important;
}

.ib-upright-tagline {
    max-width: 440px !important;
    padding-left: 35px !important;

    font-size: 16px !important;
    line-height: 1.5 !important;
}

.ib-upright-socials {
    gap: 21px !important;
}

.ib-upright-socials span {
    min-width: 30px !important;
    height: 30px !important;

    font-size: 20px !important;
}


/* ОСНОВНАЯ СЕТКА — 4 КОЛОНКИ × 2 РЯДА */

.ib-upright-grid {
    display: grid !important;

    grid-template-columns:
        1.05fr
        .9fr
        1.15fr
        1.15fr !important;

    column-gap: 64px !important;
    row-gap: 52px !important;

    align-items: start !important;
}

/* юридика больше НЕ занимает две колонки */
.ib-upright-legal {
    grid-column: auto !important;
}

/* приложение становится правой колонкой второго ряда */
.ib-upright-apps {
    grid-column: auto !important;

    padding-left: 35px !important;

    border-left: 1px solid #c8c8c8 !important;
}


/* ТЕКСТ */

.ib-upright-col h3,
.ib-upright-apps h3 {
    margin-bottom: 20px !important;

    font-size: 16px !important;
    line-height: 1.25 !important;
}

.ib-upright-col a,
.ib-upright-company {
    font-size: 14.5px !important;
    line-height: 1.42 !important;
}

.ib-upright-col a {
    margin-bottom: 9px !important;
}


/* APP STORE / GOOGLE PLAY */

.ib-upright-store {
    width: 225px !important;
    min-height: 58px !important;

    padding: 7px 16px !important;

    border: 1.5px solid #333 !important;
    border-radius: 5px !important;

    background: transparent !important;
}

.ib-store-copy strong {
    font-size: 19px !important;
}


/* НИЖНЯЯ СТРОКА */

.ib-upright-bottom {
    margin-top: 48px !important;
    padding-top: 18px !important;
}


/* RESPONSIVE */

@media (max-width: 1150px) {

    .ib-upright-container {
        width: calc(100% - 60px) !important;
    }

    .ib-upright-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr)) !important;
    }

    .ib-upright-apps {
        padding-left: 0 !important;
        border-left: 0 !important;
    }
}

@media (max-width: 700px) {

    .ib-upright-container {
        width: calc(100% - 34px) !important;
    }

    .ib-upright-top,
    .ib-upright-grid {
        grid-template-columns: 1fr !important;
    }

    .ib-upright-tagline {
        padding-left: 0 !important;
        border-left: 0 !important;
    }

}

/* END IBACK UPRIGHT FOOTER V2 */

/* =====================================================
   IBACK UPRIGHT FINAL VISUAL PASS
   ===================================================== */

.ib-upright-footer {
    position:relative !important;
    left:50% !important;

    width:100vw !important;
    max-width:none !important;

    margin-left:-50vw !important;
    margin-right:-50vw !important;
}


/* WIDTH */

.ib-upright-container {
    width:calc(100% - 90px) !important;
    max-width:1450px !important;

    margin-left:auto !important;
    margin-right:auto !important;
}


/* LIGHT AREA */

.ib-upright-main {
    padding-top:52px !important;
    padding-bottom:26px !important;

    background:#f5f6f7 !important;
}


/* HEADER OF FOOTER */

.ib-upright-top {
    grid-template-columns:
        auto
        minmax(380px,1fr)
        auto !important;

    gap:42px !important;
}

.ib-upright-logo-text {
    font-size:48px !important;
    line-height:1 !important;

    font-weight:650 !important;

    letter-spacing:-2px !important;
}

.ib-upright-logo-mark {
    color:#36b64b !important;

    font-size:67px !important;
}

.ib-upright-tagline {
    max-width:470px !important;

    padding-left:36px !important;

    font-size:16px !important;
    line-height:1.5 !important;
}


/* SOCIALS */

.ib-upright-socials {
    display:flex !important;

    align-items:center !important;

    gap:18px !important;
}

.ib-upright-socials > span {
    display:inline-flex !important;

    align-items:center !important;
    justify-content:center !important;

    width:31px !important;
    min-width:31px !important;
    height:31px !important;

    color:#292929 !important;

    font-weight:700 !important;
}

.ib-upright-socials svg {
    display:block !important;

    width:27px !important;
    height:27px !important;

    fill:none !important;

    stroke:#292929 !important;
    stroke-width:2.1 !important;
}

.ib-upright-socials .svg-fill,
.ib-upright-store .svg-fill {
    fill:#292929 !important;

    stroke:none !important;
}

.ib-upright-socials .svg-white {
    fill:#fff !important;

    stroke:none !important;
}

.ib-social-word {
    font-family:Arial,sans-serif !important;

    font-size:17px !important;

    letter-spacing:-1px !important;
}

.ib-social-note {
    font-size:25px !important;
}

.ib-social-dzen {
    font-size:26px !important;

    font-weight:400 !important;
}

.ib-social-f {
    font-family:Arial,sans-serif !important;

    font-size:28px !important;
    font-weight:900 !important;
}


/* DIVIDER */

.ib-upright-divider {
    margin-top:38px !important;
    margin-bottom:40px !important;
}


/* MAIN GRID */

.ib-upright-grid {
    grid-template-columns:
        1.03fr
        .88fr
        1.22fr
        1.08fr !important;

    column-gap:72px !important;
    row-gap:58px !important;
}


/* TITLES */

.ib-upright-col h3,
.ib-upright-apps h3 {
    margin-bottom:21px !important;

    color:#262626 !important;

    font-size:16px !important;
    line-height:1.2 !important;

    font-weight:750 !important;

    letter-spacing:.35px !important;
}


/* LINKS */

.ib-upright-col a {
    margin-bottom:10px !important;

    color:#414141 !important;

    font-size:15px !important;
    line-height:1.4 !important;
}


/* COMPANY */

.ib-upright-company {
    gap:7px !important;

    font-size:15px !important;
    line-height:1.4 !important;
}


/* LEGAL — MORE SPACE */

.ib-upright-legal a {
    max-width:390px !important;
}


/* APPS */

.ib-upright-apps {
    padding-left:38px !important;
}

.ib-upright-store {
    width:245px !important;
    min-height:62px !important;

    padding:7px 16px !important;

    gap:14px !important;

    background:#f7f8f8 !important;

    border:1.4px solid #333 !important;
    border-radius:5px !important;
}

.ib-store-logo {
    display:flex !important;

    width:39px !important;
    height:42px !important;

    align-items:center !important;
    justify-content:center !important;
}

.ib-store-logo svg {
    width:33px !important;
    height:37px !important;
}

.ib-store-copy small {
    margin-bottom:2px !important;

    font-size:9px !important;
    line-height:1 !important;
}

.ib-store-copy strong {
    font-size:20px !important;
    line-height:1.05 !important;

    font-weight:500 !important;
}

.ib-upright-social-note {
    max-width:245px !important;

    margin-top:18px !important;

    font-size:11px !important;
}


/* BOTTOM */

.ib-upright-bottom {
    margin-top:52px !important;

    font-size:12.5px !important;
}


/* NEWSLETTER */

.ib-upright-newsletter {
    padding-top:64px !important;
    padding-bottom:68px !important;
}

.ib-upright-newsletter h2 {
    font-size:36px !important;

    letter-spacing:6px !important;
}

.ib-upright-newsletter p {
    margin-bottom:40px !important;

    font-size:18px !important;
}


/* TABLET */

@media(max-width:1150px){

    .ib-upright-container {
        width:calc(100% - 60px) !important;
    }

    .ib-upright-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr)) !important;

        column-gap:55px !important;
    }

    .ib-upright-apps {
        padding-left:0 !important;

        border-left:0 !important;
    }
}


/* MOBILE */

@media(max-width:700px){

    .ib-upright-container {
        width:calc(100% - 34px) !important;
    }

    .ib-upright-top {
        grid-template-columns:1fr !important;
    }

    .ib-upright-grid {
        grid-template-columns:1fr !important;
    }

    .ib-upright-tagline {
        padding-left:0 !important;

        border-left:0 !important;
    }

    .ib-upright-socials {
        flex-wrap:wrap !important;
    }

}

/* END FINAL PASS */

/* IBACK_UPRIGHT_V3_START */

/*
 * Ключевой фикс:
 * ширина считается от VIEWPORT, а не от старого bootstrap-container.
 */
.ib-upright-container {
    position: relative !important;
    left: 50% !important;

    width: calc(100vw - 110px) !important;
    max-width: 1420px !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    transform: translateX(-50%) !important;
}


/* Верхняя строка */

.ib-upright-top {
    grid-template-columns:
        270px
        minmax(360px, 1fr)
        auto !important;

    gap: 46px !important;

    min-height: 78px !important;
}

.ib-upright-logo {
    min-width: 250px !important;
}

.ib-upright-logo-text {
    font-size: 52px !important;
    letter-spacing: -2.2px !important;
}

.ib-upright-logo-mark {
    font-size: 72px !important;
}

.ib-upright-tagline {
    max-width: 475px !important;

    padding-left: 38px !important;

    font-size: 16px !important;
    line-height: 1.5 !important;
}


/* Соцсети */

.ib-upright-socials {
    gap: 19px !important;
}

.ib-upright-socials > span {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
}

.ib-upright-socials svg {
    width: 29px !important;
    height: 29px !important;
}


/* Полоса */

.ib-upright-divider {
    margin-top: 30px !important;
    margin-bottom: 39px !important;
}


/* Основная сетка */

.ib-upright-grid {
    grid-template-columns:
        1.04fr
        .88fr
        1.20fr
        1.10fr !important;

    column-gap: 78px !important;
    row-gap: 52px !important;
}


/* Заголовки */

.ib-upright-col h3,
.ib-upright-apps h3 {
    margin-bottom: 20px !important;

    font-size: 16px !important;
    line-height: 1.25 !important;

    font-weight: 750 !important;
}


/* Ссылки */

.ib-upright-col a {
    margin-bottom: 9px !important;

    font-size: 15px !important;
    line-height: 1.42 !important;
}


/* Компания */

.ib-upright-company {
    font-size: 15px !important;
    line-height: 1.42 !important;

    gap: 6px !important;
}


/* Юридика */

.ib-upright-legal {
    padding-right: 15px !important;
}

.ib-upright-legal a {
    max-width: 380px !important;
}


/* Приложение */

.ib-upright-apps {
    padding-left: 38px !important;
}

.ib-upright-store {
    width: 250px !important;
    min-height: 62px !important;

    margin-bottom: 15px !important;
}

.ib-store-copy strong {
    font-size: 20px !important;
}


/* Низ */

.ib-upright-bottom {
    margin-top: 44px !important;
    padding-top: 17px !important;

    font-size: 12.5px !important;
}


/* desktop 1200–1450 */

@media (max-width: 1450px) {

    .ib-upright-container {
        width: calc(100vw - 80px) !important;
        max-width: 1320px !important;
    }

    .ib-upright-grid {
        column-gap: 58px !important;
    }

}


/* tablet */

@media (max-width: 1100px) {

    .ib-upright-container {
        width: calc(100vw - 50px) !important;
    }

    .ib-upright-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr)) !important;

        column-gap: 55px !important;
    }

    .ib-upright-apps {
        padding-left: 0 !important;
        border-left: 0 !important;
    }

}


/* mobile */

@media (max-width: 700px) {

    .ib-upright-container {
        width: calc(100vw - 32px) !important;
    }

    .ib-upright-top,
    .ib-upright-grid {
        grid-template-columns: 1fr !important;
    }

}

/* IBACK_UPRIGHT_V3_END */

/* FOOTER ACTIVE LINKS */

.ib-upright-socials > a {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    width:32px !important;
    min-width:32px !important;
    height:32px !important;

    color:#292929 !important;

    text-decoration:none !important;
}

.ib-upright-socials > a:hover {
    opacity:.65 !important;
}

.ib-upright-socials > a svg {
    display:block !important;

    width:29px !important;
    height:29px !important;
}

a.ib-upright-store {
    cursor:pointer !important;
    text-decoration:none !important;
    color:#111 !important;

    transition:
        transform .15s ease,
        background-color .15s ease !important;
}

a.ib-upright-store:hover {
    color:#111 !important;
    background:#fff !important;

    transform:translateY(-1px);
    text-decoration:none !important;
}

/* IBACK_FINAL_BRAND_ASSETS_START */


/* =====================================
   EXACT ORIGINAL IBACK LOGO
   ===================================== */

.ib-brand-logo-svg {
    display:block;
    width:100%;
    height:auto;
}


/* HEADER — WHITE ORIGINAL LOGO */

.logo-block .ib-header-logo-link {
    display:inline-block !important;

    width:138px !important;

    line-height:0 !important;

    color:#ffffff !important;

    text-decoration:none !important;
}

.logo-block .ib-header-logo-link .ib-brand-logo-svg {
    width:138px !important;
    height:auto !important;

    color:#ffffff !important;
}


/* Kill old logo masks */

.logo-block a::after {
    content:none !important;
    display:none !important;
}

.logo-block img {
    clip-path:none !important;
}


/* FOOTER — ORIGINAL GREEN LOGO */

.ib-upright-logo {
    display:block !important;

    width:168px !important;
    min-width:168px !important;

    color:#7ec466 !important;

    line-height:0 !important;

    text-decoration:none !important;
}

.ib-upright-logo .ib-brand-logo-svg {
    width:168px !important;
    height:auto !important;

    color:#7ec466 !important;
}


/* =====================================
   SOCIALS
   ===================================== */

.ib-upright-socials {
    display:flex !important;

    align-items:center !important;
    justify-content:flex-end !important;

    gap:17px !important;
}

.ib-upright-socials > a {
    display:inline-flex !important;

    align-items:center !important;
    justify-content:center !important;

    width:29px !important;
    height:29px !important;

    color:#111 !important;

    text-decoration:none !important;

    transition:
        opacity .15s ease,
        transform .15s ease !important;
}

.ib-upright-socials > a:hover {
    opacity:.65 !important;
    transform:translateY(-1px);
}

.ib-upright-socials > a i {
    color:#111 !important;

    font-size:23px !important;
    line-height:1 !important;
}

.ib-upright-socials .fa-vk {
    font-size:22px !important;
}

.ib-upright-socials .fa-odnoklassniki {
    font-size:22px !important;
}

.ib-upright-socials .fa-tiktok {
    font-size:23px !important;
}

.ib-upright-socials .fa-facebook-f {
    font-size:22px !important;
}

.ib-dzen-link svg {
    width:25px !important;
    height:25px !important;
}


/* =====================================
   STORE BADGES
   ===================================== */

.ib-upright-apps::after {
    content:none !important;
    display:none !important;
}

.ib-upright-apps .ib-upright-store {
    display:none !important;
}


.ib-store-badge {
    display:flex !important;

    align-items:center !important;

    width:238px !important;
    height:64px !important;

    margin:0 0 17px !important;

    padding:6px 18px !important;

    gap:15px !important;

    background:transparent !important;

    border:2px solid #1b1b1b !important;
    border-radius:8px !important;

    color:#111 !important;

    text-decoration:none !important;

    box-sizing:border-box !important;

    transition:
        transform .15s ease,
        background-color .15s ease !important;
}

.ib-store-badge:hover {
    color:#111 !important;

    background:#fff !important;

    transform:translateY(-1px);

    text-decoration:none !important;
}


.ib-store-badge-icon {
    display:flex !important;

    align-items:center !important;
    justify-content:center !important;

    width:43px !important;
    min-width:43px !important;
    height:45px !important;

    color:#111 !important;
}

.ib-store-badge-icon .fa-apple {
    font-size:40px !important;
    line-height:1 !important;
}

.ib-store-google .fa-google-play {
    font-size:35px !important;
    line-height:1 !important;
}


.ib-store-badge-copy {
    display:flex !important;

    flex-direction:column !important;

    align-items:flex-start !important;
    justify-content:center !important;

    color:#111 !important;
}

.ib-store-badge-copy small {
    display:block !important;

    margin:0 0 1px !important;

    color:#222 !important;

    font-size:11px !important;
    line-height:1 !important;

    font-weight:400 !important;
}

.ib-store-badge-copy strong {
    display:block !important;

    margin:0 !important;

    color:#111 !important;

    font-size:23px !important;
    line-height:1.02 !important;

    font-weight:500 !important;

    white-space:nowrap !important;
}


.ib-upright-social-note {
    margin-top:13px !important;

    max-width:238px !important;

    color:#8b929f !important;

    font-size:11px !important;
    line-height:1.45 !important;
}


/* mobile */

@media(max-width:700px) {

    .logo-block .ib-header-logo-link,
    .logo-block .ib-header-logo-link .ib-brand-logo-svg {
        width:118px !important;
    }

    .ib-upright-logo,
    .ib-upright-logo .ib-brand-logo-svg {
        width:150px !important;
        min-width:150px !important;
    }

    .ib-upright-socials {
        justify-content:flex-start !important;
        flex-wrap:wrap !important;
    }
}


/* IBACK_FINAL_BRAND_ASSETS_END */

/* TikTok inline SVG fix */

.ib-upright-socials .ib-tiktok-link svg {
    display:block !important;
    width:24px !important;
    height:24px !important;
    fill:#111 !important;
    stroke:none !important;
}


/* IBACK LOGO PROPORTIONS FINAL */

/* HEADER */
.logo-block .ib-header-logo-link {
    width:125px !important;
    max-width:125px !important;
}

.logo-block .ib-header-logo-link .ib-brand-logo-svg {
    display:block !important;
    width:125px !important;
    max-width:125px !important;
    height:auto !important;
}

/* FOOTER */
.ib-upright-logo {
    width:145px !important;
    min-width:145px !important;
    max-width:145px !important;
}

.ib-upright-logo .ib-brand-logo-svg {
    display:block !important;
    width:145px !important;
    max-width:145px !important;
    height:auto !important;
}

/* чуть уменьшаем место под логотип в строке футера */
.ib-upright-top {
    grid-template-columns:
        190px
        minmax(360px,1fr)
        auto !important;
}

/* MOBILE */
@media(max-width:700px){

    .logo-block .ib-header-logo-link,
    .logo-block .ib-header-logo-link .ib-brand-logo-svg {
        width:105px !important;
        max-width:105px !important;
    }

    .ib-upright-logo,
    .ib-upright-logo .ib-brand-logo-svg {
        width:125px !important;
        min-width:125px !important;
        max-width:125px !important;
    }
}


/* HEADER LOGO — SAME SCALE AS PRODUCTION */

.logo-block .ib-header-logo-link {
    display:block !important;
    width:100% !important;
    max-width:none !important;
    line-height:0 !important;
}

.logo-block .ib-header-logo-link .ib-brand-logo-svg {
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
}

/* отменяем наши прежние фиксированные размеры */
@media(max-width:700px) {
    .logo-block .ib-header-logo-link,
    .logo-block .ib-header-logo-link .ib-brand-logo-svg {
        width:100% !important;
        max-width:100% !important;
    }
}


/* HEADER LOGO — MATCH PRODUCTION SCREENSHOT */

.logo-block .ib-header-logo-link {
    display:inline-block !important;
    width:106px !important;
    max-width:106px !important;
    line-height:0 !important;
}

.logo-block .ib-header-logo-link .ib-brand-logo-svg {
    display:block !important;
    width:106px !important;
    max-width:106px !important;
    height:auto !important;
}

/* mobile */
@media(max-width:700px) {
    .logo-block .ib-header-logo-link,
    .logo-block .ib-header-logo-link .ib-brand-logo-svg {
        width:92px !important;
        max-width:92px !important;
    }
}


/* FOOTER LOGO — SAME SIZE AS HEADER */

.ib-upright-logo {
    width:106px !important;
    min-width:106px !important;
    max-width:106px !important;
}

.ib-upright-logo .ib-brand-logo-svg {
    display:block !important;
    width:106px !important;
    max-width:106px !important;
    height:auto !important;
}


/* ===================================================
   IBACK FOOTER BRAND ROW — DESKTOP + MOBILE FINAL
   =================================================== */

/* Desktop:
   LOGO | — slogan | socials
*/

.ib-upright-top {
    display:flex !important;
    align-items:center !important;
    flex-wrap:nowrap !important;

    width:100% !important;

    gap:32px !important;
}

.ib-upright-logo {
    flex:0 0 106px !important;

    width:106px !important;
    min-width:106px !important;
    max-width:106px !important;

    margin:0 !important;
}

.ib-upright-logo .ib-brand-logo-svg {
    width:106px !important;
    max-width:106px !important;
    height:auto !important;
}


/* slogan */

.ib-upright-tagline {
    flex:1 1 auto !important;

    min-width:0 !important;
    max-width:520px !important;

    margin:0 !important;
    padding:0 !important;

    border:0 !important;

    color:#272727 !important;

    font-size:16px !important;
    line-height:1.45 !important;

    white-space:normal !important;
}


/* socials remain at right */

.ib-upright-socials {
    flex:0 0 auto !important;

    margin-left:auto !important;

    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;

    flex-wrap:nowrap !important;

    gap:17px !important;
}


/* ==============================
   MOBILE
   ============================== */

@media(max-width:700px) {

    .ib-upright-top {
        display:flex !important;

        flex-wrap:wrap !important;
        align-items:center !important;

        gap:18px 16px !important;

        width:100% !important;
        max-width:100% !important;
    }


    /* first row: logo + slogan */

    .ib-upright-logo {
        flex:0 0 106px !important;

        width:106px !important;
        min-width:106px !important;
        max-width:106px !important;
    }

    .ib-upright-logo .ib-brand-logo-svg {
        width:106px !important;
        max-width:106px !important;
        height:auto !important;
    }

    .ib-upright-tagline {
        flex:1 1 calc(100% - 122px) !important;

        width:auto !important;
        min-width:150px !important;
        max-width:none !important;

        margin:0 !important;
        padding:0 !important;

        font-size:15px !important;
        line-height:1.4 !important;

        overflow-wrap:break-word !important;
        word-break:normal !important;
    }


    /* second row: socials */

    .ib-upright-socials {
        flex:0 0 100% !important;

        width:100% !important;

        margin:2px 0 0 !important;

        justify-content:flex-start !important;

        flex-wrap:wrap !important;

        gap:18px !important;
    }

}


/* narrow phones */

@media(max-width:420px) {

    .ib-upright-logo {
        flex-basis:92px !important;

        width:92px !important;
        min-width:92px !important;
        max-width:92px !important;
    }

    .ib-upright-logo .ib-brand-logo-svg {
        width:92px !important;
        max-width:92px !important;
    }

    .ib-upright-tagline {
        flex-basis:calc(100% - 108px) !important;

        min-width:0 !important;

        font-size:14px !important;
    }

}

/* END FOOTER BRAND ROW */

/* FOOTER TOP ROW — SAME WIDTH AS HEADER */

.ib-upright-top {
    width:calc(100vw - 200px) !important;
    max-width:1335px !important;

    margin-left:50% !important;
    margin-right:0 !important;

    transform:translateX(-50%) !important;
}

/* divider follows the same width */
.ib-upright-divider {
    width:calc(100vw - 200px) !important;
    max-width:1335px !important;

    margin-left:50% !important;
    margin-right:0 !important;

    transform:translateX(-50%) !important;
}

/* tablet */
@media(max-width:1100px) {
    .ib-upright-top,
    .ib-upright-divider {
        width:calc(100vw - 60px) !important;
    }
}

/* mobile */
@media(max-width:700px) {
    .ib-upright-top,
    .ib-upright-divider {
        width:calc(100vw - 32px) !important;
        max-width:none !important;
    }
}


/* FOOTER TOP ROW — SAME WIDTH AS HEADER */

.ib-upright-top {
    width:calc(100vw - 200px) !important;
    max-width:1335px !important;

    margin-left:50% !important;
    margin-right:0 !important;

    transform:translateX(-50%) !important;
}

/* divider follows the same width */
.ib-upright-divider {
    width:calc(100vw - 200px) !important;
    max-width:1335px !important;

    margin-left:50% !important;
    margin-right:0 !important;

    transform:translateX(-50%) !important;
}

/* tablet */
@media(max-width:1100px) {
    .ib-upright-top,
    .ib-upright-divider {
        width:calc(100vw - 60px) !important;
    }
}

/* mobile */
@media(max-width:700px) {
    .ib-upright-top,
    .ib-upright-divider {
        width:calc(100vw - 32px) !important;
        max-width:none !important;
    }
}


/* FOOTER COLUMNS — SAME WIDTH AS TOP ROW */

.ib-upright-grid {
    width:calc(100% - 64px) !important;
    max-width:1180px !important;

    margin-left:auto !important;
    margin-right:auto !important;
}

/* нижняя строка футера тоже по той же ширине */
.ib-upright-bottom {
    width:calc(100% - 64px) !important;
    max-width:1180px !important;

    margin-left:auto !important;
    margin-right:auto !important;
}


/* TABLET */

@media(max-width:1100px) {

    .ib-upright-grid,
    .ib-upright-bottom {
        width:calc(100% - 60px) !important;
        max-width:none !important;
    }

}


/* MOBILE */

@media(max-width:700px) {

    .ib-upright-grid,
    .ib-upright-bottom {
        width:calc(100% - 32px) !important;
        max-width:none !important;
    }

}


/* FOOTER BRAND ROW — NO OVERLAP FINAL */

/* desktop */
.ib-upright-top {
    display:grid !important;

    grid-template-columns:
        106px
        minmax(320px, 520px)
        minmax(0, 1fr) !important;

    align-items:center !important;

    column-gap:28px !important;
    row-gap:20px !important;
}

.ib-upright-logo {
    grid-column:1 !important;

    width:106px !important;
    min-width:106px !important;
    max-width:106px !important;

    margin:0 !important;
}

.ib-upright-logo .ib-brand-logo-svg {
    display:block !important;

    width:106px !important;
    max-width:106px !important;
    height:auto !important;
}

.ib-upright-tagline {
    grid-column:2 !important;

    width:auto !important;
    min-width:0 !important;
    max-width:520px !important;

    margin:0 !important;
    padding:0 !important;

    white-space:normal !important;

    overflow-wrap:normal !important;
    word-break:normal !important;
}

.ib-upright-socials {
    grid-column:3 !important;

    width:auto !important;

    margin:0 !important;

    justify-self:end !important;
}


/* MOBILE */

@media(max-width:700px) {

    .ib-upright-top {
        display:grid !important;

        grid-template-columns:
            92px
            minmax(0,1fr) !important;

        column-gap:18px !important;
        row-gap:24px !important;

        align-items:center !important;
    }

    .ib-upright-logo {
        grid-column:1 !important;
        grid-row:1 !important;

        width:92px !important;
        min-width:92px !important;
        max-width:92px !important;
    }

    .ib-upright-logo .ib-brand-logo-svg {
        width:92px !important;
        max-width:92px !important;
    }

    .ib-upright-tagline {
        grid-column:2 !important;
        grid-row:1 !important;

        width:100% !important;
        min-width:0 !important;

        font-size:14px !important;
        line-height:1.4 !important;

        overflow-wrap:break-word !important;
    }

    .ib-upright-socials {
        grid-column:1 / -1 !important;
        grid-row:2 !important;

        width:100% !important;

        justify-self:start !important;
        justify-content:flex-start !important;

        margin:0 !important;

        flex-wrap:wrap !important;
    }
}


/* very narrow phones */

@media(max-width:390px) {

    .ib-upright-top {
        grid-template-columns:
            82px
            minmax(0,1fr) !important;

        column-gap:14px !important;
    }

    .ib-upright-logo,
    .ib-upright-logo .ib-brand-logo-svg {
        width:82px !important;
        min-width:82px !important;
        max-width:82px !important;
    }

    .ib-upright-tagline {
        font-size:13px !important;
    }
}


/* HIDE NEWSLETTER UNTIL MAILING IS READY */
.ib-upright-newsletter {
    display:none !important;
}

