/* ==========================================================================
   AV Tool — landing styles
   Палитра «прививочная»: медицина и спокойствие вместо «кибер-неона»
   ========================================================================== */

:root {
    --ink: #0F1F17;        /* тёмный фон секций — «безопасная ночь» */
    --ink-soft: #163025;   /* карточки на тёмном фоне */
    --paper: #F7F5EE;      /* тёплая бумага — светлые секции */
    --paper-deep: #EFEDe2; /* чуть глубже — разделение светлых секций */
    --green: #19C37D;      /* акцент, CTA, «здоровье» */
    --green-deep: #0E8F5C; /* hover основного CTA */
    --coral: #FF6B5E;      /* «болезнь», опасные состояния */
    --lime: #D6FF4B;       /* выделения, свежесть */
    --muted: #6B7570;      /* вторичный текст */
    --muted-on-dark: #9DB3A7;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px rgba(15, 31, 23, .12);
    --container: 1120px;
}

/* ---------- Reset / base ---------- */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 18px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 .5em;
}

h2 { font-size: clamp(1.6rem, 4.5vw, 2.5rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: var(--green-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}
.container--narrow { max-width: 820px; }

.section { padding: 96px 0; }
.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__head h2 { margin-bottom: .35em; }
.section__sub { color: var(--muted); font-size: 1.05rem; }

.section--dark { background: var(--ink); color: #EDF3EE; }
.section--dark .section__sub { color: var(--muted-on-dark); }

.section--paper-deep { background: var(--paper-deep); }

.section__tag {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green-deep);
    background: color-mix(in srgb, var(--green) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--green) 35%, transparent);
    border-radius: 999px;
    padding: .3em .9em;
    margin-bottom: 1.2rem;
}
.section__tag--coral {
    color: #D94A3E;
    background: color-mix(in srgb, var(--coral) 12%, transparent);
    border-color: color-mix(in srgb, var(--coral) 35%, transparent);
}
.section--dark .section__tag { color: var(--lime); background: rgba(214, 255, 75, .08); border-color: rgba(214, 255, 75, .3); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 999px;
    padding: .85em 1.9em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: var(--green);
    color: var(--ink);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--green) 45%, transparent);
}
.btn--primary:hover { background: var(--green-deep); color: #fff; }

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: color-mix(in srgb, var(--ink) 30%, transparent);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green-deep); }

.btn--link { color: var(--green-deep); padding-inline: 1em; }
.btn--link:hover { transform: none; }

.btn--sm { font-size: .9rem; padding: .6em 1.4em; }
.btn--lg { font-size: 1.1rem; padding: 1em 2.4em; }
.btn--block { display: block; width: 100%; text-align: center; }

/* ---------- Header ---------- */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--paper) 85%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}
.header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-block: .8rem;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink);
}
.logo:hover { text-decoration: none; }
.logo__icon { width: 28px; height: 28px; }
.header__nav { margin-left: auto; display: flex; gap: 1.4rem; }
.header__nav a { color: var(--muted); font-size: .92rem; font-weight: 500; }
.header__nav a:hover { color: var(--ink); text-decoration: none; }

@media (max-width: 820px) {
    .header__nav { display: none; }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: #EDF3EE;
    padding: 110px 0 130px;
}
.hero__pulse, .hero__pulse--2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .35;
    animation: pulse 9s ease-in-out infinite;
}
.hero__pulse { width: 520px; height: 520px; background: var(--green); top: -180px; right: -120px; }
.hero__pulse--2 { width: 420px; height: 420px; background: #1E6FA8; bottom: -220px; left: -140px; animation-delay: -4.5s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: .3; }
    50% { transform: scale(1.15); opacity: .45; }
}

.hero__inner {
    position: relative;
    display: grid;
    gap: 3.5rem;
    align-items: center;
}
@media (min-width: 900px) {
    .hero__inner { grid-template-columns: 1.1fr 1fr; }
}

