/* Основные стили и шрифты */
@font-face {
    font-family: 'Inter';
    src: url('Inter-Regular.woff2') format('woff2'), url('Inter-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: inter;
    src: url('Inter-Regular.woff2') format('woff2'), url('Inter-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

#ps_modal {
    z-index: 10000 !important; /* Увеличиваем приоритет */
}

/* Базовые стили для всех страниц */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', inter, Arial, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Safari отдаёт горизонтальную прокрутку элементу html, поэтому overflow-x на
   одном body её не убирает. text-size-adjust не даёт Safari самовольно увеличить
   шрифт и распереть строку шире экрана. */
html {
    overflow-x: hidden;
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* iOS Safari: 100vh не учитывает адресную строку и нижнюю панель, поэтому
   страница всегда оказывается выше экрана и появляется прокрутка. dvh — это
   фактическая видимая высота; для браузеров без поддержки остаётся 100vh. */
@supports (min-height: 100dvh) {
    body { min-height: 100dvh; }
}

.pt-site-header {
    width: 100%;
    box-sizing: border-box;
    padding: 22px 32px 0;
    position: relative;
    z-index: 20;
}

.pt-site-header__inner {
    width: min(1040px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pt-site-header__brand {
    display: inline-flex;
    align-items: center;
    min-width: 120px;
}

.pt-site-header__brand img {
    width: 118px;
    height: auto;
    display: block;
}

.pt-site-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pt-header-btn {
    height: 46px;
    min-width: 118px;
    max-width: 260px;
    padding: 0 20px;
    border: 1px solid #e8e5f8;
    border-radius: 999px;
    background: #ffffff;
    color: #1c032a;
    font: 600 15px/1 inter, Arial, sans-serif;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(255, 178, 46, 0.12);
}

.pt-header-btn--dark {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
}

.pt-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 12000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(18, 11, 36, 0.28);
    backdrop-filter: blur(10px);
}

.pt-modal.is-open {
    display: flex;
}

.pt-modal__box {
    width: min(420px, 94vw);
    max-height: min(760px, 92vh);
    overflow: auto;
    box-sizing: border-box;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 28px 70px rgba(151, 114, 5, 0.22);
    padding: 24px;
    font-family: inter, Arial, sans-serif;
    color: #1c032a;
}

.pt-modal__box--wide {
    width: min(620px, 94vw);
}

.pt-modal__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.pt-modal__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.pt-modal__subtitle {
    margin-top: 6px;
    color: #6c6478;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.pt-modal__close {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: none;
    border-radius: 50%;
    background: #FFE7BA;
    color: #1c032a;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.pt-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #3c3151;
    font-size: 14px;
}

.pt-field input,
.pt-email-suggestion input {
    width: 100%;
    height: 46px;
    box-sizing: border-box;
    border: 1px solid #ddd8f5;
    border-radius: 16px;
    padding: 0 14px;
    outline: none;
    background: #ffffff;
    color: #1c032a;
    font: 15px/1 inter, Arial, sans-serif;
}

.pt-field input:focus,
.pt-email-suggestion input:focus {
    border-color: #FFBC0B;
    box-shadow: 0 0 0 3px rgba(255, 188, 11, 0.16);
}

.pt-modal__error,
.pt-email-suggestion__error {
    min-height: 18px;
    margin-top: 8px;
    color: #dd5454;
    font-size: 13px;
    line-height: 1.35;
}

.pt-modal__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.pt-action-btn,
.pt-email-suggestion__button {
    min-height: 44px;
    border: none;
    border-radius: 999px;
    padding: 0 18px;
    background: #FFE7BA;
    color: #1c032a;
    font: 600 14px/1 inter, Arial, sans-serif;
    cursor: pointer;
}

.pt-action-btn--primary,
.pt-email-suggestion__button {
    background: linear-gradient(149deg, rgba(255, 188, 11, 1) 0%, rgb(255, 178, 46) 99%);
    color: #ffffff;
}

.pt-email-suggestion {
    width: min(300px, 90%);
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    text-align: center;
    font-family: inter, Arial, sans-serif;
}

.pt-email-suggestion label,
.pt-email-suggestion--compact {
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    line-height: 1.35;
}

.pt-email-suggestion.is-active label {
    font-weight: 700;
}

.pt-email-suggestion__button {
    width: 100%;
    box-shadow: 0 8px 18px rgba(151, 114, 5, 0.18);
}

.pt-orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pt-orders-empty {
    border-radius: 18px;
    background: #f4f1ff;
    color: #4c4264;
    padding: 18px;
    font-size: 14px;
    line-height: 1.45;
}

.pt-order-card {
    border-radius: 20px;
    background: #f8f6ff;
    border: 1px solid #e8e2ff;
    padding: 16px;
}

.pt-order-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.pt-order-card__code {
    color: #FFB144;
    font-weight: 700;
    letter-spacing: 0;
}

.pt-order-card__status {
    border-radius: 999px;
    background: #ffffff;
    color: #FFB144;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.pt-order-card__title {
    color: #1c032a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.pt-order-card__details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.pt-order-card__details span {
    border-radius: 999px;
    background: #ffffff;
    color: #4c4264;
    padding: 6px 9px;
    font-size: 12px;
}

.pt-order-card__date {
    color: #7b728e;
    font-size: 12px;
}

.main {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
}

.cyndyk {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
    cursor: pointer;
}

/* Контейнер - общие стили */
.container {
    width: 90vw;
    max-width: 340px;
    height: auto;
    min-height: 250px;
    background: #FFBC0B;
    background: linear-gradient(149deg, rgba(255, 188, 11, 1) 0%, rgba(255, 177, 68, 1) 92%);
    background-size: contain, auto;
    border-radius: 37.5px;
    box-shadow: 0 10px 20px #FFBC0Bab;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    background-size: cover;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1;
}

.container.error-mode {
    width: 550px;
    height: 130px;
}

.txt-center {
    text-align: center !important;
}


/* Текст */
.text {
    font-size: 18px;
    font-family: inter;
    color: #fff;
    text-align: left;
    padding: 0 20px;
    z-index: 1;
    line-height: 1.4;
    width: 100%;
}

.not-black {
    color: #1C032A;
}

.black {
    color: black !important;
}

.fs-16 {
    font-size: 16px !important;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-15 {
    margin-bottom: 15px;
}

.txt-center {
    text-align: center;
}

.txt-al-left {
    text-align: left !important;
}

.bld {
    font-weight: bolder;
}

.bgr {
    font-size: 40px;
    margin-top: -20px;
    font-weight: bolder;
    text-align: center;
}

/* Поля ввода */
.input-field {
    width: 90vw;
    max-width: 300px;
    font-family: inter !important;
    height: 60px;
    border-radius: 21px;
    border: none;
    padding: 0 20px;
    font-size: 16px;
    outline: none;
    z-index: 2;
    text-align: center;
    box-sizing: border-box;
    position: relative;
}

.input-field::placeholder {
    color: #CDCDCD;
}

.input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.form-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Кнопки */
.buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
    width: 100%;
    max-width: 390px;
    position: relative;
}

.btn {
    width: 90vw;
    max-width: 390px;
    height: 50px;
    border-radius: 37.5px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 15px;
    white-space: normal;
    word-break: break-word;
    box-sizing: border-box;
    font-family: inter;
}

.btn-get-code {
    background: #FFBC0B;
    background: linear-gradient(149deg, rgba(255, 188, 11, 1) 0%, rgb(255, 178, 46) 99%);
    color: white;
}

.btn-support {
    background-color: #DD5454 !important;
    color: #ffffff !important;
}

.btn-continue {
    background-color: #FFBC0B;
    color: #fff;
}

.btn-expanded {
    height: auto !important;
    min-height: 50px;
    padding: 15px;
}

.btn-please-review {
    background-color: #BDBAFF;
    height: auto;
    min-height: 80px;
    position: relative;
    cursor: pointer;
    color: black;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    text-decoration: none;
}

.btn-please-review:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.btn-please-review .text {
    line-height: 1.3;
    width: 100%;
}

.btn.btn-please-review:link,
.btn.btn-please-review:visited {
    color: rgb(0, 0, 0) !important;
}

.expanded-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.question {
    font-weight: bold;
    margin-bottom: 8px;
}

.answer {
    font-size: 14px !important;
    font-weight: normal;
}

/* Ошибки */
.error-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    /* было жёстко 390px: на экранах уже 390 контейнер торчал за края и давал
       горизонтальную прокрутку в Safari (там overflow-x на body её не убирает) */
    width: min(390px, 100%);
    height: 250px;
    pointer-events: none;
    z-index: 2;
}

.desktop-error {
    position: absolute;
    top: 130px;
    left: 380px;
    width: 300px;
    height: 60px;
    background: url('warning.png') no-repeat left center;
    background-size: contain;
    color: white;
    font-size: 14px;
    padding-left: 40px;
    display: none;
    align-items: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.mobile-error-popup {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(90vw - 40px);
    max-width: 320px;
    height: auto;
    max-height: 100px;
    min-height: 20px;
    background-color: #e24a43;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(226, 74, 67, 0.4);
    opacity: 0;
    transition: opacity 0.28s ease;
    z-index: 200;
    animation: slideDown 0.3s ease-in-out;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.mobile-error-popup:before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #e24a43;
}

.desktop-error.active,
.mobile-error-popup.active {
    opacity: 1;
}

.fade-out {
    opacity: 0 !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Рейтинг и модальное окно (приоритет из game_code.html) */
.rating-box {
    max-width: 340px;
    margin: 30px auto 0;
    background: #FFE7BA;
    border-radius: 35px;
    padding: 25px 25px 20px !important;
    text-align: center !important;
    min-width: 380px;
    min-height: 70px;
    position: fixed;
    bottom: 20px;
    z-index: 0 !important;
}

/* Переключатель языка (внизу по центру, как на cyndyk) */
.language-switcher {
    position: static;
    order: 999;
    transform: none;
    display: flex;
    gap: 10px;
    margin: 4px auto 24px;
    z-index: 1100;
}

body .main { flex: 1 0 auto; }

.language-switcher a {
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.language-active { color: #000; }
.language-inactive { color: #CDCDCD; }

.rating-box p {
    margin: 0 0 16px;
    font-size: 14px !important;
    font-weight: 600;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.star {
    width: 22px;
    height: 22px;
    background-image: url('star.svg');
    filter: grayscale(100%) brightness(0.8);
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: filter 0.2s ease;
    display: block;
    margin-right: 8px;
}

.star-wrapper {
    position: relative;
    padding: 5px;
    margin: -5px;
    cursor: pointer;
}

.star.active {
    filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.star.hovered {
    filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.btn-continue {
    background: #FFBC0B;
    background: linear-gradient(149deg,rgba(255, 188, 11, 1) 0%, rgb(255, 178, 46) 99%);
    color: white;
}

.modal-box {
    width: 530px !important;
    background: rgba(255, 255, 255, 0.87);
    border-radius: 40px;
    padding: 18px 50px 35px 50px !important;
    text-align: center !important;
    box-shadow: 0 0 50px rgba(151, 114, 5, 0.3);
    animation: modalAppear 0.3s ease-out;
    backdrop-filter: blur(20px) saturate(60%);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background: transparent;
    color: rgba(28, 3, 42, 0.35);
    font-size: 26px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
}

.modal-close:hover {
    color: rgba(28, 3, 42, 0.7);
    background: rgba(28, 3, 42, 0.06);
}

#ps_modal .ps-console-modal-box {
    width: min(520px, calc(100vw - 32px)) !important;
    box-sizing: border-box;
    padding: 34px 42px 38px !important;
}

#ps_modal .ps-console-actions {
    width: min(430px, 100%);
    margin: 0 auto;
    display: flex;
    gap: 15px;
}

#ps_modal .ps-console-button {
    width: 100% !important;
    max-width: none;
    min-width: 0;
    flex: 1 1 0;
}

.console-change-link {
    margin-left: 10px;
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.chat-btn {
    width: 70%;
    height: 48px;
    background: #FFB144;
    color: #fff !important;
    border: none;
    border-radius: 50px;
    font-size: 15px !important;
    cursor: pointer;
    text-align: center !important;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalDisappear {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}



@keyframes mulShdSpin {
    0%,
    100% {
        box-shadow: 0 -1.2em 0 0.08em #fff,
                    0.8em -0.8em 0 0em #fff,
                    1.2em 0 0 -0.4em #fff,
                    0.8em 0.8em 0 -0.4em #fff,
                    0 1.2em 0 -0.4em #fff,
                    -0.8em 0.8em 0 -0.4em #fff,
                    -1.2em 0 0 -0.4em #fff,
                    -0.8em -0.8em 0 0 #fff;
    }
    12.5% {
        box-shadow: 0 -1.2em 0 0 #fff,
                    0.8em -0.8em 0 0.08em #fff,
                    1.2em 0 0 0 #fff,
                    0.8em 0.8em 0 -0.4em #fff,
                    0 1.2em 0 -0.4em #fff,
                    -0.8em 0.8em 0 -0.4em #fff,
                    -1.2em 0 0 -0.4em #fff,
                    -0.8em -0.8em 0 -0.4em #fff;
    }
    25% {
        box-shadow: 0 -1.2em 0 -0.2em #fff,
                    0.8em -0.8em 0 0 #fff,
                    1.2em 0 0 0.08em #fff,
                    0.8em 0.8em 0 0 #fff,
                    0 1.2em 0 -0.4em #fff,
                    -0.8em 0.8em 0 -0.4em #fff,
                    -1.2em 0 0 -0.4em #fff,
                    -0.8em -0.8em 0 -0.4em #fff;
    }
    37.5% {
        box-shadow: 0 -1.2em 0 -0.4em #fff,
                    0.8em -0.8em 0 -0.4em #fff,
                    1.2em 0em 0 0 #fff,
                    0.8em 0.8em 0 0.08em #fff,
                    0 1.2em 0 0em #fff,
                    -0.8em 0.8em 0 -0.4em #fff,
                    -1.2em 0em 0 -0.4em #fff,
                    -0.8em -0.8em 0 -0.4em #fff;
    }
    50% {
        box-shadow: 0 -1.2em 0 -0.4em #fff,
                    0.8em -0.8em 0 -0.4em #fff,
                    1.2em 0 0 -0.4em #fff,
                    0.8em 0.8em 0 0em #fff,
                    0 1.2em 0 0.08em #fff,
                    -0.8em 0.8em 0 0 #fff,
                    -1.2em 0em 0 -0.4em #fff,
                    -0.8em -0.8em 0 -0.4em #fff;
    }
    62.5% {
        box-shadow: 0 -1.2em 0 -0.4em #fff,
                    0.8em -0.8em 0 -0.4em #fff,
                    1.2em 0 0 -0.4em #fff,
                    0.8em 0.8em 0 -0.4em #fff,
                    0 1.2em 0 0 #fff,
                    -0.8em 0.8em 0 0.08em #fff,
                    -1.2em 0 0 0 #fff,
                    -0.8em -0.8em 0 -0.4em #fff;
    }
    75% {
        box-shadow: 0em -1.2em 0 -0.4em #fff,
                    0.8em -0.8em 0 -0.4em #fff,
                    1.2em 0em 0 -0.4em #fff,
                    0.8em 0.8em 0 -0.4em #fff,
                    0 1.2em 0 -0.4em #fff,
                    -0.8em 0.8em 0 0 #fff,
                    -1.2em 0em 0 0.08em #fff,
                    -0.8em -0.8em 0 0 #fff;
    }
    87.5% {
        box-shadow: 0em -1.2em 0 0 #fff,
                    0.8em -0.8em 0 -0.4em #fff,
                    1.2em 0 0 -0.4em #fff,
                    0.8em 0.8em 0 -0.4em #fff,
                    0 1.2em 0 -0.4em #fff,
                    -0.8em 0.8em 0 0 #fff,
                    -1.2em 0em 0 0 #fff,
                    -0.8em -0.8em 0 0.08em #fff;
    }
}

/* Также нужно адаптировать другие элементы для мобильных */
@media (max-width: 768px) {
    .pt-site-header {
        padding: 16px 14px 0;
    }

    .pt-site-header__inner {
        align-items: flex-start;
    }

    .pt-site-header__brand {
        min-width: 0;
    }

    .pt-site-header__brand img {
        width: 96px;
    }

    .pt-site-header__actions {
        gap: 8px;
        max-width: calc(100vw - 128px);
    }

    .pt-header-btn {
        min-width: 0;
        max-width: 138px;
        height: 40px;
        padding: 0 12px;
        font-size: 13px;
    }

    .pt-modal {
        padding: 14px;
    }

    .pt-modal__box {
        border-radius: 22px;
        padding: 20px;
    }

    .pt-modal__title {
        font-size: 20px;
    }

    .input-field {
        width: 85vw; /* Адаптивная ширина поля ввода */
        max-width: 300px;
        height: 55px;
        font-size: 15px;
    }
    
    .text {
        font-size: 16px;
        padding: 0 15px;
    }
    
}

@media (max-width: 480px) {
    .pt-site-header__inner {
        flex-direction: column;
        align-items: center;
    }

    .pt-site-header__actions {
        width: 100%;
        max-width: 340px;
        justify-content: center;
    }

    .pt-header-btn {
        flex: 1 1 0;
        max-width: none;
    }

    .pt-modal__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .pt-action-btn {
        width: 100%;
    }

    .pt-order-card__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .pt-order-card__status {
        white-space: normal;
    }

    .input-field {
        width: 90vw;
        height: 50px;
        font-size: 14px;
    }
    
    .text {
        font-size: 15px;
        padding: 0 10px;
    }
    
    
    .mb-30 {
        margin-bottom: 20px;
    }
}

        
        .cross-icon {
            width: 50px;
            height: 50px;
            position: relative;
            margin-bottom: 20px;
        }
        
        .cross-icon::before,
        .cross-icon::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 4px;
            background-color: #fff;
            top: 50%;
            left: 0;
            border-radius: 2px;
        }
        
        .cross-icon::before {
            transform: translateY(-50%) rotate(45deg);
        }
        
        .cross-icon::after {
            transform: translateY(-50%) rotate(-45deg);
        }
        

        
        .loader {
          width: 0.4em; 
          height: 0.4em;
          border-radius: 50%;
          position: relative;
          text-indent: -9999em;
          animation: mulShdSpin 1.3s infinite linear;
          transform: translateZ(0);
          margin: 30px auto;
          color: white;
        }
        
        .loading-text {
            font-size: 16px;
            text-align: center;
            font-family: inter !important;
            font-weight: bold;
            margin: 15px 0;
        }
        
        .loading-container {
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px 0;
            color:white;
        }

@media (max-width: 320px) {
    .input-field {
        width: 95vw;
        height: 45px;
        font-size: 13px;
    }
    
    .text {
        font-size: 14px;
    }
    
}

.desktop-error, .mobile-error-popup {
    display: none; 
}

@media (max-width: 1024px) {
    .mobile-error-popup.active {
        display: flex;
    }
}

@media (min-width: 1025px) {
    .desktop-error.active {
        display: flex;
    }
}
@media (max-width: 768px) {
    .container {
        width: 95vw;
        max-width: none;
        border-radius: 25px;
        min-height: 200px;
    }
    
    .rating-box {
        position: relative;
        min-width: unset;
        width: 90vw;
        max-width: 400px;
        margin: 30px auto 20px;
        bottom: unset;
    }
    
    .buttons {
        width: 95vw;
        max-width: none;
    }
    
    .btn {
        width: 95vw;
        max-width: none;
        font-size: 15px;
        height: 45px;
    }
    
    .btn-expanded {
        min-height: 45px;
        padding: 12px;
    }
    
    .btn-please-review {
        min-height: 70px;
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .modal-box {
        width: 90vw;
        max-width: 400px;
        margin: 0 20px;
        box-shadow: 0 0 30px rgba(151, 114, 5, 0.3);
    }
    
    .input-field {
        width: 85vw;
        height: 55px;
        font-size: 15px;
    }
    
    .text {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .chat-btn {
        width: 80%;
    }
}

@media (max-width: 480px) {
    .container {
        width: 98vw;
        border-radius: 20px;
        min-height: 180px;
        margin: 10px auto;
        padding: 15px;
    }
    
    .buttons {
        width: 98vw;
        gap: 12px;
        margin-top: 20px;
    }
    
    .btn {
        width: 98vw;
        font-size: 14px;
        height: 42px;
        border-radius: 25px;
        padding: 0 12px;
    }
    
    .btn-expanded {
        min-height: 42px;
        padding: 10px;
    }
    
    .answer {
        font-size: 13px !important;
    }
    
    .btn-please-review {
        min-height: 60px;
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .modal-box {
        width: 95vw;
        max-width: 350px;
        padding: 20px;
        box-shadow: 0 0 20px rgba(151, 114, 5, 0.3);
    }
    
    .mobile-error-popup {
        font-size: 13px;
        padding: 1px 8px;
        max-height: 35px;
        min-height: 35px;
        border-radius: 10px;
        top: calc(100% + 8px);
    }
    
    .input-field {
        width: 90vw;
        height: 50px;
        font-size: 14px;
    }
    
    .text {
        font-size: 15px;
        padding: 0 10px;
    }
    
    .mb-30 {
        margin-bottom: 20px;
    }
    
    .rating-box {
        padding: 12px 16px;
        border-radius: 15px;
    }
}

@media (max-width: 320px) {
    .container {
        min-height: 150px;
        border-radius: 15px;
        padding: 10px;
    }
    
    .buttons {
        width: 100%;   /* было 100vw — вылезало за край в Safari */
        gap: 10px;
    }
    
    .btn {
        width: 95vw;
        font-size: 13px;
        height: 40px;
        border-radius: 20px;
    }
    
    .btn-expanded {
        min-height: 40px;
        padding: 8px;
    }
    
    .answer {
        font-size: 12px !important;
    }
    
    .btn-please-review {
        min-height: 55px;
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .mobile-error-popup {
        font-size: 12px;
        padding: 8px 12px;
        min-height: 40px;
        border-radius: 8px;
        max-width: 260px;
    }
    
    .input-field {
        width: 95vw;
        height: 45px;
        font-size: 13px;
    }
    
    .text {
        font-size: 14px;
    }
}

@media (max-width: 560px) {
    #ps_modal .ps-console-modal-box {
        width: min(330px, calc(100vw - 32px)) !important;
        padding: 26px 24px 30px !important;
        border-radius: 28px;
    }

    #ps_modal .ps-console-actions {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    #ps_modal .ps-console-button {
        height: 44px !important;
        flex: 0 0 44px;
    }
}

/* Фикс для Opera GX */
@media all and (-webkit-min-device-pixel-ratio:0) and (min-resolution: .001dpcm) {
    _:-webkit-full-screen, .text {
        line-height: 1.2 !important;
    }
}

/* Figma-like account/order layout */
.pt-site-header {
    width: 100%;
    padding: 42px 16px 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 30;
}

.pt-account-bar {
    min-height: 42px;
    width: auto;
    max-width: calc(100vw - 32px);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    box-sizing: border-box;
    border-radius: 999px;
    background: #111111;
    box-shadow: 0 14px 34px rgba(17, 17, 17, 0.16);
    font-family: inter, Arial, sans-serif;
}

.pt-account-bar__orders,
.pt-account-bar__logout,
.pt-account-bar__submit {
    border: 0;
    cursor: pointer;
    font-family: inter, Arial, sans-serif;
}

.pt-account-bar__orders {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.pt-lock-icon {
    width: 21px;
    height: 23px;
    display: block;
    fill: #ffffff;
    flex: 0 0 auto;
}

.pt-account-bar__fields {
    display: none;
    align-items: center;
    gap: 6px;
}

.pt-account-bar.is-expanded .pt-account-bar__fields {
    display: flex;
}

.pt-account-bar.is-expanded {
    width: min(520px, 94vw);
}

.pt-account-bar.is-expanded .pt-account-bar__orders {
    padding-right: 6px;
}

.pt-account-bar.is-logged-in .pt-account-bar__fields {
    display: none;
}

.pt-account-bar.is-logged-in .pt-account-bar__logout {
    display: inline-flex;
}

.pt-account-bar__fields input {
    height: 32px;
    min-width: 0;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #1c032a;
    padding: 0 14px;
    outline: none;
    font: 12px/1 inter, Arial, sans-serif;
}

#siteLoginEmail {
    width: 170px;
}

#siteOrderCodeInput {
    width: 135px;
}

.pt-account-bar__submit {
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #303030;
    color: #ffffff;
    font-size: 19px;
    line-height: 1;
}

.pt-account-bar__submit:disabled {
    cursor: default;
    pointer-events: none;
}

.pt-account-bar__logout {
    display: none;
    width: 32px;
    height: 32px;
    padding: 0 3px;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: transparent;
    color: #d8d8d8;
    line-height: 1;
}

.pt-account-bar__logout:hover {
    color: #ffffff;
}

.pt-logout-icon {
    width: 22px;
    height: 22px;
    display: block;
    fill: currentColor;
}

/* error box below bar, centered */
.pt-site-header { flex-direction: column; align-items: center; }
.pt-account-bar__error {
    width: min(420px, calc(100vw - 32px));
    max-width: 100%;
    min-height: 0;
    margin: 8px auto 0;
    color: #dd5454;
    text-align: center;
    font: 12px/1.35 inter, Arial, sans-serif;
    overflow-wrap: break-word;
    word-break: break-word;
}

.pt-account-bar__error:empty {
    display: none;
}

/* Wrong-code error shown inside the code input row (not below the bar). */
.pt-account-bar__fields {
    position: relative;
}
.pt-account-bar__codehint {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 10px;
    right: 46px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font: 14px/1 inter, Arial, sans-serif;
    color: #d09090;
    white-space: nowrap;
    overflow: hidden;
    pointer-events: none;
}
.pt-account-bar__codehint.is-shown {
    display: flex;
}
.pt-account-bar__codehint .pt-code-resend {
    color: #1a1a1a;
    text-decoration: underline;
    pointer-events: auto;
    cursor: pointer;
}
#siteOtpInput::placeholder {
    letter-spacing: normal;
    font-size: 14px;
    font-weight: 500;
    color: #8d8d8d;
}

body:not(.pt-orders-mode) .main {
    margin-top: 42px;
}

body.pt-order-memo-mode .main {
    margin-top: 34px;
}

.main > .cyndyk {
    width: 150px;
    margin-bottom: 20px;
}

body.pt-order-memo-mode .main > .cyndyk {
    margin-bottom: 14px;
}

.pt-home-view {
    --pt-card-control-font-size: 16px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pt-home-view[hidden] {
    display: none;
}

.pt-home-view .container {
    --pt-card-vertical-gap: 22px;
    width: min(420px, 92vw);
    max-width: 340px;
    min-height: 355px;
    padding: var(--pt-card-vertical-gap) 42px;
    justify-content: flex-start;
    gap: var(--pt-card-vertical-gap);
    border-radius: 30px;
    overflow: hidden;
}

.pt-home-view .pt-code-card--guest {
    min-height: 0;
    padding-top: var(--pt-card-vertical-gap);
    padding-bottom: var(--pt-card-vertical-gap);
}

.pt-home-view .pt-code-card-title {
    max-width: 340px;
    margin: 0 auto;
    padding: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 500;
}

.pt-home-view .input-wrapper {
    width: 100%;
    margin: 0;
}

.pt-home-view .input-field {
    width: 100%;
    max-width: none;
    height: 56px;
    border-radius: 18px;
    font-size: 18px;
    color: #1c032a;
}

.pt-home-view .input-field::placeholder {
    color: #c7c4cd;
}

.pt-email-suggestion {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--pt-card-vertical-gap);
    align-items: center;
    position: relative;
}

.pt-email-suggestion label,
.pt-email-suggestion--compact {
    padding: 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
}

.pt-email-suggestion input {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 16px;
    padding: 0 18px;
    font-size: 16px;
    color: #1c032a;
}

.pt-email-suggestion input::placeholder {
    color: #8c8799;
}

.pt-email-suggestion__error {
    width: 100%;
    margin: 0;
    color: #ffe1e1;
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
}

.pt-email-suggestion__error:empty {
    display: none;
}

.pt-activate-btn {
    width: 100%;
    max-width: none;
    height: 46px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    background: linear-gradient(149deg, rgba(255, 188, 11, 1) 0%, rgb(255, 178, 46) 99%);
    color: #ffffff;
    cursor: pointer;
    font-size: var(--pt-card-control-font-size);
    font-weight: 500;
    line-height: 1;
    text-align: center;
    box-shadow: none;
}

.pt-activate-btn:disabled {
    cursor: default;
    opacity: 0.65;
}

.pt-home-view .buttons {
    margin-top: 16px;
    gap: 12px;
    max-width: 390px;
}

.pt-home-view .btn {
    width: min(390px, 92vw);
    max-width: 390px;
    height: 46px;
    border-radius: 999px;
    font-size: var(--pt-card-control-font-size);
    font-weight: 500;
}

.pt-home-view .btn-get-code {
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.pt-home-view .btn.btn-expanded {
    border-radius: 24px;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.pt-home-view .rating-box {
    display: none;
    position: static;
    transform: none;
    width: min(390px, calc(100vw - 32px));
    max-width: 390px;
    min-width: 0;
    min-height: 0;
    margin: 14px auto 0;
    padding: 16px 22px 14px !important;
    border-radius: 24px;
    box-sizing: border-box;
    box-shadow: 0 10px 28px rgba(255, 178, 46, 0.12);
    z-index: auto !important;
}

.pt-home-view .rating-box p {
    margin-bottom: 10px;
    font-size: 13px !important;
}

.pt-home-view .rating-box .stars {
    gap: 4px;
}

.pt-home-view .rating-box .star {
    width: 20px;
    height: 20px;
    margin-right: 0;
}

.pt-orders-page {
    width: 100%;
    display: flex;
    justify-content: center;
}

.pt-orders-page[hidden] {
    display: none;
}

.pt-orders-page-card {
    width: min(390px, 90vw);
    max-width: 390px;
    min-height: 420px;
    padding: 42px 42px 32px;
    justify-content: flex-start;
    border-radius: 31px;
}

.pt-orders-page-title {
    width: 100%;
    padding: 0;
    margin: 0 auto 24px;
    font-size: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-align: center;
    font-family: inter, Arial, sans-serif;
    font-weight: 500;
}

.pt-orders-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pt-orders-empty,
.pt-order-row {
    min-height: 48px;
    box-sizing: border-box;
    border-radius: 14px;
    background: #ffffff;
    color: #1c032a;
    font-family: inter, Arial, sans-serif;
}

.pt-orders-empty {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
}

.pt-order-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pt-order-row--clickable {
    cursor: pointer;
}

.pt-order-row--clickable:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(151, 114, 5, 0.14);
}

.pt-order-row--loading {
    opacity: 0.72;
    pointer-events: none;
}

.pt-order-row--clickable:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

.pt-order-row__icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1c274c;
}

.pt-order-row__icon svg {
    width: 16px;
    height: 16px;
    display: block;
    overflow: visible;
}

.pt-order-row__icon--hand {
    width: 18px;
    height: 22px;
    color: #2f3a5c;
}

.pt-order-row__icon--hand svg {
    width: 18px;
    height: 22px;
}

.pt-order-row__icon--check {
    width: 20px;
    height: 20px;
}

.pt-order-row__icon--check svg {
    width: 20px;
    height: 20px;
}

.pt-order-row__icon--chat {
    width: 18px;
    height: 18px;
    color: #1c274c;
}

.pt-order-row__icon--chat svg {
    width: 18px;
    height: 18px;
}

.pt-order-row__icon--failed {
    width: 20px;
    height: 20px;
    color: #4d1819;
}

.pt-order-row__icon--failed svg {
    width: 20px;
    height: 20px;
}

.pt-order-row__icon--activated,
.pt-order-row__icon--check {
    color: #234d19;
}

.pt-order-row__icon--chat {
    color: #1c274c;
}

.pt-order-row__icon--activation_error,
.pt-order-row__icon--wrong_platform,
.pt-order-row__icon--account_error,
.pt-order-row__icon--error,
.pt-order-row__icon--failed {
    color: #8b2424;
}

.pt-order-row__icon--failed {
    color: #4d1819;
}

.pt-order-row__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #163865;
    font-size: 14px;
}

.pt-order-row--activated .pt-order-row__name,
.pt-order-row--success .pt-order-row__name,
.pt-order-row--completed .pt-order-row__name {
    color: #315d33;
}

.pt-order-row--activation_error .pt-order-row__name,
.pt-order-row--wrong_platform .pt-order-row__name,
.pt-order-row--account_error .pt-order-row__name,
.pt-order-row--error .pt-order-row__name,
.pt-order-row--failed .pt-order-row__name {
    color: #4d1819;
}

.pt-order-row__date {
    color: #b3b0b8;
    font-size: 13px;
    white-space: nowrap;
}

.pt-orders-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 30px;
}

.pt-orders-dots[hidden] {
    display: none;
}

.pt-orders-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.pt-orders-dot:disabled {
    cursor: default;
}

.pt-orders-dot.is-active {
    background: #ffffff;
}

.pt-orders-dot:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

.pt-order-memo-page {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pt-order-memo-page[hidden] {
    display: none;
}

.pt-order-memo-card {
    width: min(560px, 90vw);
    max-width: 560px;
    min-height: 0;
    padding: 28px 42px 30px;
    justify-content: flex-start;
    border-radius: 31px;
}

.pt-order-memo-title {
    width: 100%;
    padding: 0;
    margin: 0 auto 16px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 500;
    text-align: center;
    color: #ffffff;
}

.pt-order-memo-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #ffffff;
    font-family: inter, Arial, sans-serif;
}

.pt-order-memo-name {
    margin-bottom: 2px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    text-align: center;
}

.pt-order-memo-code {
    margin: -4px 0 4px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
}

.pt-order-memo-lead {
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
}

.pt-order-memo-text {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 500;
    text-align: left;
}

.pt-order-memo-actions {
    margin-top: 18px;
    gap: 12px;
    max-width: 390px;
}

.pt-order-memo-page .btn {
    width: min(390px, 92vw);
    max-width: 390px;
    height: 46px;
    border-radius: 999px;
    font-size: var(--pt-card-control-font-size);
    font-weight: 500;
}

.pt-order-memo-page .rating-box {
    display: block;
    position: static;
    transform: none;
    width: min(390px, calc(100vw - 32px));
    max-width: 390px;
    min-width: 0;
    min-height: 0;
    margin: 12px auto 0;
    padding: 16px 22px 14px !important;
    border-radius: 24px;
    box-sizing: border-box;
    box-shadow: 0 10px 28px rgba(255, 178, 46, 0.12);
    z-index: auto !important;
}

.pt-order-memo-page .rating-box p {
    margin-bottom: 10px;
    font-size: 13px !important;
}

.pt-order-memo-page .rating-box .stars {
    gap: 4px;
}

.pt-order-memo-page .rating-box .star {
    width: 20px;
    height: 20px;
    margin-right: 0;
}

@media (max-width: 768px) {
    .pt-site-header {
        padding-top: 34px;
    }

    .pt-account-bar.is-expanded {
        width: min(520px, calc(100vw - 24px));
    }

    .main > .cyndyk {
        width: 150px;
        margin-bottom: 18px;
    }

    body:not(.pt-orders-mode) .main {
        margin-top: 38px;
    }

    body.pt-order-memo-mode .main {
        margin-top: 30px;
    }

    body.pt-order-memo-mode .main > .cyndyk {
        margin-bottom: 12px;
    }

    .pt-home-view .container {
        --pt-card-vertical-gap: 22px;
        width: min(390px, 94vw);
        min-height: 340px;
        padding: var(--pt-card-vertical-gap) 34px;
        border-radius: 28px;
    }

    .pt-home-view .pt-code-card--guest {
        min-height: 0;
        padding-top: var(--pt-card-vertical-gap);
        padding-bottom: var(--pt-card-vertical-gap);
    }

    .pt-home-view .pt-code-card-title {
        font-size: 18px;
    }

    .pt-home-view .input-field {
        height: 54px;
        font-size: 17px;
    }

    .pt-email-suggestion label,
    .pt-email-suggestion--compact {
        font-size: 15px;
    }

    .pt-email-suggestion input {
        height: 46px;
        font-size: 15px;
    }

    .pt-activate-btn {
        height: 44px;
    }

    .pt-order-memo-card {
        width: min(390px, 94vw);
        padding: 24px 28px 28px;
        border-radius: 28px;
    }

    .pt-order-memo-title {
        font-size: 18px;
    }

    .pt-order-memo-lead {
        font-size: 16px;
    }

    .pt-order-memo-text {
        font-size: 14px;
    }
}

@media (max-width: 560px) {
    .pt-account-bar {
        max-width: calc(100vw - 24px);
    }

    .pt-account-bar.is-expanded {
        height: auto;
        min-height: 42px;
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 24px;
    }

    .pt-account-bar.is-expanded .pt-account-bar__orders {
        width: 100%;
    }

    .pt-account-bar__fields {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr) 32px;
    }

    .pt-account-bar.is-expanded .pt-account-bar__fields {
        display: grid;
    }

    #siteLoginEmail,
    #siteOrderCodeInput {
        width: 100%;
    }

    .pt-account-bar.is-logged-in {
        flex-wrap: nowrap;
        border-radius: 999px;
    }

    .pt-account-bar.is-logged-in .pt-account-bar__orders {
        width: auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pt-account-bar.is-logged-in #siteOrdersLabel {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 480px) {
    .pt-site-header {
        padding-top: 20px;
    }

    body:not(.pt-orders-mode) .main {
        margin-top: 34px;
    }

    .pt-home-view {
        --pt-card-control-font-size: 15px;
    }

    .main > .cyndyk {
        width: 136px;
        margin-bottom: 18px;
    }

    .pt-home-view .container {
        --pt-card-vertical-gap: 18px;
        width: calc(100vw - 48px);
        min-height: 300px;
        padding: var(--pt-card-vertical-gap) 28px;
        border-radius: 20px;
    }

    .pt-home-view .pt-code-card--guest {
        min-height: 0;
        padding-top: var(--pt-card-vertical-gap);
        padding-bottom: var(--pt-card-vertical-gap);
    }

    .pt-home-view .pt-code-card-title {
        max-width: 320px;
        font-size: 15px;
        line-height: 1.22;
    }

    .pt-home-view .input-field {
        height: 48px;
        border-radius: 16px;
        font-size: 15px;
    }

    .pt-email-suggestion {
        gap: var(--pt-card-vertical-gap);
    }

    .pt-email-suggestion label,
    .pt-email-suggestion--compact {
        font-size: 14px;
    }

    .pt-email-suggestion input {
        height: 42px;
        border-radius: 14px;
        font-size: 14px;
    }

    .pt-activate-btn {
        height: 38px;
    }

    .pt-home-view .buttons {
        width: calc(100vw - 48px);
        gap: 10px;
        margin-top: 14px;
    }

    .pt-home-view .btn {
        width: calc(100vw - 48px);
        height: 38px;
    }

    .pt-home-view .rating-box {
        width: calc(100vw - 48px);
        padding: 13px 16px 11px !important;
        border-radius: 20px;
    }

    .pt-home-view .rating-box p {
        margin-bottom: 8px;
        font-size: 12px !important;
    }

    .pt-home-view .rating-box .star {
        width: 18px;
        height: 18px;
    }

    .pt-orders-page-card {
        width: min(330px, 88vw);
        min-height: 420px;
        padding: 34px 26px 28px;
        border-radius: 24px;
    }

    .pt-orders-page-title {
        max-width: 320px;
        font-size: 15px;
        line-height: 1.22;
    }
}

/* PlayTown unified frontend fixes */
.pt-home-view .input-field,
.pt-home-view #customerEmailField {
    height: 56px;
    border: 0;
    border-radius: 18px;
    background: #ffffff;
    color: #1c032a;
    box-sizing: border-box;
    padding: 0 20px;
    font-size: 18px;
    line-height: normal;
}

.pt-home-view .input-field::placeholder,
.pt-home-view #customerEmailField::placeholder {
    color: #c7c4cd;
}

.pt-home-view .input-field:focus,
.pt-home-view #customerEmailField:focus {
    border: 0;
    outline: none;
    box-shadow: none;
}

.pt-home-view .pt-activate-btn,
.pt-home-view .buttons .btn {
    min-height: 50px;
    height: 50px;
    border-radius: 37.5px;
    font-size: 16px;
    line-height: 1;
    padding: 0 15px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pt-home-view .pt-activate-btn:focus,
.pt-home-view .buttons .btn:focus {
    outline: none;
}

.pt-home-view .pt-activate-btn:focus-visible,
.pt-home-view .buttons .btn:focus-visible {
    outline: 2px solid rgba(28, 3, 42, 0.65);
    outline-offset: 2px;
}

.pt-home-view #getCodeBtn.btn-get-code {
    width: 90vw;
    max-width: 390px;
    height: 50px;
    border-radius: 37.5px;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 0 15px;
}

.pt-home-view #getCodeBtn.btn-get-code.btn-expanded {
    height: auto !important;
    min-height: 50px;
    padding: 15px;
    border-radius: 37.5px;
    transition: all 0.3s ease;
}

.pt-home-view #getCodeBtn .expanded-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pt-home-view #getCodeBtn .question {
    font-weight: bold;
    margin-bottom: 8px;
}

.pt-home-view #getCodeBtn .answer {
    font-size: 14px !important;
    font-weight: normal;
}

