* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html, body {
            overflow-x: hidden;
            width: 100%;
            scroll-behavior: smooth;
        }

        :root {
            --bg-primary: #ffffff;
            --bg-primary-rgb: 255, 255, 255;
            --bg-secondary: #f8fafc;
            --text-primary: #0f172a;
            --text-secondary: #334155;
            --accent: #4f46e5;
            --accent-hover: #6366f1;
            --border: #e2e8f0;
            --card-bg: #ffffff;
            --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
            --progress-bg: #e2e8f0;
            --transition: all 0.3s ease;
        }

        body.dark {
            --bg-primary: #0f172a;
            --bg-primary-rgb: 15, 23, 42;
            --bg-secondary: #1e293b;
            --text-primary: #f1f5f9;
            --text-secondary: #cbd5e1;
            --accent: #818cf8;
            --accent-hover: #a5b4fc;
            --border: #334155;
            --card-bg: #1e293b;
            --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
            --progress-bg: #334155;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.5;
            transition: background 0.3s, color 0.2s;
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 24px;
            width: 100%;
        }

        /* Header */
        .header {
            position: sticky;
            top: 0;
            z-index: 1000;
            background: rgba(var(--bg-primary-rgb), 0.9);
            backdrop-filter: blur(8px);
            border-bottom: 1px solid var(--border);
            padding: 1rem 0;
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .logo {
            font-size: 1.6rem;
            font-weight: 700;
            background: linear-gradient(135deg, var(--accent), #a855f7);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .nav-menu {
            display: flex;
            gap: 2rem;
            align-items: center;
            list-style: none;
        }

        .nav-link {
            text-decoration: none;
            font-weight: 500;
            color: var(--text-secondary);
            transition: var(--transition);
        }
        .nav-link:hover, .nav-link.active { color: var(--accent); }

        .header-actions {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .btn-resume, .theme-toggle {
            background: transparent;
            border: 1px solid var(--border);
            padding: 0.5rem 1rem;
            border-radius: 40px;
            cursor: pointer;
            font-weight: 500;
            transition: var(--transition);
            color: var(--text-primary);
        }
        .btn-resume:hover, .theme-toggle:hover {
            border-color: var(--accent);
            background: var(--accent);
            color: white;
        }

        .menu-toggle {
            display: none;
            font-size: 1.8rem;
            background: none;
            border: none;
            cursor: pointer;
            color: var(--text-primary);
        }

        .btn {
            display: inline-block;
            padding: 0.75rem 1.8rem;
            border-radius: 40px;
            font-weight: 600;
            text-decoration: none;
            transition: var(--transition);
            cursor: pointer;
            border: none;
            white-space: nowrap;
        }
        .btn-primary { background: var(--accent); color: white; }
        .btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
        .btn-outline { border: 1px solid var(--accent); background: transparent; color: var(--accent); }
        .btn-outline:hover { background: var(--accent); color: white; }

        /* Hero */
        .hero { padding: 5rem 0 4rem; }
        .hero-grid {
            display: flex;
            align-items: center;
            gap: 3rem;
            flex-wrap: wrap;
        }
        .hero-content { flex: 1; }
        .hero-badge {
            font-size: 0.9rem;
            color: var(--accent);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .hero-title {
            font-size: 3rem;
            font-weight: 800;
            margin: 1.2rem 0 1rem;
            line-height: 1.2;
        }
        .hero-sub {
            font-size: 1.2rem;
            color: var(--text-secondary);
            margin-bottom: 2rem;
        }
        .hero-avatar { 
            flex: 0.6; 
            text-align: center;
            max-width: 100%;
        }
        .avatar-img {
            width: 260px;
            max-width: 80%;
            height: auto;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid var(--accent);
            box-shadow: var(--shadow);
            transition: transform 0.3s;
        }
        .hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

        /* Анимации */
        .fade-up {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }
        .fade-up.visible { opacity: 1; transform: translateY(0); }

        section { padding: 5rem 0; }
        .section-title {
            font-size: 2.2rem;
            font-weight: 700;
            margin-bottom: 3rem;
            position: relative;
            display: inline-block;
        }
        .section-title:after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 60px;
            height: 4px;
            background: var(--accent);
            border-radius: 4px;
        }

        /* Навыки */
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
        }
        .skill-category {
            background: var(--card-bg);
            border-radius: 24px;
            padding: 1.6rem;
            box-shadow: var(--shadow);
            border: 1px solid var(--border);
        }
        .skill-category h3 {
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            display: flex;
            gap: 0.5rem;
            align-items: center;
        }
        .skill-item { margin-bottom: 1.2rem; }
        .skill-info {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.4rem;
            font-size: 0.95rem;
        }
        .progress-bar {
            background: var(--progress-bg);
            border-radius: 12px;
            height: 8px;
            overflow: hidden;
        }
        .progress-fill {
            background: var(--accent);
            width: 0;
            height: 100%;
            border-radius: 12px;
            transition: width 0.6s;
        }
        .skill-level {
            color: var(--accent);
            font-weight: 500;
        }

        /* Проекты */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
            gap: 2rem;
        }
        .project-card {
            background: var(--card-bg);
            border-radius: 28px;
            overflow: hidden;
            border: 1px solid var(--border);
            transition: var(--transition);
            box-shadow: var(--shadow);
        }
        .project-card:hover { transform: translateY(-6px); border-color: var(--accent); }
        .project-images {
            display: flex;
            gap: 8px;
            padding: 1rem 1rem 0 1rem;
        }
        .project-img {
            width: calc(50% - 4px);
            border-radius: 16px;
            aspect-ratio: 16/9;
            object-fit: cover;
            background: var(--bg-secondary);
            max-width: 100%;
        }
        .project-info { padding: 1.5rem; }
        .project-title { font-size: 1.4rem; font-weight: 700; }
        .project-desc {
            color: var(--text-secondary);
            margin: 0.6rem 0;
        }
        .tech-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin: 1rem 0;
        }
        .tech-tag {
            background: var(--bg-secondary);
            padding: 0.2rem 0.8rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 500;
            color: var(--accent);
        }
        .project-links a {
            margin-right: 1rem;
            font-size: 0.9rem;
            text-decoration: none;
            font-weight: 500;
            color: var(--accent);
        }

        /* Опыт (хронология) */
        .timeline {
            display: flex;
            flex-direction: column;
            gap: 1.8rem;
        }
        .timeline-item {
            background: var(--card-bg);
            border-left: 4px solid var(--accent);
            padding: 1.2rem 1.8rem;
            border-radius: 20px;
            box-shadow: var(--shadow);
        }
        .timeline-date { font-weight: 600; color: var(--accent); }

        /* Контакты */
        .contact-wrapper {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
        }
        .contact-form {
            background: var(--card-bg);
            padding: 2rem;
            border-radius: 32px;
            border: 1px solid var(--border);
        }
        .form-group { margin-bottom: 1.2rem; }
        input, textarea {
            width: 100%;
            padding: 0.9rem 1rem;
            background: var(--bg-primary);
            border: 1px solid var(--border);
            border-radius: 20px;
            font-family: inherit;
            color: var(--text-primary);
            transition: 0.2s;
        }
        input:focus, textarea:focus {
            outline: none;
            border-color: var(--accent);
        }
        .social-links {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        .social-link {
            display: flex;
            align-items: center;
            gap: 1rem;
            text-decoration: none;
            color: var(--text-primary);
            font-weight: 500;
            transition: var(--transition);
            word-break: break-word;
        }
        .social-link i {
            font-size: 1.6rem;
            width: 2rem;
            color: var(--accent);
        }
        .social-link:hover { color: var(--accent); transform: translateX(4px); }

        .footer {
            text-align: center;
            padding: 2rem;
            border-top: 1px solid var(--border);
            color: var(--text-secondary);
        }

        /* Мобильная адаптация */
        @media (max-width: 768px) {
            .container { padding: 0 16px; }
            .menu-toggle { display: block; }
            .nav-menu {
                position: fixed;
                top: 70px;
                left: -100%;
                flex-direction: column;
                background: var(--bg-primary);
                width: 80%;
                height: calc(100vh - 70px);
                padding: 2rem;
                transition: left 0.3s;
                box-shadow: 2px 0 12px rgba(0,0,0,0.1);
                gap: 1.8rem;
                align-items: flex-start;
                border-right: 1px solid var(--border);
                z-index: 999;
                overflow-y: auto;
            }
            .nav-menu.active { left: 0; }
            .hero-title { font-size: 2.4rem; }
            .hero-grid { flex-direction: column-reverse; text-align: center; }
            .hero-buttons { justify-content: center; }
            .contact-wrapper { grid-template-columns: 1fr; }
            .section-title:after { left: 50%; transform: translateX(-50%); }
            .section-title { text-align: center; display: block; }
        }
        @media (max-width: 480px) {
            .hero-title { font-size: 2rem; }
            .avatar-img { max-width: 70%; }
        }
        a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
        img { max-width: 100%; height: auto; }
