:root {
    --bg-url: url('/Source/Image/bg.png');

    --font-small: 14px;
    --font-medium: 18px;
    --font-large: 24px;
    --font-logo: 32px;
    --font-title: 56px;

    --font-weight-logo: 800;
    --font-weight-server: 600;
    --font-weight-link: 500;

    --color-1: #000000;
    --color-2: #17AEFF;
    --color-3: #17AEFF70;
    --color-4: #FFFFFF;

    --border-radius: 12px;
}

body {
    background-image: var(--bg-url);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
    padding: 0px 40px;
}

html {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    align-items: center;
}

.header__left {
    display: flex;
    flex-direction: row;
    gap: 120px;
    align-items: center;
}

.header__logo h1 {
    font-size: var(--font-logo);
    font-weight: var(--font-weight-logo);
    color: var(--color-1); 
}

.header__link {
    font-size: var(--font-medium);
    font-weight: var(--font-weight-link);
    color: var(--color-1);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
    transition: all 0.2s ease;
    transform: scale(1);
}

.header__link:active {
    transform: scale(0.95);
}

.header__link:hover {
    opacity: 1;
}

.header__nav {
    display: flex;
    gap: 30px;
}

.header__social {
    font-size: var(--font-large);
    gap: 40px;
    display: flex;
    align-items: center;
}

.fab {
    opacity: 0.8 !important;
    transition: all 0.2s ease;
    transform: scale(1);
}

.fab:hover {
    opacity: 1 !important;
    transform: translateY(-2px);
}

.fab:active {
    transform: scale(0.95);
}

.fasa {
    color: var(--color-4);
}

