:root {
    --purple: #a21caf;
    --purple-soft: rgba(162, 28, 175, 0.1);
    --purple-border: rgba(162, 28, 175, 0.35);
    --purple-dark: #7c1388;
    --text: #030712;
    --muted: #4b5563;
    --bg: #ffffff;
    --green: #16a34a;
    --green-dark: #15803d;
    --danger-bg: #fee2e2;
    --danger: #dc2626;
    --radius: 16px;
    --max: 28rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

.progress {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 8px;
    background: #f3d6f7;
}

.progress__bar {
    height: 100%;
    width: 8%;
    background: var(--purple);
    border-radius: 0 8px 8px 0;
    transition: width 0.35s ease;
}

.app {
    max-width: var(--max);
    margin: 0 auto;
    padding: 16px 16px 40px;
    min-height: calc(100vh - 8px);
}

.step {
    display: none;
    animation: fadeIn 0.28s ease;
}

.step.is-active {
    display: block;
}

@keyframes fadeIn {
    from { transform: translateY(6px); }
    to { transform: none; }
}

.hero-logo {
    width: 210px;
    height: 210px;
    margin: 12px auto 20px;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(162, 28, 175, 0.18);
}

.eyebrow {
    display: table;
    margin: 0 auto 10px;
    padding: 2px 6px;
    background: #111;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
}

.step h2,
.offer-title {
    margin: 0 0 18px;
    font-size: 1.45rem;
    line-height: 1.2;
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.opt {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 0;
    text-align: left;
    min-height: 56px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: var(--purple);
    transition: transform 0.12s ease, background 0.12s ease;
}

.opt:hover {
    background: var(--purple-dark);
}

.opt.is-selected {
    outline: 2px solid #111;
}

.radio {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: transparent;
}

.opt.is-selected .radio {
    background: #fff;
    box-shadow: inset 0 0 0 5px var(--purple);
}

.hint {
    margin: 16px 0 0;
    padding: 14px 16px;
    background: #f3f4f6;
    color: var(--muted);
    border-radius: 14px;
    text-align: center;
    font-size: 0.9rem;
}

.meta {
    margin: 18px 0 0;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.card {
    padding: 0;
    border: 1px solid var(--purple-border);
    background: #faf5ff;
    border-radius: 18px;
    overflow: hidden;
    color: var(--text);
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.card__label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 14px;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.25;
}

.card .radio {
    border-color: var(--purple);
}

.card.is-selected {
    border-color: var(--purple);
    box-shadow: 0 0 0 2px var(--purple);
}

.card.is-selected .radio {
    background: var(--purple);
    box-shadow: inset 0 0 0 5px #fff;
}

.letters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.letter {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--purple-border);
    background: var(--purple-soft);
    border-radius: 18px;
    color: var(--text);
    text-align: left;
}

.letter.is-selected {
    border-color: var(--purple);
    box-shadow: 0 0 0 2px var(--purple);
}

.badge {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--purple);
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--purple);
    background: #fff;
}

.letter.is-selected .badge {
    background: var(--purple);
    color: #fff;
}

.letter > span:last-child {
    display: block;
}

.letter strong {
    font-weight: 800;
}

.letter .desc {
    font-weight: 500;
    color: #374151;
}

.photos {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.photo {
    padding: 0;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    color: var(--text);
    text-align: left;
}

.photo img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.photo p {
    margin: 0;
    padding: 12px 14px 14px;
    font-weight: 600;
}

.photo.is-selected {
    border-color: var(--purple);
    box-shadow: 0 0 0 2px var(--purple);
}

.yesno {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.yesno button {
    width: 100%;
    min-height: 64px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 700;
}

.yesno button.is-selected {
    border-color: var(--purple);
    box-shadow: 0 0 0 2px var(--purple);
}

.cta,
.cta-green {
    display: block;
    width: 100%;
    min-height: 56px;
    margin-top: 16px;
    border: 0;
    border-radius: 14px;
    background: var(--purple);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    line-height: 1.25;
    padding: 14px 16px;
}

.cta:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.cta-green {
    background: var(--green);
}

.cta-green:hover {
    background: var(--green-dark);
}

.cta-green.is-disabled {
    pointer-events: none;
    cursor: not-allowed;
}

.loading {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
}

.spinner {
    width: 64px;
    height: 64px;
    border: 6px solid #f3d6f7;
    border-top-color: var(--purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading strong {
    font-size: 1.6rem;
}

.social-copy {
    text-align: center;
    margin: 0 0 18px;
    font-size: 1.05rem;
}

.carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 12px;
    -webkit-overflow-scrolling: touch;
}

.carousel img {
    flex: 0 0 78%;
    scroll-snap-align: start;
    border-radius: 16px;
    aspect-ratio: 1;
    object-fit: cover;
}

.alert {
    margin: 8px 0 16px;
    padding: 12px;
    background: var(--danger-bg);
    color: var(--danger);
    font-weight: 800;
    text-align: center;
    border-radius: 16px;
    letter-spacing: 0.04em;
}

.diag-img {
    width: 100%;
    border-radius: 18px;
    margin-bottom: 16px;
}

.lead,
.note,
.closing {
    text-align: center;
}

.checklist {
    margin: 16px 0;
    padding: 0;
    list-style: none;
}

.checklist li {
    margin: 8px 0;
    font-weight: 600;
}

.back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    border: 0;
    background: transparent;
    font-size: 1.4rem;
    color: var(--text);
}

.offer-title mark {
    background: var(--purple);
    color: #fff;
    padding: 0 4px;
}

.offer-intro {
    text-align: center;
    margin: 0 0 20px;
}

.testimonials {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.testimonials img {
    width: 100%;
    border-radius: 14px;
}

.benefits-title {
    display: table;
    margin: 0 auto 14px;
    background: var(--purple);
    color: #fff;
    font-weight: 800;
    padding: 6px 10px;
    text-align: center;
}

.benefits {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.benefits li {
    display: flex;
    gap: 10px;
    margin: 0 0 12px;
    align-items: flex-start;
}

.benefits li span {
    flex: 1;
    min-width: 0;
}

.benefits li::before {
    content: "✔";
    color: var(--green);
    font-weight: 800;
    flex: 0 0 auto;
}

.price-box {
    border: 2px solid var(--purple);
    border-radius: 18px;
    overflow: hidden;
    margin: 8px 0 14px;
}

.price-box__top {
    background: var(--purple);
    color: #fff;
    text-align: center;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 10px;
    letter-spacing: 0.03em;
}

.price-box__body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 16px;
}

.price-box__body h3 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.2;
}

.price-tag {
    background: #f3f4f6;
    border-radius: 12px;
    padding: 8px 12px;
    text-align: right;
    white-space: nowrap;
}

.price-tag small {
    display: block;
    color: #6b7280;
    font-size: 0.75rem;
}

.price-tag strong {
    font-size: 1.35rem;
    white-space: nowrap;
}

.price-tag span {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
}

@media (max-width: 420px) {
    .price-box__body {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 10px;
    }

    .price-tag {
        text-align: center;
    }
}

.trainer-photo {
    width: min(320px, 100%);
    margin: 28px auto 12px;
    border-radius: 8px;
}

.trainer-title {
    color: var(--purple);
    text-align: center;
    font-weight: 800;
    font-size: 1.15rem;
    margin: 8px 0 12px;
}

.trainer-bio {
    text-align: center;
    margin-bottom: 20px;
}

.step[data-type="offer"] {
    padding-bottom: 8px;
}

@media (max-width: 380px) {
    .step h2,
    .offer-title {
        font-size: 1.25rem;
    }
}
