/* ===== Базовые стили ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    background-color: #0a0a0a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 70px;
    /* Повторяющиеся «обои»: мелкие силуэты, равномерно распределённые по странице */
    background-image: url('/img/wallpaper.svg?v=4');
    background-repeat: repeat;
    background-size: 340px;
}

/* Убираем фиолетовый цвет и подчёркивание у посещённых ссылок */
a {
    color: #00ff41;
    text-decoration: none;
}
a:visited {
    color: #00ff41;
    text-decoration: none;
}
a:hover {
    color: #00ff41;
    text-decoration: none !important;
}

/* ===== Основной контент (прижимает футер к низу) ===== */
main {
    flex: 1;
}

/* ===== Навигация ===== */
nav {
    background-color: #1a1a1a;
    padding: 0.8rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 255, 0, 0.1);
    border-bottom: 1px solid #00ff41;
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #00ff41;
    text-decoration: none;
    white-space: nowrap;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
}

nav a:hover {
    color: #00ff41;
}

nav a.active {
    color: #0a0a0a;
    background-color: #00ff41;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
}

/* ===== Бургер-меню ===== */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: #00ff41;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== Секция карты ===== */
.map-section {
    width: 100%;
    background: transparent;
    border-bottom: 2px solid #00ff41;
    padding: 1.2rem 0;
    flex-shrink: 0;
}

.map-section .container iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 10px;
    display: block;
}

/* ===== Панель кнопок ===== */
.action-bar {
    background-color: transparent;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid #333;
}

/* ===== Кнопки ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
    cursor: pointer;
}

.btn-discord {
    background-color: #5865F2;
    color: white;
}

.btn-discord:hover {
    background-color: #4752c4;
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
    transform: translateY(-2px);
}

.btn-map {
    background-color: transparent;
    color: #00ff41;
    border: 2px solid #00ff41;
}

.btn-map:hover {
    background-color: #00ff41;
    color: #0a0a0a;
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.3);
    transform: translateY(-2px);
}

.btn-vote,
.btn-vote:link,
.btn-vote:visited,
.btn-vote:hover,
.btn-vote:active {
    background-color: #00ff41;
    color: #000000 !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.btn-vote:hover {
    background-color: #00cc33;
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.3);
    transform: translateY(-2px);
}

/* ===== Кнопка "О сервере" ===== */
.btn-about {
    background-color: transparent;
    color: #00ff41;
    border: 2px solid #00ff41;
}

.btn-about:hover {
    background-color: #00ff41;
    color: #0a0a0a;
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.3);
    transform: translateY(-2px);
}

/* ===== Секция "О сервере" ===== */
#about {
    background-color: transparent;
    scroll-margin-top: 140px;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    color: #00ff41;
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: #ccc;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.about-text p strong {
    color: #e0e0e0;
}

.about-text img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
    display: block;
}

/* ===== IP Бокс ===== */
.ip-box {
    background-color: #1a1a1a;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    border: 2px solid #00ff41;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.ip-box:hover {
    background-color: #00ff41;
    transform: scale(1.05);
}

.ip-box:hover span {
    color: #0a0a0a;
}

.ip-box span {
    font-size: 1rem;
    color: #00ff41;
    font-family: monospace;
    font-weight: bold;
    transition: color 0.2s;
}

/* ===== Контейнер и секции ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

section {
    padding: 2rem 0;
}

h2 {
    font-size: 2.5rem;
    color: #00ff41;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ===== Статус-бар (компактный, под хедером) ===== */
.status-bar {
    background-color: #111;
    border-bottom: 1px solid #333;
    padding: 0.6rem 0;
    font-size: 1rem;
    color: #ccc;
    position: relative;
    z-index: 999;
}

.status-bar .container {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #00ff41;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
    animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(0, 255, 65, 0.6); }
    50% { opacity: 0.3; box-shadow: 0 0 2px rgba(0, 255, 65, 0.2); }
}

.status-online {
    color: #00ff41;
    font-weight: bold;
    white-space: nowrap;
    font-size: 1.05rem;
}

.status-sep {
    color: #555;
    user-select: none;
    font-weight: 300;
}

.status-version {
    white-space: nowrap;
    color: #e0e0e0;
    font-weight: 500;
}

.status-modes {
    white-space: nowrap;
    color: #aaa;
}

/* ===== Футер ===== */
footer {
    background-color: #1a1a1a;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #333;
    color: #888;
    margin-top: 2rem;
}

/* ===== Заголовок страницы ===== */
.page-header {
    text-align: center;
    margin: 2rem auto 3rem;
    padding: 0 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #00ff41;
    margin-bottom: 1rem;
}

