:root {
    --pw-red: #fe0000;
    --pw-red-soft: #fff1f1;
    --pw-text: #101010;
    --pw-muted: #6b6b6b;
    --pw-line: #ececec;
    --pw-bg: #f6f6f6;
    --pw-radius: 14px;
}

.pw-page {
    background: var(--pw-bg);
    color: var(--pw-text);
    padding-bottom: 80px;
}

.pw-hero {
    padding: 40px 0 50px;
}

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

.pw-hero__left {
    flex: 1 1 auto;
}

.pw-hero__right {
    flex: 0 1 52%;
}

.pw-hero__right img {
    display: block;
    width: 100%;
    height: auto;
}

.pw-hero__title {
    margin: 0 0 18px;
    font-size: 56px;
    line-height: 1.05;
    font-weight: 800;
    text-transform: uppercase;
}

.pw-hero__title span {
    color: var(--pw-red);
}

.pw-hero__desc {
    font-size: 18px;
    color: var(--pw-muted);
}

.pw-programs__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

.pw-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1.5px solid transparent;
    border-radius: var(--pw-radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.pw-card--featured {
    border-color: var(--pw-red);
}

.pw-card__cover {
    position: relative;
    aspect-ratio: 16 / 10;
    max-height: 200px;
}

.pw-card__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pw-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: var(--pw-red);
    border-radius: 6px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pw-card__badge--static {
    position: static;
    align-self: flex-start;
    margin: 20px 24px 0;
}

.pw-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 24px;
}

.pw-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.pw-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--pw-red-soft);
}

.pw-card__icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.pw-card__title {
    margin: 0;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
}

.pw-card__subtitle {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--pw-line);
    font-size: 15px;
    line-height: 1.45;
    color: var(--pw-muted);
}

.pw-features {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pw-features li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 30px;
    font-size: 15px;
    line-height: 1.4;
}

.pw-features li::before {
    content: "✓";
    position: absolute;
    top: 1px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border: 1.5px solid var(--pw-red);
    border-radius: 50%;
    color: var(--pw-red);
    font-size: 11px;
    line-height: 1;
}

.pw-card__features {
    margin-bottom: 24px;
}

.pw-card__options-title {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pw-muted);
}

.pw-card__options-list {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 24px;
}

.pw-option {
    display: flex;
    cursor: pointer;
}

.pw-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pw-option__body {
    position: relative;
    display: block;
    padding: 16px 12px;
    border: 1.5px solid var(--pw-line);
    border-radius: 10px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}

.pw-option__badge {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 9px;
    background: var(--pw-red);
    border-radius: 4px;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pw-option input:checked + .pw-option__body {
    border-color: var(--pw-red);
    background: var(--pw-red-soft);
}

.pw-option input:focus-visible + .pw-option__body {
    outline: 2px solid var(--pw-red);
    outline-offset: 2px;
}

.pw-option__name {
    display: block;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
}

.pw-option__volume {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--pw-muted);
}

.pw-option__price {
    display: block;
    margin-top: 8px;
    font-size: 20px;
    font-weight: 800;
    color: var(--pw-red);
}

.pw-card__bottom {
    margin-top: auto;
}

.pw-card__price {
    margin-bottom: 16px;
    text-align: center;
}

.pw-card__price-old {
    display: block;
    color: var(--pw-muted);
    font-size: 16px;
    font-weight: 600;
    text-decoration: line-through;
}

.pw-card__price-now {
    display: block;
    color: var(--pw-red);
    font-size: 26px;
    font-weight: 800;
}

.pw-card__actions {
    display: grid;
    gap: 10px;
}

.pw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border: 1.5px solid transparent;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s, color 0.2s;
}

.pw-btn:hover {
    opacity: 0.85;
}

.pw-card__actions .pw-btn {
    position: relative;
    padding-right: 46px;
    padding-left: 46px;
    width: 100%;
}

.pw-btn__arrow {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    font-size: 17px;
    line-height: 1;
}

.pw-btn--red {
    background: var(--pw-red);
    color: #fff;
}

.pw-btn--ghost {
    background: #fff;
    border-color: var(--pw-line);
    color: var(--pw-text);
}

.pw-btn--blue {
    background: #229ed9;
    color: #fff;
}

.pw-btn[disabled] {
    opacity: 0.6;
    cursor: default;
}

.pw-advantages {
    padding: 30px 0;
}

.pw-advantages__title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.pw-advantages__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 26px 20px;
    background: #fff;
    border-radius: var(--pw-radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.pw-advantages__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}

.pw-advantages__item + .pw-advantages__item {
    border-left: 1px solid var(--pw-line);
}

.pw-advantages__icon {
    flex: 0 0 auto;
    line-height: 1;
}

.pw-advantages__icon img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.pw-how {
    padding: 30px 0;
}

