:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: #888888;
    --brand-accent: #b388eb;
    --border-color: rgba(255, 255, 255, 0.1);
    --container-width: 1400px;
}

html { scroll-behavior: smooth; }
body { margin: 0; background-color: var(--bg-color); font-family: 'Inter', sans-serif; color: var(--text-main); overflow-x: hidden; }

canvas { display: block; position: fixed; top: 0; left: 0; z-index: 0; }

/* Scroll Container */
.scroll-container { position: relative; z-index: 10; width: 100%; transition: opacity 0.5s ease, transform 0.5s ease; }
.scroll-container.hidden { opacity: 0; pointer-events: none; transform: scale(1.1); }

/* --- BUTTON STYLES (SHARED) --- */
.trigger-btn {
    width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1); color: white; position: relative; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: transform 0.3s;
    backdrop-filter: blur(5px);
}
.trigger-btn svg { width: 24px; height: 24px; fill: white; }
.trigger-btn:hover { transform: scale(1.1); background: rgba(255,255,255,0.08); }
.btn-ring { position: absolute; inset: -5px; border-radius: 50%; border: 2px solid transparent; transition: 0.1s; pointer-events: none; }
.hint { font-size: 10px; letter-spacing: 2px; color: var(--text-muted); margin-top: 15px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

/* 1. HERO INTERACTION */
#hero-interaction {
    position: absolute;
    bottom: 60px; 
    left: 50%; 
    transform: translateX(-50%);
    display: flex; 
    flex-direction: column; 
    align-items: center;
    z-index: 5; 
    
    pointer-events: auto; /* <--- ДОБАВИТЬ ЭТУ СТРОКУ */
    cursor: pointer;      /* На всякий случай */
}

/* 2. SIM INTERACTION */
.sim-interaction-container {
    position: fixed;
    bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center;
    z-index: 100;
    pointer-events: auto;
}

/* --- SIMULATION UI (FIXED) --- */
#simulation-ui {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 900;
    pointer-events: none;
    
    /* Исправление: скрываем полностью, когда не активен */
    opacity: 0;
    visibility: hidden; 
    
    /* Трюк с задержкой: visibility меняется на hidden ТОЛЬКО после того как пройдет opacity (0.5s) */
    transition: opacity 0.5s ease, visibility 0s linear 0.5s;
    
    display: flex; flex-direction: column;
    padding: 0;
}

#simulation-ui.active { 
    opacity: 1;
    visibility: visible;
    /* При появлении visibility меняется мгновенно (задержка 0s) */
    transition: opacity 0.5s ease, visibility 0s linear 0s;
}

