/* === COSMIC THEME — Компания "Контроль" 3D === */
/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%; height: 100%;
    overflow: hidden;
    background: #030014;
    font-family: 'Outfit', 'Roboto', sans-serif;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

/* === SCENE CONTAINER === */
#scene-container {
    position: fixed; inset: 0;
    z-index: 0;
}
#scene-container canvas {
    display: block;
}

/* === NAVIGATION === */
#cosmo-nav {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 100;
    background: rgba(3, 0, 20, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.12);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center;
    padding: 0 20px; height: 56px;
}
.nav-logo {
    display: flex; align-items: center;
    text-decoration: none; margin-right: 20px; flex-shrink: 0;
    cursor: pointer;
}
.nav-logo img {
    height: 44px; width: auto;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.3));
    transition: filter 0.3s ease, transform 0.3s ease;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 10px;
    padding: 5px;
}
.nav-logo:hover img {
    animation: logoGlow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.8));
    transform: scale(1.08);
}
@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.3)); }
    33% { filter: drop-shadow(0 0 16px rgba(0, 229, 255, 0.6)); }
    66% { filter: drop-shadow(0 0 12px rgba(124, 77, 255, 0.5)); }
}

.nav-links {
    display: flex; align-items: center; gap: 4px;
    margin-left: auto; margin-right: 12px;
}
.nav-link {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 18px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative; white-space: nowrap;
}
.nav-link svg { flex-shrink: 0; transition: all 0.3s ease; }
.nav-link:hover { color: #fff; background: rgba(0, 229, 255, 0.08); }
.nav-link:hover svg { filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.5)); }
.nav-link.active { color: #00e5ff; background: rgba(0, 229, 255, 0.06); }
.nav-link.active::after {
    content: ''; position: absolute; bottom: 0; left: 20%; width: 60%; height: 2px;
    background: linear-gradient(90deg, #00e5ff, #7c4dff);
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

/* === PLAYER SLOT (top bar) === */
#nav-player-slot { flex-shrink: 0; }

/* === HYPERJUMP FLASH === */
#hyperjump-flash {
    position: fixed; inset: 0;
    background: radial-gradient(ellipse at center,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(0, 229, 255, 0.4) 40%,
        rgba(124, 77, 255, 0.2) 60%,
        transparent 80%);
    opacity: 0; z-index: 50;
    pointer-events: none;
}

/* === SECTION DOTS (right side) === */
.section-dots {
    position: fixed; right: 24px; top: 50%;
    transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 18px;
    z-index: 99;
}
.section-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}
.section-dot.active {
    background: #00e5ff; border-color: #00e5ff;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
    transform: scale(1.4);
}
.section-dot:hover { background: rgba(0, 229, 255, 0.5); border-color: rgba(0, 229, 255, 0.5); }
.section-dot .dot-label {
    position: absolute; right: 22px; top: 50%;
    transform: translateY(-50%);
    white-space: nowrap; font-size: 11px; font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    opacity: 0; transition: opacity 0.3s ease;
    pointer-events: none; letter-spacing: 0.5px;
}
.section-dot:hover .dot-label { opacity: 1; }

/* === SCROLL HINT === */
#scroll-hint {
    position: fixed; bottom: 40px; left: 50%;
    transform: translateX(-50%);
    z-index: 80; text-align: center;
    animation: hintFade 3s ease-in-out infinite;
    pointer-events: none;
}
.scroll-hint-text {
    font-size: 13px; color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 8px;
}
.scroll-hint-arrow {
    animation: hintBounce 2s ease-in-out infinite;
    color: rgba(0, 229, 255, 0.5);
}
@keyframes hintBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}
@keyframes hintFade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* === 3D CONTENT PANELS === */
.cosmo-panel {
    background: rgba(8, 12, 35, 0.92);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 24px;
    padding: 40px;
    color: #fff;
    box-shadow:
        0 0 50px rgba(0, 229, 255, 0.04),
        0 0 100px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    width: 480px;
    pointer-events: auto;
    cursor: default;
}
.cosmo-panel:hover {
    border-color: rgba(0, 229, 255, 0.35);
    box-shadow:
        0 0 80px rgba(0, 229, 255, 0.08),
        0 0 120px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cosmo-panel h2 {
    font-size: 26px; font-weight: 800; margin-bottom: 16px;
    background: linear-gradient(135deg, #00e5ff 0%, #7c4dff 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}
.cosmo-panel h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: #fff; }
.cosmo-panel p {
    font-size: 14px; line-height: 1.75;
    color: rgba(255, 255, 255, 0.7); margin-bottom: 12px;
}
.cosmo-panel .panel-divider {
    width: 60px; height: 2px; margin: 16px 0;
    background: linear-gradient(90deg, #00e5ff, #7c4dff);
    border-radius: 1px;
}
.cosmo-panel ul {
    padding-left: 20px; margin: 8px 0;
}
.cosmo-panel li {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px; line-height: 1.6;
    margin-bottom: 3px;
    list-style: none;
    position: relative;
    padding-left: 14px;
}
.cosmo-panel li::before {
    content: ''; position: absolute; left: 0; top: 8px;
    width: 5px; height: 5px; border-radius: 50%;
    background: #00e5ff;
    box-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
}
.cosmo-panel strong {
    color: #00e5ff;
}

/* === TEXT SCROLL & TOGGLE === */
.panel-text-scroll {
    max-height: 140px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
}
.panel-text-scroll::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 40px;
    background: linear-gradient(transparent, rgba(10, 15, 30, 0.95));
    pointer-events: none;
    transition: opacity 0.3s;
}
.panel-text-scroll.expanded {
    max-height: 400px;
    overflow-y: auto;
}
.panel-text-scroll.expanded::after {
    opacity: 0;
}
.panel-text-scroll::-webkit-scrollbar {
    width: 4px;
}
.panel-text-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
}
.panel-text-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.3);
    border-radius: 2px;
}
.panel-text-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 229, 255, 0.6);
}
.panel-toggle {
    text-align: center;
    color: #00e5ff;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 0 4px;
    transition: color 0.2s;
    user-select: none;
}
.panel-toggle:hover {
    color: #7c4dff;
    text-shadow: 0 0 8px rgba(124, 77, 255, 0.4);
}

