/* =====================================================================
   Дизайн 2.0 — поверх style.css.
   Тёмные «плиты» + светлые секции, Unbounded для заголовков, Onest для
   текста, лаймовый акцент на тёмном, bento-сетки, анимации появления.
   ===================================================================== */

:root {
    --bg: #f4f5fb;
    --dark: #0b0c18;
    --text: #3a4057;
    --muted: #666b85;
    --primary: #6c5cff;
    --primary-dark: #5244e6;
    --accent: #19d3b5;
    --accent-strong: #00897a;
    --lime: #c6f94a;
    --lime-strong: #b2ec2a;
    --ink: #0a0b16;
    --ink-2: #13152c;
    --ink-line: rgba(255, 255, 255, .09);
    --on-ink: #eef0ff;
    --on-ink-muted: #a4a9c9;
    --line: #e6e8f2;
    --radius: 28px;
    --shadow-soft: 0 20px 50px rgba(17, 19, 45, .07);
    --shadow-lift: 0 28px 60px rgba(17, 19, 45, .12);
    --font-display: "Unbounded", "Onest", system-ui, sans-serif;
    --font-text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ease-out: cubic-bezier(.2, .7, .2, 1);
}

html,
body {
    overflow-x: clip;
}

body {
    font-family: var(--font-text);
    font-size: 16px;
    background:
        radial-gradient(circle at 0% 0%, rgba(108, 92, 255, .08), transparent 32rem),
        radial-gradient(circle at 100% 30%, rgba(25, 211, 181, .07), transparent 30rem),
        var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--lime);
    color: var(--ink);
}

/* ---------- типографика ---------- */

h1,
h2 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.08;
}

h1 {
    font-size: clamp(30px, 4.3vw, 58px);
}

h2 {
    font-size: clamp(26px, 3.3vw, 44px);
}

h3 {
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.lead {
    font-size: 19px;
    line-height: 1.6;
}

.text-gradient {
    background: linear-gradient(92deg, var(--lime) 0%, #5ef0d0 45%, #a99cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.eyebrow--dark {
    color: var(--lime);
}

/* ---------- кнопки ---------- */

.btn {
    gap: 8px;
    min-height: 52px;
    padding: 0 26px;
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 15.5px;
    letter-spacing: -0.005em;
    transition: transform .25s var(--ease-out), box-shadow .25s ease, background .25s ease, color .25s ease;
}

.btn .icon {
    transition: transform .25s var(--ease-out);
}

.btn:hover .icon {
    transform: translateX(3px);
}

.btn.primary {
    background: linear-gradient(135deg, #7a6bff, var(--primary-dark));
    box-shadow: 0 14px 32px rgba(108, 92, 255, .32);
}

.btn.ghost {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--dark);
}

.btn.ghost:hover {
    border-color: rgba(108, 92, 255, .4);
    transform: translateY(-2px);
}

.btn-lime {
    background: var(--lime);
    color: var(--ink);
    box-shadow: 0 0 0 0 rgba(198, 249, 74, .0), 0 14px 34px rgba(198, 249, 74, .25);
}

.btn-lime:hover {
    background: var(--lime-strong);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(198, 249, 74, .35);
}

.btn-glass {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, .14);
    transform: translateY(-2px);
}

/* ---------- шапка ---------- */

.topbar {
    background: rgba(13, 14, 30, .94);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 10px 30px rgba(8, 9, 20, .18);
    backdrop-filter: blur(18px) saturate(140%);
    transition: background .3s ease, box-shadow .3s ease;
}

.has-dark-hero .topbar {
    background: rgba(13, 14, 30, .6);
}

.topbar.is-scrolled,
.has-dark-hero .topbar.is-scrolled {
    background: rgba(13, 14, 30, .92);
    box-shadow: 0 16px 40px rgba(8, 9, 20, .3);
}

.topbar .logo {
    color: #fff;
}

.logo-mark {
    background: var(--lime);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: .04em;
}

.nav {
    color: #c3c7e6;
    font-size: 14.5px;
}

.nav a {
    position: relative;
    transition: color .2s ease;
}

.nav a:hover {
    color: #fff;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: var(--lime);
    transform: scaleX(0);
    transition: transform .25s var(--ease-out);
}

.nav a:hover::after {
    transform: scaleX(1);
}

.nav-toggle {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .14);
}

.nav-toggle span {
    background: #fff;
}

