:root {
    --bg: #1c2128;
    --bg-soft: #222831;
    --panel: rgba(57, 62, 70, 0.35);
    --panel-border: rgba(255, 255, 255, 0.10);
    --teal: #00adb5;
    --teal-soft: rgba(0, 173, 181, 0.55);
    --indigo: #5b57d6;
    --accent-red: #e0475c;
    --text-main: #f2f3f5;
    --text-muted: #a9b0b8;
    --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.35);
    --radius-pill: 100px;
    --radius-card: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--bg);
    background-image:
        radial-gradient(rgba(93, 206, 240, 0.13) 1px, transparent 0),
        radial-gradient(rgba(91, 87, 214, 0.09) 2px, transparent 0);
    background-size: 30px 30px, 60px 60px;
    background-position: 0 0, 15px 15px;
    min-height: 100vh;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p {
    margin: 0;
}

h2 {
    letter-spacing: 1px;
}

.stroke {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1200px;
    width: 90%;
    margin: 24px auto;
    padding: 8px 30px;
    background-color: var(--panel);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-lg);
}

.logo {
    font-family: "red";
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-title {
    color: var(--teal);
}

.logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.menu {
    font-family: "monts";
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.menu .menu1 {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.3px;
    padding-bottom: 4px;
    transition: color 0.25s ease;
}

.menu .menu1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 1.5px;
    background: linear-gradient(90deg, var(--teal), var(--indigo));
    transition: width 0.25s ease;
}

.menu .menu1:hover {
    color: var(--text-main);
}

.menu .menu1:hover::after {
    width: 100%;
}

.banner {
    position: relative;
    background-image:
        linear-gradient(180deg, rgba(28, 33, 40, 0.35) 0%, rgba(28, 33, 40, 0.75) 65%, rgba(28, 33, 40, 0.92) 100%),
        radial-gradient(ellipse at center, rgba(0, 173, 181, 0.18), transparent 65%),
        url("медиа/земли.PNG");
    height: clamp(280px, 40vw, 420px);
    max-width: 1150px;
    width: 90%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 30px auto;
    border-radius: 22px;
    box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--panel-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
    padding: 20px;
}

.title {
    margin: 0 0 6px 0;
    font-family: "red";
    font-size: clamp(38px, 7vw, 92px);
    line-height: 1;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.subtitle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.text {
    font-family: "monts";
    font-size: clamp(14px, 1.6vw, 17px);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 8px 18px;
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-pill);
    background: rgba(0, 0, 0, 0.2);
}

.text.status-open {
    color: var(--teal);
    border-color: var(--teal-soft);
}

.status-open-link {
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.status-open-link:hover {
    background: var(--teal);
    color: var(--bg);
    border-color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 173, 181, 0.4);
}

.abo {
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
}

.ab, .abou {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--panel);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--panel-border);
    border-left: 3px solid var(--teal);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    width: 100%;
    margin: 20px auto;
    padding: 30px 34px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.abou {
    border-left-color: var(--accent-red);
    margin-top: 30px;
}

.ab:hover, .abou:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.card-title {
    font-family: "monts";
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.about {
    margin: 0;
    font-family: "monts";
    font-weight: normal;
    font-size: 16px;
    line-height: 1.7;
    max-width: 68ch;
    color: var(--text-muted);
}

.accent-red {
    color: var(--accent-red);
}

.social-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: fit-content;
    margin: 40px auto 60px auto;
    padding: 10px;
    background-color: var(--panel);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.social-bar .social-link {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.social-bar .social-link:hover {
    color: var(--teal);
    background: rgba(0, 173, 181, 0.14);
    transform: translateY(-3px);
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* ===== КНОПКА "СКАЧАТЬ" ===== */
.modss{
    display: inline-block;           /* чтобы работали padding и border-radius на ссылке */
    font-family: "monts";            /* раньше тут не было шрифта — поэтому был дефолтный */
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    color: var(--text-main);
    background-color: var(--teal);
    padding: 9px 22px;
    border-radius: var(--radius-pill);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.modss:hover {
    box-shadow: 0 0 12px 2px var(--teal-soft), 0 0 26px 6px var(--teal);
    transform: translateY(-2px);
}

/* у карточек Forge кнопка и подсветка фиолетовые (indigo), а не teal */
.mod-card.forge .modss {
    background-color: var(--indigo);
}
.mod-card.forge .modss:hover {
    box-shadow: 0 0 12px 2px rgba(91, 87, 214, 0.55), 0 0 26px 6px var(--indigo);
}

/* ===== ЗАГОЛОВОК СТРАНИЦЫ "МОДЫ СЕРВЕРА" ===== */
.mods-page {
    max-width: 1000px;
    width: 90%;
    margin: 10px auto 70px auto;
}

/* ===== ГРУППЫ FABRIC / FORGE ===== */
.mod-group {
    margin-bottom: 46px;
}

.mod-group-title {
    font-family: "monts";
    font-size: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 22px;
    padding-left: 4px;
}

/* ряд карточек внутри группы (перенос на новую строку включён) */
.Mods{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* ===== КАРТОЧКА МОДА ===== */
.mod-card{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 260px;         /* базовая ширина 260px, тянется/сжимается */
    max-width: 300px;
    gap: 10px;
    padding: 26px 28px;
    background-color: var(--panel);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--panel-border);
    border-left: 3px solid var(--teal);   /* teal для Fabric */
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mod-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.mod-card.forge {
    border-left-color: var(--indigo);      /* indigo для Forge */
}

.mod-card .named {
    font-family: "monts";
    font-size: 18px;
    color: #ffffff;
}

.mod-desc {
    font-family: "monts";
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .stroke {
        border-radius: 26px;
        justify-content: center;
        text-align: center;
    }

    .menu {
        justify-content: center;
        gap: 18px 22px;
    }

    .ab, .abou {
        padding: 22px;
    }
}

@font-face {
    font-family: "red";
    src: url("fonts/red alert.woff") format("woff");
}

@font-face {
    font-family: "monts";
    src: url("fonts/montserrat-bold.woff") format("woff");
}