:root {
    --bg: #060608;
    --accent: #FFD700;
    --accent-dim: rgba(255, 215, 0, 0.6);
    --accent-subtle: rgba(255, 215, 0, 0.08);
    --text: #f7f7f5;
    --text-muted: rgba(245, 245, 242, 0.68);
    /* Типографика: display / UI / mono — единая система */
    --font-display: system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
    --font-h: var(--font-display);
    --font-b: var(--font-ui);
    --font-a: var(--font-ui);
    --font-label: var(--font-mono);
    /* Первый экран (hero): Druk из css/druk.css + файлы в /fonts/ */
    --font-hero-display: 'Druk Condensed', 'Druk Wide Super', var(--font-display), sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.025);
    --glass-border: rgba(255, 215, 0, 0.08);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);

    --bp-mobile: 480px;
    --bp-tablet: 768px;
    --bp-laptop: 1024px;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --touch-min: 2.75rem;

    /* CTA palette: тёмный графит + фирменное золото */
    --cta-green-dark: #111827;
    --cta-green: #020617;
    --cta-green-light: #0f172a;
    --cta-green-glow: rgba(250, 204, 21, 0.55);
}

/* Акроним роли основателей (CEO / CSO) — фирменное золото */
.role-accent {
    color: var(--accent);
    font-weight: 700;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 200;
    padding: 0.65rem clamp(0.75rem, 4vw, 1.5rem);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.7);
    color: #e5e7eb;
    font-family: var(--font-a);
    animation: cookie-in 260ms var(--ease-out-expo);
}

.cookie-banner--hidden {
    animation: cookie-out 220ms ease-in forwards;
}