.desktop-error {
    top: 0;
}

.desktop-error.active {
    display: flex;
}

.mobile-error-popup.active {
    display: flex;
}

.rating-box,
.pt-order-memo-page .rating-box {
    width: 90vw;
    max-width: 340px;
    min-width: 380px;
    min-height: 70px;
    margin: 0;
    padding: 25px 25px 20px !important;
    border-radius: 35px;
    background: #FFE7BA;
    box-sizing: border-box;
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    text-align: center !important;
    z-index: 1 !important;
}

/* Рейтинг-бокс как «липкий футер» (десктоп): когда контента мало — прижат к
   низу экрана; когда много — идёт сразу под кнопками. Так он всегда «внизу
   страницы» и при этом никогда не перекрывает кнопку поддержки. На мобиле
   рейтинг уже идёт в потоке (см. медиа max-width:768px). Покрывает
   enter_code/result_code/done (body.pt-has-fixed-rating) и memo-страницу
   заказа (body.pt-order-memo-mode — класс ставится из main.js). */
@media (min-width: 769px) {
    body.pt-has-fixed-rating .main,
    body.pt-order-memo-mode .main {
        flex: 1 0 auto;
    }

    body.pt-order-memo-mode .pt-order-memo-page {
        flex: 1 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    body.pt-has-fixed-rating .rating-box,
    body.pt-order-memo-mode .pt-order-memo-page .rating-box {
        position: static;
        left: auto;
        bottom: auto;
        transform: none;
        margin: auto auto 20px;
        z-index: auto;
    }

    /* Зазор между кнопками и рейтинг-боксом — такой же, как между кнопками (15px).
       margin-top: auto у рейтинга схлопывается в 0 при длинном контенте, поэтому
       минимальный отступ задаём снизу у контейнера кнопок. */
    body.pt-has-fixed-rating .buttons,
    body.pt-order-memo-mode .pt-order-memo-actions {
        margin-bottom: 15px;
    }
}

.rating-box p,
.pt-order-memo-page .rating-box p {
    margin: 0 0 16px;
    font-size: 14px !important;
    font-weight: 600;
}

.rating-box .stars,
.pt-order-memo-page .rating-box .stars {
    gap: 8px;
}

.rating-box .star,
.pt-order-memo-page .rating-box .star {
    width: 22px;
    height: 22px;
    margin-right: 8px;
}

@media (max-width: 768px) {
    .pt-home-view .input-field,
    .pt-home-view #customerEmailField {
        height: 54px;
        border-radius: 18px;
        font-size: 17px;
        padding: 0 20px;
    }

    .pt-home-view .pt-activate-btn,
    .pt-home-view .buttons .btn {
        min-height: 45px;
        height: 45px;
        border-radius: 37.5px;
        font-size: 16px;
        padding: 0 15px;
    }

    .pt-home-view .buttons {
        width: 95vw;
        max-width: none;
    }

    .pt-home-view #getCodeBtn.btn-get-code {
        width: 95vw;
        max-width: none;
        height: 45px;
        border-radius: 37.5px;
        font-size: 16px;
        padding: 0 15px;
    }

    .pt-home-view #getCodeBtn.btn-get-code.btn-expanded {
        min-height: 45px;
        padding: 0 15px;
        border-radius: 37.5px;
    }

    .rating-box,
    .pt-order-memo-page .rating-box {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: 90vw;
        max-width: 400px;
        min-width: 0;
        min-height: 70px;
        margin: 30px auto;
        padding: 25px 25px 20px !important;
        border-radius: 35px;
        z-index: auto !important;
    }
}