/* === CAROUSEL === */
.cosmo-carousel {
    position: relative;
    width: 100%; height: 160px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 229, 255, 0.1);
}
.carousel-track { position: relative; width: 100%; height: 100%; }
.carousel-slide {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.carousel-slide.active { opacity: 1; }
.carousel-dots {
    position: absolute; bottom: 8px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 2;
}
.c-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.c-dot.active {
    background: #00e5ff;
    border-color: #00e5ff;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
    transform: scale(1.3);
}
.c-dot:hover { background: rgba(0, 229, 255, 0.5); }

/* === HERO PANEL === */
.cosmo-panel--hero {
    width: 680px; text-align: center;
    padding: 60px 50px;
    background: rgba(8, 12, 35, 0.65);
}
.hero-logo {
    width: 520px; height: auto;
    margin: 0 auto 24px;
    display: block;
    padding: 16px 24px;
    background: rgba(255,255,255,0.92);
    border-radius: 16px;
    animation: heroFloat 4s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.15), 0 8px 30px rgba(0, 0, 0, 0.3);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-12px) rotate(1deg); }
}
.cosmo-panel--hero h1 {
    font-size: 44px; font-weight: 900; margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #00e5ff 60%, #7c4dff 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}
.hero-subtitle {
    font-size: 17px; color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px; letter-spacing: 0.3px;
}
.hero-phone {
    font-size: 24px; font-weight: 700;
    color: #00e5ff; letter-spacing: 1.5px;
    margin-bottom: 28px;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

/* === BUTTONS === */
.cosmo-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 30px;
    background: linear-gradient(135deg, #00e5ff 0%, #7c4dff 100%);
    color: #fff; border: none; border-radius: 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px; font-weight: 700;
    cursor: pointer; text-decoration: none;
    text-transform: uppercase; letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.25);
}
.cosmo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.4);
}
.cosmo-btn:active { transform: translateY(-1px); }
.cosmo-btn--outline {
    background: transparent;
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: #00e5ff;
    box-shadow: none;
}
.cosmo-btn--outline:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: #00e5ff;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.2);
}
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* === NUMBERS GRID === */
.cosmo-panel--wide { width: 620px; }
.numbers-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.number-card {
    text-align: center; padding: 24px 16px;
    background: rgba(0, 229, 255, 0.04);
    border-radius: 16px;
    border: 1px solid rgba(0, 229, 255, 0.08);
    transition: all 0.3s ease;
}
.number-card:hover {
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.2);
    transform: translateY(-4px);
}
.number-value {
    font-size: 38px; font-weight: 900;
    background: linear-gradient(135deg, #00e5ff, #7c4dff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 6px;
}
.number-label { font-size: 13px; color: rgba(255, 255, 255, 0.5); font-weight: 500; }

/* === ABOUT === */
.about-content { display: flex; gap: 24px; align-items: flex-start; }
.about-img {
    width: 240px; height: 240px; border-radius: 20px;
    object-fit: cover; flex-shrink: 0;
    border: 2px solid rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.1);
}
.about-text { flex: 1; }
.cosmo-panel--wide .panel-divider { margin: 8px 0; }
.cosmo-panel--wide h2 { margin-bottom: 8px; }
.cosmo-panel--wide { width: 780px; padding: 36px 40px; }
.about-text .panel-text-scroll { max-height: 350px; }