.cookie-banner__inner {
    max-width: 76rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.9rem 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner__text {
    flex: 1 1 14rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(226, 232, 240, 0.92);
}

.cookie-banner__text strong {
    display: block;
    font-family: var(--font-b);
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
    color: #f9fafb;
}

.cookie-banner__text a {
    color: #fde68a;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

.cookie-banner__text a:hover {
    color: #facc15;
}

.cookie-banner__btn {
    flex: 0 0 auto;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-b);
    color: #020617;
    background: linear-gradient(135deg, #facc15, #eab308);
    box-shadow: 0 4px 14px rgba(250, 204, 21, 0.35);
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cookie-banner__btn:hover,
.cookie-banner__btn:focus-visible {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(250, 204, 21, 0.45);
}

@media (max-width: 640px) {
    .cookie-banner__inner {
        align-items: flex-start;
    }
    .cookie-banner__btn {
        width: 100%;
        text-align: center;
    }
}

@keyframes cookie-in {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes cookie-out {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

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

html {
    overflow-x: hidden;
    color-scheme: dark;
    font-size: clamp(0.875rem, 0.8rem + 0.5vw, 1rem);
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(255, 215, 0, 0.25);
    color: #fff;
}

body {
    background: #040406;
    color: var(--text);
    font-family: var(--font-b);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Предотвращение горизонтального скролла */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

img.geo-mapchart-map {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.container {
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 clamp(var(--space-md), 5vw, 2.5rem);
}

/* ═══════════════════════════════════════════════════════
   SITE-WIDE GLASS — Content floats on a frosted glass layer
   ═══════════════════════════════════════════════════════ */

.site-glass-wrap {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
}

.site-glass-wrap > main {
    position: relative;
    z-index: 3;
}

/* Водяной знак по телу страницы (не футер): футер вынесен из main в index.html */
.site-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("../img/logo.svg") center 42% no-repeat;
    background-size: min(94vw, 760px);
    opacity: 0.055;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 768px) {
    .site-main::before {
        display: none;
    }
}

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

/* Touch targets: min 44x44px on mobile (WCAG 2.5.5) */
@media (max-width: 768px) {
    .nav-burger,
    .nav-cta-btn,
    .carousel-nav,
    .roadmap-node,
    .methodology-step-dots button,
    .methodology-step-arrow,
    .roadmap-nav-btn {
        min-height: var(--touch-min);
        min-width: var(--touch-min);
    }

    .nav-menu_mobile .nav-link {
        display: block;
        padding: var(--space-md) var(--space-lg);
        min-height: var(--touch-min);
    }
}

/* ═══════════════════════════════════════════════════════
   BACKGROUND SYSTEM — Premium animated ambient layers
   ═══════════════════════════════════════════════════════ */

.background-system {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    mix-blend-mode: screen;
    background: #000;
}

.bg-mesh-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.bg-noise-layer {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
    background-size: 256px 256px;
    opacity: 0.8;
    mix-blend-mode: overlay;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    will-change: transform, opacity;
}

.bg-glow--1 {
    width: clamp(500px, 55vw, 1000px);
    height: clamp(500px, 55vw, 1000px);
    top: -20%;
    left: -15%;
    background: radial-gradient(circle, rgba(255, 195, 0, 0.18) 0%, rgba(255, 170, 0, 0.07) 40%, transparent 70%);
    animation: glowDrift1 25s ease-in-out infinite;
}

.bg-glow--2 {
    width: clamp(400px, 45vw, 800px);
    height: clamp(400px, 45vw, 800px);
    bottom: -15%;
    right: -10%;
    background: radial-gradient(circle, rgba(60, 80, 180, 0.15) 0%, rgba(50, 60, 150, 0.05) 40%, transparent 70%);
    animation: glowDrift2 30s ease-in-out infinite;
}

.bg-glow--3 {
    width: clamp(350px, 40vw, 700px);
    height: clamp(350px, 40vw, 700px);
    top: 40%;
    right: 25%;
    background: radial-gradient(circle, rgba(255, 200, 50, 0.1) 0%, rgba(200, 160, 50, 0.04) 40%, transparent 70%);
    animation: glowDrift3 35s ease-in-out infinite;
}

@keyframes glowDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    25% { transform: translate(8vw, 5vh) scale(1.1); opacity: 1; }
    50% { transform: translate(3vw, 12vh) scale(0.95); opacity: 0.7; }
    75% { transform: translate(-5vw, 7vh) scale(1.05); opacity: 0.9; }
}

@keyframes glowDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    30% { transform: translate(-6vw, -8vh) scale(1.15); opacity: 0.9; }
    60% { transform: translate(-3vw, -3vh) scale(0.9); opacity: 0.6; }
    80% { transform: translate(4vw, -5vh) scale(1.05); opacity: 0.85; }
}

@keyframes glowDrift3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    20% { transform: translate(5vw, -6vh) scale(1.1); opacity: 0.8; }
    50% { transform: translate(-4vw, 4vh) scale(0.85); opacity: 0.5; }
    70% { transform: translate(2vw, 8vh) scale(1.15); opacity: 0.9; }
}

/* Архитектурная сетка: мелкий шаг + модуль 5×5, узлы на пересечениях */
.golden-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    --grid-cell: 48px;
    --grid-line: rgba(255, 215, 0, 0.055);
    --grid-line-major: rgba(255, 215, 0, 0.1);
    --grid-node: rgba(255, 215, 0, 0.07);
    --grid-module: calc(var(--grid-cell) * 5);
    background-color: transparent;
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to right, var(--grid-line-major) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line-major) 1px, transparent 1px),
        radial-gradient(circle at 0 0, var(--grid-node) 0 1px, transparent 2px);
    background-size:
        var(--grid-cell) var(--grid-cell),
        var(--grid-cell) var(--grid-cell),
        var(--grid-module) var(--grid-module),
        var(--grid-module) var(--grid-module),
        var(--grid-cell) var(--grid-cell);
    background-position:
        0 0,
        0 0,
        0 0,
        0 0,
        -0.5px -0.5px;
    animation: none;
    mask-image: radial-gradient(ellipse 96% 88% at 50% 44%, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.28) 58%, transparent 76%);
    -webkit-mask-image: radial-gradient(ellipse 96% 88% at 50% 44%, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.28) 58%, transparent 76%);
}

@keyframes panBG {
    from {
        background-position:
            0 0,
            0 0,
            0 0,
            0 0,
            -0.5px -0.5px;
    }
    to {
        background-position:
            var(--grid-cell) var(--grid-cell),
            var(--grid-cell) var(--grid-cell),
            var(--grid-module) var(--grid-module),
            var(--grid-module) var(--grid-module),
            calc(var(--grid-cell) - 0.5px) calc(var(--grid-cell) - 0.5px);
    }
}

