* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-user-select: none; /* Запрет выделения на iOS */
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            -webkit-touch-callout: none; /* Запрет контекстного меню на iOS */
            -webkit-tap-highlight-color: transparent; /* Убираем подсветку при тапе */
        }
        
        body {
            font-family: 'Inter', sans-serif;
            background-color: #efded1;
            height: 100vh;
            overflow: hidden;
            touch-action: pan-x; /* Разрешаем только горизонтальные жесты */
            -webkit-overflow-scrolling: touch;
            position: fixed; /* Фиксируем body */
            width: 100%;
        }
        
        html {
            overflow: hidden;
            height: 100%;
            -webkit-text-size-adjust: 100%; /* Запрет автоматического изменения размера текста на iOS */
            -ms-text-size-adjust: 100%;
        }

.slider-container {
            position: relative;
            width: 100%;
            height: 100vh;
            overflow: hidden;
            touch-action: pan-x; /* Только горизонтальные жесты */
            z-index: 1; /* Добавьте эту строку */
        }

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transform: translateX(100%);
    /* Убираем transition полностью - будем управлять через JS */
    overflow-y: auto;
    overflow-x: hidden;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}
.slide.active {
    transform: translateX(0);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.slide.prev {
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
 /* Верхняя часть */
       /* Верхняя часть */
        /* Верхняя часть */
        .header {
            position: fixed;
            top: 70px; /* Уменьшили отступ сверху */
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: 10px;
            z-index: 1001;
            width: auto;
            white-space: nowrap;
            /* Убрали фон и backdrop-filter */
        }

        .emoji {
            font-size: 24px;
        }

        .text {
            font-size: 18px;
            font-weight: bold;
            color: #333;
        }

 .main {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            max-width: 100vw;
            padding: 0 20px;
            box-sizing: border-box;
            margin-top: 40px; /* Отступ для хедера */
        }
        
      /* Стили для четвертого слайда */
        .skills-content {
            max-width: 1400px;
            width: 100%;
            margin-top: 120px; /* Базовый отступ */
        }
        
        .skills-title {
            font-size: 80px;
            font-weight: bold;
            color: #000;
            text-align: center;
            margin-bottom: 40px;
            padding-top: 20px; /* Дополнительный отступ сверху */
        }

    .hello-text {
        font-size: 120px;
        font-weight: bold;
        color: #000;
        text-align: center;
        letter-spacing: 8px;
    }

    .big-text {
        font-size: 80px;
        font-weight: bold;
        color: #000;
        text-align: left;
        line-height: 1.1;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: manual;
        white-space: normal;
    }

    .navigation-buttons {
        position: absolute;
        bottom: 40px;
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 0 40px;
    }

    .nav-button {
        width: 80px;
        height: 80px;
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 24px;
        font-weight: bold;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
    }

    .prev-button {
        background-color: #ff4757;
    }

    .next-button {
        background-color: #4285f4;
    }

    .nav-button:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }

    .navigation-buttons .nav-button:only-child {
        margin-left: 0;
    }

    .skills-content {
        max-width: 1400px;
        width: 100%;
        margin-top: 140px;
    }

    .skills-title {
        font-size: 80px;
        font-weight: bold;
        color: #000;
        text-align: center;
        margin-bottom: 60px;
    }

    .skills-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 40px;
        padding: 0 40px;
    }

    .skill-column h3 {
        font-size: 20px;
        font-weight: bold;
        color: #000;
        margin-bottom: 15px;
    }

    .skill-column p {
        font-size: 16px;
        color: #000;
        line-height: 1.6;
        margin-bottom: 25px;
    }

