/**
 * FluxWeb app layer — tokens, chrome, buttons.
 * Loaded after legacy CSS. New markup uses these classes.
 */

:root {
    --bg: #000000;
    --bg-elevated: #0a0a0a;
    --bg-glass: rgba(255, 255, 255, 0.12);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-on-brand: #000000;
    --accent: #0ddbb3;
    --accent-hover: #0bc49f;
    --accent-blue: #0ddbb3;
    --accent-grad: #0ddbb3;
    --border: rgba(255, 255, 255, 0.08);
    --font: "Inter", system-ui, -apple-system, sans-serif;
    --container: 1360px;
    --page-pad: 64px;
    --gutter: var(--page-pad);
    --header-h: 62px;
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 64px;
    --radius: var(--radius-sm);
    --radius-pill: 100px;
    --tap: 44px;
    --ease: 200ms ease;
    --focus: #0ddbb3;
    --lh-tight: 1.2;
    --lh-body: 1.4;
    --color-background: var(--bg);
    --color-accent: var(--accent);
    --color-text: var(--text);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    overflow-x: clip;
}

body {
    margin: 0;
    min-width: 0;
    background: var(--bg) !important;
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: var(--lh-tight);
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 10000;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--bg);
    font-weight: 600;
}

.skip-link:focus {
    top: 12px;
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--tap);
    padding: 16px 32px;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--accent);
    color: var(--text-on-brand);
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 0.92;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--ease), color var(--ease), transform 0.15s ease;
}

.btn:hover {
    background: var(--accent-hover);
    color: var(--text-on-brand);
}

.btn--sm {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: var(--radius-sm);
}

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

.btn--ghost {
    background: var(--bg-glass);
    border: 0;
    color: var(--text);
}

.btn--ghost:hover {
    background: rgba(13, 219, 179, 0.16);
    color: var(--accent);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--text-muted);
    border-radius: 50%;
    transition: color var(--ease), background var(--ease);
}

.icon-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px var(--gutter) 0;
}

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    width: 100%;
    max-width: var(--container);
    height: 62px;
    min-height: 62px;
    margin: 0 auto;
    padding: 0 24px;
    background: var(--bg-glass);
    border: 0;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background var(--ease);
}

.site-header__bar.is-scrolled {
    background: rgba(255, 255, 255, 0.16);
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    color: var(--text);
    text-decoration: none;
}

.logo:hover .logo__star {
    transform: rotate(180deg);
}

.logo__star {
    display: block;
    width: 28px;
    height: 30px;
    transition: transform 0.5s ease;
}

.logo__word {
    display: block;
    width: 118px;
}

.logo__word svg {
    display: block;
    width: 100%;
    height: auto;
}

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

.nav__list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    opacity: 0.92;
    transition: color var(--ease), opacity var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--accent);
    opacity: 1;
}

