.hero {
    padding: 20px 0 0;
    position: relative;
    background: linear-gradient(180deg, rgba(26, 31, 46, 0.92) 0%, rgba(15, 20, 25, 0.96) 100%);
    overflow: hidden;
    z-index: 1;
}

.hero .container {
    padding-top: 10px;
}

.hero-graphic {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 0;
}

.hero-graphic {
    box-shadow: inset 180px 0 180px -90px rgba(15,20,25,1), inset -180px 0 180px -90px rgba(15,20,25,1);
}

.hero-graphic img,
.hero-graphic video {
    width: min(95vw, 1100px);
    max-width: 1100px;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
    filter: brightness(1.3) saturate(1.2);
    opacity: 0.95;
    transform: translateY(-80px);
    transition: transform 400ms ease;
}

.hero-graphic::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg,
        rgba(15,20,25,1) 0%,
        rgba(15,20,25,0.95) 4%,
        rgba(15,20,25,0.6) 8%,
        rgba(15,20,25,0.15) 18%,
        rgba(15,20,25,0) 30%,
        rgba(15,20,25,0) 70%,
        rgba(15,20,25,0.15) 82%,
        rgba(15,20,25,0.6) 92%,
        rgba(15,20,25,0.95) 96%,
        rgba(15,20,25,1) 100%);
    z-index: 1;
}

.hero-graphic::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,20,25,0.0) 0%, rgba(15,20,25,0.65) 55%, rgba(15,20,25,1) 90%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 650px;
    padding: 30px 20px 240px;
    gap: 12px;
}

.hero-ip-wrapper {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.hero-subtitle {
    font-size: 20px;
    color: #eef6ff;
    max-width: 700px;
    margin: 0;
    margin-top: 160px;
    margin-bottom: 160px;
    line-height: 1.6;
    text-shadow: 0 8px 18px rgba(5, 10, 25, 0.45);
}

.hero h1 span {
    display: block;
}

.hero-logo {
    display: block;
    width: 220px;
    height: auto;
    max-height: 200px;
    max-width: 70vw;
    margin: 6px auto 0;
    object-fit: contain;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    color: #eef6ff;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 0 8px 18px rgba(5,10,25,0.45);
}

.server-ip-box {
    background: #1a1f2e;
    border: 2px solid #2a3142;
    padding: 20px 40px;
    border-radius: 16px;
    display: inline-block;
    margin-bottom: 40px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 48px;
    z-index: 3;
    box-shadow: 0 12px 30px rgba(3,8,20,0.55);
    text-decoration: none;
    color: inherit;
}

.server-ip-box:hover {
    border-color: #0099ff;
    transform: translateX(-50%) translateY(-2px);
}

.server-ip-box:focus-visible {
    outline: 2px solid #00d4ff;
    outline-offset: 4px;
}

.server-manual-instructions {
    width: min(480px, calc(100% - 40px));
    margin-top: 24px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(10, 14, 23, 0.92);
    border: 1px solid rgba(0, 212, 255, 0.5);
    color: #b9c2d6;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease;
    position: relative;
    z-index: 4;
}

.server-manual-instructions.visible {
    opacity: 1;
    max-height: 400px;
}

.server-manual-instructions ol {
    list-style: decimal;
    margin: 10px 0 0 20px;
    padding: 0;
    text-align: left;
}

.server-manual-instructions strong {
    color: #fff;
}

.server-manual-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    color: #b0b3b8;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
}

.server-manual-close:hover {
    color: #fff;
}

.server-manual-instructions {
    width: min(480px, calc(100% - 40px));
    margin: 28px auto 0;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(10, 14, 23, 0.92);
    border: 1px solid rgba(0, 212, 255, 0.5);
    color: #b9c2d6;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease;
}

.server-manual-instructions.visible {
    opacity: 1;
    max-height: 400px;
}

.server-manual-instructions ol {
    list-style: decimal;
    margin: 10px 0 0 20px;
    padding: 0;
}

.server-manual-instructions strong {
    color: #fff;
}

.server-ip-label {
    font-size: 14px;
    color: #b0b3b8;
    margin-bottom: 8px;
}

.server-ip {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.copy-icon {
    font-size: 20px;
    color: #0099ff;
}

.game-modes {
    padding: 60px 0 80px;
    background: #0f1419;
    position: relative;
    z-index: 2;
}

.lkh-home-promo {
    position: relative;
    background: #0f1419;
    padding: 20px 0 10px;
    z-index: 2;
}

.lkh-home-promo__card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.5);
    background: linear-gradient(140deg, rgba(8, 18, 36, 0.96) 0%, rgba(14, 30, 64, 0.94) 56%, rgba(8, 120, 190, 0.3) 100%);
    box-shadow: 0 24px 56px rgba(2, 8, 20, 0.52);
    padding: 26px 28px;
}

.lkh-home-promo__card::after {
    content: '';
    position: absolute;
    right: -84px;
    top: -92px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.28) 0%, rgba(125, 211, 252, 0) 70%);
    pointer-events: none;
}

