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

:root {
    --red: #E11D48;
    --red-deep: #B11226;
    --red-soft: rgba(225, 29, 72, 0.14);
    --red-line: rgba(225, 29, 72, 0.32);
    --red-glow: rgba(225, 29, 72, 0.45);

    --cyan: #06D6FF;
    --cyan-deep: #0099D6;
    --cyan-soft: rgba(6, 214, 255, 0.14);
    --cyan-line: rgba(6, 214, 255, 0.4);
    --cyan-glow: rgba(6, 214, 255, 0.55);

    /* Тёмный фон Neural Network */
    --bg: #06080F;
    --bg-2: #0A0E1A;
    --surface: rgba(15, 23, 42, 0.55);
    --surface-2: rgba(20, 27, 45, 0.7);
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.14);

    --ink: #F1F5F9;
    --ink-2: #CBD5E1;
    --muted: #94A3B8;
    --muted-2: #64748B;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
    --shadow-red: 0 18px 40px rgba(225, 29, 72, 0.25);
    --shadow-cyan: 0 18px 40px rgba(6, 214, 255, 0.22);

    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 22px;

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(225, 29, 72, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(6, 214, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(6, 214, 255, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
    background-attachment: fixed;
    color: var(--ink);
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}

/* ===== Глобальная Neural Network канва ===== */
.bg-network {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 1.8s 0.3s var(--ease-out) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ===== Фоновый орнамент ===== */
.bg-ornament {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: screen;
}

/* Контентные слои выше канвы */
.nav, .hero, .divider, .systems, .footer, .modal {
    position: relative;
    z-index: 2;
}

/* ===== Шапка ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6, 8, 15, 0.55);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.brand-mark {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 0 12px rgba(6, 214, 255, 0.45));
    transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}

.brand-mark circle:first-child { stroke: var(--cyan); }
.brand-mark circle:last-of-type { fill: var(--red); }
.brand-mark g line { stroke: var(--cyan); }

.brand:hover .brand-mark {
    transform: rotate(45deg);
    filter: drop-shadow(0 0 18px rgba(6, 214, 255, 0.7));
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.brand-sub {
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 2px;
}

.nav-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong) 20%, var(--border-strong) 80%, transparent);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 72px 0 40px;
    overflow: hidden;
    z-index: 2;
}

.hero-glow {
    position: absolute;
    left: 50%;
    top: 40%;
    width: 720px;
    height: 720px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(225, 29, 72, 0.18) 0%, rgba(225, 29, 72, 0.07) 30%, transparent 60%);
    z-index: -1;
    pointer-events: none;
    animation: glowPulse 8s ease-in-out infinite;
    filter: blur(8px);
}

.hero-glow::before,
.hero-glow::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-glow::before {
    left: 18%;
    top: 30%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(6, 214, 255, 0.28) 0%, rgba(6, 214, 255, 0.1) 35%, transparent 65%);
    filter: blur(10px);
    animation: cyanFloat 9s ease-in-out infinite;
}

.hero-glow::after {
    right: 12%;
    top: 55%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(6, 214, 255, 0.22) 0%, rgba(0, 153, 214, 0.08) 35%, transparent 65%);
    filter: blur(12px);
    animation: cyanFloat 11s 1s ease-in-out infinite reverse;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.85; }
    50%      { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

@keyframes cyanFloat {
    0%, 100% { transform: translate(0, 0) scale(1);          opacity: 0.7; }
    33%      { transform: translate(40px, -30px) scale(1.12); opacity: 1; }
    66%      { transform: translate(-30px, 20px) scale(0.95); opacity: 0.85; }
}

.hero-mountains {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 220px;
    z-index: -1;
    opacity: 1;
}

.hero-inner {
    position: relative;
    text-align: center;
    max-width: 880px;
}

/* ===== AI Sparkles ===== */
.ai-sparkles {
    position: absolute;
    inset: -40px -40px -20px;
    pointer-events: none;
    z-index: 1;
}

.sparkle {
    position: absolute;
    color: var(--cyan);
    filter: drop-shadow(0 0 6px var(--cyan)) drop-shadow(0 0 12px rgba(6, 214, 255, 0.55));
    opacity: 0;
    will-change: transform, opacity;
    animation: sparkleTwinkle 3.4s ease-in-out infinite;
}

@keyframes sparkleTwinkle {
    0%, 100% { opacity: 0; transform: scale(0)   rotate(0deg); }
    25%      { opacity: 1; transform: scale(1)   rotate(35deg); }
    50%      { opacity: 0.4; transform: scale(0.65) rotate(80deg); }
    75%      { opacity: 1; transform: scale(0.9) rotate(120deg); }
}

.sparkle.s1 { left:  6%;  top: 18%; width: 16px; height: 16px; animation-delay: 0s;     }
.sparkle.s2 { right: 8%;  top: 25%; width: 12px; height: 12px; animation-delay: 0.4s;   }
.sparkle.s3 { left:  14%; bottom: 18%; width: 14px; height: 14px; animation-delay: 0.9s; }
.sparkle.s4 { right: 16%; bottom: 22%; width: 18px; height: 18px; animation-delay: 1.4s; }
.sparkle.s5 { left:  46%; top: -6%;  width: 10px; height: 10px; animation-delay: 1.9s;   }
.sparkle.s6 { right: 30%; top: 60%;  width: 14px; height: 14px; animation-delay: 2.3s; color: var(--red); filter: drop-shadow(0 0 6px var(--red)) drop-shadow(0 0 12px rgba(225, 29, 72, 0.55)); }
.sparkle.s7 { left:  32%; top: 55%;  width: 9px;  height: 9px;  animation-delay: 2.7s; }

.hero-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--cyan-soft);
    color: var(--cyan);
    border: 1px solid var(--cyan-line);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-bottom: 28px;
    overflow: hidden;
    box-shadow: 0 0 30px -10px var(--cyan-glow);
    animation: fadeUp 0.7s var(--ease-out) both;
}

.hero-badge::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(6, 214, 255, 0.75),
        rgba(255, 255, 255, 0.55),
        transparent);
    animation: shimmer 3.4s 1.2s ease-in-out infinite;
}