.nav__link.is-active::after {
    content: none;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.header-phone:hover {
    color: var(--color-accent, #0DDBB3);
}

.header-phone__icon {
    display: none;
    width: 22px;
    height: 22px;
}

.header-phone--drawer {
    display: flex;
    justify-content: center;
    margin: 0 0 12px;
    min-height: 44px;
}

.legal-doc {
    max-width: 46rem;
}

.legal-doc__body p,
.legal-doc__body li {
    color: var(--color-text-gray70, #5a6573);
    line-height: 1.65;
}

.legal-doc__body h2 {
    margin: 2rem 0 0.75rem;
    font-size: 1.15rem;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
    margin-left: auto;
}

.site-header__actions .icon-btn {
    width: 24px;
    height: 24px;
}

.site-header__actions .btn {
    min-height: 32px;
    height: 32px;
    padding: 0 16px;
    font-size: 14px;
    border-radius: var(--radius-sm);
}

.btn__short {
    display: none;
}

.burger {
    display: none;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background var(--ease);
}

.burger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.burger__line {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform var(--ease), opacity var(--ease);
}

.burger.is-open {
    background: rgba(13, 219, 179, 0.18);
}

.burger.is-open .burger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.is-open .burger__line:nth-child(2) {
    opacity: 0;
}

.burger.is-open .burger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.drawer {
    position: fixed;
    top: calc(16px + 62px + 10px);
    right: var(--gutter);
    left: var(--gutter);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    border-radius: var(--radius-md);
    background: rgba(10, 10, 10, 0.96);
    border: 1px solid var(--border);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.drawer[hidden] {
    display: none;
}

.drawer .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.drawer .nav__link {
    min-height: 44px;
    font-size: 18px;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 998;
    display: block;
    background: rgba(0, 0, 0, 0.55);
}

.overlay[hidden] {
    display: none !important;
}

html.is-drawer-open,
body.is-drawer-open {
    overflow: hidden;
    overscroll-behavior: none;
}

body.is-drawer-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
}

/* Footer */

.site-footer {
    width: 100%;
    max-width: none !important;
    min-width: 0 !important;
    margin: 80px 0 0;
    padding: 56px var(--gutter) max(32px, env(safe-area-inset-bottom, 0px));
    background: var(--bg);
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: var(--gutter);
    right: var(--gutter);
    height: 1px;
    background: var(--border);
}

.site-footer__inner {
    max-width: var(--container);
    margin: 0 auto;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(0, 1fr));
    gap: 40px 32px;
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.site-footer__lead {
    margin: 0;
    max-width: 320px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
}

.site-footer__contacts {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-footer__contacts a {
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

.site-footer__contacts a:hover {
    color: var(--accent);
}

.site-footer__messengers {
    display: flex;
    gap: 8px;
}

.site-footer__messengers a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 50%;
    transition: color var(--ease), border-color var(--ease);
}

.site-footer__messengers a:hover {
    color: var(--accent);
    border-color: rgba(13, 219, 179, 0.45);
}

.site-footer__col {
    min-width: 0;
}

.site-footer__title {
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer__link {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
}

.site-footer__link:hover,
.site-footer__link.is-active {
    color: var(--text);
}

.site-footer__link.is-active::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.site-footer__bottom p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted);
}

/* Cookie */

.cookie-banner {
    position: fixed;
    left: var(--gutter);
    right: var(--gutter);
    bottom: var(--gutter);
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(12px);
}

.cookie-banner.is-visible {
    display: flex;
}

/* Layout: sections */

.section,
section.hero {
    width: min(var(--container), calc(100% - var(--gutter) * 2)) !important;
    min-width: 0 !important;
    max-width: var(--container) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 0;
    padding: 0;
}

.section {
    padding: 80px 0 0;
}

.kicker {
    margin: 0 0 8px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    line-height: var(--lh-body);
}

.section__head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
}

.section__head > h1,
.section__head > h2,
.section__head > p:not(.kicker) {
    max-width: 40rem;
}

.section__head h1,
.section__head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    line-height: var(--lh-tight);
}

.section__head p {
    margin: 0;
    color: var(--text-muted);
    font-size: 16px;
    line-height: var(--lh-body);
}

.section__head h1 + p,
.section__head h2 + p,
.section__head-row h1 + p,
.section__head-row h2 + p {
    margin-top: 20px;
}

.section__head-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 32px;
    width: 100%;
}

.section__head-row > div {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 40rem;
}

.section__head-row .btn {
    flex: 0 0 auto;
    margin-left: auto;
    align-self: center;
}

.section__note {
    margin: 24px 0 0;
    max-width: 42rem;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
}

.section__note a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid + .grid {
    margin-top: 16px;
}

.grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    padding: 24px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.card--wide {
    grid-column: 1 / -1;
}

.card--main {
    background: rgba(13, 219, 179, 0.16);
}

.card h3 strong {
    color: var(--accent);
    font-weight: 700;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.55;
}

.card a {
    color: var(--accent);
}

/* Hero */

section.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 32px 48px;
    align-items: center;
    margin-top: 24px;
    padding: 64px;
    border-radius: var(--radius-lg);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

@keyframes flux-bg-shimmer {
    0% {
        background-position: 12% 22%;
    }
    35% {
        background-position: 90% 48%;
    }
    70% {
        background-position: 38% 78%;
    }
    100% {
        background-position: 12% 22%;
    }
}

