/* ─── RESET & BASE ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}
body {
    font-family: 'Inter', sans-serif;
    background: #05070a;
    color: #eef2f6;
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
}
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.scroll-container::-webkit-scrollbar {
    display: none;
}
a {
    text-decoration: none;
    color: inherit;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ─── GLOW ORBS ─── */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(160px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    transition: transform 0.2s ease-out;
}
.orb--1 {
    width: 700px;
    height: 700px;
    top: -300px;
    right: -200px;
    background: #4f8cf7;
}
.orb--2 {
    width: 600px;
    height: 600px;
    bottom: -200px;
    left: -150px;
    background: #7c5cfc;
}

/* ─── HEADER ─── */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(5, 7, 10, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s, box-shadow 0.4s;
    transform: translateY(0);
}
header.header-hidden {
    transform: translateY(-100%);
}
header.scrolled {
    background: rgba(5, 7, 10, 0.85);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #a78bfa, #4f8cf7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
    font-weight: 500;
    font-size: 0.85rem;
}
.nav-links a {
    position: relative;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4f8cf7, #7c5cfc);
    transition: width 0.3s;
}
.nav-links a:hover {
    color: #fff;
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-cta {
    background: linear-gradient(135deg, #4f8cf7, #7c5cfc);
    padding: 8px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.8rem;
    color: #fff !important;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 24px rgba(79, 140, 247, 0.2);
}
.nav-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 36px rgba(79, 140, 247, 0.35);
}
.nav-cta::after {
    display: none !important;
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    border-radius: 10px;
    transition: 0.3s;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── SIDE NAV ─── */
.side-nav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}
.side-nav .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
}
.side-nav .dot.active {
    background: linear-gradient(135deg, #4f8cf7, #7c5cfc);
    transform: scale(1.5);
    box-shadow: 0 0 24px rgba(79, 140, 247, 0.5);
}
.side-nav .dot:hover {
    transform: scale(1.3);
}
.side-nav .dot .label {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.side-nav .dot:hover .label {
    opacity: 1;
}

/* ─── HERO ─── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-top: 80px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 100px;
    background: rgba(79, 140, 247, 0.1);
    border: 1px solid rgba(79, 140, 247, 0.15);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #93b4f8;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}
.hero h1 {
    font-size: clamp(2.8rem, 7vw, 4.8rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 16px;
}
.hero h1 .highlight {
    background: linear-gradient(135deg, #a78bfa, #4f8cf7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.55);
    max-width: 480px;
    margin-bottom: 24px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.btn-primary {
    padding: 14px 40px;
    border-radius: 100px;
    background: linear-gradient(135deg, #4f8cf7, #7c5cfc);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 6px 28px rgba(79, 140, 247, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 44px rgba(79, 140, 247, 0.4);
}
.btn-secondary {
    padding: 14px 40px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-weight: 500;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s, border 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}
.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.hero-stats .stat-item {
    text-align: left;
}
.hero-stats .stat-item .num {
    font-weight: 900;
    font-size: 2rem;
    background: linear-gradient(135deg, #a78bfa, #4f8cf7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.hero-stats .stat-item .label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    display: block;
}
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.hero-avatar {
    width: 300px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #4f8cf7, #7c5cfc);
    padding: 4px;
    box-shadow: 0 20px 80px rgba(79, 140, 247, 0.15);
    animation: float 6s ease-in-out infinite;
}
.hero-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

/* ─── SECTION COMMON ─── */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 6px;
}
.section-title {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 12px;
}
.section-title .highlight {
    background: linear-gradient(135deg, #a78bfa, #4f8cf7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-desc {
    color: rgba(255, 255, 255, 0.45);
    max-width: 600px;
    font-size: 1.05rem;
}

/* ─── SCROLL ANIMATIONS ─── */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.reveal:not(.visible) {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ─── TIMELINE ─── */
.timeline {
    margin-top: 40px;
    position: relative;
    padding-left: 30px;
    border-left: 2px solid rgba(79, 140, 247, 0.15);
}
.timeline-item {
    margin-bottom: 40px;
    position: relative;
    cursor: pointer;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f8cf7, #7c5cfc);
    box-shadow: 0 0 20px rgba(79, 140, 247, 0.25);
    transition: transform 0.3s;
}
.timeline-item:hover::before {
    transform: scale(1.3);
}
.timeline-item .year {
    font-weight: 700;
    font-size: 1rem;
    color: #93b4f8;
    margin-bottom: 2px;
}
.timeline-item .title {
    font-weight: 700;
    font-size: 1.2rem;
}
.timeline-item .sub {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}
.timeline-item .desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-top: 4px;
}

/* ─── SKILLS ─── (размеры оставлены как в предитовом) */
.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: start;
    margin-top: 30px;
    position: relative;
}
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
}
.skills-category {
    margin-top: 0;
}
.skills-category h3 {
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.skill-item {
    flex: 0 0 auto;
    width: auto;
    min-width: 95px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 8px 6px;
    text-align: center;
    transition: background 0.3s, transform 0.2s, border-color 0.3s;
    cursor: default;
}
.skill-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    border-color: rgba(79, 140, 247, 0.3);
}
/* Иконки Font Awesome */
.skill-item .icon {
    display: block;
    font-size: 24px; /* чуть крупнее иконка */
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.8);
}
.skill-item .name {
    font-weight: 400; /* не жирный */
    font-size: 0.6rem; /* мельче */
    color: rgba(255, 255, 255, 0.6);
}