/* === ADVANTAGES === */
.cosmo-panel--xl { width: 700px; }
.adv-grid {
    display: flex; flex-wrap: wrap; gap: 14px;
    justify-content: center;
}
.adv-card {
    flex: 0 1 140px; text-align: center;
    padding: 20px 12px;
    background: rgba(0, 229, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(0, 229, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.adv-card:hover {
    transform: translateY(-8px) scale(1.03);
    background: rgba(0, 229, 255, 0.07);
    border-color: rgba(0, 229, 255, 0.25);
    box-shadow: 0 12px 30px rgba(0, 229, 255, 0.1);
}
.adv-icon {
    width: 44px; height: 44px; margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(124, 77, 255, 0.08));
    border: 1px solid rgba(0, 229, 255, 0.2);
    transition: all 0.4s ease;
}
.adv-card:hover .adv-icon {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(124, 77, 255, 0.15));
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
    transform: scale(1.1);
}
.adv-icon svg { width: 22px; height: 22px; color: #00e5ff; stroke: #00e5ff; }
.adv-title { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.8); line-height: 1.4; }

/* === CONTACT FORM === */
.cosmo-form { display: flex; flex-direction: column; gap: 14px; }
.cosmo-input {
    padding: 13px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 12px;
    color: #fff; font-family: 'Outfit', sans-serif;
    font-size: 15px; outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.cosmo-input::placeholder { color: rgba(255, 255, 255, 0.3); }
.cosmo-input:focus {
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}
.cosmo-textarea {
    padding: 13px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 12px;
    color: #fff; font-family: 'Outfit', sans-serif;
    font-size: 15px; outline: none; resize: vertical; min-height: 80px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.cosmo-textarea:focus {
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}
.consent-row {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 12px; color: rgba(255, 255, 255, 0.5);
}
.consent-row input[type="checkbox"] {
    width: 16px; height: 16px; margin-top: 2px; cursor: pointer; flex-shrink: 0;
    accent-color: #00e5ff;
}
.consent-row a { color: #00e5ff; text-decoration: none; }
.consent-row a:hover { text-decoration: underline; }
.form-status { text-align: center; font-size: 14px; min-height: 20px; }

/* === MOBILE === */
@media (max-width: 768px) {
    .nav-link span { display: none; }
    .nav-links { gap: 2px; }
    .nav-link { padding: 10px; }
    .cosmo-panel { width: 320px; padding: 28px 20px; border-radius: 18px; }
    .cosmo-panel--hero { width: 340px; padding: 36px 24px; }
    .cosmo-panel--hero h1 { font-size: 28px; }
    .hero-phone { font-size: 20px; }
    .cosmo-panel--wide { width: 340px; }
    .cosmo-panel--xl { width: 340px; }
    .numbers-grid { gap: 10px; }
    .number-value { font-size: 28px; }
    .about-content { flex-direction: column; }
    .about-img { width: 120px; height: 120px; }
    .adv-grid { gap: 10px; }
    .adv-card { flex: 0 1 calc(50% - 10px); }
    .section-dots { right: 12px; gap: 14px; }
    .section-dot { width: 8px; height: 8px; }
    #scroll-hint { bottom: 24px; }
}
@media (max-width: 420px) {
    .cosmo-panel { width: 290px; padding: 24px 16px; }
    .cosmo-panel--hero { width: 300px; }
    .cosmo-panel--wide { width: 300px; }
    .cosmo-panel--xl { width: 300px; }
    .adv-card { flex: 0 1 100%; }
}

/* === КОСМИЧЕСКИЙ КАТАЛОГ === */
#catalog-container {
    position: fixed;
    top: 60px; left: 0; right: 0; bottom: 0;
    z-index: 90;
    background: transparent;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transform-origin: center center;
    will-change: transform, opacity;
}
#catalog-container::-webkit-scrollbar { display: none; }

/* Кнопка «Назад» — космический WOW-стиль */
.cosmo-back-btn {
    position: sticky;
    top: 8px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 0 20px;
    padding: 12px 28px 12px 20px;
    background: rgba(5, 8, 30, 0.85);
    backdrop-filter: blur(16px);
    border: 2px solid transparent;
    border-radius: 50px;
    color: #00e5ff;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow:
        0 0 20px rgba(0, 229, 255, 0.2),
        0 0 50px rgba(0, 229, 255, 0.08),
        inset 0 0 15px rgba(0, 229, 255, 0.05);
    background-image: linear-gradient(rgba(5,8,30,0.85), rgba(5,8,30,0.85)),
                      linear-gradient(135deg, #00e5ff, #7c4dff, #00e5ff);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    animation: backBtnGlow 2.5s ease-in-out infinite;
}
.cosmo-back-btn svg {
    width: 22px;
    height: 22px;
    animation: backArrowBounce 2s ease-in-out infinite;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.6));
}
.cosmo-back-btn:hover {
    background-image: linear-gradient(rgba(0,229,255,0.1), rgba(124,77,255,0.1)),
                      linear-gradient(135deg, #00e5ff, #b388ff, #00e5ff);
    color: #fff;
    box-shadow:
        0 0 25px rgba(0, 229, 255, 0.35),
        0 0 60px rgba(124, 77, 255, 0.15),
        inset 0 0 20px rgba(0, 229, 255, 0.08);
    transform: translateX(-4px) scale(1.05);
}
.cosmo-back-btn:active {
    transform: translateX(-8px) scale(0.97);
}
@keyframes backArrowBounce {
    0%, 100% { transform: translateX(0); }
    30% { transform: translateX(-6px); }
    50% { transform: translateX(0); }
    70% { transform: translateX(-3px); }
}
@keyframes backBtnGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(0,229,255,0.15), 0 0 40px rgba(0,229,255,0.05); }
    50% { box-shadow: 0 0 25px rgba(0,229,255,0.3), 0 0 60px rgba(124,77,255,0.1); }
}
@keyframes catFadeIn {
    from { opacity: 0; transform: scale(1.03); }
    to { opacity: 1; transform: scale(1); }
}
/* (top-bar удалён) */
#catalog-container .catalog-page {
    padding: 12px 30px 40px;
    background: transparent;
    max-width: 1200px;
    margin: 0 auto;
    /* Переопределяем ВСЕ CSS-переменные каталога для тёмной темы */
    --cat-bg: transparent;
    --cat-card-bg: rgba(8, 12, 35, 0.7);
    --cat-border: rgba(0, 229, 255, 0.12);
    --cat-text: #fff;
    --cat-text2: rgba(255, 255, 255, 0.5);
    --cat-accent: #00e5ff;
    --cat-accent-hover: #7c4dff;
    --cat-radius: 12px;
    --cat-shadow: 0 2px 8px rgba(0, 229, 255, 0.06);
    --cat-shadow-hover: 0 8px 24px rgba(0, 229, 255, 0.12);
    color: #fff;
}