@media (max-width: 900px) {
    .nav.is-open {
        border-top-color: rgba(255, 255, 255, .1);
    }

    .nav.is-open a {
        color: #fff;
    }

    .nav a::after {
        display: none;
    }
}

/* ---------- первый экран ---------- */

.has-dark-hero main.home {
    margin-top: -100px;
}

.hero-x {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 160px 0 110px;
    background: var(--ink);
    color: var(--on-ink);
    border-radius: 0 0 44px 44px;
}

.hero-x__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .75;
    animation: blob-float 18s ease-in-out infinite alternate;
}

.blob-1 {
    width: 620px;
    height: 620px;
    left: -180px;
    top: -200px;
    background: radial-gradient(circle, #6c5cff 0%, rgba(108, 92, 255, 0) 70%);
}

.blob-2 {
    width: 560px;
    height: 560px;
    right: -160px;
    top: 80px;
    background: radial-gradient(circle, #19d3b5 0%, rgba(25, 211, 181, 0) 70%);
    opacity: .5;
    animation-duration: 22s;
}

.blob-3 {
    width: 360px;
    height: 360px;
    left: 38%;
    bottom: -200px;
    background: radial-gradient(circle, #c6f94a 0%, rgba(198, 249, 74, 0) 70%);
    opacity: .28;
    animation-duration: 26s;
}

@keyframes blob-float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.08); }
    100% { transform: translate(-30px, 50px) scale(.96); }
}

.hero-x__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}

.hero-x__inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 40px;
    align-items: center;
}

.hero-x .eyebrow--dark {
    padding: 8px 16px 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #dfe2ff;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 600;
}

.hero-x .eyebrow--dark::before {
    display: none;
}

.pulse-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lime);
    flex: none;
}

.pulse-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--lime);
    opacity: 0;
    animation: ping 2.2s ease-out infinite;
}

@keyframes ping {
    0% { transform: scale(.6); opacity: .8; }
    100% { transform: scale(1.8); opacity: 0; }
}

.hero-x h1 {
    margin: 22px 0 0;
    color: #fff;
}

.hero-x__lead {
    margin: 24px 0 0;
    max-width: 580px;
    color: var(--on-ink-muted);
    font-size: 19px;
    line-height: 1.6;
}

.hero-x__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.hero-x__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 44px 0 0;
    padding: 26px 0 0;
    list-style: none;
    border-top: 1px solid var(--ink-line);
}

.hero-x__facts strong {
    display: block;
    color: #fff;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.hero-x__facts span {
    display: block;
    margin-top: 6px;
    color: var(--on-ink-muted);
    font-size: 13.5px;
    line-height: 1.4;
}

.hero-x__visual {
    position: relative;
}

.hero-x__glow {
    position: absolute;
    inset: 12% 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 255, .55), rgba(25, 211, 181, .18) 55%, transparent 72%);
    filter: blur(40px);
}

.hero-x__visual img {
    position: relative;
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .35));
    animation: hover-float 7s ease-in-out infinite;
}

@keyframes hover-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ---------- бегущая строка ---------- */

.marquee {
    position: relative;
    z-index: 3;
    margin: -30px -24px 0;
    padding: 18px 0;
    overflow: hidden;
    background: var(--lime);
    color: var(--ink);
    transform: rotate(-1.4deg);
    box-shadow: 0 20px 40px rgba(17, 19, 45, .12);
}

.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee 45s linear infinite;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

.marquee__list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.marquee__list li {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-right: 28px;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    white-space: nowrap;
}

.marquee__list li::after {
    content: "✦";
    font-size: 14px;
    opacity: .55;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- секции ---------- */

.section {
    margin-top: 120px;
}

.section-head {
    max-width: 780px;
    margin-bottom: 40px;
}

.section-head h2 {
    margin: 0 0 16px;
}

.section-head p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.section-head--row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    max-width: none;
}

.section-head--row > div {
    max-width: 760px;
}

/* иконки */

.icon {
    display: block;
    flex: none;
}