.project-content {
    display: flex;
    align-items: left;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.project-info {
    flex: 1;
    margin-left: 80px;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-description {
    font-size: 16px;
    color: #000;
    margin-bottom: 20px;
    margin-top: 0;
}

    .project-number {
        font-size: 200px;
        font-weight: bold;
        color: #000;
    }

    .project-info {
        flex: 1;
        margin-left: 80px;
        min-width: 0;
        max-width: 100%;
    }

    .project-description {
        font-size: 24px;
        color: #000;
        margin-bottom: 20px;
    }

    .project-link {
        font-size: 48px;
        color: #4285f4;
        text-decoration: underline;
        font-weight: bold;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        display: block;
        max-width: 100%;
    }

    .project-link:hover {
        color: #2563eb;
    }

    .button-container {
        position: fixed;
        bottom: 40px;
        right: 40px;
    }

    .blue-button {
        width: 80px;
        height: 80px;
        background-color: #4285f4;
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 24px;
        font-weight: bold;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
    }

    .blue-button:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }

    .navigation-controls {
        position: fixed;
        bottom: 30px;
        left: 0;
        right: 0;
        display: flex;
        justify-content: space-between;
        padding: 0 30px;
        pointer-events: none;
        z-index: 1000;
    }

    .nav-button-container {
        pointer-events: auto;
    }

    .prev-container {
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .prev-container.show {
        opacity: 1;
    }

    .nav-button-global {
        width: 70px;
        height: 70px;
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 22px;
        font-weight: bold;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
    }

    .prev-button-global {
        background-color: #ff4757;
    }

    .next-button-global {
        background-color: #4285f4;
    }

    .nav-button-global:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }




    /* Специальные стили для слайда с навыками */
.skills-main {
    position: static !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start !important;
    justify-content: center;
    padding: 80px 20px 120px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.skills-content-wrapper {
    width: 100%;
    max-width: 1400px;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    padding-right: 10px;
}

.skills-content-wrapper::-webkit-scrollbar {
    width: 6px;
}

.skills-content-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.skills-content-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}
        

        .skills-title {
            font-size: 80px;
            font-weight: bold;
            color: #000;
            text-align: center;
            margin-bottom: 60px;
            line-height: 1.1;
        }
        
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 40px;
            padding: 0 40px;
        }

    /* Адаптивность */
    @media (max-width: 768px) {
           .header {
                top: 60px;
                gap: 8px;
            }
            
            .emoji {
                font-size: 20px;
            }
            
            .text {
                font-size: 16px;
            }

        .hello-text {
            font-size: 60px;
            letter-spacing: 4px;
        }

        .button-container {
            bottom: 30px;
            right: 30px;
        }

        .blue-button {
            width: 60px;
            height: 60px;
            font-size: 20px;
        }

        .big-text {
            font-size: 45px;
            text-align: center;
            padding: 0 20px;
            line-height: 1.2;
        }

        .navigation-buttons {
            bottom: 30px;
            padding: 0 30px;
        }

        .nav-button {
            width: 60px;
            height: 60px;
            font-size: 20px;
        }

        .skills-content {
            margin-top: 120px;
        }

        .skills-title {
            font-size: 45px;
            margin-bottom: 40px;
        }

        .skills-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 30px;
            padding: 0 20px;
        }

        .skill-column h3 {
            font-size: 18px;
        }

        .skill-column p {
            font-size: 14px;
        }

        .project-content {
            flex-direction: column;
            text-align: center;
            padding: 0 15px;
        }

        .project-number {
            font-size: 120px;
            margin-bottom: 30px;
        }

        .project-info {
            margin-left: 0;
            margin-top: 20px;
        }

        .project-description {
            font-size: 18px;
        }

        .project-link {
            font-size: 24px;
        }

        .navigation-controls {
            bottom: 25px;
            padding: 0 25px;
        }

        .nav-button-global {
            width: 60px;
            height: 60px;
            font-size: 20px;
        }

        .main {
            padding: 0 15px;
        }

        .big-text {
            padding: 0 15px;
        }
    }

    @media (max-width: 480px) {
           .header {
                top: 50px;
                gap: 6px;
            }
            
            .emoji {
                font-size: 18px;
            }
            
            .text {
                font-size: 14px;
            }
        .hello-text {
            font-size: 45px;
            letter-spacing: 2px;
        }

        .big-text {
            font-size: 32px;
            line-height: 1.3;
            padding: 0 15px;
        }

        .skills-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }

        .skills-content {
            margin-top: 100px;
        }

        .skills-title {
            font-size: 32px;
        }

        .project-number {
            font-size: 80px;
        }

        .project-description {
            font-size: 16px;
        }

        .project-link {
            font-size: 18px;
        }

        .navigation-controls {
            bottom: 20px;
            padding: 0 20px;
        }

        .nav-button-global {
            width: 50px;
            height: 50px;
            font-size: 18px;
        }

        .main {
            padding: 0 10px;
        }

        .big-text {
            padding: 0 10px;
        }

        .project-content {
            padding: 0 10px;
        }
    }

    @media (max-width: 360px) {
         .header {
                top: 40px;
                gap: 5px;
            }
            
            .emoji {
                font-size: 16px;
            }
            
            .text {
                font-size: 12px;
            }

        .hello-text {
            font-size: 35px;
            letter-spacing: 1px;
        }

        .big-text {
            font-size: 24px;
            line-height: 1.2;
            padding: 0 10px;
        }

        .skills-content {
            margin-top: 80px;
        }

        .skills-title {
            font-size: 24px;
            margin-bottom: 20px;
        }

        .skills-grid {
            grid-template-columns: 1fr;
            gap: 15px;
            padding: 0 15px;
        }

        .skill-column h3 {
            font-size: 16px;
            margin-bottom: 8px;
        }

        .skill-column p {
            font-size: 13px;
            line-height: 1.4;
        }

        .project-number {
            font-size: 60px;
            margin-bottom: 20px;
        }

        .project-description {
            font-size: 14px;
        }

        .project-link {
            font-size: 16px;
        }

        .navigation-controls {
            bottom: 15px;
            padding: 0 15px;
        }

        .nav-button-global {
            width: 45px;
            height: 45px;
            font-size: 16px;
        }
    }

    @media (max-width: 320px) {
        .header {
                top: 30px;
                gap: 4px;
            }
            
            .emoji {
                font-size: 14px;
            }
            
            .text {
                font-size: 11px;
            }

        .hello-text {
            font-size: 28px;
            letter-spacing: 0px;
        }

        .big-text {
            font-size: 20px;
            line-height: 1.1;
            padding: 0 5px;
        }

        .skills-content {
            margin-top: 70px;
        }

        .skills-title {
            font-size: 20px;
            margin-bottom: 15px;
        }

        .skills-grid {
            padding: 0 10px;
            gap: 10px;
        }

        .skill-column h3 {
            font-size: 14px;
            margin-bottom: 6px;
        }

        .skill-column p {
            font-size: 12px;
            line-height: 1.3;
        }

        .project-number {
            font-size: 50px;
            margin-bottom: 15px;
        }

        .project-description {
            font-size: 12px;
            margin-bottom: 10px;
        }

        .project-link {
            font-size: 14px;
            word-break: break-word;
            hyphens: auto;
        }

        .navigation-controls {
            bottom: 10px;
            padding: 0 10px;
        }

        .nav-button-global {
            width: 40px;
            height: 40px;
            font-size: 14px;
        }

        .main {
            padding: 0 5px;
        }

        .big-text {
            padding: 0 5px;
        }

        .project-content {
            padding: 0 5px;
        }
    }

    @media (max-width: 768px) {
            .main {
                margin-top: 30px;
            }
            
            .skills-content {
                margin-top: 140px;
            }
        }

        @media (max-width: 480px) {
            .main {
                margin-top: 0px;
            }
            
            .skills-content {
                margin-top: 120px;
            }
        }

        @media (max-width: 360px) {
            .main {
                margin-top: 15px;
            }
            
            .skills-content {
                margin-top: 100px;
            }
        }

        @media (max-width: 320px) {
            .main {
                margin-top: 10px;
            }
            
            .skills-content {
                margin-top: 90px;
            }
        }

        @media (max-width: 768px) {
            .header {
                top: 60px;
                padding: 8px 16px;
            }
            
            .skills-content {
                margin-top: 160px; /* Увеличили отступ */
            }
            
            .skills-title {
                font-size: 45px;
                margin-bottom: 40px;
            }
        }

        @media (max-width: 480px) {
            .header {
                top: 50px;
                padding: 6px 12px;
            }
            
            .skills-content {
                margin-top: 140px; /* Увеличили отступ */
            }
            
            .skills-title {
                font-size: 32px;
                margin-bottom: 30px;
            }
        }

        @media (max-width: 360px) {
            .header {
                top: 40px;
                padding: 5px 10px;
            }
            
            .skills-content {
                margin-top: 120px; /* Увеличили отступ */
            }
            
            .skills-title {
                font-size: 24px;
                margin-bottom: 20px;
            }
        }

        @media (max-width: 320px) {
            .header {
                top: 30px;
                padding: 4px 8px;
            }
            
            .skills-content {
                margin-top: 100px; /* Увеличили отступ */
            }
            
            .skills-title {
                font-size: 20px;
                margin-bottom: 15px;
            }
        }

        @media (max-width: 768px) {
            .slide {
                padding-top: 100px;
            }
        }

        @media (max-width: 480px) {
            .slide {
                padding-top: 90px;
            }
        }

        @media (max-width: 360px) {
            .slide {
                padding-top: 80px;
            }
        }

        @media (max-width: 320px) {
            .slide {
                padding-top: 70px;
            }
        }
  
        @media (max-width: 768px) {
            .header {
                top: 15px;
            }
            
            .skills-content {
                margin-top: 80px; /* Увеличенный отступ */
            }
            
            .skills-title {
                font-size: 32px; /* Сразу маленький размер */
                margin-bottom: 30px;
                padding-top: 40px; /* Большой отступ сверху */
            }
        }

        @media (max-width: 480px) {
            .header {
                top: 30px;
            }
            
            .skills-content {
                margin-top: 100px;
            }
            
            .skills-title {
                font-size: 24px;
                padding-top: 50px; /* Еще больше отступ */
                margin-bottom: 25px;
            }
        }

        @media (max-width: 360px) {
            .skills-content {
                margin-top: 40px;
            }
            
            .skills-main {
                padding: 100px 10px 20px 10px;
            }
            
            .skills-title {
                font-size: 28px;
                margin-bottom: 25px;
                padding-top: 30px;
            }
        }

        @media (max-width: 768px) {
            .skills-main {
                padding: 80px 15px 20px 15px;
            }
            
            .skills-title {
                font-size: 36px;
                margin-bottom: 30px;
            }
            
            .skills-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 25px;
                padding: 0 15px;
            }
            
            .skill-column {
                background: rgba(255, 255, 255, 0.1);
                padding: 15px;
                border-radius: 10px;
            }
            
            .skill-column h3 {
                font-size: 16px;
                margin-bottom: 10px;
                color: #333;
            }
            
            .skill-column p {
                font-size: 14px;
                line-height: 1.5;
                color: #555;
            }
        }

        @media (max-width: 480px) {
            .skills-main {
                padding: 80px 15px 50px 15px;
                 height: auto;
            }
            
            .skills-title {
                font-size: 36px;
                margin-bottom: 30px;
                padding-top: 20px;
            }
            .skills-grid {
                grid-template-columns: 1fr;
                gap: 15px;
                padding: 0 10px;
            }
            
            .skill-column {
                background: rgba(255, 255, 255, 0.15);
                padding: 12px;
                border-radius: 8px;
                margin-bottom: 5px;
            }
        }

        @media (max-width: 360px) {
            .skills-main {
                padding: 80px 5px 20px 5px;
                height: auto;
            }
            
            .skills-title {
                font-size: 24px;
                margin-bottom: 40px;
                padding-top: 40px;
            }
        }