.pw-how__title {
    margin: 0 0 28px;
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.pw-how__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 36px 20px;
    background: #fff;
    border-radius: var(--pw-radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.pw-how__step {
    position: relative;
    text-align: center;
}

.pw-how__step + .pw-how__step::before {
    content: "→";
    position: absolute;
    top: 22px;
    left: -10%;
    width: 20%;
    color: var(--pw-muted);
    font-size: 22px;
    line-height: 1;
}

.pw-how__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--pw-red-soft);
    color: var(--pw-red);
    font-size: 24px;
    font-weight: 800;
}

.pw-how__text {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.pw-how__desc {
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--pw-muted);
}

.pw-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
}

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

.pw-modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.pw-modal__box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    margin: auto;
    padding: 36px 32px;
    background: #fff;
    border-radius: var(--pw-radius);
}

.pw-modal__box--wide {
    max-width: 1100px;
}

.pw-modal__box--narrow {
    max-width: 460px;
    text-align: center;
}

.pw-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    padding: 0;
    width: 32px;
    height: 32px;
    background: none;
    border: 0;
    color: var(--pw-muted);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.pw-modal__title {
    margin-bottom: 22px;
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
}

.pw-modal__content {
    font-size: 15px;
    line-height: 1.6;
}

body.pw-modal-open {
    overflow: hidden;
}

.pw-packages__header {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--pw-line);
}

.pw-packages__label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pw-packages__title {
    margin-top: 2px;
    color: var(--pw-red);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.pw-packages__subtitle {
    margin-top: 8px;
    font-size: 14px;
    color: var(--pw-muted);
}

.pw-packages__subtitle[hidden] {
    display: none;
}

.pw-packages__wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 20px;
    align-items: start;
}

.pw-packages__group[hidden] {
    display: none;
}

.pw-pack {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
}

.pw-pack input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pw-pack__body {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    border: 1.5px solid var(--pw-line);
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pw-pack input:checked + .pw-pack__body {
    border-color: var(--pw-red);
    background: rgba(255, 0, 0, 0.04);
    border: 1.5px solid #fe0000;
}

.pw-pack__badge {
    position: absolute;
    top: -1px;
    right: -1px;
    display: none;
    padding: 4px 10px;
    background: var(--pw-red);
    border-radius: 0 9px 0 9px;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.pw-pack input:checked + .pw-pack__body .pw-pack__badge {
    display: block;
}

.pw-pack input:focus-visible + .pw-pack__body {
    outline: 2px solid var(--pw-red);
    outline-offset: 2px;
}

.pw-pack__mark {
    position: relative;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 1.5px solid #c9c9c9;
    border-radius: 50%;
    transition: border-color 0.2s;
}

.pw-pack input:checked + .pw-pack__body .pw-pack__mark {
    border-color: var(--pw-red);
}

.pw-pack input:checked + .pw-pack__body .pw-pack__mark::after {
    content: "";
    position: absolute;
    inset: 3px;
    background: var(--pw-red);
    border-radius: 50%;
}

.pw-pack__text {
    flex: 1 1 auto;
    min-width: 0;
}

.pw-pack__name {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

.pw-pack__volume {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--pw-muted);
}

.pw-pack__price {
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.pw-pack input:checked + .pw-pack__body .pw-pack__price {
    color: var(--pw-red);
}

.pw-packages__detail {
    padding: 20px;
    background: #fff;
    border: 1.5px solid var(--pw-red);
    border-radius: 12px;
}

.pw-detail[hidden] {
    display: none;
}

.pw-detail__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.pw-detail__name {
    font-size: 19px;
    font-weight: 800;
    text-transform: uppercase;
}

.pw-detail__volume {
    margin-top: 3px;
    font-size: 13px;
    color: var(--pw-muted);
}

.pw-detail__aside {
    flex: 0 0 auto;
    text-align: right;
}

.pw-detail__badge {
    display: inline-block;
    padding: 4px 10px;
    border: 1.5px solid var(--pw-red);
    border-radius: 20px;
    color: var(--pw-red);
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.pw-detail__price {
    display: block;
    margin-top: 8px;
    color: var(--pw-red);
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
}

.pw-detail__includes {
    margin: 18px 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pw-detail__features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding: 10px 14px 10px 42px;
    border: 1px solid var(--pw-line);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.35;
}

.pw-detail__features li::before {
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
}

.pw-features__text {
    flex: 1 1 auto;
}

.pw-features__icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.pw-detail__plan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: 12px;
    padding: 11px 14px;
    background: var(--pw-red-soft);
    border: 1px solid rgba(254, 0, 0, 0.35);
    border-radius: 8px;
    color: var(--pw-red);
    font-family: inherit;
    font-size: 13px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.pw-detail__plan:hover {
    border-color: var(--pw-red);
}

.pw-modal--plan {
    z-index: 10010;
    align-items: center;
}

.pw-plan {
    padding: 16px;
}

.pw-plan__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.pw-packages__footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--pw-line);
}

.pw-packages__footer .pw-btn {
    min-width: 150px;
}

.pw-packages__footer .pw-btn--red {
    min-width: 250px;
}

.pw-checkout__item {
    font-size: 18px;
    font-weight: 700;
}

.pw-checkout__total {
    margin: 6px 0 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--pw-line);
    font-size: 15px;
    color: var(--pw-muted);
}

.pw-checkout__total span {
    font-size: 20px;
    font-weight: 800;
    color: var(--pw-red);
}

.pw-field {
    display: block;
    margin-bottom: 18px;
}

.pw-field__label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

.pw-field input {
    width: 100%;
    padding: 13px 14px;
    background: #fff;
    border: 1.5px solid var(--pw-line);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    box-sizing: border-box;
}

.pw-field input:focus {
    border-color: var(--pw-red);
    outline: none;
}

.pw-field input.pw-invalid {
    border-color: var(--pw-red);
    background: var(--pw-red-soft);
}

.pw-pay {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pw-pay__option {
    position: relative;
    display: block;
    cursor: pointer;
}

.pw-pay__option input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.pw-pay__card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 12px;
    background: #fff;
    border: 1.5px solid var(--pw-line);
    border-radius: 10px;
    transition: border-color .15s, box-shadow .15s;
}

.pw-pay__option:hover .pw-pay__card {
    border-color: rgba(254, 0, 0, .45);
}

.pw-pay__option input:checked + .pw-pay__card {
    border-color: var(--pw-red);
    box-shadow: 0 0 0 3px var(--pw-red-soft);
}

.pw-pay__option input:focus-visible + .pw-pay__card {
    outline: 2px solid var(--pw-red);
    outline-offset: 2px;
}

.pw-pay__logo {
    max-width: 100%;
    max-height: 40px;
    height: auto;
    object-fit: contain;
}

.pw-pay__option--off {
    cursor: not-allowed;
}

.pw-pay__option--off .pw-pay__card {
    background: var(--pw-bg);
    opacity: .55;
}

.pw-pay__option--off:hover .pw-pay__card {
    border-color: var(--pw-line);
}

.pw-pay__badge {
    position: absolute;
    top: 6px;
    right: 8px;
    padding: 2px 7px;
    background: var(--pw-muted);
    border-radius: 20px;
    color: #fff;
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 420px) {
    .pw-pay {
        grid-template-columns: 1fr;
    }
}

.pw-field__hint {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: var(--pw-muted);
}

.pw-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}