.icon-badge {
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    border-radius: 16px;
    background: linear-gradient(145deg, #f0edff, #e7f9f5);
    color: var(--primary-dark);
}

.icon-badge--dark {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    color: var(--lime);
}

.icon-badge--lime {
    background: var(--lime);
    color: var(--ink);
}

.icon-badge--lg {
    width: 62px;
    height: 62px;
    border-radius: 20px;
}

/* ---------- bento ---------- */

.bento {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 18px;
}

.bento__card {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .35s ease;
}

.bento__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

.bento__card h3 {
    margin: 0 0 10px;
}

.bento__card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.bento__card:nth-child(4) {
    grid-column: 2 / span 2;
}

.bento__card--feature {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 400px;
    background: linear-gradient(150deg, #1d1850 0%, #0d0e22 60%);
    border-color: transparent;
    color: var(--on-ink);
}

.bento__card--feature p {
    color: var(--on-ink-muted);
}

.bento__label {
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(198, 249, 74, .14);
    color: var(--lime);
    font-size: 12.5px;
    font-weight: 700;
}

.bento__big {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}

.bento__price {
    margin-top: auto;
    font-family: var(--font-display);
    font-size: clamp(32px, 3.4vw, 46px);
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(92deg, var(--lime), #5ef0d0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bento__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--lime);
    font-weight: 700;
}

.bento__card--feature:hover .bento__cta .icon {
    transform: translateX(4px);
}

.bento__cta .icon {
    transition: transform .25s var(--ease-out);
}

.bento__orb {
    position: absolute;
    right: -90px;
    top: -90px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 255, .7), rgba(25, 211, 181, .25) 55%, transparent 70%);
    filter: blur(20px);
    animation: blob-float 14s ease-in-out infinite alternate;
    pointer-events: none;
}

/* ---------- плитки ---------- */

.tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tile {
    padding: 28px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--line);
    transition: transform .35s var(--ease-out), border-color .35s ease, box-shadow .35s ease, background .35s ease;
}

.tile:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 92, 255, .35);
    box-shadow: var(--shadow-soft);
}

.tile h3 {
    margin: 0 0 10px;
}

.tile p {
    margin: 0;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.6;
}

.tile--dark {
    background: rgba(255, 255, 255, .03);
    border-color: var(--ink-line);
}

.tile--dark h3 {
    color: #fff;
}

.tile--dark p {
    color: var(--on-ink-muted);
}

.tile--dark:hover {
    background: rgba(255, 255, 255, .055);
    border-color: rgba(198, 249, 74, .35);
    box-shadow: none;
}

/* ---------- тёмные плиты ---------- */

.band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: min(1440px, calc(100% - 24px));
    margin: 120px auto 0;
    padding: 100px 0;
    border-radius: 44px;
    background: var(--ink);
    color: var(--on-ink);
}

.band::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 700px;
    height: 700px;
    right: -250px;
    top: -300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 255, .35), transparent 65%);
    filter: blur(30px);
}

.band::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 500px;
    height: 500px;
    left: -200px;
    bottom: -260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(25, 211, 181, .22), transparent 65%);
    filter: blur(30px);
}

.band__inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.band h2,
.band h3 {
    color: #fff;
}

.band .section-head p,
.band p {
    color: var(--on-ink-muted);
}

.band .check-list li::before {
    color: var(--lime);
}

/* ---------- тарифы ---------- */

.plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.plan {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 32px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transition: transform .35s var(--ease-out), box-shadow .35s ease;
}

.plan:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

.plan h3 {
    margin: 4px 0 0;
    font-size: 21px;
}

.plan p {
    flex: 1;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.plan__tag {
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f0edff;
    color: var(--primary-dark);
    font-size: 12.5px;
    font-weight: 700;
}

.plan__price {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.1vw, 30px);
    overflow-wrap: anywhere;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--dark);
}