.code-element {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.6); /* Изменил с 0.7 на 0.6 */
    user-select: none;
    border-radius: 4px;
    padding: 2px 4px;
    will-change: transform;
    transform-origin: center;
    backface-visibility: hidden;
}


/* Когда добавляется класс анимации, элемент становится видимым */
.code-element.bounce-left,
.code-element.bounce-right,
.code-element.bounce-center {
    animation-duration: 8s;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

/* Класс для запуска анимации */
.code-element.animate {
    animation-fill-mode: forwards;
    animation-timing-function: linear;
}

.code-element.animate.bounce-left {
    animation: bounceLeft 8s linear forwards;
}

.code-element.animate.bounce-right {
    animation: bounceRight 8s linear forwards;
}

.code-element.animate.bounce-center {
    animation: bounceCenter 8s linear forwards;
}







/* Анимированный фон с элементами кода */
.code-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}


.code-element.emoji {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    color: rgba(0, 0, 0, 0.6); /* Изменил с 0.7 на 0.6 */
}

.code-element.small {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.55); /* Изменил с 0.65 на 0.55 */
}

.code-element.medium {
    font-size: 24px;
    color: rgba(0, 0, 0, 0.6); /* Изменил с 0.7 на 0.6 */
}

.code-element.large {
    font-size: 30px;
    color: rgba(0, 0, 0, 0.65); /* Изменил с 0.75 на 0.65 */
}