@media (max-width: 480px) {
    .pt-home-view .input-field,
    .pt-home-view #customerEmailField {
        height: 48px;
        border-radius: 16px;
        font-size: 15px;
        padding: 0 20px;
    }

    .pt-home-view .pt-activate-btn,
    .pt-home-view .buttons .btn {
        min-height: 42px;
        height: 42px;
        border-radius: 25px;
        font-size: 15px;
        padding: 0 10px;
    }

    .pt-home-view .buttons {
        width: 98vw;
    }

    .pt-home-view #getCodeBtn.btn-get-code {
        width: 98vw;
        height: 42px;
        border-radius: 25px;
        font-size: 15px;
        padding: 0 10px;
    }

    .pt-home-view #getCodeBtn.btn-get-code.btn-expanded {
        min-height: 42px;
        padding: 0 10px;
        border-radius: 25px;
    }

    .pt-home-view #getCodeBtn .answer {
        font-size: 13px !important;
    }
}

@media (max-width: 320px) {
    .pt-home-view .pt-activate-btn,
    .pt-home-view .buttons .btn {
        min-height: 40px;
        height: 40px;
        border-radius: 20px;
        font-size: 14px;
        padding: 0 10px;
    }

    .pt-home-view .buttons {
        width: 95vw;
    }

    .pt-home-view #getCodeBtn.btn-get-code {
        width: 95vw;
        height: 40px;
        border-radius: 20px;
        font-size: 14px;
        padding: 0 10px;
    }

    .pt-home-view #getCodeBtn.btn-get-code.btn-expanded {
        min-height: 40px;
        padding: 8px;
        border-radius: 20px;
    }

    .pt-home-view #getCodeBtn .answer {
        font-size: 12px !important;
    }
}