.plan--featured {
    background:
        linear-gradient(160deg, #1d1850, #0d0e22) padding-box,
        linear-gradient(135deg, var(--lime), #6c5cff 60%, #19d3b5) border-box;
    border: 1.5px solid transparent;
    color: var(--on-ink);
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(29, 24, 80, .35);
}

.plan--featured:hover {
    transform: translateY(-14px);
}

.plan--featured h3 {
    color: #fff;
}

.plan--featured p {
    color: var(--on-ink-muted);
}

.plan--featured .plan__tag {
    background: rgba(198, 249, 74, .15);
    color: var(--lime);
}

.plan--featured .plan__price {
    background: linear-gradient(92deg, var(--lime), #5ef0d0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- этапы ---------- */

.stepper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stepper::before {
    content: "";
    position: absolute;
    left: 30px;
    right: 30px;
    top: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--lime), #6c5cff, #19d3b5);
    opacity: .45;
}

.stepper__item {
    position: relative;
}

.stepper__num {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--ink-2);
    border: 1px solid rgba(198, 249, 74, .4);
    color: var(--lime);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 0 0 8px var(--ink);
    transition: background .3s ease, color .3s ease;
}

.stepper__item:hover .stepper__num {
    background: var(--lime);
    color: var(--ink);
}

.stepper__item h3 {
    margin: 22px 0 8px;
    font-size: 18px;
}

.stepper__item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.timeline-x {
    display: grid;
    grid-template-columns: .85fr 2.15fr;
    gap: 36px;
    margin-top: 80px;
    padding-top: 56px;
    border-top: 1px solid var(--ink-line);
}

.timeline-x__head h3 {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.15;
    margin: 0 0 14px;
}

.timeline-x__head p {
    margin: 0;
    line-height: 1.65;
}

.timeline-x__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

/* ---------- продвижение / платежи ---------- */

.duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.duo__card {
    padding: 42px;
    border-radius: 32px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.duo__card--accent {
    background: linear-gradient(150deg, #f0edff 0%, #e8fbf6 100%);
    border-color: transparent;
}

.duo__card h2 {
    font-size: clamp(22px, 2.3vw, 30px);
    margin: 0 0 14px;
}

.duo__card p {
    color: var(--muted);
    line-height: 1.65;
}

/* ---------- опыт ---------- */

.showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.showcase__text h2 {
    margin: 0 0 18px;
}

.showcase__text > p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.showcase__visual {
    padding: 20px;
    border-radius: 40px;
    background:
        radial-gradient(circle at 30% 20%, rgba(108, 92, 255, .14), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(25, 211, 181, .14), transparent 55%),
        #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

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

.check-list li {
    line-height: 1.55;
}

/* ---------- калькулятор ---------- */

.module-card {
    position: relative;
    grid-template-columns: 26px 1fr auto;
    padding: 18px 20px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: none;
    transition: border-color .25s ease, background .25s ease, transform .25s var(--ease-out), box-shadow .25s ease;
}

.module-card:hover {
    transform: translateY(-2px);
    border-color: rgba(108, 92, 255, .35);
}

.module-card input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.module-card__check {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 9px;
    border: 2px solid #cfd2e3;
    color: transparent;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s var(--ease-out);
}

.module-card:has(input:checked) .module-card__check {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: scale(1.06);
}

.module-card:has(input:focus-visible) {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.module-card:has(input:checked) {
    background: linear-gradient(135deg, #f3f1ff, #ffffff);
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.module-card strong {
    font-weight: 700;
}

.module-card b {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
}

.summary-box {
    padding: 30px;
    border-radius: var(--radius);
    background: linear-gradient(160deg, #1d1850, #0d0e22 70%);
    border: 0;
    color: var(--on-ink);
    box-shadow: 0 30px 70px rgba(29, 24, 80, .3);
}

.summary-box > span:first-child {
    color: var(--on-ink-muted);
}

.summary-box strong {
    margin: 10px 0 6px;
    font-family: var(--font-display);
    font-size: clamp(32px, 3vw, 42px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.summary-count {
    display: block;
    color: var(--lime) !important;
    font-size: 14px;
    font-weight: 600;
}

.summary-box p {
    color: var(--on-ink-muted);
}

.mini-info {
    padding: 26px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: none;
}

.mini-info .check-list {
    margin: 12px 0 0;
}

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

.faq-x {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 56px;
    align-items: start;
}

.faq-x__head {
    position: sticky;
    top: 120px;
}

.faq-x__head h2 {
    margin: 0 0 16px;
}

.faq-x__head p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
    margin: 0 0 24px;
}

.faq-list details {
    padding: 0;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: none;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.faq-list details[open] {
    border-color: rgba(108, 92, 255, .35);
    box-shadow: var(--shadow-soft);
}

.faq-list summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    list-style: none;
    font-family: var(--font-text);
    font-size: 17.5px;
    font-weight: 700;
    line-height: 1.4;
}

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

.faq-x__plus,
.faq-list summary::after {
    flex: none;
}

.faq-x__plus {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0edff;
    color: var(--primary-dark);
    transition: transform .3s var(--ease-out), background .3s ease, color .3s ease;
}

details[open] .faq-x__plus {
    transform: rotate(45deg);
    background: var(--primary);
    color: #fff;
}

.faq-list details > p {
    margin: 0;
    padding: 0 24px 24px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

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

.related-card {
    position: relative;
    padding: 26px 26px 58px;
    border-radius: 24px;
    border-color: var(--line);
    box-shadow: none;
}

.related-card:hover {
    border-color: rgba(108, 92, 255, .4);
    box-shadow: var(--shadow-soft);
    transform: translateY(-4px);
}

.related-card strong {
    font-size: 17px;
}

.related-card__arrow {
    position: absolute;
    left: 26px;
    bottom: 22px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f0edff;
    color: var(--primary-dark);
    transition: transform .3s var(--ease-out), background .3s ease, color .3s ease;
}

.related-card:hover .related-card__arrow {
    transform: translateX(4px);
    background: var(--primary);
    color: #fff;
}

.related-badge {
    background: #f0edff;
    color: var(--primary-dark);
}

/* ---------- списки ссылок (ещё статьи, ссылки кейса) ---------- */

.more-links {
    margin-top: 28px;
    padding: 28px 32px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--line);
}

.more-links ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.more-links a {
    color: var(--text);
    font-weight: 600;
    transition: color .2s ease;
}

.more-links a:hover {
    color: var(--primary);
}

.case-links .hero-actions {
    flex-wrap: wrap;
}

.footer-product {
    margin-top: 20px;
}

.footer-product a {
    color: var(--lime);
}

.footer-product a:hover {
    text-decoration: underline;
}

@media (max-width: 720px) {
    .more-links {
        padding: 22px 20px;
    }

    .more-links ul {
        grid-template-columns: 1fr;
    }
}

/* ---------- SEO-текст ---------- */

.prose-block {
    padding: 48px;
    border-radius: 32px;
    background: #fff;
    border: 1px solid var(--line);
}

.prose-block h2 {
    font-size: clamp(22px, 2.4vw, 30px);
    margin: 0 0 24px;
}

.prose-block__cols {
    columns: 2;
    column-gap: 44px;
}

.prose-block__cols p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.75;
    break-inside: avoid;
}

/* ---------- контакты ---------- */

.band--contacts .contacts {
    margin: 0 auto;
    align-items: start;
}

.band--contacts h2 {
    margin: 0 0 16px;
}

.band--contacts .contacts > div > p {
    font-size: 18px;
    line-height: 1.65;
}

.contact-points {
    display: grid;
    gap: 14px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.contact-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--on-ink);
    font-weight: 600;
}

.contact-points .icon {
    color: var(--lime);
}

.band--contacts .contact-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--ink-line);
    box-shadow: none;
}

.band--contacts .contact-link {
    background: rgba(255, 255, 255, .06);
    color: #fff;
    border: 1px solid var(--ink-line);
}

.band--contacts .contact-link:hover {
    background: rgba(198, 249, 74, .12);
    border-color: rgba(198, 249, 74, .4);
}

.site-chat-inline {
    border-radius: 24px;
    overflow: hidden;
}

.site-chat-header {
    background: var(--ink-2);
    color: var(--on-ink);
}

.site-chat-header span {
    color: var(--on-ink-muted);
    opacity: 1;
}

/* ---------- внутренние страницы ---------- */

.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 64px 56px;
    border: 0;
    border-radius: 40px;
    background: var(--ink);
    color: var(--on-ink);
    box-shadow: none;
}

.page-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 640px;
    height: 640px;
    right: -220px;
    top: -320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 255, .55), transparent 65%);
    filter: blur(30px);
}

.page-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 420px;
    height: 420px;
    left: -160px;
    bottom: -260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(25, 211, 181, .3), transparent 65%);
    filter: blur(30px);
}