.hero__tag {
    display: inline-block;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--lime);
    border: 1px solid rgba(214, 255, 75, .35);
    border-radius: 999px;
    padding: .35em 1em;
    margin-bottom: 1.4rem;
}
.hero__title {
    font-size: clamp(2.2rem, 6vw, 3.9rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: .4em;
}
.hero__subtitle { color: var(--muted-on-dark); font-size: 1.15rem; max-width: 34em; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.hero__micro { font-size: .85rem; color: var(--muted-on-dark); }

/* Hero visual — окно сканера */

.scan-window {
    background: #0B1712;
    border: 1px solid rgba(25, 195, 125, .25);
    border-radius: var(--radius);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 60px color-mix(in srgb, var(--green) 12%, transparent);
    overflow: hidden;
}
.scan-window__bar {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .7rem 1rem;
    background: rgba(255, 255, 255, .04);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--coral { background: var(--coral); }
.dot--amber { background: #FFC24B; }
.dot--green { background: var(--green); }
.scan-window__path { margin-left: .6rem; font-size: .78rem; color: var(--muted-on-dark); font-family: ui-monospace, monospace; }

.scan-window__body { padding: 1.1rem 1.2rem 1.3rem; display: grid; gap: 1rem; }

.scan-tree { font-family: ui-monospace, monospace; font-size: .82rem; display: grid; gap: .45rem; }
.scan-tree__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted-on-dark);
}
.scan-tree__row em { font-style: normal; }
.scan-tree__row--alert { color: var(--coral); }
.scan-tree__row--alert em { animation: blink 1.1s steps(2, start) infinite; }
.scan-tree__row--healed { color: var(--green); visibility: hidden; }
.scan-tree__row--healed.show { visibility: visible; }
.scan-tree__ok { color: var(--lime); }

@keyframes blink { 50% { opacity: .25; } }

.radar {
    position: relative;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background:
        radial-gradient(circle, transparent 58%, rgba(25, 195, 125, .18) 58.5%),
        radial-gradient(circle, transparent 29%, rgba(25, 195, 125, .14) 29.5%),
        radial-gradient(circle, transparent 0, rgba(25, 195, 125, .1) 100%);
    border: 1px solid rgba(25, 195, 125, .45);
    display: grid;
    place-items: center;
}
.radar__sweep {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 70%, rgba(25, 195, 125, .55) 92%, transparent 100%);
    animation: spin 3.2s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }

.radar__ping {
    position: absolute;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--lime);
    animation: ping 3.2s ease-out infinite;
}
.radar__ping--1 { top: 18px; left: 22px; }
.radar__ping--2 { bottom: 14px; right: 20px; animation-delay: 1.6s; }
@keyframes ping {
    0%, 12% { opacity: 0; transform: scale(.6); }
    18% { opacity: 1; transform: scale(1); }
    45%, 100% { opacity: 0; transform: scale(1.6); }
}

.radar__check { width: 30px; height: 30px; color: var(--green); opacity: .9; }

.scan-log {
    font-family: ui-monospace, monospace;
    font-size: .8rem;
    color: var(--muted-on-dark);
    display: grid;
    gap: .35rem;
    min-height: 3.6em;
}
.scan-log .log--alert { color: var(--coral); }
.scan-log .log--ok { color: var(--green); }
.scan-log .log--done { color: var(--lime); }

/* ---------- Grids & cards ---------- */

.grid { display: grid; gap: 1.4rem; }
@media (min-width: 640px) { .grid--2x2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.pain-card {
    background: var(--ink-soft);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: var(--radius);
    padding: 1.7rem 1.6rem;
    transition: transform .2s ease, border-color .2s ease;
}
.pain-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--coral) 45%, transparent); }
.pain-card h3 { color: #fff; }
.pain-card p { color: var(--muted-on-dark); margin: 0; font-size: .95rem; }
.pain-card__icon {
    width: 34px; height: 34px;
    color: var(--coral);
    stroke: currentColor;
    stroke-width: 1.8;
    margin-bottom: 1rem;
}

/* ---------- Solution chain ---------- */

.chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; counter-reset: chain; }
@media (min-width: 900px) {
    .chain { grid-template-columns: repeat(3, 1fr); position: relative; }
    .chain::before {
        content: "";
        position: absolute;
        top: 34px; left: 12%; right: 12%;
        border-top: 2px dashed color-mix(in srgb, var(--green) 45%, transparent);
        z-index: 0;
    }
}
.chain__item {
    position: relative;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
    border-radius: var(--radius);
    padding: 1.8rem 1.6rem;
    box-shadow: var(--shadow);
    transition: transform .2s ease;
}
.chain__item:hover { transform: translateY(-4px); }
.chain__item p { color: var(--muted); margin: 0; font-size: .95rem; }
.chain__num {
    display: inline-grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--lime);
    font-family: 'Unbounded', sans-serif;
    font-size: .85rem;
    margin-bottom: 1.1rem;
    position: relative;
    z-index: 1;
}
.chain__item--pulse .chain__num { animation: chainbeat 2.2s ease-in-out infinite; }
@keyframes chainbeat {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent); }
    50% { box-shadow: 0 0 0 14px transparent; }
}

