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

:root {
    --bg-primary: #0a0c0f;
    --bg-secondary: #111316;
    --bg-card: #1a1d24;
    --accent-primary: #00ff88;
    --accent-secondary: #00ccff;
    --text-primary: #ffffff;
    --text-secondary: #a0a8b5;
    --border-color: #2a2f38;
    --gradient-1: linear-gradient(135deg, #00ff88, #00ccff);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 240px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.game-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 24px 0;
    z-index: 1001;
}

.game-header {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 5px;
}

.game-score {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-secondary);
    padding: 4px 16px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.score-value {
    color: var(--accent-primary);
    font-weight: 700;
    margin-left: 8px;
}

.game-message {
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.game-world {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 130px;
    overflow: visible;
}

.dragon {
    position: absolute;
    bottom: 25px;
    width: 100px;
    height: 80px;
    transition: left 0.1s ease-out;
    z-index: 20;
}

.dragon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cactus {
    position: absolute;
    bottom: 25px;
    width: 60px;
    height: 80px;
    z-index: 15;
}

.cactus-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cactus.passed {
    opacity: 0.2;
}

.trophy-container {
    position: absolute;
    bottom: 30px;
    right: 150px;
    width: 100px;
    height: 100px;
    z-index: 30;
    animation: float 2s infinite;
}

.trophy-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px gold);
}

.ground-line {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
}

@keyframes jump {
    0%, 100% { bottom: 70px; }
    50% { bottom: 90px; }
}

.dragon.jump {
    animation: jump 0.3s ease;
}

.dragon.win .dragon-img {
    animation: win 0.5s infinite;
}

@keyframes win {
    0%,100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

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

.game-warning {
    max-width: 1200px;
    margin: 8px auto 4px;
    padding: 6px 16px;
    font-size: 0.85rem;
    color: var(--accent-secondary);
    background: rgba(0, 204, 255, 0.08);
    border: 1px solid rgba(0, 204, 255, 0.2);
    border-radius: 40px;
    font-family: 'JetBrains Mono', monospace;
    text-align: center;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    animation: gentlePulse 2.5s infinite ease-in-out;
}

@keyframes gentlePulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

.navbar {
    position: fixed;
    top: 210px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    padding: 12px 0;
    z-index: 1000;
}

.nav-links {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    font-size: 1.1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.section {
    padding: 80px 0;
    scroll-margin-top: 260px;
}

.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(2.5rem,6vw,4rem);
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.3rem;
    margin-bottom: 32px;
}

.accent-text {
    color: var(--accent-primary);
}

.btn-primary {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 50px;
    background: var(--gradient-1);
    color: black;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--accent-primary);
}

.code-decoration {
    position: absolute;
    right: 5%;
    top: 30%;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    line-height: 1.4;
    background: rgba(255,255,255,0.02);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(0,255,136,0.1);
    color: #6272a4;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s, opacity 0.3s;
    z-index: 10;
    pointer-events: auto; 
}

.code-decoration:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(0,255,136,0.3);
}

.code-keyword { color: #ff79c6; }
.code-function { color: #50fa7b; }
.code-string { color: #f1fa8c; }
.code-indent { display: inline-block; width: 2em; }

/* Заголовки */
.section-title {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 60px;
}

.title-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.title-text {
    font-size: 2rem;
    background: linear-gradient(135deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 24px;
}

.process-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: 0.3s;
}

.process-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.process-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.platform-card-link {
    text-decoration: none;
    display: block;
    max-width: 500px;
    margin: 0 auto;
    transition: transform 0.3s;
}

.platform-card-link:hover {
    transform: translateY(-5px);
}

.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    color: #ffffff;
}

.platform-logo {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 204, 255, 0.3));
    transition: filter 0.3s;
}

.platform-card-link:hover .platform-logo {
    filter: drop-shadow(0 0 15px rgba(0, 204, 255, 0.7));
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
    gap: 24px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.review-exam {
    background: var(--gradient-1);
    color: black;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.reviews-button-container {
    text-align: center;
    margin-top: 40px;
}

.scores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.score-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 20px;
    text-align: center;
    transition: 0.3s;
}

.score-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.score-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.score-value {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

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

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contact-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 4rem;
    color: var(--accent-primary);
}

.contact-label {
    font-size: 1.5rem;
    font-weight: 600;
}

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

.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    margin-top: 40px;
}

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

.footer-logo {
    font-size: 1.3rem;
    font-weight: 600;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

@media (max-width: 768px) {
    body {
        padding-top: 250px;
    }

    .navbar {
        top: 220px;
    }

    .nav-links {
        gap: 20px;
    }

    .section {
        padding: 60px 0;
    }

    .scores-grid {
        grid-template-columns: 1fr;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .title-number {
        font-size: 3rem;
    }

    .title-text {
        font-size: 1.5rem;
    }

    .section {
        scroll-margin-top: 280px;
    }

    .game-warning {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .reviews-button-container {
        margin-top: 30px;
    }

    .code-decoration {
        font-size: 1.2rem;
        padding: 12px;
        right: 3%;
        top: 20%;
        opacity: 0.9;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-primary {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .code-decoration {
        font-size: 0.9rem;
        padding: 8px;
        right: 2%;
        top: 15%;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(2px);
    }
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.foto-img {
    max-width: 70%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
    border: 2px solid var(--accent-primary);
}

.hero-content .code-decoration {
    position: relative; 
    right: auto;
    top: auto;
    margin-top: 30px;
    margin-left: 60px;
    text-align: left;
    font-size: 1.4rem;
    padding: 15px 20px;
    max-width: 100%;
    display: inline-block; 
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-image {
        width: 100%;
    }
    
    .foto-img {
        max-width: 80%;
        margin: 0 auto;
    }
    
    .hero-content .code-decoration {
        text-align: center;
        margin-top: 20px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .foto-img {
        max-width: 100%;
    }
    .hero-content .code-decoration {
        font-size: 1rem;
        padding: 10px;
    }
}