/* n8n-style dark theme */
:root {
    --bg: #0f1724;
    --card: #0b1220;
    --muted: #98a0b3;
    --accent1: #7c5cff;
    --accent2: #3ad1ff;
    --glass: rgba(255, 255, 255, 0.03);
    --radius: 14px;
    --orange: #ff6b35;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(180deg, #071029 0%, #071226 60%);
    color: #e6eef8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.45;
    overflow-x: hidden;
}

body.preloader-active {
    overflow: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #071029 0%, #071226 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader__content {
    text-align: center;
    max-width: 400px;
    width: 100%;
    padding: 40px;
}

.preloader__logo {
    margin-bottom: 40px;
}

.preloader-logo-kz {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 12px;
}

.preloader-logo-k {
    font-size: 48px;
    font-weight: 800;
    color: #3ad1ff;
    animation: logoPulse 2s ease-in-out infinite;
}

.preloader-logo-z {
    font-size: 48px;
    font-weight: 800;
    color: #7c5cff;
    animation: logoPulse 2s ease-in-out infinite 0.2s;
}

.preloader-logo-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-top: 8px;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.preloader__network {
    margin: 40px 0;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-svg {
    width: 100%;
    max-width: 300px;
    height: 120px;
}

.preloader-node {
    filter: drop-shadow(0 0 8px currentColor);
}

.preloader-line {
    stroke-dasharray: 200;
    filter: drop-shadow(0 0 2px rgba(58, 209, 255, 0.5));
}

.preloader__text {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 1px;
}

.preloader__progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.preloader__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #7c5cff, #3ad1ff);
    border-radius: 2px;
    width: 0%;
    animation: progressLoad 2.5s ease-in-out forwards;
    box-shadow: 0 0 10px rgba(58, 209, 255, 0.5);
}

@keyframes progressLoad {
    0% {
        width: 0%;
    }
    30% {
        width: 40%;
    }
    60% {
        width: 75%;
    }
    90% {
        width: 95%;
    }
    100% {
        width: 100%;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px;
}

/* NAV */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 36, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-img {
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.brand h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.brand .muted {
    font-size: 12px;
    color: var(--muted);
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 12px;
    border-radius: 6px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: #e6eef8;
    background: rgba(124, 92, 255, 0.1);
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    width: 80%;
}

.cta-desktop {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cta-mobile {
    display: none;
}

.btn {
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: #e6eef8;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn.primary {
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    color: #021322;
    border: none;
}

.btn.primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn.whatsapp {
    background: #25D366;
    color: #fff;
    border: none;
}

.btn.whatsapp:hover {
    background: #20BA5A;
}

/* Mouse Trail Canvas */
.mouse-trail-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.6;
}

/* Network Background Animation */
.network-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.06;
}

#hero .network-bg {
    z-index: 0;
}

.network-bg svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.network-node {
    fill: #3ad1ff;
    filter: drop-shadow(0 0 4px currentColor);
    opacity: 0.6;
}