@media (max-width: 768px) {
    .golden-grid {
        --grid-cell: 36px;
        animation-duration: 140s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .golden-grid {
        animation: none;
    }
}

.cursor-light {
    position: fixed;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle,
        rgba(255, 215, 0, 0.055) 0%,
        rgba(255, 215, 0, 0.025) 25%,
        rgba(255, 215, 0, 0.008) 45%,
        transparent 65%);
    pointer-events: none;
    z-index: 998;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

/* Burger menu toggle */
.nav-burger {
    display: none;
    width: 36px;
    height: 36px;
    -webkit-tap-highlight-color: transparent;
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.06);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    transition: all 0.3s ease;
    flex-direction: column;
}

.nav-burger:hover {
    border-color: rgba(255, 215, 0, 0.6);
    background: rgba(255, 215, 0, 0.1);
}

.nav-burger span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.9);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    border-radius: 2px;
}

.nav-burger.is-open span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
.nav-burger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-burger.is-open span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}

.nav-menu_mobile {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 60px;
    background: rgba(5, 5, 5, 0.97);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.12);
    padding: 20px 24px 28px;
    flex-direction: column;
    gap: 6px;
    z-index: 800;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-menu_mobile.is-open {
    display: flex;
    animation: mobileMenuIn 0.3s ease-out;
}

@keyframes mobileMenuIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-menu_mobile .nav-link {
    font-size: 0.82rem;
    padding: 14px 20px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.85);
    -webkit-tap-highlight-color: transparent;
}

.nav-menu_mobile .nav-link:hover,
.nav-menu_mobile .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-menu_mobile .nav-link--highlight {
    color: var(--accent);
    font-weight: 700;
}

.nav-menu_mobile .nav-link--highlight:hover,
.nav-menu_mobile .nav-link--highlight.active {
    color: #fff;
    background: rgba(255, 215, 0, 0.2);
}

.nav-menu_mobile .nav-link--phone {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent);
    font-weight: 600;
}
.nav-menu_mobile .nav-link--phone:hover,
.nav-menu_mobile .nav-link--phone.active {
    color: #fff;
    background: rgba(255, 215, 0, 0.15);
}

/* Общие Keyframes анимаций */
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeInRight { to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes revealBlur {
    0% { opacity: 0; filter: blur(10px); transform: translateY(10px); }
    100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}
@keyframes flash {
    0% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

body.initial-load::before {
    display: none;
}

html {
    scroll-behavior: smooth;
}

body.menu-open {
    overflow: hidden;
}

/* Строгое подчёркивание слова «управляемую»: линия + два круга (в духе дизайна) */
.accent-word-line {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 102%;
    height: 24px;
    pointer-events: none;
    color: var(--accent);
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.35));
}

.accent-word-line-path {
    stroke-dasharray: 352;
    stroke-dashoffset: 352;
    animation: drawAccentLine 1s ease-out 1.5s forwards;
}

.accent-word-line-dot {
    opacity: 0;
    animation: accentDotIn 0.4s ease-out forwards;
}

.accent-word-line-dot--left {
    animation-delay: 2s;
}

.accent-word-line-dot--right {
    animation-delay: 2.15s;
}

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

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

.accent-word {
    position: relative;
    display: inline-block;
}

@media (max-width: 768px) {
    .accent-word-line {
        bottom: -4px;
        height: 20px;
    }
}

