/* ============================================
   ПОЛЯРНЫЙ КОД — STYLE.CSS
   Северный техно-премиум · Arctic digital luxury
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Цветовая палитра */
    --bg-deep: #04070d;
    --bg-graphite: #0a0f1a;
    --bg-card: rgba(15, 23, 38, 0.55);
    --bg-card-hover: rgba(22, 33, 54, 0.7);

    --navy: #0f1a2e;
    --arctic-blue: #60a5fa;
    --cyan: #7dd3fc;
    --cyan-bright: #38bdf8;
    --violet: #a78bfa;
    --violet-deep: #8b5cf6;

    --text-primary: #f0f6ff;
    --text-secondary: #b4c2d8;
    --text-muted: #6b7a94;
    --text-mono: #9bb3d4;

    --border: rgba(125, 211, 252, 0.12);
    --border-strong: rgba(125, 211, 252, 0.25);
    --border-violet: rgba(167, 139, 250, 0.2);

    --glow-cyan: 0 0 40px rgba(56, 189, 248, 0.25);
    --glow-violet: 0 0 40px rgba(167, 139, 250, 0.25);
    --glow-blue: 0 0 60px rgba(96, 165, 250, 0.15);

    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.03) inset;
    --shadow-elev: 0 20px 60px rgba(0, 0, 0, 0.5);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --container: 1240px;
    --header-h: 76px;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "SF Pro Display", "Helvetica Neue", "Inter", "Roboto", "Arial", sans-serif;
    --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Menlo", "Monaco", "Consolas", "Courier New", monospace;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-deep);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
}