.network-line {
    stroke: url(#networkGradient);
    stroke-width: 1.5;
    fill: none;
    opacity: 0.4;
}

.network-bg defs linearGradient stop:first-child {
    stop-color: #7c5cff;
    stop-opacity: 0.3;
}

.network-bg defs linearGradient stop:last-child {
    stop-color: #3ad1ff;
    stop-opacity: 0.6;
}

/* HERO */
.hero {
    position: relative;
    overflow: hidden;
    padding: 120px 0 48px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg-visual {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero__content-wrapper {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 28px;
    align-items: center;
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.services .container,
.calculator .container {
    position: relative;
    z-index: 2;
}

#hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(124, 92, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(58, 209, 255, 0.1) 0%, transparent 50%);
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
    transform: translateY(var(--parallax-y, 0));
}

.hero h2 {
    font-size: 44px;
    margin: 0 0 16px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #e6eef8 0%, var(--accent2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero p {
    color: var(--muted);
    margin: 0 0 22px;
    max-width: 62ch;
    font-size: 16px;
    line-height: 1.6;
}

.kbd {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.03);
    font-weight: 600;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 16px;
}

.hero-visual {
    position: relative;
}

.network-diagram {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
    height: 400px;
    opacity: 0.4;
}

.hero-stats-card {
    background: linear-gradient(180deg, rgba(124, 92, 255, 0.08), rgba(58, 209, 255, 0.04));
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.network-svg {
    width: 100%;
    height: auto;
    max-height: 250px;
}

.network-node {
    filter: drop-shadow(0 0 8px rgba(124, 92, 255, 0.6));
    animation: pulse 2s ease-in-out infinite;
}

.network-node.node-2 {
    animation-delay: 0.3s;
}

.network-node.node-3 {
    animation-delay: 0.6s;
}

.network-node.node-4 {
    animation-delay: 0.9s;
}

.network-node.node-5 {
    animation-delay: 1.2s;
}

.network-node.node-6 {
    animation-delay: 1.5s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.network-line {
    stroke-dasharray: 5,5;
    animation: dash 3s linear infinite;
    filter: drop-shadow(0 0 2px rgba(58, 209, 255, 0.5));
}

@keyframes dash {
    to {
        stroke-dashoffset: -20;
    }
}

.data-packet {
    animation: movePacket 3s linear infinite;
}

@keyframes movePacket {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(120px, -20px);
        opacity: 0;
    }
}

.network-stats {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    justify-content: center;
}

.network-stats .stat-item {
    text-align: center;
}

.network-stats .stat-number {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.network-stats .stat-label {
    font-size: 12px;
    color: var(--muted);
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 12px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.workflow {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

.chip {
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* feature grid */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 34px;
}

.feature {
    background: var(--card);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.feature:hover::after {
    width: 300px;
    height: 300px;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(124, 92, 255, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(124, 92, 255, 0.15);
}

.feature h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
}

.feature p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

/* section */
section {
    position: relative;
    overflow: hidden;
}

section .container {
    padding-top: 60px;
    padding-bottom: 60px;
}

section[id]::after {
    transform: translateY(var(--parallax-y, 0));
    transition: transform 0.1s ease-out;
}

section > * {
    position: relative;
    z-index: 1;
}

h4.section-title {
    font-size: 20px;
    margin: 0 0 18px;
    font-weight: 700;
}

.section__header {
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.section__tag {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.03);
    font-weight: 600;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section__title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section__description {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
}

/* CTA strip */
.strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(124, 92, 255, 0.12), rgba(58, 209, 255, 0.06));
    margin-top: 28px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Services Section */
#services {
    background: var(--card);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.cable-visual {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.cable-svg {
    width: 100%;
    height: 100%;
}

.cable-path {
    stroke-dasharray: 10,5;
    animation: cableFlow 4s linear infinite;
    filter: drop-shadow(0 0 4px rgba(58, 209, 255, 0.4));
}

@keyframes cableFlow {
    to {
        stroke-dashoffset: -30;
    }
}

.cable-node {
    filter: drop-shadow(0 0 6px currentColor);
    animation: nodePulse 2s ease-in-out infinite;
}

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

#services::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(124, 92, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(58, 209, 255, 0.12) 0%, transparent 50%);
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
    transform: translateY(var(--parallax-y, 0));
}

/* Services Grid */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.service-card {
    background: var(--card);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 92, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(124, 92, 255, 0.5);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 30px rgba(124, 92, 255, 0.2);
}

.service-card:hover .service-card__icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(58, 209, 255, 0.6));
}

.service-card__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.1), rgba(58, 209, 255, 0.1));
    border-radius: 12px;
    padding: 12px;
    overflow: hidden;
}

.service-card__icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.service-card__icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(58, 209, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
    z-index: 0;
}

.service-icon-img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 4px 8px rgba(124, 92, 255, 0.3));
    color: var(--accent2);
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.service-card__icon svg,
.service-card__icon img {
    filter: drop-shadow(0 4px 8px rgba(124, 92, 255, 0.3));
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.service-card__icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.service-card:hover .service-card__icon {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(58, 209, 255, 0.2));
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(124, 92, 255, 0.4);
}

.service-card:hover .service-card__icon::before {
    width: 120px;
    height: 120px;
}

.service-card:hover .service-card__icon::after {
    transform: rotate(45deg) translate(100%, 100%);
}

.service-card:hover .service-icon-img {
    transform: scale(1.2);
    filter: drop-shadow(0 6px 12px rgba(58, 209, 255, 0.6));
    animation: iconPulse 1.5s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1.2);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.9;
    }
}

.service-card__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
}

.service-card__description {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 16px;
}

.service-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.service-card__features li {
    padding: 6px 0;
    color: var(--muted);
    font-size: 13px;
    position: relative;
    padding-left: 20px;
}

.service-card__features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent2);
    font-weight: bold;
}

.service-card__price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent2);
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.service-card__price::after {
    content: '→';
    position: absolute;
    right: 0;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--accent1);
}

.service-card:hover .service-card__price::after {
    opacity: 1;
    right: -20px;
}

/* Calculator Section */
#calculator {
    background: var(--bg);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

#calculator .container {
    padding-top: 0;
    padding-bottom: 0;
}

#calculator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(124, 92, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(58, 209, 255, 0.1) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

