https://docs.google.com/document/d/1KlwCrYa3IEZqZXPdyJggKvdKei1SKKAe/edit?tab=t.0.step-number {
  font-family: 'JetBrains Mono', 'Inter', monospace;
  font-size: 2.8rem;
  font-weight: 800;
  color: #222;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  line-height: 1.1;
}
/* ============================================ */
/*                CYBER VARIABLES               */
/* ============================================ */

:root {
    /* Colors */
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --primary-light: #ff8159;
    --secondary: #0088cc;
    --secondary-dark: #006699;
    --accent: #ff0080;
    --accent-dark: #e6006b;
    
    /* Backgrounds */
    --bg-primary: #f7f3ee;  /* Цвет кости */
    --bg-secondary: #eae6e1; /* Чуть темнее цвет кости */
    --bg-tertiary: #e0dcd7;  /* Еще темнее для контраста */
    --bg-glass: rgba(0, 0, 0, 0.05);
    --bg-glass-hover: rgba(0, 0, 0, 0.1);
    
    /* Text */
    --text-primary: #1a1a1a;    /* Почти черный для основного текста */
    --text-secondary: #2d2d2d;  /* Темно-серый для подзаголовков */
    --text-tertiary: #4a4a4a;   /* Серый для дополнительного текста */
    --text-code: #ff6b35;
    
    /* Effects */
    --glow: 0 0 20px rgba(255, 107, 53, 0.3);
    --glow-secondary: 0 0 15px rgba(0, 136, 204, 0.3);
    --glow-accent: 0 0 25px rgba(255, 0, 128, 0.3);
    --shadow-cyber: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.08);
    
    /* Timing */
    --timing-fast: 0.2s;
    --timing-normal: 0.3s;
    --timing-slow: 0.5s;
    --easing: cubic-bezier(0.4, 0, 0.2, 1);
    --easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Borders */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border: 1px solid rgba(255, 107, 53, 0.2);

    --text: #333;
    --bg: #fff;
    --terminal-bg: rgba(0, 0, 0, 0.85);
    --terminal-text: #00ff00;
    --terminal-prompt: #ff6b35;
    --terminal-success: #00ff00;
    --terminal-warning: #ffff00;
    --terminal-error: #ff0000;
    --terminal-info: #00ffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: rgba(0, 0, 0, 0.1);
}

/* ============================================ */
/*              ABOUT PROJECT CARD              */
/* ============================================ */

.about-project-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 107, 53, 0.1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    position: relative;
    overflow: hidden;
    transition: all var(--timing-normal) var(--easing);
}

.about-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 107, 53, 0.1) 50%, 
        transparent 100%);
    transition: left 1.5s var(--easing);
}

.about-project-card:hover::before {
    left: 100%;
}

.about-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 107, 53, 0.2) inset;
}

.about-content {
    position: relative;
    z-index: 2;
}

.about-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-align: left;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* ============================================ */
/*               STAGES GRID                    */
/* ============================================ */

.stages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.stage-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--timing-normal) var(--easing);
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.stage-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.1) 0%, 
        rgba(255, 107, 53, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--timing-normal) var(--easing);
}

.stage-btn:hover::before {
    opacity: 1;
}

.stage-btn:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 
        0 20px 40px rgba(255, 107, 53, 0.2),
        0 0 0 1px rgba(255, 107, 53, 0.3) inset;
}

.stage-btn-active {
    background: linear-gradient(135deg, 
        var(--primary) 0%, 
        var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.stage-btn-active::before {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.1) 100%);
    opacity: 1;
}

.stage-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.stage-name {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.02em;
}

.stage-btn-active .stage-name {
    font-weight: 700;
}

/* Особая обработка для 5-го элемента */
.stages-grid .stage-btn:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 280px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .stages-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        max-width: 100% !important;
        padding: 0 10px !important;
    }
    
    .stages-grid .stage-btn:nth-child(5) {
        grid-column: 1;
        max-width: none;
    }
    
    .stage-btn {
        padding: 1rem 0.8rem;
        min-height: 80px;
    }
    
    .stage-emoji {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }
    
    .stage-name {
        font-size: 0.9rem;
    }
    
    .about-project-card {
        padding: 1.5rem 1rem;
        margin: 0 0.8rem;
    }
    
    .about-text {
        font-size: 1rem;
    }
    
    /* Winners page specific */
    .future-stages {
        padding: 15px !important;
        margin: 15px 10px !important;
    }
    
    .stage-block {
        padding: 15px !important;
        margin: 10px 0 !important;
    }
    
    .stage-content {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .winners-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        max-width: 100% !important;
        padding: 0 10px !important;
    }
    
    .winner-card {
        padding: 8px !important;
    }
    
    .stages-nav {
        gap: 6px !important;
        flex-wrap: wrap !important;
    }
    
    .stage-nav-btn {
        padding: 8px 12px !important;
        font-size: 0.7rem !important;
    }
}

/* ============================================ */
/*               CASES SECTION                  */
/* ============================================ */

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.case-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-glass);
    border: 1px solid rgba(255, 107, 53, 0.1);
    transition: all var(--timing-normal) var(--easing);
    cursor: pointer;
    position: relative;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 25px 50px rgba(255, 107, 53, 0.2),
        0 0 0 1px rgba(255, 107, 53, 0.3) inset;
    border-color: var(--primary);
}

.case-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--timing-slow) var(--easing);
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.6) 0%, 
        rgba(255, 107, 53, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--timing-normal) var(--easing);
}

.case-card:hover .case-overlay {
    opacity: 1;
}

.case-play-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: all var(--timing-normal) var(--easing);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.case-card:hover .case-play-btn {
    transform: scale(1);
    background: white;
}

.case-play-btn svg {
    margin-left: 3px;
}

.case-content {
    padding: 1.5rem;
}

.case-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.case-description {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.case-tag {
    background: linear-gradient(135deg, 
        var(--primary) 0%, 
        var(--primary-dark) 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ============================================ */
/*             CASE MODAL                       */
/* ============================================ */

.case-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.case-modal.active {
    display: flex;
}

.case-modal-content {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(30px);
    border-radius: var(--border-radius-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.case-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 107, 53, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    transition: all var(--timing-fast) var(--easing);
    z-index: 10001;
}

.case-modal-close:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.case-modal-body {
    padding: 2rem;
}

.case-modal-header {
    margin-bottom: 2rem;
}

.case-modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

.case-modal-tags .case-tag {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
}

.case-modal-content-wrapper {
    display: block;
    width: 100%;
}

.case-modal-media img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-glass);
}

.case-modal-info {
    width: 100%;
}

.case-modal-info > div {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.case-modal-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
    padding-bottom: 0.5rem;
}

.case-modal-info p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.case-modal-links {
    margin-top: 2rem;
}

.case-modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.case-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--timing-normal) var(--easing);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.case-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.case-modal-btn.document-btn {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.case-modal-btn.document-btn:hover {
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4);
}

.case-modal-btn.instagram-btn {
    background: linear-gradient(135deg, #E4405F 0%, #C13584 100%);
    box-shadow: 0 4px 15px rgba(228, 64, 95, 0.3);
}

.case-modal-btn.instagram-btn:hover {
    box-shadow: 0 8px 25px rgba(228, 64, 95, 0.4);
}

.case-modal-btn.youtube-btn {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.case-modal-btn.youtube-btn:hover {
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .case-modal {
        padding: 1rem;
    }
    
    .case-modal-content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .case-modal-body {
        padding: 1.5rem;
    }
    
    .case-modal-header h2 {
        font-size: 1.5rem;
    }
}

/* ============================================ */
/*                 RESET & BASE                 */
/* ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: opacity 0.3s ease-in-out;
}

/* Плавные переходы между страницами */
.page-transition-enter {
    opacity: 0;
    transform: translateY(20px);
}

.page-transition-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.page-transition-exit {
    opacity: 1;
    transform: translateY(0);
}

.page-transition-exit-active {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease-in, transform 0.3s ease-in;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .matrix-bg, .particles, .floating-code {
        display: none !important;
    }
}

/* ============================================ */
/*               CURSOR SYSTEM                  */
/* ============================================ */

.cursor {
    width: 20px;
    height: 20px;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.5;
    transition: all 0.2s;
}

.cursor.hover .cursor-dot {
    transform: translate(-50%, -50%) scale(2);
    background: var(--accent);
    box-shadow: var(--glow-accent);
}

.cursor.hover .cursor-outline {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: var(--accent);
    opacity: 1;
}

/* Custom Cursor */
.custom-cursor {
    width: 24px;
    height: 24px;
    border: 2px solid #ff6b35;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    background: rgba(255, 107, 53, 0.1);
}

.custom-cursor::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #ff6b35;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 53, 0.2);
    border-width: 3px;
}

/* Ensure cursor is visible on all backgrounds */
.custom-cursor {
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.3));
}

