
.step:nth-child(3) {
    position: relative;
}

.step:nth-child(3) .books-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.step:nth-child(3) .book-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
}

.step:nth-child(3) .book-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    max-width: 100px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.step:nth-child(3) .book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step:nth-child(3) .book-item:hover .book-cover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(110, 69, 226, 0.5);
}

.step:nth-child(3) .book-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.step:nth-child(3) .book-label small {
    font-size: 0.65rem;
    opacity: 0.85;
    font-weight: 500;
}

.step:nth-child(3) .carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step:nth-child(3) .carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.step:nth-child(3) .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.step:nth-child(3) .carousel-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.step:nth-child(3) .carousel-dot.active {
    background: #88d3ce;
    width: 24px;
    border-radius: 4px;
}

/* Десктоп */
.step:nth-child(3) .carousel-arrow {
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(110, 69, 226, 0.15);
    border: 1.5px solid rgba(136, 211, 206, 0.3);
    color: #88d3ce;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.step:nth-child(3) .carousel-arrow svg {
    width: 12px;
    height: 12px;
}

.step:nth-child(3) .carousel-arrow:hover {
    background: rgba(110, 69, 226, 0.3);
    border-color: rgba(136, 211, 206, 0.6);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(110, 69, 226, 0.25);
}

.step:nth-child(3) .carousel-arrow:active {
    transform: scale(0.95);
}

/* Модальное окно - на весь блок 3 */
.step:nth-child(3) .book-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    overflow: hidden;
    border-radius: 8px;
    padding: 0.5rem;
}

.step:nth-child(3) .modal-content {
    background: rgba(30, 30, 60, 0.95);
    border: 1px solid rgba(136, 211, 206, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    position: relative;
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.step:nth-child(3) .modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: #88d3ce;
    transition: all 0.3s;
    border: none;
    background: none;
    padding: 0;
    z-index: 1000;
}

.step:nth-child(3) .modal-close:hover {
    transform: scale(1.2);
}

.step:nth-child(3) .modal-body {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.step:nth-child(3) .modal-cover {
    width: 100px;
    height: 140px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.step:nth-child(3) .modal-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.step:nth-child(3) .modal-info h3 {
    font-size: 1rem;
    margin: 0 0 0.3rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.step:nth-child(3) .modal-info p {
    margin: 0.2rem 0;
    font-size: 0.8rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.step:nth-child(3) #modalBookAuthor {
    color: #88d3ce;
    font-weight: 600;
}

.step:nth-child(3) #modalBookDescription {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.8rem;
    flex: 1;
    overflow-y: auto;
}

/* Планшет */
@media (max-width: 1024px) {
    .step:nth-child(3) .carousel-arrow {
        width: 24px;
        height: 24px;
    }

    .step:nth-child(3) .carousel-arrow svg {
        width: 12px;
        height: 12px;
    }

    .step:nth-child(3) .modal-content {
        padding: 1.3rem;
    }

    .step:nth-child(3) .modal-cover {
        width: 90px;
        height: 120px;
    }

    .step:nth-child(3) .modal-info h3 {
        font-size: 0.95rem;
    }

    .step:nth-child(3) .modal-info p {
        font-size: 0.75rem;
    }
}

/* Мобильный */
@media (max-width: 768px) {
    .step:nth-child(3) .books-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .step:nth-child(3) .carousel-arrow {
        width: 22px;
        height: 22px;
    }

    .step:nth-child(3) .carousel-arrow svg {
        width: 11px;
        height: 11px;
    }

    .step:nth-child(3) .book-cover {
        max-width: 90px;
    }

    .step:nth-child(3) .modal-content {
        padding: 1rem;
    }

    .step:nth-child(3) .modal-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.8rem;
    }

    .step:nth-child(3) .modal-cover {
        width: 80px;
        height: 110px;
    }

    .step:nth-child(3) .modal-info {
        width: 100%;
    }

    .step:nth-child(3) .modal-info h3 {
        font-size: 0.9rem;
    }

    .step:nth-child(3) .modal-info p {
        font-size: 0.7rem;
    }
}

/* Маленький мобильный */
@media (max-width: 480px) {
    .step:nth-child(3) .books-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .step:nth-child(3) .carousel-arrow {
        width: 20px;
        height: 20px;
    }

    .step:nth-child(3) .carousel-arrow svg {
        width: 10px;
        height: 10px;
    }

    .step:nth-child(3) .book-label {
        font-size: 0.7rem;
    }

    .step:nth-child(3) .book-label small {
        font-size: 0.6rem;
    }

    .step:nth-child(3) .modal-content {
        padding: 0.8rem;
    }

    .step:nth-child(3) .modal-close {
        top: 0.8rem;
        right: 0.8rem;
        font-size: 1.5rem;
    }

    .step:nth-child(3) .modal-body {
        gap: 0.6rem;
        margin-top: 0.5rem;
    }

    .step:nth-child(3) .modal-cover {
        width: 70px;
        height: 95px;
    }

    .step:nth-child(3) .modal-info h3 {
        font-size: 0.85rem;
    }

    .step:nth-child(3) .modal-info p {
        font-size: 0.65rem;
    }
}



body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #eaeae0;
    font-family: 'Poppins', -apple-system, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 1rem 2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6e45e2, #ff7e5f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav a {
    color: rgba(234, 234, 224, 0.7);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #88d3ce;
}

/* Header */
header {
    text-align: center;
    padding: 6rem 2rem 3rem;
}

h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1rem;
    color: rgba(234, 234, 224, 0.8);
}