/* ---------- Steps (how it works) ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
.steps__item {
    display: flex;
    gap: 1.3rem;
    align-items: flex-start;
    background: #fff;
    border-radius: var(--radius);
    padding: 1.6rem;
    border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
    box-shadow: 0 6px 18px rgba(15, 31, 23, .07);
}
.steps__badge {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 56px; height: 56px;
    border-radius: var(--radius-sm);
    background: var(--lime);
    color: var(--ink);
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 1rem;
}
.steps__item h3 { margin-bottom: .25em; }
.steps__item p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Feature cards ---------- */

.feature-card {
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
    border-radius: var(--radius);
    padding: 1.8rem 1.6rem;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--green) 55%, transparent);
    box-shadow: var(--shadow);
}
.feature-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.feature-card__icon {
    width: 36px; height: 36px;
    color: var(--green-deep);
    stroke: currentColor;
    stroke-width: 1.7;
    margin-bottom: 1rem;
}

/* ---------- Stats & reviews ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
    margin-bottom: 3rem;
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat {
    background: var(--ink-soft);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem;
    text-align: center;
}
.stat__num {
    display: block;
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    color: var(--lime);
    line-height: 1.1;
    margin-bottom: .35rem;
}
.stat__label { color: var(--muted-on-dark); font-size: .85rem; }

.review {
    margin: 0;
    background: var(--ink-soft);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: var(--radius);
    padding: 1.7rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.review blockquote {
    margin: 0;
    font-size: .98rem;
    color: #EDF3EE;
    line-height: 1.6;
}
.review figcaption {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: .8rem;
    font-size: .9rem;
}
.review__avatar {
    display: inline-grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--green) 22%, var(--ink));
    color: var(--lime);
    font-weight: 600;
    font-size: .85rem;
}
.review figcaption strong { display: block; color: #fff; font-weight: 600; }
.review figcaption em { font-style: normal; color: var(--muted-on-dark); font-size: .82rem; }

.reviews { margin-bottom: 1.5rem; }
.proof__note {
    font-size: .82rem;
    color: var(--muted-on-dark);
    border-left: 3px solid color-mix(in srgb, var(--coral) 60%, transparent);
    padding-left: 1rem;
}

/* ---------- About (честная секция вместо фейковых цифр) ---------- */