#calculator::after {
    content: '01001000 01100101 01101100 01101100 01101111 00100000 01010111 01101111 01110010 01101100 01100100 00100000 01001011 01011010 00101101 01001100 01101001 01101110 01100101 00100000 01010100 01100101 01101100 01100101 01100011 01101111 01101101 00100000 01010011 01101111 01101100 01110101 01110100 01101001 01101111 01101110 01110011';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: rgba(124, 92, 255, 0.12);
    white-space: pre;
    line-height: 2.5;
    word-spacing: 30px;
    letter-spacing: 10px;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
    transform: translateY(var(--parallax-y, 0)) rotate(-5deg);
    overflow: hidden;
    animation: binaryFloat 20s linear infinite;
}

@keyframes binaryFloat {
    0% {
        transform: translateY(0) rotate(-5deg);
    }
    100% {
        transform: translateY(-100px) rotate(-5deg);
    }
}

.calculator-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.1;
    background-image: 
        linear-gradient(45deg, transparent 48%, rgba(124, 92, 255, 0.1) 49%, rgba(124, 92, 255, 0.1) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(58, 209, 255, 0.1) 49%, rgba(58, 209, 255, 0.1) 51%, transparent 52%);
    background-size: 60px 60px;
}

/* Calculator */
.calculator__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.calculator__form {
    background: var(--card);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #e6eef8;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent1);
    background: rgba(255, 255, 255, 0.05);
}

.calculator__result {
    background: var(--card);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-placeholder {
    text-align: center;
    color: var(--muted);
    opacity: 0.5;
}

.result-content {
    width: 100%;
}

.result-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    text-align: center;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.result-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 20px;
    color: var(--accent2);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid rgba(58, 209, 255, 0.3);
}

.result-label {
    color: var(--muted);
    font-size: 14px;
}

.result-value {
    font-weight: 600;
    font-size: 14px;
}

/* About Section */
#about {
    background: var(--card);
    position: relative;
    overflow: hidden;
}

#about::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 70% 40%, rgba(58, 209, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 30% 80%, rgba(124, 92, 255, 0.15) 0%, transparent 50%);
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
    transform: translateY(var(--parallax-y, 0));
}

/* About */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.about__text {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.about__features {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: start;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--accent2);
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
}

.feature-item p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.about__image {
    position: relative;
}

.image-placeholder {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    color: var(--muted);
    opacity: 0.3;
}

/* Projects Section */
#projects {
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

#projects::after {
    content: '101010 110011 010101 111000 101101 011010 100111 001101 110100 010011 111001 100010 101111 011100 110001 010110 101001 111010 001011 100101 110110 011001 101000 010111 111100 001110 110011 101010 011101 100100 111001 010010';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: rgba(58, 209, 255, 0.12);
    white-space: pre;
    line-height: 2.5;
    word-spacing: 30px;
    letter-spacing: 12px;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
    transform: translateY(var(--parallax-y, 0)) rotate(3deg);
    overflow: hidden;
}

/* Projects */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.project-card {
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.project-card:hover {
    border-color: rgba(124, 92, 255, 0.3);
    transform: translateY(-2px);
}

.project-card__image {
    height: 160px;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.1), rgba(58, 209, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    color: var(--muted);
    font-weight: 700;
    font-size: 16px;
}

.project-card__content {
    padding: 18px;
}

.project-card__content h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
}

.project-card__content p {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 12px;
    line-height: 1.5;
}

.project-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent2);
}

/* News Section */
#news {
    background: var(--card);
    position: relative;
    overflow: hidden;
}

#news::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(124, 92, 255, 0.1) 0%, transparent 70%);
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
    transform: translateY(var(--parallax-y, 0));
}

/* News */
.news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.news-card {
    background: var(--card);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.news-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(124, 92, 255, 0.3);
    transform: translateY(-2px);
}

.news-card__date {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 10px;
    font-weight: 600;
}

.news-card__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.4;
}

.news-card__excerpt {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Contacts Section */
#contacts {
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

#contacts::after {
    content: 'KZ-LINE 2024 TELECOM SOLUTIONS KAZAKHSTAN ALMATY NETWORK INFRASTRUCTURE FIBER OPTICS STRUCTURED CABLING VIDEO SURVEILLANCE ACCESS CONTROL';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: rgba(124, 92, 255, 0.1);
    white-space: pre;
    line-height: 3;
    word-spacing: 50px;
    letter-spacing: 15px;
    text-transform: uppercase;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
    transform: translateY(var(--parallax-y, 0)) rotate(-2deg);
    overflow: hidden;
}

/* Contacts */
.contacts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.contacts__description {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.contacts__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    gap: 12px;
    align-items: start;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(4px);
}