@media (pointer: coarse) {
    .custom-cursor {
        display: none;
    }
    
    html, body, a, button, input, select, textarea, [role="button"], [tabindex="0"] {
        cursor: auto !important;
    }
}

/* ============================================ */
/*              MATRIX BACKGROUND               */
/* ============================================ */

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    opacity: 0.05;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
                repeating-linear-gradient(
                    0deg,
                    var(--primary) 0%,
                    var(--primary) 1px,
                    transparent 1px,
                    transparent 2px
                );
    background-size: 100% 2px;
    animation: matrix-scan 30s linear infinite;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@keyframes matrix-scan {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100%;
    }
}

/* ============================================ */
/*                PARTICLES                     */
/* ============================================ */

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: particle-float 8s linear infinite;
    transform: translateZ(0);
    will-change: transform;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
        transform: scale(1);
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) scale(0);
        opacity: 0;
    }
}

/* ============================================ */
/*             FLOATING CODE                    */
/* ============================================ */

.floating-code {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.1;
}

.code-snippet {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-code);
    animation: code-drift 15s linear infinite;
}

.code-snippet[data-lang="js"] {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.code-snippet[data-lang="py"] {
    top: 60%;
    right: 20%;
    animation-delay: 3s;
}

.code-snippet[data-lang="cpp"] {
    top: 80%;
    left: 30%;
    animation-delay: 6s;
}

.code-snippet[data-lang="rs"] {
    top: 40%;
    right: 10%;
    animation-delay: 9s;
}

@keyframes code-drift {
    0% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-40px) translateX(-5px); }
    75% { transform: translateY(-20px) translateX(-10px); }
    100% { transform: translateY(0) translateX(0); }
}

/* ============================================ */
/*                 TYPOGRAPHY                   */
/* ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.glitch {
    position: relative;
    animation: glitch 1s linear infinite;
    font-family: 'JetBrains Mono', monospace;
    transform: translateZ(0);
    will-change: clip-path;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    clip: rect(0, 900px, 0, 0);
    will-change: clip;
}

.glitch::before {
    left: 2px;
    text-shadow: 1px 0 var(--primary);
    animation: glitch-effect 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--primary);
    animation: glitch-effect 2s infinite linear alternate-reverse;
}

@keyframes glitch-effect {
    0% {
        clip: rect(44px, 900px, 56px, 0);
    }
    5% {
        clip: rect(12px, 900px, 76px, 0);
    }
    10% {
        clip: rect(89px, 900px, 34px, 0);
    }
    15% {
        clip: rect(56px, 900px, 98px, 0);
    }
    20% {
        clip: rect(23px, 900px, 45px, 0);
    }
    25% {
        clip: rect(67px, 900px, 89px, 0);
    }
    30% {
        clip: rect(12px, 900px, 34px, 0);
    }
    35% {
        clip: rect(78px, 900px, 90px, 0);
    }
    40% {
        clip: rect(45px, 900px, 67px, 0);
    }
    45% {
        clip: rect(89px, 900px, 23px, 0);
    }
    50% {
        clip: rect(34px, 900px, 56px, 0);
    }
}

.typing-effect {
    overflow: hidden;
    border-right: 2px solid var(--primary);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary) }
}

/* ============================================ */
/*                 COMPONENTS                   */
/* ============================================ */

.glass-effect {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px var(--glass-shadow);
    transform: translateZ(0);
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--border);
    border-radius: var(--border-radius);
    transition: all var(--timing-normal) var(--easing);
}

.glass-card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--primary);
    box-shadow: var(--shadow-glass);
    transform: translateY(-5px);
}

.cyber-button {
    --button-border: 3px;
    --button-background: rgba(255, 107, 53, 0.1);
    --button-text: var(--primary);
    --button-shadow: rgba(255, 107, 53, 0.2);
    
    position: relative;
    padding: 0.8em 2em;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    background: var(--button-background);
    color: var(--button-text);
    border: var(--button-border) solid var(--button-text);
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: none;
}

.cyber-button::before,
.cyber-button::after {
    content: '';
    position: absolute;
    width: calc(100% + var(--button-border) * 2);
    height: calc(100% + var(--button-border) * 2);
    top: calc(var(--button-border) * -1);
    left: calc(var(--button-border) * -1);
    border: 1px solid var(--button-text);
    border-radius: inherit;
    animation: clippath 3s linear infinite;
}

.cyber-button::before {
    animation-delay: -1.5s;
}

.cyber-button.primary {
    --button-background: var(--primary);
    --button-text: white;
}

@keyframes clippath {
    0%, 100% { clip-path: inset(0 0 98% 0); }
    25% { clip-path: inset(0 98% 0 0); }
    50% { clip-path: inset(98% 0 0 0); }
    75% { clip-path: inset(0 0 0 98%); }
}

.neon-glow {
    box-shadow: 
        0 0 5px var(--primary),
        0 0 10px var(--primary),
        0 0 15px var(--primary),
        0 0 20px var(--primary);
    animation: neon-pulse 2s infinite alternate;
}

@keyframes neon-pulse {
    from { opacity: 1; }
    to { opacity: 0.7; }
}

/* ============================================ */
/*                  HEADER                      */
/* ============================================ */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    padding: var(--space-sm) 0;
    transition: all var(--timing-normal) var(--easing);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-md);
    background: transparent;
    box-shadow: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-left: auto;
    order: 2;
}

.nav-actions .nav-links {
    display: flex;
    gap: var(--space-md);
    list-style: none;
    margin-right: var(--space-sm);
}

.mobile-menu-btn {
    order: 3;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
    color: #333;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}

.logo-box {
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--primary) 0%, #ff8b5f 100%);
    border-radius: var(--border-radius);
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    transition: all var(--timing-normal) var(--easing);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.logo:hover .logo-box {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    box-shadow: var(--glow);
    transition: all var(--timing-normal) var(--easing);
}

.logo:hover .logo-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: var(--glow-accent);
}

.logo-cursor {
    animation: blink 1s infinite;
    color: var(--primary);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.nav-links {
    display: flex;
    gap: var(--space-md);
    list-style: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-left: auto;
}

.terminal-toggle-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.5);
    border-radius: var(--border-radius);
    color: #FF6B35;
    cursor: pointer !important;
    transition: all var(--timing-normal) var(--easing);
    position: relative;
    overflow: hidden;
    z-index: 99999 !important;
    pointer-events: auto !important;
    user-select: none;
}

/* Убеждаемся что SVG внутри кнопки не блокирует клики */
.terminal-toggle-btn svg {
    pointer-events: none;
    z-index: 1;
}

.terminal-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.2), transparent);
    transition: left 0.5s;
    pointer-events: none; /* Важно! Псевдоэлемент не должен блокировать клики */
}

.terminal-toggle-btn:hover::before {
    left: 100%;
}