/* ─── RADAR CHART (размеры не меняем) ─── */
.radar-container {
    background: transparent !important;
    border-radius: 24px;
    padding: 10px;
    border: none;
    backdrop-filter: none;
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    position: absolute;
    top: 50%;
    right: -40px; /* как было в предитовом */
    transform: translateY(-50%) scale(0.95);
    width: 420px;
    max-width: none;
    z-index: 1;
}
.radar-container.active {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    pointer-events: auto;
}
.radar-container canvas {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    display: block;
    border-radius: 16px;
    background: transparent !important;
    border: none;
    box-shadow: none;
}
.radar-container .radar-label {
    display: none; /* скрываем подпись */
}

/* ─── PROJECTS ─── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 40px;
}
.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 28px;
    padding: 28px 24px;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    cursor: default;
    backdrop-filter: blur(4px);
    position: relative;
}
.project-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(79, 140, 247, 0.1);
}
.project-card .tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 100px;
    background: rgba(79, 140, 247, 0.08);
    font-size: 0.6rem;
    font-weight: 600;
    color: #93b4f8;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.project-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.project-card p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 14px;
}
.project-card .tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.project-card .tech span {
    padding: 3px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ─── CONTACT ─── */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}
.contact-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.contact-info p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 28px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.7);
}
.contact-item .ci-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(79, 140, 247, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #93b4f8;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border 0.3s, background 0.3s;
    outline: none;
    margin-bottom: 16px;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #4f8cf7;
    background: rgba(255, 255, 255, 0.04);
}
.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}
.contact-form button {
    width: 100%;
    padding: 16px;
    border-radius: 100px;
    background: linear-gradient(135deg, #4f8cf7, #7c5cfc);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 6px 28px rgba(79, 140, 247, 0.15);
}
.contact-form button:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 44px rgba(79, 140, 247, 0.3);
}

/* ─── SOFT SKILLS ─── */
.soft-skills {
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.soft-skills .trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s;
    user-select: none;
}
.soft-skills .trigger:hover {
    color: #fff;
}
.soft-skills .trigger .arrow {
    transition: transform 0.3s;
    font-size: 0.8rem;
}
.soft-skills .trigger.open .arrow {
    transform: rotate(180deg);
}
.soft-skills .content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease;
    opacity: 0;
    margin-top: 0;
}
.soft-skills .content.open {
    max-height: 500px;
    opacity: 1;
    margin-top: 20px;
}
.soft-skills .content ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    list-style: none;
}
.soft-skills .content ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    transition: background 0.3s;
}
.soft-skills .content ul li:hover {
    background: rgba(255, 255, 255, 0.04);
}
.soft-skills .content ul li .icon {
    font-size: 1.4rem;
}

/* ─── CHAT ICON ─── */
.chat-icon {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f8cf7, #7c5cfc);
    border: none;
    box-shadow: 0 8px 32px rgba(79, 140, 247, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.5s;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
.chat-icon:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(79, 140, 247, 0.5);
}
.chat-icon.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}
.chat-icon.shake {
    animation: shake 0.6s ease-in-out;
}
@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(8deg); }
    60% { transform: rotate(-5deg); }
    80% { transform: rotate(5deg); }
}

/* ─── CHAT TOOLTIP ─── */
.chat-tooltip {
    position: fixed;
    bottom: 100px;
    left: 30px;
    z-index: 999;
    max-width: 340px;
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 16px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    visibility: hidden;
    pointer-events: none;
}
.chat-tooltip.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
}
.chat-tooltip .close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0;
    line-height: 1;
}
.chat-tooltip .close-btn:hover {
    color: #fff;
}
.chat-tooltip .message {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    padding-right: 24px;
}
.chat-tooltip .message .author {
    display: block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
}

