/* Попап «Витрина · Чёрная пятница».
   Все правила ограничены .ao-popup / .ak-panel, чтобы не влиять на остальные страницы. */
.ao-popup,
.ak-panel {
    --ui: "Anna Key Atelier UI", Montserrat, Arial, sans-serif;
    --display: var(--ui);
    --ink: #171311;
    --rose: #e28383;
    --rose-ink: #743d42;
    --paper: #fffcfa;
    color-scheme: light;
    color: var(--ink);
    font-family: var(--ui);
}

.ao-popup *,
.ao-popup *::before,
.ao-popup *::after,
.ak-panel *,
.ak-panel *::before,
.ak-panel *::after {
    box-sizing: border-box;
}

.ao-popup button,
.ao-popup input,
.ao-popup select,
.ak-panel button {
    font: inherit;
}

.ao-popup button,
.ak-panel button {
    cursor: pointer;
    touch-action: manipulation;
}

.ao-popup a,
.ao-popup input,
.ao-popup select {
    touch-action: manipulation;
}

.ao-popup button:focus-visible,
.ao-popup a:focus-visible,
.ao-popup input:focus-visible,
.ao-popup select:focus-visible,
.ak-panel button:focus-visible {
    outline: 3px solid #b2607a;
    outline-offset: 3px;
}

.ao-popup [hidden],
.ak-panel [hidden] {
    display: none !important;
}

/* Блокировка прокрутки страницы, пока попап открыт */
html.ak-popup-open,
html.ak-popup-open body {
    overflow: hidden;
}

.ao-popup,
.ak-panel {
    padding: 0;
    border: 0;
    background: var(--paper);
}

.ao-popup {
    position: fixed;
    inset: 0;
    width: min(1120px, calc(100% - 64px));
    max-width: none;
    max-height: calc(100dvh - 84px);
    height: fit-content;
    margin: auto;
    border-radius: 20px;
    overflow: hidden;
    flex-direction: column;
    display: none;
    box-shadow: 0 32px 72px -31px #42253065, 0 2px 8px #4f313516;
}

.ao-popup[open] {
    display: flex;
}

.ao-popup::backdrop {
    background: rgba(43, 21, 44, .55);
}

.ak-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    outline: none;
    -webkit-overflow-scrolling: touch;
}

.ak-columns {
    display: grid;
    grid-template-columns: 53% 47%;
    min-height: 576px;
}

.ao-copy {
    padding: 42px 44px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    min-width: 0;
    background: var(--paper);
}

.ao-season,
.ak-kicker {
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 11px;
    line-height: 16px;
    font-weight: 600;
}

.ao-season {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 26px;
    color: var(--rose-ink);
}

.ak-star,
.ak-caption:after {
    background: currentColor;
    clip-path: polygon(50% 0, 59% 38%, 100% 50%, 59% 60%, 50% 100%, 41% 60%, 0 50%, 41% 38%);
}

.ak-star {
    width: 19px;
    height: 19px;
    flex: none;
}

.ao-headline {
    font: 600 clamp(27px, 2.18vw, 32px)/1.18 var(--ui);
    letter-spacing: -.036em;
    text-wrap: balance;
    margin: 0;
    color: var(--ink);
}

.ao-form {
    margin-top: 30px;
}

.ao-phone-label {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    margin-bottom: 7px;
}

.ak-field {
    position: relative;
}

.ak-field input {
    width: 100%;
    height: 51px;
    padding: 0 16px 0 47px;
    border: 1px solid #bfb2af;
    border-radius: 12px;
    color: var(--ink);
    background: #fff;
    font-size: 16px;
    letter-spacing: .015em;
}

.ak-field input::placeholder {
    color: #75696b;
    opacity: 1;
}