section.hero::before,
.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        118deg,
        rgba(13, 219, 178, 0.14) 0%,
        rgba(12, 20, 31, 0) 28%,
        rgba(21, 99, 224, 0.12) 48%,
        rgba(12, 20, 31, 0) 64%,
        rgba(13, 219, 178, 0.09) 82%,
        rgba(21, 99, 224, 0.11) 100%
    );
    background-size: 220% 220%;
    animation: flux-bg-shimmer 45s ease-in-out infinite;
}

.hero__copy,
.hero__aside {
    position: relative;
    z-index: 1;
}

.hero__copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.hero h1 {
    margin: 0;
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    line-height: var(--lh-tight);
}

.hero h1 em,
.hero h1 span {
    font-style: normal;
    color: var(--accent);
}

section.hero.hero--page {
    grid-template-columns: 1fr;
}

.hero__lead {
    margin: 0;
    max-width: 38rem;
    font-size: 16px;
    line-height: var(--lh-tight);
    color: var(--text);
}

.hero__lead strong {
    color: var(--text);
    font-weight: 600;
}

.hero__meta {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.hero__meta a {
    color: var(--accent);
}

.hero__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
}

.hero__actions p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.hero__actions a:not(.btn) {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hero__note {
    font-size: 13px !important;
}

.hero__aside {
    min-width: 0;
    justify-self: end;
    width: 100%;
    max-width: 420px;
}

.hero__stage {
    position: relative;
    width: 100%;
    height: 380px;
    perspective: 900px;
}

.hero__glow {
    display: none;
}

.hero__spark {
    position: absolute;
    width: 168px;
    max-width: 168px;
    height: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
    transition: transform 0.45s ease-out, filter 0.45s ease-out;
    will-change: transform;
}

.proof {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero__stage .proof {
    position: relative;
    z-index: 2;
    display: block;
    height: 100%;
}

.proof li {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 10px;
    border-radius: var(--radius-sm);
    background: rgba(8, 8, 8, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.hero__stage .proof li {
    position: absolute;
    transition: transform 0.45s ease-out, filter 0.45s ease-out;
    will-change: transform;
}

.hero__stage .proof li:nth-child(1) {
    top: 8px;
    left: 0;
    width: min(300px, 94%);
}

.hero__stage .proof li:nth-child(2) {
    top: 150px;
    right: 0;
    width: min(272px, 88%);
}

.hero__stage .proof li:nth-child(3) {
    bottom: 8px;
    left: 16px;
    width: min(316px, 96%);
}

.proof__icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
}

.proof__icon svg {
    display: block;
    width: 40px;
    height: 40px;
}

.proof__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.proof strong {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

.hero__aside > .proof strong {
    color: var(--accent);
}

.proof__text span,
.proof li > span {
    font-size: 12px;
    line-height: 1.35;
    color: var(--text-muted);
}

/* Steps */

.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    counter-reset: step;
}

.steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    counter-increment: step;
}

.steps li::before {
    content: counter(step, decimal-leading-zero);
    color: var(--accent);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
}

.steps h3 {
    margin: 0;
    font-size: 18px;
}

.steps p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
}

.steps a:not(.btn) {
    color: var(--accent);
}

.steps .btn {
    align-self: flex-start;
    margin-top: auto;
    color: var(--text-on-brand);
}

/* Case cards */

.media-card {
    min-width: 0;
    border-radius: var(--radius-sm);
    border: 0;
    background: var(--bg-glass);
    overflow: hidden;
    transition: background var(--ease);
}

.media-card:hover {
    background: rgba(255, 255, 255, 0.16);
}

.media-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.media-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #121212;
    overflow: hidden;
}

.media-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 14px;
}

.media-card__tag {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.85);
    font-size: 12px;
}

.media-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
}

.media-card__body h3 {
    margin: 0;
    font-size: 18px;
}

.media-card__body p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.media-card__proof {
    color: var(--text) !important;
}

.media-card__proof strong {
    margin-right: 6px;
    color: var(--accent);
}