/* Каталог — космические переопределения */
#catalog-container .cat-breadcrumbs {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(5, 8, 22, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 30px 8px;
    margin: 0 -30px;
}
#catalog-container .cat-title {
    position: sticky;
    top: 30px;
    z-index: 9;
    padding: 5px 30px 20px;
    margin: 0 -30px 30px;
    color: #fff;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}
#catalog-container .cat-title::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 22, 0.95);
    backdrop-filter: blur(10px);
    z-index: -1;
}
#catalog-container .cat-loading {
    color: rgba(255,255,255,0.5); background: transparent;
}
#catalog-container .cat-spinner {
    border-color: rgba(0,229,255,0.15); border-top-color: #00e5ff;
}
#catalog-container .cat-card {
    background: rgba(8, 12, 35, 0.7);
    border: 1px solid rgba(0, 229, 255, 0.12);
    border-radius: 16px;
    transition: all 0.3s ease;
}
#catalog-container .cat-card:hover {
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.1);
    transform: translateY(-4px);
}
#catalog-container .cat-card-name { color: #fff; font-weight: 700; }
#catalog-container .cat-card-count { color: rgba(0, 229, 255, 0.7); }

#catalog-container .cat-product-card {
    background: rgba(8, 12, 35, 0.7);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}
#catalog-container .cat-product-card:hover {
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.08);
}
#catalog-container .cat-product-name { color: #fff; }
#catalog-container .cat-product-art { color: rgba(255,255,255,0.5); }
#catalog-container .cat-product-price { color: #00e5ff; font-weight: 800; }
#catalog-container .cat-product-bottom { background: transparent; }