.terminal-toggle-btn:hover {
    background: rgba(255, 107, 53, 0.25);
    border-color: #FF6B35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.terminal-toggle-btn svg {
    transition: transform var(--timing-normal);
}

.terminal-toggle-btn:hover svg {
    transform: scale(1.1);
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius);
    transition: all var(--timing-normal) var(--easing);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all var(--timing-normal) var(--easing);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
}

.nav-link:hover::before {
    width: 80%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: all var(--timing-normal) var(--easing);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid transparent;
}

.mobile-nav-link:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ============================================ */
/*                   HERO                       */
/* ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--space-md);
    overflow: hidden;
    margin-top: 120px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 107, 53, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 53, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
    opacity: 0.3;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.float-element {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.15;
    color: var(--primary);
    text-shadow: 0 0 5px var(--primary);
    animation: float-around 30s linear infinite;
    font-family: 'JetBrains Mono', monospace;
    transition: opacity 0.2s ease;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.float-element[data-symbol="♿"] { top: 15%; left: 10%; animation-delay: 0s; font-size: 2rem; }
.float-element[data-symbol="💻"] { top: 25%; left: 85%; animation-delay: -2s; }
.float-element[data-symbol="🚀"] { top: 45%; left: 15%; animation-delay: -4s; }
.float-element[data-symbol="💡"] { top: 65%; left: 80%; animation-delay: -6s; }
.float-element[data-symbol="🤖"] { top: 85%; left: 25%; animation-delay: -8s; }
.float-element[data-symbol="⌨️"] { top: 35%; left: 45%; animation-delay: -10s; }
.float-element[data-symbol="🖥️"] { top: 75%; left: 65%; animation-delay: -12s; }
.float-element[data-symbol="👨‍💻"] { top: 55%; left: 35%; animation-delay: -14s; }
.float-element[data-symbol="🌐"] { top: 25%; left: 75%; animation-delay: -16s; }
.float-element[data-symbol="🔧"] { top: 45%; left: 90%; animation-delay: -18s; }
.float-element[data-symbol="{}"] { top: 15%; left: 40%; animation-delay: -20s; font-size: 2.5rem; }
.float-element[data-symbol="</>"] { top: 85%; left: 85%; animation-delay: -22s; font-size: 2rem; }
.float-element[data-symbol="01"] { top: 65%; left: 20%; animation-delay: -24s; font-size: 1.8rem; }
.float-element[data-symbol="sudo"] { top: 35%; left: 60%; animation-delay: -26s; font-size: 1.6rem; }
.float-element[data-symbol="git"] { top: 75%; left: 30%; animation-delay: -28s; font-size: 1.7rem; }

@keyframes float-around {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    25% {
        opacity: 0.15;
    }
    50% {
        transform: translate(100px, -100px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        opacity: 0.15;
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
        opacity: 0;
    }
}

.float-element:hover {
    opacity: 0.8;
    filter: drop-shadow(0 0 10px var(--primary));
    transform: scale(1.2);
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    z-index: 2;
}

.hero-tag {
    font-family: 'JetBrains Mono', monospace;
    color: var(--secondary);
    font-size: 1rem;
    margin-bottom: var(--space-sm);
    opacity: 0;
    animation: fade-in-up 1s ease var(--timing-normal) forwards;
    border: none; /* Убираем любые границы */
}

.hero-tag.typing-effect {
    overflow: hidden;
    border-right: 2px solid var(--primary);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite, fade-in-up 1s ease var(--timing-normal) forwards;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: var(--space-md);
    position: relative;
}

