/* Вечер у родителей — лендинг. Визуал: тот же язык, что у квиза (ink + teal) */

:root {
    --ink: #0f1c24;
    --ink-soft: #3a4a54;
    --paper: #eef3f5;
    --paper-2: #e2eaee;
    --teal: #0f766e;
    --teal-bright: #14b8a6;
    --amber: #d97706;
    --danger: #c2410c;
    --white: #ffffff;
    --line: #c5d0d6;
    --shadow: 0 18px 40px rgba(15, 28, 36, 0.1);
    --shadow-sm: 0 8px 20px rgba(15, 28, 36, 0.07);
    --radius: 18px;
    --radius-sm: 12px;
    --font-display: "Unbounded", system-ui, sans-serif;
    --font-body: "Onest", system-ui, sans-serif;
    --max: 46rem;
    --max-wide: 68rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--ink);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(20, 184, 166, 0.18), transparent 55%),
        radial-gradient(900px 500px at 100% 0%, rgba(217, 119, 6, 0.12), transparent 50%),
        linear-gradient(165deg, #f4f8fa 0%, var(--paper) 45%, var(--paper-2) 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

img,
svg,
iframe {
    max-width: 100%;
    display: block;
}

[hidden] {
    display: none !important;
}

a {
    color: var(--teal);
}

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: 1rem;
    top: 1rem;
    z-index: 10;
    background: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

.wrap {
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
}

.wrap--wide {
    width: min(100% - 2rem, var(--max-wide));
}

/* В широких секциях сетки тянем на всю ширину, а текст держим читаемым */
.wrap--wide > .eyebrow,
.wrap--wide > .section__title,
.wrap--wide > .section__lead,
.wrap--wide > .note {
    max-width: 42rem;
}

/* ——— Базовая типографика ——— */

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0;
}

.eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
}

.eyebrow--light {
    color: var(--teal-bright);
}

.section__title {
    font-size: clamp(1.35rem, 3.4vw, 1.85rem);
    line-height: 1.25;
    margin-bottom: 1rem;
}

.section__lead {
    margin: 1.25rem 0 0;
    color: var(--ink-soft);
}

.note {
    margin: 1.5rem 0 0;
    padding: 0.9rem 1.1rem;
    border-left: 3px solid var(--teal);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.note--warn {
    border-left-color: var(--amber);
}

.link {
    color: var(--teal);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.link--light {
    color: var(--teal-bright);
}

/* ——— Кнопки ——— */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.btn--block {
    width: 100%;
}

.btn--primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-bright) 120%);
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.34);
}

.btn--ghost {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.75);
    border-color: var(--line);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    border-color: var(--teal);
    color: var(--teal);
}

.btn:focus-visible {
    outline: 3px solid rgba(20, 184, 166, 0.45);
    outline-offset: 2px;
}

/* ——— Верхняя панель ——— */

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: rgba(244, 248, 250, 0.82);
    border-bottom: 1px solid rgba(197, 208, 214, 0.6);
}

.topbar__inner {
    width: min(100% - 2rem, var(--max-wide));
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
}

.topbar__brand {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

.topbar__link {
    font-size: 0.9rem;
    color: var(--teal);
    text-decoration: none;
    border-bottom: 1px solid rgba(15, 118, 110, 0.35);
}

/* ——— Hero ——— */

.hero {
    padding: clamp(2rem, 6vw, 4rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.hero__grid {
    width: min(100% - 2rem, var(--max-wide));
    margin-inline: auto;
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 1020px) {
    .hero__grid {
        grid-template-columns: 1.22fr 0.78fr;
        gap: 3rem;
    }
}

.hero__title {
    font-size: clamp(1.65rem, 3.9vw, 2.3rem);
    line-height: 1.18;
}

.hero__lead {
    margin: 1.1rem 0 0;
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--ink-soft);
    max-width: 34rem;
}

.hero__actions {
    margin-top: 1.75rem;
    display: grid;
    gap: 0.75rem;
    justify-items: start;
}

@media (min-width: 1020px) {
    .hero__actions .btn--block {
        width: auto;
        min-width: 18rem;
        padding-inline: 2.25rem;
    }
}

@media (max-width: 520px) {
    .hero__actions {
        justify-items: stretch;
    }

    .hero__actions .hero__hint,
    .hero__actions .hero__alt {
        text-align: center;
    }
}

.hero__hint {
    margin: 0;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.hero__alt {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ink-soft);
    max-width: 30rem;
}

/* Карточка чек-листа */

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero__visual {
    margin: 0;
    max-width: 24rem;
}

.checklist {
    padding: 1.4rem 1.4rem 1.1rem;
    border: 1px solid rgba(197, 208, 214, 0.5);
    transform: rotate(-1deg);
    transition: transform 200ms ease;
}

.checklist:hover {
    transform: rotate(0deg);
}

.checklist__label {
    margin: 0 0 0.9rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
}

.checklist__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.checklist__list li {
    position: relative;
    padding-left: 2rem;
    font-size: 0.95rem;
    color: var(--ink);
}

.checklist__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: var(--white);
}

.checklist__list li::after {
    content: "";
    position: absolute;
    left: 0.38rem;
    top: 0.48rem;
    width: 0.5rem;
    height: 0.28rem;
    border-left: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(-45deg) scale(0.6);
    opacity: 0;
    transition: opacity 200ms ease, transform 200ms ease;
}

.checklist.is-visible li::before {
    background: var(--teal);
    border-color: var(--teal);
}

.checklist.is-visible li::after {
    opacity: 1;
    transform: rotate(-45deg) scale(1);
}

.checklist.is-visible li:nth-child(1)::after { transition-delay: 80ms; }
.checklist.is-visible li:nth-child(2)::after { transition-delay: 160ms; }
.checklist.is-visible li:nth-child(3)::after { transition-delay: 240ms; }
.checklist.is-visible li:nth-child(4)::after { transition-delay: 320ms; }
.checklist.is-visible li:nth-child(5)::after { transition-delay: 400ms; }
.checklist.is-visible li:nth-child(6)::after { transition-delay: 480ms; }
.checklist.is-visible li:nth-child(7)::after { transition-delay: 560ms; }

.checklist__foot {
    margin: 1rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--line);
    font-size: 0.85rem;
    color: var(--ink-soft);
}