.about-card {
    background: var(--ink-soft);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
}
.about-card__author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.4rem;
    margin-bottom: 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.about-card__avatar {
    display: inline-grid;
    place-items: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--green) 22%, var(--ink));
    color: var(--lime);
    font-weight: 600;
    font-size: 1.05rem;
    flex: 0 0 auto;
}
.about-card__author strong { display: block; color: #fff; font-size: 1.05rem; }
.about-card__author em { font-style: normal; color: var(--muted-on-dark); font-size: .88rem; }

.about-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.about-card__list li { color: var(--muted-on-dark); font-size: .97rem; line-height: 1.6; }
.about-card__list strong { color: #fff; }

/* ---------- Compare table ---------- */

.compare-wrap { overflow-x: auto; border-radius: var(--radius); }
.compare {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 31, 23, .06);
    min-width: 560px;
}
.compare th, .compare td {
    padding: .95rem 1.2rem;
    text-align: center;
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
    font-size: .95rem;
}
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th {
    font-family: 'Unbounded', sans-serif;
    font-size: .82rem;
    background: var(--paper-deep);
}
.compare__ours {
    background: color-mix(in srgb, var(--green) 10%, #fff) !important;
    color: var(--green-deep);
    font-weight: 600;
}
.compare__row--win td { background: color-mix(in srgb, var(--lime) 22%, #fff); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare__legend { font-size: .82rem; color: var(--muted); margin-top: .8rem; }

/* ---------- Price ---------- */

.price-grid { display: grid; gap: 1.6rem; }
@media (min-width: 900px) { .price-grid { grid-template-columns: 1.4fr 1fr; } }

.price-card {
    background: #fff;
    border: 2px solid color-mix(in srgb, var(--green) 40%, transparent);
    border-radius: var(--radius);
    padding: 2.4rem 2.2rem;
    box-shadow: 0 20px 50px rgba(15, 31, 23, .12);
    position: relative;
}
.price-card__amount { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .3rem; }
.price-card__amount strong {
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    font-size: clamp(2.4rem, 6vw, 3.4rem);
    color: var(--ink);
}
.price-card__amount span { color: var(--muted); font-size: 1.15rem; }
.price-card__note { color: var(--muted); font-size: .9rem; margin-bottom: 1.6rem; }

.price-card__list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .55rem; }
.price-card__list li {
    position: relative;
    padding-left: 1.9rem;
    font-size: .96rem;
}
.price-card__list li::before {
    content: "";
    position: absolute;
    left: 0; top: .32em;
    width: 1.1em; height: 1.1em;
    border-radius: 50%;
    background: color-mix(in srgb, var(--green) 18%, transparent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E8F5C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 L10 17.5 L19 8'/%3E%3C/svg%3E");
    background-size: 70%;
    background-position: center;
    background-repeat: no-repeat;
}
.price-card__sites { font-size: .88rem; color: var(--muted); margin-bottom: 1.5rem; }
.price-card__guarantee {
    margin: 1rem 0 0;
    font-size: .85rem;
    color: var(--muted);
    text-align: center;
}

.anchor-card {
    background: var(--ink);
    color: #EDF3EE;
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    align-self: start;
}
.anchor-card h3 { color: var(--lime); font-size: 1.05rem; }
.anchor-card ul { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 1rem; }
.anchor-card li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; border-bottom: 1px dashed rgba(255, 255, 255, .15); padding-bottom: 1rem; font-size: .93rem; }
.anchor-card li strong { white-space: nowrap; color: var(--coral); font-weight: 600; }
.anchor-card__ours {
    font-size: 1.05rem;
    background: rgba(25, 195, 125, .12);
    border: 1px solid rgba(25, 195, 125, .4);
    border-radius: var(--radius-sm);
    padding: .9rem 1.1rem;
    color: var(--lime);
}
.anchor-card__ours strong { font-family: 'Unbounded', sans-serif; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: .9rem; }
.faq__item {
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
    border-radius: var(--radius-sm);
    padding: 0;
    overflow: hidden;
}
.faq__item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.4rem;
    font-weight: 600;
    font-size: 1rem;
    transition: background .15s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: "+";
    font-size: 1.5rem;
    line-height: 1;
    color: var(--green-deep);
    font-weight: 400;
    transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { background: color-mix(in srgb, var(--green) 5%, transparent); }
.faq__item p { padding: 0 1.4rem 1.3rem; margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Final CTA ---------- */

.section--cta { text-align: center; }
.section--cta .section__sub { max-width: 34em; margin-inline: auto; }
.cta__title { font-size: clamp(1.7rem, 4.5vw, 2.6rem); color: #fff; margin-bottom: .5em; }
.cta__note { color: var(--muted-on-dark); font-size: .88rem; margin: 1.4rem 0 0; }

.ekg { width: min(420px, 70%); margin: 0 auto 1.5rem; opacity: .9; }
.ekg__line {
    stroke: var(--green);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: ekg 3.5s linear infinite;
    filter: drop-shadow(0 0 6px color-mix(in srgb, var(--green) 70%, transparent));
}
@keyframes ekg {
    0% { stroke-dashoffset: 900; }
    70%, 100% { stroke-dashoffset: -900; }
}

/* ---------- Contact modal ---------- */

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1.2rem; }
.modal[hidden] { display: none; }

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 15, .72);
    backdrop-filter: blur(6px);
    animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal__card {
    position: relative;
    width: min(100%, 430px);
    max-height: calc(100vh - 2.4rem);
    overflow-y: auto;
    background: var(--paper);
    border-radius: 22px;
    padding: 2.1rem 1.9rem 1.8rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
    animation: modalIn .3s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(24px) scale(.96); }
    to { opacity: 1; transform: none; }
}

.modal__close {
    position: absolute;
    top: .9rem; right: .9rem;
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ink) 7%, transparent);
    color: var(--ink);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.modal__close:hover { background: color-mix(in srgb, var(--coral) 18%, transparent); transform: rotate(90deg); }

.modal__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.modal__avatar {
    display: inline-grid;
    place-items: center;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--lime);
    font-weight: 600;
    flex: 0 0 auto;
}
.modal__head h3 { margin: 0; font-size: 1.05rem; }
.modal__head p { margin: .15rem 0 0; color: var(--muted); font-size: .85rem; }

