/* ==========================================================================
   Modern stylesheet — Сопровождение сайта (2000060.ru)
   ========================================================================== */

:root {
    color-scheme: light;
    --brand: #4f63b0;
    --brand-strong: #3f3d56;
    --brand-soft: #eef1fa;
    --accent: #7083c7;
    --ink: #23263a;
    --muted: #626780;
    --line: #e5e7f0;
    --bg: #ffffff;
    --bg-alt: #f6f7fb;
    --white: #ffffff;
    --success: #1f9d55;
    --danger: #d64545;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 10px rgba(35, 38, 58, .06);
    --shadow: 0 14px 40px rgba(35, 38, 58, .10);
    --container: 1160px;
    --header-h: 72px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    overflow-x: clip;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: color .18s ease;
}

a:hover {
    color: var(--brand-strong);
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
    line-height: 1.2;
    margin: 0 0 .6em;
    font-weight: 800;
    letter-spacing: -.01em;
}

h1 {
    font-size: clamp(1.9rem, 4.4vw, 3.1rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h3 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 1rem;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--brand-strong);
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 0 8px 0;
}

.anchor-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 95;
    background: linear-gradient(90deg, var(--brand) 0%, #6073c7 100%);
    transform: scaleX(0);
    transform-origin: 0 50%;
    pointer-events: none;
    will-change: transform;
}

.skip-link:focus {
    left: 0;
    color: #fff;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, #6073c7 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(79, 99, 176, .32);
}

.btn-primary:hover {
    color: #fff;
    box-shadow: 0 14px 30px rgba(79, 99, 176, .42);
}

.btn-ghost {
    background: #fff;
    color: var(--brand-strong);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--brand);
}

.btn-outline {
    background: transparent;
    color: var(--brand);
    border-color: var(--accent);
}

.btn-outline:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.btn-lg {
    padding: 16px 30px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 10px 18px;
    font-size: .9rem;
}

.btn-block {
    width: 100%;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 800;
}

.brand:hover {
    color: var(--ink);
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand) 0%, #6073c7 100%);
    color: #fff;
    flex: 0 0 auto;
}

.brand-mark svg {
    width: 22px;
    height: 22px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    font-size: 1.05rem;
    line-height: 1.05;
}

.brand-text small {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand);
}

.nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.nav>a {
    color: var(--brand-strong);
    font-weight: 600;
    font-size: .98rem;
}

.nav>a:hover {
    color: var(--brand);
}

.nav-contacts {
    display: none;
}

.nav-contacts .nav-phone {
    font-weight: 700;
    color: var(--ink);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--ink);
    font-size: 1rem;
}

.header-phone svg {
    width: 18px;
    height: 18px;
    color: var(--brand);
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--brand-strong);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Sections ---------- */
.section {
    padding: clamp(56px, 8vw, 104px) 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-head {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-head p {
    color: var(--muted);
    font-size: 1.08rem;
    margin-bottom: 0;
}

.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px);
    background:
        radial-gradient(1100px 520px at 88% -10%, #e7ecfb 0%, rgba(231, 236, 251, 0) 62%),
        linear-gradient(180deg, #fbfcff 0%, #ffffff 70%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(79, 99, 176, .10) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(760px 380px at 20% 10%, #000 0%, transparent 70%);
    mask-image: radial-gradient(760px 380px at 20% 10%, #000 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: clamp(28px, 5vw, 64px);
}

.badge {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--brand-strong);
    font-weight: 700;
    font-size: .82rem;
    padding: 7px 14px;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
}

.hero h1 {
    margin-bottom: .4em;
}

.hero .lead {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 36em;
}

.hero-points {
    display: grid;
    gap: 10px;
    margin: 22px 0 28px;
}

.hero-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
    color: var(--ink);
}

.hero-points svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--brand);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.messengers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    font-size: .95rem;
}

.messengers-label {
    color: var(--muted);
}

.messengers a {
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-strong);
}

.messengers a:hover {
    background: var(--brand);
    color: #fff;
}

.messengers-lg a {
    padding: 10px 20px;
    font-size: .95rem;
}