@keyframes shimmer {
    0%   { left: -100%; }
    60%  { left: 160%; }
    100% { left: 160%; }
}

.badge-text { position: relative; z-index: 1; }
.badge-dot {
    position: relative;
    z-index: 1;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    animation: pulse-cyan 2s var(--ease) infinite;
}

@keyframes pulse-cyan {
    0%   { box-shadow: 0 0 0 0 rgba(6, 214, 255, 0.55), 0 0 8px var(--cyan); }
    70%  { box-shadow: 0 0 0 9px rgba(6, 214, 255, 0),  0 0 8px var(--cyan); }
    100% { box-shadow: 0 0 0 0 rgba(6, 214, 255, 0),    0 0 8px var(--cyan); }
}

.hero-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 22px;
    text-shadow: 0 2px 30px rgba(6, 214, 255, 0.15);
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: wordIn 0.85s var(--ease-out) forwards;
}

@keyframes wordIn {
    to { opacity: 1; transform: translateY(0); }
}

.hero-title .accent {
    color: var(--cyan);
    position: relative;
    font-size: 0.72em;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-top: 6px;
    text-shadow: 0 2px 24px rgba(6, 214, 255, 0.35);
}

.accent-underline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    width: 100%;
    height: 6px;
    color: var(--cyan);
    opacity: 0.75;
    pointer-events: none;
    filter: drop-shadow(0 0 6px var(--cyan));
}

.accent-underline path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawLine 1.4s 1.4s var(--ease-out) forwards;
}

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

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== Орнаментальный разделитель ===== */
.divider {
    display: flex;
    justify-content: center;
    padding: 24px 0 8px;
}
.divider svg {
    width: 200px;
    height: 16px;
    filter: drop-shadow(0 0 6px rgba(6, 214, 255, 0.4));
}
.divider svg g { stroke: var(--cyan); }
.divider svg circle { fill: var(--cyan); }

/* ===== Системы ===== */
.systems {
    padding: 24px 0 96px;
}

.section-head {
    text-align: center;
    margin-bottom: 40px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
    margin-bottom: 14px;
    position: relative;
    padding: 0 22px;
}
.section-eyebrow::before,
.section-eyebrow::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 14px;
    height: 1px;
    background: var(--cyan);
    opacity: 0.5;
}
.section-eyebrow::before { left: 0; }
.section-eyebrow::after  { right: 0; }

.section-title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 12px;
}

.section-desc {
    color: var(--muted);
    font-size: 1.02rem;
}

