/* ========================================
   БАЗОВЫЕ НАСТРОЙКИ
   ======================================== */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: #ededed;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    
    /* ===== ОСНОВНОЙ ГРАДИЕНТНЫЙ ФОН ===== */
    background: radial-gradient(ellipse at 20% 0%, #1a0a3e 0%, #0d0a1a 25%, #0a0a0a 60%, #0d0a1a 80%, #1a0a3e 100%);
    background-attachment: fixed;
    background-size: 100% 100%;
    position: relative;
}

/* ===== SVG СЕТКА ТОЧЕК ПОВЕРХ ФОНА ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%236366f1' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3Ccircle cx='0' cy='0' r='1'/%3E%3Ccircle cx='60' cy='0' r='1'/%3E%3Ccircle cx='0' cy='60' r='1'/%3E%3Ccircle cx='60' cy='60' r='1'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 60px 60px;
}

/* Дополнительная подсветка для глубины */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse at 80% 80%, rgba(99, 102, 241, 0.04) 0%, transparent 50%),
                radial-gradient(ellipse at 30% 50%, rgba(168, 85, 247, 0.03) 0%, transparent 40%);
}

::selection {
    background: #6366f1;
    color: #fff;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ========================================
   АНИМАЦИИ
   ======================================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-fade-up-2 {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
.animate-fade-up-3 {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}
.animate-fade-up-4 {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}
.animate-fade-up-5 {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}
.animate-fade-up-6 {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.75s forwards;
}
.animate-fade-up-7 {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

/* ========================================
   НАВИГАЦИЯ
   ======================================== */

.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 2rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    max-width: 100vw;
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid transparent;
    width: 100%;
}

.navbar-wrapper.scrolled .navbar-inner {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-wrapper.scrolled {
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #818cf8, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: font-size 0.3s ease;
    white-space: nowrap;
}

.navbar-wrapper.scrolled .logo {
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #a1a1aa;
    align-items: center;
    flex-shrink: 0;
}

.nav-links a {
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #818cf8, #a855f7);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}
.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, #818cf8, #6366f1);
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    color: #fff !important;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
    color: #fff !important;
}

/* ========================================
   ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ
   ======================================== */

.theme-toggle {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #a1a1aa;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: rotate(20deg);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   ГЕРОЙ
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
    position: relative;
    width: 100%;
    background: transparent;
}

.hero-glow {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.hero-glow-2 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.05) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

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

.hero-right {
    flex-shrink: 0;
    width: 280px;
}

.hero-photo {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-badge-top {
    display: inline-block;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.15);
    padding: 0.35rem 1.2rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #a5b4fc;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.hero-badge-top span {
    color: #818cf8;
}

.hero h1 {
    font-size: 4.8rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
    max-width: 800px;
}

.hero h1 .highlight {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    background: none;
    animation: none;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #a1a1aa;
    max-width: 550px;
    margin-top: 1.2rem;
    font-weight: 400;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

/* ========================================
   КНОПКИ
   ======================================== */

.btn-primary {
    background: linear-gradient(135deg, #818cf8, #6366f1);
    padding: 0.9rem 2.8rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.9rem 2.8rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    color: #ededed;
    transition: background 0.3s ease, transform 0.25s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.btn-primary-gold-inverse {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    padding: 0.9rem 2.8rem;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    color: #0a0a0a;
    transition: all 0.25s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.15);
}

.btn-primary-gold-inverse:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(251, 191, 36, 0.30);
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    color: #0a0a0a;
}

/* ========================================
   ОБЩИЕ СТИЛИ РАЗДЕЛОВ
   ======================================== */

.section {
    padding: 4rem 0 3rem;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    position: relative;
    z-index: 1;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #818cf8;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 2.5rem;
    color: #ffffff;
}

.skills-section-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 2.5rem;
    color: #ffffff;
}

/* ========================================
   КАРТОЧКИ ПРОЕКТОВ — СТИЛЬ "СОДЕРЖАНИЕ"
   ======================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 1.8rem 2rem 1.8rem;
    transition: transform 0.3s ease, box-shadow 0.4s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.project-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.project-tag {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.1);
    padding: 0.2rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 0.6rem;
    border: 1px solid rgba(99, 102, 241, 0.05);
    align-self: flex-start;
}

.project-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 0.1rem;
}

.project-role {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #a1a1aa;
    font-weight: 400;
    margin-bottom: 0.3rem;
    flex-wrap: wrap;
}

.project-role .role-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #818cf8;
}

.project-role .role-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: #d4d4d8;
}

.project-desc {
    color: #a1a1aa;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.6rem;
    flex: 1;
}

.project-result {
    display: inline-block;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.06);
    padding: 0.2rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #a5b4fc;
    align-self: flex-start;
    margin-bottom: 0.6rem;
}

.project-result span {
    color: #818cf8;
    font-weight: 600;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: #fbbf24;
    transition: all 0.2s ease;
    margin-top: auto;
    padding-top: 0.4rem;
    background: rgba(251, 191, 36, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.10);
    padding: 0.3rem 1rem 0.3rem 1.2rem;
    border-radius: 40px;
    align-self: flex-start;
}

.project-link:hover {
    color: #fcd34d;
    background: rgba(251, 191, 36, 0.10);
    border-color: rgba(251, 191, 36, 0.20);
    gap: 0.8rem;
}

.project-link span {
    transition: transform 0.2s ease;
}

.project-link:hover span {
    transform: translateX(4px);
}

.project-link.disabled {
    color: #52525b;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.5;
}

.project-link.disabled span {
    opacity: 0.3;
}

/* ========================================
   НОВАЯ СЕКЦИЯ: SOFT & HARD SKILLS
   ======================================== */

.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 1rem 0 0.5rem;
}

.skills-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 1.8rem 2rem 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.skills-block:hover {
    border-color: rgba(99, 102, 241, 0.10);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.skills-block-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #a5b4fc;
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
}

.skills-block .skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    padding: 0;
}

.skills-block .skills-grid .skill-item {
    padding: 0.5rem 1.4rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
    letter-spacing: 0.01em;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.08);
    color: #c7d2fe;
}

