.promo-tariff-section,
.subscription-widget {
    font-family: 'Beeline Sans', Arial, sans-serif;
}

.promo-tariff-section {
    padding-top: 24px;
}

.promo-tariff {
    position: relative;
    display: flex;
    align-items: flex-start;
    min-height: 321px;
    padding: 24px 32px;
    overflow: hidden;
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.promo-tariff-section--online .promo-tariff {
    background: #f0f3f5;
}

.promo-tariff__intro {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 273px;
    margin-right: -12px;
}

.promo-tariff__title,
.promo-tariff__subtitle,
.promo-tariff__eyebrow,
.promo-tariff__allowance,
.promo-tariff__benefits-text,
.promo-tariff__price {
    margin: 0;
    color: #FFFFFF;
}

.promo-tariff__title {
    position: relative;
    z-index: 1;
    max-width: 408px;
    font-size: 36px;
    font-weight: 500;
    line-height: normal;
    color: #282828;
}

.promo-tariff__subtitle {
    position: relative;
    z-index: 1;
    max-width: 408px;
    margin-top: 8px;
    font-size: 24px;
    font-weight: 300;
    line-height: normal;
    color: #6e788a;
}

.promo-tariff__bee {
    position: absolute;
    right: 20px;
    bottom: -75px;
    width: 240px;
    height: 240px;
    object-fit: contain;
    object-position: center bottom;
    pointer-events: none;
}

.promo-tariff__offer {
    position: relative;
    z-index: 1;
    flex: 0 0 512px;
    min-height: 269px;
    padding: 20px;
    overflow: hidden;
    border-radius: 20px;
    background: #28303f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    color: #fff;
    box-sizing: border-box;
}

.promo-tariff__offer-heading {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.promo-tariff__eyebrow {
    font-size: 20px;
    font-weight: 500;
    line-height: normal;
}

.promo-tariff__allowance,
.promo-tariff__price {
    font-size: 24px;
    font-weight: 700;
    line-height: normal;
}

.promo-tariff__benefits {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 15px;
}

.promo-tariff__benefits-text {
    font-size: 14px;
    font-weight: 300;
    line-height: 18px;
    opacity: 0.9;
    white-space: nowrap;
}

.promo-tariff__benefits-break {
    display: none;
}

.promo-tariff__icons {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.promo-tariff__icons > img,
.promo-tariff__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: -8px;
    overflow: hidden;
    border-radius: 50%;
    object-fit: cover;
    box-sizing: border-box;
}

.promo-tariff__icons > :first-child {
    margin-left: 0;
}

.promo-tariff__icon--sms,
.promo-tariff__icon--call {
    background: #222731;
    color: #fff;
}

.promo-tariff__icon--sms {
    padding-bottom: 6px;
    font-size: 14px;
    letter-spacing: 1px;
}

.promo-tariff__icon--call {
    background: #ffc800;
}

.promo-tariff__icon--call svg {
    width: 18px;
    height: 18px;
    fill: #28303f;
}

.promo-tariff__footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 85px;
}

.promo-tariff__button {
    min-height: 52px;
    border: 0;
    color: #28303f;
    font: 500 16px/20px 'Beeline Sans', Arial, sans-serif;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.promo-tariff__button:hover {
    filter: brightness(0.96);
}

.promo-tariff__button:focus-visible,
.promo-code-modal button:focus-visible,
.promo-code-modal a:focus-visible {
    outline: 3px solid #7a5cff;
    outline-offset: 3px;
}

.promo-tariff__button--pill {
    width: 100%;
    padding: 16px 20px;
    border-radius: 40px;
    background: #ffc800;
}

.promo-tariff__button--soft {
    align-self: flex-start;
    min-height: 44px;
    min-width: 212px;
    padding: 12px 24px;
    border-radius: 12px;
    background: #ffd93a;
}

.promo-tariff__advertising {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 10px;
    line-height: 1.2;
    color: #6e788a;
}

.promo-tariff__advertising-details {
    display: flex;
    gap: 4px;
}

.subscription-widget {
    padding-top: 20px;
}

.subscription-widget__frame-wrap {
    position: relative;
    width: 100%;
    height: 758px;
    overflow: hidden;
    border-radius: 32px;
    background: #f0f3f5;
}

.subscription-widget__placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, #eef1f4 20%, #f8f9fa 40%, #eef1f4 60%);
    background-size: 200% 100%;
    animation: promo-widget-loading 1.4s ease infinite;
}

.subscription-widget__frame {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.subscription-widget.is-loaded .subscription-widget__frame {
    opacity: 1;
}

.subscription-widget.is-loaded .subscription-widget__placeholder {
    display: none;
}

@keyframes promo-widget-loading {
    to { background-position: -200% 0; }
}

.promo-code-modal[hidden] {
    display: none;
}

.promo-code-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: 'Beeline Sans', Arial, sans-serif;
    box-sizing: border-box;
}

.promo-code-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(21, 25, 32, 0.5);
    backdrop-filter: blur(8px);
}