.steps {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 1024px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        align-items: start;
        justify-content: start;
    }

    .step:nth-child(2) {
        margin-top: 5rem;  /* 5 * 16px = 80px (если 1rem = 16px) */
    }

    .step:nth-child(3) {
        margin-top: 10rem;  /* 10 * 16px = 160px */
    }
}

/* Step Card */
.step {
    position: relative;
    background: rgba(30, 30, 60, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-6px);
    background: rgba(30, 30, 60, 0.8);
    border-color: rgba(136, 211, 206, 0.5);
    box-shadow: 0 15px 40px rgba(110, 69, 226, 0.25);
}

/* Step Header */
<!--        .step-header {-->
<!--            display: flex;-->
<!--            align-items: center;-->
<!--            gap: 1rem;-->
<!--            margin-bottom: 1rem;-->
<!--        }-->

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.step:nth-child(2) .step-header {
    margin-bottom: 0 !important;
}

.step:nth-child(3) .step-header {
    margin-bottom: 0 !important;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 700;
    font-family: monospace;
    flex-shrink: 0;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    margin: 0
}

/* Step Content */
.step-code {
    background: #131313;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 0.5rem 0.6rem;
    margin-bottom: 1rem;
    overflow: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #b4b4b4;
    max-height: 140px;
}

