@font-face {
    font-family: 'Roboto';
    src: url('../_shared/fonts/roboto-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../_shared/fonts/roboto-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --max-font: -apple-system, BlinkMacSystemFont, 'Roboto', system-ui, 'Helvetica Neue', Arial, sans-serif;

    --max-bg-base: #141414;

    --max-composer-bg: #17181c;

    --max-text: #ffffff;

    --max-radius-composer: 16px;

    --max-font-body: 400 16px/20px var(--max-font);
    --max-font-label: 400 12px/16px var(--max-font);

    --ios-kb-bg: #1b1b1d;
    --ios-kb-key: #3a3a3c;
    --ios-kb-key-alt: #26262a;
    --ios-kb-key-pressed: #5a5a5e;
    --ios-kb-key-text: #ffffff;
    --ios-kb-radius: 5px;

    --app-primary: #ff770f;
    --app-primary-link: #f89a32;
    --app-dark: #222222;
    --app-mute: #9b9b9b;
    --app-forms: #f5f5f5;
    --app-bg: #ffffff;
    --app-radius: 10px;
    --app-font: 'Roboto', system-ui, -apple-system, sans-serif;

    --scene-bg-0: #0b0c14;
    --scene-bg-1: #131628;
    --scene-ink: #eef1ff;
    --scene-ink-dim: #7d86ad;
    --scene-accent: #6f8cff;

    --device-scale: 1;
    --device-base-w: 438px;
    --device-base-h: 920px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    color: var(--scene-ink);
    font-family: var(--max-font);
    background: radial-gradient(58% 52% at 50% 26%, rgba(111, 140, 255, .18), transparent 70%),
    linear-gradient(180deg, var(--scene-bg-0), var(--scene-bg-1));
}

.stage {
    width: 100%;
    padding: 48px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.stage__eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    font: 400 11px/1 ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--scene-accent);
}

.stage__eyebrow span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--scene-accent);
    box-shadow: 0 0 0 3px rgba(111, 140, 255, .18);
}

.device {
    width: var(--device-base-w);
    height: var(--device-base-h);
    transform: scale(var(--device-scale));
    transform-origin: top center;
    margin-bottom: calc((var(--device-scale) - 1) * var(--device-base-h));
}

.device__frame {
    position: relative;
    width: 438px;
    height: 920px;
    padding: 12px;
    border-radius: 60px;
    background: linear-gradient(155deg, #4a4d5b, #121319 22%, #121319 78%, #4a4d5b);
    /*filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55)) drop-shadow(0 4px 14px rgba(0, 0, 0, .35));*/
}

.device__frame::before,
.device__frame::after {
    content: '';
    position: absolute;
    background: #33353f;
}

.device__frame::before {
    left: -3px;
    top: 150px;
    width: 3px;
    height: 32px;
    border-radius: 2px 0 0 2px;
    box-shadow: 0 56px 0 #33353f, 0 102px 0 #33353f;
}

.device__frame::after {
    right: -3px;
    top: 190px;
    width: 3px;
    height: 66px;
    border-radius: 0 2px 2px 0;
}

.device__notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    border-radius: 0 0 18px 18px;
    background: #121319;
    z-index: 20;
}

.device__screen {
    position: relative;
    width: 414px;
    height: 896px;
    border-radius: 48px;
    overflow: hidden;
    background: var(--app-bg);
    display: flex;
    flex-direction: column;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.max {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    font: var(--max-font-body);
    color: var(--max-text);
}

.max__status {
    flex: 0 0 auto;
    height: 44px;
    background: var(--max-composer-bg);
    color: #ffffff;
    padding: 14px 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font: 600 14px/18px var(--max-font);
    letter-spacing: .2px;
}

.max__status-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.max__signal {
    display: flex;
    align-items: flex-end;
    gap: 1.6px;
    height: 10px;
}

.max__signal i {
    width: 3px;
    background: currentColor;
    border-radius: 1px;
}

.max__signal i:nth-child(1) {
    height: 40%;
}

.max__signal i:nth-child(2) {
    height: 60%;
}

.max__signal i:nth-child(3) {
    height: 80%;
}

.max__signal i:nth-child(4) {
    height: 100%;
}

.max__wifi {
    width: 14px;
    height: 10px;
    background: currentColor;
    clip-path: polygon(50% 100%, 0 30%, 12% 18%, 50% 52%, 88% 18%, 100% 30%, 50% 78%);
}

.max__battery {
    position: relative;
    width: 22px;
    height: 11px;
    padding: 1.5px;
    border: 1.4px solid currentColor;
    border-radius: 3px;
}

.max__battery::after {
    content: '';
    position: absolute;
    right: -3.5px;
    top: 3px;
    width: 2px;
    height: 4px;
    border-radius: 0 1px 1px 0;
    background: currentColor;
}

.max__battery i {
    display: block;
    height: 100%;
    width: 76%;
    border-radius: 1px;
    background: currentColor;
}

.touch {
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .85);
    background: radial-gradient(circle, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.3);
    z-index: 40;
}