.page-header p {
    color: #ccc;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== Страница Правил ===== */
.rules-container {
    max-width: 900px;
    margin: 2rem auto 0;
    padding: 0 2rem 4rem;
}

.rule-category {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid #00ff41;
}

.rule-category h3 {
    color: #00ff41;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rule-category ol {
    padding-left: 2.5rem;
    color: #ccc;
    margin-top: 1rem;
}

.rule-category ol li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    padding-left: 0.5rem;
    color: #e0e0e0;
}

.rule-category ol li strong {
    color: #e0e0e0;
}

.rule-warn {
    color: #ff6b6b !important;
    font-weight: bold;
}

/* ===== Галерея построек ===== */
.gallery-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: #ccc;
    font-size: 1.1rem;
    padding: 0 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.gallery-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.3s, border-color 0.3s;
}

.gallery-card:hover {
    transform: translateY(-5px);
    border-color: #00ff41;
}

.gallery-card > img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background-color: #0a0a0a;
}

.gallery-card-info {
    padding: 1rem 1.25rem;
}

.gallery-card-info h4 {
    color: #00ff41;
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
}

.gallery-card-info p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.gallery-card-info .author {
    color: #666;
    font-size: 0.82rem;
    font-style: italic;
    margin-bottom: 0;
}

/* ===== Слайдер в галерее ===== */
.gallery-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #111;
    padding-bottom: 56.25%; /* соотношение 16:9 — компактный бокс */
}

.gallery-slider-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gallery-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.gallery-slider-slide.active {
    opacity: 1;
    z-index: 2;
}

.gallery-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #0a0a0a;
}

.gallery-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.gallery-slider-btn:hover {
    background-color: rgba(0, 255, 65, 0.8);
    color: #0a0a0a;
}

.gallery-slider-prev {
    left: 5px;
}

.gallery-slider-next {
    right: 5px;
}

.gallery-slider-dots {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 5px;
}

.gallery-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
    opacity: 0.7;
}

.gallery-slider-dot.active {
    background-color: #00ff41;
    opacity: 1;
}

.gallery-slider-dot:hover {
    background-color: rgba(0, 255, 65, 0.8);
    opacity: 1;
}

/* ===== Страница Голосования ===== */
.vote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.vote-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    border: 1px solid #333;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.vote-card:hover {
    transform: translateY(-5px);
    border-color: #00ff41;
}

.vote-card h3 {
    color: #00ff41;
    margin-bottom: 0;
}

.vote-card .btn {
    width: 100%;
    justify-content: center;
}

/* ===== Координаты в галерее ===== */
.gallery-coords {
    color: #00ff41;
    font-family: monospace;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    background-color: #0a0a0a;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.2s;
    user-select: none;
}

.gallery-coords:hover {
    background-color: #00ff41;
    color: #0a0a0a;
}

/* ===== Виджет новостей на главной ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.news-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.3s, border-color 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.news-card .news-card-date {
    color: #888 !important;
}

.news-card .news-card-body p {
    color: #aaa !important;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: #00ff41;
}

.news-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-body {
    padding: 1rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-date {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.news-card-body h3 {
    color: #00ff41;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.news-card-body p {
    color: #aaa !important;
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 1rem;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.news-card-more {
    color: #00ff41;
    font-weight: bold;
    font-size: 0.9rem;
}

/* ===== Страница отдельной новости ===== */
.news-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.news-article-image {
    width: 100%;
    max-height: 75vh;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.news-article-image img {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    background-color: #0a0a0a;
}

.news-article-content {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.8;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    text-align: justify;
    text-justify: inter-word;
}

/* ===== Слайдер изображений в новости ===== */
.news-slider {
    position: relative;
    width: 100%;
    max-height: 75vh;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: #111;
}

.news-slider-images {
    position: relative;
    width: 100%;
    height: 300px;
    max-height: 75vh;
}

.news-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.news-slider-slide.active {
    opacity: 1;
    z-index: 2;
}

.news-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background-color: #0a0a0a;
}

.news-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.news-slider-btn:hover {
    background-color: rgba(0, 255, 65, 0.8);
    color: #0a0a0a;
}

.news-slider-prev {
    left: 10px;
}

.news-slider-next {
    right: 10px;
}

/* Зоны нажатия по краям слайдера */
.news-slider-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    z-index: 5;
    cursor: pointer;
}

.news-slider-zone-prev {
    left: 0;
}

.news-slider-zone-next {
    right: 0;
}