.keyword { color: #b08ab9; }
.func { color: #76bfbb; }
.str { color: #b4886e; }
.num { color: #9ccaf5; }

.console {
    background: #0a0e27;
    border-left: 3px solid #34e2e2;
}

.result {
    background: #0a1f2e;
    border-left: 3px solid #88d3ce;
}

.success { color: #4e9a06; }
.info { color: #34e2e2; }
.prompt { color: #4e9a06; font-weight: 600; }
.label { color: #88d3ce; font-weight: 600; }

/* Button */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #6e45e2, #ff7e5f);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(110, 69, 226, 0.3);
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(110, 69, 226, 0.5);
}

/* Arrow - Pure CSS */
.arrow {
    position: absolute;
    right: -54px;
    top: 20px;
    width: 50px;
    height: 40px;
    display: none;
}

/* Horizontal line */
.arrow::before {
    content: '';
    position: absolute;
    width: 36px;
    height: 2px;
    background: #EAEAE0;
    top: 0;
    left: 0;
    border-radius: 1px;
}

/* Vertical line */
.arrow::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 20px;
    background: #EAEAE0;
    top: 0;
    right: 0;
    border-radius: 1px;
}

/* Arrow head - triangle pointing right-down */
.arrow-head {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-top: 6px solid #EAEAE0;
}

@media (min-width: 1024px) {
    .arrow {
        display: block;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(234, 234, 224, 0.6);
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step {
    animation: fadeInUp 0.6s ease forwards;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }

/* Mobile */
@media (max-width: 1023px) {
    .steps {
        grid-template-columns: 1fr;
    }

    .step:nth-child(2),
    .step:nth-child(3) {
        margin-top: 0 !important;
    }

    .arrow {
        display: none !important;
    }
}

@media (max-width: 640px) {
    nav {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }

    .brand {
        font-size: 1.1rem;
    }

    nav a {
        margin-left: 1rem;
        font-size: 0.8rem;
    }

    header {
        padding: 3rem 1rem 2rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 1rem 2rem;
    }

    .step-header {
        gap: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .step-num {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .step-title {
        font-size: 1rem;
    }

    .step-code {
        padding: 1rem;
        font-size: 0.7rem;
        margin-bottom: 0.8rem;
        max-height: none;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

<!--для иконки (GitHub) step 2, чтобы была хорошая позиция-->
.github-icon {
    margin-left: 0.5rem;
    vertical-align: middle;
    display: inline-block;
    transition: transform 0.3s;
}

.btn:hover .github-icon {
    transform: scale(1.1);
}


/* Пульсирующие точки */
@keyframes pulse-point {
    0%, 100% {
        r: 12;
        opacity: 1;
        filter: drop-shadow(0 0 0px currentColor);
    }
    50% {
        r: 16;
        opacity: 0.8;
        filter: drop-shadow(0 0 8px currentColor);
    }
}

.pulse-point-0 {
    animation: pulse-point 2s infinite;
}

.pulse-point-1 {
    animation: pulse-point 2s infinite;
}

.pulse-point-2 {
    animation: pulse-point 2s infinite;
    animation-delay: 0.3s;
}

.pulse-point-3 {
    animation: pulse-point 2s infinite;
    animation-delay: 0.6s;
}

.pulse-point-4 {
    animation: pulse-point 2s infinite;
    animation-delay: 0.4s;
}

.pulse-point-5 {
    animation: pulse-point 2s infinite;
    animation-delay: 0.5s;
}

/* При наведении - все точки теряют пульс */
.points-group:has(.project-point:hover) .project-point {
    animation: none !important;
}

/* Текущая точка светится */
.project-point:hover {
    r: 18 !important;
    filter: drop-shadow(0 0 16px currentColor) !important;
    opacity: 1 !important;
}

/* Остальные становятся тусклыми -->
    .points-group:has(.project-point:hover) .project-point:not(:hover) {
    opacity: 0.3 !important;
}

.project-group {
    cursor: pointer;
}

/* Кружочек при наведении */
.project-group:hover .project-point {
  r: 16;
  filter: drop-shadow(0 0 16px rgba(136, 211, 206, 0.8));
  transition: all 0.3s ease;
}

/* Tooltip появляется при наведении (только CSS!) */
.project-group:hover .project-tooltip {
  opacity: 1 !important;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-tooltip {
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.project-group:hover .project-tooltip {
  pointer-events: auto;
}

/* Эффект тени */
.tooltip-bg {
  filter: drop-shadow(0 20px 50px rgba(110, 69, 226, 0.3));
  transition: all 0.35s;
}

.project-group:hover .tooltip-bg {
  filter: drop-shadow(0 25px 60px rgba(110, 69, 226, 0.4));
  stroke: rgba(136, 211, 206, 0.7);
}


     .carousel-slide[data-hidden="true"] { display: none !important; }
     .carousel-slide[data-hidden="false"] { display: contents !important; }

/* ===== MODAL - НУЖЕН box-sizing ===== */
.step:nth-child(3) .book-modal,
.step:nth-child(3) .modal-content,
.step:nth-child(3) .modal-body,
.step:nth-child(3) .modal-cover,
.step:nth-child(3) .modal-info {
    box-sizing: border-box;
}

/* ===== КНИГИ - НУЖЕН box-sizing ===== */
.step:nth-child(3) .books-compact,
.step:nth-child(3) .book-item,
.step:nth-child(3) .book-cover {
    box-sizing: border-box;
}

/* ===== CAROUSEL - НУЖЕН box-sizing ===== */
.step:nth-child(3) .carousel-controls,
.step:nth-child(3) .carousel-dots,
.step:nth-child(3) .carousel-dot,
.step:nth-child(3) .carousel-arrow {
    box-sizing: border-box;
}


pre {
    padding: 0;
    margin: 0;
}

.step-content {
  padding: 0;
    margin: 0;
}


/* ===== FLASHCARDS GRID КОНТЕЙНЕР ===== */

.flashcards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 0rem 0 2rem 0;  /* ← margin-bottom: 2rem */
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* КАРТОЧКА */
.card-flip {
    width: 100%;
    height: 110px;  /* ← уменьшил высоту */
    cursor: pointer;
    perspective: 1000px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.card-flip:hover {
    z-index: 10;
}

.card-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-style: preserve-3d;
}

.card-flip:hover .card-flip-inner {
    transform: rotateY(180deg);
}

/* ===== FRONT СТОРОНА (Вопрос) ===== */
.card-flip-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    border-radius: 10px;
    box-sizing: border-box;

    /* ФИОЛЕТОВЫЙ */
    background: linear-gradient(135deg, rgba(110, 69, 226, 0.6) 0%, rgba(75, 127, 255, 0.6) 100%);

    /* ГРАНИЦА */
    border: 1px solid rgba(110, 69, 226, 0.3);

    /* ТЕНЬ */
    box-shadow: 0 4px 12px rgba(110, 69, 226, 0.15);

    /* ТЕКСТ */
    font-size: 0.75rem;
    line-height: 1.3;
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

/* ===== BACK СТОРОНА (Ответ) ===== */
.card-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    border-radius: 10px;
    transform: rotateY(180deg);
    box-sizing: border-box;

    /* ТЕМНЫЙ ЗЕЛЕНЫЙ */
    background: linear-gradient(135deg, rgba(30, 90, 90, 0.7) 0%, rgba(42, 127, 127, 0.7) 100%);

    /* ГРАНИЦА */
    border: 1px solid rgba(136, 211, 206, 0.3);

    /* ТЕНЬ */
    box-shadow: 0 4px 12px rgba(42, 127, 127, 0.15);

    /* ТЕКСТ */
    font-size: 0.75rem;
    line-height: 1.3;
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;

    /* ГАЛОЧКА */
    position: relative;
}

.card-flip-back::after {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 1rem;
    color: #88D3CE;
    opacity: 0.8;
}

/* HOVER ЭФФЕКТ */
.card-flip:hover .card-flip-front {
    box-shadow: 0 6px 16px rgba(110, 69, 226, 0.25);
}

.card-flip:hover .card-flip-back {
    box-shadow: 0 6px 16px rgba(42, 127, 127, 0.25);
}

/* АДАПТИВНОСТЬ ПЛАНШЕТ */
@media (max-width: 1024px) {
    .flashcards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.9rem;
        margin: 1.3rem 0 1.8rem 0;
    }

    .card-flip {
        height: 105px;
    }

    .card-flip-front,
    .card-flip-back {
        font-size: 0.7rem;
        padding: 0.7rem;
    }
}

/* АДАПТИВНОСТЬ МОБИЛЬ ГОРИЗОНТАЛЬНАЯ */
@media (max-width: 768px) {
    .flashcards-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin: 1.2rem 0 1.5rem 0;
    }

    .card-flip {
        height: 100px;
    }

    .card-flip-front,
    .card-flip-back {
        font-size: 0.65rem;
        padding: 0.6rem;
    }
}

/* АДАПТИВНОСТЬ МОБИЛЬ */
@media (max-width: 480px) {
    .flashcards-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        margin: 1rem 0 1.3rem 0;
    }

    .card-flip {
        height: 95px;
    }

    .card-flip-front,
    .card-flip-back {
        font-size: 0.6rem;
        padding: 0.5rem;
        border-radius: 8px;
    }
}

/* ОЧЕНЬ МАЛЕНЬКИЙ ЭКРАН */
@media (max-width: 360px) {
    .flashcards-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        margin: 0.8rem 0 1.2rem 0;
    }

    .card-flip {
        height: 90px;
    }

    .card-flip-front,
    .card-flip-back {
        font-size: 0.55rem;
        padding: 0.4rem;
    }
}

/* Исправление наложения тултипов */
.step:nth-child(2) {
    position: relative;
    z-index: 10;
}

.step:nth-child(3) {
    position: relative;
    z-index: 1;
}

/* Увеличиваем z-index для контейнера с графиком */
#skillGraph {
    z-index: 1000;
}

/* Гарантируем, что тултип поверх всего */
#tooltip {
    z-index: 9999 !important;
    transform: translateZ(100px);
}