/* ——— Секции ——— */

.section {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.section--surface {
    background: rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(197, 208, 214, 0.45);
    border-bottom: 1px solid rgba(197, 208, 214, 0.45);
}

.section--dark {
    background:
        radial-gradient(700px 340px at 80% 0%, rgba(20, 184, 166, 0.28), transparent 60%),
        var(--ink);
    color: var(--white);
}

.section--dark .section__lead {
    color: rgba(238, 243, 245, 0.78);
}

.section--dark .section__title {
    color: var(--white);
}

/* Узнавание */

.trigger {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

@media (min-width: 900px) {
    .trigger {
        grid-template-columns: repeat(3, 1fr);
    }
}

.trigger li {
    padding: 1.1rem 1.2rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.trigger li p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.trigger__head {
    margin-bottom: 0.4rem !important;
    font-family: var(--font-display);
    font-size: 0.95rem !important;
    color: var(--ink) !important;
}

/* Две задачи */

.jobs {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 760px) {
    .jobs {
        grid-template-columns: 1fr 1fr;
    }
}

.jobs__item {
    padding: 1.4rem 1.5rem;
    border-top: 3px solid var(--teal);
}

.jobs__item h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.jobs__item p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

/* Что внутри */

.value {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 760px) {
    .value {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 2rem;
    }
}

.value li {
    display: grid;
    gap: 0.3rem;
    padding-left: 1.1rem;
    border-left: 2px solid rgba(15, 118, 110, 0.25);
}

.value strong {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 600;
}

.value span {
    font-size: 0.95rem;
    color: var(--ink-soft);
}

/* Шаги */

.steps {
    list-style: none;
    counter-reset: step;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

@media (min-width: 760px) {
    .steps {
        grid-template-columns: 1fr 1fr;
    }
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 1.1rem 1.2rem 1.1rem 3.4rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 1.1rem;
    top: 1.05rem;
    width: 1.65rem;
    height: 1.65rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.8rem;
}

.steps strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.steps span {
    font-size: 0.93rem;
    color: var(--ink-soft);
}

.steps + .section__lead + .btn {
    margin-top: 1.75rem;
}

/* Квиз */

.quiz {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 940px) {
    .quiz {
        grid-template-columns: 0.85fr 1.15fr;
        gap: 2.5rem;
    }
}

.quiz__fallback {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.quiz__mobile-cta {
    display: none;
    margin-top: 1.25rem;
}

/* На узких экранах не вкладываем один скролл в другой: квиз открывается страницей */
@media (max-width: 899px) {
    .quiz__frame,
    .quiz__fallback {
        display: none;
    }

    .quiz__mobile-cta {
        display: inline-flex;
    }
}

.quiz__list {
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.quiz__list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.93rem;
    color: rgba(238, 243, 245, 0.82);
}

.quiz__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--teal-bright);
}

.quiz__frame {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(238, 243, 245, 0.18);
    border-radius: var(--radius);
    padding: 0.5rem;
}

.quiz__frame iframe {
    width: 100%;
    height: 780px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--paper);
}

@media (max-width: 600px) {
    .quiz__frame iframe {
        height: 900px;
    }
}

/* Отличие от статьи */

.diff {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.diff li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--ink-soft);
}

.diff li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--teal);
}

/* Сомнения */

.fears {
    margin-top: 1.5rem;
    display: grid;
    gap: 0.75rem;
}

.fears details {
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    padding: 0 1.2rem;
}

.fears summary {
    cursor: pointer;
    list-style: none;
    padding: 1rem 0;
    font-family: var(--font-display);
    font-size: 0.98rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.fears summary::-webkit-details-marker {
    display: none;
}

.fears summary::after {
    content: "+";
    font-family: var(--font-body);
    font-size: 1.3rem;
    color: var(--teal);
    line-height: 1;
}

.fears details[open] summary::after {
    content: "–";
}

.fears details p {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

/* Цена */

.section--buy {
    background:
        radial-gradient(600px 300px at 20% 0%, rgba(20, 184, 166, 0.16), transparent 60%),
        rgba(255, 255, 255, 0.75);
    border-top: 1px solid rgba(197, 208, 214, 0.45);
}

.buy__actions {
    margin-top: 1.5rem;
    display: grid;
    gap: 0.7rem;
    justify-items: start;
    max-width: 30rem;
}

.buy__note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

/* Каналы */

.channels {
    margin-top: 1.5rem;
    display: grid;
    gap: 0.7rem;
    max-width: 30rem;
}

/* Подвал */

.footer {
    padding: 2rem 0 3rem;
    border-top: 1px solid rgba(197, 208, 214, 0.5);
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.footer p {
    margin: 0;
}

.footer__links {
    display: flex;
    gap: 1rem;
}

.footer__links .link {
    text-decoration: none;
}

/* ——— Появление при скролле ——— */

[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 420ms ease, transform 420ms ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

.hero__copy > * {
    animation: rise 480ms ease both;
}

.hero__copy > *:nth-child(2) { animation-delay: 60ms; }
.hero__copy > *:nth-child(3) { animation-delay: 120ms; }
.hero__copy > *:nth-child(4) { animation-delay: 180ms; }

.hero__visual {
    animation: rise 520ms ease 140ms both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