#catalog-container .cat-cart-btn,
#catalog-container .cat-detail-cart-btn {
    background: linear-gradient(135deg, #00e5ff, #7c4dff);
    border: none; color: #fff; border-radius: 10px;
}
#catalog-container .cat-cart-btn.in-cart,
#catalog-container .cat-detail-cart-btn.in-cart {
    background: linear-gradient(135deg, #7c4dff, #b388ff);
}
#catalog-container .cat-qty-arrow {
    background: rgba(0,229,255,0.1);
    border: 1px solid rgba(0,229,255,0.2);
    color: #00e5ff; border-radius: 8px;
}
#catalog-container .cat-qty-input {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(0,229,255,0.2);
    color: #fff; border-radius: 8px;
}
#catalog-container .cat-sort-btn {
    background: rgba(0,229,255,0.06);
    border: 1px solid rgba(0,229,255,0.15);
    color: rgba(255,255,255,0.7);
    border-radius: 10px;
}
#catalog-container .cat-sort-btn.is-active,
#catalog-container .cat-sort-btn:hover {
    background: rgba(0,229,255,0.15);
    border-color: #00e5ff; color: #00e5ff;
}
#catalog-container .cat-filters {
    background: rgba(8,12,35,0.5);
    border: 1px solid rgba(0,229,255,0.1);
    border-radius: 16px;
}
#catalog-container .cat-filter-title { color: #00e5ff; }
#catalog-container .cat-filter-body label { color: rgba(255,255,255,0.7); }
#catalog-container .cat-price-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,229,255,0.2);
    color: #fff; border-radius: 8px;
}
#catalog-container .cat-breadcrumbs { color: rgba(255,255,255,0.4); }
#catalog-container .cat-breadcrumbs a { color: #00e5ff; }
#catalog-container .cat-breadcrumbs strong { color: #fff; }

#catalog-container .cat-detail {
    background: rgba(8,12,35,0.6);
    border: 1px solid rgba(0,229,255,0.12);
    border-radius: 16px;
}
#catalog-container .cat-detail-price { color: #00e5ff; }
#catalog-container .cat-detail-art { color: rgba(255,255,255,0.6); }
#catalog-container .cat-params-table td { color: rgba(255,255,255,0.85); border-color: rgba(0,229,255,0.08); }
#catalog-container .cat-params-table td:last-child { color: #fff; font-weight: 600; }
#catalog-container .cat-params-title { color: #00e5ff; }
#catalog-container .cat-description { color: rgba(255,255,255,0.8) !important; background: rgba(8,12,35,0.6); border: 1px solid rgba(0,229,255,0.1); border-radius: 12px; padding: 20px; }
#catalog-container .cat-description * { color: rgba(255,255,255,0.8) !important; }

/* Корзина — недостающие hover переопределения */
#catalog-container .cat-cart-qty-btn:hover {
    background: rgba(0, 229, 255, 0.15);
}
#catalog-container .cat-cart-item-remove {
    color: #ff5252;
}

#catalog-container .cat-floating-cart {
    background: linear-gradient(135deg, #00e5ff, #7c4dff);
    border: none; box-shadow: 0 4px 30px rgba(0,229,255,0.3);
}
#catalog-container .cat-cart-modal {
    background: rgba(8,12,35,0.95);
    border: 1px solid rgba(0,229,255,0.2);
    border-radius: 20px; color: #fff;
}
#catalog-container .cat-cart-title { color: #00e5ff; }
#catalog-container .cat-cart-item { border-color: rgba(0,229,255,0.1); }
#catalog-container .cat-cart-item-name { color: #fff; }
#catalog-container .cat-cart-item-price { color: #00e5ff; }
#catalog-container .cat-cart-order-btn {
    background: linear-gradient(135deg, #00e5ff, #7c4dff);
    border: none; border-radius: 12px;
}
#catalog-container .cat-cart-modal-overlay {
    background: rgba(3,0,20,0.85);
}