.skills-block .skills-grid .skill-item:hover {
    background: rgba(99, 102, 241, 0.14);
    border-color: rgba(99, 102, 241, 0.20);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.06);
}

.skills-block .skills-grid .skill-item.highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(168, 85, 247, 0.10));
    border-color: rgba(99, 102, 241, 0.20);
    color: #e0e7ff;
    font-weight: 600;
}

.skills-block .skills-grid .skill-item.highlight:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.28), rgba(168, 85, 247, 0.18));
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.10);
    transform: translateY(-3px) scale(1.02);
}

/* ========================================
   СТАРАЯ СЕКЦИЯ: СТЕК И ИНСТРУМЕНТЫ
   ======================================== */

.skills-grid-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 1rem 0 0.5rem;
}

.skills-grid-tools .skill-item {
    padding: 0.6rem 1.6rem;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
    letter-spacing: 0.01em;
    background: rgba(99, 102, 241, 0.10);
    border: 1.5px solid rgba(99, 102, 241, 0.12);
    color: #c7d2fe;
}

.skills-grid-tools .skill-item:hover {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.30);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.08);
}

.skills-grid-tools .skill-item.highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.20), rgba(168, 85, 247, 0.12));
    border-color: rgba(99, 102, 241, 0.25);
    color: #e0e7ff;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.03);
}

.skills-grid-tools .skill-item.highlight:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.30), rgba(168, 85, 247, 0.20));
    border-color: rgba(99, 102, 241, 0.40);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.10);
    transform: translateY(-3px) scale(1.02);
}

/* ========================================
   ПОДВАЛ
   ======================================== */

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 2.5rem 0;
    margin-top: 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-copy {
    font-size: 0.9rem;
    color: #52525b;
    text-align: center;
}

/* ========================================
   СТРАНИЦА ПРОЕКТА — ДОПОЛНИТЕЛЬНЫЕ СТИЛИ
   ======================================== */

.project-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 2rem;
    position: relative;
    width: 100%;
    background: transparent;
}

.project-hero .hero-glow {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.project-hero .hero-glow-2 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.05) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.project-hero .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: block !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
}

.project-hero .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #a1a1aa;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.project-hero .back-link:hover {
    color: #818cf8;
}

.project-hero .back-link svg {
    transition: transform 0.2s ease;
}

.project-hero .back-link:hover svg {
    transform: translateX(-4px);
}

.project-hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    max-width: 800px;
    color: #ffffff;
    margin-bottom: 1.2rem;
}

.project-hero .project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    margin-top: 0;
    color: #a1a1aa;
    font-size: 0.95rem;
}

.project-hero .project-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-hero .project-meta .label {
    color: #818cf8;
    font-weight: 600;
}

