/* Промо платформы — 1024×560, равный split 50/50 */

.platform-promo {
    --pp-accent: #1482fa;
    --pp-accent-deep: #0f6fe0;
    --pp-accent-soft: #e8f3ff;
    --pp-text: #2c3e50;
    --pp-body: #484848;
    --pp-muted: #727272;
    --pp-line: #f0f0f0;
    --pp-surface: #ffffff;
    --pp-ease: cubic-bezier(0.16, 1, 0.3, 1);

    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.platform-promo.is-open {
    display: flex;
}

.platform-promo__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(30, 30, 30, 0.48);
}

.platform-promo__dialog {
    position: relative;
    z-index: 1;
    border-radius: 25px;
    width: 1024px;
    height: 560px;
    max-width: calc(100vw - 48px);
    max-height: calc(100dvh - 48px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: linear-gradient(154deg, rgb(255 255 255) 10%, rgb(255 255 255) 62%, rgb(181 204 218) 100%);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.32);
}

.platform-promo__media {
    position: relative;
    min-width: 0;
    min-height: 0;
    background: linear-gradient(154deg, rgb(108 143 156) 0%, rgb(255 255 255) 50%, rgb(181 204 218) 100%);
    overflow: hidden;
    transform: translateZ(0);
}

.platform-promo__loader {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--pp-accent);
    font-size: 1.75rem;
    pointer-events: none;
}

.platform-promo__media.is-loading .platform-promo__loader {
    display: flex;
}

.platform-promo__media img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    transition: opacity 0.28s var(--pp-ease);
    --pp-anim-duration: 3s;
}

.platform-promo__media img.is-anim-zoom-in {
    transform-origin: center center;
    animation: pp-zoom-in var(--pp-anim-duration) linear infinite;
}

.platform-promo__media img.is-anim-scroll-up {
    top: 0;
    left: 0;
    right: auto;
    bottom: auto;
    height: 120%;
    object-position: top center;
    animation: pp-scroll-up var(--pp-anim-duration) linear infinite;
}

@keyframes pp-zoom-in {
    from { transform: scale(1); }
    to { transform: scale(1.2); }
}

@keyframes pp-scroll-up {
    from { transform: translateY(0); }
    to { transform: translateY(-16.667%); }
}

.platform-promo__media.is-loading img {
    opacity: 0;
}

.platform-promo__panel {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 18px;
}

.platform-promo__header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    margin-bottom: 16px;
}

