
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --bg-primary: #ffffff;
            --bg-secondary: #f5f5f5;
            --text-primary: #0a0a0a;
            --text-secondary: #666666;
            --accent: #0a0a0a;
            --border: #e0e0e0;
            --card-bg: #ffffff;
            --shadow: rgba(0, 0, 0, 0.08);
            --grid-color: rgba(0,0,0,0.022);
        }

        [data-theme="dark"] {
            --bg-primary: #080808;
            --bg-secondary: #141414;
            --text-primary: #f0f0f0;
            --text-secondary: #888888;
            --accent: #f0f0f0;
            --border: #222222;
            --card-bg: #0f0f0f;
            --shadow: rgba(0, 0, 0, 0.6);
            --grid-color: rgba(255,255,255,0.016);
        }

        body {
            font-family: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            transition: background 0.3s ease, color 0.3s ease;
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* Custom Scrollbar */
        body::-webkit-scrollbar { width: 5px; }
        body::-webkit-scrollbar-track { background: var(--bg-secondary); }
        body::-webkit-scrollbar-thumb { background: var(--text-primary); border-radius: 10px; }
        body::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }
        body { scrollbar-width: thin; scrollbar-color: var(--text-primary) var(--bg-secondary); }

        /* Subtle grid background */
        /*
        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background-image:
                linear-gradient(var(--grid-color) 1px, transparent 1px),
                linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
            background-size: 60px 60px;
            z-index: 0;
            pointer-events: none;
        }
        */

        #particles-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            pointer-events: none;
        }

        .container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 20px;
            position: relative;
            z-index: 10;
        }

        /* ── HEADER ── */
        header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding: 40px 0;
            animation: fadeInDown 0.8s ease;
        }

        .logo {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 15px;
            font-weight: 600;
            letter-spacing: -0.5px;
            min-height: 60px;
            display: flex;
            align-items: flex-start;
            cursor: pointer;
            transition: opacity 0.3s ease;
            position: relative;
            width: 220px;
            gap: 10px;
        }

        .logo:hover { opacity: 0.75; }

        .logo-icon {
            transition: opacity 0.3s ease;
            opacity: 1;
            visibility: visible;
            flex-shrink: 0;
        }

        .logo-icon.hidden {
            opacity: 0;
            visibility: hidden;
            position: absolute;
        }

        .code-text {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 13px;
            color: var(--text-primary);
            white-space: pre;
            margin: 0;
            opacity: 0;
            line-height: 1.5;
            will-change: opacity;
        }

        .header-controls {
            display: flex;
            gap: 15px;
            align-items: flex-start;
        }

        .theme-toggle, .music-toggle {
            background: none;
            border: none;
            width: 32px;
            height: 32px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            color: var(--text-primary);
            padding: 0;
        }

        .theme-toggle:hover, .music-toggle:hover {
            transform: scale(1.15);
            opacity: 0.7;
        }

        .theme-icon, .music-icon {
            transition: all 0.3s ease;
            color: var(--text-primary);
            width: 32px;
            height: 32px;
        }

        /* ── HERO ── */
        /* нижний отступ компенсирует высоту COT-ленты в виджете */
        .hero {
            padding: 30px 0 0;
            animation: fadeIn 2s ease;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 48px;
        }

        .hero-content { flex: 1; min-width: 0; }

        .hero-widget {
            flex: 0 0 340px;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding-top: 20px;
            animation: fadeIn 2s ease 0.5s backwards;
        }

        /* ── Market Sessions widget ── */
        .ms-widget {
            position: relative;
            width: 100%;
            max-width: 340px;
            padding: 16px;
        }
        .ms-widget .ms-bracket {
            position: absolute;
            width: 16px; height: 16px;
            border-color: var(--text-secondary);
            opacity: 0.55;
            pointer-events: none;
        }
        .ms-widget .ms-bracket.tl { top: 0; left: 0; border-left: 1px solid; border-top: 1px solid; }
        .ms-widget .ms-bracket.tr { top: 0; right: 0; border-right: 1px solid; border-top: 1px solid; }
        .ms-widget .ms-bracket.bl { bottom: 0; left: 0; border-left: 1px solid; border-bottom: 1px solid; }
        .ms-widget .ms-bracket.br { bottom: 0; right: 0; border-right: 1px solid; border-bottom: 1px solid; }

        .ms-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            padding: 4px 4px 0;
            min-height: 28px;
        }
        .ms-head-left, .ms-head-right {
            display: flex;
            align-items: center;
            gap: 10px;
            position: relative;
        }
        .ms-title {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 10px;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: var(--text-primary);
        }
        .ms-rule {
            width: 18px; height: 1px;
            background: var(--border);
            position: relative;
        }
        .ms-rule::after {
            content: ''; position: absolute;
            right: -1px; top: -1px;
            width: 3px; height: 3px;
            background: var(--text-secondary);
            border-radius: 50%;
        }
        .ms-tz {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 10px;
            letter-spacing: 2px;
            color: var(--text-primary);
            border: 1px solid var(--border);
            background: transparent;
            border-radius: 99px;
            padding: 4px 9px;
            display: inline-flex;
            align-items: center;
            gap: 7px;
            cursor: pointer;
            transition: border-color 0.2s ease;
            font-weight: 500;
        }
        .ms-tz:hover { border-color: var(--text-primary); }
        .ms-tz .ms-chev {
            width: 5px; height: 5px;
            border-right: 1px solid currentColor;
            border-bottom: 1px solid currentColor;
            transform: rotate(45deg) translate(-1px,-1px);
            opacity: 0.7;
        }
        .ms-time {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 14px;
            font-weight: 500;
            letter-spacing: 1px;
            color: var(--text-primary);
            font-variant-numeric: tabular-nums;
        }
        .ms-time .ms-suffix {
            font-size: 9px;
            letter-spacing: 2px;
            color: var(--text-secondary);
            margin-left: 5px;
            font-weight: 400;
        }

        .ms-tz-pop {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 5px 0;
            min-width: 160px;
            box-shadow: 0 12px 28px var(--shadow);
            z-index: 20;
            display: none;
        }
        .ms-tz-pop.open { display: block; }
        .ms-tz-pop .ms-opt {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 7px 12px;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 10px;
            letter-spacing: 1.5px;
            color: var(--text-primary);
            cursor: pointer;
            transition: background 0.15s ease;
        }
        .ms-tz-pop .ms-opt:hover { background: var(--bg-secondary); }
        .ms-tz-pop .ms-opt.active { background: var(--text-primary); color: var(--bg-primary); }
        .ms-tz-pop .ms-opt .ms-off { color: var(--text-secondary); font-size: 9px; }
        .ms-tz-pop .ms-opt.active .ms-off { color: var(--bg-primary); opacity: 0.7; }

        .ms-dial { width: 100%; aspect-ratio: 1 / 1; margin-top: 12px; }
        .ms-dial svg { width: 100%; height: 100%; display: block; overflow: visible; }
        .ms-dial svg .ms-roman { font-family: 'Cormorant Garamond', 'IBM Plex Mono', serif; font-weight: 700; }
        .ms-dial svg text { font-family: 'IBM Plex Mono', monospace; }

        .ms-foot {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            padding: 12px 4px 0;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 9px;
            letter-spacing: 2px;
            color: var(--text-secondary);
            text-transform: uppercase;
        }
        .ms-foot .ms-active-name { color: var(--text-primary); font-weight: 500; }
        .ms-foot .ms-pulse {
            display: inline-block;
            width: 6px; height: 6px;
            border-radius: 50%;
            background: var(--text-primary);
            margin-right: 6px;
            vertical-align: middle;
            animation: msPulse 2s infinite ease-in-out;
        }
        /* ── COT percentile strip ── */
        .ms-cot {
            margin-top: 10px;
            padding: 10px 4px 0;
            border-top: 1px solid var(--border);
            font-family: 'IBM Plex Mono', monospace;
            text-transform: uppercase;
        }
        .ms-cot-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            font-size: 9px;
            letter-spacing: 2px;
            color: var(--text-secondary);
            margin-bottom: 10px;
        }
        .ms-cot-row {
            display: flex;
            justify-content: space-between;
            gap: 8px;
        }
        .ms-cot-item {
            display: inline-flex;
            align-items: baseline;
            gap: 6px;
        }
        .ms-cot-sym {
            font-size: 9px;
            letter-spacing: 1.5px;
            color: var(--text-secondary);
        }
        .ms-cot-val {
            font-size: 12px;
            font-weight: 500;
            letter-spacing: 0.5px;
            color: var(--text-primary);
            font-variant-numeric: tabular-nums;
        }
        .ms-cot-val.ext { color: #f39c12; }

        @keyframes msPulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.35; transform: scale(0.85); }
        }

        .hero-eyebrow {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 12px;
            font-weight: 400;
            color: var(--text-secondary);
            letter-spacing: 2px;
            text-transform: uppercase;
            margin-bottom: 20px;
            animation: slideInLeft 0.8s ease;
        }

        .hero h1 {
            font-size: clamp(30px, 4.8vw, 52px);
            font-weight: 800;
            line-height: 1.05;
            margin-bottom: 8px;
            letter-spacing: -2px;
            animation: slideInLeft 0.8s ease;
        }

        .hero h1 .cross {
            color: var(--text-secondary);
            font-weight: 400;
        }

        .hero .subtitle {
            font-size: 18px;
            font-weight: 400;
            color: var(--text-secondary);
            margin-bottom: 36px;
            font-family: 'IBM Plex Mono', monospace;
            animation: slideInLeft 0.8s ease 0.2s backwards;
        }

        .hero .description {
            max-width: 540px;
            font-size: 17px;
            line-height: 1.75;
            color: var(--text-secondary);
            margin-bottom: 44px;
            animation: slideInLeft 0.8s ease 0.35s backwards;
        }

        .cta-buttons {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
            animation: fadeInUp 0.8s ease 0.5s backwards;
        }

        .btn {
            padding: 12px 28px;
            border: 1px solid var(--border);
            background: var(--bg-primary);
            color: var(--text-primary);
            font-family: 'Syne', sans-serif;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s ease;
            text-decoration: none;
            display: inline-block;
            position: relative;
            overflow: hidden;
            border-radius: 10px;
            z-index: 10;
            letter-spacing: 0.3px;
        }

        .btn::before {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--text-primary);
            transform: translateX(-101%);
            transition: transform 0.3s ease;
            z-index: -1;
        }

        .btn:hover::before { transform: translateX(0); }
        .btn:hover { color: var(--bg-primary); border-color: var(--text-primary); }

        [data-theme="dark"] .btn { background: var(--bg-secondary); border-color: var(--border); }
        [data-theme="dark"] .btn:hover { color: var(--bg-primary); }

        .btn-label-full { display: none; }

        /* ── SECTIONS ── */
        .section {
            padding: 60px 0;
            opacity: 0;
            transform: translateY(50px);
            transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                        transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .section.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .section-title {
            font-size: clamp(26px, 3.5vw, 38px);
            font-weight: 800;
            margin-bottom: 56px;
            letter-spacing: -1.0px;
        }

        .section-intro {
            max-width: 640px;
            color: var(--text-secondary);
            font-size: 15px;
            line-height: 1.7;
            margin: -36px 0 56px;
        }

        .section-label {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 12px;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: var(--text-secondary);
            margin-bottom: 12px;
            display: block;
        }

        /* ── SKILLS ── */
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 24px;
        }

        .skill-card {
            background: var(--card-bg);
            border: 1px solid var(--border);
            padding: 32px;
            border-radius: 16px;
            transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            position: relative;
            overflow: hidden;
            opacity: 0;
            transform: translateY(40px);
        }

        .section.visible .skill-card { opacity: 1; transform: translateY(0); }
        .skill-card:nth-child(1) { transition-delay: 0.05s; }
        .skill-card:nth-child(2) { transition-delay: 0.15s; }
        .skill-card:nth-child(3) { transition-delay: 0.25s; }

        .skill-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 2px;
            background: var(--text-primary);
            transform: translateX(-100%);
            transition: transform 0.35s ease;
        }

        .skill-card:hover::before { transform: translateX(0); }
        .skill-card:hover { transform: translateY(-6px) !important; box-shadow: 0 16px 40px var(--shadow); }

        .skill-number {
            display: none;
        }

        .skill-card h3 {
            font-size: 17px;
            font-weight: 700;
            margin-bottom: 14px;
            letter-spacing: -0.3px;
        }

        .skill-card p {
            color: var(--text-secondary);
            line-height: 1.7;
            font-size: 15px;
        }

        [data-theme="dark"] .skill-card { border-color: var(--border); }

        /* ── PROJECTS ── */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 32px;
        }

        .project-card {
            border: 1px solid var(--border);
            border-radius: 16px;
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
            background: var(--card-bg);
            text-decoration: none;
            color: inherit;
            display: block;
            opacity: 0;
            transform: translateY(40px);
        }

        .section.visible .project-card { opacity: 1; transform: translateY(0); }
        .project-card:nth-child(1) { transition-delay: 0.05s; }
        .project-card:nth-child(2) { transition-delay: 0.15s; }
        .project-card:nth-child(3) { transition-delay: 0.25s; }
        .project-card:nth-child(4) { transition-delay: 0.35s; }
        .project-card:nth-child(5) { transition-delay: 0.45s; }
        .project-card:nth-child(6) { transition-delay: 0.55s; }
        .project-card:nth-child(7) { transition-delay: 0.65s; }
        .project-card:nth-child(8) { transition-delay: 0.75s; }

        .project-card:hover {
            transform: scale(1.02) translateY(-2px) !important;
            box-shadow: 0 24px 48px var(--shadow);
        }

        [data-theme="dark"] .project-card { border-color: var(--border); }

        /* Project visual area */
        .project-visual {
            width: 100%;
            height: 160px;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* COT Terminal */
        .visual-cot {
            background: #060d1a;
        }

        /* VIX */
        .visual-vix {
            background: #03080f;
        }

        /* Options */
        .visual-options {
            background: #050505;
        }

        /* NG Weather */
        .visual-ng {
            background: #020a12;
        }

        /* Alerts / Clouds */
        .visual-alerts {
            background: #070c15;
        }

        /* Market Desk */
        .visual-desk {
            background: #060b13;
        }

        /* Sentiment Track */
        .visual-sentiment {
            background: #0c060b;
        }

        /* AI Assistant */
        .visual-ai {
            background: #08080f;
        }

        .project-visual canvas {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
        }

        .project-visual-label {
            position: absolute;
            top: 14px;
            right: 14px;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 10px;
            color: rgba(255,255,255,0.3);
            letter-spacing: 1px;
        }

        .project-content {
            padding: 26px 28px 28px;
        }

        .project-index {
            display: none;
        }

        .project-content h3 {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 12px;
            letter-spacing: -0.4px;
        }

        .project-content p {
            color: var(--text-secondary);
            font-size: 14px;
            line-height: 1.7;
        }

        .project-tags {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 18px;
        }

        .tag {
            padding: 4px 10px;
            border: 1px solid var(--border);
            font-family: 'IBM Plex Mono', monospace;
            font-size: 11px;
            border-radius: 6px;
            transition: all 0.25s ease;
            color: var(--text-secondary);
        }

        .project-card:hover .tag {
            background: var(--border);
            color: var(--text-primary);
        }

        /* ── CONTACT ── */
        .contact-info {
            display: flex;
            flex-wrap: wrap;
            flex-direction: row;
            gap: 26px;
        }

        .contact-item {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            font-size: 18px;
            color: var(--text-secondary);
            text-decoration: none;
            transition: all 0.25s ease;
            padding: 12px 0;
            position: relative;
            width: fit-content;
        }

        .contact-item::after {
            content: '';
            position: absolute;
            bottom: 8px; left: 0;
            width: 0; height: 1px;
            background: var(--text-primary);
            transition: width 0.3s ease;
        }

        .contact-item:hover::after { width: 100%; }
        .contact-item:hover { color: var(--text-primary); transform: translateX(6px); }

        /* ── FOOTER ── */
        footer {
            padding: 40px 0;
            border-top: 1px solid var(--border);
            margin-top: 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
            color: var(--text-secondary);
            font-family: 'IBM Plex Mono', monospace;
            font-size: 14px;
            opacity: 0;
            animation: fadeInUp 0.8s ease 0.5s forwards;
        }

        .footer-tagline {
            font-style: italic;
            color: var(--text-secondary);
        }

        /* ── ANIMATIONS ── */
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        @keyframes fadeInDown {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes slideInLeft {
            from { opacity: 0; transform: translateX(-28px); }
            to { opacity: 1; transform: translateX(0); }
        }

        /* ── RESPONSIVE ── */
        @media (max-width: 768px) {
            .container { padding: 15px; }
            header { padding: 20px 0; }
            .hero { padding: 40px 0 12px; }
            .hero h1 { letter-spacing: -1px; }
            .hero .subtitle { font-size: 14px; }
            .hero .description { font-size: 15px; }
            .section { padding: 40px 0; }
            .section-title { margin-bottom: 36px; }
            .section-intro { margin: -20px 0 36px; }
            .skills-grid { grid-template-columns: 1fr; gap: 16px; }
            .projects-grid { grid-template-columns: 1fr; gap: 20px; }
            .contact-item { font-size: 15px; }
            .cta-buttons { gap: 10px; }
            .btn { padding: 11px 20px; font-size: 13px; flex: 1 1 calc(50% - 5px); text-align: center; }
            .cta-buttons .btn:last-child { flex-basis: 100%; }
            .btn-label-full { display: inline; }
            .btn-label-short { display: none; }
            .hero { flex-direction: column; gap: 24px; }
            .hero-widget { flex: none; width: 100%; display: flex; flex-direction: column; align-items: center; padding-top: 0; }
            .ms-widget { max-width: 300px; }
            footer { flex-direction: column; align-items: flex-start; margin-top: 60px; }
            .contact-info {
                flex-direction: column;
                align-items: flex-start; /* если хочешь по центру — поставь center */
                gap: 8px;   /* меньшее расстояние между ссылками на мобилке */
            }
            .contact-item {
                width: 100%;
                padding: 10px 0;
            }
        }

        /* ── ORDER MODAL ── */
        .order-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.55);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.25s ease, visibility 0.25s ease;
        }
        .order-overlay.open { opacity: 1; visibility: visible; }

        .order-modal {
            position: relative;
            width: 100%;
            max-width: 480px;
            max-height: calc(100vh - 40px);
            overflow-y: auto;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 22px;
            padding: 36px 32px 32px;
            box-shadow: 0 24px 64px var(--shadow);
            transform: translateY(14px) scale(0.98);
            transition: transform 0.25s ease;
        }
        .order-overlay.open .order-modal { transform: none; }

        .order-close {
            position: absolute;
            top: 18px;
            right: 18px;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            border: 1px solid var(--border);
            background: transparent;
            color: var(--text-primary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: border-color 0.2s ease, transform 0.2s ease;
        }
        .order-close:hover { border-color: var(--text-primary); transform: rotate(90deg); }

        .order-title {
            font-family: 'Syne', sans-serif;
            font-size: 26px;
            font-weight: 800;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            margin-bottom: 8px;
        }
        .order-sub {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 26px;
        }
        .order-label {
            display: block;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 10px;
            letter-spacing: 2.5px;
            text-transform: uppercase;
            color: var(--text-secondary);
            margin: 18px 0 8px;
        }
        .order-input {
            width: 100%;
            background: transparent;
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 12px 14px;
            font-family: 'Syne', sans-serif;
            font-size: 14px;
            color: var(--text-primary);
            transition: border-color 0.2s ease;
        }
        .order-input::placeholder { color: var(--text-secondary); opacity: 0.7; }
        .order-input:focus { outline: none; border-color: var(--text-primary); }
        .order-textarea { min-height: 110px; resize: vertical; }

        .order-error {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 11px;
            color: #e74c3c;
            min-height: 16px;
            margin: 10px 0 4px;
        }
        .order-error.ok { color: #2ecc71; }
        .order-submit {
            width: 100%;
            margin-top: 6px;
            padding: 14px 20px;
            border: none;
            border-radius: 99px;
            background: var(--text-primary);
            color: var(--bg-primary);
            font-family: 'Syne', sans-serif;
            font-size: 14px;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            cursor: pointer;
            transition: opacity 0.2s ease, transform 0.2s ease;
        }
        .order-submit:hover { opacity: 0.85; transform: translateY(-1px); }

        body.modal-open { overflow: hidden; }

        /* ── SCROLL TO TOP ── */
        .to-top {
            position: fixed;
            right: 24px;
            bottom: 24px;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: 1px solid var(--border);
            background: var(--card-bg);
            color: var(--text-primary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 900;
            opacity: 0;
            visibility: hidden;
            transform: translateY(8px);
            transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
        }
        .to-top.visible { visibility: visible; }
        /* hover-инверсия только на устройствах с курсором — на тачах :hover «залипает» после нажатия */
        @media (hover: hover) {
            .to-top:hover {
                border-color: var(--text-primary);
                background: var(--text-primary);
                color: var(--bg-primary);
            }
        }
        @media (max-width: 768px) {
            .to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
        }

        .tag-dev,
        .project-card:hover .tag-dev {
            color: #f39c12;
            border-color: rgba(243, 156, 18, 0.35);
        }

        /* ── REDUCED MOTION ── */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
            .section, .skill-card, .project-card { opacity: 1; transform: none; }
            footer { opacity: 1; }
        }

        @media (max-width: 480px) {
            .hero h1 { letter-spacing: -0.5px; }
            .section-title { letter-spacing: -0.5px; }

            .contact-item {
                font-size: 15px;
                padding: 12px 4px;
            }
            .contact-item svg {
                width: 18px;
                height: 18px;
            }
        }
    