.messengers-lg .tg {
    background: #e7f3fd;
    color: #2179a8;
}

.messengers-lg .wa {
    background: #e6f7ee;
    color: #1f9d55;
}

.messengers-lg .mx {
    background: #ede9fb;
    color: #6a49c9;
}

.messengers-lg .tg:hover,
.messengers-lg .wa:hover,
.messengers-lg .mx:hover {
    color: #fff;
}

.messengers-lg .tg:hover {
    background: #2179a8;
}

.messengers-lg .wa:hover {
    background: #1f9d55;
}

.messengers-lg .mx:hover {
    background: #6a49c9;
}

.hero-visual {
    position: relative;
}

.hero-card {
    position: relative;
    padding: 14px;
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.hero-art {
    display: block;
    width: 100%;
    height: auto;
    color: var(--brand);
}

.hero-art .ha-soft {
    fill: var(--brand-soft);
}

.hero-art .ha-success {
    stroke: var(--success);
    fill: none;
    stroke-dasharray: 62;
    animation: haCheck 4.5s ease-in-out infinite;
}

.hero-art .ha-success-fill {
    fill: var(--success);
    animation: haBlink 2s ease-in-out infinite;
}

/* Animated parts of the hero illustration */
.hero-art .ha-gear {
    transform-box: fill-box;
    transform-origin: center;
    animation: haSpin 16s linear infinite;
}

.hero-art .ha-bar {
    transform-box: fill-box;
    transform-origin: left center;
    animation: haGrow 2.8s ease-in-out infinite;
}

.hero-art .ha-shield {
    animation: haFloat 4.5s ease-in-out infinite;
}

.hero-art .ha-chart-line {
    stroke-dasharray: 520;
    stroke-dashoffset: 520;
    animation: haDraw 2.4s ease-out .2s forwards;
}

.hero-art .ha-chart-area {
    opacity: 0;
    animation: haArea 1.4s ease-out 1.6s forwards;
}

.hero-art .ha-spark {
    display: none;
}

@supports (offset-path: path("M 0 0")) {
    .hero-art .ha-spark {
        display: block;
        offset-path: path("M232 322 L268 296 L304 308 L340 268 L376 284 L412 244 L448 258");
        offset-rotate: 0deg;
        animation: haTravel 3.6s linear infinite;
    }
}

.hero-art .ha-live-ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: haPing 1.8s ease-out infinite;
}

.hero-art .ha-caret {
    animation: haBlink 1.1s steps(1, end) infinite;
}

@keyframes haSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes haGrow {

    0%,
    100% {
        transform: scaleX(.55);
    }

    50% {
        transform: scaleX(1);
    }
}

@keyframes haFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes haDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes haArea {
    to {
        opacity: 1;
    }
}

@keyframes haTravel {
    0% {
        offset-distance: 0%;
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    92% {
        opacity: 1;
    }

    100% {
        offset-distance: 100%;
        opacity: 0;
    }
}

@keyframes haPing {
    0% {
        transform: scale(.5);
        opacity: .9;
    }

    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

@keyframes haBlink {

    0%,
    45% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: .15;
    }
}

@keyframes haCheck {
    0% {
        stroke-dashoffset: 62;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    40% {
        stroke-dashoffset: 0;
    }

    70% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    90% {
        opacity: 0;
    }

    100% {
        stroke-dashoffset: 62;
        opacity: 0;
    }
}

.hero-card-float {
    position: absolute;
    left: -12px;
    bottom: 26px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 14px;
    padding: 12px 18px;
    max-width: 230px;
}

.hero-card-float strong {
    color: var(--brand-strong);
    font-size: .95rem;
}

.hero-card-float span {
    color: var(--muted);
    font-size: .82rem;
}

/* ---------- Trust strip ---------- */
.trust-strip {
    margin-top: clamp(36px, 5vw, 56px);
    padding: 26px 28px;
    border-radius: var(--radius);
    background: var(--bg-alt);
    border: 1px solid var(--line);
}

.trust-title {
    text-align: center;
    font-weight: 700;
    color: var(--brand-strong);
    margin-bottom: 18px;
}

.logos {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    align-items: center;
    gap: 12px;
}

.logos img {
    width: 100%;
    max-width: 130px;
    margin: 0 auto;
    filter: grayscale(1);
    opacity: .72;
    transition: filter .2s ease, opacity .2s ease;
}

.logos img:hover {
    filter: none;
    opacity: 1;
}

/* ---------- Cards ---------- */
.grid {
    display: grid;
    gap: 22px;
}

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

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 26px;
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #d8dcee;
}

.card-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand);
    margin-bottom: 18px;
}