.contact-icon {
    width: 36px;
    height: 36px;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent2);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.contact-item:hover .contact-icon {
    background: rgba(124, 92, 255, 0.1);
    border-color: rgba(124, 92, 255, 0.3);
    transform: scale(1.1);
}

.contact-item h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 2px;
}

.contact-item p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

.contact-item a {
    color: var(--accent2);
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: var(--accent1);
}

.contacts__form-wrapper {
    display: flex;
    align-items: start;
}

.contacts__form {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e6eef8;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--muted);
    opacity: 0.7;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent1);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.map-placeholder {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    opacity: 0.3;
    min-height: 200px;
}

/* Footer */
footer {
    padding: 32px 0 24px;
    color: var(--muted);
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 40px;
    background: var(--card);
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
}

.footer__logo {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.footer__description {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.footer__column h4 {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #e6eef8;
}

.footer__column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer__column a {
    color: var(--muted);
    font-size: 12px;
    transition: all 0.2s ease;
    padding: 2px 0;
    display: inline-block;
}

.footer__column a:hover {
    color: var(--accent2);
    transform: translateX(4px);
}


.footer__bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 11px;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
}

/* Partners Section */
#partners {
    background: var(--card);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

#partners::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(124, 92, 255, 0.08) 0%, transparent 70%);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
    transform: translateY(var(--parallax-y, 0));
}

.partners__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.partner-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 20px;
}

.partner-card:hover {
    border-color: rgba(124, 92, 255, 0.3);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(124, 92, 255, 0.15);
}

.partner-placeholder {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    opacity: 0.5;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal__content {
    position: relative;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 32px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 24px;
    color: var(--muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal__close:hover {
    border-color: rgba(255, 255, 255, 0.1);
    color: #e6eef8;
}

.modal__content h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
    color: #021322;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(124, 92, 255, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 92, 255, 0.4);
}

.scroll-top svg {
    width: 20px;
    height: 20px;
}

/* Utilities */
.muted {
    color: var(--muted);
}

.code-block {
    background: #021226;
    padding: 14px;
    border-radius: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
    font-size: 13px;
    color: #9fe9ff;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

/* Responsive */
@media (max-width: 980px) {
    .container {
        padding: 0 24px;
    }
    
    .hero__content-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-bg-visual {
        opacity: 0.2;
    }
    
    .network-diagram {
        max-width: 400px;
        height: 300px;
    }
    
    .features,
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    
    .section__header {
        padding: 0 10px;
    }
    
    .services__grid,
    .projects__grid,
    .news__grid {
        padding: 0 10px;
    }
    
    .calculator__wrapper,
    .about__grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    
    .contacts__grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 10px;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 24px;
    }
    
    .footer__bottom {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .partners__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero {
        padding: 100px 0 40px;
        min-height: auto;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .hero__content-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .hero-bg-visual {
        display: none;
    }
    
    .section__header {
        padding: 0;
        margin-bottom: 32px;
    }
    
    .section__title {
        font-size: 24px;
    }
    
    .section__description {
        font-size: 14px;
    }
    
    .features,
    .services__grid,
    .projects__grid,
    .news__grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0;
    }
    
    .service-card,
    .project-card,
    .news-card {
        padding: 20px;
    }
    
    .calculator__wrapper,
    .about__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }
    
    .contacts__grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0;
    }
    
    .cable-visual {
        height: 150px;
        opacity: 0.2;
    }
    
    .strip {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        padding: 16px;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .footer__bottom {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .partners__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .section__title {
        font-size: 20px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .service-card__icon {
        width: 48px;
        height: 48px;
    }
    
    .contact-item {
        padding: 10px;
    }
    
    .contact-icon {
        width: 32px;
        height: 32px;
    }
    
    .partners__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .partner-card {
        padding: 16px;
    }
    
    .footer__content {
        padding: 0 16px;
    }
    
    .footer__bottom {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Mobile menu toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
    position: relative;
}

.nav__toggle span {
    width: 24px;
    height: 2px;
    background: #e6eef8;
    transition: all 0.3s ease;
    border-radius: 2px;
}

@media (max-width: 980px) {
    .nav__toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: var(--card);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        padding: 80px 24px 24px;
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        width: 100%;
        padding: 14px 16px;
        margin-bottom: 8px;
        border-radius: 8px;
        text-align: left;
    }
    
    .nav-links a:hover {
        background: rgba(124, 92, 255, 0.15);
        transform: translateX(4px);
    }
    
    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .cta-desktop {
        display: none;
    }
    
    .cta-mobile {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
        padding-top: 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .cta-mobile .btn {
        width: 100%;
        justify-content: center;
    }
}