/* Глобальный фон с aurora */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(56, 189, 248, 0.08), transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 10%, rgba(167, 139, 250, 0.07), transparent 60%),
        radial-gradient(ellipse 100% 60% at 50% 100%, rgba(96, 165, 250, 0.05), transparent 60%),
        linear-gradient(180deg, #04070d 0%, #060a14 50%, #04070d 100%);
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(125, 211, 252, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 211, 252, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 80%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

::selection { background: rgba(125, 211, 252, 0.3); color: #fff; }

:focus-visible {
    outline: 2px solid var(--cyan-bright);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- CONTAINER ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn-sm { padding: 10px 20px; font-size: 14px; }

.btn-primary {
    background: linear-gradient(135deg, #38bdf8 0%, #6366f1 60%, #a78bfa 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25), 0 0 0 1px rgba(125, 211, 252, 0.3) inset;
}
.btn-primary::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.7s var(--ease);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(56, 189, 248, 0.4), 0 0 0 1px rgba(125, 211, 252, 0.5) inset;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    background: rgba(125, 211, 252, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover {
    background: rgba(125, 211, 252, 0.1);
    border-color: rgba(125, 211, 252, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(125, 211, 252, 0.15);
}

/* ---------- HEADER ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(4, 7, 13, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: all 0.4s var(--ease);
}
.site-header.scrolled {
    background: rgba(4, 7, 13, 0.85);
    border-bottom-color: var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    transition: opacity 0.3s var(--ease);
    flex-shrink: 0;
}
.logo:hover { opacity: 0.85; }

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 12px rgba(125, 211, 252, 0.4));
    flex-shrink: 0;
}
.logo-mark svg { width: 100%; height: 100%; }

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.logo-line-1 {
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
}
.logo-line-2 {
    font-size: 19px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #7dd3fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.02em;
    margin-top: 3px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.main-nav ul {
    display: flex;
    gap: 28px;
    align-items: center;
}
.main-nav ul a {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    transition: color 0.25s var(--ease);
}
.main-nav ul a::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    transition: width 0.3s var(--ease);
}
.main-nav ul a:hover {
    color: var(--text-primary);
}
.main-nav ul a:hover::after { width: 100%; }

.burger {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(125, 211, 252, 0.04);
    transition: all 0.3s var(--ease);
}
.burger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--header-h) + 60px) 0 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    z-index: 1;
}

.hero-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 60% 80% at 50% 100%, rgba(56, 189, 248, 0.18), transparent 70%),
        radial-gradient(ellipse 50% 60% at 80% 30%, rgba(167, 139, 250, 0.15), transparent 70%),
        radial-gradient(ellipse 50% 60% at 15% 60%, rgba(96, 165, 250, 0.12), transparent 70%),
        linear-gradient(180deg, #050912 0%, #0a1228 50%, #04070d 100%);
    background-image:
        radial-gradient(ellipse 60% 80% at 50% 100%, rgba(56, 189, 248, 0.18), transparent 70%),
        radial-gradient(ellipse 50% 60% at 80% 30%, rgba(167, 139, 250, 0.15), transparent 70%),
        radial-gradient(ellipse 50% 60% at 15% 60%, rgba(96, 165, 250, 0.12), transparent 70%),
        url('assets/images/hero-poster.jpg'),
        linear-gradient(180deg, #050912 0%, #0a1228 50%, #04070d 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.aurora-layer {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: 2;
    will-change: transform;
}
.aurora-1 {
    width: 700px; height: 700px;
    top: -200px; left: -150px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, transparent 70%);
    animation: auroraFloat1 18s ease-in-out infinite;
}
.aurora-2 {
    width: 600px; height: 600px;
    top: 20%; right: -100px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.35) 0%, transparent 70%);
    animation: auroraFloat2 22s ease-in-out infinite;
}
.aurora-3 {
    width: 500px; height: 500px;
    bottom: -150px; left: 30%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.3) 0%, transparent 70%);
    animation: auroraFloat3 25s ease-in-out infinite;
}

@keyframes auroraFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 30px) scale(1.1); }
}
@keyframes auroraFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 50px) scale(0.95); }
}
@keyframes auroraFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(1.05); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background-image:
        linear-gradient(rgba(125, 211, 252, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 211, 252, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black, transparent 80%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    background:
        linear-gradient(180deg, rgba(4, 7, 13, 0.5) 0%, rgba(4, 7, 13, 0.3) 40%, rgba(4, 7, 13, 0.85) 100%),
        linear-gradient(90deg, rgba(4, 7, 13, 0.4) 0%, transparent 50%, rgba(4, 7, 13, 0.4) 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    z-index: 5;
}

.hero-content { max-width: 620px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(125, 211, 252, 0.08);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    letter-spacing: 0.04em;
}
.hero-badge .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--cyan-bright);
    box-shadow: 0 0 12px var(--cyan-bright);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, #7dd3fc 0%, #60a5fa 40%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 18px;
    max-width: 580px;
}

.hero-meta {
    font-size: 14px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ---------- HERO TERMINAL ---------- */
.hero-visual {
    position: relative;
    height: 480px;
}

.terminal-card {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 460px;
    background: rgba(8, 14, 28, 0.7);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(56, 189, 248, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.05) inset;
    overflow: hidden;
    z-index: 2;
    animation: terminalFloat 6s ease-in-out infinite;
}

@keyframes terminalFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-8px); }
}

.terminal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.05), transparent 50%, rgba(167, 139, 250, 0.05));
    pointer-events: none;
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(4, 7, 13, 0.6);
    position: relative;
}
.terminal-dots {
    display: flex;
    gap: 7px;
}
.terminal-dots span {
    width: 11px; height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}
.terminal-dots span:nth-child(1) { background: #ff5f57; opacity: 0.8; }
.terminal-dots span:nth-child(2) { background: #febc2e; opacity: 0.8; }
.terminal-dots span:nth-child(3) { background: #28c840; opacity: 0.8; }

.terminal-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.terminal-body {
    padding: 22px 22px 26px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--text-mono);
    min-height: 280px;
}

.terminal-body .line {
    opacity: 0;
    animation: typeLine 0.4s var(--ease) forwards;
}
.terminal-body .line:nth-child(1) { animation-delay: 0.3s; }
.terminal-body .line:nth-child(2) { animation-delay: 0.7s; }
.terminal-body .line:nth-child(3) { animation-delay: 1.1s; }
.terminal-body .line:nth-child(4) { animation-delay: 1.4s; }
.terminal-body .line:nth-child(5) { animation-delay: 1.7s; }
.terminal-body .line:nth-child(6) { animation-delay: 2.0s; }
.terminal-body .line:nth-child(7) { animation-delay: 2.3s; }
.terminal-body .line:nth-child(8) { animation-delay: 2.6s; }
.terminal-body .line:nth-child(9) { animation-delay: 2.9s; }

@keyframes typeLine {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.terminal-body .prompt { color: var(--cyan); margin-right: 6px; }
.terminal-body .cmd { color: #fff; }
.terminal-body .key { color: var(--text-muted); }
.terminal-body .ok { color: #4ade80; }
.terminal-body .muted { color: var(--text-muted); font-size: 12.5px; }

.cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--cyan-bright);
    margin-left: 4px;
    vertical-align: middle;
    box-shadow: 0 0 8px var(--cyan-bright);
    animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

/* Floating cards */
.float-card {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: rgba(8, 14, 28, 0.7);
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    font-size: 12.5px;
    color: var(--text-secondary);
    font-weight: 500;
    z-index: 3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 30px rgba(56, 189, 248, 0.12);
    white-space: nowrap;
    animation: floatCard 6s ease-in-out infinite;
}
.float-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
}
.card-cloud  { top: 6%;  left: -8%;  animation-delay: 0s; }
.card-ssl    { top: 18%; right: -5%; animation-delay: 1s; }
.card-api    { top: 50%; right: -10%; animation-delay: 2s; }
.card-linux  { bottom: 12%; left: -10%; animation-delay: 1.5s; }
.card-deploy { bottom: 4%; right: 8%; animation-delay: 2.5s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 1.5px solid var(--border-strong);
    border-radius: 14px;
    z-index: 10;
}
.scroll-hint span {
    display: block;
    width: 3px;
    height: 8px;
    background: var(--cyan);
    border-radius: 2px;
    margin: 6px auto 0;
    animation: scrollDown 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--cyan);
}
@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.3; }
    100% { transform: translateY(0); opacity: 1; }
}

/* ---------- SECTIONS COMMON ---------- */
.section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 70px;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan);
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(125, 211, 252, 0.08);
    border: 1px solid var(--border);
    margin-bottom: 20px;
    font-family: var(--font-mono);
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.section-lead {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto;
}