.card-icon svg {
    width: 26px;
    height: 26px;
}

.card h3 {
    margin-bottom: .5em;
}

.card p {
    color: var(--muted);
    margin-bottom: 0;
}

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

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

.card-more {
    display: inline-block;
    margin-top: 14px;
    font-weight: 700;
    font-size: .94rem;
    color: var(--brand);
    transition: transform .18s ease, color .18s ease;
}

.card-more:hover {
    color: var(--accent);
    transform: translateX(3px);
}

.card-best {
    position: relative;
    border-color: var(--accent);
    box-shadow: 0 14px 40px rgba(79, 99, 176, .14);
}

.card-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--brand) 0%, #6073c7 100%);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

/* ---------- Inner pages (service landing pages) ---------- */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    color: var(--muted);
    padding: 22px 0 0;
}

.breadcrumbs a {
    color: var(--muted);
}

.breadcrumbs a:hover {
    color: var(--brand);
}

.breadcrumbs span {
    opacity: .6;
}

.page-hero {
    position: relative;
    padding: clamp(28px, 5vw, 56px) 0 clamp(40px, 6vw, 72px);
    background:
        radial-gradient(900px 460px at 88% -20%, #e7ecfb 0%, rgba(231, 236, 251, 0) 62%),
        linear-gradient(180deg, #fbfcff 0%, #ffffff 75%);
}

.page-hero h1 {
    max-width: 20em;
}

.page-hero .lead {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 46em;
}

.prose {
    max-width: 780px;
}

.prose h2 {
    margin-top: 0.2em;
}

.prose h3 {
    margin-top: 1.4em;
}

.prose p,
.prose li {
    color: var(--muted);
}

.prose ul {
    display: grid;
    gap: 10px;
    margin: 0 0 1rem;
    padding: 0;
}

.prose ul li {
    position: relative;
    padding-left: 28px;
}

.prose ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--brand-soft);
}

.prose ul li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 11px;
    width: 5px;
    height: 9px;
    border: solid var(--brand);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.page-cta {
    margin-top: 40px;
    padding: clamp(26px, 4vw, 40px);
    border-radius: 22px;
    background: linear-gradient(135deg, var(--brand-strong) 0%, #4a4a74 100%);
    color: #fff;
}

.page-cta h2,
.page-cta p {
    color: #fff;
}

.page-cta p {
    color: rgba(255, 255, 255, .82);
}

.page-cta .btn {
    margin-top: 8px;
}

/* ---------- Banner ---------- */
.banner {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: center;
    padding: clamp(28px, 4vw, 44px);
    border-radius: 22px;
    background: linear-gradient(135deg, var(--brand-strong) 0%, #4a4a74 100%);
    color: #fff;
    overflow: hidden;
}

.banner h3 {
    color: #fff;
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
}

.banner p {
    color: rgba(255, 255, 255, .82);
    margin-bottom: 0;
}

.banner-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    text-align: center;
}

.banner-stats strong {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
}

.banner-stats span {
    font-size: .82rem;
    color: rgba(255, 255, 255, .72);
}

/* ---------- Pricing ---------- */
.pricing {
    align-items: stretch;
}

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease;
}

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

.price-card-featured {
    border-color: transparent;
    background: linear-gradient(180deg, #fff 0%, #f4f6fe 100%);
    box-shadow: 0 18px 50px rgba(79, 99, 176, .20);
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.price-tag {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--brand) 0%, #6073c7 100%);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

.price-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-strong);
    margin-bottom: 2px;
}