/* Top Bar for Sim */
.sim-top-bar {
    width: 100%; padding: 40px; box-sizing: border-box;
    display: flex; justify-content: space-between; align-items: flex-start;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

.sim-title { color: var(--brand-accent); font-size: 12px; letter-spacing: 2px; border-left: 2px solid var(--brand-accent); padding-left: 10px; font-family: 'JetBrains Mono', monospace; margin-bottom: 5px; }
.sim-coords { font-size: 12px; color: #666; font-family: 'JetBrains Mono', monospace; }
.sim-coords span { color: white; }

#exit-sim-btn {
    pointer-events: auto;
    background: rgba(0,0,0,0.5); border: 1px solid var(--brand-accent);
    color: var(--brand-accent); padding: 10px 20px;
    font-family: 'JetBrains Mono', monospace; font-weight: bold;
    cursor: pointer; transition: 0.3s; text-transform: uppercase; letter-spacing: 2px; font-size: 10px;
    backdrop-filter: blur(5px);
}
#exit-sim-btn:hover { background: var(--brand-accent); color: #000; }

/* --- REST OF UI --- */
.hero-section { position: relative; width: 100%; height: 100vh; display: flex; flex-direction: column; pointer-events: none; }
.header { position: absolute; top: 0; left: 0; width: 100%; padding: 40px; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; z-index: 20; pointer-events: auto; }
.brand { font-weight: 900; font-size: 24px; letter-spacing: -0.5px; display: flex; align-items: center; gap: 10px; }
.menu-btn { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 10px 24px; border-radius: 50px; cursor: pointer; text-transform: uppercase; font-size: 12px; letter-spacing: 2px; transition: 0.3s; }
.menu-btn:hover { border-color: var(--brand-accent); background: rgba(179, 136, 235, 0.1); }

/* Sticky Header */
.sticky-header {
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    background-color: #050505;
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 12px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.sticky-header.visible {
    transform: translateY(100px);
}
.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 600;
    border: 1px solid var(--brand-accent);
    padding: 10px 20px;
    border-radius: 50px;
    transition: 0.3s;
}
.contact-btn:hover {
    background: var(--brand-accent);
    color: #000;
}
.icon-phone {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.hero-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; width: 100%; pointer-events: none; transition: opacity 0.3s; }
h1 { font-size: clamp(40px, 8vw, 120px); margin: 0; line-height: 1; letter-spacing: -0.02em; font-weight: 900; }
.highlight { color: var(--brand-accent); }
.subtitle { font-size: 14px; color: var(--text-muted); margin-top: 20px; letter-spacing: 6px; text-transform: uppercase; }

.content-wrapper { position: relative; margin-top: 0; box-shadow: 0 -50px 100px rgba(0,0,0,0.8); }
.section { padding: 120px 0; border-bottom: 1px solid var(--border-color); background-color: var(--bg-color); }

/* --- 01 // MANIFEST --- */
.benefits-section { background-color: var(--bg-color); }
.benefit-card {
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.benefit-card::after {
    content: '';
    position: absolute;
    top: 20px; right: 20px;
    width: 15px; height: 15px;
    border-top: 1px solid var(--brand-accent);
    border-right: 1px solid var(--brand-accent);
    opacity: 0.2;
    transition: all 0.4s ease;
}
.benefit-card:hover::after {
    top: 15px; right: 15px;
    width: 25px; height: 25px;
    opacity: 0.8;
}
.benefit-card:hover {
    background: rgba(179, 136, 235, 0.05);
    border-color: rgba(179, 136, 235, 0.2);
    transform: translateY(-10px);
}
.icon-box { 
    width: 60px; 
    height: 60px; 
    margin-bottom: 40px; 
    color: var(--brand-accent); 
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(179, 136, 235, 0.1);
    border-radius: 12px;
    transition: 0.3s;
}
.benefit-card:hover .icon-box {
    background: var(--brand-accent);
    color: #000;
}
.icon-box svg { width: 32px; height: 32px; }
.benefit-card h3 { font-size: 20px; font-weight: 700; letter-spacing: 2px; margin-bottom: 20px; text-transform: uppercase; }
.benefit-card p { font-size: 15px; color: var(--text-muted); line-height: 1.7; font-weight: 300; margin: 0; }

/* --- 02 // PROCESS --- */
.process-section { 
    background: radial-gradient(circle at 50% 50%, #0d0615 0%, #050505 100%) !important; 
    border-bottom: 1px solid rgba(179, 136, 235, 0.1);
    position: relative;
    overflow: hidden;
}

.process-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(179, 136, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(179, 136, 235, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    pointer-events: none;
}

.process-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(179, 136, 235, 0.05) 50%, 
        transparent 100%);
    animation: scan 8s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(0%); }
}

.process-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 0; 
    margin-top: 80px;
    position: relative;
    z-index: 2;
}

.stage-card {
    background: transparent;
    padding: 0 50px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    border: none;
    transition: 0.4s;
}

.stage-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 64px;
}

.stage-index {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--brand-accent);
    opacity: 0.4;
    letter-spacing: 2px;
    position: absolute;
    top: -20px;
    left: 0;
}

.stage-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(179, 136, 235, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--brand-accent);
    position: relative;
    z-index: 5;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 0 rgba(179, 136, 235, 0);
}

.stage-card:hover .stage-icon-wrap {
    background: var(--brand-accent);
    color: #000;
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 15px 30px rgba(179, 136, 235, 0.3);
    border-color: var(--brand-accent);
}

/* Декоративная вспышка при наведении */
.stage-card::after {
    content: '';
    position: absolute;
    top: 32px;
    left: 50px;
    width: 64px;
    height: 64px;
    background: var(--brand-accent);
    filter: blur(40px);
    opacity: 0;
    transition: 0.5s;
    z-index: 1;
}