/* Account bar mockup corrections */
.pt-account-bar:not(.is-expanded):not(.is-logged-in) {
    width: 181px;
    height: 51px;
    min-height: 51px;
    padding: 0;
    justify-content: center;
    background: #1A1A1A;
    border-radius: 155px;
}

.pt-account-bar:not(.is-expanded):not(.is-logged-in) .pt-account-bar__orders {
    width: 130px;
    height: 23px;
    min-height: 23px;
    gap: 11px;
    padding: 0;
    font-size: 17px;
    font-weight: 500;
    line-height: 130.61%;
}

.pt-account-bar:not(.is-expanded):not(.is-logged-in) .pt-lock-icon {
    width: 19px;
    height: 21px;
    flex: 0 0 19px;
}

.pt-account-bar.is-expanded {
    width: min(686px, calc(100vw - 32px));
    min-height: 57px;
    padding: 9px 10px 9px 20px;
    gap: 8px;
}

.pt-account-bar.is-expanded .pt-account-bar__orders {
    width: auto;
    height: 23px;
    min-height: 23px;
    gap: 11px;
    padding: 0;
    flex: 0 1 auto;
    min-width: 0;
    font-size: 19px;
    font-weight: 500;
    line-height: 130.61%;
}

.pt-account-bar.is-expanded .pt-lock-icon {
    width: 19px;
    height: 21px;
    flex: 0 0 19px;
}

.pt-account-bar.is-expanded .pt-account-bar__fields {
    display: grid;
    grid-template-columns: minmax(0, 276px) minmax(0, 175px) 39px;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.pt-account-bar__fields > * {
    min-width: 0;
}

.pt-account-bar.is-expanded .pt-account-bar__fields input {
    width: 100%;
    height: 39px;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 500;
    line-height: 130.61%;
}

.pt-account-bar.is-expanded #siteLoginEmail,
.pt-account-bar.is-expanded #siteOrderCodeInput {
    width: 100%;
}

.pt-account-bar.is-expanded .pt-account-bar__submit {
    display: inline-flex;
    width: 39px;
    height: 39px;
    font-size: 24px;
}

@media (max-width: 768px) {
    .pt-home-view .buttons {
        width: min(390px, calc(100vw - 48px));
        max-width: 390px;
    }

    .pt-home-view .buttons .btn,
    .pt-home-view #getCodeBtn.btn-get-code {
        width: 100%;
        max-width: 390px;
    }
}

@media (max-width: 560px) {
    .pt-account-bar.is-expanded {
        width: min(520px, calc(100vw - 24px));
        min-height: 0;
        padding: 10px;
        gap: 8px;
        border-radius: 28px;
    }

    .pt-account-bar.is-expanded .pt-account-bar__orders {
        width: 100%;
        flex: 0 0 auto;
        font-size: 17px;
        gap: 10px;
    }

    .pt-account-bar.is-expanded .pt-account-bar__fields {
        width: 100%;
        flex: 0 0 100%;
        grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.95fr) 39px;
        gap: 6px;
    }

    .pt-account-bar.is-expanded .pt-account-bar__fields input {
        height: 39px;
        padding: 0 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .pt-account-bar:not(.is-expanded):not(.is-logged-in) {
        width: 172px;
        height: 49px;
        min-height: 49px;
    }

    .pt-account-bar:not(.is-expanded):not(.is-logged-in) .pt-account-bar__orders {
        width: auto;
        height: 22px;
        min-height: 22px;
        gap: 9px;
        font-size: 16px;
    }

    .pt-account-bar:not(.is-expanded):not(.is-logged-in) .pt-lock-icon {
        width: 18px;
        height: 20px;
        flex-basis: 18px;
    }
}

@media (max-width: 360px) {
    .pt-account-bar:not(.is-expanded):not(.is-logged-in) {
        width: 164px;
        height: 46px;
        min-height: 46px;
    }

    .pt-account-bar:not(.is-expanded):not(.is-logged-in) .pt-account-bar__orders {
        font-size: 15px;
    }

    .pt-account-bar.is-expanded .pt-account-bar__fields {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr) 36px;
        gap: 5px;
    }

    .pt-account-bar.is-expanded .pt-account-bar__fields input {
        height: 36px;
        padding: 0 9px;
        font-size: 12px;
    }

    .pt-account-bar.is-expanded .pt-account-bar__submit {
        width: 36px;
        height: 36px;
        font-size: 21px;
    }
}

/* First-screen typography from the provided mockup */
.pt-home-view {
    --pt-card-title-font-size: 26.3626px;
    --pt-card-title-line-height: 34px;
    --pt-card-field-font-size: 19px;
    --pt-card-field-line-height: 23px;
    --pt-card-action-font-size: 19px;
    --pt-card-action-line-height: 130.61%;
}

.pt-home-view,
.pt-home-view .container,
.pt-home-view input,
.pt-home-view button,
.pt-site-header,
.pt-site-header input,
.pt-site-header button {
    font-family: 'Inter', inter, Arial, sans-serif;
}

.pt-home-view .pt-code-card-title,
.pt-home-view .input-field,
.pt-home-view #customerEmailField,
.pt-home-view .pt-activate-btn,
.pt-home-view .buttons .btn,
.pt-home-view #getCodeBtn.btn-get-code,
.pt-email-suggestion label,
.pt-email-suggestion--compact {
    font-family: 'Inter', inter, Arial, sans-serif !important;
}

.pt-home-view .pt-code-card-title,
.pt-email-suggestion label,
.pt-email-suggestion--compact {
    font-size: var(--pt-card-title-font-size);
    line-height: var(--pt-card-title-line-height) !important;
    font-weight: 400;
}

.pt-home-view .input-field,
.pt-home-view #customerEmailField {
    height: 64.5px;
    border-radius: 21px;
    font-size: var(--pt-card-field-font-size);
    line-height: var(--pt-card-field-line-height);
    font-weight: 400;
}

.pt-home-view .pt-activate-btn,
.pt-home-view .buttons .btn,
.pt-home-view #getCodeBtn.btn-get-code {
    min-height: 55.5px;
    height: 55.5px;
    border-radius: 45px;
    font-size: var(--pt-card-action-font-size);
    line-height: var(--pt-card-action-line-height) !important;
    font-weight: 500;
}

.pt-home-view #getCodeBtn.btn-get-code.btn-expanded {
    min-height: 55.5px;
    border-radius: 45px;
}

.pt-home-view #getCodeBtn .question {
    font-weight: 500;
}

@media (max-width: 768px) {
    .pt-home-view {
        --pt-card-title-font-size: 22px;
        --pt-card-title-line-height: 29px;
        --pt-card-field-font-size: 18px;
        --pt-card-field-line-height: 22px;
        --pt-card-action-font-size: 18px;
    }

    .pt-home-view .input-field,
    .pt-home-view #customerEmailField {
        height: 58px;
        border-radius: 19px;
    }

    .pt-home-view .pt-activate-btn,
    .pt-home-view .buttons .btn,
    .pt-home-view #getCodeBtn.btn-get-code {
        min-height: 50px;
        height: 50px;
        border-radius: 37.5px;
    }

    .pt-home-view #getCodeBtn.btn-get-code.btn-expanded {
        min-height: 50px;
        border-radius: 37.5px;
    }
}

@media (max-width: 480px) {
    .pt-home-view {
        --pt-card-title-font-size: 17px;
        --pt-card-title-line-height: 22px;
        --pt-card-field-font-size: 15px;
        --pt-card-field-line-height: 19px;
        --pt-card-action-font-size: 15px;
    }

    .pt-home-view .input-field,
    .pt-home-view #customerEmailField {
        height: 48px;
        border-radius: 16px;
    }

    .pt-home-view .pt-activate-btn,
    .pt-home-view .buttons .btn,
    .pt-home-view #getCodeBtn.btn-get-code {
        min-height: 42px;
        height: 42px;
        border-radius: 25px;
    }

    .pt-home-view #getCodeBtn.btn-get-code.btn-expanded {
        min-height: 42px;
        border-radius: 25px;
    }
}

@media (max-width: 320px) {
    .pt-home-view {
        --pt-card-title-font-size: 15px;
        --pt-card-title-line-height: 20px;
        --pt-card-field-font-size: 14px;
        --pt-card-field-line-height: 18px;
        --pt-card-action-font-size: 14px;
    }

    .pt-home-view .pt-activate-btn,
    .pt-home-view .buttons .btn,
    .pt-home-view #getCodeBtn.btn-get-code {
        min-height: 40px;
        height: 40px;
        border-radius: 20px;
    }

    .pt-home-view #getCodeBtn.btn-get-code.btn-expanded {
        min-height: 40px;
        border-radius: 20px;
    }
}

@media (min-width: 769px) {
    body:not(.pt-orders-mode) .main {
        margin-top: 34px;
    }

    .main > .cyndyk {
        width: 120px;
        margin-bottom: 16px;
    }

    .pt-home-view {
        --pt-card-vertical-gap: 18px;
        --pt-card-title-font-size: 21px;
        --pt-card-title-line-height: 27px;
        --pt-card-field-font-size: 15.2px;
        --pt-card-field-line-height: 18.4px;
        --pt-card-action-font-size: 15.2px;
    }

    .pt-home-view .container {
        width: min(336px, 92vw);
        max-width: 336px;
        min-height: 0;
        padding: var(--pt-card-vertical-gap) 34px;
        gap: var(--pt-card-vertical-gap);
        border-radius: 24px;
    }

    .pt-home-view .pt-code-card-title {
        max-width: 272px;
    }

    .pt-home-view .input-field,
    .pt-home-view #customerEmailField {
        height: 52px;
        border-radius: 17px;
        padding: 0 16px;
    }

    .pt-email-suggestion {
        gap: var(--pt-card-vertical-gap);
    }

    .pt-home-view .pt-email-suggestion.is-active label,
    .pt-email-suggestion label,
    .pt-email-suggestion--compact {
        font-weight: 400;
    }

    .pt-home-view .pt-activate-btn,
    .pt-home-view .buttons .btn,
    .pt-home-view #getCodeBtn.btn-get-code {
        min-height: 44px;
        height: 44px;
        border-radius: 36px;
    }

    .pt-home-view .buttons {
        max-width: 312px;
        margin-top: 13px;
        gap: 10px;
    }

    .pt-home-view .buttons .btn,
    .pt-home-view #getCodeBtn.btn-get-code {
        width: min(312px, 92vw);
        max-width: 312px;
    }

    .pt-home-view #getCodeBtn.btn-get-code.btn-expanded {
        min-height: 44px;
        border-radius: 36px;
        padding: 12px;
    }
}

.pt-home-view .pt-email-suggestion.is-active label {
    font-weight: 400;
}

/* SystemSeller geometry lock.
   Keep PlayTown colors/content, but use donor dimensions, spacing, radii and type scale. */
.pt-home-view {
    --pt-card-title-font-size: 18px;
    --pt-card-title-line-height: 21.6px;
    --pt-card-field-font-size: 16px;
    --pt-card-action-font-size: 16px;
    --pt-card-action-line-height: 19.2px;
    --pt-field-width: 300px;
    --pt-field-height: 60px;
    --pt-button-width: 390px;
    --pt-button-height: 50px;
    --pt-system-gap: 30px;
}

.pt-home-view .container {
    width: 90vw;
    max-width: 340px;
    min-height: 250px;
    padding: 20px;
    gap: 0;
    justify-content: center;
    border-radius: 37.5px;
    overflow: visible;
}

.pt-home-view .pt-code-card--guest {
    padding-top: 34px;
    padding-bottom: 34px;
}

.pt-home-view .pt-code-card-title {
    width: 100%;
    max-width: 380px;
    margin: 0 0 var(--pt-system-gap);
    padding: 0 20px;
    box-sizing: border-box;
    font-size: var(--pt-card-title-font-size);
    line-height: var(--pt-card-title-line-height) !important;
    font-weight: 400;
}

.pt-home-view .input-wrapper {
    width: 100%;
}