.price-desc {
    color: var(--muted);
    font-size: .95rem;
    margin-bottom: 16px;
}

.price-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 22px;
}

.price-value span {
    font-size: .95rem;
    font-weight: 600;
    color: var(--muted);
}

.price-list {
    display: grid;
    gap: 11px;
    margin-bottom: 26px;
    flex: 1;
}

.price-list li {
    position: relative;
    padding-left: 28px;
    color: var(--muted);
    font-size: .96rem;
}

.price-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--brand-soft);
}

.price-list li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 11px;
    width: 5px;
    height: 9px;
    border: solid var(--brand);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.included {
    margin-top: 40px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: clamp(26px, 4vw, 40px);
    box-shadow: var(--shadow-sm);
}

.included h3 {
    text-align: center;
    margin-bottom: 26px;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 24px;
}

.check-grid li {
    position: relative;
    padding-left: 28px;
    color: var(--muted);
    font-weight: 500;
}

.check-grid li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--brand-soft);
}

.check-grid li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 10px;
    width: 5px;
    height: 9px;
    border: solid var(--brand);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ---------- Steps ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 24px;
    box-shadow: var(--shadow-sm);
}

.steps li::after {
    content: "";
    position: absolute;
    top: 48px;
    right: -12px;
    width: 24px;
    height: 2px;
    background: var(--line);
}

.steps li:last-child::after {
    display: none;
}

.step-num {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand);
    margin-bottom: 12px;
}

.steps h3 {
    margin-bottom: .4em;
}

.steps p {
    color: var(--muted);
    margin-bottom: 0;
    font-size: .96rem;
}

/* Horizontal pinned steps (activated by JS) */
.steps-h.is-active {
    position: relative;
    padding: 0;
}

.steps-h.is-active .steps-sticky {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    padding: 90px 0 90px;
}

.steps-h.is-active .steps-sticky > .container {
    width: 100%;
}

.steps-h.is-active .steps-viewport {
    overflow: hidden;
}

.steps-h.is-active .steps {
    display: flex;
    flex-wrap: nowrap;
    gap: 22px;
    will-change: transform;
}

.steps-h.is-active .steps > li {
    flex: 0 0 clamp(240px, 28vw, 340px);
}

.steps-h.is-active .steps li::after {
    display: block;
}

/* ---------- FAQ ---------- */
.faq {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 4px 22px;
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    font-weight: 700;
    color: var(--ink);
    font-size: 1.05rem;
}

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

.faq-item summary::after {
    content: "";
    width: 10px;
    height: 10px;
    border: solid var(--brand);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform .2s ease;
    flex: 0 0 auto;
}

.faq-item[open] summary::after {
    transform: rotate(225deg);
}

.faq-body {
    padding: 0 0 20px;
    color: var(--muted);
}

/* ---------- Contacts ---------- */
.contacts {
    background:
        radial-gradient(800px 400px at 100% 0%, #eef1fa 0%, rgba(238, 241, 250, 0) 60%),
        #ffffff;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 980px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #d8dcee;
    color: var(--ink);
}

.contact-ico {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: var(--brand-soft);
    color: var(--brand);
    margin-bottom: 14px;
}

.contact-ico svg {
    width: 24px;
    height: 24px;
}

.contact-ico.ico-tg {
    background: #e7f3fd;
    color: #2179a8;
}

.contact-ico.ico-wa {
    background: #e6f7ee;
    color: #1f9d55;
}

.contact-ico.ico-mx {
    background: #ede9fb;
    color: #6a49c9;
}

.contact-card small {
    color: var(--muted);
    font-size: .82rem;
}

.contact-card strong {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
    word-break: break-word;
}

.contact-hint {
    color: var(--muted);
    font-size: .84rem;
    margin-top: 2px;
}

.contact-note {
    text-align: center;
    color: var(--muted);
    margin: 32px auto 0;
}

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #423f5c 0%, #2f2d45 100%);
    color: rgba(255, 255, 255, .78);
    padding-top: 64px;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent);
}