.header__shop-btn {
    padding: 10px 25px;
    border: 2px solid var(--color-2);
    border-radius: var(--border-radius);
    font-size: var(--font-medium);
    font-weight: var(--font-weight-link);
    color: var(--color-1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 20px var(--color-3);
    opacity: 0.8;
    transition: all 0.2s ease;
    transform: scale(1);
}

.header__shop-btn:hover {
    opacity: 1;
}

.header__shop-btn:active {
    transform: scale(0.95);
}

.main__content {
    text-align: center;
    padding: 180px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main__title {
    font-size: var(--font-title);
    font-weight: var(--font-weight-logo);
    margin-bottom: 0px;
    position: relative;
    z-index: 2;
    color: var(--color-1);
}

.main__background-text {
    position: absolute;
    top: 43.5%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 200px;
    opacity: 0.1;
    font-weight: 900;
    z-index: 1;
}

.main__description {
    font-size: var(--font-large);
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    max-width: 675px;
    text-align: center;
    color: var(--color-1);
}

.main__buttons {
    display: flex;
    gap: 40px;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.main__download-btn {
    background: var(--color-2);
    color: var(--color-4);
    border: none;
    min-width: 250px;
    display: flex;
    min-height: 51px;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    gap: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.main__download-btn:hover {
    color: var(--color-4) !important;
    transform: translateY(-2px);
}

.main__download-btn:active {
    transform: scale(0.95);
}

.fa-solid {
    color: var(--color-4);
}

.server__inner {
    backdrop-filter: blur(3px);
    background: rgba(0, 0, 0, 0.05);
    padding: 25px;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    flex: 0 0 calc(25% - 30px);
    min-width: 450px;
}

.server__inner:hover {
    transform: translateY(-2px);
}

.server__title {
    font-size: var(--font-large);
    font-weight: var(--font-weight-server);
    color: var(--color-1);
}

.server__stats {
    display: flex;
    gap: 10px;
    flex-direction: row;
}

.server__stat {
    font-size: var(--font-small);
    padding: 0px 10px;
    border-radius: 5px;
}

.server__progress {
    position: relative;
    height: 20px;
    border-radius: 5px;
}

.server__info-stats {
    display: flex;
    justify-content: space-between;
    margin: 5px 0px 10px 1px;
    gap: 40px;
}

.server__players {
    color: var(--color-1);
    font-size: var(--font-small);
    font-weight: var(--font-weight-server);
    display: flex;
    gap: 10px;
    align-items: center;
}

.faha {
    color: var(--color-1) !important;
}

.server__progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 5px;
    z-index: 1;
    width: 0;
    transition: width 0.3s ease;
}

.servers {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin-bottom: 60px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width: 1200px) {
    .server__inner {
        flex: 0 0 calc(50% - 20px);
    }
}

@media screen and (max-width: 768px) {
    .server__inner {
        flex: 0 0 100%;
    }
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader--hidden {
    opacity: 0;
}

.preloader__content {
    text-align: center;
}

.preloader__spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.preloader__text {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}

.shop-btn {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Мобильная версия */
@media screen and (max-width: 1024px) {
    body {
        padding: 0px 20px;
    }

    .header__inner {
        margin-top: 20px;
    }

    .header__left {
        gap: 30px;
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: all 0.3s ease;
        z-index: 100;
    }

    .header__nav.active {
        right: 0;
    }

    .header__link {
        font-size: 24px;
        color: var(--color-4);
    }

    .header__social--desktop {
        display: none;
    }

    .header__social--mobile {
        display: flex;
    }

    .header__social--mobile .header__social-link {
        font-size: 24px;
    }

    .header__burger {
        display: block;
        position: relative;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 101;
    }

    .header__burger span {
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: var(--color-1);
        transition: all 0.3s ease;
    }

    .header__burger span:nth-child(1) {
        top: 0;
    }

    .header__burger span:nth-child(2) {
        top: 9px;
    }

    .header__burger span:nth-child(3) {
        bottom: 0;
    }

    .header__burger.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }

    .header__burger.active span:nth-child(2) {
        opacity: 0;
    }

    .header__burger.active span:nth-child(3) {
        transform: rotate(-45deg);
        bottom: 9px;
    }

    .main__content {
        padding: 100px 0;
    }

    .main__background-text {
        font-size: 200px;
        top: 34.5%;
    }

    .main__description {
        font-size: 18px;
        padding: 0 20px;
    }

    .main__buttons {
        flex-direction: column;
        gap: 20px;
    }

    .server__inner {
        min-width: 100%;
    }

    .header__social--desktop {
        display: none;
    }

    .header__shop-btn {
        display: none;
    }

    .header__social--mobile {
        display: flex;
    }
}

@media screen and (max-width: 768px) {
    .header__logo h1 {
        font-size: 24px;
    }

    .header__shop-btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .main__title {
        font-size: 36px;
    }

    .main__background-text {
        font-size: 150px;
        top: 32.5%;
    }

    .main__buttons {
        width: 100%;
    }

    .install-instructions li {
        font-size: 12px;
    }

    .download-option p {
        font-size: 12px !important;
    }

    .download-options {
        flex-direction: column;
    }

    .download-option {
        width: auto !important;
    }
}

@media screen and (max-width: 440px) {
    .main__background-text {
        font-size: 200px;
        top: 34.5%;
    }

    .server__stat {
        font-size: 10px;
        display: flex;
        align-items: center;
    }
}

@media screen and (max-width: 1405px) {
    .header__nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: all 0.3s ease;
        z-index: 100;
    }

    .shop-btn {
        display: flex;
    }

    .fas {
        color: #fff !important;
    }

    .header__nav.active {
        left: 0;
    }

    .header__link {
        font-size: 24px;
        color: var(--color-4);
    }

    .header__social--desktop {
        display: none;
    }

    .header__social--mobile {
        display: flex;
        gap: 30px;
        margin-top: 30px;
    }

    .header__social--mobile .header__social-link {
        font-size: 32px;
        color: var(--color-4);
    }

    .header__burger {
        display: block;
        position: relative;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 101;
    }

    .header__burger span {
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: var(--color-1);
        transition: all 0.3s ease;
    }

    .header__burger span:nth-child(1) {
        top: 0;
    }

    .header__burger span:nth-child(2) {
        top: 9px;
    }

    .header__burger span:nth-child(3) {
        bottom: 0;
    }

    .header__burger.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }

    .header__burger.active span:nth-child(2) {
        opacity: 0;
    }

    .header__burger.active span:nth-child(3) {
        transform: rotate(-45deg);
        bottom: 9px;
    }

    .header__shop-btn {
        display: none;
    }

    .header__link--desktop {
        display: none !important;
    }

    .header__play-btn {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 15px;
        background-color: var(--color-2);
        color: var(--color-4) !important;
        border-radius: var(--border-radius);
        font-size: 14px;
        font-weight: var(--font-weight-link);
        transition: all 0.2s ease;
        box-shadow: 0 0 10px var(--color-3);
        margin-right: 15px;
    }
    
    .header__play-btn i {
        color: var(--color-4) !important;
    }
    
    .header__play-btn:hover {
        transform: translateY(-2px);
    }
    
    .header__play-btn:active {
        transform: scale(0.95);
    }
}

.header__social--mobile {
    display: none;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header__social--desktop {
    display: flex;
    gap: 20px;
}

.header__social--mobile {
    display: none;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.header__social--mobile .header__social-link {
    font-size: 24px;
}

.modal {
    transition: opacity 0.3s ease;
    z-index: 999;
}

.modal-background {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(3px);
    z-index: 999;
}

.modal-card {
    border-radius: var(--border-radius);
    z-index: 1000;
}

.modal-card-head {
    background-color: var(--color-2);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    border-bottom: none;
}

.modal-card-title {
    color: var(--color-4);
    font-weight: var(--font-weight-server);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.modal-card-body {
    background-color: rgb(247 247 247 / 95%);
    backdrop-filter: blur(5px);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    padding: 20px 25px;
}

.delete {
    background-color: rgba(255, 255, 255, 0.2);
}

.delete:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

* {
    scrollbar-width: none;
}

* {
    -ms-overflow-style: none;
}

.modal-card-body, body {
    overflow-y: auto;
}

.download-options {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    justify-content: space-between;
}

.download-option {
    background: #fff;
    border-radius: var(--border-radius);
    width: 100%;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 15px;
}

.download-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.download-option img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    object-fit: contain;
}

.download-option p {
    color: white;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

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

.modal-card-body .content p {
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 18px;
    color: var(--color-1);
}

.download-option p {
    font-weight: var(--font-weight-server) !important;
    font-size: var(--font-small) !important;
}

.install-instructions {
    margin-top: 10px;
    padding-left: 20px;
}

.install-instructions li {
    margin-bottom: 5px;
    color: #333;
}

.content ol {
    margin-left: 0em !important;
}

/* Добавляем отдельную кнопку "Начать играть" в шапке для мобильной версии */
.header__play-btn {
    display: none;
}

@media screen and (max-width: 1405px) {
    .header__play-btn {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 15px;
        background-color: var(--color-2);
        color: var(--color-4) !important;
        border-radius: var(--border-radius);
        font-size: 14px;
        font-weight: var(--font-weight-link);
        transition: all 0.2s ease;
        box-shadow: 0 0 10px var(--color-3);
        margin-right: 15px;
    }
    
    .header__play-btn i {
        color: var(--color-4) !important;
    }
    
    .header__play-btn:hover {
        transform: translateY(-2px);
    }
    
    .header__play-btn:active {
        transform: scale(0.95);
    }
}

/* Footer styles */
.footer {
    background-color: #1c1c1c;
    padding: 1.5rem;
    color: #999;
    margin-top: 2rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer strong {
    color: #42aaff;
}