/* Добавляем больше разнообразия в начальные позиции */
@keyframes bounceLeft {
    0% {
        transform: translateY(100vh) translateX(-30px); /* Изменил с -20px */
    }
    25% {
        transform: translateY(75vh) translateX(70px); /* Изменил с 80px */
    }
    50% {
        transform: translateY(50vh) translateX(-50px); /* Изменил с -60px */
    }
    75% {
        transform: translateY(25vh) translateX(90px); /* Изменил с 100px */
    }
    100% {
        transform: translateY(-10vh) translateX(-50px); /* Изменил с -40px */
    }
}

@keyframes bounceRight {
    0% {
        transform: translateY(100vh) translateX(40px); /* Изменил с 20px */
    }
    25% {
        transform: translateY(75vh) translateX(-70px); /* Изменил с -80px */
    }
    50% {
        transform: translateY(50vh) translateX(50px); /* Изменил с 60px */
    }
    75% {
        transform: translateY(25vh) translateX(-90px); /* Изменил с -100px */
    }
    100% {
        transform: translateY(-15vh) translateX(50px); /* Изменил с 40px */
    }
}

@keyframes bounceCenter {
    0% {
        transform: translateY(100vh) translateX(-10px); /* Изменил с 0px */
    }
    20% {
        transform: translateY(80vh) translateX(-40px); /* Изменил с -50px */
    }
    40% {
        transform: translateY(60vh) translateX(40px); /* Изменил с 50px */
    }
    60% {
        transform: translateY(40vh) translateX(-20px); /* Изменил с -30px */
    }
    80% {
        transform: translateY(20vh) translateX(20px); /* Изменил с 30px */
    }
    100% {
        transform: translateY(-12vh) translateX(-10px); /* Изменил с 0px */
    }
}

