:root {
    --mc-green: #56ab2f;
    --mc-dark-green: #3a7d1e;
    --mc-dirt: #4e342e;
    --mc-stone: #2d3436;
    --text-light: #f1f2f6;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #1a1a1a;
    color: var(--text-light);
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Press Start 2P', cursive;
    line-height: 1.4;
}

.navbar {
    background-color: rgba(45, 52, 54, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 4px solid var(--mc-green);
}

.navbar-brand {
    padding: 0;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    transition: transform 0.3s;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    color: #fff !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px !important;
    margin: 0 5px;
    border-radius: 0;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--mc-green) !important;
    background-color: rgba(86, 171, 47, 0.2);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--mc-green);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.hero-section {
    padding: 100px 0;
    background-color: #5d4037;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
        url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='0' width='64' height='64' fill='%235d4037'/%3E%3Crect x='4' y='4' width='8' height='8' fill='%234e342e'/%3E%3Crect x='16' y='12' width='8' height='8' fill='%23795548'/%3E%3Crect x='32' y='4' width='8' height='8' fill='%234e342e'/%3E%3Crect x='48' y='24' width='8' height='8' fill='%23795548'/%3E%3Crect x='12' y='32' width='8' height='8' fill='%234e342e'/%3E%3Crect x='28' y='44' width='8' height='8' fill='%23795548'/%3E%3Crect x='52' y='52' width='8' height='8' fill='%234e342e'/%3E%3Crect x='4' y='56' width='8' height='8' fill='%23795548'/%3E%3C/svg%3E");
    background-size: 64px 64px;
    background-position: center;
    image-rendering: pixelated;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 4px 4px 0px #000;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 30px;
}

.btn-download {
    background-color: var(--mc-green);
    color: white;
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    padding: 15px 30px;
    border: 4px solid #2e5e18;
    border-radius: 0;
    box-shadow: 0 6px 0 #2e5e18;
    transition: all 0.1s;
    text-decoration: none;
    display: inline-block;
}

.btn-download:active {
    box-shadow: 0 2px 0 #2e5e18;
    transform: translateY(4px);
}

.btn-download:hover {
    background-color: var(--mc-dark-green);
    color: white;
}

.phone-fan-container {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: 20px;
}

.fan-phone {
    position: absolute;
    bottom: 0;
    border: 8px solid #222;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s ease;
    background: #000;
}

.fan-phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fan-center {
    width: 260px;
    height: 520px;
    z-index: 3;
    transform: translateY(0);
    border-color: #333;
}

.fan-left {
    width: 240px;
    height: 480px;
    z-index: 2;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-110%) rotate(-12deg) translateY(20px);
    opacity: 0.8;
    filter: brightness(0.8);
}

.fan-right {
    width: 240px;
    height: 480px;
    z-index: 2;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(10%) rotate(12deg) translateY(20px);
    opacity: 0.8;
    filter: brightness(0.8);
}

/* .phone-fan-container:hover .fan-left {
    transform: translateX(-120%) rotate(-15deg) translateY(0);
    opacity: 1;
    filter: brightness(1);
    z-index: 4;
}

.phone-fan-container:hover .fan-right {
    transform: translateX(20%) rotate(15deg) translateY(0);
    opacity: 1;
    filter: brightness(1);
    z-index: 4;
}

.phone-fan-container:hover .fan-center {
    transform: translateY(-20px);
    z-index: 5;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
} */

.feature-card {
    background-color: #2d3436;
    border: 2px solid #444;
    border-radius: 0;
    padding: 30px;
    height: 100%;
    transition: 0.3s;
}

.feature-card:hover {
    border-color: var(--mc-green);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--mc-green);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #fff;
}

.feature-card p {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.app-screenshot {
    border: 6px solid #333;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
    background: #000;
    aspect-ratio: 315/666;
}

.app-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-screenshot:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    border-color: var(--mc-green);
}

footer {
    background-color: #111;
    padding: 40px 0;
    border-top: 4px solid var(--mc-dirt);
}

footer p {
    color: #fff !important;
}

footer a {
    color: #fff !important;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--mc-green) !important;
}

@media (max-width: 991px) {
    .hero-section {
        text-align: center;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .phone-fan-container {
        height: 350px;
        margin-top: 40px;
    }

    .fan-center {
        width: 180px;
        height: 360px;
    }

    .fan-left,
    .fan-right {
        width: 160px;
        height: 320px;
    }

    .fan-left {
        transform: translateX(-90%) rotate(-10deg) translateY(10px);
    }

    .fan-right {
        transform: translateX(10%) rotate(10deg) translateY(10px);
    }
}

@media (max-width: 576px) {
    .phone-fan-container {
        height: 300px;
    }

    .fan-center {
        width: 140px;
        height: 280px;
    }

    .fan-left,
    .fan-right {
        width: 120px;
        height: 240px;
    }
}

.mod {
    color: #bbf33f;
    text-shadow: 2px 2px 0px #000;
}

.box {
    color: #ffce00;
    text-shadow: 2px 2px 0px #000;
}

.hero-title:hover .mod {
    color: #568c36;
    transition: color 0.3s;
}

.footer-link-item {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
}

.footer-link-item:hover {
    color: var(--mc-green);
    transform: translateY(-2px);
}

.footer-link-item:hover i {
    transform: scale(1.2);
}

/* === FIX: Отключаем hover-эффекты веера на тач-устройствах === */
/* ✅ Hover-анимация веера — ТОЛЬКО для устройств с мышью */
@media (hover: hover) and (pointer: fine) {
    .phone-fan-container:hover .fan-left {
        transform: translateX(-120%) rotate(-15deg) translateY(0);
        opacity: 1;
        filter: brightness(1);
        z-index: 4;
    }

    .phone-fan-container:hover .fan-right {
        transform: translateX(20%) rotate(15deg) translateY(0);
        opacity: 1;
        filter: brightness(1);
        z-index: 4;
    }

    .phone-fan-container:hover .fan-center {
        transform: translateY(-20px);
        z-index: 5;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    }
}