/* ==========================================================================
   VoltTech CSS Stylesheet - Premium Cyber-Electrician Theme
   ========================================================================== */

:root {
    --cyber-bg: #07080c;
    --cyber-bg-rgb: 7, 8, 12;
    --cyber-bg-card: rgba(13, 17, 26, 0.65);
    --neon-cyan: #00e5ff;
    --neon-cyan-glow: rgba(0, 229, 255, 0.4);
    --volt-orange: #ff9f00;
    --volt-orange-glow: rgba(255, 159, 0, 0.4);
    --laser-green: #00ff66;
    --laser-green-glow: rgba(0, 255, 102, 0.4);
    --cyber-blue: #0077ff;
    
    --text-primary: #f0f4f8;
    --text-secondary: #8e9ea9;
    --text-muted: #4e5e6a;
    --border-color: rgba(255, 255, 255, 0.07);
    --border-glow: rgba(255, 255, 255, 0.03);

    --font-heading: 'Unbounded', 'Outfit', 'Montserrat', sans-serif;
    --font-body: 'Outfit', 'Montserrat', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--cyber-bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Energy Grid Canvas */
#energyGrid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: all;
    opacity: 0.6;
}

/* Glowing Background Spheres */
.glow-sphere {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.orange-glow {
    top: 10%;
    left: -10%;
    background: var(--volt-orange);
}

.cyan-glow {
    top: 30%;
    right: -10%;
    background: var(--neon-cyan);
}

.center-glow {
    top: 50%;
    left: 30%;
    background: var(--cyber-blue);
}

.left-glow {
    top: 70%;
    left: -20%;
    background: var(--laser-green);
}

.right-glow {
    bottom: 5%;
    right: -10%;
    background: var(--volt-orange);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cyber-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    border: 2px solid var(--cyber-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* Utility Layouts */
section {
    padding: 100px 8% 80px;
    position: relative;
    width: 100%;
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.section-subtitle {
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Typography elements */
.accent-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan-glow);
}

.gradient-text-power {
    background: linear-gradient(135deg, var(--volt-orange) 0%, #ff5500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-weak {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--cyber-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.orange-text { color: var(--volt-orange); }
.cyan-text { color: var(--neon-cyan); }
.green-text { color: var(--laser-green); }
.amber-text { color: #ffd600; }
.text-muted { color: var(--text-muted) !important; }

/* Buttons & Interactive Elements */
.neon-btn {
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid var(--neon-cyan);
    background: rgba(0, 229, 255, 0.05);
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    transition: var(--transition-fast);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15), inset 0 0 10px rgba(0, 229, 255, 0.05);
    cursor: pointer;
}

.neon-btn:hover {
    background: var(--neon-cyan);
    color: var(--cyber-bg);
    box-shadow: 0 0 25px var(--neon-cyan), inset 0 0 15px rgba(255,255,255,0.4);
    text-shadow: none;
}

.cyber-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.primary-cyber {
    background: linear-gradient(135deg, var(--volt-orange) 0%, #ff5500 100%);
    color: var(--cyber-bg);
    border: none;
    box-shadow: 0 4px 20px rgba(255, 159, 0, 0.3);
}

.primary-cyber:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--volt-orange-glow);
    filter: brightness(1.1);
}

.secondary-cyber {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
}

.secondary-cyber:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.block-btn {
    width: 100%;
    text-align: center;
}

/* Cyber Header Navigation */
.cyber-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(7, 8, 12, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.cyber-header.scrolled {
    height: 70px;
    background: rgba(7, 8, 12, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.logo .bolt {
    color: var(--volt-orange);
    animation: boltPulse 2s infinite ease-in-out;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    transition: var(--transition-fast);
    box-shadow: 0 0 8px var(--neon-cyan-glow);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after, .nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding-top: 140px;
}

.hero-content {
    flex: 1;
    max-width: 650px;
    z-index: 2;
}

.badge-terminal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.badge-terminal span {
    color: var(--laser-green);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 25px;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 580px;
}

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

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 450px;
}

.hologram-container {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.hologram-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed var(--neon-cyan);
    opacity: 0.4;
    transform-style: preserve-3d;
}

.ring-1 {
    width: 350px;
    height: 350px;
    animation: rotateHolo1 15s linear infinite;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan-glow);
}

.ring-2 {
    width: 270px;
    height: 270px;
    border-color: var(--volt-orange);
    animation: rotateHolo2 10s linear infinite;
    box-shadow: 0 0 15px var(--volt-orange-glow);
}

.ring-3 {
    width: 190px;
    height: 190px;
    border-color: var(--laser-green);
    border-style: dotted;
    animation: rotateHolo1 8s linear infinite reverse;
}

.hologram-core {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.3) 0%, rgba(0,0,0,0) 70%);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 40px var(--neon-cyan-glow);
}

.volt-icon-floating {
    font-size: 2.5rem;
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 15px var(--neon-cyan));
    animation: floatIcon 4s ease-in-out infinite;
}

.hologram-data-panels {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.data-panel {
    position: absolute;
    background: rgba(13, 17, 26, 0.7);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-primary);
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.dp-1 {
    top: 5%;
    left: -20px;
    border-left: 3px solid var(--volt-orange);
}

.dp-2 {
    bottom: 20%;
    left: -40px;
    border-left: 3px solid var(--laser-green);
}

.dp-3 {
    top: 30%;
    right: -40px;
    border-left: 3px solid var(--neon-cyan);
}

/* Interactive Simulator Section */
.simulator-section {
    z-index: 5;
}

.simulator-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    position: relative;
    z-index: 10;
}

.sim-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

.sim-btn {
    background: var(--cyber-bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 20px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    align-items: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.sim-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    transition: var(--transition-fast);
}

.sim-btn.active, .sim-btn:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.sim-btn[data-layer="all"].active::before { width: 4px; background: #ffaa00; }
.sim-btn[data-layer="power"].active::before { width: 4px; background: var(--volt-orange); }
.sim-btn[data-layer="low-current"].active::before { width: 4px; background: var(--neon-cyan); }
.sim-btn[data-layer="security"].active::before { width: 4px; background: var(--laser-green); }

.btn-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    transition: var(--transition-fast);
}

.btn-indicator.amber { background: #ffd600; box-shadow: 0 0 8px rgba(255, 214, 0, 0.6); }
.btn-indicator.orange { background: var(--volt-orange); box-shadow: 0 0 8px var(--volt-orange-glow); }
.btn-indicator.cyan { background: var(--neon-cyan); box-shadow: 0 0 8px var(--neon-cyan-glow); }
.btn-indicator.green { background: var(--laser-green); box-shadow: 0 0 8px var(--laser-green-glow); }

.sim-btn.active .btn-indicator {
    animation: indicatorPulse 1.5s infinite ease-in-out;
}

.btn-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    grid-column: 2;
}

.btn-desc {
    grid-column: 2;
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Blueprint simulator window */
.sim-visual-wrapper {
    position: relative;
    background: rgba(10, 12, 20, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: flex-start;
    align-items: stretch;
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.holo-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center;
    z-index: 1;
    pointer-events: none;
}

.blueprint-frame {
    width: 100%;
    max-width: 780px;
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

/* Floorplan SVG Elements */
#floorplanSvg {
    display: block;
    width: 100%;
    height: auto;
}

/* SVG Styling */
.room-label {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    fill: rgba(255, 255, 255, 0.25);
    pointer-events: none;
}

.node-label {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    fill: var(--text-primary);
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.ep-label {
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 600;
    fill: var(--volt-orange);
    opacity: 0;
    transition: var(--transition-fast);
    pointer-events: none;
}

.ep-label.weak {
    fill: var(--neon-cyan);
}

.ep-label.security {
    fill: var(--laser-green);
}

/* Wire Glowing Configurations */
.wire {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: var(--transition-smooth);
}

/* Layer Wire Styling */
#layer-power .wire {
    stroke: var(--volt-orange);
    stroke-width: 2;
    opacity: 0.75;
    filter: drop-shadow(0 0 3px var(--volt-orange));
    stroke-dasharray: 8 4;
    animation: flowElectronsPower 15s linear infinite;
}

#layer-power .power-feed {
    stroke-width: 3.5;
    stroke-dasharray: 10 3;
    animation-duration: 8s;
}

#layer-power .power-line-380 {
    stroke: #ff5500;
    stroke-width: 2.5;
    filter: drop-shadow(0 0 4px #ff5500);
    stroke-dasharray: 12 4;
}

#layer-low-current .wire {
    stroke: var(--neon-cyan);
    stroke-width: 1.8;
    opacity: 0.75;
    filter: drop-shadow(0 0 3px var(--neon-cyan));
    stroke-dasharray: 6 3;
    animation: flowElectronsWeak 12s linear infinite;
}

#layer-low-current .floor-route {
    stroke-style: dotted;
    stroke-dasharray: 4 4;
}

#layer-security .wire {
    stroke: var(--laser-green);
    stroke-width: 1.5;
    opacity: 0.75;
    filter: drop-shadow(0 0 3px var(--laser-green));
    stroke-dasharray: 10 5;
    animation: flowElectronsWeak 10s linear infinite reverse;
}

/* Endpoint pulse */
.endpoint {
    transition: var(--transition-smooth);
    cursor: pointer;
}

.endpoint:hover + .ep-label {
    opacity: 1;
}

.power-ep { fill: var(--volt-orange); stroke: #fff; stroke-width: 1; }
.weak-ep { fill: var(--neon-cyan); stroke: #fff; stroke-width: 1; }
.security-ep { fill: var(--laser-green); stroke: #fff; stroke-width: 1; }

.pulse-node {
    animation: nodePulse 1.8s infinite ease-in-out;
    transform-origin: center;
}

/* Layer visibility transitions managed by JS */
.wiring-layer {
    transition: opacity var(--transition-smooth);
}

.wiring-layer.dimmed {
    opacity: 0.05 !important;
}

.wiring-layer.dimmed .wire {
    animation-play-state: paused !important;
}

/* Telemetry Console styling */
.hologram-telemetry {
    position: relative;
    background: rgba(8, 10, 16, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 2px solid rgba(0, 229, 255, 0.35);
    border-radius: 8px;
    padding: 16px 20px;
    font-family: var(--font-mono);
    width: 100%;
    z-index: 10;
    pointer-events: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), inset 0 0 15px rgba(0, 229, 255, 0.02);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.telemetry-header {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 12px;
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.telemetry-indicator {
    color: var(--laser-green);
    text-shadow: 0 0 8px var(--laser-green-glow);
}

.telemetry-indicator.blink {
    animation: cyberBlink 1.5s infinite steps(2, start);
}

@keyframes cyberBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.1; }
}

.telemetry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.telemetry-item {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-left: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: var(--transition-fast);
}

.telemetry-item:hover {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.telemetry-item:nth-child(1) { border-left-color: var(--volt-orange); }
.telemetry-item:nth-child(2) { border-left-color: var(--laser-green); }
.telemetry-item:nth-child(3) { border-left-color: var(--neon-cyan); }
.telemetry-item:nth-child(4) { border-left-color: var(--laser-green); }

.telemetry-label {
    font-size: 0.6rem;
    color: var(--text-secondary);
}

.telemetry-val {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Adjust grid layout on tablet/mobile screens */
@media (max-width: 900px) {
    .telemetry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .telemetry-grid {
        grid-template-columns: 1fr;
    }
    .telemetry-item {
        padding: 8px 12px;
    }
}

/* Services Grid Section */
.services-section {
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 5;
}

.service-card {
    background: var(--cyber-bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    transition: var(--transition-smooth);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0px;
    transition: var(--transition-smooth);
    opacity: 0.3;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Glow overlays per color config */
.border-orange:hover {
    box-shadow: 0 20px 45px rgba(255, 159, 0, 0.08), 0 0 25px rgba(255, 159, 0, 0.03);
}

.border-orange::after { background: var(--volt-orange); }
.border-orange:hover::after { height: 3px; }

.border-cyan:hover {
    box-shadow: 0 20px 45px rgba(0, 229, 255, 0.08), 0 0 25px rgba(0, 229, 255, 0.03);
}

.border-cyan::after { background: var(--neon-cyan); }
.border-cyan:hover::after { height: 3px; }

.border-green:hover {
    box-shadow: 0 20px 45px rgba(0, 255, 102, 0.08), 0 0 25px rgba(0, 255, 102, 0.03);
}

.border-green::after { background: var(--laser-green); }
.border-green:hover::after { height: 3px; }

.border-blue:hover {
    box-shadow: 0 20px 45px rgba(0, 119, 255, 0.08), 0 0 25px rgba(0, 119, 255, 0.03);
}

.border-blue::after { background: var(--cyber-blue); }
.border-blue:hover::after { height: 3px; }

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    margin-bottom: 25px;
    transition: var(--transition-smooth);
}

.service-card:hover .card-icon {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.01em;
}

.card-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.card-list li {
    font-size: 0.8rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-list li i {
    font-size: 0.75rem;
}

/* Calculator Section Styling */
.calculator-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 10;
}

.calc-panel {
    background: var(--cyber-bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 35px;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.panel-heading {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.01em;
}

.control-group {
    margin-bottom: 30px;
}

.group-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

/* Custom Cyber Tabs */
.cyber-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px;
}

.tab-item {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    text-transform: uppercase;
}

.tab-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Slider styling */
.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.range-val {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan-glow);
}

.slider-container {
    position: relative;
    padding: 10px 0;
}

.cyber-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.cyber-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--neon-cyan);
    border: 3px solid #fff;
    cursor: pointer;
    box-shadow: 0 0 10px var(--neon-cyan-glow);
    transition: var(--transition-fast);
}

.cyber-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: #fff;
    border-color: var(--neon-cyan);
}

.slider-marks {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Custom Checkboxes */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.cyber-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.cyber-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.check-box {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.2);
    display: inline-block;
    position: relative;
    transition: var(--transition-fast);
}

.cyber-checkbox input:checked ~ .check-box {
    border-color: var(--laser-green);
    box-shadow: 0 0 8px var(--laser-green-glow);
    background: rgba(0, 255, 102, 0.05);
}

.check-box::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid var(--laser-green);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cyber-checkbox input:checked ~ .check-box::after {
    display: block;
}

.check-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.cyber-checkbox:hover .check-label {
    color: var(--text-primary);
}

/* Estimate result box */
.result-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(10, 14, 23, 0.85);
}

.price-showcase {
    background: rgba(0, 0, 0, 0.35);
    border: 1px dashed rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    margin-bottom: 25px;
}

.price-label {
    font-size: 0.78rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.price-display {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    color: var(--volt-orange);
    text-shadow: 0 0 20px rgba(255, 159, 0, 0.35);
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
}

.price-display .price-digits {
    letter-spacing: -0.02em;
    transition: var(--transition-smooth);
}

.price-display .rub {
    font-size: 2rem;
    font-weight: 700;
}

.price-note {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.work-specs {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    margin-bottom: 30px;
}

.specs-heading {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.spec-item strong {
    color: var(--text-primary);
}

/* Standards Section Blueprint Drawing */
.standards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.blueprint-card {
    position: relative;
    background: #020a16;
    border: 2px solid #0055ff;
    border-radius: 8px;
    min-height: 380px;
    overflow: hidden;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 85, 255, 0.2);
}

.bp-grid-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 85, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 85, 255, 0.05) 1px, transparent 1px);
    background-size: 15px 15px;
    z-index: 1;
}

.bp-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bp-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 800;
    color: rgba(0, 119, 255, 0.8);
    border-bottom: 1px solid rgba(0, 119, 255, 0.3);
    padding-bottom: 10px;
}

.bp-drawing {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 25px;
    align-items: center;
    margin: 40px 0;
}

.bp-shield-rect {
    border: 2px solid rgba(0, 119, 255, 0.8);
    border-radius: 4px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(2, 10, 22, 0.9);
}

.bp-breaker-row {
    display: flex;
    gap: 6px;
    justify-content: space-around;
}

.bp-breaker {
    width: 25px;
    height: 45px;
    border: 1px solid rgba(0, 119, 255, 0.5);
    background: rgba(0,0,0,0.5);
    position: relative;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.bp-breaker .lever {
    width: 6px;
    height: 12px;
    background: rgba(0, 119, 255, 0.5);
    position: absolute;
    top: 6px;
    border-radius: 1px;
    transition: var(--transition-fast);
}

.bp-breaker.active {
    border-color: #00ff66;
    box-shadow: 0 0 8px rgba(0,255,102,0.3);
}

.bp-breaker.active .lever {
    background: #00ff66;
    top: 24px;
}

.bp-breaker .lbl {
    font-family: var(--font-mono);
    font-size: 5px;
    color: rgba(255,255,255,0.4);
    position: absolute;
    bottom: 2px;
}

.bp-wires-visual {
    height: 120px;
    border-left: 2px dashed rgba(0, 119, 255, 0.4);
    position: relative;
    padding-left: 15px;
}

.bp-wire-path {
    position: absolute;
    left: 0;
    width: 60px;
    height: 2px;
    background: #fff;
}

.bp-wire-path::after {
    content: '';
    position: absolute;
    top: -3px;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.w-orange { top: 20%; background: var(--volt-orange); }
.w-orange::after { background: var(--volt-orange); box-shadow: 0 0 6px var(--volt-orange); }
.w-blue { top: 50%; background: var(--neon-cyan); }
.w-blue::after { background: var(--neon-cyan); box-shadow: 0 0 6px var(--neon-cyan); }
.w-green { top: 80%; background: var(--laser-green); }
.w-green::after { background: var(--laser-green); box-shadow: 0 0 6px var(--laser-green); }

.bp-footer {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: rgba(0, 119, 255, 0.6);
    border-top: 1px solid rgba(0, 119, 255, 0.3);
    padding-top: 10px;
}

.standards-bullets {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.std-bullet {
    display: flex;
    gap: 20px;
}

.std-num {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--volt-orange);
    text-shadow: 0 0 10px var(--volt-orange-glow);
    background: rgba(255, 159, 0, 0.05);
    border: 1px solid rgba(255, 159, 0, 0.15);
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.std-text-box {
    flex: 1;
}

.std-bullet-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.std-bullet-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Portfolio Gallery Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.portfolio-item {
    background: var(--cyber-bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.portfolio-img-wrapper {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}

/* Cyber Placeholders representing electrical fields */
.cyber-pic {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #090c15;
    transition: var(--transition-smooth);
}

.shield-pic {
    background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, rgba(7, 8, 12, 0.9) 80%),
                linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 100% 100%, 15px 15px;
    border-bottom: 2px solid var(--neon-cyan);
}

.floor-pic {
    background: radial-gradient(circle, rgba(255, 159, 0, 0.08) 0%, rgba(7, 8, 12, 0.9) 80%),
                linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 100% 100%, 15px 15px;
    border-bottom: 2px solid var(--volt-orange);
}

.industrial-pic {
    background: radial-gradient(circle, rgba(0, 255, 102, 0.08) 0%, rgba(7, 8, 12, 0.9) 80%),
                linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 100% 100%, 15px 15px;
    border-bottom: 2px solid var(--laser-green);
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
}

.item-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 0 15px cubic-bezier(0.1, 0.8, 0.3, 1));
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.portfolio-item:hover .item-icon {
    transform: scale(1.12);
    opacity: 1;
}

.item-overlay-title {
    position: absolute;
    bottom: 15px;
    left: 20px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.05em;
    background: rgba(0,0,0,0.6);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
}

.portfolio-info {
    padding: 25px;
}

.info-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.info-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.info-tags {
    display: flex;
    gap: 8px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--text-secondary);
}

/* CTA Terminal Form Styling */
.terminal-section {
    z-index: 5;
}

.terminal-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.terminal-bar {
    background: #141822;
    height: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 15px;
    position: relative;
}

.terminal-bar .dots {
    display: flex;
    gap: 8px;
}

.dot-btn {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot-btn.red { background: #ff5f56; }
.dot-btn.yellow { background: #ffbd2e; }
.dot-btn.green { background: #27c93f; }

.title-bar {
    position: absolute;
    width: 100%;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
    pointer-events: none;
    left: 0;
}

.terminal-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: rgba(8, 10, 16, 0.95);
    min-height: 460px;
    backdrop-filter: blur(15px);
}

.terminal-form-side {
    padding: 35px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-line {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 25px;
}

.prompt {
    color: var(--neon-cyan);
}

.cmd-echo {
    color: var(--text-primary);
}

.cyber-form-element {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.terminal-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.input-wrap {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0 12px;
    transition: var(--transition-fast);
}

.input-wrap:focus-within {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

.input-cursor {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--neon-cyan);
    margin-right: 10px;
    user-select: none;
}

.input-wrap input, .input-wrap textarea {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    width: 100%;
    padding: 12px 0;
}

.input-wrap textarea {
    resize: none;
}

.input-wrap input::placeholder, .input-wrap textarea::placeholder {
    color: var(--text-muted);
}

.terminal-submit-btn {
    background: rgba(255, 159, 0, 0.05);
    border: 1px solid var(--volt-orange);
    color: var(--volt-orange);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 16px;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    box-shadow: 0 0 15px rgba(255, 159, 0, 0.1);
}

.terminal-submit-btn:hover {
    background: var(--volt-orange);
    color: var(--cyber-bg);
    box-shadow: 0 0 25px var(--volt-orange);
}

/* Logging screen output */
.terminal-logs-side {
    background: rgba(5, 6, 10, 0.98);
    padding: 30px;
    font-family: var(--font-mono);
    display: flex;
    flex-direction: column;
}

.logs-header {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.logs-content {
    flex: 1;
    overflow-y: auto;
    font-size: 0.72rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.log-line {
    word-break: break-all;
}

.log-line.success {
    color: var(--laser-green);
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.25);
}

.log-line.error {
    color: #ff5f56;
}

.blink-line {
    color: var(--text-primary);
}

/* Cyber Footer */
.cyber-footer {
    background: rgba(5, 6, 9, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 80px 8% 40px;
}

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

.brand-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 20px;
    max-width: 380px;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contact-item i {
    width: 20px;
}

.footer-hours p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.footer-hours strong {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 30px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes boltPulse {
    0%, 100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 5px var(--volt-orange)); }
    50% { opacity: 0.7; transform: scale(0.95); filter: drop-shadow(0 0 1px rgba(0,0,0,0)); }
}

@keyframes indicatorPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

@keyframes rotateHolo1 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotateHolo2 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes nodePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0; }
}

@keyframes flowElectronsPower {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -240; }
}

@keyframes flowElectronsWeak {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -180; }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    section {
        padding: 80px 5% 60px;
    }
    
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        gap: 30px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .simulator-container {
        grid-template-columns: 1fr;
    }

    .sim-controls {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sim-btn {
        padding: 12px 16px;
    }

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

    .standards-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .terminal-main {
        grid-template-columns: 1fr;
    }

    .terminal-form-side {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

@media (max-width: 768px) {
    .cyber-header {
        padding: 0 5%;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(7, 8, 12, 0.98);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        gap: 40px;
        transition: var(--transition-smooth);
        z-index: 999;
    }

    .nav-menu.open {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

/* ==========================================================================
   Call Modal — Всплывающее окно "Вызвать электрика"
   ========================================================================== */
.call-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.call-modal-overlay.active {
    display: flex;
}

.call-modal-box {
    position: relative;
    background: #0d1119;
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 16px;
    padding: 40px 36px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow:
        0 0 40px rgba(0, 229, 255, 0.12),
        0 20px 60px rgba(0, 0, 0, 0.6);
    text-align: center;
    animation: modalSlideIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* Крестик закрытия */
.call-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    z-index: 2;
}

.call-modal-close:hover,
.call-modal-close:focus-visible {
    background: rgba(255, 80, 80, 0.25);
    border-color: rgba(255, 80, 80, 0.6);
    transform: rotate(90deg);
    outline: none;
}

/* Иконка молнии */
.call-modal-icon {
    font-size: 2rem;
    color: var(--volt-orange);
    filter: drop-shadow(0 0 10px var(--volt-orange-glow));
    margin-bottom: 14px;
}

.call-modal-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.call-modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

/* Карточки контактов */
.call-modal-contacts {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.call-modal-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 229, 255, 0.15);
    background: rgba(0, 229, 255, 0.04);
    text-decoration: none;
    color: inherit;
    transition: background 0.22s, border-color 0.22s, transform 0.22s, box-shadow 0.22s;
    text-align: left;
}

.call-modal-link:hover,
.call-modal-link:focus-visible {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--neon-cyan);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.15);
    outline: none;
}

.call-modal-link:active {
    transform: translateY(0);
}

.call-modal-phone-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--neon-cyan);
    flex-shrink: 0;
    transition: background 0.22s;
}

.call-modal-link:hover .call-modal-phone-icon {
    background: rgba(0, 229, 255, 0.2);
}

.call-modal-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.call-modal-name {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.call-modal-number {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--neon-cyan);
    letter-spacing: 0.02em;
}

.call-modal-hours {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Мобильная адаптация */
@media (max-width: 480px) {
    .call-modal-box {
        padding: 36px 20px 28px;
        border-radius: 14px;
    }

    .call-modal-title {
        font-size: 1.2rem;
    }

    .call-modal-number {
        font-size: 0.95rem;
    }

    .call-modal-link {
        padding: 14px 16px;
        gap: 12px;
    }

    .call-modal-phone-icon {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}