.lkh-home-promo__badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.55);
    background: rgba(125, 211, 252, 0.12);
    color: #d7eeff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

.lkh-home-promo__title {
    margin: 0 0 10px 0;
    color: #ffffff;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 900;
}

.lkh-home-promo__text {
    margin: 0 0 8px 0;
    color: #dbe9ff;
    line-height: 1.65;
    font-size: 16px;
    max-width: 920px;
}

.lkh-home-promo__actions {
    margin-top: 14px;
}

.lkh-home-promo__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 12px;
    padding: 11px 18px;
    font-weight: 800;
    color: #ffffff;
    border: 1px solid rgba(125, 211, 252, 0.72);
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.95), rgba(37, 99, 235, 0.9));
}

.lkh-home-promo__btn:hover {
    filter: brightness(1.06);
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #fff;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.mode-card {
    background: transparent;
    border: 2px solid #2a3142;
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-align: left;
    color: #f5f7ff;
}

.mode-card--survival {
    background-image:
        url("assets/jpg/survial_karta.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mode-card--pvp {
    background-image:
        url("assets/jpg/pvp_karta.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mode-card--box {
    background-image:
        url("assets/jpg/box_pvp_karta.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0099ff, #00d4ff);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.mode-card:hover {
    border-color: #0099ff;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.mode-card:hover::before {
    transform: scaleX(1);
}

.mode-icon {
    width: 84px;
    height: 84px;
    margin: 0 0 24px 0;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.mode-icon--survival {
    background-image: url("assets/jpg/survival_ikona.png");
}

.mode-icon--pvp {
    background-image: url("assets/jpg/PVP_ikona.png");
}

.mode-icon--box {
    background-image: url("assets/jpg/Box_PVP_ikona.png");
}

.mode-card__content {
    position: relative;
    z-index: 1;
    background: rgba(7, 12, 19, 0.2);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 15px 30px rgba(5, 10, 20, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mode-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #f8fbff;
}

.mode-description {
    color: #f5f8ff;
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 24px;
}

.mode-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.45);
    color: #ffe28a;
    font-size: 13px;
    font-weight: 600;
}

.mode-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mode-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #eff3ff;
    font-size: 14px;
}

.mode-feature-icon {
    color: #0099ff;
    font-size: 18px;
}

.features {
    padding: 100px 0;
    background: #1a1f2e;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: #0f1419;
    border: 1px solid #2a3142;
    padding: 32px;
    border-radius: 16px;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: #3a3f4b;
    transform: translateY(-4px);
}

.feature-card-icon {
    width: 56px;
    height: 56px;
    background: #1a1f2e;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #fff;
}

.feature-card p {
    color: #b0b3b8;
    line-height: 1.6;
    font-size: 14px;
}

.stats {
    padding: 100px 0;
    background: #0f1419;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    background: #1a1f2e;
    border: 1px solid #2a3142;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: #0099ff;
    transform: translateY(-4px);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #0099ff;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: #b0b3b8;
}

footer {
    background: #1a1f2e;
    border-top: 1px solid #2a3142;
    padding: 60px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #b0b3b8;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #2a3142;
    color: #b0b3b8;
    font-size: 14px;
}

@media (max-width: 768px) {
    .hero {
        padding: 0 0 20px 0;
        position: relative;
    }

    .hero h1 {
        font-size: 34px;
        line-height: 1.05;
        margin-bottom: 12px;
        padding: 0 12px;
        margin-top: 25px;
    }

    .hero p {
        display: none;
    }

    .hero-subtitle {
        margin-top: 0;
        margin-bottom: 40px;
    }

    .hero-content {
        min-height: auto;
        padding: 30px 20px 180px;
    }

    .nav-links {
        display: none;
    }

    .nav-auth-buttons {
        gap: 8px;
    }

    .modes-grid {
        grid-template-columns: 1fr;
    }

    .mode-card__content {
        width: calc(100% + 70px);
        margin-left: -35px;
        margin-right: -35px;
    }

    .cta-section {
        flex-direction: column;
    }

    .server-ip-box {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 25px;
        z-index: 4;
        margin-top: 0;
        width: calc(100% - 40px);
        max-width: 560px;
        pointer-events: none;
        color: white;
    }

    .server-ip-label {
        display: none;
    }

    .hero-graphic {
        display: none;
    }

    .hero-graphic img,
    .hero-graphic video {
        transform: translateY(-30px);
    }

    .hero-graphic {
        box-shadow: inset 120px 0 120px -60px rgba(15,20,25,0.85), inset -120px 0 120px -60px rgba(15,20,25,0.85);
    }

    .hero-graphic img,
    .hero-graphic video {
        width: 100%;
        max-width: none;
        height: auto;
        object-fit: cover;
        transform: translateY(-10px);
        opacity: 1;
        display: block;
    }

    .hero-logo {
        width: 220px;
        max-width: 70vw;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .hero-graphic img,
    .hero-graphic video {
        transform: translateY(-50px);
    }
    .server-ip-box {
        bottom: 40px;
    }
}