.page-hero h1 {
    color: #fff;
    font-size: clamp(30px, 4.4vw, 56px);
}

.page-hero .lead {
    color: var(--on-ink-muted);
}

.page-hero .badge {
    background: rgba(198, 249, 74, .14);
    color: var(--lime);
}

.page-hero .btn.primary {
    background: var(--lime);
    color: var(--ink);
    box-shadow: 0 14px 34px rgba(198, 249, 74, .2);
}

.page-hero .btn.ghost {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .16);
    color: #fff;
}

.page-section-card,
.article-content,
.article-footer {
    border-color: var(--line);
    box-shadow: none;
}

.page-section-card h2,
.article-content h2 {
    font-size: clamp(21px, 2.2vw, 28px);
}

.article-header h1 {
    font-size: clamp(30px, 4.2vw, 54px);
}

.article-content p,
.article-content li {
    font-size: 17px;
    line-height: 1.75;
}

.cta-section {
    border: 0;
    background:
        radial-gradient(circle at 90% 10%, rgba(198, 249, 74, .25), transparent 40%),
        linear-gradient(135deg, #f0edff, #e8fbf6);
}

.blog-card,
.case-card {
    transition: transform .35s var(--ease-out), box-shadow .35s ease;
}

.blog-card:hover,
.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

/* ---------- подвал ---------- */

.footer-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: min(1440px, calc(100% - 24px));
    margin: 120px auto 0;
    padding: 80px 0 64px;
    border-radius: 44px 44px 0 0;
    background: linear-gradient(150deg, #1d1850 0%, var(--ink) 65%);
    color: var(--on-ink);
}

.footer-cta::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 520px;
    height: 520px;
    right: -120px;
    top: -240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 249, 74, .28), transparent 65%);
    filter: blur(30px);
}