/* Founder card transitions */
.founder-card {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.founder-card .img-frame img {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.metric-footer {
    font-size: 0.6rem;
    color: rgba(255, 215, 0, 0.4);
    font-family: var(--font-mono);
    margin-top: 8px;
    letter-spacing: 0.5px;
}

/* Smooth scroll-triggered reveal animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .golden-grid {
        animation: none !important;
    }

    .bg-glow {
        animation: none !important;
    }

    .bg-mesh-canvas {
        display: none;
    }

    .founder-card {
        transform: none !important;
    }

    /* Герой: без пульсации, но сохраняем читаемое неоновое свечение */
    .hero-cta-block .btn-main {
        animation: none !important;
        box-shadow:
            0 0 0 1px rgba(255, 248, 140, 0.98),
            0 0 18px rgba(255, 240, 100, 0.75),
            0 0 36px rgba(255, 220, 50, 0.42),
            0 18px 42px -18px rgba(0, 0, 0, 0.95) !important;
    }

    .expert-usp-section .expert-usp-cta,
    .prob-ref .prob-ref-cta .btn-main {
        animation: none !important;
        box-shadow:
            0 0 0 1px rgba(255, 248, 140, 0.98),
            0 0 18px rgba(255, 240, 100, 0.75),
            0 0 36px rgba(255, 220, 50, 0.42),
            0 18px 42px -18px rgba(0, 0, 0, 0.95) !important;
    }

    .expert-usp-section .expert-usp-cta::after,
    .prob-ref .prob-ref-cta .btn-main::after {
        animation: none !important;
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════════
   UNIFIED CTA BUTTON — emerald glow for all actions
   ═══════════════════════════════════════════════════════ */
@keyframes btnPremiumShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes btnShimmerPremium {
    0% { background-position: 150% 0; }
    60%, 100% { background-position: -50% 0; }
}

/* Мягкая периодическая подсветка кнопок (только в обычном состоянии) */
@keyframes btnSoftGlow {
    0%, 65% {
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px -6px rgba(0, 0, 0, 0.08);
        border-color: rgba(34, 197, 94, 0.45);
    }
    78% {
        box-shadow:
            0 1px 2px rgba(0, 0, 0, 0.04),
            0 4px 16px -6px rgba(0, 0, 0, 0.08),
            0 0 24px -6px var(--cta-green-glow);
        border-color: rgba(34, 197, 94, 0.8);
    }
    91%, 100% {
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px -6px rgba(0, 0, 0, 0.08);
        border-color: rgba(34, 197, 94, 0.45);
    }
}

/* Кнопки форм: опрятный премиальный вид */
.btn-main,
.nav-cta-btn,
.expert-usp-cta,
.ready-submit,
.diagnostic-submit,
.form-overlay-submit {
    background:
        linear-gradient(135deg, var(--cta-green-dark), var(--cta-green));
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    font-family: var(--font-h), system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 15px 32px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.9);
    border-radius: 999px;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    text-shadow:
        0 0 4px rgba(0, 0, 0, 0.65),
        0 1px 3px rgba(0, 0, 0, 0.9);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.18),
        0 14px 32px -14px rgba(0, 0, 0, 0.9);
    background-size: 200% 100%;
    background-position: 0% 50%;
    animation: btnPremiumShift 7s ease-in-out infinite;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease, border-color 0.3s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-main:hover,
.nav-cta-btn:hover,
.expert-usp-cta:hover,
.ready-submit:hover,
.diagnostic-submit:hover,
.form-overlay-submit:hover {
    border-color: rgba(255, 215, 0, 0.85);
    color: #ffffff;
}

/* Лёгкий шиммер только при наведении */
.btn-main::before,
.nav-cta-btn::before,
.expert-usp-cta::before,
.ready-submit::before,
.diagnostic-submit::before,
.form-overlay-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%, transparent 40%,
        rgba(255, 255, 255, 0.12) 50%,
        transparent 60%, transparent 100%
    );
    background-size: 200% 100%;
    background-position: 150% 0;
    animation: btnShimmerPremium 3.5s ease-in-out infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.btn-main:hover::before,
.nav-cta-btn:hover::before,
.expert-usp-cta:hover::before,
.ready-submit:hover::before,
.diagnostic-submit:hover::before,
.form-overlay-submit:hover::before {
    opacity: 1;
}

.btn-main:hover,
.nav-cta-btn:hover,
.expert-usp-cta:hover,
.ready-submit:hover,
.diagnostic-submit:hover,
.form-overlay-submit:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(255, 215, 0, 0.9),
        0 0 28px rgba(250, 204, 21, 0.55),
        0 18px 40px -12px rgba(0, 0, 0, 0.95),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Кнопка «Оставить заявку» всегда светится как в hover-состоянии */
.diagnostic-submit {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(255, 215, 0, 0.9),
        0 0 28px rgba(250, 204, 21, 0.55),
        0 18px 40px -12px rgba(0, 0, 0, 0.95),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.diagnostic-submit::before {
    opacity: 1;
}

.diagnostic-submit:hover,
.diagnostic-submit:active {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(255, 215, 0, 0.9),
        0 0 28px rgba(250, 204, 21, 0.55),
        0 18px 40px -12px rgba(0, 0, 0, 0.95),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-main:active,
.nav-cta-btn:active,
.expert-usp-cta:active,
.ready-submit:active,
.diagnostic-submit:active,
.form-overlay-submit:active {
    transform: translateY(-1px);
}

.btn-main:focus-visible,
.nav-cta-btn:focus-visible,
.expert-usp-cta:focus-visible,
.ready-submit:focus-visible,
.diagnostic-submit:focus-visible,
.form-overlay-submit:focus-visible {
    outline: 2px solid rgba(255, 215, 0, 0.9);
    outline-offset: 2px;
}

/* На мобильных делаем обводку CTA более яркой, чтобы она не терялась на экране */
@media (max-width: 768px) {
    .btn-main,
    .expert-usp-cta,
    .ready-submit,
    .diagnostic-submit,
    .form-overlay-submit {
        border-color: rgba(255, 215, 0, 0.9);
    }
}

/* Size overrides for context-specific buttons */
.nav-cta-btn {
    padding: 12px 22px;
    font-size: clamp(0.72rem, 0.85vw, 0.8rem);
    letter-spacing: 0.11em;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    white-space: nowrap;
    border-radius: 8px;
}

.ready-submit,
.form-overlay-submit {
    width: 100%;
    text-align: center;
}

.expert-usp-cta {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════
   CONTEXTUAL ENHANCEMENTS — hero / nav / expert CTAs
   ═══════════════════════════════════════════════════════ */

@keyframes heroCtaNeonPulse {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(255, 250, 140, 0.98),
            0 0 14px rgba(255, 248, 120, 0.88),
            0 0 32px rgba(255, 235, 59, 0.58),
            0 0 52px rgba(255, 215, 0, 0.38),
            0 0 72px rgba(255, 200, 0, 0.18),
            0 18px 42px -18px rgba(0, 0, 0, 0.95);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(255, 255, 200, 1),
            0 0 22px rgba(255, 255, 160, 0.98),
            0 0 44px rgba(255, 245, 80, 0.72),
            0 0 68px rgba(255, 230, 50, 0.5),
            0 0 92px rgba(255, 210, 0, 0.28),
            0 22px 48px -16px rgba(0, 0, 0, 0.97);
    }
}

/* Hero: главная кнопка должна выбиватьcя из баннерной слепоты */
.hero-cta-block .btn-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    border-color: rgba(255, 248, 120, 0.98);
    box-shadow:
        0 0 0 1px rgba(255, 250, 140, 0.98),
        0 0 14px rgba(255, 248, 120, 0.88),
        0 0 32px rgba(255, 235, 59, 0.58),
        0 0 52px rgba(255, 215, 0, 0.38),
        0 0 72px rgba(255, 200, 0, 0.18),
        0 18px 42px -18px rgba(0, 0, 0, 0.95);
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, #020617, #111827, #020617);
    animation:
        btnPremiumShift 7s ease-in-out infinite,
        heroCtaNeonPulse 2.8s ease-in-out infinite;
}

@keyframes heroCtaSweep {
    0% {
        transform: translateX(-130%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    60% {
        transform: translateX(130%);
        opacity: 1;
    }
    100% {
        transform: translateX(160%);
        opacity: 0;
    }
}

.hero-cta-block .btn-main::after {
    content: "";
    position: absolute;
    inset: -20%;
    background: linear-gradient(
        120deg,
        transparent 0,
        rgba(250, 204, 21, 0.0) 30%,
        rgba(255, 255, 255, 0.38) 50%,
        rgba(250, 204, 21, 0.0) 70%,
        transparent 100%
    );
    mix-blend-mode: screen;
    pointer-events: none;
    animation: heroCtaSweep 2.6s ease-in-out infinite;
}

.hero-cta-block .btn-main:hover::after {
    animation-duration: 1.6s;
}

.hero-cta-block .btn-main:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 220, 1);
    /* Перебиваем общий .btn-main:hover — свечение задаёт heroCtaNeonPulse */
    box-shadow:
        0 0 0 1px rgba(255, 250, 140, 0.98),
        0 0 14px rgba(255, 248, 120, 0.88),
        0 0 32px rgba(255, 235, 59, 0.58),
        0 0 52px rgba(255, 215, 0, 0.38),
        0 0 72px rgba(255, 200, 0, 0.18),
        0 18px 42px -18px rgba(0, 0, 0, 0.95);
    animation:
        btnPremiumShift 7s ease-in-out infinite,
        heroCtaNeonPulse 1.35s ease-in-out infinite;
}

/* Экспертный блок и блок проблем: та же неоновая кнопка, что на первом экране */
.expert-usp-section .expert-usp-cta,
.prob-ref .prob-ref-cta .btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    border-color: rgba(255, 248, 140, 0.98);
    box-shadow:
        0 0 0 1px rgba(255, 250, 140, 0.98),
        0 0 14px rgba(255, 248, 120, 0.88),
        0 0 32px rgba(255, 235, 59, 0.58),
        0 0 52px rgba(255, 215, 0, 0.38),
        0 0 72px rgba(255, 200, 0, 0.18),
        0 18px 42px -18px rgba(0, 0, 0, 0.95);
    background:
        linear-gradient(135deg, #020617, #111827, #020617);
    animation:
        btnPremiumShift 7s ease-in-out infinite,
        heroCtaNeonPulse 2.8s ease-in-out infinite;
}

.expert-usp-section .expert-usp-cta::after,
.prob-ref .prob-ref-cta .btn-main::after {
    content: '';
    position: absolute;
    inset: -20%;
    background: linear-gradient(
        120deg,
        transparent 0,
        rgba(250, 204, 21, 0) 30%,
        rgba(255, 255, 255, 0.38) 50%,
        rgba(250, 204, 21, 0) 70%,
        transparent 100%
    );
    mix-blend-mode: screen;
    pointer-events: none;
    border-radius: inherit;
    animation: heroCtaSweep 2.6s ease-in-out infinite;
}

.expert-usp-section .expert-usp-cta:hover::after,
.expert-usp-section .expert-usp-cta:focus-visible::after,
.prob-ref .prob-ref-cta .btn-main:hover::after,
.prob-ref .prob-ref-cta .btn-main:focus-visible::after {
    animation-duration: 1.6s;
}

.expert-usp-section .expert-usp-cta:hover,
.expert-usp-section .expert-usp-cta:focus-visible,
.prob-ref .prob-ref-cta .btn-main:hover,
.prob-ref .prob-ref-cta .btn-main:focus-visible {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 220, 1);
    box-shadow:
        0 0 0 1px rgba(255, 250, 140, 0.98),
        0 0 14px rgba(255, 248, 120, 0.88),
        0 0 32px rgba(255, 235, 59, 0.58),
        0 0 52px rgba(255, 215, 0, 0.38),
        0 0 72px rgba(255, 200, 0, 0.18),
        0 18px 42px -18px rgba(0, 0, 0, 0.95);
    animation:
        btnPremiumShift 7s ease-in-out infinite,
        heroCtaNeonPulse 1.35s ease-in-out infinite;
}

/* Навигационный CTA — более контрастный, но без крика */
.nav-cta-btn {
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 215, 0, 0.32) 0, transparent 55%),
        linear-gradient(135deg, #020617, #020617);
    color: #ffffff;
    border-color: rgba(255, 215, 0, 0.9);
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(0, 0, 0, 0.9);
}

.nav-cta-btn:hover {
    color: #ffffff;
}

/* Экспертный блок: мягкая капсула с иконкой движения */
.expert-usp-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-inline: 32px;
    border-radius: 999px;
}

/* Остальные CTA-кнопки форм — тоже капсулы, чтобы выбиваться из «баннерного шума» */
.ready-submit,
.diagnostic-submit,
.form-overlay-submit {
    border-radius: 999px;
    padding-inline: 28px;
}