/* Убираем nth-child правила, чтобы не конфликтовали со случайными значениями */

/* Убираем все изменения opacity */
.code-element:nth-child(2n) {
    animation-duration: 6s;
    animation-delay: -1s;
    animation-fill-mode: forwards;
}

.code-element:nth-child(3n) {
    animation-duration: 7s;
    animation-delay: -2s;
    animation-fill-mode: forwards;
}

.code-element:nth-child(4n) {
    animation-duration: 9s;
    animation-delay: -3s;
    animation-fill-mode: forwards;
}

.code-element:nth-child(5n) {
    animation-duration: 5s;
    animation-delay: -1.5s;
    animation-fill-mode: forwards;
}

.code-element:nth-child(6n) {
    animation-duration: 8s;
    animation-delay: -2.5s;
    animation-fill-mode: forwards;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    touch-action: pan-x;
    z-index: 1;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .code-element {
        color: rgba(0, 0, 0, 0.6);
    }
    
    .code-element.small {
        font-size: 16px;
        color: rgba(0, 0, 0, 0.55);
    }
    
    .code-element.medium {
        font-size: 20px;
        color: rgba(0, 0, 0, 0.6);
    }
    
    .code-element.large {
        font-size: 26px;
        color: rgba(0, 0, 0, 0.65);
    }
    
    .code-element.emoji {
        font-size: 28px;
        color: rgba(0, 0, 0, 0.6);
    }
}

.session-warning {
    color: #e74c3c !important;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.no-session {
    background: #ffe6e6 !important;
    border: 2px solid #ff9999 !important;
}