.media-card__more {
    margin-top: auto;
    padding-top: 8px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}

.card h3 a {
    color: inherit;
    text-decoration: none;
}

.card h3 a:hover {
    color: var(--accent);
}

/* FAQ */

.faq {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    gap: 40px;
    align-items: start;
}

.faq .section__head {
    margin-bottom: 0;
    position: sticky;
    top: calc(var(--header-h) + 16px);
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq__item {
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    padding: 0 20px;
}

.faq__item summary {
    cursor: pointer;
    list-style: none;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 16px;
    font-weight: 500;
}

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

.faq__item summary::after {
    content: "+";
    flex-shrink: 0;
    color: var(--accent);
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

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

.faq__item p {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.55;
}

/* CTA — glass section + nested action card */

.cta {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 40px;
    align-items: center;
    margin-top: 80px;
    padding: 64px !important;
    border-radius: var(--radius-lg);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.cta__copy,
.cta__panel {
    position: relative;
    z-index: 1;
}

.cta__copy {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cta__copy .kicker {
    margin-bottom: 8px;
}

.cta__copy h2 {
    margin: 0 0 20px;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    line-height: var(--lh-tight);
}

.cta__copy p {
    margin: 0;
    color: var(--text-muted);
    font-size: 16px;
    line-height: var(--lh-body);
}

.cta__copy ul {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cta__copy li {
    padding-left: 18px;
    position: relative;
    font-size: 16px;
    font-weight: 500;
    line-height: var(--lh-tight);
}

.cta__copy li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.cta__panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 32px 28px;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.45);
    border: 0;
    max-width: 360px;
    width: 100%;
    justify-self: end;
    text-align: center;
}

.cta__panel-note {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-muted);
}

.cta__panel .btn {
    width: 100%;
    white-space: normal;
}

.cta__or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
    font-size: 13px;
    line-height: 1;
    color: var(--text-muted);
}

.cta__or::before,
.cta__or::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--border);
}

.cta__telegram {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 15px;
}

.cta__telegram:hover {
    color: var(--accent);
}

/* Article / archive */

.crumbs {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.crumbs p {
    margin: 0;
}

.crumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--accent);
}

.cover {
    margin: 0 0 32px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 0;
    background: var(--bg-glass);
}

.cover img {
    width: 100%;
    height: auto;
    display: block;
}

.cover figcaption {
    margin: 0;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}

.prose {
    max-width: 46rem;
}

.prose > *:first-child {
    margin-top: 0;
}

.prose h2,
.prose h3,
.prose h4 {
    margin: 28px 0 12px;
    line-height: 1.3;
}

.prose p {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.65;
}

.prose a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

.prose ul,
.prose ol {
    margin: 0 0 16px;
    padding: 0 0 0 1.25rem;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.6;
}

.prose li {
    margin: 0 0 8px;
}

.prose img {
    border-radius: 16px;
    border: 1px solid var(--border);
}

.prose figure {
    margin: 24px 0;
}