.stage-card:hover::after {
    opacity: 0.2;
}

.stage-line {
    position: absolute;
    top: 32px; /* Center of 64px icon */
    left: calc(64px + 20px);
    width: calc(100% - 24px);
    height: 1px;
    background: linear-gradient(90deg, 
        var(--brand-accent) 0%, 
        rgba(179, 136, 235, 0.5) 50%, 
        transparent 100%);
    opacity: 0.2;
    z-index: 1;
}

.stage-card:last-child .stage-line { display: none; }

.stage-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

.stage-card h3 { 
    font-size: 18px; 
    margin: 0; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    font-weight: 800;
    color: #fff;
}

.stage-card p { 
    font-size: 14px; 
    color: #999; 
    line-height: 1.8; 
    margin: 0; 
}

.stage-detail { 
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    color: var(--brand-accent);
    opacity: 0.6;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stage-detail::before {
    content: '';
    width: 15px;
    height: 1px;
    background: currentColor;
}

/* Удаляем старый некорректный ::before */
.stage-card::before { display: none; }

@media (max-width: 1000px) {
    .process-grid { grid-template-columns: 1fr; gap: 60px; }
    .stage-card { padding: 0; }
    .stage-line {
        top: calc(100% + 30px);
        left: 32px;
        right: auto;
        width: 1px;
        height: 30px;
        background: linear-gradient(180deg, var(--brand-accent) 0%, transparent 100%);
    }
}

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 40px; }
.section-header { margin-bottom: 80px; text-align: center; }
.section-label { display: inline-block; font-size: 12px; color: var(--brand-accent); letter-spacing: 4px; margin-bottom: 20px; font-weight: 600; text-transform: uppercase; }
h2 { font-size: clamp(32px, 5vw, 64px); margin: 0; font-weight: 900; text-transform: uppercase; letter-spacing: -1px; line-height: 1.1; }
.accent-text { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.3); }

.grid-3, .catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }

.icon-section { 
    background-color: #080808 !important; 
    position: relative;
    padding: 160px 0;
}