.touch.is-pinging {
    animation: touchPing .55s cubic-bezier(.2, .8, .2, 1);
}

@keyframes touchPing {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.3);
    }
    25% {
        opacity: .9;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

.ios-kb {
    flex: 0 0 auto;
    height: 0;
    overflow: hidden;
    background: var(--ios-kb-bg);
    transition: height .3s cubic-bezier(.2, .8, .2, 1);
}

.ios-kb.is-open {
    height: 291px;
}

.ios-kb__predictive {
    height: 44px;
    display: flex;
    align-items: center;
    border-bottom: .5px solid rgba(255, 255, 255, .08);
    font: 400 16px/20px var(--max-font);
    color: #fff;
}

.ios-kb__predictive span {
    flex: 1 1 0;
    text-align: center;
    border-right: .5px solid rgba(255, 255, 255, .12);
}

.ios-kb__predictive span:last-child {
    border-right: 0;
}

.ios-kb__predictive .is-quoted {
    color: var(--max-text-secondary);
}

.ios-kb__rows {
    padding: 8px 3px 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.ios-kb__row {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.ios-kb__row--indent {
    padding: 0 20px;
}

.key {
    flex: 1 1 0;
    min-width: 0;
    height: 42px;
    border: 0;
    border-radius: var(--ios-kb-radius);
    background: var(--ios-kb-key);
    color: var(--ios-kb-key-text);
    font: 400 22px/1 var(--max-font);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .5);
    cursor: default;
    transition: background .08s ease, transform .08s ease;
}

.key--alt {
    background: var(--ios-kb-key-alt);
    font-size: 15px;
}

.key--wide {
    flex: 1.55 1 0;
}

.key--space {
    flex: 4.6 1 0;
    font-size: 15px;
}

.key--icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.key.is-pressed {
    background: var(--ios-kb-key-pressed);
    transform: translateY(1px) scale(.96);
}

.key--alt.is-pressed {
    background: #4a4a50;
}

.ios-kb__home {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ios-kb__home i {
    width: 140px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .32);
}

.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 18px;
}

.steps__item {
    display: flex;
    align-items: center;
    gap: 7px;
    font: 400 12px/1 ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    color: var(--scene-ink-dim);
    transition: color .3s ease;
}

.steps__item span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all .3s ease;
}

.steps__item.is-active {
    color: var(--scene-ink);
}

.steps__item.is-active span {
    background: var(--scene-accent);
    border-color: var(--scene-accent);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(111, 140, 255, .16);
}

.steps__item.is-done {
    color: var(--scene-accent);
}

.steps__item.is-done span {
    border-color: var(--scene-accent);
}