.pt-home-view .input-field,
.pt-home-view #customerEmailField {
    width: 90vw;
    max-width: var(--pt-field-width);
    height: var(--pt-field-height);
    border-radius: 21px;
    padding: 0 20px;
    font-size: var(--pt-card-field-font-size);
    line-height: normal;
    font-weight: 400;
}

.pt-email-suggestion {
    width: 100%;
    max-width: none;
    margin: var(--pt-system-gap) 0 0;
    gap: var(--pt-system-gap);
}

.pt-email-suggestion label,
.pt-email-suggestion--compact,
.pt-home-view .pt-email-suggestion.is-active label {
    padding: 0 20px;
    font-size: var(--pt-card-title-font-size);
    line-height: var(--pt-card-title-line-height) !important;
    font-weight: 400;
}

.pt-email-suggestion--compact {
    margin: var(--pt-system-gap) 0 0;
}

.pt-home-view .pt-activate-btn {
    width: 90vw;
    max-width: var(--pt-field-width);
    min-height: var(--pt-button-height);
    height: var(--pt-button-height);
    margin: var(--pt-system-gap) 0 0;
    border-radius: 37.5px;
    font-size: var(--pt-card-action-font-size);
    line-height: var(--pt-card-action-line-height) !important;
    font-weight: 400;
    padding: 0 15px;
}

.pt-home-view .buttons {
    width: 100%;
    max-width: var(--pt-button-width);
    margin-top: var(--pt-system-gap);
    gap: 15px;
}

.pt-home-view .buttons .btn,
.pt-home-view #getCodeBtn.btn-get-code {
    width: 90vw;
    max-width: var(--pt-button-width);
    min-height: var(--pt-button-height);
    height: var(--pt-button-height);
    border-radius: 37.5px;
    padding: 0 15px;
    font-size: var(--pt-card-action-font-size);
    line-height: var(--pt-card-action-line-height) !important;
    font-weight: 400;
}

.pt-home-view #getCodeBtn.btn-get-code.btn-expanded {
    min-height: var(--pt-button-height);
    height: auto !important;
    padding: 15px;
    border-radius: 37.5px;
}

.pt-home-view #getCodeBtn .question {
    margin-bottom: 8px;
    font-size: var(--pt-card-action-font-size);
    line-height: var(--pt-card-action-line-height) !important;
    font-weight: 700;
}

.pt-home-view #getCodeBtn .answer {
    font-size: 14px !important;
    line-height: 16.8px !important;
    font-weight: 400;
}

.rating-box,
.pt-order-memo-page .rating-box {
    width: 90vw;
    max-width: 340px;
    min-width: 380px;
    min-height: 70px;
    padding: 25px 25px 20px !important;
    border-radius: 35px;
}

.rating-box p,
.pt-order-memo-page .rating-box p {
    margin: 0 0 16px;
    font-size: 14px !important;
    line-height: 16.8px;
    font-weight: 600;
}

.rating-box .stars,
.pt-order-memo-page .rating-box .stars {
    gap: 8px;
}

.rating-box .star,
.pt-order-memo-page .rating-box .star {
    width: 22px;
    height: 22px;
    margin-right: 8px;
}

.pt-orders-page-card {
    width: 90vw;
    max-width: 340px;
    min-height: 420px;
    padding: 42px 30px 32px;
    border-radius: 37.5px;
}

.pt-orders-page-title {
    margin-bottom: 24px;
    font-size: 18px;
    line-height: 21.6px;
    font-weight: 400;
}

.pt-order-row {
    min-height: 64.5px;
    border-radius: 21px;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    padding: 0 22px;
    gap: 14px;
}

.pt-order-row__name,
.pt-order-row__date {
    font-size: 19px;
    line-height: 23px;
    font-weight: 400;
}

.pt-orders-dots {
    gap: 7px;
    padding-top: 30px;
}

.pt-orders-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.38);
}

.pt-orders-dot.is-active {
    background: #ffffff;
}

@media (max-width: 768px) {
    .pt-home-view {
        --pt-card-title-font-size: 16px;
        --pt-card-title-line-height: 19.2px;
        --pt-card-field-font-size: 15px;
        --pt-card-action-font-size: 16px;
        --pt-card-action-line-height: 19.2px;
        --pt-button-width: none;
    }

    .pt-home-view .container {
        width: 90vw;
        max-width: 340px;
        min-height: 250px;
        padding: 20px;
        border-radius: 37.5px;
    }

    .pt-home-view .pt-code-card--guest {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .pt-home-view .input-field,
    .pt-home-view #customerEmailField {
        width: 85vw;
        max-width: 300px;
        height: 55px;
    }

    .pt-home-view .pt-activate-btn {
        height: 45px;
        min-height: 45px;
        border-radius: 37.5px;
        font-size: 16px;
        line-height: 19.2px !important;
        font-weight: 400;
    }

    .pt-home-view .buttons {
        width: 95vw;
        max-width: none;
        margin-top: 30px;
        gap: 15px;
    }

    .pt-home-view .buttons .btn,
    .pt-home-view #getCodeBtn.btn-get-code {
        width: 95vw;
        max-width: none;
        height: 45px;
        min-height: 45px;
        border-radius: 37.5px;
        font-size: 16px;
    }

    .pt-home-view #getCodeBtn.btn-get-code.btn-expanded {
        min-height: 45px;
        padding: 0 15px;
        border-radius: 37.5px;
    }

    .rating-box,
    .pt-order-memo-page .rating-box {
        width: 90vw;
        max-width: 400px;
        min-width: 0;
        min-height: 70px;
        margin: 30px auto;
        border-radius: 35px;
    }
}

@media (max-width: 480px) {
    .pt-home-view {
        --pt-card-title-font-size: 15px;
        --pt-card-title-line-height: 18px;
        --pt-card-field-font-size: 14px;
        --pt-card-action-font-size: 15px;
        --pt-card-action-line-height: 18px;
        --pt-system-gap: 20px;
    }

    .pt-home-view .container {
        width: 90vw;
        max-width: 340px;
        min-height: 250px;
        margin: 10px auto;
        padding: 20px;
        border-radius: 37.5px;
    }

    .pt-home-view .pt-code-card--guest {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .pt-home-view .pt-code-card-title {
        max-width: none;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .pt-home-view .input-field,
    .pt-home-view #customerEmailField {
        width: 90vw;
        max-width: 300px;
        height: 50px;
        border-radius: 21px;
        font-size: 14px;
    }

    .pt-email-suggestion {
        margin-top: 20px;
        gap: 20px;
    }

    .pt-email-suggestion label,
    .pt-email-suggestion--compact,
    .pt-home-view .pt-email-suggestion.is-active label {
        padding: 0 10px;
        font-size: 15px;
        line-height: 18px !important;
    }

    .pt-home-view .pt-activate-btn {
        width: 90vw;
        max-width: 300px;
        height: 42px;
        min-height: 42px;
        margin-top: 20px;
        border-radius: 25px;
        font-size: 15px;
        line-height: 18px !important;
        font-weight: 400;
        padding: 0 12px;
    }

    .pt-home-view .buttons {
        width: 98vw;
        max-width: none;
        margin-top: 20px;
        gap: 12px;
    }

    .pt-home-view .buttons .btn,
    .pt-home-view #getCodeBtn.btn-get-code {
        width: 98vw;
        max-width: none;
        height: 42px;
        min-height: 42px;
        border-radius: 25px;
        font-size: 15px;
        line-height: 18px !important;
        padding: 0 10px;
    }

    .pt-home-view #getCodeBtn.btn-get-code.btn-expanded {
        min-height: 42px;
        padding: 10px;
        border-radius: 25px;
    }

    .pt-home-view #getCodeBtn .question {
        font-size: 15px;
        line-height: 18px !important;
    }

    .pt-home-view #getCodeBtn .answer {
        font-size: 13px !important;
        line-height: 15.6px !important;
    }

    .rating-box,
    .pt-order-memo-page .rating-box {
        width: 90vw;
        max-width: 400px;
        padding: 25px 25px 20px !important;
        border-radius: 15px;
    }

    .pt-orders-page-card {
        width: 98vw;
        max-width: none;
        border-radius: 20px;
        padding: 34px 15px 28px;
    }

    .pt-orders-page-title {
        font-size: 15px;
        line-height: 18px;
    }

    .pt-order-row {
        min-height: 64.5px;
        border-radius: 21px;
        padding: 0 16px;
        gap: 12px;
    }

    .pt-order-row__name,
    .pt-order-row__date {
        font-size: 15px;
        line-height: 18px;
    }
}

@media (max-width: 360px) {
    .pt-home-view .input-field,
    .pt-home-view #customerEmailField,
    .pt-home-view .pt-activate-btn {
        width: calc(90vw - 24px);
        max-width: 300px;
    }
}

@media (max-width: 320px) {
    .pt-home-view {
        --pt-card-title-font-size: 14px;
        --pt-card-title-line-height: 16.8px;
        --pt-card-field-font-size: 13px;
        --pt-card-action-font-size: 14px;
        --pt-card-action-line-height: 16.8px;
    }

    .pt-home-view .container {
        width: 90vw;
        min-height: 250px;
        padding: 20px;
        border-radius: 37.5px;
    }

    .pt-home-view .pt-code-card--guest {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .pt-home-view .input-field,
    .pt-home-view #customerEmailField {
        width: calc(90vw - 24px);
        max-width: 300px;
        height: 45px;
        font-size: 13px;
    }

    .pt-home-view .pt-activate-btn {
        width: calc(90vw - 24px);
        max-width: 300px;
        height: 40px;
        min-height: 40px;
        border-radius: 20px;
        font-size: 14px;
        line-height: 16.8px !important;
        font-weight: 400;
    }

    .pt-home-view .buttons {
        width: 100%;   /* было 100vw — вылезало за край в Safari */
        gap: 10px;
    }

    .pt-home-view .buttons .btn,
    .pt-home-view #getCodeBtn.btn-get-code {
        width: 95vw;
        height: 40px;
        min-height: 40px;
        border-radius: 20px;
        font-size: 14px;
        line-height: 16.8px !important;
    }

    .pt-home-view #getCodeBtn.btn-get-code.btn-expanded {
        min-height: 40px;
        padding: 8px;
        border-radius: 20px;
    }

    .pt-home-view #getCodeBtn .question {
        font-size: 14px;
        line-height: 16.8px !important;
    }

    .pt-home-view #getCodeBtn .answer {
        font-size: 12px !important;
        line-height: 14.4px !important;
    }
}

/* === Сундук ре-скин: тёмный текст на жёлтых карточках/кнопках (PlayTown был белым на фиолетовом) === */
.container .text,
.pt-code-card-title,
.pt-email-suggestion,
.pt-email-suggestion label,
.pt-email-suggestion--compact,
.btn-get-code,
.btn-continue,
.pt-activate-btn,
.console-change-link,
.chat-btn,
.activated-message,
.pt-orders-page-title,
.pt-order-memo-title,
.pt-order-memo-content,
.pt-order-memo-name,
.pt-order-memo-code,
.loader,
.loading-container {
    color: #1A1A1A !important;
}

/* Красные поп-апы ошибок и чёрная плашка «Мои заказы» — текст остаётся белым */
.desktop-error,
.mobile-error-popup,
.pt-account-bar__orders,
#siteOrdersLabel,
.pt-account-bar__submit,
.pt-account-bar__logout,
.pt-header-btn--dark {
    color: #ffffff !important;
}

/* Сундук: «Активировать» — контрастная тёмная кнопка на жёлтой карточке */
.pt-activate-btn,
.pt-home-view .pt-activate-btn {
    background: #1A1A1A !important;
    background-image: none !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18) !important;
}
.pt-activate-btn:hover,
.pt-home-view .pt-activate-btn:hover {
    background: #000000 !important;
}

/* Сундук: ссылки в FAQ/инструкциях/памятке — контрастный тёмно-синий на жёлтом (был дефолтный светлый) */
.answer a,
.expanded-text a,
.text a,
.pt-order-memo-content a,
.activated-message a {
    color: #0a3d91 !important;
    font-weight: 600;
    text-decoration: underline;
}
.answer a:hover,
.expanded-text a:hover,
.text a:hover,
.pt-order-memo-content a:hover {
    color: #062a66 !important;
}