/* ─── FOOTER ─── */
footer {
    padding: 40px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
}
footer .socials {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 16px;
}
footer .socials a {
    font-size: 0.9rem;
    opacity: 0.3;
    transition: opacity 0.3s, transform 0.3s;
    font-weight: 500;
    letter-spacing: 0.5px;
}
footer .socials a:hover {
    opacity: 1;
    transform: translateY(-2px);
}
footer .license {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.1);
    margin-top: 8px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .skills-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        position: static;
    }
    .radar-container {
        position: relative;
        top: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        z-index: auto;
    }
    .radar-container.active {
        transform: none;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-visual {
        order: -1;
        margin-bottom: 20px;
    }
    .hero-avatar {
        width: 220px;
    }
    .contact-wrap {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        gap: 16px;
        position: absolute;
        top: 70px;
        right: 20px;
        background: rgba(5, 7, 10, 0.95);
        padding: 24px 32px;
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(20px);
        min-width: 200px;
    }
    .hamburger {
        display: flex !important;
    }
    .side-nav {
        display: none;
    }
    .chat-icon {
        bottom: 20px;
        left: 20px;
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    .chat-tooltip {
        left: 20px;
        bottom: 80px;
        max-width: 280px;
        padding: 14px 16px;
    }
    section {
        min-height: auto;
        padding: 80px 0;
    }
}
@media (max-width: 600px) {
    .container {
        padding: 0 20px;
    }
    .hero h1 {
        font-size: 2.4rem;
    }
    .hero-avatar {
        width: 170px;
    }
    .hero-stats {
        gap: 20px;
    }
    .hero-stats .stat-item .num {
        font-size: 1.6rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .skills-grid {
        gap: 6px;
    }
    .skill-item {
    min-width: 85px;
    padding: 6px 4px;
    }
    .skill-item .icon {
        font-size: 20px;
        margin-bottom: 3px;
    }
    .skill-item .name {
        font-size: 0.55rem;
    }
    .timeline {
        padding-left: 20px;
    }
    .timeline-item::before {
        left: -26px;
        width: 10px;
        height: 10px;
    }
    .radar-container {
        max-width: 320px;
        padding: 5px;
    }
    .chat-tooltip {
        left: 10px;
        bottom: 70px;
        max-width: 240px;
        padding: 12px 14px;
    }
    .chat-tooltip .message {
        font-size: 0.85rem;
    }
    .chat-icon {
        bottom: 10px;
        left: 10px;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

/* ─── ФОРМА ОБРАТНОЙ СВЯЗИ (улучшенная анимация) ─── */
.form-wrapper {
    position: relative;
    min-height: 340px;
}

.contact-form {
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: relative;
    z-index: 2;
}

.contact-form.hidden {
    opacity: 0;
    transform: translateY(-20px) scale(0.97);
    pointer-events: none;
}

.contact-form.hidden + .form-response {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.form-response {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
    pointer-events: none;
    z-index: 1;
}

.form-response.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.response-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding: 20px;
}

.response-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 8px;
}

.response-icon svg {
    width: 100%;
    height: 100%;
    stroke: #4f8cf7;
    fill: none;
}

.response-icon.success svg {
    stroke: #34d399;
}

.response-icon.error svg {
    stroke: #ef4444;
}

.response-message {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 400px;
    line-height: 1.6;
}

.btn-reset {
    margin-top: 16px;
    padding: 10px 32px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.btn-reset:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.02);
}

/* Адаптив */
@media (max-width: 600px) {
    .form-wrapper {
        min-height: 280px;
    }
    .response-message {
        font-size: 1rem;
    }
    .response-icon {
        width: 44px;
        height: 44px;
    }
}
#chatMessage {
    transition: opacity 0.2s ease;
}
/* ─── Скрытый SEO-блок  ─── */
.seo-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* ─── SOFT SKILLS — тёмный и ненавязчивый ─── */
.soft-skills .content ul li {
    background: rgba(255, 255, 255, 0.015) !important;
    border-color: rgba(255, 255, 255, 0.03) !important;
    color: rgba(255, 255, 255, 0.35) !important; /* темнее */
    transition: background 0.2s, color 0.2s;
}

.soft-skills .content ul li:hover {
    background: rgba(255, 255, 255, 0.025) !important;
    color: rgba(255, 255, 255, 0.5) !important; /* чуть светлее при наведении */
}

.soft-skills .trigger {
    color: rgba(255, 255, 255, 0.3) !important;
}

.soft-skills .trigger:hover {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* иконки тоже затемняем */
.soft-skills .content ul li .icon {
    opacity: 0.4;
    transition: opacity 0.2s;
}
.soft-skills .content ul li:hover .icon {
    opacity: 0.6;
}