.icon-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(179, 136, 235, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(179, 136, 235, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.icon-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
    margin-top: 60px; 
}

.icon-card {
    border: 1px solid rgba(255,255,255,0.05);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.icon-card::before {
    content: 'SYS-REF // 04';
    position: absolute;
    top: 15px;
    right: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    color: rgba(179, 136, 235, 0.2);
    letter-spacing: 1px;
}

.icon-card:hover {
    background: rgba(179, 136, 235, 0.03);
    border-color: rgba(179, 136, 235, 0.3);
    transform: translateY(-5px);
}

.icon-card h3 { 
    font-size: 16px; 
    letter-spacing: 3px; 
    text-transform: uppercase; 
    margin: 0; 
    color: #fff;
    font-weight: 700;
}

.icon-card p { 
    color: #888; 
    font-size: 14px; 
    line-height: 1.7; 
    margin: 0; 
    font-weight: 300;
}

.icon-visual { 
    width: 44px; 
    height: 44px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 8px; 
    border: 1px solid rgba(179, 136, 235, 0.3);
    background: rgba(179, 136, 235, 0.05);
    color: var(--brand-accent);
    transition: 0.3s;
}

.icon-card:hover .icon-visual {
    background: var(--brand-accent);
    color: #000;
    transform: scale(1.1);
}

.icon-visual svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* --- CATALOG & MODALS --- */
.product-card { background: transparent; transition: transform 0.4s ease; cursor: pointer; padding: 20px; border: 1px solid transparent; }
.product-card:hover { transform: translateY(-10px); border-color: rgba(255,255,255,0.05); background: rgba(255,255,255,0.01); }
.card-image { position: relative; width: 100%; aspect-ratio: 1 / 1.2; background: #111; overflow: hidden; margin-bottom: 35px; border: 1px solid var(--border-color); }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); position: relative; z-index: 2; }
.product-card:hover .card-img { transform: scale(1.1); }
.img-placeholder { width: 100%; height: 100%; background: linear-gradient(45deg, #111, #1a1a1a); position: absolute; top: 0; left: 0; z-index: 1; }
.card-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); opacity: 0; display: flex; justify-content: center; align-items: center; transition: 0.3s; z-index: 3; text-align: center; backdrop-filter: blur(4px); }
.product-card:hover .card-overlay { opacity: 1; }
.round-cta { width: 90px; height: 90px; min-height: 90px; border-radius: 50%; background: var(--brand-accent); border: none; color: #000; font-weight: 900; font-size: 11px; cursor: pointer; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); letter-spacing: 2px; box-shadow: 0 0 30px rgba(179, 136, 235, 0.3); display: flex; align-items: center; justify-content: center; }
.round-cta:hover { transform: scale(1.15); background: #fff; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
.card-top h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.ver { font-size: 10px; color: var(--brand-accent); vertical-align: super; margin-left: 5px; }
.price { font-family: 'JetBrains Mono', monospace; color: var(--text-main); font-weight: 600; font-size: 15px; }
.specs { list-style: none; padding: 0; margin: 0; font-size: 12px; color: #888; line-height: 1.8; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 15px; }
.specs li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
.spec-icon-mini { width: 14px; height: 14px; opacity: 0.5; flex-shrink: 0; fill: currentColor; }

/* --- MODAL STYLES --- */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2000; opacity: 0; visibility: hidden; pointer-events: none;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; box-sizing: border-box; transition: 0.4s;
}
.modal.active { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.95); backdrop-filter: blur(15px); }
.modal-content {
    position: relative; width: 100%; max-width: 1200px;
    background: #050505; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px; overflow: hidden; transform: translateY(30px) scale(0.98); opacity: 0;
    transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.modal.active .modal-content { transform: translateY(0) scale(1); opacity: 1; }

.modal-close {
    position: absolute; top: 30px; right: 30px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: white; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; z-index: 10;
    transition: 0.3s; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px);
}
.modal-close:hover { background: white; color: black; transform: rotate(90deg); }

.modal-body { display: grid; grid-template-columns: 1.2fr 1fr; height: 80vh; max-height: 800px; }
.modal-gallery { padding: 40px; border-right: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; gap: 20px; background: #080808; }
.main-image-container { flex: 1; background: #111; border-radius: 12px; overflow: hidden; position: relative; border: 1px solid rgba(255,255,255,0.05); }
.main-image-container img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; }
.thumb { width: 80px; height: 80px; min-width: 80px; border-radius: 8px; cursor: pointer; border: 2px solid transparent; overflow: hidden; transition: 0.3s; background: #111; }
.thumb.active { border-color: var(--brand-accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transition: 0.3s; }
.thumb:hover img, .thumb.active img { opacity: 1; }

.modal-details { padding: 40px; padding-bottom: 160px; overflow-y: auto; text-align: left; scrollbar-width: thin; scrollbar-color: var(--brand-accent) transparent; }
.modal-details::-webkit-scrollbar { width: 4px; }
.modal-details::-webkit-scrollbar-track { background: transparent; }
.modal-details::-webkit-scrollbar-thumb { background: var(--brand-accent); border-radius: 10px; }
.modal-header { margin-bottom: 30px; }
.modal-header h2 { font-size: clamp(32px, 4vw, 48px); margin: 0 0 10px; text-transform: uppercase; font-weight: 900; }
.modal-price { font-family: 'JetBrains Mono', monospace; color: var(--brand-accent); font-size: 24px; font-weight: bold; letter-spacing: -1px; }
.modal-description { font-size: 15px; color: #888; line-height: 1.7; margin-bottom: 40px; white-space: pre-line; font-weight: 300; }

.modal-specs-grid { display: grid; gap: 12px; margin-bottom: 40px; }
.modal-spec-item { display: flex; align-items: center; gap: 20px; padding: 12px 16px; background: rgba(255,255,255,0.02); border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; }
.modal-spec-item:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
.spec-icon-box { width: 36px; height: 36px; background: rgba(179, 136, 235, 0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--brand-accent); flex-shrink: 0; }
.spec-icon-box svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.spec-info .label { display: block; font-size: 9px; color: #555; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 2px; }
.spec-info .value { font-size: 13px; color: #e0e0e0; font-weight: 500; }

.order-btn { width: 100%; margin-top: 20px; margin-bottom: 40px; }

@media (max-width: 900px) {
    .modal-body { display: block; height: auto; max-height: 80vh; overflow-y: auto; }
    .modal-gallery { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 20px; height: 350px; }
    .modal-details { padding: 20px; padding-bottom: 60px; overflow-y: visible; }
    .modal-close { top: 20px; right: 20px; width: 36px; height: 36px; }
}

/* --- 05 // CONTACTS --- */
.contacts-section { background-color: #050505; }
.form-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 60px; padding-top: 10px; }
.contact-item label { 
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px; 
    color: var(--brand-accent); 
    letter-spacing: 3px; 
    margin-bottom: 20px; 
    font-weight: 700;
}
.contact-item label i {
    font-size: 14px;
    opacity: 0.8;
}
.contact-item p { 
    font-size: 16px; 
    color: rgba(255, 255, 255, 0.6); 
    line-height: 1.6; 
    margin: 0; 
    font-weight: 400;
}
.contact-item a { color: inherit; text-decoration: none; transition: 0.3s; }
.contact-item a:hover { color: var(--brand-accent); }

form { display: flex; flex-direction: column; gap: 40px; }
.input-group { position: relative; }
.input-group input { 
    width: 100%; 
    background: transparent; 
    border: none; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    padding: 15px 0; 
    color: white; 
    font-size: 16px; 
    font-family: inherit; 
    outline: none; 
    transition: 0.3s; 
}
.input-group input:focus { border-bottom-color: var(--brand-accent); }
.input-group label { 
    position: absolute; 
    left: 0; 
    top: 15px; 
    color: #555; 
    font-size: 13px; 
    pointer-events: none; 
    transition: 0.3s; 
    letter-spacing: 1px;
    text-transform: uppercase;
}
.input-group input:focus ~ label, 
.input-group input:not(:placeholder-shown) ~ label { 
    top: -10px; 
    font-size: 9px; 
    color: var(--brand-accent); 
    letter-spacing: 2px;
}
.submit-btn { 
    background: #fff; 
    color: #000; 
    border: none; 
    padding: 20px 45px; 
    font-size: 13px; 
    font-weight: 900; 
    letter-spacing: 2px; 
    cursor: pointer; 
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
    text-transform: uppercase;
}
.submit-btn:hover { background: var(--brand-accent); transform: scale(1.05); }

@media (max-width: 1000px) {
    .form-wrapper { grid-template-columns: 1fr; gap: 60px; }
    .contact-info { gap: 40px; }
}

footer { padding: 60px 0; border-top: 1px solid var(--border-color); background-color: var(--bg-color); position: relative; z-index: 10; }
.footer-inner { display: flex; justify-content: space-between; font-size: 12px; color: #444; letter-spacing: 1px; }

#fullscreen-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #050505; z-index: 1000; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.5s ease; }
#fullscreen-menu.active { opacity: 1; pointer-events: auto; }
.close-menu-btn { position: absolute; top: 40px; right: 40px; background: none; border: none; color: white; font-size: 30px; cursor: pointer; }
.menu-nav { display: flex; flex-direction: column; gap: 20px; text-align: center; }
.menu-link { font-size: 40px; font-weight: 900; color: transparent; -webkit-text-stroke: 1px #444; text-decoration: none; transition: 0.3s; }
.menu-link:hover, .menu-link.highlight-link { -webkit-text-stroke: 1px var(--brand-accent); color: var(--brand-accent); text-shadow: 0 0 20px rgba(179,136,235,0.4); }
.menu-footer { position: absolute; bottom: 40px; color: #444; font-size: 10px; letter-spacing: 2px; }
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- CATALOG PAGE STYLES --- */
.catalog-page { background: #050505; }
.catalog-container { padding-top: 140px; min-height: 100vh; }
.catalog-hero { margin-bottom: 60px; }
.catalog-hero h1 { font-size: clamp(40px, 8vw, 80px); margin-top: 20px; }
.catalog-intro { max-width: 600px; margin-top: 20px; font-size: 18px; line-height: 1.6; }

.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 80px;
    gap: 40px;
    flex-wrap: wrap;
}
.filter-group { display: flex; flex-direction: column; gap: 15px; }
.filter-group label { 
    font-size: 10px; 
    text-transform: uppercase; 
    letter-spacing: 3px; 
    color: var(--brand-accent); 
    font-weight: 700; 
    display: flex;
    align-items: center;
    gap: 10px;
}
.filter-group label svg { width: 14px; height: 14px; fill: currentColor; opacity: 0.8; }

.filter-group select {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 12px 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    width: 100%;
    outline: none;
    transition: 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7,10L12,15L17,10H7Z' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}
.filter-group select:hover { border-color: rgba(255,255,255,0.3); background-color: rgba(255,255,255,0.05); }

.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
    background: transparent;
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.chip:hover { border-color: rgba(255,255,255,0.4); }
.chip.active {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #000;
    font-weight: 700;
}

.catalog-results { padding-bottom: 120px; }

/* Adequate Filters Sidebar Layout */
.filters-wrapper {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: flex-start;
    padding-bottom: 100px;
}
.filters-sidebar {
    position: sticky;
    top: 140px;
    display: flex;
    flex-direction: column;
    gap: 35px;
    padding-right: 30px;
    border-right: 1px solid var(--border-color);
}
.catalog-results-main { flex: 1; }

.chips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.chips-grid .chip[data-gpu="all"], 
.chips-grid .chip[data-cpu="all"],
.chips-grid .chip[data-ram="all"] { grid-column: span 2; }

.chip {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.2s ease;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
}
.chip:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2); }
.chip.active {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #000;
    font-weight: 700;
}

.reset-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    text-align: left;
    padding: 0;
    margin-top: 10px;
    transition: 0.3s;
}
.reset-link:hover { color: var(--brand-accent); text-decoration: underline; }

.no-results {
    text-align: center;
    padding: 100px 0;
}
.no-results p { font-size: 24px; color: #fff; font-weight: 600; }
.no-results span { display: block; margin-top: 10px; font-size: 16px; color: var(--text-muted); font-weight: 300; }
.hidden { display: none; }

@media (max-width: 1100px) {
    .filters-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .filters-sidebar { position: static; border-right: none; border-bottom: 1px solid var(--border-color); padding-bottom: 40px; padding-right: 0; flex-direction: row; flex-wrap: wrap; gap: 30px; }
    .filter-group { min-width: 240px; flex: 1; }
}

.footer-dark { background: #050505; border-top: 1px solid var(--border-color); padding: 80px 0; }
.footer-links { display: flex; gap: 30px; }
.footer-links a { text-decoration: none; color: #444; transition: 0.3s; }
.footer-links a:hover { color: var(--brand-accent); }

/* --- FOOTER UNIFICATION --- */
.site-footer {
    background: #050505;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 80px 0 40px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .f-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    display: block;
    color: #fff;
    text-decoration: none;
}

.footer-brand p {
    color: rgba(255,255,255,0.3); /* Тоньше и менее ярко */
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-column h4 {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--brand-accent);
    margin-bottom: 25px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
}

.footer-column h4 i {
    font-size: 1rem;
    opacity: 0.6;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    color: rgba(255,255,255,0.4); /* Менее ярко */
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s, transform 0.2s;
}

.footer-links-list a:hover {
    color: var(--brand-accent);
    transform: translateX(4px);
}

.footer-contact .contact-item {
    margin-bottom: 20px;
}

.footer-contact .contact-item span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.2);
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.footer-contact .contact-item span i {
    font-size: 0.8rem;
}

.footer-contact .contact-item p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5); /* Приглушенный белый */
    line-height: 1.5;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.2);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    color: rgba(255,255,255,0.3);
    transition: color 0.3s, transform 0.2s;
    text-decoration: none;
    display: flex;
    font-size: 1.25rem; /* Sizing for font-based icons */
}

.social-links a:hover {
    color: var(--brand-accent);
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 580px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .header { padding: 20px; }
    .header-container { padding: 0 20px; }
    .contact-btn span { display: none; }
    .contact-btn { padding: 10px; width: 42px; height: 42px; justify-content: center; }
    .header-actions { gap: 10px; }
    .form-wrapper, .grid-3 { grid-template-columns: 1fr; gap: 40px; }
    h1 { font-size: 50px; }
    .container { padding: 0 20px; }
}