/* ===== Карточки (glassmorphism) ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    position: relative;
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 26px 24px;
    cursor: pointer;
    transition:
        transform 0.5s var(--ease-out),
        box-shadow 0.5s var(--ease-out),
        border-color 0.3s ease,
        background 0.4s ease;
    overflow: hidden;
    outline: none;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 100% 0%, var(--red-soft), transparent 60%),
        radial-gradient(circle at 0% 100%, var(--cyan-soft), transparent 55%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
    pointer-events: none;
}

.card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--cyan), var(--red));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s var(--ease-out);
    box-shadow: 0 0 12px var(--cyan-glow);
}

.card:hover,
.card:focus-visible {
    transform: translateY(-6px);
    background: var(--surface-2);
    box-shadow:
        var(--shadow-md),
        0 0 0 1px var(--cyan-line),
        0 0 40px -10px var(--cyan-glow);
    border-color: var(--cyan-line);
}

.card:hover::before,
.card:focus-visible::before { opacity: 1; }

.card:hover::after,
.card:focus-visible::after { transform: scaleY(1); }

.card-corner {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 14px;
    height: 14px;
    border-top: 1.5px solid var(--cyan-line);
    border-right: 1.5px solid var(--cyan-line);
    opacity: 0.6;
    transition: all 0.4s var(--ease-out);
}

/* ===== AI scan line ===== */
.card-scan {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(6, 214, 255, 0.9) 30%,
        rgba(6, 214, 255, 1) 50%,
        rgba(6, 214, 255, 0.9) 70%,
        transparent);
    box-shadow: 0 0 14px var(--cyan), 0 0 28px var(--cyan-glow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(0);
}

.card:hover .card-scan,
.card:focus-visible .card-scan {
    animation: cardScan 1.8s var(--ease-out) infinite;
}

@keyframes cardScan {
    0%   { top: 0%;   opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* На сенсорных устройствах (iOS Safari и др.) нет :hover —
   запускаем скан-линию постоянно, со смещением по карточкам */
@media (hover: none) {
    .card-scan {
        animation: cardScan 2.6s var(--ease-out) infinite;
    }
    .card:nth-child(2) .card-scan { animation-delay: 0.65s; }
    .card:nth-child(3) .card-scan { animation-delay: 1.3s;  }
    .card:nth-child(4) .card-scan { animation-delay: 1.95s; }
}

/* Светящийся «срез» — мягкий ореол ниже линии */
.card-scan::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 60px;
    background: linear-gradient(180deg, rgba(6, 214, 255, 0.18), transparent);
    pointer-events: none;
}

.card:hover .card-corner {
    width: 22px;
    height: 22px;
    border-color: var(--cyan);
    opacity: 1;
    box-shadow: 0 0 8px var(--cyan-glow);
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 22px;
}

.card-icon {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: var(--r-md);
    background: rgba(6, 214, 255, 0.06);
    border: 1px solid var(--cyan-line);
    color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-out);
}

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

.card-icon::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: radial-gradient(circle, var(--cyan-glow), transparent 70%);
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.45s var(--ease-out);
    z-index: -1;
}

.card:hover .card-icon {
    background: var(--cyan);
    border-color: var(--cyan);
    color: #06080F;
    transform: rotate(-4deg);
    box-shadow: 0 0 20px var(--cyan-glow);
}

.card:hover .card-icon::after { opacity: 1; }

.card-code {
    font-family: 'Manrope', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted-2);
    letter-spacing: 0.08em;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.card-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.card-desc {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    min-height: 48px;
}

.card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px dashed var(--border-strong);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cyan);
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s var(--ease-out), color 0.3s ease;
}

.card:hover .card-link { gap: 10px; color: var(--red); }
.card:hover .card-link svg { transform: translateX(2px); }

.card-link svg { transition: transform 0.3s var(--ease-out); }

/* ===== Модальное окно ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal[hidden] { display: none; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 4, 10, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fade 0.3s var(--ease-out);
}

.modal-content {
    position: relative;
    background: linear-gradient(180deg, #0F1726 0%, #0A0F1C 100%);
    border-radius: var(--r-xl);
    max-width: 780px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow:
        var(--shadow-lg),
        0 0 60px -10px var(--cyan-glow);
    animation: modalIn 0.4s var(--ease-out);
    border: 1px solid var(--cyan-line);
}

.modal-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--cyan), var(--red));
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    box-shadow: 0 0 18px var(--cyan-glow);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.modal-close:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    transform: rotate(90deg);
    box-shadow: 0 0 16px var(--red-glow);
}

.modal-body {
    padding: 36px 44px 44px;
}

.modal-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.modal-code {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: var(--cyan);
    padding: 4px 10px;
    background: var(--cyan-soft);
    border-radius: 6px;
    letter-spacing: 0.05em;
}

.modal-dot {
    width: 4px;
    height: 4px;
    background: var(--border-strong);
    border-radius: 50%;
}

.modal-body h2 {
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 26px;
    letter-spacing: -0.02em;
    padding-right: 40px;
}

.modal-body h3 {
    font-family: 'Manrope', sans-serif;
    color: var(--cyan);
    margin: 26px 0 12px;
    font-size: 1.05rem;
    font-weight: 600;
}

.modal-body p {
    color: var(--ink-2);
    margin-bottom: 14px;
    font-size: 0.98rem;
}

.modal-body ul {
    list-style: none;
    margin-bottom: 14px;
    padding: 0;
}

.modal-body li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: var(--ink-2);
    font-size: 0.96rem;
}

.modal-body a {
    color: var(--cyan);
    text-decoration: none;
    border-bottom: 1px solid var(--cyan-line);
    transition: border-color 0.2s ease, color 0.2s ease;
    font-weight: 500;
}

.modal-body a:hover {
    color: var(--red);
    border-bottom-color: var(--red);
}

.modal-body li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border: 1.5px solid var(--cyan);
    border-radius: 1px;
    transform: rotate(45deg);
    box-shadow: 0 0 6px var(--cyan-glow);
}

@keyframes fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== Подвал ===== */
.footer {
    margin-top: auto;
    background: rgba(6, 8, 15, 0.6);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 28px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
}