.title-line {
    display: block;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 50%, var(--secondary) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradient-shift 3s ease-in-out infinite;
    will-change: background-position;
    transform: translateZ(0);
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.title-underline {
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: var(--space-sm) auto 0;
    width: 0;
    animation: expand-line 1s ease 1.5s forwards;
}

@keyframes expand-line {
    to { width: 200px; }
}

.hero-subtitle {
    margin-bottom: var(--space-lg);
}

.subtitle-line {
    font-size: clamp(1rem, 3vw, 1.3rem);
    margin-bottom: var(--space-xs);
    opacity: 0;
    animation: fade-in-up 1s ease forwards;
}

.subtitle-line:nth-child(1) { animation-delay: 0.5s; }
.subtitle-line:nth-child(2) { animation-delay: 0.7s; }
.subtitle-line:nth-child(3) { animation-delay: 0.9s; }

.highlight-code {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-code);
    background: rgba(0, 255, 65, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.amount-highlight {
    font-weight: 800;
    color: var(--primary);
    text-shadow: var(--glow);
    font-size: 1.2em;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    opacity: 0;
    animation: fade-in-up 1s ease 1.2s forwards;
}

.hero-stats {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-terminal {
    position: fixed;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 340px;
    height: 220px;
    background: #18181a;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    resize: both;
    overflow: hidden;
    min-width: 260px;
    min-height: 120px;
    max-width: 500px;
    max-height: 400px;
    z-index: 1000;
    border: 2px solid #ff6b35;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.hero-terminal:hover {
    border-color: #ff8b5f;
    box-shadow: 0 12px 40px rgba(255,107,53,0.15);
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 0 18px;
    background: #232326;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    height: 38px;
    box-sizing: border-box;
    border-bottom: 1.5px solid #ff6b35;
    user-select: none;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    border: 1.5px solid #232326;
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.control.red { background: #ff5f56; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #27c93f; }
.control:hover { filter: brightness(1.2); }

.terminal-title {
    margin-left: 18px;
    color: #bdbdbd;
    font-size: 1.05em;
    font-weight: 600;
    letter-spacing: 0.04em;
    flex: 1;
    opacity: 0.85;
}

.terminal-body {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
    color: #eaeaea;
    font-size: 14px;
    background: transparent;
    box-sizing: border-box;
    font-family: 'JetBrains Mono', monospace;
    width: 100%;
    position: relative;
}

.terminal-line {
    margin-bottom: 10px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.5s ease-in;
    word-wrap: break-word;
    white-space: pre-wrap;
    width: 100%;
}

.terminal-line .prompt {
    color: var(--terminal-prompt);
    margin-right: 10px;
}

.terminal-line .command {
    color: var(--terminal-text);
    position: relative;
}

.terminal-line .command::after {
    content: '▋';
    position: absolute;
    margin-left: 2px;
    animation: blink 0.75s step-end infinite;
}

.terminal-line .output {
    color: var(--terminal-text);
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.terminal-line .output.welcome {
    color: var(--terminal-success);
}

.terminal-line .output.info {
    color: var(--terminal-info);
}

@keyframes blink {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

.terminal-line {
    margin-bottom: 7px;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
    opacity: 0;
    position: relative;
    animation: typing-appear 0.1s forwards;
    opacity: 0;
    overflow: hidden;
    animation: typing 2s steps(40, end) forwards;
    position: relative;
}

@keyframes typing-appear {
    from { opacity: 0; }
    to { opacity: 1; }
}

.terminal-line.typing {
    position: relative;
}

.terminal-line.typing::after {
    content: '▋';
    position: absolute;
    display: inline-block;
    margin-left: 2px;
    animation: blink-cursor 0.75s step-end infinite;
    color: var(--terminal-text);
}

@keyframes blink-cursor {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

.terminal-line.typed::after {
    display: none;
}

.prompt {
    color: #ff6b35;
    font-weight: 700;
    margin-right: 8px;
}

.command {
    color: #00ff99;
    font-weight: 500;
}

.output {
    padding-left: 18px;
    font-weight: 400;
}
.output.welcome {
    color: #ff6b35;
    font-weight: 700;
    font-size: 1.13em;
}
.output.success {
    color: #00ff99;
}
.output.warning {
    color: #ffe066;
}
.output.error {
    color: #ff5f56;
}
.output.info {
    color: #bdbdbd;
}
.output.command {
    color: #00ff99;
    font-weight: 600;
}
.output.progress {
    color: #ffe066;
    font-style: italic;
}
.terminal-input {
    background: transparent;
    border: none;
    color: #eaeaea;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    width: calc(100% - 120px);
    font-weight: 500;
    letter-spacing: 0.01em;
}
.terminal-input::placeholder {
    color: #bdbdbd;
    opacity: 0.6;
}
.terminal-input:focus {
    background: rgba(255, 107, 53, 0.07);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}
.terminal-line.input-line {
    display: flex;
    align-items: center;
}



.hero-terminal::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background: linear-gradient(-45deg, transparent 30%, #ff6b35 30%, #ff6b35 40%, transparent 40%, transparent 60%, #ff6b35 60%, #ff6b35 70%, transparent 70%);
    cursor: se-resize;
    border-bottom-right-radius: 12px;
    opacity: 0.18;
    transition: opacity 0.2s;
}
.hero-terminal:hover::after {
    opacity: 0.5;
}

.easter-egg {
    animation: rainbow 2s linear infinite;
}

@keyframes rainbow {
    0% { color: #ff0000; }
    16% { color: #ff8000; }
    33% { color: #ffff00; }
    50% { color: #00ff00; }
    66% { color: #0080ff; }
    83% { color: #8000ff; }
    100% { color: #ff0000; }
}

.matrix-effect {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    font-family: 'Matrix Code NFI', 'JetBrains Mono', monospace;
}

@keyframes flicker {
    0%, 98% { opacity: 1; }
    99% { opacity: 0.8; }
    100% { opacity: 1; }
}

.hacker-text {
    color: #ff0000;
    text-shadow: 0 0 10px #ff0000;
    font-weight: bold;
    animation: glow 1s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 5px #ff0000; }
    to { text-shadow: 0 0 20px #ff0000, 0 0 30px #ff0000; }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================ */
/*                SECTIONS                      */
/* ============================================ */

.section {
    padding: var(--space-lg) 0;
    position: relative;
}

/* Уменьшенные отступы для соседних секций */
.section + .section {
    padding-top: var(--space-md);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--space-sm);
    font-family: 'JetBrains Mono', monospace;
    color: #000000 !important;
    position: relative;
}

/* Отключаем glitch-эффект для заголовков разделов */
.section-title.glitch::before,
.section-title.glitch::after {
    display: none;
}

.section-title.glitch {
    animation: none;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
}

.divider-line {
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.divider-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: var(--glow);
}

/* ============================================ */
/*               ABOUT SECTION                  */
/* ============================================ */

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-md);
}

.about-card {
    padding: var(--space-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.6s ease;
}

.about-card:hover::before {
    left: 100%;
}

.card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    display: inline-block;
    padding: var(--space-sm);
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    transition: all var(--timing-normal) var(--easing);
}

.about-card:hover .card-icon {
    transform: scale(1.1) rotateY(360deg);
    box-shadow: var(--glow);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.card-tech {
    display: flex;
    gap: var(--space-xs);
    justify-content: center;
    flex-wrap: wrap;
}

.tech-tag {
    font-size: 0.7rem;
    padding: 4px 8px;
    background: rgba(0, 212, 255, 0.2);
    color: var(--secondary);
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid var(--secondary);
}

.hover-lift {
    transition: all var(--timing-normal) var(--easing);
}

.hover-lift:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ============================================ */
/*             MATERIALS SECTION                */
/* ============================================ */

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-md);
}

.cyber-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--border);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
    transition: all var(--timing-normal) var(--easing);
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.1) 0%, 
        transparent 30%, 
        transparent 70%, 
        rgba(0, 212, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--timing-normal) var(--easing);
}

.cyber-card:hover::before {
    opacity: 1;
}

.cyber-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
}

.card-category {
    font-size: 0.7rem;
    color: var(--secondary);
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--secondary);
    padding: 2px 6px;
    border-radius: 4px;
}

.cyber-card .card-icon {
    font-size: 2rem;
    color: var(--primary);
    padding: var(--space-xs);
    background: rgba(255, 107, 53, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid var(--primary);
}

.cyber-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.cyber-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.card-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: var(--border-radius);
    color: var(--primary);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--timing-normal) var(--easing);
    position: relative;
    overflow: hidden;
}

.card-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transition: left var(--timing-normal) var(--easing);
    z-index: -1;
}

.card-button:hover::before {
    left: 0;
}

.card-button:hover {
    color: var(--bg-primary);
    box-shadow: var(--glow);
}

.card-button.primary {
    border-color: var(--accent);
    color: var(--accent);
}

.card-button.primary::before {
    background: var(--accent);
}

.card-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: scaleX(0);
    transition: transform var(--timing-normal) var(--easing);
}

.cyber-card:hover .card-glow {
    transform: scaleX(1);
}

.card-glow.primary {
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* ============================================ */
/*              VIDEO SECTION                   */
/* ============================================ */

.cyber-video {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-cyber);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-overlay {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    color: var(--text-primary);
}

.video-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.play-button-container {
    position: relative;
}

.cyber-play {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary);
    font-size: 2rem;
    cursor: none;
    position: relative;
    transition: all var(--timing-normal) var(--easing);
    backdrop-filter: blur(10px);
}

.cyber-play:hover {
    background: var(--primary);
    color: var(--bg-primary);
    box-shadow: var(--glow);
    transform: scale(1.1);
}

.play-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.video-progress {
    height: 4px;
    background: var(--bg-secondary);
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.3s ease;
}

/* ============================================ */
/*             CHALLENGE SECTION                */
/* ============================================ */

.challenge-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: var(--border);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
}

.banner-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: var(--space-md);
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
}

.banner-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

.banner-metrics {
    display: flex;
    gap: var(--space-md);
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.metric-icon {
    font-size: 1.5rem;
}

.metric-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.code-visualization {
    background: var(--bg-primary);
    border: 1px solid var(--primary);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.code-line {
    display: flex;
    margin-bottom: var(--space-xs);
}

.line-number {
    color: var(--text-tertiary);
    margin-right: var(--space-sm);
    min-width: 30px;
}

.code {
    color: var(--text-code);
}

/* ============================================ */
/*            ORGANIZERS SECTION               */
/* ============================================ */

.organizers-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
}

.organizers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 255, 136, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.organizers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.organizer-card {
    padding: var(--space-lg);
    border: 1px solid rgba(255, 107, 53, 0.2);
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    transition: all var(--timing-normal) var(--easing);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.organizer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.08), transparent);
    transition: left 0.5s ease;
}

.organizer-card:hover::before {
    left: 100%;
}

.organizer-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 107, 53, 0.6);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
}

.organizer-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 107, 53, 0.3);
    transition: all var(--timing-normal) var(--easing);
}

.organizer-avatar:hover {
    border-color: rgba(255, 107, 53, 0.8);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

.organizer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--timing-normal) var(--easing);
}

.organizer-card:hover .organizer-avatar img {
    transform: scale(1.1);
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.1), rgba(0, 255, 136, 0.1));
    opacity: 0;
    transition: opacity var(--timing-normal) var(--easing);
}

.organizer-card:hover .avatar-overlay {
    opacity: 1;
}

.status-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
}

.status-indicator.online {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.organizer-info {
    text-align: center;
}

.organizer-name {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    position: relative;
}

.organizer-name::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--success));
    transition: width var(--timing-normal) var(--easing);
}

.organizer-card:hover .organizer-name::after {
    width: 100%;
}

.organizer-role {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.organizer-bio {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
}

.organizer-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    justify-content: center;
    margin-bottom: var(--space-md);
}

.organizer-tech .tech-tag {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all var(--timing-normal) var(--easing);
}

.organizer-tech .tech-tag:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.6);
    transform: translateY(-2px);
}