.promo-code-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(532px, 100%);
    min-height: 429px;
    padding: 52px 60px 40px;
    border-radius: 32px;
    background: #f0f3f5;
    box-sizing: border-box;
}

.promo-code-modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.promo-code-modal__close svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #6e788a;
    stroke-width: 1.7;
    stroke-linecap: round;
}

.promo-code-modal__title {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    line-height: 26px;
    text-align: center;
    color: #282828;
}

.promo-code-modal__code-group {
    margin-top: 12px;
}

.promo-code-modal__code-row {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px 0 16px;
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
}

.promo-code-modal__code {
    flex: 1 1 auto;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: #282828;
}

.promo-code-modal__copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.promo-code-modal__copy svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #28303f;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.promo-code-modal__copied {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    padding: 11px 20px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(40, 48, 63, 0.14);
    color: #6e788a;
    font-size: 14px;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.promo-code-modal__copied.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.promo-code-modal__code-label {
    margin-top: 4px;
    font-size: 12px;
    line-height: 15px;
    color: #6e788a;
    text-align: center;
}

.promo-code-modal__steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0 20px;
    padding: 0;
    list-style: none;
    counter-reset: promo-step;
}

.promo-code-modal__steps li {
    position: relative;
    min-height: 32px;
    padding: 7px 0 0 44px;
    color: #282828;
    font-size: 14px;
    line-height: 17px;
    counter-increment: promo-step;
    box-sizing: border-box;
}

.promo-code-modal__steps li::before {
    content: counter(promo-step);
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    font-size: 16px;
    line-height: 20px;
}

.promo-code-modal__basket {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 16px 20px;
    border-radius: 12px;
    background: #FFD93A;
    color: #28303f;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    box-sizing: border-box;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.promo-code-modal__basket:hover {
    filter: brightness(0.96);
    color: #28303f;
}

body.promo-code-modal-open {
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    .promo-tariff-section {
        padding-top: 24px;
    }

    .promo-tariff {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 402px;
        padding: 16px 12px 12px;
    }

    .promo-tariff__intro {
        flex: none;
        width: 100%;
        height: 88px;
        margin: 0 0 12px;
    }

    .promo-tariff__title {
        max-width: 250px;
        font-size: 20px;
    }

    .promo-tariff__subtitle {
        width: 192px;
        margin-top: 8px;
        font-size: 16px;
        line-height: normal;
    }

    .promo-tariff__bee {
        right: 0;
        bottom: -34px;
        width: 96px;
        height: 96px;
    }

    .promo-tariff__offer {
        flex: none;
        width: 100%;
        min-height: 274px;
        padding: 20px 12px;
    }

    .promo-tariff__benefits {
        margin-top: 16px;
    }

    .promo-tariff__benefits-break {
        display: block;
    }

    .promo-tariff__footer {
        margin-top: 76px;
    }

    .promo-tariff__button--soft {
        min-height: 44px;
    }

    .subscription-widget__frame-wrap {
        height: 648px;
        border-radius: 24px;
    }

    .promo-code-modal {
        padding: 20px;
    }

    .promo-code-modal__dialog {
        min-height: 0;
        padding: 52px 20px 28px;
        border-radius: 28px;
    }
}

@media screen and (max-width: 430px) {
    .promo-tariff-section .container,
    .subscription-widget .container {
        padding-right: 20px;
        padding-left: 20px;
    }

    .promo-code-modal__title {
        padding-right: 24px;
    }

    .promo-tariff__footer {
        margin-top: 32px;
        flex-direction: column;
        align-items: flex-start;
    }

    .promo-tariff__button--soft {
        min-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .subscription-widget__placeholder,
    .promo-code-modal__copied,
    .promo-tariff__button {
        animation: none;
        transition: none;
    }
}