.platform-promo__title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--pp-accent);
    line-height: 1.25;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.platform-promo__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.platform-promo__btn {
    appearance: none;
    border-radius: 50px;
    border: 0;
    background: var(--pp-surface);
    color: var(--pp-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.platform-promo__btn:hover {
    background: var(--pp-accent);
    color: #fff;
}

.platform-promo__btn:focus-visible,
.platform-promo__close:focus-visible,
.platform-promo__arrow:focus-visible,
.platform-promo__dot:focus-visible {
    outline: 2px solid rgba(20, 130, 250, 0.5);
    outline-offset: 2px;
}

.platform-promo__btn:disabled,
.platform-promo__close:disabled,
.platform-promo__arrow:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.platform-promo__close {
    appearance: none;
    pointer-events: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.94);
    color: var(--pp-text);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.platform-promo__close:hover {
    background: var(--pp-accent);
    border-color: var(--pp-accent);
    color: #fff;
}

.platform-promo__text {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    color: var(--pp-body);
    -webkit-overflow-scrolling: touch;
    transition: opacity 0.28s var(--pp-ease);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.platform-promo.is-slide-changing .platform-promo__media img,
.platform-promo.is-slide-changing .platform-promo__text,
.platform-promo.is-slide-changing .platform-promo__cta {
    opacity: 0;
}

.platform-promo__text h1,
.platform-promo__text h2,
.platform-promo__text h3 {
    margin: 0 0 0.5em;
    line-height: 1.25;
    color: var(--pp-text);
}

.platform-promo__text h1 {
    font-size: 1.3rem;
    font-weight: 700;
}

.platform-promo__text h2 {
    font-size: 1.12rem;
    font-weight: 600;
}

.platform-promo__text h3 {
    font-size: 1.02rem;
    font-weight: 600;
}

.platform-promo__text p {
    margin: 0 0 0.8em;
    line-height: 1.55;
    font-size: 0.95rem;
}

.platform-promo__text ul,
.platform-promo__text ol {
    margin: 0 0 0.8em;
    padding-left: 1.2em;
    line-height: 1.55;
    list-style-type: disc;
}

.platform-promo__text li {
    margin-bottom: 0.3em;
    border-bottom: 0;
}

.platform-promo__text a {
    color: var(--pp-accent);
    text-decoration: none;
}

.platform-promo__text a:hover {
    text-decoration: underline;
}

.platform-promo__cta {
    flex: 0 0 auto;
    padding-top: 12px;
    margin: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.28s var(--pp-ease);
}

.platform-promo__cta.is-hidden {
    display: none;
}

.platform-promo__cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 20px;
    border-radius: 50px;
    background: #000;
    color: #fff !important;
    text-decoration: none;
    font-size: 0.9rem;
    border: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.platform-promo__cta-link:hover {
    background: var(--pp-accent-deep);
    border-color: var(--pp-accent-deep);
    color: #fff !important;
    text-decoration: none;
}

.platform-promo__nav {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.platform-promo__nav.is-hidden {
    display: none;
}

.platform-promo__arrow {
    appearance: none;
    position: absolute;
    bottom: 0;
    transform: translateY(-50%);
    pointer-events: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.94);
    color: var(--pp-text);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.platform-promo__arrow:hover:not(:disabled) {
    background: var(--pp-accent);
    color: #fff;
}

.platform-promo__arrow--prev {
    left: 18px;
}

.platform-promo__arrow--next {
    right: 18px;
}

.platform-promo__arrow.is-hidden {
    display: none;
}

.platform-promo__end-dismiss {
    appearance: none;
    position: absolute;
    right: 18px;
    bottom: 0;
    transform: translateY(-50%);
    pointer-events: auto;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.94);
    color: var(--pp-text);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.platform-promo__end-dismiss:hover {
    background: var(--pp-accent);
    color: #fff;
}

.platform-promo__end-dismiss.is-hidden {
    display: none;
}

.platform-promo__dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.platform-promo__dot {
    width: 8px;
    height: 8px;
    border-radius: 5px;
    border: none;
    padding: 0;
    background: #c9d0da;
    cursor: pointer;
    transition: background 0.2s ease, width 0.2s ease;
}

.platform-promo__dot:hover {
    background: #9aa5b4;
}

.platform-promo__dot.is-active {
    background: var(--pp-accent);
    width: 16px;
}

@media (prefers-reduced-motion: reduce) {
    .platform-promo__media img,
    .platform-promo__text,
    .platform-promo__cta {
        transition: none;
    }

    .platform-promo__media img.is-anim-zoom-in,
    .platform-promo__media img.is-anim-scroll-up {
        animation: none;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        height: 100%;
        transform: none;
    }
}

@media (max-width: 900px) {
    .platform-promo {
        align-items: flex-start;
        padding: 12px;
    }

    .platform-promo__dialog {
        width: 100%;
        height: auto;
        max-height: calc(100dvh - 24px);
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .platform-promo__media {
        height: min(34vh, 210px);
    }

    .platform-promo__panel {
        padding: 16px 16px 56px;
        max-height: calc(100dvh - 24px - min(34vh, 210px));
    }

    .platform-promo__title {
        font-size: 1.05rem;
        white-space: normal;
    }

    .platform-promo__arrow--prev {
        left: 8px;
    }

    .platform-promo__arrow--next {
        right: 8px;
    }

    .platform-promo__dots {
        bottom: 10px;
    }
}