/* ---------- GLASS CARD ---------- */
.glass-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: var(--shadow-card);
    transition: all 0.4s var(--ease);
    overflow: hidden;
}
.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* ---------- ABOUT ---------- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    padding: 40px 32px;
    text-align: left;
}
.about-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(56, 189, 248, 0.12);
}
.about-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.about-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(167, 139, 250, 0.15));
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--cyan);
    transition: all 0.3s var(--ease);
}
.card-icon svg { width: 26px; height: 26px; }

.about-card:hover .card-icon {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(167, 139, 250, 0.25));
    transform: scale(1.05) rotate(-3deg);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

/* ---------- SERVICES ---------- */
.services { background: linear-gradient(180deg, transparent, rgba(10, 15, 26, 0.4), transparent); }

.bg-aurora {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    z-index: 0;
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(56, 189, 248, 0.08), transparent 70%),
        radial-gradient(ellipse 50% 30% at 30% 80%, rgba(167, 139, 250, 0.06), transparent 70%);
    background-image:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(56, 189, 248, 0.08), transparent 70%),
        url('assets/images/aurora-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 30%, transparent 80%);
}

.aurora-soft { opacity: 0.3; }

.services .container { position: relative; z-index: 1; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 36px 32px;
    position: relative;
    transition: all 0.4s var(--ease);
}
.service-card .card-num {
    position: absolute;
    top: 24px;
    right: 28px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}
.service-card h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.3;
}
.service-card p {
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.65;
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(56, 189, 248, 0.15);
}
.service-card:hover .card-icon {
    transform: scale(1.05);
    color: var(--cyan-bright);
}

/* ---------- APPROACH ---------- */
.flow {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    margin: 0 auto 70px;
    max-width: 1100px;
}

.flow-step {
    flex: 1;
    text-align: center;
    padding: 30px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s var(--ease);
}
.flow-step:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.15);
}

.flow-circle {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(167, 139, 250, 0.2));
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--cyan);
    font-weight: 600;
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.2), inset 0 0 20px rgba(125, 211, 252, 0.05);
}