.footer-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(720px 340px at 12% -12%, rgba(112, 131, 199, .45), transparent 68%),
        radial-gradient(560px 300px at 92% -8%, rgba(90, 111, 208, .32), transparent 70%);
    animation: footerGlow 14s ease-in-out infinite;
}

.footer-deco::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(620px 320px at 22% 0%, #000 0%, transparent 72%);
    mask-image: radial-gradient(620px 320px at 22% 0%, #000 0%, transparent 72%);
}

@keyframes footerGlow {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -14px, 0);
    }
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

/* CTA panel */
.footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
    padding: 30px 34px;
    margin-bottom: 52px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(112, 131, 199, .30), rgba(90, 111, 208, .10));
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.footer-cta-badge {
    display: inline-block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #dfe4ff;
    background: rgba(255, 255, 255, .12);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.footer-cta h2 {
    color: #fff;
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    margin-bottom: .3em;
}

.footer-cta p {
    color: rgba(255, 255, 255, .78);
    margin-bottom: 0;
    max-width: 44em;
}

.footer-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-white-outline {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
}

.btn-white-outline:hover {
    background: #fff;
    color: var(--brand-strong);
    border-color: #fff;
}

/* Columns */
.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr .9fr .9fr 1.3fr;
    gap: 36px;
    padding-bottom: 44px;
}

.site-footer .brand {
    color: #fff;
    margin-bottom: 16px;
}

.site-footer .brand:hover {
    color: #fff;
}

.footer-brand p {
    font-size: .95rem;
    color: rgba(255, 255, 255, .7);
    max-width: 34em;
}

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 16px;
    font-size: .85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .8);
}

.dot-pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, .55);
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, .55);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

.footer-title {
    color: #fff;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

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

.footer-nav a {
    position: relative;
    color: rgba(255, 255, 255, .78);
    padding: 5px 0;
    transition: color .2s ease, transform .2s ease;
}

.footer-nav a::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transform: translateY(-50%);
    transition: width .2s ease;
}

.footer-nav a:hover {
    color: #fff;
    transform: translateX(14px);
}

.footer-nav a:hover::before {
    width: 10px;
}

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

.footer-phone {
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 6px;
    transition: color .2s ease;
}

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

.footer-contact>a[href^="mailto"] {
    color: rgba(255, 255, 255, .78);
    margin-bottom: 14px;
    transition: color .2s ease;
}

.footer-contact>a[href^="mailto"]:hover {
    color: #fff;
}

.site-footer .messengers a {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.site-footer .messengers a:hover {
    background: #fff;
    color: var(--brand-strong);
    transform: translateY(-2px);
}

/* Bottom bar */
.footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding: 20px 0 84px;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: .88rem;
    color: rgba(255, 255, 255, .6);
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom .to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-weight: 600;
    transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}

.footer-bottom .to-top span {
    display: inline-block;
    transition: transform .2s ease;
}

.footer-bottom .to-top:hover {
    background: #fff;
    color: var(--brand-strong);
    border-color: #fff;
    transform: translateY(-2px);
}

.footer-bottom .to-top:hover span {
    transform: translateY(-2px);
}

/* ---------- Floating call ---------- */
.fab-call {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 55;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand) 0%, #6073c7 100%);
    color: #fff;
    box-shadow: 0 12px 28px rgba(79, 99, 176, .45);
    transition: transform .18s ease;
}

.fab-call:hover {
    transform: translateY(-3px);
    color: #fff;
}

.fab-call svg {
    width: 26px;
    height: 26px;
}

.fab-call::after {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--brand-strong);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.fab-call:hover::after,
.fab-call:focus-visible::after {
    opacity: 1;
}

/* ---------- Mobile quick-contact bar ---------- */
.mobile-bar {
    display: none;
}

.mobile-chips {
    display: none;
}