.pw-check input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--pw-red);
}

.pw-check a {
    color: inherit;
    text-decoration: underline;
}

.pw-checkout__error {
    margin-bottom: 14px;
    color: var(--pw-red);
    font-size: 14px;
}

.pw-checkout__error:empty {
    display: none;
}

.pw-checkout__actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 12px;
}

.pw-redirect__logo {
    display: block;
    max-width: 160px;
    max-height: 48px;
    height: auto;
    margin: 0 auto 16px;
    object-fit: contain;
}

.pw-redirect__desc {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--pw-muted);
}

.pw-redirect__features {
    display: inline-block;
    margin-bottom: 20px;
    text-align: left;
}

.pw-redirect__wait {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--pw-muted);
}

.pw-success__icon {
    margin-bottom: 12px;
    font-size: 44px;
    line-height: 1;
}

.pw-success__thanks {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 700;
}

.pw-success__desc {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--pw-muted);
}

.pw-success__actions {
    display: grid;
    gap: 12px;
}

@media (max-width: 1200px) {
    .pw-programs__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pw-hero__title {
        font-size: 42px;
    }
}

@media (max-width: 900px) {
    .pw-advantages__grid,
    .pw-how__steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .pw-advantages__item + .pw-advantages__item {
        border-left: 0;
    }

    .pw-how__step + .pw-how__step::before {
        display: none;
    }
}

@media (max-width: 900px) {
    .pw-hero__wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .pw-hero__right {
        order: -1;
    }
}

@media (max-width: 700px) {
    .pw-hero {
        padding: 24px 0 30px;
    }

    .pw-hero__title {
        font-size: 30px;
    }

    .pw-programs__grid,
    .pw-advantages__grid,
    .pw-how__steps {
        grid-template-columns: 1fr;
    }

    .pw-modal {
        padding: 0;
    }

    .pw-modal__box {
        min-height: 100%;
        margin: 0;
        padding: 28px 18px;
        border-radius: 0;
    }

    .pw-modal__title {
        font-size: 21px;
    }

    .pw-packages__wrap {
        grid-template-columns: 1fr;
    }

    .pw-packages__title {
        font-size: 21px;
    }

    .pw-packages__footer {
        flex-direction: column-reverse;
    }

    .pw-checkout__actions {
        grid-template-columns: 1fr;
    }
}