@media (max-width: 720px) {
    .stage {
        padding: 24px 12px 28px;
        gap: 20px;
    }

    .ios-kb {
        flex: 0 0 auto;
        height: 0;
        overflow: hidden;
        background: var(--ios-kb-bg);
        transition: height .3s cubic-bezier(.2, .8, .2, 1);
    }

    .ios-kb.is-open {
        height: 291px;
    }

    .ios-kb__predictive {
        height: 44px;
        display: flex;
        align-items: center;
        border-bottom: .5px solid rgba(255, 255, 255, .08);
        font: 400 16px/20px var(--max-font);
        color: #fff;
    }

    .ios-kb__predictive span {
        flex: 1 1 0;
        text-align: center;
        border-right: .5px solid rgba(255, 255, 255, .12);
    }

    .ios-kb__predictive span:last-child {
        border-right: 0;
    }

    .ios-kb__predictive .is-quoted {
        color: var(--max-text-secondary);
    }

    .ios-kb__rows {
        padding: 8px 3px 0;
        display: flex;
        flex-direction: column;
        gap: 11px;
    }

    .ios-kb__row {
        display: flex;
        gap: 5px;
        justify-content: center;
    }

    .ios-kb__row--indent {
        padding: 0 20px;
    }

    .key {
        flex: 1 1 0;
        min-width: 0;
        height: 42px;
        border: 0;
        border-radius: var(--ios-kb-radius);
        background: var(--ios-kb-key);
        color: var(--ios-kb-key-text);
        font: 400 22px/1 var(--max-font);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 1px 0 rgba(0, 0, 0, .5);
        cursor: default;
        transition: background .08s ease, transform .08s ease;
    }

    .key--alt {
        background: var(--ios-kb-key-alt);
        font-size: 15px;
    }

    .key--wide {
        flex: 1.55 1 0;
    }

    .key--space {
        flex: 4.6 1 0;
        font-size: 15px;
    }

    .key--icon svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .key.is-pressed {
        background: var(--ios-kb-key-pressed);
        transform: translateY(1px) scale(.96);
    }

    .key--alt.is-pressed {
        background: #4a4a50;
    }

    .ios-kb__home {
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ios-kb__home i {
        width: 140px;
        height: 5px;
        border-radius: 3px;
        background: rgba(255, 255, 255, .32);
    }

    .steps {
        gap: 10px;
    }

    .steps__item {
        font-size: 0;
        gap: 0;
    }

    .steps__item span {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-field, .app-select__list, .app-switch__track, .app-switch__thumb, .app-submit__btn, .key, .ios-kb, .steps__item, .steps__item span {
        transition: none !important;
    }

    .touch, .app-caret, .app-result {
        animation: none !important;
    }
}

.miniapp {
    animation: none !important;
}

}

.post {
    max-width: 337px;
}

.miniapp {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--app-bg);
    font-family: var(--app-font);
    color: var(--app-dark);
}

.miniapp__header {
    flex: 0 0 auto;
    height: 56px;
    padding: 4px;
    display: flex;
    align-items: center;
    background: var(--max-composer-bg);
    color: #fff;
}

.miniapp__btn {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.miniapp__btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.miniapp__btn--dots svg {
    stroke: none;
    fill: currentColor;
}

.miniapp__title {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    font: 600 17px/22px var(--max-font);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.miniapp__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    overflow-anchor: none;
}

.miniapp__scroll::-webkit-scrollbar {
    display: none;
}

.app-form {
    display: flex;
    flex-flow: column;
    gap: 16px;
    padding: 16px;
}

.app-radio {
    display: flex;
    flex-flow: row;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.app-radio::-webkit-scrollbar {
    display: none;
}

.app-radio__item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 20px;
    border: 1px solid var(--app-forms);
    border-radius: 999px;
    background: transparent;
    color: var(--app-mute);
    font-size: 14px;
    white-space: nowrap;
}

.app-radio__item.is-checked {
    background: var(--app-primary);
    border-color: var(--app-primary);
    color: var(--app-bg);
}

.app-field {
    position: relative;
    width: 100%;
    height: 50px;
    padding: 8px 16px 9px;
    display: flex;
    flex-flow: column;
    gap: 4px;
    border-radius: var(--app-radius);
    background: var(--app-forms);
}

.app-field--area {
    height: auto;
    min-height: 92px;
}

.app-field__label {
    font-size: 10px;
    color: var(--app-dark);
    opacity: .4;
}

.app-field__value {
    font-size: 14px;
    color: var(--app-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-field__value--empty {
    opacity: .4;
}

.app-field__value--wrap {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.app-field__arrow {
    position: absolute;
    right: 16px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--app-dark);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-field--qty {
    flex-flow: row;
    align-items: center;
}

.app-field--qty .app-field__col {
    flex: 1 1 auto;
    display: flex;
    flex-flow: column;
    gap: 4px;
}

.app-field__steppers {
    display: flex;
    gap: 24px;
    align-items: center;
}

.app-field__steppers svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--app-dark);
    stroke-width: 1.8;
    stroke-linecap: round;
}

.app-switch {
    width: 100%;
    height: 50px;
    padding: 8px 16px 9px;
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--app-forms);
    border-radius: var(--app-radius);
    font-size: 14px;
}

.app-switch__track {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 14px;
    border-radius: 999px;
    background: var(--app-mute);
}

.app-switch__thumb {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--app-bg);
    box-shadow: -1px 1px 1px 0 rgba(51, 51, 51, .25);
}

.app-field--phone {
    flex-flow: row;
    align-items: center;
    gap: 12px;
    padding-left: 6px;
}