/* Корзина рендерится в body, а не в #catalog-container — нужны глобальные стили */
.cat-cart-modal-overlay {
    background: rgba(3,0,20,0.85) !important;
}
.cat-cart-modal {
    background: rgba(8,12,35,0.97) !important;
    border: 1px solid rgba(0,229,255,0.2) !important;
    border-radius: 20px !important;
    color: #fff !important;
}
.cat-cart-title { color: #00e5ff !important; }
.cat-cart-item { border-color: rgba(0,229,255,0.1) !important; }
.cat-cart-item-name { color: #fff !important; }
.cat-cart-item-price { color: #00e5ff !important; }
.cat-cart-total span:last-child { color: #00e5ff !important; }
.cat-cart-order-btn {
    background: linear-gradient(135deg, #00e5ff, #7c4dff) !important;
    border: none !important; border-radius: 12px !important; color: #fff !important;
}
.cat-cart-qty-btn {
    background: rgba(0,229,255,0.1) !important;
    border: 1px solid rgba(0,229,255,0.25) !important;
    color: #00e5ff !important;
    border-radius: 8px !important;
}
.cat-cart-item-remove {
    color: #ff5252 !important;
}

/* === АУДИТ КОНТРАСТА: недостающие тёмные стили === */

/* Основное изображение — тёмный фон */
#catalog-container .cat-detail-main-img {
    background: rgba(8, 12, 35, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.1);
}

/* Миниатюры — тёмный фон */
#catalog-container .cat-detail-thumb {
    background: rgba(8, 12, 35, 0.5);
    border-color: rgba(0, 229, 255, 0.15);
}
#catalog-container .cat-detail-thumb.is-active {
    border-color: #00e5ff;
}

/* Стрелки миниатюр */
#catalog-container .cat-thumbs-arrow {
    background: rgba(8, 12, 35, 0.7);
    border-color: rgba(0, 229, 255, 0.2);
    color: #00e5ff;
}
#catalog-container .cat-thumbs-arrow:hover {
    background: rgba(0, 229, 255, 0.15);
    border-color: #00e5ff;
    color: #fff;
}

/* Блок цены — тёмный фон */
#catalog-container .cat-detail-price-block {
    background: rgba(8, 12, 35, 0.5);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 12px;
}

/* Чётные строки таблицы */
#catalog-container .cat-params-table tr:nth-child(even) {
    background: rgba(0, 229, 255, 0.03);
}

/* Градиент сворачивания характеристик */
#catalog-container .cat-params-wrap::after {
    background: linear-gradient(transparent, rgba(5, 8, 22, 0.95));
}

/* Кнопка «Подробнее» / сворачивания */
#catalog-container .cat-params-toggle {
    color: #00e5ff;
}
#catalog-container .cat-params-toggle:hover {
    color: #7c4dff;
}

/* (дубль удалён — .cat-qty-input уже выше) */

/* Название товара на карточке (тёмный текст → белый) */
#catalog-container .cat-detail-name {
    color: #fff;
}

/* (дубль удалён — .cat-description уже выше) */

/* Стрелки фильтра — тёмный текст → светлый */
#catalog-container .cat-filter-title::after {
    color: rgba(0, 229, 255, 0.5);
}
#catalog-container .cat-filter-group {
    border-color: rgba(0, 229, 255, 0.08);
}

/* Количество в корзине — кнопки */
#catalog-container .cat-cart-qty-btn {
    background: rgba(8, 12, 35, 0.7);
    border-color: rgba(0, 229, 255, 0.2);
    color: #00e5ff;
}

/* Картинка товара в корзине */
#catalog-container .cat-cart-item-img {
    background: rgba(8, 12, 35, 0.5);
}

/* Бейдж количества */
#catalog-container .cat-cart-badge {
    background: #00e5ff;
    color: #030014;
}

/* Сортировка — лейбл */
#catalog-container .cat-sort-label {
    color: rgba(255, 255, 255, 0.5);
}

/* Плавающая корзина — счётчик */
#catalog-container .cat-floating-cart-count {
    background: #00e5ff;
    color: #030014;
}

/* Лупа */
#catalog-container .cat-zoom-lens {
    border-color: rgba(0, 229, 255, 0.5);
}