.prose figcaption {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.prose blockquote,
.prose .wp-block-quote {
    margin: 24px 0;
    padding: 4px 0 4px 16px;
    border-left: 3px solid var(--accent);
    color: var(--text);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.prose th,
.prose td {
    border: 1px solid var(--border);
    padding: 12px;
    text-align: left;
}

.prose code {
    font-size: 0.9em;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}

.pager a,
.pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
}

.pager a:hover {
    border-color: rgba(13, 219, 179, 0.45);
}

.pager .current {
    background: rgba(13, 219, 179, 0.16);
    border-color: rgba(13, 219, 179, 0.4);
    color: var(--accent);
}

.error-code {
    margin: 0;
    font-size: clamp(64px, 12vw, 120px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--accent);
    opacity: 0.85;
}

@media (max-width: 1024px) {
    .grid--3,
    .grid--cards,
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    section.hero {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        gap: 28px;
        border-radius: var(--radius-md);
    }

    .hero__aside {
        justify-self: stretch;
        max-width: none;
    }

    .hero__stage {
        height: auto;
    }

    .hero__glow {
        display: none;
    }

    .hero__spark {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 120px;
        max-width: 120px;
        margin: 0 auto 16px;
        display: block;
        will-change: auto;
    }

    .hero__stage .proof,
    .proof {
        display: grid;
        gap: 10px;
        height: auto;
    }

    .proof li,
    .hero__stage .proof li,
    .hero__stage .proof li:nth-child(1),
    .hero__stage .proof li:nth-child(2),
    .hero__stage .proof li:nth-child(3) {
        position: static;
        width: 100%;
        transform: none;
        will-change: auto;
    }

    .faq,
    .cta {
        grid-template-columns: 1fr;
    }

    .faq .section__head {
        position: static;
    }

    .cta {
        margin-top: 56px;
        padding: 40px 28px !important;
        border-radius: var(--radius-md);
        gap: 28px;
    }

    .cta__panel {
        max-width: none;
        justify-self: stretch;
    }
}

@media (max-width: 768px) {
    :root {
        --page-pad: 20px;
        --gutter: 20px;
    }

    section.hero {
        margin-top: 8px;
        padding: 24px 16px;
        border-radius: var(--radius-md);
    }

    .section {
        padding-top: 56px;
    }

    .grid--2,
    .grid--3,
    .grid--cards,
    .steps {
        grid-template-columns: 1fr;
    }

    .section__head-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .section__head-row .btn {
        margin-left: 0;
    }

    .hero__spark {
        width: 104px;
        max-width: 104px;
        margin-bottom: 12px;
    }
}

.cookie-banner p {
    margin: 0;
    max-width: 52rem;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}

.cookie-banner a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .nav {
        display: none;
    }

    .site-header__bar {
        justify-content: space-between;
        gap: 16px;
        height: 68px;
        min-height: 68px;
        padding: 0 16px;
        border-radius: 32px;
    }

    .site-header__actions {
        gap: 12px;
    }

    .site-header__actions .btn {
        min-height: 44px;
        height: 44px;
        padding: 0 16px;
        font-size: 14px;
        border-radius: 12px;
    }

    .site-header__actions .btn__full {
        display: none;
    }

    .site-header__actions .btn__short {
        display: inline;
    }

    .header-phone__text {
        display: none;
    }

    .header-phone__icon {
        display: flex;
    }

    .header-phone {
        width: 44px;
        height: 44px;
        justify-content: center;
        border-radius: 12px;
    }

    .burger {
        display: flex;
    }

    .drawer {
        top: calc(16px + 68px + 10px);
    }
}

@media (max-width: 800px) {
    :root {
        --page-pad: 12px;
        --gutter: 12px;
    }

    .logo__word {
        width: 100px;
    }

    .site-header__actions .icon-btn--tg {
        display: none;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .site-footer .btn {
        width: 100%;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner__actions {
        flex-direction: column;
    }

    .cookie-banner__actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .site-header__bar {
        border-radius: 40px;
    }
}

/* Quiz — map to app tokens / buttons */

.fluxweb-quiz-popup {
    --color-background: var(--bg);
    --color-text: var(--text);
    --color-accent: var(--accent);
}

.fluxweb-quiz-popup__dialog.form-section {
    background-color: var(--bg);
    background-image: none;
    border-radius: var(--radius-lg);
}

.fluxweb-quiz-popup .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--tap);
    height: auto;
    padding: 16px 32px;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--accent);
    color: var(--text-on-brand);
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 0.92;
}

.fluxweb-quiz-popup .submit:hover:not(:disabled) {
    background: var(--accent-hover);
    color: var(--text-on-brand);
    filter: none;
}

.fluxweb-quiz-popup .form-input {
    font-family: inherit;
    border-radius: var(--radius-sm);
    border-color: var(--border);
    background: #1f1f1f;
    color: var(--text);
}

.fluxweb-quiz-popup .form-input:focus {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
    border-color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
    .hero__spark,
    .hero__stage .proof li,
    .proof li,
    .proof li:hover {
        transition: none;
        transform: none;
        will-change: auto;
    }

    section.hero::before,
    .cta::before {
        animation: none;
    }
}