.organizer-contact {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

.contact-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all var(--timing-normal) var(--easing);
    position: relative;
    overflow: hidden;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--success));
    opacity: 0;
    transition: opacity var(--timing-normal) var(--easing);
    z-index: -1;
}

.contact-link:hover::before {
    opacity: 1;
}

.contact-link:hover {
    color: var(--bg-primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* ============================================ */
/*             PARTNERS SECTION                 */
/* ============================================ */

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.partner-card {
    position: relative;
    padding: 2rem;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(0, 234, 255, 0.05));
    border: 1px solid rgba(255, 107, 53, 0.2);
    backdrop-filter: blur(8px);
}

.partner-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, 
        transparent 0deg,
        rgba(255, 107, 53, 0.3) 90deg,
        rgba(0, 234, 255, 0.3) 180deg,
        rgba(0, 255, 178, 0.3) 270deg,
        transparent 360deg);
    animation: partner-matrix-spin 4s linear infinite;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s;
}

.partner-card:hover::before {
    opacity: 1;
    animation: partner-matrix-spin 2s linear infinite, partner-glow-pulse 3s ease-in-out infinite;
}

.partner-card::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--bg-primary);
    border-radius: inherit;
    z-index: 2;
}

.partner-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 0 30px rgba(255, 107, 53, 0.4),
        inset 0 0 20px rgba(255, 107, 53, 0.1);
}

.partner-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 3;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: brightness(1) contrast(1);
}

.partner-card:hover .partner-logo {
    transform: scale(1.15) rotateY(5deg);
    filter: brightness(1.2) contrast(1.1) drop-shadow(0 0 20px rgba(255, 107, 53, 0.6));
}

