* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0c0f17;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #e3e9f2;
    line-height: 1.5;
    overflow-x: hidden;
}

.bg-void {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(ellipse at 30% 40%, #151b2e, #020308);
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(100, 150, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 150, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 25s linear infinite;
    opacity: 0.4;
}

@keyframes gridMove {
    0% { transform: translate(0,0); }
    100% { transform: translate(60px,60px); }
}

.dust {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: 
        radial-gradient(circle at 20% 50%, rgba(180, 130, 255, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 70%, rgba(255, 140, 50, 0.06) 0%, transparent 50%);
    animation: slowDrift 20s infinite alternate;
}

@keyframes slowDrift {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.9; transform: scale(1.03); }
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.5rem 2rem 3rem;
    position: relative;
    z-index: 5;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.8rem 0 2rem;
    border-bottom: 1px solid rgba(110, 90, 200, 0.5);
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 1.8rem;
    font-weight: 800;
}

/* Новые классы для логотипа */
.heart-red {
    color: #ff4d4d;
    text-shadow: 0 0 8px #ff3333;
    font-size: 2rem;
    line-height: 1;
}

.infinity-red {
    color: #ff4d4d;
    font-weight: 800;
}

.worlds-white {
    color: #ffffff;
    font-weight: 800;
}

.badge-group {
    display: flex;
    gap: 14px;
}

.badge {
    background: #141c2ccc;
    backdrop-filter: blur(8px);
    padding: 0.5rem 1.4rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #5f4b9e;
}

.badge.highlight {
    background: #2e1e5ad9;
    border-color: #b38aff;
    color: #e8dbff;
}

.hero {
    text-align: center;
    padding: 2rem 1rem 3rem;
    animation: fadeUp 0.9s ease;
}

.ip-giant {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(125deg, #ffffff, #cfbaff, #e0c8ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(150, 100, 255, 0.3);
    margin-bottom: 1rem;
    word-break: break-word;
}

.tagline {
    font-size: 1.5rem;
    font-weight: 400;
    color: #c0cee8;
    margin-bottom: 2rem;
}

.copy-prime {
    background: linear-gradient(95deg, #2a2f4a, #1c1f33);
    border: none;
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    padding: 1rem 3rem;
    border-radius: 100px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 8px 0 #0b0e18;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
    border: 1px solid #6f5eb0;
}

.copy-prime:hover {
    transform: translateY(-3px);
    background: linear-gradient(95deg, #353d62, #252b47);
    box-shadow: 0 12px 0 #0b0e18;
}

.copy-prime:active {
    transform: translateY(5px);
    box-shadow: 0 4px 0 #0b0e18;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0 1.5rem;
}

.stat-card {
    background: rgba(20, 28, 45, 0.7);
    backdrop-filter: blur(12px);
    padding: 0.9rem 2rem;
    border-radius: 100px;
    border: 1px solid #5f4b9e;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 600;
}

.stat-number {
    color: #bfaaff;
    font-weight: 800;
}

.description-block {
    max-width: 850px;
    margin: 2rem auto;
    background: rgba(10, 14, 26, 0.6);
    backdrop-filter: blur(8px);
    padding: 1.2rem 2rem;
    border-radius: 80px;
    font-size: 1.2rem;
    border: 1px solid #6b5590;
}

.mechanics-note {
    margin-top: 1rem;
    font-size: 1rem;
    color: #b7afdf;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.feature-card {
    background: #111a2be0;
    backdrop-filter: blur(4px);
    border-radius: 2rem;
    padding: 1.8rem 1.5rem;
    border: 1px solid #4d3e7c;
    transition: 0.25s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: #b38aff;
    box-shadow: 0 20px 25px -12px #2f1e55;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.7rem;
    margin-bottom: 0.8rem;
    color: #e2d5ff;
}

.vote-pavilion {
    background: linear-gradient(145deg, #10182b, #070b15);
    border-radius: 3rem;
    padding: 2.5rem 2rem;
    margin: 3rem 0;
    border: 1px solid #6f54b2;
    box-shadow: 0 25px 35px -15px black, 0 0 0 1px rgba(160, 120, 255, 0.2) inset;
}

.vote-title {
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, #FFE6B0, #ffc164);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.vote-sub {
    text-align: center;
    color: #c0cee8;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.reward-highlight {
    background: #1e253ed9;
    display: inline-block;
    margin: 0 auto 1.5rem;
    padding: 0.7rem 2rem;
    border-radius: 60px;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid #c9a96b;
}

.reward-highlight span {
    color: #f5cd6d;
    font-weight: 800;
}

.vote-buttons-triple {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.8rem;
    margin: 2.5rem 0 1.5rem;
}

.vote-btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1rem 2.2rem;
    border-radius: 120px;
    transition: 0.2s;
    box-shadow: 0 9px 0 #0b0f1a;
    color: white;
}

.vote-btn-modern.hotmc {
    background: #c2412c;
    box-shadow: 0 9px 0 #70281a;
}

.vote-btn-modern.mctop {
    background: #2c5f8a;
    box-shadow: 0 9px 0 #1c3e5a;
}

.vote-btn-modern.rating {
    background: #3e7a4a;
    box-shadow: 0 9px 0 #1e4a2a;
}

.vote-btn-modern:hover {
    transform: translateY(-4px);
    filter: brightness(1.08);
    box-shadow: 0 13px 0 #0b0f1a;
}

.vote-btn-modern:active {
    transform: translateY(5px);
    box-shadow: 0 4px 0 #0b0f1a;
}

.reward-note {
    text-align: center;
    margin-top: 1.8rem;
    font-size: 1rem;
    color: #b6c4e0;
    border-top: 1px dashed #695d9e;
    padding-top: 1.8rem;
}

.big-copy-footer {
    background: #c0813c;
    border: none;
    color: #1a1620;
    font-size: 2rem;
    font-weight: 800;
    padding: 1rem 3rem;
    border-radius: 100px;
    display: block;
    width: fit-content;
    margin: 2rem auto;
    cursor: pointer;
    transition: 0.15s;
    box-shadow: 0 12px 0 #704f22;
}

.big-copy-footer:hover {
    background: #e09e4a;
    transform: translateY(-3px);
    box-shadow: 0 15px 0 #704f22;
}

.big-copy-footer:active {
    transform: translateY(6px);
    box-shadow: 0 6px 0 #704f22;
}

.footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #3d3670;
    color: #a7b6d4;
}

.footer .tiny-ip {
    font-family: monospace;
    font-size: 1.3rem;
    font-weight: 500;
    color: #d3c2ff;
    margin: 10px 0;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(35px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
    .container { padding: 1rem; }
    .ip-giant { font-size: 2.8rem; }
    .tagline { font-size: 1.2rem; }
    .copy-prime { font-size: 1.2rem; padding: 0.7rem 1.5rem; }
    .stat-card { font-size: 1rem; padding: 0.5rem 1.2rem; }
    .vote-title { font-size: 2rem; }
    .vote-btn-modern { font-size: 1.2rem; padding: 0.7rem 1.5rem; }
    .big-copy-footer { font-size: 1.4rem; padding: 0.8rem 1.5rem; }
    .logo { font-size: 1.4rem; }
    .heart-red { font-size: 1.6rem; }
}

.badge-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 6px;
    filter: brightness(0) invert(1); /* сделает иконку белой, если она тёмная */
}

.tagline-icon {
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    margin-right: 6px;
    filter: brightness(0) invert(1); /* делает иконку белой, если исходник тёмный */
}

a.logo {
    text-decoration: none;
    color: inherit;
}
a.logo:hover {
    opacity: 0.9;
}

/* ---------- Страница датапаков ---------- */
.datapacks-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(125deg, #ffffff, #cfbaff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.datapacks-subtitle {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #c0cee8;
}

.datapack-section {
    background: rgba(20, 28, 45, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 2rem;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid #5f4b9e;
}

.datapack-section h2 {
    font-size: 2.5rem;
    color: #e2d5ff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.datapack-icon {
    font-size: 2.5rem;
}

.datapack-desc {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #e3e9f2;
}

.datapack-list {
    list-style-type: none;
    padding-left: 1.5rem;
}

.datapack-list li {
    margin: 0.8rem 0;
    position: relative;
    color: #d0d9ec;
}

.datapack-list li::before {
    content: "✦";
    color: #b38aff;
    position: absolute;
    left: -1.5rem;
}

.datapacks-footer-actions {
    text-align: center;
    margin: 3rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.back-link {
    display: inline-block;
    color: #bfaaff;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #6f5eb0;
    padding: 0.7rem 2rem;
    border-radius: 40px;
    transition: 0.2s;
    background: rgba(20, 28, 45, 0.5);
    backdrop-filter: blur(4px);
}

.back-link:hover {
    background: #2e1e5a;
    color: white;
    border-color: #b38aff;
}

a.logo {
    text-decoration: none;
    color: inherit;
}

a.logo:hover {
    opacity: 0.9;
}

/* Ограничение ширины контейнера на больших экранах */
@media (min-width: 1600px) {
    .container {
        max-width: 1200px;
    }
}

/* Центрируем и ограничиваем ширину ключевых блоков */
.description-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);  /* 4 колонки по умолчанию */
    gap: 2rem;
    margin: 4rem auto;
    max-width: 1300px;
}

/* Планшеты — 2 колонки */
@media (max-width: 1000px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Телефоны — 1 колонка */
@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.emoji-native {
    color: initial;
    -webkit-text-fill-color: initial;
}

.vote-pavilion {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Для кнопки копирования в футере тоже добавим центрирование */
.big-copy-footer {
    margin-left: auto;
    margin-right: auto;
}