.footer-cta__inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
}

.footer-cta h2 {
    max-width: 720px;
    margin: 0;
    color: #fff;
    font-size: clamp(26px, 3.4vw, 46px);
}

.footer-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex: none;
}

.footer {
    width: min(1440px, calc(100% - 24px));
    margin: 0 auto 12px;
    padding: 48px max(16px, calc((min(1440px, 100vw - 24px) - 1180px) / 2)) 56px;
    border-radius: 0 0 44px 44px;
    background: var(--ink);
    border-top: 1px solid var(--ink-line);
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
}

.is-admin .footer {
    border-radius: 44px;
    margin-top: 80px;
}

.footer strong {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
}

.footer p,
.footer-legal {
    color: var(--on-ink-muted);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 24px;
    color: var(--on-ink-muted);
    min-width: 0;
    font-size: 14.5px;
}

.footer-links a {
    transition: color .2s ease;
}

.footer-links a:hover {
    color: var(--lime);
}

/* ---------- анимации появления ---------- */

.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

.tiles > .reveal:nth-child(3n + 2),
.related-grid > .reveal:nth-child(3n + 2),
.plans > .reveal:nth-child(2),
.stepper > .reveal:nth-child(2),
.timeline-x__cards > .reveal:nth-child(2) {
    transition-delay: .08s;
}

.tiles > .reveal:nth-child(3n),
.related-grid > .reveal:nth-child(3n),
.plans > .reveal:nth-child(3),
.stepper > .reveal:nth-child(3),
.timeline-x__cards > .reveal:nth-child(3) {
    transition-delay: .16s;
}

.stepper > .reveal:nth-child(4) {
    transition-delay: .24s;
}

.stepper > .reveal:nth-child(5) {
    transition-delay: .32s;
}

/* карточки с hover-сдвигом: после появления transform отдаём hover-у */
.js .reveal.is-visible:hover {
    transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal {
        opacity: 1;
        transform: none;
    }

    .blob,
    .bento__orb,
    .hero-x__visual img,
    .marquee__track,
    .pulse-dot::after {
        animation: none !important;
    }
}

/* ---------- адаптив ---------- */