/* Индивидуальные кибер-эффекты для каждого партнера */
.partners-grid .partner-card:nth-child(1):hover .partner-logo {
    filter: brightness(1.2) contrast(1.1) 
            drop-shadow(0 0 25px #00c3ff) 
            drop-shadow(0 0 15px #00eaff)
            drop-shadow(0 0 5px #fff);
    animation: partner-cyber-pulse-blue 2s ease-in-out infinite;
}

.partners-grid .partner-card:nth-child(2):hover .partner-logo {
    filter: brightness(1.2) contrast(1.1) 
            drop-shadow(0 0 25px #ff6b35) 
            drop-shadow(0 0 15px #ff0080)
            drop-shadow(0 0 5px #fff);
    animation: partner-cyber-pulse-orange 2s ease-in-out infinite;
}

.partners-grid .partner-card:nth-child(3):hover .partner-logo {
    filter: brightness(1.2) contrast(1.1) 
            drop-shadow(0 0 25px #00ffb2) 
            drop-shadow(0 0 15px #00ffea)
            drop-shadow(0 0 5px #fff);
    animation: partner-cyber-pulse-green 2s ease-in-out infinite;
}

.partner-overlay {
    position: static;
    background: none;
    padding: 0.5rem 0 0 0;
    transform: none;
}

.partner-card:hover .partner-overlay {
    transform: translateY(0);
}

.partner-name {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #222;
    font-weight: 700;
    text-align: center;
    z-index: 3;
    position: relative;
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .partner-name {
        font-size: 1rem;
        line-height: 1.25;
        padding: 0 8px;
    }
    
    .partner-card::before {
        animation-duration: 6s;
    }
    
    .partner-card:hover .partner-logo {
        transform: scale(1.1);
    }
}

/* Keyframe animations for partner effects */
@keyframes partner-matrix-spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes partner-glow-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes partner-cyber-pulse-blue {
    0%, 100% { 
        filter: brightness(1.2) contrast(1.1) 
                drop-shadow(0 0 15px #00c3ff) 
                drop-shadow(0 0 8px #00eaff)
                drop-shadow(0 0 3px #fff);
    }
    50% { 
        filter: brightness(1.4) contrast(1.2) 
                drop-shadow(0 0 40px #00eaff) 
                drop-shadow(0 0 25px #00c3ff)
                drop-shadow(0 0 10px #fff);
    }
}

@keyframes partner-cyber-pulse-orange {
    0%, 100% { 
        filter: brightness(1.2) contrast(1.1) 
                drop-shadow(0 0 15px #ff6b35) 
                drop-shadow(0 0 8px #ff0080)
                drop-shadow(0 0 3px #fff);
    }
    50% { 
        filter: brightness(1.4) contrast(1.2) 
                drop-shadow(0 0 40px #ff0080) 
                drop-shadow(0 0 25px #ff6b35)
                drop-shadow(0 0 10px #fff);
    }
}

@keyframes partner-cyber-pulse-green {
    0%, 100% { 
        filter: brightness(1.2) contrast(1.1) 
                drop-shadow(0 0 15px #00ffb2) 
                drop-shadow(0 0 8px #00ffea)
                drop-shadow(0 0 3px #fff);
    }
    50% { 
        filter: brightness(1.4) contrast(1.2) 
                drop-shadow(0 0 40px #00ffea) 
                drop-shadow(0 0 25px #00ffb2)
                drop-shadow(0 0 10px #fff);
    }
}

/* ============================================ */
/*                FOOTER                        */
/* ============================================ */

.footer {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-top: 1px solid var(--bg-tertiary);
    padding: var(--space-xl) 0 var(--space-lg);
}

.footer-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.footer-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
}

.footer-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.contact-card {
    padding: var(--space-lg);
    text-align: center;
    border-radius: var(--border-radius-lg);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    padding: var(--space-sm);
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    border: 1px solid var(--primary);
    transition: all var(--timing-normal) var(--easing);
}

.contact-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.phone-number {
    font-size: 1.2rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    display: block;
}

.phone-number:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--space-xs);
    border-radius: var(--border-radius);
    transition: all var(--timing-normal) var(--easing);
}

.social-link:hover {
    color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
}

.contact-tech {
    margin-top: var(--space-sm);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 107, 53, 0.2);
}

.footer-copyright {
    color: var(--text-secondary);
}

.footer-tech {
    display: flex;
    gap: var(--space-xs);
}

.tech-badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary);
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid var(--primary);
}

/* ============================================ */
/*               RESPONSIVE                     */
/* ============================================ */

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    
    .nav-actions {
        margin-left: var(--space-sm);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-terminal {
        position: fixed;
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-height: 350px;
        font-size: 0.7rem;
    }
    
    .terminal-body {
        max-height: 280px;
        padding: var(--space-xs);
    }
    
    .challenge-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xs: 0.25rem;
        --space-sm: 0.5rem;
        --space-md: 1rem;
        --space-lg: 2rem;
        --space-xl: 3rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .materials-grid,
    .about-grid,
    .organizers-grid,
    .partners-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .organizer-card {
        padding: var(--space-md);
    }
    
    .organizer-avatar {
        width: 100px;
        height: 100px;
    }
    
    .organizer-name {
        font-size: 1.2rem;
    }
    
    .organizer-bio {
        font-size: 0.85rem;
    }
    
    .organizer-tech {
        gap: 0.3rem;
    }
    
    .organizer-tech .tech-tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
    
    .contact-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .floating-elements,
    .floating-code {
        display: none;
    }
    
    body {
        cursor: default;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .contact-card {
        padding: var(--space-sm);
    }
    
    .contact-grid {
        gap: var(--space-sm);
    }
    
    .partner-card,
    .organizer-card {
        padding: var(--space-sm);
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "partner1"
            "partner2"
            "partner3";
        gap: var(--space-sm);
        max-width: 100%;
    }
    
    .partner-card:nth-child(3) {
        max-width: 100%;
    }
    
    .partner-logo {
        width: 80px;
        height: 60px;
    }
    
    .organizer-avatar {
        width: 80px;
        height: 80px;
    }
    
    .organizer-name {
        font-size: 1.1rem;
    }
    
    .organizer-role {
        font-size: 0.85rem;
    }
    
    .organizer-bio {
        font-size: 0.8rem;
    }
    
    .organizer-tech .tech-tag {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
    
    .contact-link {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .hero-terminal {
        margin-top: var(--space-md);
        font-size: 0.8rem;
    }
    
    .terminal-header {
        padding: var(--space-xs);
    }
    
    .terminal-body {
        padding: var(--space-xs);
    }
} 

/* Terminal reopen button */
 

.partner-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
    font-weight: 600;
}

.partner-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.hover-tilt {
    transition: all var(--timing-normal) var(--easing);
}

.hover-tilt:hover {
    transform: rotateY(2deg) rotateX(2deg) translateY(-3px);
}

.cyber-effect img {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    z-index: 1;
}

.cyber-effect::after {
    content: '';
    position: absolute;
    left: 2px; right: 2px; top: 2px; bottom: 2px;
    pointer-events: none;
    border-radius: 8px;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cyber-effect:hover::after {
    opacity: 1;
}

.threads-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
}

.social-link .threads-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

/* Специфичные эффекты для каждого партнера */

@media (max-width: 600px) {
  .banner-metrics {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .banner-metrics .metric {
    justify-content: flex-start;
    width: 100%;
  }
  .code-visualization {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    font-size: 0.95rem;
  }
  .code-line {
    white-space: pre-wrap;
    word-break: break-all;
  }
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step-card {
    padding: 2rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.step-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.step-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.step-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Grant Banner */
.grant-banner {
    margin-top: 2rem;
    width: 100%;
    max-width: 600px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.grant-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.social-icon {
    width: 24px;
    height: 24px;
    color: var(--text-color);
}

.threads-icon {
    width: 24px;
    height: 24px;
    color: var(--text-color);
}

/* Cyber Button */
.cyber-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--text-color);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 107, 53, 0.2),
        transparent
    );
    transition: 0.5s;
}

.cyber-button:hover::before {
    left: 100%;
}

.cyber-button:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.cyber-button.primary {
    background: var(--accent-color);
    color: var(--bg-color);
}

.cyber-button.primary:hover {
    background: transparent;
    color: var(--text-color);
}

.grant-announcement {
    margin-top: 2rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid var(--primary);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.2);
    animation: pulse-border 2s infinite;
}

.grant-text {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.grant-amount {
    font-size: 4rem;
    font-weight: 900;
    margin: 1.5rem 0;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    z-index: 2;
}

.amount-highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow-text 2s ease-in-out infinite;
    font-size: 5rem;
    letter-spacing: 2px;
}

.currency {
    font-size: 2.5rem;
    color: var(--text-secondary);
    margin-left: 1rem;
}

.grant-subtext {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    font-weight: 500;
}

.cyber-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: 
        linear-gradient(90deg, transparent 0%, transparent 49%, rgba(255, 107, 53, 0.1) 50%, transparent 51%, transparent 100%) 0 0 / 30px 30px,
        linear-gradient(0deg, transparent 0%, transparent 49%, rgba(255, 107, 53, 0.1) 50%, transparent 51%, transparent 100%) 0 0 / 30px 30px;
    animation: move-lines 20s linear infinite;
}

.cyber-dots {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 1%) 0 0 / 20px 20px;
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 30px rgba(255, 107, 53, 0.2); }
    50% { box-shadow: 0 0 50px rgba(255, 107, 53, 0.4); }
    100% { box-shadow: 0 0 30px rgba(255, 107, 53, 0.2); }
}

@keyframes glow-text {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 107, 53, 0.5); }
    50% { text-shadow: 0 0 40px rgba(255, 107, 53, 0.8); }
}

@keyframes move-lines {
    0% { background-position: 0 0; }
    100% { background-position: 30px 30px; }
}

/* Step Actions Styling */
.step-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
}

.step-actions .cyber-button {
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
    padding: 12px 20px;
}

/* Красивая кнопка видео */
.video-btn {
    position: relative;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 50%, #FFB347 100%) !important;
    color: white !important;
    border: 2px solid #FF6B35 !important;
    padding: 16px 24px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
    box-shadow: 
        0 8px 25px rgba(255, 107, 53, 0.3),
        0 4px 15px rgba(255, 107, 53, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.video-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
    pointer-events: none;
}

.video-btn:hover::before {
    left: 100%;
}

.video-btn:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 
        0 12px 35px rgba(255, 107, 53, 0.4),
        0 6px 20px rgba(255, 107, 53, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    background: linear-gradient(135deg, #FF8C42 0%, #FFB347 50%, #FFC947 100%) !important;
    border-color: #FF8C42 !important;
}

.video-btn:active {
    transform: translateY(-1px) scale(0.98) !important;
    transition: all 0.1s !important;
}

.video-btn svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s;
}

.video-btn:hover svg {
    transform: scale(1.1) translateX(2px);
}

.step-actions .next-step-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-color: transparent;
    font-weight: 600;
    margin-top: var(--space-xs);
}

.step-actions .next-step-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.matrix-effect {
    position: relative;
    text-shadow: 0 0 10px var(--primary);
    animation: matrix-scan 2s linear infinite;
}

@keyframes matrix-scan {
    0% { text-shadow: 0 0 10px var(--primary); }
    50% { text-shadow: 0 0 20px var(--primary), 0 0 30px var(--accent); }
    100% { text-shadow: 0 0 10px var(--primary); }
}

/* Interactive Steps */
.step-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}






.step-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
}

.status-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-secondary);
    position: relative;
}

.status-icon::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid var(--text-secondary);
    opacity: 0;
    animation: pulse 2s infinite;
}

.step-card.completed .status-icon {
    background: var(--primary);
}

.step-card.completed .status-icon::before {
    border-color: var(--primary);
}

.status-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.step-card.completed .status-text {
    color: var(--primary);
}

@keyframes unlock {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.2; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

/* Step Chain Connection */
.steps-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent,
        rgba(255, 107, 53, 0.2) 10%,
        rgba(255, 107, 53, 0.2) 90%,
        transparent
    );
    z-index: -1;
}

@media (max-width: 768px) {
    .steps-grid::before {
        left: 2rem;
    }
    
    .step-card {
        margin-left: 3rem;
    }
}

}

.cyber-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.terminal-window {
  position: fixed;
  right: 32px;
  top: 32px;
  width: 420px;
  height: 340px;
  min-width: 320px;
  min-height: 200px;
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 18px;
  overflow: hidden;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  transition: box-shadow 0.2s;
}

.terminal-body {
  height: calc(100% - 48px); /* если header 48px */
  overflow-y: auto;
  overflow-x: hidden;
}

.terminal-header {
  cursor: grab;
  user-select: none;
}

.video-modal {
  position: fixed;
  z-index: 2000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(20,20,20,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.video-modal-content {
  background: #181818;
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  overflow: hidden;
}
.video-modal-close {
  position: absolute;
  top: 12px; right: 18px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 10;
}
.video-modal-player {
  width: 70vw;
  height: 40vw;
  max-width: 900px;
  max-height: 500px;
  min-width: 320px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal-player iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}
@media (max-width: 600px) {
  .video-modal-player {
    width: 95vw;
    height: 55vw;
    min-width: 0;
    min-height: 0;
  }
}

.terminal-drag-handle {
  pointer-events: none;
}

.footer-quote-panel {
  max-width: 600px;
  margin: 0 auto 0.2rem auto;
  padding: 0.7rem 1.2rem 0.2rem 1.2rem;
  background: rgba(255,255,255,0.7);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  border-bottom: 1px solid #ff6b3533;
  text-align: center;
  font-size: 0.98rem;
  position: relative;
  z-index: 2;
}
.footer-quote-text {
  font-size: 0.89rem;
  color: #666;
  font-style: italic;
  margin: 0 0 0.08em 0;
  text-align: center;
  min-height: 1.2em;
  line-height: 1.3;
  padding: 0.08em 0.3em 0.08em 0.3em;
  border-radius: 6px;
  background: transparent;
}

.footer-bottom {
  text-align: center;
  font-size: 0.91rem;
  color: #888;
  margin-top: 0.05em;
  padding-bottom: 0.2em;
}
.footer {
  padding-top: 0.2em;
  padding-bottom: 0.1em;
}
@media (max-width: 600px) {
  .footer-quote-text {
    font-size: 0.85rem;
    padding: 0.05em 0.1em 0.05em 0.1em;
  }
  .footer-bottom {
    font-size: 0.85rem;
  }
  .footer {
    padding-top: 0.08em;
    padding-bottom: 0.05em;
  }
}

.partner-card {
  text-align: center;
}
.partner-logo {
  display: block;
  margin: 0 auto;
  max-width: 120px;
  max-height: 90px;
}
.partner-name {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #333;
  font-weight: 600;
  line-height: 1.3;
  word-wrap: break-word;
  hyphens: auto;
  padding: 0 10px;
}

@media (max-width: 480px) {
  .partner-name {
    font-size: 0.9rem;
    line-height: 1.2;
    padding: 0 5px;
    margin-top: 0.8rem;
  }
}

.lang-switch-btn {
  position: relative;
  z-index: 1001;
}

/* ============================================ */
/*                MODAL STYLES                  */
/* ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    z-index: 10000;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
        max-height: 95vh;
    }
    
    .modal-content h2 {
        font-size: 1.5rem !important;
    }
}

/* ============================================ */
/*           BUTTON CLICKABILITY FIXES          */
/* ============================================ */

/* Обеспечиваем кликабельность всех кнопок */
.video-btn, .cases-btn, .research-btn, .instructions-btn, .form-btn {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 10 !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Убираем любые блокирующие элементы */
.video-btn::before, .video-btn::after,
.cases-btn::before, .cases-btn::after,
.research-btn::before, .research-btn::after,
.instructions-btn::before, .instructions-btn::after,
.form-btn::before, .form-btn::after {
    pointer-events: none !important;
}

/* Обеспечиваем кликабельность родительских элементов */
.step-card {
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}

/* Убираем блокировку от декоративных элементов */
.matrix-bg, .particles, .floating-elements {
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Обеспечиваем кликабельность всех кнопок шагов */
.cases-btn, .research-btn, .instructions-btn, .form-btn, .video-btn {
    z-index: 10001 !important;
    pointer-events: auto !important;
    position: relative;
}

/* ... существующий код ... */
.step-completed {
  border: 2px solid #4CAF50 !important;
  box-shadow: 0 0 0 2px #4CAF5033;
}
/* ... существующий код ... */

/* --- Фикс: отступ для hero под navbar --- */
.hero {
  margin-top: 120px;
}

/* --- Hero Tag Wrapper: размещение надписи между navbar и ITM LAB --- */
.hero-tag-wrapper {
  margin-top: 32px;
  margin-bottom: 24px;
  text-align: center;
  z-index: 2;
  position: relative;
}

.footer-quote-text {
  margin: 0 auto 8px auto;
  color: #222;
  font-size: 1.1rem;
  text-align: center;
  min-height: 40px;
  padding: 10px 0;
  background: none;
  display: block;
}

/* ============================================ */
/*           PRIVACY CONSENT MODAL              */
/* ============================================ */

.privacy-consent-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.privacy-consent-modal.show {
  opacity: 1;
  visibility: visible;
}

.privacy-consent-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 107, 53, 0.1);
}

.privacy-consent-modal.show .privacy-consent-content {
  transform: scale(1) translateY(0);
}

.privacy-consent-header {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  color: white;
  padding: 24px 30px 20px;
  position: relative;
  text-align: center;
}

.privacy-consent-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.privacy-consent-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.privacy-consent-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.privacy-consent-body {
  padding: 30px;
  text-align: center;
}

.privacy-consent-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

.privacy-consent-text {
  color: #333;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  font-weight: 500;
}

.privacy-consent-checkbox {
  margin-bottom: 25px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: #333;
  font-weight: 500;
  position: relative;
  padding-left: 35px;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  left: 0;
  height: 24px;
  width: 24px;
  background-color: #f0f0f0;
  border: 2px solid #ddd;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
  background-color: #e0e0e0;
  border-color: #ff6b35;
}

.checkbox-container input:checked ~ .checkmark {
  background-color: #ff6b35;
  border-color: #ff6b35;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 8px;
  top: 4px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-text {
  margin-left: 10px;
}

.privacy-consent-links {
  margin-bottom: 25px;
}

.privacy-link {
  color: #ff6b35;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 107, 53, 0.1);
  display: inline-block;
}

.privacy-link:hover {
  background: rgba(255, 107, 53, 0.2);
  transform: translateY(-1px);
}

.privacy-consent-footer {
  padding: 0 30px 30px;
  text-align: center;
}

.privacy-accept-btn {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.privacy-accept-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.privacy-accept-btn:hover::before {
  left: 100%;
}

.privacy-accept-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.privacy-accept-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.privacy-accept-btn:disabled::before {
  display: none;
}

.privacy-accept-btn.active {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
}

@media (max-width: 768px) {
  .privacy-consent-content {
    width: 95%;
    margin: 20px;
  }
  
  .privacy-consent-header {
    padding: 20px 20px 15px;
  }
  
  .privacy-consent-header h2 {
    font-size: 1.3rem;
  }
  
  .privacy-consent-body {
    padding: 20px;
  }
  
  .privacy-consent-text {
    font-size: 1rem;
  }
  
  .privacy-consent-footer {
    padding: 0 20px 20px;
  }
  
  .privacy-accept-btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
}

/* ============================================ */
/*              FOOTER LINKS                    */
/* ============================================ */

.footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  padding: 4px 8px;
  border-radius: 4px;
}

.footer-links a:hover {
  color: #ff6b35;
  background: rgba(255, 107, 53, 0.1);
}

@media (max-width: 480px) {
  .footer-links {
    flex-direction: column;
    gap: 10px !important;
  }
}

/* Responsive tweaks */
@media (max-width: 1100px) {
  .container { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 900px) {
  .nav .nav-links { gap: 12px; }
  .hero .grant-announcement { transform: scale(0.95); }
}
@media (max-width: 720px) {
  .hero-title { font-size: 2.2rem !important; }
  .hero-subtitle .subtitle-line { font-size: 1rem !important; }
  .partners-grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
}
@media (max-width: 560px) {
  .glass-nav { padding: 10px 12px !important; }
  .mobile-menu-btn { display: inline-flex; }
  .nav .nav-links { display: none; }
}
@media (max-width: 480px) {
  .footer-bottom span { display: block; margin-bottom: 8px; text-align: center; }
  .contact-grid { grid-template-columns: 1fr !important; }
}

/* ============================================ */
/*           MOBILE RESPONSIVENESS              */
/* ============================================ */

@media (max-width: 768px) {
  /* Основные контейнеры */
  .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
    max-width: 100% !important;
  }
  
  /* Навигация */
  .nav {
    padding: 8px 10px !important;
  }
  
  .logo-box {
    padding: 4px 8px !important;
    font-size: 0.9rem !important;
  }
  
  /* Герой секция */
  .hero {
    margin-top: 60px !important;
    padding: 15px 10px !important;
    min-height: 70vh !important;
  }
  
  .hero-title {
    font-size: 1.5rem !important;
    line-height: 1.1 !important;
  }
  
  .hero-subtitle .subtitle-line {
    font-size: 0.8rem !important;
  }
  
  .grant-announcement {
    padding: 10px !important;
    transform: scale(0.8) !important;
  }
  
  .grant-amount {
    font-size: 1.4rem !important;
  }
  
  /* Секции */
  .section {
    padding: 25px 10px !important;
  }
  
  .section-title {
    font-size: 1.3rem !important;
  }
  
  /* Карточки */
  .about-project-card,
  .stage-card,
  .case-card {
    padding: 10px !important;
    margin: 8px 0 !important;
  }
  
  /* Сетки */
  .next-stages-grid,
  .cases-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  
  .partners-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  
  /* Модальные окна */
  .modal-content {
    width: 95% !important;
    padding: 15px !important;
    margin: 5px !important;
  }
  
  /* IntroDay таймер */
  .locked-timer {
    gap: 8px !important;
    padding: 10px !important;
  }
  
  .locked-timer-unit {
    padding: 8px 6px !important;
  }
  
  .locked-timer-value {
    font-size: 0.9rem !important;
  }
  
  .locked-timer-label {
    font-size: 0.6rem !important;
  }
  
  .locked-message {
    font-size: 0.7rem !important;
    padding: 8px !important;
  }
  
  /* Мобильное меню */
  .mobile-menu {
    padding: 15px !important;
  }
  
  .mobile-menu-content {
    gap: 1rem !important;
  }
  
  .mobile-nav-link {
    font-size: 1.1rem !important;
    padding: 0.6rem 1rem !important;
  }
  
  /* Winners page specific */
  .future-stages {
    padding: 15px !important;
    margin: 15px 10px !important;
  }
  
  .stage-block {
    padding: 15px !important;
    margin: 10px 0 !important;
  }
  
  .stage-content {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  
  .winners-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    max-width: 100% !important;
    padding: 0 10px !important;
  }
  
  .winner-card {
    padding: 8px !important;
  }
  
  .stages-nav {
    gap: 6px !important;
    flex-wrap: wrap !important;
  }
  
  .stage-nav-btn {
    padding: 8px 12px !important;
    font-size: 0.7rem !important;
  }
  
  /* Блоки шагов (step-card) */
  .step-card {
    padding: 12px !important;
    margin: 8px 0 !important;
  }
  
  .step-number {
    font-size: 1.8rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .step-card h3 {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .step-card p {
    font-size: 0.8rem !important;
    margin-bottom: 0.8rem !important;
    line-height: 1.4 !important;
  }
  
  .step-buttons {
    gap: 0.5rem !important;
  }
  
  .step-buttons a,
  .step-buttons button {
    font-size: 0.7rem !important;
    padding: 6px 10px !important;
  }
  
  /* Сетка шагов */
  .stage-steps-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  
  /* Иконки в блоках шагов */
  .step-card img,
  .step-card .emoji {
    width: 2rem !important;
    height: 2rem !important;
    font-size: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  /* Очень маленькие экраны */
  .container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  
  .hero {
    margin-top: 50px !important;
    padding: 10px 8px !important;
    min-height: 60vh !important;
  }
  
  .hero-title {
    font-size: 1.2rem !important;
  }
  
  .grant-announcement {
    padding: 8px !important;
    transform: scale(0.7) !important;
  }
  
  .grant-amount {
    font-size: 1.1rem !important;
  }
  
  .section {
    padding: 20px 8px !important;
  }
  
  .section-title {
    font-size: 1.1rem !important;
  }
  
  /* Одноколоночные сетки */
  .next-stages-grid,
  .cases-grid,
  .partners-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  
  .about-project-card,
  .stage-card,
  .case-card {
    padding: 8px !important;
  }
  
  /* Навигация этапов */
  .stages-nav {
    flex-direction: column !important;
    gap: 6px !important;
  }
  
  .stage-nav-btn {
    padding: 6px 10px !important;
    font-size: 0.7rem !important;
  }
  
  /* Таймер */
  .locked-timer {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
  
  .locked-timer-unit {
    padding: 8px 6px !important;
  }
  
  .locked-timer-value {
    font-size: 0.8rem !important;
  }
  
  .locked-timer-label {
    font-size: 0.5rem !important;
  }
  
  /* Мобильное меню для маленьких экранов */
  .mobile-menu {
    padding: 10px !important;
  }
  
  .mobile-menu-content {
    gap: 0.8rem !important;
  }
  
  .mobile-nav-link {
    font-size: 1rem !important;
    padding: 0.5rem 0.8rem !important;
  }
  
  /* Winners page specific */
  .future-stages {
    padding: 10px !important;
    margin: 10px 8px !important;
  }
  
  .stage-block {
    padding: 10px !important;
    margin: 8px 0 !important;
  }
  
  .winners-grid {
    gap: 8px !important;
    padding: 0 8px !important;
  }
  
  .winner-card {
    padding: 6px !important;
  }
  
  /* Блоки шагов для маленьких экранов */
  .step-card {
    padding: 8px !important;
    margin: 6px 0 !important;
  }
  
  .step-number {
    font-size: 1.5rem !important;
    margin-bottom: 0.4rem !important;
  }
  
  .step-card h3 {
    font-size: 1rem !important;
    margin-bottom: 0.4rem !important;
  }
  
  .step-card p {
    font-size: 0.7rem !important;
    margin-bottom: 0.6rem !important;
    line-height: 1.3 !important;
  }
  
  .step-buttons {
    gap: 0.4rem !important;
  }
  
  .step-buttons a,
  .step-buttons button {
    font-size: 0.6rem !important;
    padding: 5px 8px !important;
  }
  
  /* Сетка шагов для маленьких экранов */
  .stage-steps-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  
  /* Иконки в блоках шагов для маленьких экранов */
  .step-card img,
  .step-card .emoji {
    width: 1.5rem !important;
    height: 1.5rem !important;
    font-size: 1.2rem !important;
  }
}

@media (max-width: 360px) {
  /* Очень старые телефоны */
  .hero-title {
    font-size: 1rem !important;
  }
  
  .grant-amount {
    font-size: 0.9rem !important;
  }
  
  .section-title {
    font-size: 1rem !important;
  }
  
  .container {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
  
  /* Мобильное меню для очень маленьких экранов */
  .mobile-menu {
    padding: 8px !important;
  }
  
  .mobile-menu-content {
    gap: 0.6rem !important;
  }
  
  .mobile-nav-link {
    font-size: 0.9rem !important;
    padding: 0.4rem 0.6rem !important;
  }
  
  /* Winners page specific */
  .future-stages {
    padding: 8px !important;
    margin: 8px 5px !important;
  }
  
  .stage-block {
    padding: 8px !important;
    margin: 6px 0 !important;
  }
  
  .winners-grid {
    gap: 6px !important;
    padding: 0 5px !important;
  }
  
  .winner-card {
    padding: 5px !important;
  }
  
  /* Таймер */
  .locked-timer {
    gap: 5px !important;
    padding: 6px !important;
  }
  
  .locked-timer-unit {
    padding: 6px 4px !important;
  }
  
  .locked-timer-value {
    font-size: 0.7rem !important;
  }
  
  .locked-timer-label {
    font-size: 0.4rem !important;
  }
  
  /* Блоки шагов для очень маленьких экранов */
  .step-card {
    padding: 6px !important;
    margin: 5px 0 !important;
  }
  
  .step-number {
    font-size: 1.2rem !important;
    margin-bottom: 0.3rem !important;
  }
  
  .step-card h3 {
    font-size: 0.9rem !important;
    margin-bottom: 0.3rem !important;
  }
  
  .step-card p {
    font-size: 0.6rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.2 !important;
  }
  
  .step-buttons {
    gap: 0.3rem !important;
  }
  
  .step-buttons a,
  .step-buttons button {
    font-size: 0.5rem !important;
    padding: 4px 6px !important;
  }
  
  /* Сетка шагов для очень маленьких экранов */
  .stage-steps-grid {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }
  
  /* Иконки в блоках шагов для очень маленьких экранов */
  .step-card img,
  .step-card .emoji {
    width: 1.2rem !important;
    height: 1.2rem !important;
    font-size: 1rem !important;
  }
}