

/* Start:/local/templates/main/version/v2/styles.css?17858568977859*/
:root {
    --btn-bg: #9dbbea;
    --btn-bg-press: #86a9df;
    --btn-text: #ffffff;
    --page-blue: #0c2fb0;

    /* безопасные отступы под "плашки" браузера (адресная строка сверху, панель снизу на iOS) */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    /* базовый фолбэк для старых браузеров */
    min-height: 100vh;
    background: var(--page-blue);
    font-family: 'Manrope', 'Segoe UI', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.screen {
    position: relative;
    width: 100%;
    max-width: 480px;
    /* dvh - "динамическая" высота вьюпорта: сама подстраивается,
       когда Safari показывает/прячет адресную строку и нижнюю панель */
    min-height: 110vh;
    min-height: 110dvh;
    margin: 0 auto;
    overflow: hidden;
    background-image: url('/e/bg.jpg');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;


}

/* ----- логотип в левом верхнем углу ----- */
.brand {
    position: relative;
    z-index: 10;
    /* доп. отступ поверх safe-area, чтобы логотип не липнул к самому краю
       и не пересекался с адресной строкой браузера */
    padding: calc(22px + var(--safe-top) * 0) 24px 0;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    pointer-events: none; /* чтобы клики проходили сквозь, если нужно, но ссылку можно оставить активной */
}

.logo-img {
    display: block;

    width: 100%;
    max-width: 160px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
    -webkit-filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
    transition: opacity 0.2s ease;
    pointer-events: auto; /* чтобы логотип был кликабельным, если обернуть в ссылку */
}

/* если захотите сделать логотип ссылкой — раскомментируйте тег <a> ниже */
.brand a {
    display: inline-flex;
    pointer-events: auto;
}

/* ----- hero-текст (заголовок и подпись) ----- */
.hero {
    position: relative;
    z-index: 2;
    padding: 8px 28px 0;
    max-width: 70%;
}

.hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: 30px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-shadow: 0 4px 18px rgba(6, 20, 90, 0.45);
}

.hero p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14.5px;
    line-height: 1.5;
    font-weight: 500;
    max-width: 240px;
}

/* распорки для вертикального ритма */
.spacer-top {
    flex: 1 1 30%;
}

.spacer-bottom {
    flex: 1 1 28%;
}

/* блок с кнопками */
.actions {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 0 32px;
}

.btn {
    --shine: rgba(255, 255, 255, 0.55);
    position: relative;
    width: 100%;
    max-width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 22px;
    border: none;
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-text);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(9, 20, 70, 0.35), inset 0 1px 0 var(--shine);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
    backdrop-filter: blur(2px);
}

.btn:active {
    transform: scale(0.965);
    background: var(--btn-bg-press);
    box-shadow: 0 6px 14px rgba(9, 20, 70, 0.32), inset 0 1px 0 var(--shine);
}

@media (hover: hover) {
    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 28px rgba(9, 20, 70, 0.4), inset 0 1px 0 var(--shine);
    }
}

.btn .ico {
    width: 20px;
    height: 20px;
    flex: none;
    display: inline-flex;
}

.btn .ico svg {
    width: 100%;
    height: 100%;
}

.btn.primary {
    background: #ffffff;
    color: #2451a8;
    box-shadow: 0 12px 26px rgba(9, 20, 70, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn.primary:active {
    background: #eef3fc;
}

/* затемнение в нижней части для читаемости */
.floor-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46%;
    background: linear-gradient(to top, rgba(6, 18, 82, 0.55) 0%, rgba(6, 18, 82, 0.0) 100%);
    z-index: 1;
    pointer-events: none;
}

.foot-note {
    position: relative;
    z-index: 2;
    text-align: center;
    /* нижний паддинг + safe-area, чтобы текст/кнопки не залезали
       под нижнюю панель Safari (свайп/жест "домой") */
    padding: 16px 20px calc(22px + var(--safe-bottom));
    color: rgba(255, 255, 255, 0.6);
    font-size: 11.5px;
    letter-spacing: 0.02em;
}

/* если футера нет, но кнопки — последний видимый блок,
   добавляем нижний зазор и туда тоже */
.actions:last-of-type {
    margin-bottom: calc(8px + var(--safe-bottom));
}

/* адаптив для маленьких экранов */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 25px;
    }

    .btn {
        font-size: 14.5px;
        padding: 14px 18px;
    }

    .logo-img {
        height: 34px;
    }

    .brand {
        padding: 18px 20px 0;
    }
}

/* ----- страница ошибки / QR ----- */

.qr-container {
    position: relative;
    z-index: 3;

    width: calc(100% - 48px);
    max-width: 380px;

    margin: auto auto 20%;
    padding: 32px 26px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    background: rgba(255, 255, 255, 0.96);
    border-radius: 28px;

    box-shadow: 0 18px 45px rgba(6, 18, 82, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.qr-icon-wrap {
    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 22px;
    background: #eef3fc;
    color: #2451a8;
}

.qr-icon {
    width: 42px;
    height: 42px;
}

.qr-text h1 {
    margin: 0;

    color: #0c2fb0;

    font-size: 25px;
    line-height: 1.15;
    font-weight: 800;

    letter-spacing: -0.02em;
}

.qr-text p {
    margin: 14px 0 0;

    color: #52617f;

    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
}


/* маленькие экраны */
@media (max-width: 360px) {
    .qr-container {
        width: calc(100% - 32px);
        padding: 26px 20px;
        border-radius: 24px;
    }

    .qr-icon-wrap {
        width: 62px;
        height: 62px;
        margin-bottom: 16px;
        border-radius: 19px;
    }

    .qr-icon {
        width: 36px;
        height: 36px;
    }

    .qr-text h1 {
        font-size: 22px;
    }

    .qr-text p {
        font-size: 14px;
    }
}


.hideButton {
    position: fixed;
    bottom: 0px;
    right: 0px;
    height: 90px;
    width: 50px;
    z-index: 11111;
    opacity: 0;
    font-size: 0px;
}
/* End */
/* /local/templates/main/version/v2/styles.css?17858568977859 */
