:root {
    --promo-accent: #ff0b72;
    --promo-violet: #bd2ce3;
}

.site-offer-strip,
.site-offer-strip *,
.tg-sponsor,
.tg-sponsor * { box-sizing: border-box; }

.site-offer-strip {
    position: fixed;
    z-index: 2147483000;
    top: max(76px, calc(env(safe-area-inset-top) + 68px));
    left: 50%;
    width: min(1180px, calc(100vw - 40px));
    color: #fff;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(-50%, -28px, 0) scale(.985);
    transition: opacity .22s ease, transform .28s cubic-bezier(.2,.8,.2,1);
}
.site-offer-strip.is-visible { opacity: 1; visibility: visible; transform: translate3d(-50%,0,0) scale(1); }
.site-offer-strip.is-closing { opacity: 0; transform: translate3d(-50%,-24px,0) scale(.985); }
.site-offer-strip__inner {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: grid;
    grid-template-columns: 50px minmax(0,1fr) auto;
    align-items: center;
    gap: 0 16px;
    padding: 14px 54px 14px 16px;
    border: 1px solid rgba(255,67,151,.38);
    border-radius: 18px;
    background:
        radial-gradient(circle at 0 0, rgba(255,11,114,.24), transparent 38%),
        radial-gradient(circle at 100% 100%, rgba(189,44,227,.22), transparent 42%),
        linear-gradient(145deg, rgba(28,19,31,.985), rgba(13,13,19,.99));
    box-shadow: 0 24px 70px rgba(0,0,0,.62), 0 0 0 1px rgba(255,255,255,.05) inset, 0 0 50px rgba(255,11,114,.16);
}
.site-offer-strip__inner::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--promo-accent), var(--promo-violet));
    content: "";
}
.site-offer-strip__icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,87,161,.38);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255,11,114,.24), rgba(189,44,227,.16));
    color: #ff4a99;
    box-shadow: 0 12px 28px rgba(255,11,114,.12);
}
.site-offer-strip__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    line-height: 1.35;
}
.site-offer-strip__label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ff72b0;
    font-size: 9.5px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.site-offer-strip__label i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff167c;
    box-shadow: 0 0 0 5px rgba(255,22,124,.11), 0 0 18px rgba(255,22,124,.85);
    animation: promo-pulse 1.8s ease-in-out infinite;
}
.site-offer-strip__badge {
    display: inline-flex;
    width: max-content;
    margin-top: 4px;
    padding: 3px 7px;
    border: 1px solid rgba(255,91,165,.25);
    border-radius: 999px;
    background: rgba(255,11,114,.08);
    color: #ffd4e7;
    font-size: 10px;
    font-weight: 720;
}
.site-offer-strip__title {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 820;
    line-height: 1.2;
    letter-spacing: -.025em;
}
.site-offer-strip__text {
    color: #b8b3be;
    font-size: 11.5px;
    line-height: 1.5;
}
.site-offer-strip__cta {
    grid-column: 3;
    grid-row: 1;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 0;
    padding: 0 20px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: linear-gradient(110deg, var(--promo-accent), var(--promo-violet));
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 12px 30px rgba(255,11,114,.28);
    transition: transform .18s ease, box-shadow .18s ease;
}
.site-offer-strip__cta:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(255,11,114,.38); }
.site-offer-strip__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #858590;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
}
.site-offer-strip__close:hover { background: rgba(255,255,255,.06); color: #fff; }

@keyframes promo-pulse {
    0%, 100% { opacity: .65; transform: scale(.88); }
    50% { opacity: 1; transform: scale(1); }
}

.tg-sponsor {
    position: fixed;
    z-index: 8800;
    left: 22px;
    bottom: 22px;
    width: min(455px, calc(100vw - 44px));
    transform: translate3d(0, calc(100% + 44px), 0);
    opacity: 0;
    visibility: hidden;
    transition: transform .42s cubic-bezier(.2,.8,.2,1), opacity .3s ease, visibility .3s ease;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tg-sponsor.is-visible {
    transform: translate3d(0,0,0);
    opacity: 1;
    visibility: visible;
}

.tg-sponsor__body {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 48px minmax(0,1fr);
    gap: 14px;
    padding: 18px 48px 18px 18px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 20px;
    background: radial-gradient(circle at 100% 0, rgba(189,44,227,.23), transparent 38%), linear-gradient(150deg, rgba(27,27,35,.98), rgba(14,14,19,.98));
    box-shadow: 0 24px 70px rgba(0,0,0,.45), 0 0 0 1px rgba(255,11,114,.05) inset;
    color: #fff;
}

.tg-sponsor__body::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--promo-accent), var(--promo-violet));
    content: "";
}

.tg-sponsor__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(255,11,114,.22), rgba(189,44,227,.16));
    color: #ff4b9a;
}

.tg-sponsor__copy { min-width: 0; }
.tg-sponsor__label {
    display: block;
    margin-bottom: 5px;
    color: #ff4b9a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.tg-sponsor__title {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 760;
    line-height: 1.25;
    letter-spacing: -.02em;
}
.tg-sponsor__text {
    margin: 6px 0 13px;
    color: #aaaab5;
    font-size: 12.5px;
    line-height: 1.55;
}
.tg-sponsor__cta {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px;
    background: linear-gradient(110deg, var(--promo-accent), var(--promo-violet));
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(255,11,114,.18);
}
.tg-sponsor__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #888894;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.tg-sponsor__close:hover { background: rgba(255,255,255,.06); color: #fff; }

@media (max-width: 640px) {
    .site-offer-strip {
        top: max(64px, calc(env(safe-area-inset-top) + 58px));
        left: 50%;
        width: calc(100vw - 20px);
    }
    .site-offer-strip__inner {
        grid-template-columns: minmax(0,1fr) auto;
        gap: 10px;
        padding: 12px 38px 12px 13px;
        border-radius: 15px;
    }
    .site-offer-strip__icon { display: none; }
    .site-offer-strip__copy { gap: 2px; }
    .site-offer-strip__label { font-size: 8px; letter-spacing: .08em; }
    .site-offer-strip__title {
        font-size: 14px;
        line-height: 1.22;
    }
    .site-offer-strip__text { display: none; }
    .site-offer-strip__badge { margin-top: 3px; padding: 2px 6px; font-size: 8.5px; }
    .site-offer-strip__cta { grid-column: 2; grid-row: 1; min-height: 40px; margin: 0; padding: 0 11px; font-size: 10.5px; }
    .site-offer-strip__close { width: 26px; height: 26px; }
    .tg-sponsor { right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); left: 10px; width: auto; }
    .tg-sponsor__body { grid-template-columns: 40px minmax(0,1fr); gap: 12px; padding: 15px 42px 15px 14px; border-radius: 17px; }
    .tg-sponsor__icon { width: 40px; height: 40px; border-radius: 12px; }
    .tg-sponsor__text { margin-bottom: 11px; }
    .tg-sponsor__cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .site-offer-strip { transition: opacity .15s ease; }
    .site-offer-strip__label i { animation: none; }
    .tg-sponsor { transition: opacity .15s ease, visibility .15s ease; }
}