.modal__contacts { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .7rem; }
.modal__contacts li { border-radius: var(--radius-sm); }
.modal__contacts a, .modal__contacts li {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .8rem 1rem;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
    border-radius: var(--radius-sm);
    transition: border-color .15s ease, transform .15s ease;
}
.modal__contacts a { color: var(--ink); text-decoration: none; }
.modal__contacts li:hover, .modal__contacts a:hover { border-color: color-mix(in srgb, var(--green) 55%, transparent); transform: translateY(-1px); }

.modal__icon {
    display: inline-grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--green) 14%, transparent);
    color: var(--green-deep);
    flex: 0 0 auto;
}
.modal__icon svg { width: 22px; height: 22px; }

.modal__contacts em { display: block; font-style: normal; font-size: .75rem; color: var(--muted); }
.modal__contacts strong { font-size: .98rem; font-weight: 600; word-break: break-word; }

.modal__qr { display: flex; justify-content: center; margin-bottom: 1.3rem; }
.qr-box {
    text-align: center;
    width: 180px;
    padding: 1rem 1rem 1.1rem;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
    border-radius: var(--radius-sm);
}
.qr-box__img { width: 100%; height: auto; display: block; margin-bottom: .7rem; border-radius: 6px; }
.qr-box__hint { font-size: .78rem; color: var(--muted); line-height: 1.45; display: block; }

.modal__note {
    text-align: center;
    font-size: .88rem;
    color: var(--muted);
    margin: 0;
    padding-top: 1.1rem;
    border-top: 1px dashed color-mix(in srgb, var(--ink) 15%, transparent);
}

body.modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    .modal__backdrop, .modal__card { animation: none; }
}

/* ---------- Footer ---------- */

.footer { background: var(--ink); color: var(--muted-on-dark); padding: 64px 0 40px; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer__top {
    display: grid;
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
@media (min-width: 800px) { .footer__top { grid-template-columns: 1fr 2fr; align-items: start; } }
.logo--footer { color: #fff; }
.footer__tag { color: var(--muted-on-dark); font-size: .92rem; margin: .8rem 0 0; }
.footer__nav { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.footer__nav h4 { color: #fff; font-size: .85rem; margin-bottom: .8rem; }
.footer__nav a { display: block; color: var(--muted-on-dark); font-size: .9rem; padding: .22em 0; }
.footer__nav a:hover { color: var(--lime); text-decoration: none; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between; padding-top: 1.6rem; font-size: .82rem; }
.footer__motto { font-style: italic; max-width: 34em; }

/* ---------- Scroll reveal ---------- */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s ease, transform .6s ease;
    transition-behavior: allow-discrete;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero__pulse, .radar__sweep, .radar__ping, .ekg__line,
    .scan-tree__row--alert em, .chain__item--pulse .chain__num { animation: none; }
}