/* ---------- Reveal animation ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s ease, transform .6s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .logos {
        grid-template-columns: repeat(5, 1fr);
    }

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

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

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

    .steps li::after {
        display: none;
    }

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

    /* Header collapses to the burger menu earlier so links never push the phone out */
    .site-header .nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        padding: 10px 20px 20px;
        transform: translateY(-140%);
        transition: transform .28s ease;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }

    .site-header .nav.open {
        transform: translateY(0);
    }

    .nav>a {
        padding: 14px 4px;
        border-bottom: 1px solid var(--line);
        font-size: 1.05rem;
    }

    .nav-contacts {
        display: grid;
        gap: 12px;
        margin-top: 16px;
    }

    .nav-contacts .btn {
        width: 100%;
    }

    .header-phone,
    .header-actions>.btn {
        display: none;
    }

    .burger {
        display: flex;
    }
}

@media (max-width: 900px) {
    .hero-grid,
    .banner {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
        max-width: 520px;
        margin: 0 auto;
    }

    .hero-card .hero-card-float {
        position: static;
        left: auto;
        bottom: auto;
        width: 100%;
        max-width: none;
        margin-top: 12px;
        padding: 2px 6px 0;
        flex-direction: row;
        align-items: baseline;
        gap: 10px;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .banner-stats {
        text-align: left;
    }

    .steps-h.is-active .steps-sticky {
        align-items: flex-start;
        padding-top: 150px;
        padding-bottom: 90px;
    }

    .mobile-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 55;
        display: flex;
        gap: 6px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .94);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--line);
        box-shadow: 0 -6px 24px rgba(35, 38, 58, .10);
    }

    .mb-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 8px 4px;
        border-radius: 12px;
        font-size: .72rem;
        font-weight: 600;
        line-height: 1;
        color: var(--ink);
        background: var(--bg-alt);
        transition: transform .15s ease, background .2s ease;
    }

    .mb-item:active {
        transform: scale(.97);
    }

    .mb-item svg {
        width: 20px;
        height: 20px;
        color: var(--brand);
    }

    .mb-call {
        background: linear-gradient(135deg, var(--brand) 0%, #6073c7 100%);
        color: #fff;
    }

    .mb-call svg {
        color: #fff;
    }

    .fab-call {
        display: none;
    }

    html {
        scroll-padding-top: calc(var(--header-h) + 60px);
    }

    .mobile-chips {
        position: sticky;
        top: var(--header-h);
        z-index: 50;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 10px 20px;
        background: rgba(255, 255, 255, .92);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--line);
        scrollbar-width: none;
    }

    .mobile-chips::-webkit-scrollbar {
        display: none;
    }

    .mobile-chips a {
        flex: 0 0 auto;
        padding: 8px 14px;
        border-radius: 999px;
        background: var(--brand-soft);
        color: var(--ink);
        font-size: .85rem;
        font-weight: 600;
        white-space: nowrap;
        transition: background .2s ease, color .2s ease;
    }

    .mobile-chips a:hover {
        color: var(--ink);
    }

    .mobile-chips a.is-current {
        background: linear-gradient(135deg, var(--brand) 0%, #6073c7 100%);
        color: #fff;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

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

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

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

    .banner-stats {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .footer-cta {
        padding: 24px 22px;
    }

    .footer-cta-actions {
        width: 100%;
    }

    .footer-cta-actions .btn {
        flex: 1 1 auto;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 24px 20px;
    }

    .footer-brand,
    .footer-contact {
        grid-column: 1 / -1;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    /* Swipe carousels on phones */
    .services-grid,
    .pricing {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        padding: 14px 2px 10px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .services-grid::-webkit-scrollbar,
    .pricing::-webkit-scrollbar {
        display: none;
    }

    .services-grid>*,
    .pricing>* {
        flex: 0 0 84%;
        scroll-snap-align: start;
    }

    /* Compact pricing cards */
    .price-card {
        padding: 18px 16px;
    }

    .price-tag {
        top: -11px;
        font-size: .68rem;
        padding: 5px 12px;
    }

    .price-name {
        font-size: 1rem;
    }

    .price-desc {
        font-size: .82rem;
        margin-bottom: 8px;
    }

    .price-value {
        font-size: 1.85rem;
        margin-bottom: 12px;
    }

    .price-value span {
        font-size: .8rem;
    }

    .price-list {
        gap: 6px;
        margin-bottom: 14px;
    }

    .price-list li {
        font-size: .86rem;
        padding-left: 24px;
        line-height: 1.35;
    }

    .price-list li::before {
        top: 3px;
        width: 14px;
        height: 14px;
    }

    .price-list li::after {
        left: 4px;
        top: 6px;
        width: 5px;
        height: 8px;
    }

    .price-card .btn {
        padding: 11px 18px;
        font-size: .94rem;
    }

    /* Mobile typography */
    .hero .lead,
    .page-hero .lead {
        font-size: 1.05rem;
    }

    .section-head {
        margin-bottom: 32px;
    }

    .card {
        padding: 24px 22px;
    }

    /* Compact contacts */
    .contacts {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .contact-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .contact-card {
        padding: 16px 14px;
    }

    .contact-card:first-child {
        grid-column: 1 / -1;
    }

    .contact-ico {
        width: 38px;
        height: 38px;
        margin-bottom: 8px;
        border-radius: 10px;
    }

    .contact-ico svg {
        width: 20px;
        height: 20px;
    }

    .contact-card strong {
        font-size: .95rem;
    }

    .contact-hint {
        display: none;
    }

    .contact-note {
        margin-top: 20px;
    }
}

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

    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .card,
    .price-card,
    .btn,
    .fab-call {
        transition: none;
    }

    .footer-deco,
    .dot-pulse {
        animation: none;
    }

    .hero-art * {
        animation: none !important;
    }

    .hero-art .ha-chart-line {
        stroke-dashoffset: 0;
    }

    .hero-art .ha-chart-area {
        opacity: 1;
    }

    .footer-nav a:hover,
    .footer-bottom .to-top:hover {
        transform: none;
    }
}

/* ==========================================================================
   Dark theme — follows the OS "dark mode" setting
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --brand: #7f93e0;
        --accent: #9fb0f2;
        --brand-soft: #232a49;
        --ink: #e9ebf5;
        --muted: #a6adc9;
        --line: #2b3152;
        --bg: #0f121f;
        --bg-alt: #151a2c;
        --danger: #ff6b6b;
        --success: #4ade80;
        --shadow-sm: 0 2px 10px rgba(0, 0, 0, .4);
        --shadow: 0 16px 44px rgba(0, 0, 0, .55);
    }

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

    /* Header */
    .site-header {
        background: rgba(15, 18, 31, .82);
    }

    .burger {
        background: #1a2036;
    }

    .burger span {
        background: var(--ink);
    }

    .nav>a {
        color: var(--ink);
    }

    /* Buttons */
    .btn-ghost {
        background: #1a2036;
        color: var(--ink);
        border-color: var(--line);
    }

    .btn-outline {
        color: var(--accent);
    }

    /* Hero */
    .hero {
        background:
            radial-gradient(1100px 520px at 88% -10%, rgba(79, 99, 176, .22) 0%, rgba(79, 99, 176, 0) 62%),
            linear-gradient(180deg, #131728 0%, #0f121f 70%);
    }

    .page-hero {
        background:
            radial-gradient(900px 460px at 88% -20%, rgba(79, 99, 176, .20) 0%, rgba(79, 99, 176, 0) 62%),
            linear-gradient(180deg, #131728 0%, #0f121f 75%);
    }

    .hero-bg {
        background-image: radial-gradient(rgba(159, 176, 242, .14) 1px, transparent 1px);
    }

    .badge {
        background: #1a2036;
        color: var(--ink);
    }

    .hero-card {
        background: #161b2e;
    }

    .hero-card-float {
        background: #1a2036;
    }

    .hero-card-float strong {
        color: var(--ink);
    }

    /* Trust logos */
    .logos img {
        filter: grayscale(1) invert(1) brightness(1.7);
        opacity: .85;
    }

    .logos img:hover {
        filter: grayscale(1) invert(1) brightness(1.7);
        opacity: 1;
    }

    /* Cards */
    .card {
        background: #161b2e;
    }

    .card:hover,
    .contact-card:hover {
        border-color: #3a4370;
    }

    /* Banner */
    .banner {
        background: linear-gradient(135deg, #1b2140 0%, #2a2f5c 100%);
    }

    /* Pricing */
    .price-card {
        background: #161b2e;
    }

    .price-card-featured {
        background: linear-gradient(180deg, #1b2140 0%, #161b2e 100%);
        box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
    }

    .price-name,
    .price-value,
    .trust-title,
    .faq-item summary {
        color: var(--ink);
    }

    .included {
        background: #161b2e;
    }

    /* Steps */
    .steps li {
        background: #161b2e;
    }

    .steps li::after {
        background: var(--line);
    }

    /* FAQ */
    .faq-item {
        background: #161b2e;
    }

    /* Contacts */
    .contacts {
        background:
            radial-gradient(800px 400px at 100% 0%, rgba(79, 99, 176, .18) 0%, rgba(79, 99, 176, 0) 60%),
            #0f121f;
    }

    .contact-card {
        background: #161b2e;
    }

    .contact-ico.ico-tg {
        background: #16293a;
        color: #5bb8e8;
    }

    .contact-ico.ico-wa {
        background: #15301f;
        color: #4ade80;
    }

    .contact-ico.ico-mx {
        background: #241f3d;
        color: #a98cf0;
    }

    .messengers a {
        background: var(--brand-soft);
        color: var(--ink);
    }

    .messengers a:hover {
        background: var(--brand);
        color: #0f121f;
    }

    .messengers-lg .tg,
    .messengers-lg .wa,
    .messengers-lg .mx {
        background: #232a49;
        color: var(--ink);
    }

    /* Floating call tooltip */
    .fab-call::after {
        background: #232a49;
        color: var(--ink);
    }

    .mobile-bar {
        background: rgba(15, 18, 31, .94);
        box-shadow: 0 -6px 24px rgba(0, 0, 0, .4);
    }

    .mobile-chips {
        background: rgba(15, 18, 31, .92);
    }

    /* Footer */
    .site-footer {
        background: linear-gradient(180deg, #1b1d31 0%, #0c0e18 100%);
    }

    .footer-deco {
        background:
            radial-gradient(720px 340px at 12% -12%, rgba(127, 147, 224, .30), transparent 68%),
            radial-gradient(560px 300px at 92% -8%, rgba(90, 111, 208, .22), transparent 70%);
    }

    .footer-cta {
        background: linear-gradient(135deg, rgba(127, 147, 224, .18), rgba(90, 111, 208, .06));
    }
}

/* Dark theme — mobile menu panel (needs both conditions) */
@media (prefers-color-scheme: dark) and (max-width: 1080px) {
    .site-header .nav {
        background: #12162a;
    }
}

/* ==========================================================================
   Cookie consent — bottom bar
   ========================================================================== */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: var(--bg);
    border-top: 1px solid var(--line);
    box-shadow: 0 -12px 34px rgba(35, 38, 58, .14);
    opacity: 0;
    transform: translateY(100%);
    transition: opacity .3s ease, transform .3s ease;
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent.is-open {
    opacity: 1;
    transform: none;
}

.cookie-consent-box {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
}

.cookie-consent-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand);
}

.cookie-consent-icon svg {
    width: 24px;
    height: 24px;
}

.cookie-consent-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.cookie-consent-title {
    margin: 0 0 2px;
    font-size: 1rem;
}

.cookie-consent-text {
    margin: 0;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.5;
}

.cookie-consent-actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.cookie-consent-actions .btn {
    padding: 11px 22px;
    font-size: .95rem;
}

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

@media (max-width: 640px) {
    .cookie-consent-box {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    }

    .cookie-consent-copy {
        flex: 1 1 100%;
    }

    .cookie-consent-title {
        font-size: .98rem;
    }

    .cookie-consent-text {
        font-size: .82rem;
    }

    .cookie-consent-actions {
        flex: 1 1 100%;
    }

    .cookie-consent-actions .btn {
        width: 100%;
    }
}

@media (prefers-color-scheme: dark) {
    .cookie-consent {
        box-shadow: 0 -12px 34px rgba(0, 0, 0, .5);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent {
        transition: none;
    }
}