.flow-step h4 {
    font-size: 17px;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.flow-step p {
    font-size: 13.5px;
    color: var(--text-muted);
}

.flow-line {
    align-self: center;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, var(--cyan), transparent, var(--violet));
    position: relative;
    flex-shrink: 0;
}
.flow-line::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 6px;
    height: 5px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--cyan);
    animation: flowDot 3s linear infinite;
}
@keyframes flowDot {
    0% { left: 0; opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.badge {
    padding: 9px 18px;
    background: rgba(125, 211, 252, 0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13.5px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    transition: all 0.3s var(--ease);
    cursor: default;
}
.badge:hover {
    background: rgba(125, 211, 252, 0.12);
    border-color: var(--border-strong);
    color: var(--cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.2);
}

/* ---------- INFRASTRUCTURE ---------- */
.bg-polar {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 50%, rgba(96, 165, 250, 0.06), transparent 70%);
    background-image:
        radial-gradient(ellipse 70% 50% at 50% 50%, rgba(96, 165, 250, 0.06), transparent 70%),
        url('assets/images/polar-landscape.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    pointer-events: none;
    mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
}
.infrastructure .container { position: relative; z-index: 1; }

.infra-pipeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 auto 60px;
    max-width: 1100px;
    padding: 36px 24px;
    background: rgba(8, 14, 28, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.pipe-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.pipe-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(167, 139, 250, 0.15));
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    box-shadow: inset 0 0 16px rgba(125, 211, 252, 0.08), 0 0 20px rgba(56, 189, 248, 0.15);
    transition: all 0.3s var(--ease);
}
.pipe-icon svg { width: 24px; height: 24px; }
.pipe-node:hover .pipe-icon {
    transform: scale(1.08);
    box-shadow: inset 0 0 16px rgba(125, 211, 252, 0.12), 0 0 30px rgba(56, 189, 248, 0.3);
}
.pipe-label {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}
.pipe-arrow {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    position: relative;
    min-width: 20px;
    opacity: 0.4;
}
.pipe-arrow::after {
    content: "";
    position: absolute;
    right: -2px;
    top: -3px;
    width: 0; height: 0;
    border-left: 6px solid var(--violet);
    border-top: 3.5px solid transparent;
    border-bottom: 3.5px solid transparent;
}

.infra-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.infra-card {
    padding: 28px 24px;
    transition: all 0.4s var(--ease);
}
.infra-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.infra-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.infra-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(56, 189, 248, 0.12);
}

/* ---------- EXAMPLES ---------- */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 1000px;
    margin: 0 auto;
}

.example-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.3s var(--ease);
    cursor: default;
}
.example-item:hover {
    border-color: var(--border-strong);
    transform: translateX(6px);
    background: var(--bg-card-hover);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.12);
}
.example-item:hover .ex-num {
    color: var(--cyan-bright);
}

.ex-num {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--cyan);
    font-weight: 600;
    flex-shrink: 0;
    transition: color 0.3s;
}

/* ---------- ADVANTAGES ---------- */
.adv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.adv-card {
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease);
}

.adv-glow {
    position: absolute;
    top: -50%; right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    pointer-events: none;
}
.adv-card:hover .adv-glow { opacity: 1; }

.adv-card h3 {
    font-size: 19px;
    margin-bottom: 14px;
    color: var(--text-primary);
    position: relative;
    padding-left: 16px;
}
.adv-card h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 14px;
    background: linear-gradient(180deg, var(--cyan), var(--violet));
    border-radius: 2px;
    box-shadow: 0 0 8px var(--cyan);
}
.adv-card p {
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.65;
}
.adv-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(56, 189, 248, 0.12);
}

/* ---------- TIMELINE ---------- */
.timeline {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--cyan), var(--violet) 50%, transparent);
    opacity: 0.4;
}

.tl-item {
    display: flex;
    gap: 28px;
    margin-bottom: 28px;
    position: relative;
}

.tl-marker {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(167, 139, 250, 0.2));
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.2), inset 0 0 12px rgba(125, 211, 252, 0.05);
    z-index: 2;
    background-color: var(--bg-deep);
}

.tl-content {
    flex: 1;
    padding: 22px 28px;
    transition: all 0.3s var(--ease);
}
.tl-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.tl-content p {
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.6;
}
.tl-item:hover .tl-content {
    transform: translateX(6px);
    border-color: var(--border-strong);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.12);
}

/* ---------- LEGAL ---------- */
.legal-doc {
    max-width: 820px;
    margin: 0 auto;
    padding: 50px 50px 44px;
    position: relative;
    background:
        linear-gradient(135deg, rgba(15, 26, 46, 0.7) 0%, rgba(8, 14, 28, 0.85) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.doc-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: var(--cyan);
    opacity: 0.4;
}
.doc-corner-tl { top: 14px; left: 14px; border-top: 1px solid; border-left: 1px solid; }
.doc-corner-tr { top: 14px; right: 14px; border-top: 1px solid; border-right: 1px solid; }
.doc-corner-bl { bottom: 14px; left: 14px; border-bottom: 1px solid; border-left: 1px solid; }
.doc-corner-br { bottom: 14px; right: 14px; border-bottom: 1px solid; border-right: 1px solid; }

.doc-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px dashed var(--border);
}
.doc-stamp {
    width: 60px;
    height: 60px;
    color: var(--cyan);
    flex-shrink: 0;
    animation: stampRotate 30s linear infinite;
}
@keyframes stampRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.doc-stamp svg { width: 100%; height: 100%; }