@media (max-width: 1100px) {
    .hero-x__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-x__visual img {
        max-width: 520px;
    }

    .bento {
        grid-template-columns: 1fr 1fr;
    }

    .bento__card--feature {
        grid-column: span 2;
        grid-row: auto;
        min-height: 0;
    }

    .bento__card:nth-child(4) {
        grid-column: span 2;
    }

    .stepper {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .stepper::before {
        left: 29px;
        right: auto;
        top: 30px;
        bottom: 30px;
        width: 2px;
        height: auto;
        background: linear-gradient(180deg, var(--lime), #6c5cff, #19d3b5);
    }

    .stepper__item {
        display: grid;
        grid-template-columns: 60px 1fr;
        column-gap: 20px;
        padding-bottom: 28px;
    }

    .stepper__num {
        grid-row: span 2;
    }

    .stepper__item h3 {
        margin: 6px 0 6px;
    }

    .timeline-x,
    .faq-x,
    .showcase {
        grid-template-columns: 1fr;
    }

    .faq-x__head {
        position: static;
    }

    .footer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .tiles,
    .plans,
    .duo,
    .timeline-x__cards {
        grid-template-columns: 1fr 1fr;
    }

    .plan--featured {
        transform: none;
    }

    .prose-block__cols {
        columns: 1;
    }

    .footer-cta__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-head--row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .has-dark-hero main.home {
        margin-top: -92px;
    }

    .hero-x {
        padding: 128px 0 72px;
        border-radius: 0 0 32px 32px;
    }

    .hero-x__lead {
        font-size: 17px;
    }

    .hero-x__actions .btn {
        flex: 1 1 100%;
    }

    .hero-x__facts {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hero-x__facts li {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
    }

    .hero-x__facts span {
        margin: 0;
        text-align: right;
    }

    .marquee__list li {
        font-size: 15px;
        gap: 20px;
        padding-right: 20px;
    }

    .section {
        margin-top: 80px;
    }

    .band,
    .footer-cta {
        margin-top: 80px;
        padding: 64px 0;
        border-radius: 32px;
    }

    .footer-cta {
        border-radius: 32px 32px 0 0;
        padding-bottom: 48px;
    }

    .footer {
        border-radius: 0 0 32px 32px;
        padding: 40px 20px 48px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .bento,
    .tiles,
    .plans,
    .duo,
    .timeline-x__cards {
        grid-template-columns: 1fr;
    }

    .bento__card--feature,
    .bento__card:nth-child(4) {
        grid-column: auto;
    }

    .bento__card,
    .tile,
    .plan,
    .duo__card,
    .prose-block {
        padding: 24px;
    }

    .page-hero {
        padding: 40px 24px;
        border-radius: 32px;
    }

    .module-card {
        grid-template-columns: 26px 1fr;
    }

    .module-card b {
        grid-column: 2;
    }
}

/* на главной контакты — последняя тёмная плита, подвал прилегает к ней */
.has-dark-hero .band--contacts {
    border-radius: 44px 44px 0 0;
    padding-bottom: 80px;
}

.has-dark-hero .band--contacts + * {
    margin-top: 0;
}

@media (max-width: 640px) {
    .has-dark-hero .band--contacts {
        border-radius: 32px 32px 0 0;
    }
}

/* калькулятор: модули в две колонки на широких экранах */
@media (min-width: 1101px) {
    .modules {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .module-card {
        grid-template-columns: 26px 1fr;
        align-items: start;
        row-gap: 10px;
    }

    .module-card b {
        grid-column: 2;
    }
}

/* админка: обычные размеры заголовков */
.is-admin h1 {
    font-size: clamp(26px, 3vw, 34px);
}

.is-admin h2 {
    font-size: clamp(20px, 2.2vw, 26px);
}

/* ---------- калькулятор: наборы, обязательная база, итог внизу экрана на телефоне ---------- */

.constructor-presets {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.constructor-presets > span {
    margin-right: 4px;
    color: var(--muted);
    font-size: 15px;
}

.preset-chip {
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font: 600 15px/1.2 var(--font-text);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.preset-chip:hover {
    border-color: var(--primary);
    background: #f3f1ff;
}

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

.module-card--required {
    cursor: default;
}

.module-card--required:hover {
    transform: none;
}

.module-card--required .module-card__check {
    opacity: .7;
}

.summary-bar {
    display: none;
}

@media (max-width: 1100px) {
    .summary-bar {
        position: sticky;
        bottom: 12px;
        z-index: 30;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-top: 16px;
        padding: 10px 10px 10px 18px;
        border-radius: 20px;
        background: var(--ink-2);
        color: var(--on-ink);
        box-shadow: 0 14px 40px rgba(16, 24, 39, .22);
    }

    .summary-bar small {
        display: block;
        color: var(--on-ink-muted);
        font-size: 13px;
    }

    .summary-bar strong {
        font-family: var(--font-display);
        font-size: 20px;
        font-variant-numeric: tabular-nums;
    }

    .summary-bar .btn {
        min-height: 44px;
        padding: 10px 18px;
    }

    /* Итог стоит в потоке под модулями, поэтому липкую панель переносим к списку */
    .constructor-grid {
        display: flex;
        flex-direction: column;
    }

    .summary {
        display: contents;
    }

    .summary-bar {
        order: 1;
    }

    .summary-box,
    .mini-info {
        order: 2;
    }
}

@media (max-width: 1100px) {
    .summary-bar {
        align-self: stretch;
    }
}

@media (max-width: 760px) {
    /* пока калькулятор на экране, его панель заменяет общую «Рассчитать цену / Написать» */
    body.calc-in-view .mobile-cta {
        display: none;
    }
}
