:root {
    --text: #25252d;
    --muted: #4b4b55;
    --accent: #FA6b6b;
    --accent-dark: #FA6b6b;
    --green: #2bc46f;
    --shadow: 0 10px 26px rgba(0,0,0,.2);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: #fff;
}

.hero-wrap {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 34px 20px 60px;
}

.hero {
    width: min(1220px, 100%);
    text-align: center;
}

.personalized-badge {
    display: inline-block;
    margin: 0 0 20px;
    padding: 8px 18px;
    border-radius: 999px;
    background: #fff3f3;
    color: #FA6b6b;
    font-size: clamp(24px, 2.8vw, 34px);
    line-height: 1.1;
    font-weight: 900;
}

.hero h1 {
    margin: 0;
    font-size: clamp(22px, 2.7vw, 30px);
    line-height: 1.08;
    letter-spacing: -.04em;
    font-weight: 850;
}

.hero h1 span {
    display: inline-block;
    padding: 0 9px 3px;
    border-radius: 8px;
    color: #fff;
    background: var(--accent);
}

.underline {
    width: min(420px, 70vw);
    height: 12px;
    margin: 4px auto 15px;
    border-bottom: 5px solid var(--accent);
    border-radius: 50%;
    transform: rotate(-1deg);
}

.subtitle {
    margin: 0 auto 30px;
    max-width: 980px;
    font-size: clamp(17px, 2.1vw, 22px);
    line-height: 1.12;
    font-weight: 650;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 28px;
    align-items: center;
    width: min(1180px, 100%);
    margin: 0 auto;
    text-align: left;
}

.video-card {
    justify-self: end;
    width: min(600px, 100%);
}

.youtube-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: var(--shadow);
    background: #000;
}

.youtube-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    font-size: 16px;
    text-align: left;
}

.avatars {
    display: flex;
    align-items: center;
}

.avatars img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-right: -12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.avatars span {
    width: 42px;
    height: 42px;
    margin-right: -12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: linear-gradient(135deg, #111, #ddd);
}

.stars {
    color: #f6b100;
    letter-spacing: 3px;
    font-size: 21px;
    white-space: nowrap;
}

.rating-row p {
    margin: 0;
    color: var(--muted);
}

.benefits-card {
    padding: 8px 0 0;
}

.benefits {
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
    display: grid;
    gap: 16px;
}

.benefits li {
    position: relative;
    padding-left: 38px;
    font-size: clamp(18px, 2.1vw, 22px);
    line-height: 1.12;
    font-weight: 760;
}

.benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: -2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--green);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
}

.cta {
    display: block;
    width: min(405px, 100%);
    margin: 0 auto 6px;
    padding: 12px 18px;
    border-radius: 3px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(#ff8d91, var(--accent-dark));
    font-size: 18px;
    font-weight: 850;
    box-shadow: 0 4px 10px rgba(255, 93, 99, .33);
}

.trust {
    margin: 0;
    text-align: center;
    color: var(--muted);
    font-size: 16px;
}

.config-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #fafafa;
}

.config-card {
    width: min(720px, 100%);
    padding: 32px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0,0,0,.08);
}

.config-card h1 {
    margin-top: 0;
}

.config-form,
.result-box {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.config-card input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 17px;
}

.config-card button {
    padding: 14px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--accent-dark);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.copy-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.error {
    color: #b00020;
    font-weight: 700;
}

.hint {
    color: var(--muted);
}

@media (max-width: 900px) {

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .video-card {
        justify-self: center;
    }

    .benefits-card {
        width: min(600px, 100%);
        margin: 0 auto;
        text-align: left;
    }

    .rating-row {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 560px) {

    .hero-wrap {
        padding-top: 24px;
    }

    .subtitle br,
    .hero h1 br {
        display: none;
    }

    .youtube-wrapper {
        aspect-ratio: 16 / 9;
    }

    .copy-row {
        grid-template-columns: 1fr;
    }
}
