/* --- 1. BASE & RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
    padding-top: 60px;
}

a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: oklch(70.7% 0.165 254.624);
}

/* --- 2. HEADER --- */
.header {
    width: 100%;
    height: 60px;
    background-color: oklch(21% .034 264.665);
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}

.header-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.navigation-buttons {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* --- 3. HERO SECTION --- */
.hero {
    min-height: 50vh; 
    background: linear-gradient(to bottom right, oklch(63.843% 0.16048 252.105), oklch(64.794% 0.2461 330.191));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 2rem;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    max-width: 600px;
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 20px;
}

/* Универсальная кнопка (и для CV, и для карточек) */
.btn {
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid;
    background: transparent;
}

.hero .btn {
    border-color: #fff;
    color: #fff;
}

.hero .btn:hover {
    background: #fff;
    color: oklch(50% 0.2 300);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* --- 4. FEATURES --- */
.features {
    padding: 5rem 2rem;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.features-item {
    border: 1px solid #bebebe;
    padding: 2rem;
    border-radius: 30px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.features-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.features-item p {
    color: #777474;
    margin: 15px 0;
    line-height: 1.5;
}

/* --- 5. FOOTER --- */
.footer {
    flex-shrink: 0;
    background-color: oklch(21% .034 264.665);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.footer p:nth-child(2) {
    color: #636262;
    font-size: 0.9rem;
}

.footer a {
    color: oklch(70.7% 0.165 254.624);
    font-weight: bold;
}

/* --- 6. RESPONSIVE --- */
@media (max-width: 700px) {
    .header {
        height: auto;
        padding: 15px;
        flex-direction: column;
        gap: 15px;
    }

    .navigation-buttons {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 415px) {
    main { padding-top: 120px; }
}

/* Анимация печати */
.cursor {
    animation: blink 0.7s infinite;
    margin-left: 2px;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* --- СТИЛЬ ИГРЫ --- */

.game-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f9f9f9; /* Светлый фон вокруг игры */
}

.game-info {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    gap: 40px;
    color: oklch(21% .034 264.665);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

#game-container {
    width: 100%;
    max-width: 800px;
    height: 500px;
    /* Красивый градиент неба */
    background: linear-gradient(to bottom, #87CEEB, #E0F7FA); 
    border: 8px solid #fff;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Добавим "землю" вниз контейнера */
#game-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 20px;
    cursor: none; /* Прячем курсор, чтобы он не мешал */
    background: #4CAF50; /* Трава */
}

#basket {
    width: 100px;
    height: 40px;
    background: #8B4513; /* Деревянная корзина */
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px 5px 15px 15px;
    box-shadow: inset 0 -5px 10px rgba(0,0,0,0.3);
    transition: transform 0.1s ease-out; /* Плавность хода */
    z-index: 10;
}

/* Эффект плетения корзины */
#basket::before {
    content: '🧺';
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.item {
    width: 35px;
    height: 35px;
    background: #ff4d4d;
    border-radius: 50%;
    position: absolute;
    top: -50px;
    box-shadow: inset -5px -5px 10px rgba(0,0,0,0.2), 2px 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Хвостик у яблока */
.item::after {
    content: '';
    position: absolute;
    top: -5px;
    width: 4px;
    height: 8px;
    background: #4B2C20;
    border-radius: 2px;
}

#start-btn {
    margin-top: 30px;
    padding: 15px 40px;
    font-size: 1.2rem;
    background: oklch(63.843% 0.16048 252.105);
    color: white;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#start-btn:hover {
    background: oklch(21% .034 264.665);
    transform: translateY(-3px);
}