.ak-phone-icon {
    position: absolute;
    left: 16px;
    top: 17px;
    width: 17px;
    height: 17px;
    pointer-events: none;
    background: var(--rose-ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.8 3.5 9.6 8l-2 2c1.3 3 3.5 5.2 6.5 6.5l2-2 4.5 2.8c.5.3.7.9.4 1.4l-1.3 2c-.4.6-1 .8-1.7.7C10.4 20.3 3.6 13.6 2.6 6c-.1-.7.1-1.3.7-1.7l2-1.3c.5-.3 1.1-.1 1.5.5Z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.8 3.5 9.6 8l-2 2c1.3 3 3.5 5.2 6.5 6.5l2-2 4.5 2.8c.5.3.7.9.4 1.4l-1.3 2c-.4.6-1 .8-1.7.7C10.4 20.3 3.6 13.6 2.6 6c-.1-.7.1-1.3.7-1.7l2-1.3c.5-.3 1.1-.1 1.5.5Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.ao-action {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 40px;
    background: var(--rose);
    color: #241918;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 15px;
    padding: 12px 40px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    transition: background .18s;
}

.ao-action:hover {
    background: #e99b9b;
}

.ao-action[aria-disabled="true"] {
    cursor: default;
    opacity: .75;
}

.ao-form>.ao-action {
    margin-top: 10px;
}

.ak-arrow {
    width: 17px;
    height: 12px;
    position: absolute;
    right: 20px;
    background: linear-gradient(currentColor, currentColor) left center/16px 1px no-repeat;
}

.ak-arrow:after {
    content: "";
    position: absolute;
    right: 1px;
    top: 2px;
    width: 7px;
    height: 7px;
    border-top: 1px solid;
    border-right: 1px solid;
    transform: rotate(45deg);
}

.ao-consents {
    display: grid;
    gap: 9px;
    margin-top: 17px;
    color: #584e51;
    font-size: 12px;
    line-height: 1.5;
}

.ao-consents>div {
    display: flex;
    gap: 9px;
    align-items: flex-start;
}

.ao-consents input {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin: 1px 0 0;
    accent-color: var(--rose-ink);
    cursor: pointer;
}

.ao-consents a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ao-consents label {
    cursor: pointer;
}

.ao-error {
    color: #8f243e;
    font-size: 12px;
    line-height: 1.4;
    margin: 6px 0;
}

.ao-error[data-send-error] {
    margin: 10px 0 0;
}

input[aria-invalid=true] {
    outline: 2px solid #9a3d51;
    outline-offset: 0;
}

.ak-collection-close {
    position: absolute;
    right: 16px;
    top: 16px;
    z-index: 4;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #caa7a2;
    border-radius: 50%;
    background: #fff8f2bd;
    color: #452e30;
}

.ak-collection-close:before,
.ak-collection-close:after {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 1.4px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
}

.ak-collection-close:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.ao-scene {
    position: relative;
    isolation: isolate;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 64px 0 38px;
    color: var(--ink);
    background: radial-gradient(ellipse at 19% 9%, #fff8f2 0%, transparent 53%), linear-gradient(148deg, #fce8e7 3%, #f2c8c5 52%, #e9afae 100%);
}

.ao-scene:before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(119deg, transparent 29%, #fff0e312 38%, transparent 45%, transparent 70%, #ffdfc808 75%, transparent 78%);
    pointer-events: none;
}

.ak-theatre {
    position: relative;
    width: 100%;
    height: clamp(350px, 29vw, 414px);
    display: grid;
    place-items: center;
    flex: none;
}

.ak-orbit {
    position: relative;
    width: 100%;
    height: 100%;
    isolation: isolate;
}

.ak-orbit-tools {
    display: flex;
    position: relative;
    z-index: 2;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ak-plinth,
.ak-dais {
    position: absolute;
    left: 50%;
    width: 87%;
    height: 24%;
    border-radius: 50%;
    transform: translateX(-50%);
    bottom: 8%;
}

.ak-plinth {
    background: linear-gradient(90deg, #bd8989, #f6d5cd 14%, #d7a9a2 37%, #f8dad2 67%, #cd9e98 90%, #b27b7d);
    box-shadow: 0 9px 0 -3px #bc8e8b, 0 24px 22px -9px #99666d72, 0 34px 35px -12px #a577704a;
}

.ak-dais {
    bottom: 12%;
    background: radial-gradient(ellipse at 44% 25%, #fff4ee, #f5d5ca 50%, #eac1b7 78%, #f3d1c5);
    border: 1px solid #edc6bfaa;
    box-shadow: 0 2px 2px #bb9290;
}

.ak-marker {
    position: absolute;
    bottom: 11%;
    left: 50%;
    height: 7px;
    width: 7px;
    transform: translateX(-50%) rotate(45deg);
    background: #95565b;
    box-shadow: 0 0 0 2px #f6ded3;
}

.ak-card {
    background: #fff9f2;
    color: var(--ink);
    box-shadow: 0 7px 16px #25111b3d;
    border: 1px solid #ead3c199;
    border-radius: 9px;
    overflow: hidden;
}

.ak-orbit .ak-card {
    position: absolute;
    left: 50%;
    top: 47%;
    width: 45%;
    max-width: 229px;
    transform-origin: center;
    will-change: transform;
}

.ak-card picture,
.ak-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.ak-caption {
    position: relative;
    padding: 12px 14px 13px;
    background: linear-gradient(120deg, #fffaf2, #f0e3d8);
}

.ak-caption strong,
.ak-caption span {
    display: block;
}

.ak-caption strong {
    font: 600 clamp(22px, 2vw, 29px)/1.1 var(--display);
    letter-spacing: -.035em;
    white-space: nowrap;
}

.ak-caption span {
    font: 500 11px/1.45 var(--ui);
    margin-top: 3px;
}

.ak-caption:after {
    content: "";
    position: absolute;
    right: 13px;
    bottom: 20px;
    width: 12px;
    height: 12px;
    color: #cb8387;
}

.ak-chosen {
    outline: 2px solid #a96665;
    outline-offset: 2px;
}

.ak-orbit .ak-chosen {
    animation: ak-settle .65s ease-out 1;
}

@keyframes ak-settle {
    0% {
        box-shadow: 0 7px 16px #25111b3d;
    }

    40% {
        box-shadow: 0 0 22px 3px #ffe6bb6b;
    }

    100% {
        box-shadow: 0 7px 16px #25111b3d;
    }
}

.ao-info-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    border: 1px solid #c69393;
    border-radius: 40px;
    background: #fff8f5de;
    color: var(--ink);
    padding: 8px 18px;
    font: 500 13px/1.4 var(--ui);
    position: relative;
    z-index: 2;
}

.ao-info-toggle:hover {
    background: #fff;
}

.ak-list-icon {
    width: 13px;
    height: 13px;
    flex: none;
    background: linear-gradient(currentColor, currentColor) top left/5px 5px no-repeat, linear-gradient(currentColor, currentColor) top right/5px 5px no-repeat, linear-gradient(currentColor, currentColor) bottom left/5px 5px no-repeat, linear-gradient(currentColor, currentColor) bottom right/5px 5px no-repeat;
}

.ak-orbit-pause.ao-info-toggle {
    width: 42px;
    min-height: 42px;
    padding: 0;
}

.ak-orbit-pause>span {
    width: 11px;
    height: 13px;
    border-inline: 3px solid currentColor;
}

.ak-orbit-pause[data-paused="true"]>span {
    width: 0;
    height: 0;
    border: solid transparent;
    border-width: 7px 0 7px 10px;
    border-left-color: currentColor;
    margin-left: 2px;
}

.ao-popup:not([data-state="ready"]) .ak-orbit-pause {
    display: none;
}

.ak-panel {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(490px, calc(100% - 24px));
    max-width: none;
    max-height: min(730px, calc(100dvh - 28px));
    border-radius: 16px;
    box-shadow: 0 20px 80px #2c172051;
    overscroll-behavior: contain;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    display: none;
}

.ak-panel[open] {
    display: block;
}

.ak-panel::backdrop {
    background: #2b152cb8;
}

.ak-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px 13px;
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--paper);
    border-bottom: 1px solid #e8dcd4;
}

.ak-panel h2 {
    font: 600 26px/1.2 var(--display);
    letter-spacing: -.04em;
    margin: 0;
    color: var(--ink);
}

.ak-panel .ak-collection-close {
    position: relative;
    top: auto;
    right: auto;
    flex: none;
    color: var(--ink);
    background: #f5eae5;
    border-color: #d4c2be;
}

.ao-prizes {
    list-style: none;
    padding: 0 24px 14px;
    margin: 0;
}

.ao-prizes li {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #e8dcd4;
}

.ao-prizes li:last-child {
    border-bottom: 0;
}

.ao-prizes picture,
.ao-prizes img {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
}

.ao-prizes strong {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

.ao-prizes small {
    display: block;
    font-size: 12px;
    line-height: 1.45;
    color: #5b4b51;
    margin-top: 3px;
}

.ao-outcome img {
    width: 82px;
    height: 82px;
    object-fit: cover;
    border-radius: 9px;
}

.ao-outcome h2 {
    font: 600 clamp(21px, 2.2vw, 33px)/1.16 var(--display);
    letter-spacing: -.035em;
    margin: 14px 0 8px;
    color: var(--ink);
}

.ao-outcome h2:focus {
    outline: none;
}

.ao-outcome .ak-kicker {
    color: var(--rose-ink);
    margin: 0 0 14px;
}

.ao-outcome p[data-result-detail] {
    font-size: 17px;
    line-height: 1.4;
    margin: 0;
}

.ao-outcome .ao-action {
    margin-top: 24px;
}

.ak-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.ak-state-stack {
    display: grid;
    align-items: center;
}

.ak-entry-body,
.ao-outcome {
    grid-area: 1 / 1;
    min-width: 0;
}

[data-state="result"] .ak-entry-body {
    visibility: hidden;
}

.ak-mobile-summary {
    display: none;
}

@media (max-width: 940px) and (min-width: 801px) {
    .ao-popup {
        width: calc(100% - 32px);
    }

    .ao-copy {
        padding: 32px 26px;
    }

    .ao-headline {
        font-size: clamp(23px, calc(3.2vw - 2.6px), 27px);
    }

    .ak-caption:after {
        display: none;
    }
}

@media (max-width: 800px) {
    .ao-popup {
        width: min(570px, calc(100% - 28px));
        border-radius: 14px;
        max-height: calc(100dvh - 55px);
    }

    .ak-columns {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .ao-copy {
        padding: 29px 30px 26px;
    }

    .ao-season {
        margin-bottom: 18px;
    }

    .ao-headline {
        font-size: 28px;
    }

    .ao-form {
        margin-top: 20px;
    }

    .ao-scene {
        padding: 14px 0 23px;
        gap: 0;
    }

    .ak-theatre {
        height: 340px;
        max-width: 460px;
    }

    .ak-orbit .ak-card {
        width: 43%;
        max-width: 180px;
    }

    .ak-caption {
        padding: 8px 11px 10px;
    }

    .ak-caption strong {
        font-size: 23px;
    }

    .ak-collection-close {
        background: #fffaf5ed;
        border-color: #cebdbb;
        color: #502f40;
        top: 10px;
        right: 10px;
    }

    .ao-scene .ao-info-toggle {
        min-height: 40px;
    }

    .ak-mobile-summary:not([hidden]) {
        display: block;
        align-self: stretch;
        margin: 0 18px 14px;
        text-align: center;
        font: 500 14px/1.4 var(--ui);
        color: #402929;
        text-wrap: balance;
    }

    [data-state="result"] .ak-entry-body {
        display: none;
    }
}

@media (max-width: 480px) {
    .ao-popup {
        width: calc(100% - 16px);
        max-height: calc(100dvh - 42px);
    }

    .ao-copy {
        padding: 20px 19px 21px;
    }

    .ao-season {
        font-size: 10px;
        letter-spacing: .14em;
        margin-bottom: 14px;
    }

    .ak-star {
        width: 15px;
        height: 15px;
    }

    .ao-headline {
        font-size: clamp(17.5px, calc(6.4vw - 3px), 26px);
    }

    .ao-form {
        margin-top: 18px;
    }

    .ao-phone-label {
        font-size: 13px;
        margin-bottom: 5px;
    }

    .ak-field input {
        height: 47px;
    }

    .ak-phone-icon {
        top: 15px;
    }

    .ao-action {
        min-height: 48px;
        font-size: 13px;
        padding: 10px 31px;
    }

    .ak-arrow {
        right: 14px;
    }

    .ao-consents {
        margin-top: 13px;
        gap: 8px;
        font-size: 11.5px;
    }

    .ao-scene {
        padding: 9px 0 18px;
    }

    .ak-theatre {
        height: clamp(250px, 78vw, 325px);
    }

    .ak-caption strong {
        font-size: 21px;
    }

    .ak-caption span {
        font-size: 10px;
    }

    .ak-caption:after {
        width: 9px;
        height: 9px;
        bottom: 14px;
        right: 8px;
    }

    .ak-panel header {
        padding: 14px 16px 10px;
    }

    .ao-prizes {
        padding: 0 16px 8px;
    }

    .ao-prizes li {
        grid-template-columns: 46px 1fr;
        gap: 10px;
    }

    .ao-prizes img,
    .ao-prizes picture {
        width: 46px;
        height: 46px;
    }
}

@media (max-height: 500px) {
    .ak-scroll {
        max-height: calc(100dvh - 24px);
        scroll-padding: 16px;
    }

    .ao-popup {
        border-radius: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ao-popup *,
    .ao-popup *::before,
    .ao-popup *::after,
    .ak-panel *,
    .ak-panel *::before,
    .ak-panel *::after {
        animation-duration: 0s !important;
        transition-duration: 0s !important;
        scroll-behavior: auto !important;
    }
}

.ak-card[data-id="apple"] img {
    object-fit: contain;
    background: #f2f2f2;
}