/* ========================================
   СОДЕРЖАНИЕ (TOC)
   ======================================== */

.toc-section {
    padding: 2rem 0 1rem;
    position: relative;
    z-index: 1;
}

.toc-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    gap: 2rem;
    align-items: stretch;
}

.toc-left {
    flex: 0 0 33.333%;
    min-width: 0;
}

.toc-right {
    flex: 0 0 66.666%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    min-height: 280px;
}

.toc-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.toc-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #818cf8;
    margin-bottom: 0.8rem;
}

.toc-items {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.toc-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.toc-item:hover {
    background: rgba(99, 102, 241, 0.06);
}

.toc-item:hover .toc-title {
    color: #818cf8;
}

.toc-num {
    font-size: 0.65rem;
    font-weight: 600;
    color: #52525b;
    flex-shrink: 0;
    min-width: 28px;
    font-feature-settings: "tnum";
}

.toc-content {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    flex: 1;
    min-width: 0;
}

.toc-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #d4d4d8;
    transition: color 0.2s ease;
}

.toc-desc {
    font-size: 0.7rem;
    color: #71717a;
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
}

/* ========================================
   БЛОКИ КОНТЕНТА НА СТРАНИЦЕ ПРОЕКТА
   ======================================== */

.project-content {
    padding: 1.5rem 0 4rem;
}

.content-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    padding: 2.5rem 3rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.3s ease;
}

.content-block:hover {
    border-color: rgba(99, 102, 241, 0.10);
}

.content-block .block-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #a5b4fc;
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content-block .block-title .emoji {
    font-size: 1.4rem;
}

.content-block p {
    color: #d4d4d8;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.content-block p:last-child {
    margin-bottom: 0;
}

.content-block ul {
    list-style: none;
    padding: 0;
    margin: 0.8rem 0;
}

.content-block ul li {
    color: #d4d4d8;
    font-size: 1rem;
    line-height: 1.8;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.4rem;
}

.content-block ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #818cf8;
    font-weight: 700;
}

.content-block .highlight-text {
    color: #818cf8;
    font-weight: 600;
}

/* ========================================
   МЕСТО ДЛЯ ИЗОБРАЖЕНИЙ
   ======================================== */

.image-placeholder {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin: 1.2rem 0 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.06);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.8rem;
    color: #52525b;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.image-placeholder:hover {
    border-color: rgba(99, 102, 241, 0.15);
}

.image-placeholder .icon {
    font-size: 2.5rem;
    opacity: 0.3;
}

.image-placeholder .label {
    font-weight: 500;
    color: #71717a;
}

.image-placeholder .sub {
    font-size: 0.75rem;
    color: #52525b;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin: 1.2rem 0 0.5rem;
}

.image-grid .image-placeholder {
    margin: 0;
}

/* ========================================
   МОДАЛЬНОЕ ОКНО
   ======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: radial-gradient(ellipse at 50% 0%, #1a0a3e, #0a0a0a 80%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 32px;
    max-width: 560px;
    width: 100%;
    padding: 2.5rem 2.5rem 2rem;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #a1a1aa;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 0.4rem;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: #a1a1aa;
    margin-bottom: 2rem;
}

.modal-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.modal-contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.modal-contact-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(99, 102, 241, 0.15);
    transform: translateX(4px);
}

.modal-contact-item:hover .modal-contact-arrow {
    color: #818cf8;
    transform: translateX(4px);
}

.modal-contact-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    opacity: 0.9;
    width: 32px;
    text-align: center;
    line-height: 1;
}

.modal-contact-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #818cf8;
    flex-shrink: 0;
    min-width: 70px;
}

.modal-contact-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ededed;
    flex: 1;
    word-break: break-word;
}

.modal-contact-arrow {
    font-size: 1rem;
    color: #52525b;
    transition: color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.modal-footer-text {
    font-size: 0.8rem;
    color: #52525b;
    text-align: center;
    margin-top: 1.8rem;
}

/* ========================================
   КНОПКА "НАВЕРХ"
   ======================================== */

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.25);
    color: #fff;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
}

.scroll-top:active {
    transform: scale(0.95);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ========================================
   СТРАНИЦА "ОБО МНЕ"
   ======================================== */

.about-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 3rem;
    position: relative;
    width: 100%;
    background: transparent;
}

