@font-face {
    font-family: 'Samnan Maintenance';
    src: url('../samnan-app-popup-v2/assets/GE-Flow-Regular.otf') format('opentype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Samnan Maintenance';
    src: url('../samnan-app-popup-v2/assets/GE-Flow-Bold.otf') format('opentype');
    font-weight: 700;
    font-display: swap;
}

.samnan-maintenance {
    --maintenance-gold: #ffc64d;
    --maintenance-muted: #c5d2ed;
    --maintenance-width: 1190px;
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    padding-inline: max(24px, env(safe-area-inset-right), env(safe-area-inset-left));
    background:
        radial-gradient(ellipse at 8% 56%, #1c367499 0, transparent 61%),
        radial-gradient(ellipse at 87% 0%, #1e356675 0, transparent 52%),
        #0c1834;
    color: #fff;
    font: 400 17px / 1.65 'Samnan Maintenance', Tahoma, sans-serif;
    direction: rtl;
    color-scheme: dark;
}

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

.samnan-maintenance__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    max-width: var(--maintenance-width);
    margin-inline: auto;
    padding-block: 23px;
    border-bottom: 1px solid #8da8e038;
}

.samnan-maintenance__brand {
    display: flex;
    align-items: center;
    gap: 11px;
    line-height: 1.12;
}

.samnan-maintenance__brand > img {
    width: 46px;
    height: 46px;
    padding: 7px;
    border-radius: 13px;
    background: #f4f7ff;
}

.samnan-maintenance__brand strong,
.samnan-maintenance__brand span {
    display: block;
}

.samnan-maintenance__brand strong {
    font-size: 24px;
}

.samnan-maintenance__brand span {
    margin-block-start: 3px;
    color: var(--maintenance-muted);
    font-size: 12px;
}

.samnan-maintenance__support {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 44px;
    color: #fff;
    line-height: 1.25;
    text-align: end;
    text-decoration: none;
}

.samnan-maintenance__support span {
    color: var(--maintenance-muted);
    font-size: 12px;
}

.samnan-maintenance__support bdi {
    margin-block-start: 5px;
    font: 600 14px / 1 system-ui, sans-serif;
    letter-spacing: .035em;
}

.samnan-maintenance__support:hover bdi {
    text-decoration: underline;
}

.samnan-maintenance__main {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(24px, 5.1vw, 74px);
    width: 100%;
    max-width: var(--maintenance-width);
    min-height: calc(100svh - 93px);
    margin-inline: auto;
    padding-block: 43px 54px;
}

.samnan-maintenance__intro h1 {
    margin: 0;
    font-size: clamp(40px, 4.25vw, 59px);
    font-weight: 700;
    line-height: 1.1;
}

.samnan-maintenance__intro em {
    display: block;
    margin-block-start: 4px;
    color: var(--maintenance-gold);
    font-style: normal;
}

.samnan-maintenance__intro p {
    max-width: 390px;
    margin: 17px 0 0;
    color: var(--maintenance-muted);
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.65;
}

.samnan-maintenance__downloads {
    margin-block-start: 31px;
}

.samnan-maintenance__downloads h2 {
    margin: 0 0 9px;
    font-size: 19px;
    line-height: 1.35;
}

.samnan-maintenance__stores {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 145px));
    gap: 11px;
}

.samnan-maintenance__store {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px;
    border: 1px solid #9db7f33b;
    border-radius: 14px;
    background: #7eabff13;
}

.samnan-maintenance__qr {
    display: block;
    width: min(100%, 108px);
    height: auto;
    border-radius: 8px;
    background: #fff;
    aspect-ratio: 1;
}

.samnan-maintenance__store-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 44px;
    padding: 5px;
    border: 1px solid #839bdb;
    border-radius: 8px;
    background: #284692;
    color: #fff;
    font: 600 13px / 1.2 system-ui, sans-serif;
    direction: ltr;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.samnan-maintenance__store-link:hover {
    background: #3559ae;
}

.samnan-maintenance__store-link svg {
    flex: none;
}

.samnan-maintenance a:focus-visible {
    outline: 2px solid var(--maintenance-gold);
    outline-offset: 4px;
}

.samnan-maintenance__preview {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    margin: 0;
    padding: 37px clamp(18px, 2.5vw, 34px);
    overflow: hidden;
    isolation: isolate;
    border: 1px solid #6c90e583;
    border-radius: 28px;
    background: radial-gradient(ellipse at 52% 40%, #4b72cd 0, #2a4a95 54%, #152953 100%);
    box-shadow: 0 22px 68px #03091354;
}

.samnan-maintenance__preview::before,
.samnan-maintenance__preview::after {
    position: absolute;
    inset: 49% auto auto 50%;
    z-index: -1;
    width: 102%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 1px solid #bcdaff3b;
    border-radius: 50%;
    content: '';
}

.samnan-maintenance__preview::after {
    width: 80%;
    box-shadow: 0 0 0 42px #94b7ff11, inset 0 0 65px #a0c9ff23;
}

.samnan-maintenance__phones {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(11px, 2vw, 24px);
    width: min(100%, 474px);
    color-scheme: light;
}

.samnan-maintenance__phones > .samnan-app-phone {
    width: 100%;
    min-width: 0;
}

.samnan-maintenance__phones > .samnan-app-phone:first-child {
    transform: translateY(-5px);
}

.samnan-maintenance__phones > .samnan-app-phone:last-child {
    transform: translateY(8px);
}

@media (max-width: 825px) {
    .samnan-maintenance {
        padding-inline: max(16px, env(safe-area-inset-right), env(safe-area-inset-left));
    }

    .samnan-maintenance__header {
        max-width: 530px;
        padding-block: 13px;
    }

    .samnan-maintenance__brand > img {
        width: 40px;
        height: 40px;
        padding: 6px;
    }

    .samnan-maintenance__brand strong {
        font-size: 21px;
    }

    .samnan-maintenance__main {
        grid-template-columns: minmax(0, 1fr);
        gap: 23px;
        min-height: 0;
        max-width: 530px;
        padding-block: 27px 24px;
    }

    .samnan-maintenance__intro {
        text-align: center;
    }

    .samnan-maintenance__intro h1 {
        font-size: clamp(33px, 8.6vw, 51px);
    }

    .samnan-maintenance__intro p {
        margin: 10px auto 0;
    }

    .samnan-maintenance__downloads {
        margin-block-start: 17px;
    }

    .samnan-maintenance__downloads h2 {
        margin-block-end: 7px;
        font-size: 16px;
    }

    .samnan-maintenance__stores {
        grid-template-columns: repeat(2, minmax(0, 118px));
        justify-content: center;
        gap: 8px;
    }

    .samnan-maintenance__store {
        gap: 6px;
        padding: 5px;
        border-radius: 11px;
    }

    .samnan-maintenance__qr {
        width: min(100%, 78px);
        border-radius: 6px;
    }

    .samnan-maintenance__store-link {
        gap: 3px;
        font-size: 12px;
    }

    .samnan-maintenance__preview {
        padding: 19px 12px;
        border-radius: 20px;
    }

    .samnan-maintenance__phones {
        width: min(100%, 370px);
    }
}