/* OTP cabinet login: one visible field (email OR code) + a round submit */
.pt-account-bar.is-expanded {
    width: fit-content;
    max-width: 94vw;
}
.pt-account-bar.is-expanded .pt-account-bar__fields {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
}
.pt-account-bar.is-expanded #siteLoginEmail {
    flex: 0 0 auto;
    width: 240px !important;
    min-width: 0;
}
.pt-account-bar.is-expanded #siteOtpInput {
    flex: 0 0 auto;
    width: 316px !important;
    min-width: 0;
}
.pt-account-bar.is-expanded #siteOrdersLabel {
    max-width: min(340px, 46vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pt-account-bar__fields input[hidden] { display: none !important; }
#siteOtpInput { letter-spacing: 4px; text-align: center; font-weight: 600; }
.pt-account-bar.is-expanded .pt-account-bar__submit {
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
}
.pt-account-bar__error.is-info { color: #444444; }
.pt-bar-link { color: #c77600; text-decoration: underline; cursor: pointer; font-weight: 600; }
.pt-bar-link:hover { color: #a85f00; }

/* ============================================================
   Экран согласия при первой регистрации (accept_terms.html)
   ============================================================ */

/* Карточка согласия: контент растянут (чекбоксы слева, кнопка на всю ширину) */
.pt-home-view .container.pt-consent-card {
    align-items: stretch;
    gap: 0;
    padding: 28px 26px;
    /* Ширина как у карточки первого экрана (.ts-card), иначе наследуется
       общее правило .pt-home-view .container = 340px и карточка выглядит
       уже кнопок под ней. */
    width: 420px;
    max-width: 90vw;
}

/* Кнопки под карточкой согласия — как .ts-buttons на первом экране. */
.pt-home-view .buttons.pt-consent-buttons {
    width: 390px;
    max-width: 90vw;
}
.pt-consent-title {
    margin: 0 0 22px;
}

.pt-consent-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}
.pt-consent-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}
.pt-consent-check__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}
.pt-consent-check__box {
    display: block;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border-radius: 4px;
    background: #ffffff;
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.15s ease;
}
.pt-consent-check__input:focus-visible + .pt-consent-check__box {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.28);
}
.pt-consent-check__input:checked + .pt-consent-check__box::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 11px;
    border: solid #1a1a1a;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.pt-consent-check__text {
    font: 400 15px/1.35 inter, Arial, sans-serif;
    color: #1A1A1A;
    text-align: left;
}
.pt-consent-link,
.pt-consent-check__text .pt-consent-link {
    color: #1A1A1A !important;
    text-decoration: underline;
    font-weight: 400;
    cursor: pointer;
}
.pt-consent-link:hover { color: #000000 !important; }

.pt-consent-error {
    margin-top: 14px;
    text-align: center;
    color: #7a1a1a;
    font: 13px/1.4 inter, Arial, sans-serif;
}

/* Кнопка «Подтвердить и продолжить»: тёмная активная / оранжевая неактивная (по макету) */
.pt-consent-submit {
    width: 100%;
    height: 52px;
    margin: 26px 0 0;
    border: 0;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #252525;
    color: #ffffff;
    font: 500 17px/1 inter, Arial, sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.pt-consent-submit:hover { background: #000000; }
.pt-consent-submit:disabled {
    cursor: default;
    background: #D29426;
    color: #FFB42F;
}

/* «Зачем это нужно?» — плавно раскрывающаяся кнопка (текст тёмный, как остальные .btn-get-code Сундука).
   Анимация через max-height/opacity: высота кнопки (height:auto) плавно растёт вслед за раскрытием ответа. */
.pt-home-view .buttons .btn.pt-why-btn {
    height: auto;
    min-height: var(--pt-button-height, 50px);
    padding: 6px 18px;
    border-radius: 24px;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    transition: background 0.2s ease;
}
.pt-why-btn__q { font-weight: 500; line-height: 1.25; }
.pt-why-btn__a {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    transition: max-height 0.34s ease, opacity 0.28s ease, margin-top 0.34s ease;
}
.pt-why-btn.is-open .pt-why-btn__a {
    max-height: 240px;
    opacity: 1;
    margin-top: 8px;
}

/* Кнопка поддержки на экране согласия — серая (по макету) */
.pt-home-view .buttons .btn.pt-consent-support {
    background: #DEDEDE !important;
    color: #505050 !important;
}

/* Бар согласия сверху — некликабельный (email + подсказка «Примите условия в окне ниже») */
.pt-account-bar--consent { cursor: default; }
.pt-account-bar--consent #siteOtpInput { cursor: default; }
.pt-account-bar--consent .pt-account-bar__submit { cursor: default; pointer-events: none; }

/* ============================================================
   Ссылки на документы внизу ЛК (видны только в режиме заказов)
   ============================================================ */
.pt-legal-links {
    order: 1000;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0 auto 24px;
    z-index: 1100;
}
body.pt-orders-mode .pt-legal-links { display: flex; }
.pt-legal-link {
    color: #1A1A1A;
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
}
.pt-legal-link:hover { color: #000000; }

/* ============================================================
   Всплывающие юридические документы (legal_modals.html) — по макету:
   жёлтая карточка в стиле сайта, тонкий крестик, жёлтый скроллбар, затухание снизу
   ============================================================ */
body.pt-legal-modal-open { overflow: hidden; }

.pt-legal-modal .pt-legal-modal__box {
    width: min(861px, 94vw);
    max-width: min(861px, 94vw);
    height: min(841px, 88vh);
    max-height: min(841px, 88vh);
    padding: 26px 24px 22px;
    box-sizing: border-box;
    border-radius: 37.5px;
    background: linear-gradient(180deg, #FFBC0B 0%, #FFB144 100%);
    box-shadow: 0 3px 45px rgba(129, 97, 9, 0.31);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    color: #1A1A1A;
}

/* Крестик закрытия — тонкий, цвет #B38510 */
.pt-legal-modal__close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 3;
}
.pt-legal-modal__close::before,
.pt-legal-modal__close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: #B38510;
}
.pt-legal-modal__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.pt-legal-modal__close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.pt-legal-modal__title {
    flex: 0 0 auto;
    margin: 2px 40px 18px;
    text-align: center;
    font: 700 19px/1.3 inter, Arial, sans-serif;
    color: #1A1A1A;
}

/* Прокручиваемая область с жёлтым скроллбаром */
.pt-legal-modal__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 16px 10px 2px;
    scrollbar-width: thin;
    scrollbar-color: #AC8636 #FFCB6B;
}
.pt-legal-modal__scroll::-webkit-scrollbar { width: 11px; }
.pt-legal-modal__scroll::-webkit-scrollbar-track {
    background: #FFCB6B;
    border-radius: 113px;
    margin: 2px 0;
}
.pt-legal-modal__scroll::-webkit-scrollbar-thumb {
    background: #AC8636;
    border-radius: 113px;
}

.pt-legal-modal__body {
    color: #1A1A1A;
    font: 400 19px/1.3061 inter, Arial, sans-serif;
    text-align: left;
}
.pt-legal-modal__body h4 {
    margin: 18px 0 6px;
    font-size: 19px;
    font-weight: 700;
    color: #1A1A1A;
}
.pt-legal-modal__body p { margin: 0 0 14px; }
.pt-legal-modal__body p:last-child { margin-bottom: 0; }

/* Затухание текста у нижнего края карточки */
.pt-legal-modal__fade {
    position: absolute;
    left: 24px;
    right: 32px;
    bottom: 22px;
    height: 66px;
    border-radius: 0 0 24px 24px;
    background: linear-gradient(180deg, rgba(255, 178, 61, 0) 0%, #FFB142 100%);
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 640px) {
    .pt-legal-modal .pt-legal-modal__box { padding: 20px 16px 18px; border-radius: 28px; }
    .pt-legal-modal__title { font-size: 16px; margin-bottom: 14px; }
    .pt-legal-modal__body,
    .pt-legal-modal__body h4 { font-size: 15px; }
    .pt-legal-modal__scroll { padding-right: 12px; }
}

/* --- Первый экран: плашка ошибки не перекрывает поля --- */
/* До 1024px плашка стоит в потоке под своим полем: она раздвигает карточку,
   а не ложится поверх подписи "...и Ваш email:" и кнопки "Активировать". */
@media (max-width: 1024px) {
    .input-wrapper .mobile-error-popup,
    .pt-email-suggestion .mobile-error-popup {
        position: relative;
        top: auto !important;
        left: auto;
        transform: none;
        margin: 12px auto 0;
        width: 100%;
        max-width: var(--pt-field-width, 300px);
        height: auto;
        min-height: 0;
        max-height: none;
        padding: 9px 14px;
        box-sizing: border-box;
        line-height: 1.25;
    }

    .input-wrapper .mobile-error-popup:before,
    .pt-email-suggestion .mobile-error-popup:before {
        top: -9px;
    }
}

/* Десктопный «пузырь» справа от карточки: не даём ему уехать за край экрана
   на узких десктопах (1025-1090px). На широких значение остаётся прежним. */
@media (min-width: 1025px) {
    .desktop-error {
        left: min(380px, calc(50vw - 177px));
    }
}

/* --- Нижние кнопки выравниваем по ширине карточки --- */
/* Карточка на мобильных = min(90vw, 420px); кнопки были 98vw и торчали за её края. */
@media (max-width: 1024px) {
    .pt-home-view .buttons {
        width: 90vw;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    .pt-home-view .buttons .btn,
    .pt-home-view #getCodeBtn.btn-get-code,
    .pt-home-view #getCodeBtn.btn-get-code.btn-expanded {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }
}

/* --- Переключатель языка всегда на виду --- */
/* Был в конце потока страницы: на телефоне до него нужно было листать. */
.language-switcher {
    position: fixed;
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    margin: 0;
}

body {
    padding-bottom: 46px;
}

/* --- Плашка оценки не должна наезжать на переключатель языка --- */
/* На десктопе .rating-box зафиксирована у низа экрана, там же теперь и EN/RU,
   поэтому поднимаем плашку. На мобильных она в потоке — правило не применяем. */
@media (min-width: 769px) {
    .rating-box,
    .pt-order-memo-page .rating-box {
        bottom: 44px;
    }
}

/* --- ЛК: юр. ссылки и EN/RU одним закреплённым блоком --- */
/* Ссылки показываются только в режиме заказов и стояли последними в потоке, поэтому
   на непрокрученной странице заезжали под закреплённый переключатель языка. Теперь
   они закреплены прямо над ним, а под стопку зарезервировано место. */
body.pt-orders-mode .pt-legal-links,
body.pt-order-memo-mode .pt-legal-links {
    display: flex;
    position: fixed;
    left: 50%;
    bottom: calc(41px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    margin: 0;
    width: max-content;
    max-width: 92vw;
}

body.pt-orders-mode,
body.pt-order-memo-mode {
    padding-bottom: 96px;
}

/* --- Бар кабинета на телефоне: строка ввода по ширине бара --- */
/* Поле было жёстко 240px (а на шаге кода — 316px), строка не растягивалась,
   поэтому блок «поле + стрелка» прижимался влево и справа оставалась пустота.
   На мобильных поле тянется, кнопка остаётся у правого края, высоты равны. */
@media (max-width: 768px) {
    .pt-account-bar.is-expanded .pt-account-bar__fields {
        width: 100%;
        flex: 1 1 auto;
        align-items: center;
    }

    .pt-account-bar.is-expanded #siteLoginEmail,
    .pt-account-bar.is-expanded #siteOtpInput {
        flex: 1 1 auto;
        width: auto !important;
        min-width: 0;
        height: 39px;
        box-sizing: border-box;
    }

    .pt-account-bar.is-expanded .pt-account-bar__submit {
        flex: 0 0 auto;
    }
}


/* ===== Тестовая витрина: первый экран и экран логина строго по макету =====
   Карточка 465x519 (экран кода) и 465x435 (экран почты), поля 350.25x64.5,
   радиусы 37.5 / 21 / 45. Внутренние элементы — 75.32% ширины карточки
   (350.25/465), чтобы пропорции макета сохранялись и на телефоне. */
body .ts-card {
    width: 465px;
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
    padding: 50px 0 0;
    background: linear-gradient(180deg, #FFBC0B 0%, #FFB144 100%);
    box-shadow: 0 3px 45px rgba(129, 97, 9, 0.31);
    border-radius: 37.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

body .ts-card .ts-step {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 50px;
}

body .ts-card .ts-card-title {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 400;
    font-size: 26.3626px;
    line-height: 34px;
    text-align: center;
    color: #000;
    margin: 0 0 25px;
}

body .ts-card .ts-field {
    position: relative;
    width: 75.32%;
    height: 64.5px;
    margin: 0;
}

body .ts-card .ts-field input {
    width: 100%;
    height: 64.5px;
    box-sizing: border-box;
    padding: 0 62px 0 24px;
    background: #FFFFFF;
    border: none;
    border-radius: 21px;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 400;
    font-size: 19px;
    line-height: 23px;
    text-align: center;
    color: #000;
    outline: none;
}

body .ts-card .ts-field input::placeholder { color: #B9B9B9; }

/* Кнопка перехода живёт внутри поля и появляется, только когда введён код */
body .ts-card .ts-field-go {
    position: absolute;
    right: 12.25px;
    top: 12.25px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 9px;
    background: #DEDEDE;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

body .ts-card .ts-field-go[hidden] { display: none; }

body .ts-card .ts-field-go__chevron {
    width: 5.77px;
    height: 12px;
    border-right: 2px solid #505050;
    border-top: 2px solid #505050;
    transform: rotate(45deg);
    margin-left: -2px;
}

body .ts-card .ts-or {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 400;
    font-size: 26.3626px;
    line-height: 34px;
    color: #000;
    margin: 25px 0;
}

body .ts-card .ts-bot,
body .ts-card .ts-oauth {
    width: 75.32%;
    height: 64.5px;
    box-sizing: border-box;
    padding: 0 17px;
    border: none;
    border-radius: 21px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}

body .ts-card .ts-bot + .ts-bot { margin-top: 20px; }

body .ts-card .ts-bot--tg { background: #3C3C3C; }

body .ts-card .ts-bot__text,
body .ts-card .ts-oauth__text {
    flex: 1 1 auto;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 400;
    font-size: 19px;
    line-height: 23px;
    text-align: center;
    color: #000;
}

body .ts-card .ts-bot--tg .ts-bot__text { color: #FFFFFF; }

body .ts-card .ts-bot__icon,
body .ts-card .ts-oauth__logo { flex: 0 0 auto; display: flex; align-items: center; }

body .ts-card .ts-form-error {
    width: 75.32%;
    margin-top: 12px;
    font: 13px/1.35 'Inter', Arial, sans-serif;
    color: #9F0404;
    text-align: center;
}

/* Нижние кнопки — ширина карточки, как в макете */
body .ts-buttons { width: 465px; max-width: calc(100vw - 40px); }

@media (max-width: 560px) {
    body .ts-card { padding-top: 34px; border-radius: 30px; }
    body .ts-card .ts-step { padding-bottom: 34px; }
    body .ts-card .ts-card-title { font-size: 20px; line-height: 26px; margin-bottom: 18px; }
    body .ts-card .ts-field,
    body .ts-card .ts-bot,
    body .ts-card .ts-oauth { width: 82%; height: 54px; }
    body .ts-card .ts-field input { height: 54px; font-size: 16px; padding-right: 54px; }
    body .ts-card .ts-field-go { width: 34px; height: 34px; top: 10px; right: 10px; }
    body .ts-card .ts-or { font-size: 20px; margin: 18px 0; }
    body .ts-card .ts-bot__text,
    body .ts-card .ts-oauth__text { font-size: 16px; }
    body .ts-card .ts-bot + .ts-bot { margin-top: 14px; }
}


/* hidden должен побеждать: без этого оба шага карточки видны одновременно */
body .ts-card .ts-step[hidden] { display: none !important; }

/* Нижние кнопки по макету: 55.5px, радиус 45, «Где взять код?» — градиент,
   поддержка — серая (#DEDEDE / #505050), а не красная как на боевом сайте. */
body .ts-buttons .btn {
    width: 100%;
    height: 55.5px;
    border: none;
    border-radius: 45px;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 500;
    font-size: 19px;
    line-height: 130.61%;
    cursor: pointer;
}

body .ts-buttons .btn-get-code {
    background: linear-gradient(90deg, #FFB240 0%, #FFB52E 100%);
    color: #000000;
}

body .ts-buttons .btn-support {
    background-color: #DEDEDE !important;
    color: #505050 !important;
}

@media (max-width: 560px) {
    body .ts-buttons .btn { height: 48px; font-size: 16px; }
}

/* Кнопка перехода лежит поверх поля: иначе клик перехватывает сам input
   (ts-field-go поверх поля) */
body .ts-card .ts-field input { position: relative; z-index: 1; }
body .ts-card .ts-field-go { z-index: 2; }

/* Ширина карточки строго по макету: у .container в базовых стилях max-width 420px,
   и он выигрывает у моих правил, поэтому здесь важность обязательна. */
body .ts-card {
    width: 465px !important;
    max-width: calc(100vw - 40px) !important;
}

body .ts-buttons {
    width: 465px !important;
    max-width: calc(100vw - 40px) !important;
}

/* Скрытые нижние кнопки: у .btn есть display, который перебивает атрибут hidden,
   поэтому «Какую почту можно использовать?» показывалась и на первом экране. */
body .ts-buttons .btn[hidden] { display: none !important; }

/* Высота карточки первого экрана по макету — 519px */
body .ts-card #tsStepCode { padding-bottom: 55px; }

/* В макете подписи кнопок в одну строку (238px и 210px), поэтому запрещаем перенос
   и на узких экранах уменьшаем кегль вместо переноса. */
body .ts-card .ts-bot__text,
body .ts-card .ts-oauth__text { white-space: nowrap; }

@media (max-width: 400px) {
    body .ts-card .ts-bot__text,
    body .ts-card .ts-oauth__text { font-size: 15px; }
    body .ts-card .ts-bot,
    body .ts-card .ts-oauth { padding: 0 12px; }
}

/* Поле ввода тянем на всю ширину обёртки: у базового .input-field max-width 300px,
   из-за него стрелка не должна вылезать за белый прямоугольник — она позиционируется
   по обёртке, а не по видимому полю. */
body .ts-card .ts-field input {
    width: 100% !important;
    max-width: none !important;
}

body .ts-card .ts-field-go { z-index: 3; }

/* Затухание внизу юридической модалки: накладка поверх карточки давала полосу
   чужого цвета и резала строки посередине. Теперь затухание делаем маской самой
   области прокрутки — край всегда совпадает с её низом, цвет подстраивается сам,
   а нижний отступ текста не даёт спрятать последнюю строку. */
.pt-legal-modal__fade { display: none !important; }

.pt-legal-modal__scroll {
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 44px), rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(180deg, #000 calc(100% - 44px), rgba(0, 0, 0, 0) 100%);
}

.pt-legal-modal__body { padding-bottom: 48px; }

@media (max-width: 640px) {
    .pt-legal-modal__scroll {
        -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 30px), rgba(0, 0, 0, 0) 100%);
        mask-image: linear-gradient(180deg, #000 calc(100% - 30px), rgba(0, 0, 0, 0) 100%);
    }
    .pt-legal-modal__body { padding-bottom: 34px; }
}

/* Крестик на экране ошибки активации — чёрный (просьба Ильи, 04.08.2026) */
body .cross-icon::before,
body .cross-icon::after { background-color: #1A1A1A; }

/* ============================================================
   Масштаб как на боевом сайте (жалоба Ильи, 04.08.2026).
   Размеры взяты из фактических стилей ozon.cyndykshop.ru:
   карточка 420px, заголовок 20px/500, поле 60px (моб 54px),
   нижние кнопки 390x50/16px. Прежние ts-правила несли размеры
   из Figma-макета и рядом с боевым сайтом выглядели раздутыми.
   ============================================================ */
body .ts-card {
    width: 420px !important;
    max-width: 90vw !important;
    padding-top: 32px;
}

body .ts-card .ts-step { padding-bottom: 32px; }

body .ts-card .ts-card-title {
    font-size: 20px;
    line-height: 1.25;
    font-weight: 500;
    margin-bottom: 20px;
}

body .ts-card .ts-field,
body .ts-card .ts-bot,
body .ts-card .ts-oauth { width: 75.32%; height: 60px; }

body .ts-card .ts-field input {
    height: 60px;
    font-size: 16px;
    padding-right: 54px;
}

body .ts-card .ts-field-go { width: 36px; height: 36px; top: 12px; right: 12px; }

body .ts-card .ts-or { font-size: 20px; margin: 16px 0; }

body .ts-card .ts-bot__text,
body .ts-card .ts-oauth__text { font-size: 16px; }

body .ts-card .ts-bot__icon svg { width: 28px; height: 28px; }
body .ts-card .ts-oauth__logo svg { width: 58px; height: 28px; }

body .ts-card .ts-bot + .ts-bot { margin-top: 14px; }

/* Нижние кнопки — как базовые .btn боевого сайта */
body .ts-buttons {
    width: 390px !important;
    max-width: 90vw !important;
}

body .ts-buttons .btn { height: 50px; font-size: 16px; }

/* Первый экран без прокрутки: ужимаем вертикальные отступы */
body .main { margin-top: 32px; }
body .ts-buttons { margin-top: 22px; gap: 12px; }

@media (max-width: 560px) {
    body .ts-card .ts-card-title { font-size: 18px; }
    body .ts-card .ts-field,
    body .ts-card .ts-bot,
    body .ts-card .ts-oauth { height: 54px; }
    body .ts-card .ts-field input { height: 54px; }
    body .ts-buttons .btn { height: 48px; }
}

/* Первый экран строго без прокрутки: заголовок как на боевом (18px, две строки),
   вертикальные отступы ужаты — раньше контент был выше окна на ~50px. */
body .ts-card .ts-card-title {
    font-size: 18px;
    max-width: 340px;
    margin-bottom: 16px;
}

body .main { margin-top: 20px; }
body .ts-card { padding-top: 26px; }
body .ts-card .ts-step { padding-bottom: 26px; }
body .ts-card .ts-or { margin: 12px 0; }
body .ts-buttons { margin-top: 16px; }

@media (max-width: 560px) {
    body .main { margin-top: 12px; }
    body .ts-card .ts-card-title { font-size: 16px; }
    body .ts-card .ts-or { margin: 10px 0; }
}

/* На тестовой витрине переключателя языка нет (маркетплейс-хост скрывает его),
   а body { padding-bottom: 46px } под его фиксированную плашку остался и давал
   ровно 46px прокрутки на любом экране. Без important: у страниц кабинета
   (body.pt-orders-mode) свой отступ 96px под прижатые юр-ссылки, он специфичнее
   и продолжает действовать. */
body { padding-bottom: 0; }

/* Симметрия карточки (замечание Ильи, 04.08.2026): над заголовком было 20px,
   под кнопками 46px — контент выглядел прижатым к верху. Паддинги задаём на самих
   шагах: padding-top карточки перебивается базовым правилом .container.
   Итог сверху и снизу одинаковый: 20px карточки + 16px шага = 36px. */
body .ts-card .ts-step {
    padding-top: 16px;
    padding-bottom: 16px;
}

body .ts-card .ts-card-title { margin-bottom: 14px; }
body .ts-card .ts-or { margin: 8px 0; }

@media (max-width: 560px) {
    body .ts-card .ts-step { padding-top: 12px; padding-bottom: 12px; }
    body .ts-card .ts-or { margin: 8px 0; }
}

/* Хвост асимметрии: раннее правило под Figma-высоту задавало #tsStepCode
   padding-bottom: 55px по id и перебивал классовый .ts-step (16px). Селектор
   той же специфичности позже в файле закрывает вопрос. */
body .ts-card #tsStepCode,
body .ts-card #tsStepEmail {
    padding-top: 16px;
    padding-bottom: 16px;
}

@media (max-width: 560px) {
    body .ts-card #tsStepCode,
    body .ts-card #tsStepEmail { padding-top: 12px; padding-bottom: 12px; }
}

/* Страница «заказ активирует оператор» (макет Ильи, 04.08.2026) */
body .ts-operator { display: flex; flex-direction: column; align-items: center; }
body .ts-operator-icon { margin-bottom: 14px; }
body .ts-operator-title {
    max-width: 302px;
    font-weight: 700;
    font-size: 20px;
    line-height: 130.61%;
    color: #000;
}
body .ts-operator-text {
    max-width: 395px;
    font-size: 18px;
    line-height: 130.61%;
    color: #000;
}
body .ts-goto-chat { color: #000 !important; }
/* Галочка перед «Уже взяли в работу» — инлайн-SVG вместо символа ☑:
   эмодзи-рендер браузера превращал его в чёрный квадрат. */
body .ts-check {
    display: inline-block;
    width: 17px;
    height: 17px;
    vertical-align: -2px;
    margin-right: 2px;
}

@media (max-width: 560px) {
    body .ts-operator-icon { width: 64px; height: 58px; }
    body .ts-operator-title { font-size: 17px; }
    body .ts-operator-text { font-size: 15px; }
}

/* Пульс кнопки «Перейти в чат для активации» (просьба Ильи, 04.08.2026):
   мягкое дыхание + расходящееся кольцо в цвете бренда. Для клиентов с
   отключённой анимацией в системе — без движения. */
@keyframes ts-goto-chat-pulse {
    0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(255, 178, 64, 0.65); }
    70%  { transform: scale(1.03); box-shadow: 0 0 0 14px rgba(255, 178, 64, 0); }
    100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(255, 178, 64, 0); }
}

body .ts-goto-chat { animation: ts-goto-chat-pulse 1.8s ease-out infinite; }

@media (prefers-reduced-motion: reduce) {
    body .ts-goto-chat { animation: none; }
}

/* === Без прокрутки на всех страницах (Илья, 05.08.2026) ===================== */
/* ЛК «Ваши заказы» и памятка: у body min-height:100vh, и паддинг 96px под
   прижатые юр-ссылки добавлялся СВЕРХ вьюпорта (content-box) — пустая прокрутка
   на любом экране даже с одним заказом. border-box включает резерв в те же
   100vh: короткий список — без прокрутки, длинному резерв работает как раньше. */
body.pt-orders-mode,
body.pt-order-memo-mode {
    box-sizing: border-box;
}

/* Невысокие экраны (ноутбуки 1366x768 и ниже): шапка, лого, карточка, кнопки и
   рейтинг компактнее — экраны флоу помещаются без прокрутки. Многострочные
   кнопки не режем: высота auto с min-height. */
@media (max-height: 800px) and (min-width: 561px) {
    body .pt-site-header { padding-top: 14px; }
    body:not(.pt-orders-mode) .main { margin-top: 12px; }
    body .cyndyk { margin-bottom: 8px; }
    body .container { min-height: 340px; padding-top: 14px; padding-bottom: 14px; }
    body .buttons:not(.ts-buttons) { margin-top: 14px; gap: 10px; }
    body .buttons:not(.ts-buttons) .btn {
        height: auto;
        min-height: 44px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    body .rating-box { padding: 14px 25px 12px !important; min-height: 0; }
    body .rating-box p { margin-bottom: 8px; }
    body.pt-has-fixed-rating .buttons:not(.ts-buttons) { margin-bottom: 10px; }
    body.pt-has-fixed-rating .rating-box { margin-bottom: 10px; }

    body .ts-operator-icon { width: 63px; height: 56px; margin-bottom: 8px; }
    body .ts-operator-title { font-size: 18px; margin-bottom: 12px; }
    body .ts-operator-text { font-size: 16px; margin-bottom: 14px; }
    body .error-content.ts-operator { padding: 10px 20px; }
}

/* Страница done — самая длинная (утверждённая памятка + FAQ-кнопки): те же
   компактные отступы на любой высоте экрана, чтобы и на 1080p не листалась. */
body.pt-done-page .pt-site-header { padding-top: 20px; }
body.pt-done-page .main { margin-top: 14px; }
body.pt-done-page .cyndyk { margin-bottom: 12px; }
body.pt-done-page .buttons:not(.ts-buttons) { margin-top: 16px; gap: 10px; }
body.pt-done-page .buttons:not(.ts-buttons) .btn {
    height: auto;
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
}
body.pt-done-page .rating-box { padding: 14px 25px 12px !important; min-height: 0; }
body.pt-done-page .rating-box p { margin-bottom: 8px; }
body.pt-done-page.pt-has-fixed-rating .buttons:not(.ts-buttons) { margin-bottom: 10px; }
body.pt-done-page.pt-has-fixed-rating .rating-box { margin-bottom: 12px; }

/* Мобильные: те же ужимки в потоке (рейтинг там relative) */
@media (max-width: 560px) {
    body .pt-site-header { padding-top: 14px; }
    body:not(.pt-orders-mode) .main { margin-top: 8px; }
    body .cyndyk { margin-bottom: 8px; }
    body .container { padding-top: 12px; padding-bottom: 12px; }
    body .buttons:not(.ts-buttons) { margin-top: 10px; gap: 10px; }
    body .buttons:not(.ts-buttons) .btn {
        height: auto;
        min-height: 44px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    body .rating-box { margin: 12px auto 12px; padding: 12px 16px 10px !important; min-height: 0; }
    body .rating-box p { margin-bottom: 8px; }
}

/* === Юр. документы отдельными страницами (/privacy/, /terms/) ==============
   Ссылку на политику нужно давать боту и внешним площадкам, поэтому тот же
   текст, что во всплывающем окне, доступен по постоянному адресу. Здесь это
   обычная длинная страница: читаемая ширина, прокрутка документа — это норма
   (правило «без скролла» касается экранов флоу, а не юр. текста). */
body.pt-legal-page-mode {
    background-color: #f5f5f5;
    padding-bottom: 40px;
}

body.pt-legal-page-mode .main {
    margin-top: 28px;
}

.pt-legal-page {
    width: min(760px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 32px 36px 28px;
    background: linear-gradient(149deg, #FFBC0B 0%, #FFB144 92%);
    border-radius: 32px;
    box-sizing: border-box;
}

.pt-legal-page__title {
    margin: 0 0 20px;
    text-align: center;
    font: 700 22px/1.3 inter, Arial, sans-serif;
    color: #1A1A1A;
}

.pt-legal-page__body {
    color: #1A1A1A;
    font: 400 17px/1.45 inter, Arial, sans-serif;
    text-align: left;
}

.pt-legal-page__body h4 {
    margin: 20px 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
}

.pt-legal-page__body p { margin: 0 0 14px; }
.pt-legal-page__body p:last-child { margin-bottom: 0; }

.pt-legal-page__footer {
    margin-top: 24px;
    text-align: center;
}

.pt-legal-page__back {
    display: inline-block;
    padding: 11px 28px;
    border-radius: 999px;
    background: #FFF3D6;
    color: #1A1A1A;
    font: 600 15px/1 inter, Arial, sans-serif;
    text-decoration: none;
}

@media (max-width: 560px) {
    .pt-legal-page { padding: 24px 20px 22px; border-radius: 24px; }
    .pt-legal-page__title { font-size: 19px; }
    .pt-legal-page__body { font-size: 15px; }
    .pt-legal-page__body h4 { font-size: 16px; }
}

/* === Вход по VK ID прямо в баре «Мои заказы» (Илья, 05.08.2026) =============
   Клиент, вошедший через VK при активации, не мог вернуться в кабинет: бар
   предлагал только код из письма. Кнопка синяя (#0077FF по макету), высота
   совпадает с полем ввода.

   Поле почты по умолчанию узкое; как только в него ставят курсор, оно
   разъезжается на место кнопки. Кнопку НЕ убираем из потока (display:none —
   она исчезала скачком, пока поле ещё ехало, и строку дёргало влево): вместо
   этого сжимаем её ширину той же анимацией, что и рост поля. */
/* Обёртка «или + кнопка VK» нужна только мобильной раскладке; на десктопе она
   прозрачна, и элементы остаются прямыми детьми бара, как было. */
.pt-account-bar__vk-row { display: contents; }

.pt-account-bar__or {
    color: #ffffff;
    font: 500 13px/1 inter, Arial, sans-serif;
    padding: 0 2px;
    white-space: nowrap;
    overflow: hidden;
    transition: width .18s ease, padding .18s ease, opacity .12s ease;
}

.pt-account-bar__vk {
    height: 39px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 12px;
    border-radius: 999px;
    background: #0077FF;
    color: #ffffff;
    font: 500 13px/1 inter, Arial, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    flex: 0 0 auto;
    transition: width .18s ease, padding .18s ease, opacity .12s ease;
}

.pt-account-bar__vk:hover { background: #0a68d8; }

.pt-account-bar__vk-logo svg { width: 42px; height: 20px; display: block; }

/* Поле раскрыто под ввод — кнопка сжимается в ноль вместе с ростом поля */
.pt-account-bar.is-email-open .pt-account-bar__or,
.pt-account-bar.is-email-open .pt-account-bar__vk {
    width: 0 !important;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
    opacity: 0;
    pointer-events: none;
}

/* Совсем не нужна: бар свёрнут, клиент уже вошёл, шаг кода из письма */
.pt-account-bar:not(.is-expanded) .pt-account-bar__or,
.pt-account-bar:not(.is-expanded) .pt-account-bar__vk,
.pt-account-bar.is-code-step .pt-account-bar__or,
.pt-account-bar.is-code-step .pt-account-bar__vk,
.pt-account-bar.is-logged-in .pt-account-bar__or,
.pt-account-bar.is-logged-in .pt-account-bar__vk { display: none; }

/* Ширина бара фиксирована, «разъезжается» только поле почты: контейнер полей
   здесь flex (не grid — это правило перебито выше), поэтому ширину задаём
   самому полю. */
.pt-account-bar.is-expanded {
    width: min(566px, calc(100vw - 32px));
}

/* «Мои заказы» не сжимаются никогда: на промежуточных кадрах анимации сумма
   ширин на пару пикселей превышала бар, и flex ужимал именно эту надпись —
   отсюда рывок строки влево (замечание Ильи). Сжиматься должно поле. */
.pt-account-bar .pt-account-bar__orders,
.pt-account-bar.is-expanded .pt-account-bar__orders { flex: 0 0 auto; min-width: max-content; }

/* Ширину поля ограничиваем через max-width, а не задаём жёстко: поле забирает
   ровно освободившееся место и ни на пиксель больше, поэтому «Мои заказы»
   не сжимаются и строку не дёргает влево (замечание Ильи). */
.pt-account-bar.is-expanded #siteLoginEmail {
    width: auto !important;
    flex: 1 1 auto;
    max-width: 150px;
    transition: max-width .18s ease;
}

/* Курсор в поле (или там уже текст) — поле занимает место кнопки VK.
   Контейнеру полей тоже разрешаем расти, иначе поле упирается в его ширину. */
.pt-account-bar.is-expanded.is-email-open .pt-account-bar__fields {
    flex: 1 1 auto;
}

.pt-account-bar.is-expanded.is-email-open #siteLoginEmail {
    max-width: 420px;
}

/* Шаг кода из письма: в поле вводят всего 6 символов, поэтому оно узкое —
   раньше растягивалось на всю строку и половина бара пустовала. Длинная
   подсказка при этом едет бегущей строкой (см. .pt-account-bar__hint). */
.pt-account-bar.is-expanded.is-code-step #siteOtpInput {
    /* !important нужен: базовое правило задаёт width: 316px !important,
       а мобильное — width: auto !important */
    width: 140px !important;
    max-width: 100%;
    flex: 0 1 auto;
    text-align: center;
}
.pt-account-bar.is-expanded.is-code-step .pt-account-bar__fields { flex: 0 1 auto; }


/* ============================================================
   Мобильная витрина: замечания 05.08.2026
   ============================================================ */
@media (max-width: 560px) {
    /* 1. Бар «Мои заказы» строго в одну строку. Поле почты узкое (иначе строка
       переносилась на три яруса), «или» убрано — на такую ширину оно не влезает. */
    /* Раскладка в три яруса: заголовок, поле с кнопкой, «или + Войти по VK ID».
       Всё по центру. Элементы умеют сжиматься (min-width: 0) — иначе в Safari,
       где шрифт шире, строка уезжала за правый край экрана. */
    .pt-account-bar.is-expanded {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        max-width: calc(100vw - 24px);
        box-sizing: border-box;
    }
    .pt-account-bar.is-expanded > * { min-width: 0; }
    .pt-account-bar.is-expanded .pt-account-bar__orders {
        flex: 1 1 100%;
        width: auto;
        justify-content: center;
        overflow: hidden;
    }
    .pt-account-bar.is-expanded .pt-account-bar__fields { flex: 1 1 100%; }

    /* Кнопка входа по VK стоит ровно по центру бара: сетка 1fr / auto / 1fr,
       кнопка в средней колонке. «Или» прижато к ней справа своей колонкой и
       центровку не сдвигает — раньше центрировалась пара целиком, из-за чего
       кнопка уезжала вправо. */
    .pt-account-bar.is-expanded .pt-account-bar__vk-row {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        flex: 1 1 100%;
        width: 100%;
    }
    .pt-account-bar.is-expanded .pt-account-bar__vk-row .pt-account-bar__or {
        grid-column: 1;
        justify-self: end;
        padding-right: 10px;
    }
    .pt-account-bar.is-expanded .pt-account-bar__vk-row .pt-account-bar__vk {
        grid-column: 2;
    }
    .pt-account-bar.is-expanded .pt-account-bar__fields { flex: 1 1 auto; min-width: 0; gap: 4px; }
    .pt-account-bar.is-expanded .pt-account-bar__or { font-size: 13px; padding: 0 4px; }
    .pt-account-bar.is-expanded #siteLoginEmail,
    .pt-account-bar.is-expanded.is-email-open #siteLoginEmail {
        max-width: none;
        flex: 1 1 auto;
        min-width: 0;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 13px;
    }
    .pt-account-bar.is-expanded .pt-account-bar__vk { padding: 0 14px; gap: 8px; }
    .pt-account-bar.is-expanded .pt-account-bar__vk-logo svg { width: 46px; }
    /* курсор в поле — кнопка VK уступает место, как на десктопе */
    .pt-account-bar.is-email-open .pt-account-bar__or,
    .pt-account-bar.is-email-open .pt-account-bar__vk {
        width: auto !important;
        opacity: 1;
        pointer-events: auto;
    }

    /* 2. Кнопки ботов: иконка вылезала за скруглённый край, потому что текст
       занимал всю ширину. Кнопки шире, текст мельче и умеет сжиматься. */
    body .ts-card .ts-field,
    body .ts-card .ts-bot,
    body .ts-card .ts-oauth { width: 88%; }
    body .ts-card .ts-bot { padding: 0 12px; gap: 8px; }
    body .ts-card .ts-bot__text { min-width: 0; font-size: 15px; }

    /* 3. «Не приходит код?» лежит в своей форме и сжималась по тексту —
       растягиваем форму, чтобы кнопка была как соседние. */
    .buttons form { width: 100%; display: flex; }
    .buttons form .btn { width: 100%; }

    /* 4. Юридические ссылки шли фиксированной строкой у низа экрана и на телефоне
       отрывались от карточки. Возвращаем их в поток сразу под контентом. */
    body.pt-orders-mode .pt-legal-links,
    body.pt-order-memo-mode .pt-legal-links {
        position: static;
        transform: none;
        width: auto;
        max-width: none;
        margin: 18px auto 0;
    }
    body.pt-orders-mode,
    body.pt-order-memo-mode { padding-bottom: 24px; }
    /* карточка кабинета держала min-height: 420px и на телефоне растягивалась
       далеко ниже списка, отрывая от себя юридические ссылки */
    body.pt-orders-mode .pt-orders-page-card { min-height: 0; }
    /* Юридические ссылки должны оставаться в конце страницы (просьба Sergey),
       поэтому .main по-прежнему занимает свободную высоту — подняли только сами
       ссылки из position: fixed в поток. */
}


/* ============================================================
   Замечания 05.08.2026 (вечер)
   ============================================================ */

/* 1. Плейсхолдер и введённый код визуально уезжали влево: у поля
   text-align: center, но padding был асимметричным (слева 24, справа 54-62 под
   кнопку). Центрируем по-настоящему — одинаковые отступы с обеих сторон. */
body .ts-card .ts-field input {
    padding-left: 62px;
    padding-right: 62px;
}

/* 2. Кнопка «>» стояла на фиксированном top и при другой высоте поля съезжала
   вниз (54px поле против top: 12px и кнопки 36px — смещение на 3px).
   Привязываем к центру: работает при любой высоте. */
body .ts-card .ts-field-go {
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 560px) {
    body .ts-card .ts-field input {
        padding-left: 54px;
        padding-right: 54px;
    }

    /* 3. Блок оценки прижат к нижнему краю экрана, а не идёт следом за кнопками.
       Под него резервируется место снизу, иначе фиксированный блок накрывает
       кнопки — ровно из-за этого его когда-то и увели в поток. */
    .rating-box {
        position: fixed;
        left: 50%;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        transform: translateX(-50%);
        margin: 0;
        width: min(390px, calc(100vw - 24px));
        min-width: 0;
        box-sizing: border-box;
        z-index: 5;
        padding: 12px 18px 10px !important;
        min-height: 0;
    }
    .rating-box p { margin-bottom: 8px; font-size: 13px !important; }
    .rating-box .star { width: 22px; height: 22px; }
    /* border-box: резерв входит в высоту экрана, а не добавляется к ней —
       иначе padding целиком превращался в лишнюю прокрутку */
    body.pt-has-fixed-rating {
        box-sizing: border-box;
        padding-bottom: 12px;
    }
    /* отодвигаем сами кнопки: padding у body добавляет пустоту в конце документа,
       но положение кнопок не меняет — фиксированный блок продолжал их накрывать */
    body.pt-has-fixed-rating .buttons:not(.ts-buttons) { margin-bottom: 92px; }
}


/* ============================================================
   Замечания 06.08.2026
   ============================================================ */

/* 1. Карточка подтверждения кода была уже кнопок под ней (340 против 390):
   у неё нет класса .ts-card, поэтому действовало общее правило .container.
   Задаём ту же геометрию, что у карточки первого экрана. */
.pt-home-view .container.pt-code-card--guest {
    width: 420px;
    max-width: 90vw;
}

/* 2. Длинная почта в баре («contact@cyndykshop.ru») занимала всю строку и
   выдавливала поле ввода за скруглённый край. Теперь строка с адресом умеет
   сжиматься и обрезается многоточием, а сам бар может немного подрасти. */
.pt-account-bar.is-expanded {
    width: auto;
    max-width: min(760px, calc(100vw - 32px));
}
/* Ограничение нужно во ВСЕХ состояниях бара, а не только в раскрытом: после входа
   длинный адрес выдавливал кнопку выхода за край (на мобильном — на 39px). */
.pt-account-bar {
    max-width: min(760px, calc(100vw - 24px));
    box-sizing: border-box;
}

/* После входа строка с адресом должна сжиматься: flex: 0 0 auto стоит ради
   анимации формы входа, но в залогиненном состоянии он держал полную длину
   адреса и выталкивал кнопку выхода за край бара. */
.pt-account-bar.is-logged-in .pt-account-bar__orders {
    flex: 0 1 auto;
    min-width: 0;
}
.pt-account-bar.is-logged-in .pt-account-bar__logout { flex: 0 0 auto; }
.pt-account-bar .pt-account-bar__orders { min-width: 0; }
.pt-account-bar #siteOrdersLabel {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Подсказка над полем кода: обычный текст, а если не помещается в поле —
   едет бегущей строкой. Плейсхолдер для этого не годится (псевдоэлемент
   не анимируется), поэтому он гасится, а текст рисует этот слой. */
.pt-account-bar__fields { position: relative; }

.pt-account-bar__hint {
    position: absolute;
    box-sizing: border-box;   /* иначе padding прибавлялся к ширине и текст «влезал» лишь по расчёту */
    left: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 14px;
    overflow: hidden;
    pointer-events: none;
    color: #B9B9B9;
    font: 400 13px/1 inter, Arial, sans-serif;
    white-space: nowrap;
    border-radius: 999px;
}

.pt-account-bar__hint[hidden] { display: none; }

.pt-account-bar__hint-text { display: inline-block; }

/* Родной плейсхолдер гасим: текст рисует слой подсказки, иначе он двоится */
.pt-account-bar #siteOtpInput.has-custom-hint::placeholder { color: transparent; }

/* Текст шире поля — прокручиваем его по кругу */
.pt-account-bar__hint.is-marquee .pt-account-bar__hint-text {
    animation: pt-bar-hint-scroll 9s linear infinite;
}

@keyframes pt-bar-hint-scroll {
    0%, 12%   { transform: translateX(0); }
    88%, 100% { transform: translateX(var(--pt-hint-shift, -40px)); }
}

@media (prefers-reduced-motion: reduce) {
    .pt-account-bar__hint.is-marquee .pt-account-bar__hint-text { animation: none; }
}

/* ============================================================
   05.10.2026: схема .su — блок оценки в потоке, EN/RU сплошной полосой
   ============================================================
   Заменяет правку 28.09. На телефоне блок оценки был закреплён у низа экрана (05.08) и на
   длинных экранах (ошибка активации) закрывал кнопки, пока не прокрутишь. Теперь он, как на
   .su, идёт в потоке после кнопок, а переключатель EN/RU — сплошная полоса цвета фона у низа
   экрана с мягким затуханием сверху: контент при прокрутке уходит под неё, а в конце страницы
   останавливается над ней (место зарезервировано отступом body). */
@media (max-width: 768px) {
    html body .rating-box,
    html body .pt-order-memo-page .rating-box {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none;
        margin: 24px auto 0;
        width: min(390px, calc(100vw - 24px));
        z-index: auto;
    }
    html body.pt-has-fixed-rating .buttons:not(.ts-buttons) { margin-bottom: 0; }
}
@media (min-width: 769px) {
    body.pt-has-fixed-rating .rating-box,
    body.pt-order-memo-mode .pt-order-memo-page .rating-box {
        margin-bottom: 20px;
    }
}
.language-switcher {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 9px 0 calc(9px + env(safe-area-inset-bottom, 0px));
    background: #f5f5f5;
    z-index: 1100;
}
.language-switcher::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 18px;
    background: linear-gradient(to bottom, rgba(245, 245, 245, 0), #f5f5f5);
    pointer-events: none;
}
/* резерв под полосу входит в высоту экрана (border-box), а не добавляется к ней */
html body,
html body.pt-has-fixed-rating {
    box-sizing: border-box;
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}
