:root {
    --stalin-share-red: #ef3340;
    --stalin-share-black: #050505;
    --stalin-share-border: #292929;
}

.stalin-share,
.stalin-share * {
    box-sizing: border-box;
}

.stalin-share__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 12px 25px;
    border: 1px solid var(--stalin-share-red);
    border-radius: 4px;
    background: transparent;
    color: #df2d68;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: .01em;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.stalin-share__trigger:hover,
.stalin-share__trigger:focus-visible {
    background: var(--stalin-share-red);
    color: #fff;
}

.stalin-share__trigger:active {
    transform: translateY(1px);
}

.stalin-share__trigger-icon {
    width: 23px;
    height: 23px;
    color: currentColor;
}

.stalin-share__trigger-icon svg,
.stalin-share__option-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.stalin-share__overlay[hidden] {
    display: none !important;
}

.stalin-share__overlay {
    position: fixed;
    z-index: 999999;
    inset: 0;
    overflow-y: auto;
    background: rgba(0, 0, 0, .96);
    color: #fff;
    animation: stalinShareFade .2s ease;
}

.stalin-share__modal {
    min-height: 100%;
    padding: 72px clamp(24px, 4vw, 72px);
    background: var(--stalin-share-black);
}

.stalin-share__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.stalin-share__close {
    border: 0;
    padding: 10px 0;
    background: transparent;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: clamp(18px, 1.25vw, 25px);
    cursor: pointer;
}

.stalin-share__close:hover,
.stalin-share__close:focus-visible {
    color: var(--stalin-share-red);
}

.stalin-share__logo {
    display: block;
    width: min(360px, 32vw);
    max-height: 110px;
    object-fit: contain;
    object-position: right center;
}

.stalin-share__divider {
    height: 1px;
    margin-top: 62px;
    background: var(--stalin-share-border);
}

.stalin-share__content {
    padding-top: clamp(80px, 11vh, 145px);
}

.stalin-share__content h2 {
    margin: 0 0 72px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(56px, 5vw, 96px);
    font-weight: 400;
    line-height: 1;
    text-align: center;
}

.stalin-share__options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    max-width: 1500px;
    margin: 0 auto;
}

.stalin-share__option {
    display: flex;
    min-height: 132px;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--stalin-share-border);
    border-radius: 2px;
    background: transparent;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: clamp(21px, 1.7vw, 34px);
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.stalin-share__option:hover,
.stalin-share__option:focus-visible {
    border-color: #626262;
    background: #141414;
    color: #fff;
    transform: translateY(-2px);
}

.stalin-share__option-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
}

.stalin-share__status {
    min-height: 28px;
    margin-top: 28px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 16px;
    text-align: center;
}

body.stalin-share-open {
    overflow: hidden !important;
}

@keyframes stalinShareFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 1024px) {
    .stalin-share__modal {
        padding: 38px 28px;
    }

    .stalin-share__divider {
        margin-top: 36px;
    }

    .stalin-share__content {
        padding-top: 70px;
    }

    .stalin-share__content h2 {
        margin-bottom: 48px;
    }

    .stalin-share__options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .stalin-share__option {
        min-height: 105px;
    }
}

@media (max-width: 640px) {
    .stalin-share__modal {
        padding: 24px 18px 36px;
    }

    .stalin-share__topbar {
        align-items: flex-start;
    }

    .stalin-share__logo {
        width: 150px;
        max-height: 62px;
    }

    .stalin-share__divider {
        margin-top: 24px;
    }

    .stalin-share__content {
        padding-top: 48px;
    }

    .stalin-share__content h2 {
        margin-bottom: 35px;
        font-size: 52px;
    }

    .stalin-share__options {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stalin-share__option {
        min-height: 72px;
        justify-content: flex-start;
        padding: 18px 22px;
        font-size: 21px;
    }

    .stalin-share__option-icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stalin-share__overlay,
    .stalin-share__trigger,
    .stalin-share__option {
        animation: none;
        transition: none;
    }
}