.app-field--phone .app-field__col {
    flex: 1 1 auto;
    display: flex;
    flex-flow: column;
    gap: 4px;
}

.app-phone__code {
    flex: 0 0 auto;
    width: 45px;
    height: 100%;
    border-radius: 6px;
    background: var(--app-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.app-submit {
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    padding: 16px;
    background: var(--app-bg);
    border-top: 1px solid #e1e1e1;
}

.app-submit__btn {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: var(--app-radius);
    background: var(--app-primary);
    color: var(--app-bg);
    font: 400 14px/1 var(--app-font);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .4;
    cursor: default;
}

.app-submit__policy {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
    color: #666666;
}

.app-submit__policy b {
    color: var(--app-primary-link);
}

.app-field {
    transition: box-shadow .18s ease;
}

.app-field.is-focused {
    box-shadow: inset 0 0 0 1px var(--app-primary);
}

.app-field.is-open {
    box-shadow: inset 0 0 0 1px var(--app-primary);
}

.app-field__arrow {
    transition: transform .2s ease;
}

.app-field__arrow--active {
    transform: rotate(-180deg);
}

.app-select__list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 10px;
    padding: 0;
    list-style: none;
    max-height: 200px;
    overflow: hidden;
    background: var(--app-bg);
    box-shadow: 0 4px 12px 0 #928c9740;
    border-radius: var(--app-radius);
    opacity: 0;
    z-index: -10;
    transition: opacity .2s ease;
}

.app-select__list.is-open {
    opacity: 1;
    z-index: 10;
}

.app-select__list li {
    height: 32px;
    line-height: 32px;
    padding: 0 16px;
    font-size: 14px;
    color: var(--app-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background .15s ease;
}

.app-select__list li.is-hit {
    background: #f0f0f0;
}

.app-caret {
    display: inline-block;
    width: 1.5px;
    height: 15px;
    margin-left: 1px;
    vertical-align: -3px;
    background: var(--app-primary);
    animation: appCaret 1s step-end infinite;
}

@keyframes appCaret {
    50% {
        opacity: 0;
    }
}

.app-field__steppers svg {
    transition: opacity .18s ease;
}

.app-field__steppers .is-hit {
    opacity: .45;
}

.app-switch__track {
    transition: background .2s ease;
}

.app-switch__thumb {
    transition: transform .2s ease;
}

.app-switch.is-on .app-switch__track {
    background: var(--app-primary);
}

.app-switch.is-on .app-switch__thumb {
    transform: translateX(16px);
}

.app-submit__btn {
    transition: opacity .25s ease, filter .15s ease;
}

.app-submit__btn.is-enabled {
    opacity: 1;
}

.app-submit__btn.is-pressed {
    filter: brightness(.92);
}

.app-result {
    position: absolute;
    inset: 56px 0 0 0;
    z-index: 20;
    display: none;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 0 16px;
    background: var(--app-bg);
    font-family: var(--app-font);
}

.app-result.is-shown {
    display: flex;
    animation: appResultIn .3s ease-out;
}

@keyframes appResultIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.app-result svg {
    width: 80px;
    height: 80px;
}

.app-result h4 {
    margin: 0;
    font-size: 20px;
    line-height: 130%;
    font-weight: bold;
    color: var(--app-dark);
}

.app-result p {
    margin: 0;
    font-size: 14px;
    line-height: 140%;
    color: var(--app-dark);
}

.app-result__btn {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 24px;
    height: 50px;
    border: 0;
    border-radius: var(--app-radius);
    background: var(--app-primary);
    color: var(--app-bg);
    font: 400 14px/1 var(--app-font);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ios-kb {
    position: relative;
    z-index: 60;
}

.is-bare {
    --device-base-w: 438px;
    --device-base-h: 920px;
}

.is-bare body {
    background: transparent;
    min-height: 0;
}

.is-bare .stage {
    padding: 0;
    gap: 0;
    height: 100vh;
    justify-content: center;
}

.is-bare .stage__eyebrow,
.is-bare .steps {
    display: none;
}

.is-naked {
    --device-base-w: 414px;
    --device-base-h: 896px;
}

.is-naked .device__frame {
    padding: 0;
    border-radius: 0;
    background: none;
    filter: none;
}

.is-naked .device__frame::before,
.is-naked .device__frame::after,
.is-naked .device__notch {
    display: none;
}

.is-naked .device__frame {
    width: 414px;
    height: 896px;
}

.is-naked .device__screen {
    border-radius: 0;
}