.footer-brand .brand-mark {
    width: 28px;
    height: 28px;
}

.footer-text {
    color: var(--muted);
    font-size: 0.85rem;
}

/* ===== Reveal on scroll ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */

/* Планшеты */
@media (max-width: 960px) {
    .container { padding: 0 24px; }
    .hero { padding: 56px 0 32px; }
    .hero-glow { width: 540px; height: 540px; }
    .hero-glow::before { width: 300px; height: 300px; }
    .hero-glow::after { width: 260px; height: 260px; }
    .cards { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .section-head { margin-bottom: 32px; }
    .systems { padding: 20px 0 64px; }
}

/* Мобильные */
@media (max-width: 640px) {
    .container { padding: 0 16px; }

    /* Меньше искр на мобильных, чтобы не загромождать */
    .sparkle.s5, .sparkle.s6, .sparkle.s7 { display: none; }
    .sparkle { transform: scale(0.7); }

    .hero { padding: 40px 0 24px; }
    .hero-mountains { height: 140px; }
    .hero-glow {
        width: 360px;
        height: 360px;
    }
    .hero-glow::before {
        left: 8%;
        width: 200px;
        height: 200px;
    }
    .hero-glow::after {
        right: 8%;
        width: 180px;
        height: 180px;
    }
    .hero-badge {
        font-size: 0.72rem;
        padding: 6px 12px;
        margin-bottom: 18px;
        max-width: 100%;
    }
    .hero-title {
        font-size: clamp(1.6rem, 8vw, 2rem);
        line-height: 1.2;
        margin-bottom: 14px;
    }
    .hero-title .accent {
        font-size: 0.78em;
        display: inline-block;
        margin-top: 4px;
    }
    .accent-underline { bottom: -4px; height: 4px; }

    /* Разделитель меньше */
    .divider { padding: 14px 0 4px; }
    .divider svg { width: 140px; height: 12px; }

    .systems { padding: 12px 0 40px; }
    .section-head { margin-bottom: 24px; }
    .section-eyebrow {
        font-size: 0.7rem;
        padding: 0 18px;
        letter-spacing: 0.14em;
    }
    .section-title { font-size: 1.35rem; margin-bottom: 6px; }
    .section-desc { font-size: 0.92rem; }

    /* Карточки — одна колонка */
    .cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .card { padding: 22px 20px 18px; }
    .card-head { margin-bottom: 16px; }
    .card-icon { width: 46px; height: 46px; }
    .card-icon svg { width: 24px; height: 24px; }
    .card-title { font-size: 1.2rem; }
    .card-desc {
        font-size: 0.9rem;
        margin-bottom: 16px;
        min-height: auto;
    }
    .card-foot { padding-top: 14px; }

    /* На сенсорных устройствах постоянно показываем акцентную полосу */
    .card::after { transform: scaleY(0.4); opacity: 0.6; }

    /* Модалка */
    .modal { padding: 12px; }
    .modal-content { max-height: 92vh; border-radius: 14px; }
    .modal-body { padding: 28px 20px 28px; }
    .modal-body h2 {
        font-size: 1.4rem;
        margin-bottom: 18px;
        padding-right: 36px;
    }
    .modal-body h3 { font-size: 1rem; margin: 20px 0 10px; }
    .modal-body p, .modal-body li { font-size: 0.92rem; }
    .modal-close { top: 12px; right: 12px; width: 32px; height: 32px; }
    .modal-close svg { width: 16px; height: 16px; }

    /* Меньше плотность фонового орнамента */
    .bg-ornament svg pattern#kg-pattern { transform: scale(0.7); }
}

/* Очень узкие экраны */
@media (max-width: 380px) {
    .hero-title { font-size: 1.5rem; }
    .hero-title .accent { font-size: 0.85em; }
    .card { padding: 20px 18px 16px; }
}

/* Уменьшить интенсивность анимаций для пользователей с настройкой prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.15s !important;
    }
    .hero-glow,
    .hero-glow::before,
    .hero-glow::after { animation: none; }
}