.doc-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--cyan);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.doc-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
}

.doc-list {
    display: flex;
    flex-direction: column;
}
.doc-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(125, 211, 252, 0.06);
    align-items: baseline;
}
.doc-row:last-child { border-bottom: none; }
.doc-row dt {
    font-size: 13.5px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}
.doc-row dd {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-word;
}

/* ---------- CONTACTS ---------- */
.contacts-wrap {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}

.contacts-info {
    padding: 44px 40px;
}

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 36px;
}
.contacts-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.contacts-list li:last-child { border-bottom: none; padding-bottom: 0; }

.ci-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: var(--font-mono);
}
.ci-value {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s;
}
a.ci-value:hover {
    color: var(--cyan);
}

.contacts-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.contacts-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(8, 14, 28, 0.5);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    padding: 32px;
}
.cv-glow {
    position: absolute;
    top: 30%; left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.3), transparent 70%);
    filter: blur(40px);
    animation: pulseGlow 4s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}
.cv-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(125, 211, 252, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 211, 252, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(circle at 50% 30%, black, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 50% 30%, black, transparent 70%);
}
.cv-pulse {
    position: absolute;
    top: 30%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cyan-bright);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--cyan-bright);
}
.cv-pulse::before, .cv-pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid var(--cyan);
    animation: pulseRing 2.5s ease-out infinite;
}
.cv-pulse::after { animation-delay: 1.25s; }
@keyframes pulseRing {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(8); opacity: 0; }
}

.cv-text {
    position: relative;
    z-index: 2;
    font-family: var(--font-mono);
}
.cv-line {
    font-size: 13.5px;
    color: var(--cyan);
    margin-bottom: 6px;
    letter-spacing: 0.04em;
}
.cv-line:last-child { color: var(--text-secondary); margin-bottom: 0; }

/* ---------- FOOTER ---------- */
.site-footer {
    position: relative;
    padding: 80px 0 32px;
    background: rgba(2, 4, 9, 0.6);
    border-top: 1px solid var(--border);
    overflow: hidden;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
    opacity: 0.6;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .logo-footer { margin-bottom: 16px; }
.footer-tag {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 320px;
}

.footer-col h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--cyan);
    margin-bottom: 18px;
    font-family: var(--font-mono);
    font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li { font-size: 14px; color: var(--text-secondary); }
.footer-col a:hover { color: var(--cyan); }

.footer-legal li { font-size: 13px; line-height: 1.5; }

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- COOKIE NOTICE ---------- */
.cookie-notice {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    z-index: 200;
    max-width: 720px;
    margin: 0 auto;
    transform: translateY(140%);
    opacity: 0;
    transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
    pointer-events: none;
}
.cookie-notice.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    background: rgba(8, 14, 28, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(56, 189, 248, 0.1);
}

.cookie-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(125, 211, 252, 0.1);
    border-radius: 10px;
    border: 1px solid var(--border);
}
.cookie-icon svg { width: 22px; height: 22px; }

.cookie-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

.cookie-notice .btn { flex-shrink: 0; }