/* Стили кодового редактора */
.code-editor {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    font-family: 'Fira Code', 'Courier New', monospace;
    max-width: 100%;
    margin-top: 20px;
    /* Разрешаем выделение в редакторе */
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.code-editor-content {
    display: flex;
    background: #1e1e1e;
    height: 700px;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.editor-tabs {
    display: flex;
    gap: 8px;
    order: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.tab {
    background: #3c3c3c;
    color: #cccccc;
    padding: 6px 12px;
    border-radius: 4px 4px 0 0;
    font-size: 13px;
    font-weight: 500;
}

.tab.active {
    background: #1e1e1e;
    color: #ffffff;
}

.editor-controls {
    display: flex;
    gap: 8px;
    order: 1;
}

.code-editor-header {
    background: #2d2d30;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3e3e42;
    min-height: 36px;
    position: relative;
    z-index: 10;
}



.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ff5f57; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #28ca42; }

.code-editor-content {
    display: flex;
    background: #1e1e1e;
    height: 500px;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.line-numbers {
    background: #1e1e1e;
    color: #6e7681;
    padding: 16px 12px;
    font-size: 14px;
    line-height: 1.5;
    text-align: right;
    border-right: 1px solid #3e3e42;
    user-select: none;
    flex-shrink: 0;
    position: sticky;
    left: 0;
}

.code-text {
    flex: 1;
    padding: 16px;
    color: #e6edf3;
    font-size: 14px;
    line-height: 1.5;
    min-width: 0;
    /* Разрешаем выделение текста */
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.line-numbers span {
    display: block;
}

.code-editor-content::-webkit-scrollbar {
    width: 12px;
}

.code-editor-content::-webkit-scrollbar-track {
    background: #2d2d30;
}

.code-editor-content::-webkit-scrollbar-thumb {
    background: #424245;
    border-radius: 6px;
}

.code-editor-content::-webkit-scrollbar-thumb:hover {
    background: #4e4e51;
}

.code-text div {
    margin-bottom: 4px;
    min-height: 21px;
    /* Разрешаем выделение */
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

@media (max-width: 768px) {
    .code-editor-content {
        height: 600px;
        max-height: 65vh;
    }
}

@media (max-width: 480px) {
    .code-editor-content {
        height: 500px;
        max-height: 55vh;
    }
}

/* Подсветка markdown синтаксиса */
.markdown-header {
    color: #79c0ff !important;
    font-weight: bold;
}

.markdown-bold {
    color: #ffa657 !important;
    font-weight: 600;
}

.markdown-link {
    color: #a5d6ff !important;
}

.code-text div {
    margin-bottom: 4px;
    min-height: 21px;
}

/* Адаптивность для кодового редактора */
@media (max-width: 768px) {
    .code-editor {
        font-size: 12px;
        margin-top: 0px;
        text-align: left;
    }
    
    .line-numbers {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .code-text {
        padding: 12px;
        font-size: 12px;
    }
    
    .tab {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .control {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .project-content {
        flex-direction: column;
        text-align: left;
    }
    
    .project-number {
        font-size: 80px;
        margin-bottom: 20px;
    }
    
    .project-info {
        margin-left: 0;
        width: 100%;
    }
    
    .code-editor {
        max-width: 100%;
        overflow-x: auto;
    }
}

/* Контактная информация */
/* Контактная информация */
.contact-info {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

.telegram-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 136, 204, 0.95);
    color: white;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 3px 12px rgba(0, 136, 204, 0.25);
    transition: all 0.2s ease;
}

.telegram-contact:hover {
    background: rgba(0, 136, 204, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 136, 204, 0.35);
}

/* Адаптивность для контакта */
@media (max-width: 768px) {
    .contact-info {
        bottom: 25px;
    }
    
    .telegram-contact {
        padding: 10px 15px;
        font-size: 14px;
        gap: 8px;
    }
    
    .telegram-contact svg {
        width: 16px;
        height: 16px;
    }
}

/* Анимация тряски для Telegram кнопки */
@keyframes shake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-5px) rotate(-2deg); }
    50% { transform: translateX(5px) rotate(2deg); }
    75% { transform: translateX(-3px) rotate(-1deg); }
}

.telegram-contact.shake-active {
    animation: shake 0.6s ease-in-out !important;
    display: inline-block !important;
}

/* Анимированные стрелочки */
.animated-arrows {
    display: inline-block;
    margin-left: 20px;
    font-weight: bold;
    font-size: 0.8em;
}

.animated-arrows::after {
    content: "👉";
    animation: arrows-cycle 4s infinite;
}

@keyframes arrows-cycle {
    0% { content: "👉"; }
    20% { content: "👉👉"; }
    40% { content: "👉👉👉"; }
    60% { content: "👉👉👉👉"; }
    80% { content: "👉👉👉👉👉"; }
    100% { content: "👉"; }
}

/* Мобильная версия - эмодзи на новой строке */
@media (max-width: 768px) {
    .animated-arrows {
        display: block;
        margin-left: 0;
        margin-top: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .animated-arrows {
        margin-top: 15px;
        font-size: 0.7em;
    }
}