.news-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.news-slider-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
    opacity: 0.7;
}

.news-slider-dot.active {
    background-color: #00ff41;
    opacity: 1;
}

.news-slider-dot:hover {
    background-color: rgba(0, 255, 65, 0.8);
    opacity: 1;
}

/* ===== Виджет новостей на главной (preview) ===== */
#latest-news {
    background-color: transparent;
}

.news-preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.news-preview-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.3s, border-color 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.news-preview-card .news-preview-date {
    color: #888 !important;
}

.news-preview-card .news-preview-text {
    color: #aaa !important;
}


.news-preview-card:hover {
    transform: translateY(-5px);
    border-color: #00ff41;
}

.news-preview-image {
    width: 100%;
    max-height: 50vh;
    overflow: hidden;
    position: relative;
}

.news-preview-image img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    display: block;
    background-color: #0a0a0a;
}

/* Слайдер в превью новостей на главной */
.news-preview-slider {
    position: relative;
    background-color: #111;
    cursor: grab;
    min-height: 200px;
}

.news-preview-slider:active {
    cursor: grabbing;
}

.news-preview-slide {
    display: none;
}

.news-preview-slide.active {
    display: block;
}

.news-preview-slide img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    display: block;
    background-color: #0a0a0a;
}

.news-preview-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 5px;
}

.news-preview-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.3s;
}

.news-preview-dot.active {
    background-color: #00ff41;
}

.news-preview-info {
    padding: 1rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-preview-info h3 {
    color: #00ff41;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.news-preview-date {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.news-preview-text {
    color: #aaa !important;
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ===== Кликабельные координаты в галерее ===== */
.gallery-card-info .coords {
    color: #00ff41;
    font-family: monospace;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    background-color: #0a0a0a;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.2s;
    user-select: none;
    margin-bottom: 0.5rem;
}

.gallery-card-info .coords:hover {
    background-color: #00ff41;
    color: #0a0a0a;
}

/* ===== Адаптивность ===== */

/* Планшеты и маленькие ноутбуки */
@media (max-width: 1024px) {
    nav ul {
        gap: 1rem;
    }

    nav .logo {
        font-size: 1.2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .vote-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    nav {
        padding: 0.6rem 1rem;
    }

    nav .logo {
        font-size: 1.1rem;
    }

    /* Бургер-меню */
    .burger {
        display: flex;
    }

    nav ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
    }

    nav ul.open {
        display: flex;
    }

    nav ul li a {
        font-size: 1.3rem;
        padding: 0.8rem 2rem;
    }

    nav a.active {
        padding: 0.8rem 2rem;
    }

    /* Карта */
    .map-section .container iframe {
        height: 260px;
    }

    /* Заголовки */
    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    /* Панель кнопок */
    .action-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }

    .btn, .ip-box {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* Сетки */
    .gallery-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem 3rem;
        gap: 1.2rem;
    }

    .vote-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem 3rem;
        gap: 1.2rem;
    }

    .news-preview-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }


    .rules-container {
        padding: 0 1rem 3rem;
    }

    .rule-category {
        padding: 1.5rem;
    }

    .rule-category h3 {
        font-size: 1.2rem;
    }

    .rule-category ol {
        padding-left: 1.5rem;
    }

    /* Статус-бар */
    .status-bar {
        font-size: 0.85rem;
        padding: 0.45rem 0;
    }

    .status-bar .container {
        gap: 0.45rem;
    }

    .status-online {
        font-size: 0.9rem;
    }

    section {
        padding: 1.5rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .page-header {
        margin: 1.5rem auto 2rem;
        padding: 0 1rem;
    }
}

/* Очень маленькие телефоны */
@media (max-width: 480px) {
    .map-section .container iframe {
        height: 200px;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }


    .vote-card {
        padding: 1.5rem;
    }
}

/* ===== Кнопка "наверх" ===== */
#scrollTopBtn,
button#scrollTopBtn {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background-color: #00ff41 !important;
    color: #0a0a0a !important;
    border: none !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, box-shadow 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 255, 65, 0.4);
}

#scrollTopBtn.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

#scrollTopBtn:hover {
    background-color: #00e63a !important;
    box-shadow: 0 6px 20px rgba(0, 255, 65, 0.6) !important;
    transform: translateY(-3px) !important;
}

#scrollTopBtn:active {
    transform: translateY(0) !important;
}

#scrollTopBtn svg {
    display: block;
}

@media (max-width: 480px) {
    #scrollTopBtn {
        bottom: 20px !important;
        right: 20px !important;
        width: 44px !important;
        height: 44px !important;
    }
}