/* ---------- REVEAL ANIMATION ---------- */
.reveal, .fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    will-change: opacity, transform;
}
.reveal.visible, .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }
.fade-in:nth-child(5) { transition-delay: 0.5s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
    .hero-container { gap: 40px; }
    .hero-visual { height: 440px; }
    .terminal-card { max-width: 400px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .infra-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .adv-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid > :nth-child(3) { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; width: 100%; }
}

@media (max-width: 900px) {
    .main-nav { display: none; }
    .burger { display: flex; }

    .main-nav.open {
        display: flex;
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: rgba(4, 7, 13, 0.96);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 0;
        border-bottom: 1px solid var(--border);
        animation: slideDown 0.3s var(--ease);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    .main-nav.open ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        margin-bottom: 16px;
    }
    .main-nav.open ul li {
        border-bottom: 1px solid var(--border);
    }
    .main-nav.open ul a {
        display: block;
        padding: 16px 8px;
        font-size: 16px;
    }
    .main-nav.open .nav-cta {
        margin-top: 8px;
    }
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .hero { padding-top: calc(var(--header-h) + 30px); }
    .hero-container { grid-template-columns: 1fr; gap: 50px; }
    .hero-visual { height: 420px; max-width: 460px; margin: 0 auto; width: 100%; }
    .scroll-hint { display: none; }

    .section { padding: 80px 0; }
    .section-head { margin-bottom: 50px; }

    .contacts-wrap { grid-template-columns: 1fr; }
    .contacts-visual { min-height: 280px; }

    .examples-grid { grid-template-columns: 1fr; }

    .legal-doc { padding: 36px 28px 32px; }
    .doc-row { grid-template-columns: 1fr; gap: 4px; }
    .doc-row dt { font-size: 12px; }

    .flow { flex-wrap: wrap; }
    .flow-line { display: none; }
    .flow-step { flex: 1 1 calc(50% - 12px); min-width: 140px; }

    .infra-pipeline { gap: 12px; padding: 24px 16px; }
    .pipe-arrow { display: none; }
    .pipe-node { flex: 1 1 calc(33% - 12px); }

    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .container { padding: 0 18px; }
    :root { --header-h: 68px; }

    .header-container { gap: 12px; }
    .logo-mark { width: 32px; height: 32px; }
    .logo-line-1 { font-size: 10px; }
    .logo-line-2 { font-size: 17px; }

    .hero { padding-top: calc(var(--header-h) + 20px); padding-bottom: 60px; }
    .hero-content { text-align: left; }
    .hero-actions { width: 100%; }
    .hero-actions .btn { flex: 1 1 auto; min-width: 140px; justify-content: center; }
    .hero-visual { height: 380px; }
    .terminal-card { max-width: 340px; }
    .terminal-body { padding: 18px; font-size: 12.5px; min-height: 240px; }
    .float-card { font-size: 11px; padding: 7px 11px; }
    .card-cloud { left: 0; }
    .card-ssl { right: 0; }
    .card-api { right: -2%; }
    .card-linux { left: 0; }
    .card-deploy { right: 5%; }

    .section { padding: 64px 0; }
    .about-grid { grid-template-columns: 1fr; }
    .about-grid > :nth-child(3) { max-width: 100%; }
    .services-grid { grid-template-columns: 1fr; }
    .adv-grid { grid-template-columns: 1fr; }
    .infra-grid { grid-template-columns: 1fr; }

    .about-card, .service-card, .adv-card { padding: 30px 24px; }
    .infra-card { padding: 24px 20px; }

    .flow-step { flex: 1 1 100%; }

    .pipe-node { flex: 1 1 calc(50% - 8px); }

    .timeline::before { left: 18px; }
    .tl-item { gap: 20px; }
    .tl-marker { width: 38px; height: 38px; font-size: 14px; }
    .tl-content { padding: 18px 20px; }

    .contacts-info { padding: 32px 24px; }
    .ci-value { font-size: 16px; }
    .contacts-actions { flex-direction: column; }
    .contacts-actions .btn { width: 100%; }

    .legal-doc { padding: 28px 22px; }
    .doc-header { flex-direction: column; align-items: flex-start; gap: 14px; }
    .doc-stamp { width: 44px; height: 44px; }
    .doc-title { font-size: 19px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }

    .cookie-notice { left: 12px; right: 12px; bottom: 12px; }
    .cookie-inner { flex-direction: column; align-items: flex-start; padding: 16px; gap: 14px; }
    .cookie-notice .btn { width: 100%; }

    .btn { padding: 13px 22px; font-size: 14px; }
}

@media (max-width: 380px) {
    .hero-title { font-size: 1.85rem; }
    .terminal-card { max-width: 100%; }
    .float-card { font-size: 10.5px; padding: 6px 10px; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-video { display: none; }
    .reveal, .fade-in { opacity: 1; transform: none; }
    .aurora-1, .aurora-2, .aurora-3,
    .terminal-card, .float-card,
    .cv-glow, .cv-pulse, .cv-pulse::before, .cv-pulse::after,
    .doc-stamp, .scroll-hint span, .cursor, .hero-badge .dot {
        animation: none !important;
    }
}