.about-hero .hero-glow {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.about-hero .hero-glow-2 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.05) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.about-label {
    display: inline-block;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.15);
    padding: 0.35rem 1.2rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #a5b4fc;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.about-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.about-hero-subtitle {
    font-size: 1.2rem;
    color: #a1a1aa;
    font-weight: 400;
}

/* ========================================
   ОПЫТ РАБОТЫ — ОБНОВЛЁННАЯ СЕКЦИЯ
   ======================================== */

.experience-section {
    padding: 0 0 2rem;
    position: relative;
    z-index: 1;
}

.experience-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: start;
}

.experience-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 2rem;
}

.experience-block {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.experience-item {
    display: flex;
    gap: 1rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.experience-item:hover {
    border-color: rgba(99, 102, 241, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.exp-marker {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 0.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #818cf8, #a855f7);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

.experience-item p {
    color: #d4d4d8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.experience-item strong {
    color: #818cf8;
    font-weight: 600;
}

.experience-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 1.5rem 1.8rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.3s ease;
}

.experience-card:hover {
    border-color: rgba(99, 102, 241, 0.08);
}

.experience-card h3 {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #818cf8;
    margin-bottom: 1rem;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.exp-tag {
    padding: 0.25rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.06);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.exp-tag:hover {
    background: rgba(99, 102, 241, 0.10);
    border-color: rgba(99, 102, 241, 0.12);
}

.tools-group {
    margin-bottom: 0.8rem;
}

.tools-group:last-child {
    margin-bottom: 0;
}

.tools-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #a1a1aa;
    display: block;
    margin-bottom: 0.3rem;
}

.tools-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.6rem;
}

.tool-item {
    font-size: 0.8rem;
    font-weight: 500;
    color: #d4d4d8;
    padding: 0.1rem 0;
    position: relative;
}

.tool-item:not(:last-child)::after {
    content: '·';
    color: #52525b;
    margin-left: 0.6rem;
}

/* ========================================
   КЛЮЧЕВЫЕ НАВЫКИ (СТРАНИЦА "ОБО МНЕ")
   ======================================== */

.skills-section {
    padding: 2rem 0 4rem;
    position: relative;
    z-index: 1;
}

.skills-section-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
    color: #ffffff;
}

.skills-grid-about {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skills-category {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 1.8rem 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.3s ease;
}

.skills-category:hover {
    border-color: rgba(99, 102, 241, 0.08);
}

.skills-category h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #a5b4fc;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.skills-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-category ul li {
    color: #d4d4d8;
    font-size: 0.9rem;
    line-height: 1.8;
    padding-left: 1.2rem;
    position: relative;
}

.skills-category ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #818cf8;
}

/* ========================================
   ОБО МНЕ НА ГЛАВНОЙ
   ======================================== */

.about-grid-index {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: start;
}

.about-text-index {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.about-text-index p {
    color: #d4d4d8;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.about-text-index strong {
    color: #818cf8;
    font-weight: 600;
}

.about-link-index {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fbbf24;
    transition: gap 0.2s ease;
    margin-top: 0.5rem;
    background: rgba(251, 191, 36, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.10);
    padding: 0.3rem 1rem 0.3rem 1.2rem;
    border-radius: 40px;
    align-self: flex-start;
}

.about-link-index:hover {
    gap: 0.8rem;
    background: rgba(251, 191, 36, 0.10);
    border-color: rgba(251, 191, 36, 0.20);
}

.about-link-index span {
    transition: transform 0.2s ease;
}

.about-link-index:hover span {
    transform: translateX(4px);
}

.about-sidebar-index {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-card-index {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 1.5rem 1.8rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.3s ease;
}

.about-card-index:hover {
    border-color: rgba(99, 102, 241, 0.08);
}

.about-card-index h3 {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #818cf8;
    margin-bottom: 1rem;
}

.about-tags-index {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.about-tag-index {
    padding: 0.25rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.06);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.about-tag-index:hover {
    background: rgba(99, 102, 241, 0.10);
    border-color: rgba(99, 102, 241, 0.12);
}

.tools-group-index {
    margin-bottom: 0.8rem;
}

.tools-group-index:last-child {
    margin-bottom: 0;
}

.tools-label-index {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #a1a1aa;
    display: block;
    margin-bottom: 0.3rem;
}

.tools-items-index {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.6rem;
}

.tool-item-index {
    font-size: 0.8rem;
    font-weight: 500;
    color: #d4d4d8;
    padding: 0.1rem 0;
    position: relative;
}

.tool-item-index:not(:last-child)::after {
    content: '·';
    color: #52525b;
    margin-left: 0.6rem;
}

/* ========================================
   ИНСТРУМЕНТЫ (на главной)
   ======================================== */

.tools-grid-about {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tools-category {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 1.8rem 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.3s ease;
}

.tools-category:hover {
    border-color: rgba(99, 102, 241, 0.08);
}

.tools-category h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #a5b4fc;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.tools-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tools-category ul li {
    color: #d4d4d8;
    font-size: 0.9rem;
    line-height: 1.8;
    padding-left: 1.2rem;
    position: relative;
}

.tools-category ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #818cf8;
}

/* ========================================
   СФЕРЫ ДЕЯТЕЛЬНОСТИ
   ======================================== */

.industries-grid-about {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.industry-tag {
    padding: 0.5rem 1.4rem;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.08);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.industry-tag:hover {
    background: rgba(99, 102, 241, 0.10);
    border-color: rgba(99, 102, 241, 0.12);
}

/* ========================================
   СВЕТЛАЯ ТЕМА (ОБНОВЛЁННАЯ — ДЛЯ ВСЕХ СТРАНИЦ)
   ======================================== */

body.light-theme {
    background: #f5f7fa;
    color: #1a1a2e;
}

body.light-theme .navbar-wrapper.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

body.light-theme .logo {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .nav-links a {
    color: #52525b;
}

body.light-theme .nav-links a:hover {
    color: #1a1a2e;
}

body.light-theme .hero-badge-top {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.12);
    color: #6366f1;
}

body.light-theme .hero h1 .highlight {
    color: #1a1a2e;
    -webkit-text-fill-color: #1a1a2e;
}

body.light-theme .hero-subtitle {
    color: #52525b;
}

body.light-theme .btn-secondary {
    color: #1a1a2e;
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.02);
}

body.light-theme .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.04);
}

body.light-theme .section-label {
    color: #6366f1;
}

body.light-theme .section-title {
    color: #1a1a2e;
}

body.light-theme .skills-section-title {
    color: #1a1a2e;
}

body.light-theme .project-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.light-theme .project-card:hover {
    border-color: rgba(99, 102, 241, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

body.light-theme .project-card h3 {
    color: #1a1a2e;
}

body.light-theme .project-desc {
    color: #52525b;
}

body.light-theme .project-role .role-value {
    color: #3f3f5e;
}

body.light-theme .project-role .role-label {
    color: #6366f1 !important;
}

body.light-theme .project-result {
    background: rgba(99, 102, 241, 0.04);
    border-color: rgba(99, 102, 241, 0.06);
    color: #6366f1;
}

body.light-theme .project-result span {
    color: #6366f1 !important;
}

body.light-theme .project-link {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.10);
}

body.light-theme .project-link:hover {
    background: rgba(245, 158, 11, 0.10);
}

body.light-theme .project-link.disabled {
    color: #a1a1aa;
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .about-text-index p {
    color: #3f3f5e;
}

body.light-theme .about-text-index strong {
    color: #6366f1 !important;
}

body.light-theme .about-card-index {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .about-card-index:hover {
    border-color: rgba(99, 102, 241, 0.08);
}

body.light-theme .about-card-index h3 {
    color: #6366f1 !important;
}

body.light-theme .about-tag-index {
    color: #6366f1 !important;
    background: rgba(99, 102, 241, 0.04);
    border-color: rgba(99, 102, 241, 0.06);
}

body.light-theme .about-tag-index:hover {
    background: rgba(99, 102, 241, 0.08);
}

body.light-theme .tools-category,
body.light-theme .skills-category {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .tools-category:hover,
body.light-theme .skills-category:hover {
    border-color: rgba(99, 102, 241, 0.08);
}

body.light-theme .tools-category h3,
body.light-theme .skills-category h3 {
    color: #6366f1 !important;
}

body.light-theme .tools-category ul li,
body.light-theme .skills-category ul li {
    color: #3f3f5e;
}

body.light-theme .tools-category ul li::before,
body.light-theme .skills-category ul li::before {
    color: #6366f1 !important;
}

body.light-theme .industry-tag {
    color: #6366f1 !important;
    background: rgba(99, 102, 241, 0.04);
    border-color: rgba(99, 102, 241, 0.06);
}

body.light-theme .industry-tag:hover {
    background: rgba(99, 102, 241, 0.08);
}

body.light-theme .footer-copy {
    color: #a1a1aa;
}

body.light-theme .modal {
    background: radial-gradient(ellipse at 50% 0%, #eef2ff, #f5f7fa 80%);
    border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .modal-title {
    color: #1a1a2e;
}

body.light-theme .modal-subtitle {
    color: #52525b;
}

body.light-theme .modal-contact-item {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .modal-contact-item:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(99, 102, 241, 0.12);
}

body.light-theme .modal-contact-label {
    color: #6366f1 !important;
}

body.light-theme .modal-contact-value {
    color: #1a1a2e;
}

body.light-theme .modal-footer-text {
    color: #a1a1aa;
}

body.light-theme .theme-toggle {
    color: #52525b;
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #1a1a2e;
}

body.light-theme .exp-tag {
    color: #6366f1 !important;
    background: rgba(99, 102, 241, 0.04);
    border-color: rgba(99, 102, 241, 0.06);
}

body.light-theme .experience-card h3 {
    color: #6366f1 !important;
}

body.light-theme .experience-item strong {
    color: #6366f1 !important;
}

body.light-theme .toc-label {
    color: #6366f1 !important;
}

body.light-theme .content-block ul li::before {
    color: #6366f1 !important;
}

body.light-theme .content-block .highlight-text {
    color: #6366f1 !important;
}

body.light-theme .project-hero .project-meta .label {
    color: #6366f1 !important;
}

body.light-theme .project-hero h1 {
    color: #1a1a2e;
}

body.light-theme .project-hero .back-link {
    color: #52525b;
}

body.light-theme .project-hero .back-link:hover {
    color: #6366f1;
}

body.light-theme .content-block {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .content-block:hover {
    border-color: rgba(99, 102, 241, 0.08);
}

body.light-theme .content-block .block-title {
    color: #6366f1;
}

body.light-theme .content-block p {
    color: #3f3f5e;
}

body.light-theme .content-block ul li {
    color: #3f3f5e;
}

body.light-theme .image-placeholder {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .image-placeholder:hover {
    border-color: rgba(99, 102, 241, 0.12);
}

body.light-theme .toc-wrapper {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .toc-title {
    color: #3f3f5e;
}

body.light-theme .toc-desc {
    color: #71717a;
}

body.light-theme .toc-item:hover {
    background: rgba(99, 102, 241, 0.04);
}

body.light-theme .toc-item:hover .toc-title {
    color: #6366f1;
}

body.light-theme .toc-num {
    color: #a1a1aa;
}

body.light-theme .about-label {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.12);
}

body.light-theme .experience-title {
    color: #1a1a2e;
}

body.light-theme .experience-item {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .experience-item:hover {
    border-color: rgba(99, 102, 241, 0.08);
}

body.light-theme .experience-item p {
    color: #3f3f5e;
}

body.light-theme .exp-marker {
    background: linear-gradient(135deg, #6366f1, #a855f7);
}

body.light-theme .experience-card {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .experience-card:hover {
    border-color: rgba(99, 102, 241, 0.08);
}

body.light-theme .tools-label {
    color: #71717a;
}

body.light-theme .tool-item {
    color: #3f3f5e;
}

body.light-theme .tool-item:not(:last-child)::after {
    color: #a1a1aa;
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 1.2rem;
    }
    .navbar-wrapper {
        padding: 0 1.2rem;
    }

    .nav-links {
        gap: 1.2rem;
        font-size: 0.8rem;
    }
    .nav-cta {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    .logo {
        font-size: 1.1rem;
    }
    .navbar-wrapper.scrolled .logo {
        font-size: 0.95rem;
    }

    .hero {
        min-height: 90vh;
        padding: 5rem 0 3rem;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .hero-left {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-right {
        width: 200px;
    }
    .hero-photo {
        width: 200px;
        height: 200px;
    }

    .section-title {
        font-size: 2rem;
    }
    .skills-section-title {
        font-size: 2rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .project-card {
        padding: 1.5rem;
    }

    .hero-glow {
        width: 300px;
        height: 300px;
        top: 0;
        right: -20%;
    }
    .hero-glow-2 {
        width: 200px;
        height: 200px;
    }

    .skills-block {
        padding: 1.5rem;
    }
    .skills-block-title {
        font-size: 1rem;
    }
    .skills-block .skills-grid .skill-item {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    .skills-grid-tools .skill-item {
        font-size: 0.8rem;
        padding: 0.4rem 1.2rem;
    }

    .project-hero {
        min-height: 30vh;
        padding: 6rem 0 2rem;
    }
    .project-hero h1 {
        font-size: 2rem;
    }
    .project-hero .project-meta {
        font-size: 0.85rem;
        gap: 1rem;
    }
    .content-block {
        padding: 1.5rem;
    }
    .content-block .block-title {
        font-size: 1.1rem;
    }
    .image-grid {
        grid-template-columns: 1fr;
    }

    .toc-wrapper {
        flex-direction: column;
        padding: 1.2rem 1.2rem;
        gap: 1rem;
    }
    .toc-left {
        flex: 0 0 auto;
    }
    .toc-right {
        flex: 0 0 200px;
        width: 100%;
        max-height: 200px;
        min-height: 160px;
    }
    .toc-items {
        gap: 0.2rem;
    }
    .toc-item {
        padding: 0.3rem 0.4rem;
    }

    .modal {
        padding: 1.8rem 1.5rem 1.5rem;
    }
    .modal-title {
        font-size: 1.3rem;
    }
    .modal-contact-item {
        padding: 0.8rem 1rem;
        flex-wrap: wrap;
    }
    .modal-contact-label {
        min-width: auto;
        font-size: 0.65rem;
    }
    .modal-contact-value {
        font-size: 0.85rem;
        width: 100%;
        margin-left: 2.1rem;
    }
    .modal-contact-arrow {
        display: none;
    }

    /* about page adaptive */
    .about-hero {
        min-height: 30vh;
        padding: 6rem 0 2rem;
    }
    .about-hero-content h1 {
        font-size: 2.2rem;
    }
    .about-hero-subtitle {
        font-size: 1rem;
    }

    .experience-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .experience-title {
        font-size: 1.8rem;
    }
    .experience-item {
        padding: 0.5rem 0.8rem;
    }
    .experience-item p {
        font-size: 0.9rem;
    }
    .experience-card {
        padding: 1.2rem 1.5rem;
    }

    .skills-grid-about {
        grid-template-columns: 1fr;
    }
    .skills-section-title {
        font-size: 1.8rem;
    }
    .skills-category {
        padding: 1.5rem;
    }

    .tools-grid-about {
        grid-template-columns: 1fr;
    }
    .tools-category {
        padding: 1.5rem;
    }

    .theme-toggle {
        width: 32px;
        height: 32px;
    }
    .theme-toggle svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
        max-width: 100%;
        word-break: keep-all;
        white-space: nowrap;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-primary,
    .btn-secondary,
    .btn-primary-gold-inverse {
        text-align: center;
    }
    .nav-links {
        gap: 0.5rem;
        font-size: 0.65rem;
    }
    .nav-cta {
        padding: 0.25rem 0.6rem;
        font-size: 0.65rem;
    }
    .hero-badge-top {
        font-size: 0.65rem;
        padding: 0.2rem 0.8rem;
    }
    .hero-right {
        width: 160px;
    }
    .hero-photo {
        width: 160px;
        height: 160px;
    }

    .section-title {
        font-size: 1.8rem;
    }
    .skills-section-title {
        font-size: 1.8rem;
    }

    .project-hero h1 {
        font-size: 1.6rem;
    }
    .content-block {
        padding: 1.2rem;
    }
    .content-block p,
    .content-block ul li {
        font-size: 0.9rem;
    }

    .toc-wrapper {
        padding: 1rem;
        gap: 0.8rem;
    }
    .toc-right {
        flex: 0 0 160px;
        max-height: 160px;
        min-height: 120px;
    }
    .toc-num {
        font-size: 0.55rem;
        min-width: 22px;
    }
    .toc-title {
        font-size: 0.75rem;
    }
    .toc-desc {
        font-size: 0.6rem;
    }

    /* about page adaptive */
    .about-hero-content h1 {
        font-size: 1.8rem;
    }
    .experience-title {
        font-size: 1.5rem;
    }
    .experience-item p {
        font-size: 0.85rem;
    }
    .exp-tag {
        font-size: 0.65rem;
        padding: 0.15rem 0.7rem;
    }
    .skills-section-title {
        font-size: 1.5rem;
    }
    .skills-category ul li {
        font-size: 0.8rem;
    }
    .tools-category ul li {
        font-size: 0.8rem;
    }
    .industry-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }
}