* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
}

body {
    background: #0f0505;
    color: #ffc8c8;
    min-height: 100vh;
    padding: 10px;
    position: relative;
    border: 2px solid #6b0000;
    box-shadow: inset 0 0 40px #2a0000;
    background-image: radial-gradient(circle at 10% 20%, rgba(70, 0, 0, 0.3) 0%, transparent 30%),
                      radial-gradient(circle at 90% 80%, rgba(100, 0, 0, 0.3) 0%, transparent 40%);
}

/* Демонические эффекты */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, rgba(100, 0, 0, 0.07) 0px, rgba(0, 0, 0, 0.2) 1px, transparent 2px);
    pointer-events: none;
    z-index: 999;
}

body::after {
    content: "666";
    position: fixed;
    bottom: 10px;
    right: 20px;
    font-size: clamp(80px, 20vw, 140px);
    opacity: 0.05;
    font-weight: 900;
    transform: rotate(-8deg);
    color: #8b0000;
    text-shadow: 0 0 15px #ff3333, 0 0 30px #b30000;
    z-index: -1;
    animation: demonBreath 7s infinite;
    pointer-events: none;
}

@keyframes demonBreath {
    0% { opacity: 0.04; text-shadow: 0 0 10px #660000, 0 0 20px #b30000; }
    50% { opacity: 0.1; text-shadow: 0 0 30px #ff4d4d, 0 0 60px #ff0000; }
    100% { opacity: 0.04; text-shadow: 0 0 10px #660000, 0 0 20px #b30000; }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: rgba(15, 3, 3, 0.92);
    border: 3px solid #8b1a1a;
    border-radius: 30px;
    padding: 20px;
    backdrop-filter: blur(1px);
    box-shadow: 0 0 40px #470000, inset 0 0 20px #2a0000, 0 0 20px #b30000;
    position: relative;
    z-index: 1;
}

/* ===== ВЕРХНЯЯ РЕКЛАМА ===== */
.top-ad {
    background: linear-gradient(145deg, #2a0a0a, #4f0f0f);
    border: 3px solid #ff4444;
    border-radius: 30px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #ffa8a8;
    text-transform: uppercase;
    box-shadow: 0 0 30px #ff0000, 0 0 60px #b30000;
    animation: topAdPulse 3s infinite;
}

@keyframes topAdPulse {
    0% { box-shadow: 0 0 20px #ff0000; }
    50% { box-shadow: 0 0 50px #ff6666, 0 0 80px #ff0000; }
    100% { box-shadow: 0 0 20px #ff0000; }
}

.top-ad small {
    font-size: 16px;
    display: block;
    color: #ff99cc;
}

/* ===== ШАПКА ===== */
.header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #8b1a1a;
    padding-bottom: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.site-title {
    font-size: clamp(32px, 8vw, 52px);
    font-weight: 900;
    text-shadow: 3px 3px 0 #3d0000, 0 0 15px #b30000, 0 0 30px #ff3333;
    letter-spacing: 4px;
    color: #ffb3b3;
}

.site-title span {
    color: #ff6a6a;
    font-style: italic;
    text-shadow: 0 0 10px #ff3333, 0 0 20px #ff0000;
}

.tg-button {
    background: #3d0f0f;
    border: 2px solid #a52a2a;
    color: #ffb3b3;
    padding: 10px 18px;
    font-size: clamp(16px, 4vw, 20px);
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 40px;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 0 10px #660000, 0 0 20px #b30000;
}

.tg-button:hover {
    background: #5c1a1a;
    color: white;
    border-color: #ff6a6a;
    transform: scale(1.05);
    box-shadow: 0 0 20px #b30000, 0 0 40px #ff3333;
}

.tg-channel {
    background: #1a4d1a;
    border-color: #4da64d;
    box-shadow: 0 0 10px #00aa00;
}

.tg-channel:hover {
    background: #2d6b2d;
    border-color: #88ff88;
    box-shadow: 0 0 30px #00ff00;
}

/* ===== МЕНЮ НАВИГАЦИИ ===== */
.nav-menu {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    background: #170707;
    padding: 10px;
    border-radius: 50px;
    border: 2px solid #8b2a2a;
    box-shadow: 0 0 15px #660000;
}

.nav-item {
    color: #ffa3a3;
    font-size: clamp(16px, 4vw, 20px);
    font-weight: bold;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 30px;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 8px #ff3333;
}

.nav-item:hover {
    background: #751f1f;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 15px #ff3333;
}

.nav-item.active-nav {
    background: #8b2a2a;
    color: white;
    box-shadow: 0 0 15px #b30000, 0 0 30px #ff3333;
}

/* ===== РЕЙТИНГ АКТИВНОСТИ ШКОЛ (КРАСИВЫЙ ПЬЕДЕСТАЛ) ===== */
.school-activity {
    background: #130606;
    border: 2px solid #a52a2a;
    border-radius: 50px;
    padding: 20px 15px;
    margin-bottom: 25px;
    box-shadow: 0 0 30px #470000, 0 0 60px #330000;
    position: relative;
    overflow: hidden;
}

.school-activity::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(180, 0, 0, 0.15) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.activity-title {
    text-align: center;
    font-size: clamp(22px, 6vw, 28px);
    color: #ffadad;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 10px #8b0000, 0 0 20px #ff3333;
}

.activity-podium {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    position: relative;
    z-index: 1;
    min-height: 250px;
    flex-wrap: wrap;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
    animation: float 6s infinite ease-in-out;
    flex: 1 1 140px;
}

.podium-place:nth-child(1) { animation-delay: 0s; }
.podium-place:nth-child(2) { animation-delay: 0.5s; }
.podium-place:nth-child(3) { animation-delay: 1s; }

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

.place-2 { order: 1; }
.place-1 { order: 2; }
.place-3 { order: 3; }

.place-number {
    font-size: clamp(16px, 4vw, 20px);
    font-weight: bold;
    color: #ffd9d9;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #b30000, 0 0 20px #ffaa00;
    background: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 30px;
    border: 1px solid #ffaa00;
}

.place-bar {
    width: 100%;
    max-width: 240px;
    background: linear-gradient(145deg, #2a0a0a, #3f1212);
    border: 2px solid #ff6a6a;
    border-radius: 40px 40px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    box-shadow: 0 10px 0 #3d0000, 0 0 30px #ff3333, 0 0 60px #b30000;
    position: relative;
    overflow: hidden;
}

.place-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    20% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

.place-1 .place-bar {
    min-height: 200px;
    background: linear-gradient(145deg, #4f1a1a, #6b2424);
    border-color: #ffaa00;
    box-shadow: 0 15px 0 #4d0000, 0 0 40px #ffaa00, 0 0 80px #ff6600;
}

.place-2 .place-bar {
    min-height: 160px;
}

.place-3 .place-bar {
    min-height: 130px;
}

.school-name-podium {
    font-size: clamp(20px, 5vw, 26px);
    font-weight: bold;
    color: #ffb3b3;
    margin-bottom: 10px;
    text-align: center;
    word-break: break-word;
    text-shadow: 0 0 15px #ff3333;
}

.place-1 .school-name-podium {
    font-size: clamp(24px, 6vw, 32px);
    color: #ffd9d9;
    text-shadow: 0 0 20px #ffaa00, 0 0 40px #ff6600;
}

.school-score {
    font-size: clamp(28px, 7vw, 36px);
    color: #ff7878;
    font-weight: bold;
    text-shadow: 0 0 20px #ff4d4d, 0 0 40px #ff0000;
    margin-bottom: 5px;
}

.place-1 .school-score {
    font-size: clamp(38px, 9vw, 48px);
    color: #ffaa00;
    text-shadow: 0 0 20px #ffaa00, 0 0 40px #ff6600;
}

.podium-stats {
    font-size: 14px;
    color: #ffa5a5;
    text-align: center;
    padding: 5px;
    background: rgba(0,0,0,0.3);
    border-radius: 20px;
    width: 100%;
}

/* ===== ПОБЕДИТЕЛИ РАЙОНА (БЕЗ МИГАНИЯ) ===== */
.winners-section {
    background: #170707;
    border: 2px solid #a52a2a;
    border-radius: 50px;
    padding: 20px 15px;
    margin-bottom: 25px;
    box-shadow: inset 0 -5px 15px #1f0000, 0 5px 0 #3d0000, 0 0 30px #660000;
}

.winners-title {
    text-align: center;
    font-size: clamp(22px, 6vw, 28px);
    margin-bottom: 20px;
    color: #ffadad;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 3px;
    background: #210808;
    display: inline-block;
    padding: 8px 30px;
    border-radius: 40px;
    margin-left: auto;
    margin-right: auto;
    display: table;
    border: 1px solid #b34d4d;
    box-shadow: 0 0 15px #b30000;
}

.winners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.winner-card {
    flex: 1 1 130px;
    max-width: 180px;
    background: linear-gradient(145deg, #2a0c0c, #3f1212);
    border: 2px solid #ff6a6a;
    border-radius: 25px;
    padding: 15px 8px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 4px 0 #4a0000, 0 0 20px #ff3333, 0 0 40px #b30000;
    /* Убрана анимация мигания */
}

.winner-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #ffb3b3;
    background: #4f1515;
    box-shadow: 0 4px 0 #4a0000, 0 0 30px #ff6666, 0 0 60px #ff0000;
}

.winner-icon {
    width: 60px;
    height: 60px;
    background: #ff3333;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    border: 2px solid #ffcccc;
    box-shadow: 0 0 20px #ff3333;
    /* Убрана анимация иконки */
}

.winner-category {
    font-size: 15px;
    font-weight: bold;
    color: #ffb3b3;
    margin-bottom: 5px;
    text-transform: uppercase;
    text-shadow: 0 0 8px #ff3333;
}

.winner-name {
    font-size: 14px;
    background: #3a0404;
    padding: 5px;
    border-radius: 15px;
    border: 1px solid #ff6a6a;
    color: #ffe6e6;
    word-break: break-word;
    margin-bottom: 3px;
}

.winner-school {
    font-size: 12px;
    color: #ffaa00;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 0 0 8px #ffaa00;
}

.winner-votes {
    font-size: 16px;
    font-weight: bold;
    color: #ffcc00;
    text-shadow: 0 0 10px #ffaa00, 0 0 20px #ff6600;
    /* Убрана анимация голосов */
}

.timer-block {
    text-align: center;
    margin-top: 15px;
    font-size: clamp(18px, 5vw, 22px);
    background: #1a0303;
    padding: 8px;
    border-radius: 40px;
    border: 2px solid #a52a2a;
    color: #ffa0a0;
    box-shadow: 0 0 15px #b30000;
}

/* ===== ИНФОРМАЦИЯ ===== */
.info-box {
    background: #1a0606;
    border: 2px solid #b34242;
    border-radius: 35px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 0 20px #470000, 0 0 40px #330000;
}

.info-title {
    font-size: clamp(22px, 6vw, 28px);
    color: #ffadad;
    margin-bottom: 8px;
    text-transform: uppercase;
    text-shadow: 0 0 10px #ff3333;
}

.info-text {
    font-size: clamp(16px, 4vw, 20px);
    color: #ffcfcf;
    line-height: 1.4;
}

.info-text span {
    color: #ff7878;
    font-weight: bold;
    text-shadow: 0 0 8px #ff3333;
}

/* ===== КНОПКИ ВЫБОРА ШКОЛЫ ===== */
.selection-panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.school-btn {
    background: #2a0a0a;
    border: 2px solid #b04545;
    color: #f0c3c3;
    padding: 12px 20px;
    font-size: clamp(18px, 5vw, 24px);
    font-weight: 800;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.2s;
    min-width: 140px;
    text-transform: uppercase;
    box-shadow: 0 5px 0 #470000, 0 0 15px #660000;
    flex: 1 1 auto;
}

.school-btn.active {
    background: #821f1f;
    border-color: #ff8686;
    color: white;
    box-shadow: 0 0 20px #a52a2a, 0 0 40px #ff3333;
    transform: scale(1.02);
}

.school-btn.raion {
    background: #3d1515;
    border-color: #c45c5c;
}

/* ===== ФИЛЬТР ДЛЯ РАЙОНА ===== */
.school-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 10px 0 15px;
}

.filter-btn {
    background: #2a0a0a;
    border: 1px solid #b04545;
    color: #f0c3c3;
    padding: 8px 15px;
    font-size: clamp(14px, 4vw, 18px);
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 0 10px #470000;
}

.filter-btn.active-filter {
    background: #a52a2a;
    color: white;
    border-color: #ffa0a0;
    box-shadow: 0 0 15px #ff3333;
}

/* ===== РУЛЕТКА ===== */
.roulette-container {
    background: #1a0606;
    border: 3px solid #b33a3a;
    border-radius: 50px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 0 30px #660000, inset 0 0 20px #2a0000;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.cat-btn {
    background: #330d0d;
    border: 2px solid #b75757;
    color: #ebb5b5;
    padding: 10px 18px;
    font-size: clamp(16px, 4vw, 20px);
    border-radius: 40px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
    box-shadow: 0 0 10px #660000;
    flex: 0 1 auto;
}

.cat-btn.active-cat {
    background: #9e2626;
    color: white;
    border-color: #ffbaba;
    box-shadow: 0 0 15px #a52a2a, 0 0 30px #ff3333;
}

.teacher-wheel {
    width: 100%;
    max-width: 900px;
    height: 400px;
    overflow-y: auto;
    background: #120101;
    border: 4px solid #a63737;
    border-radius: 40px;
    padding: 15px;
    margin: 15px auto;
    scroll-behavior: smooth;
    box-shadow: inset 0 -20px 25px #2a0000, 0 0 30px #660000;
}

.teacher-option {
    padding: 15px 20px;
    font-size: clamp(18px, 4vw, 22px);
    border-bottom: 2px solid #7a2929;
    cursor: pointer;
    transition: 0.1s;
    text-align: center;
    background: #2a0a0a;
    border-radius: 40px;
    margin: 8px 0;
    word-break: break-word;
}

.teacher-option:hover,
.teacher-option.selected-teacher {
    background: #9e2626;
    color: white;
    transform: scale(1.02);
    border-color: #ff8a8a;
    box-shadow: 0 0 15px #a52a2a, 0 0 30px #ff3333;
}

.save-vote-btn {
    background: #551111;
    border: 3px solid #d36d6d;
    color: white;
    font-size: clamp(22px, 6vw, 28px);
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 60px;
    margin: 15px 0;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 6px 0 #2e0000, 0 0 30px #b30000;
    letter-spacing: 2px;
    width: 100%;
    max-width: 500px;
}

.save-vote-btn:active {
    transform: translateY(6px);
    box-shadow: 0 0 20px #b30000;
}

.save-vote-btn:disabled {
    opacity: 0.4;
    pointer-events: none;
    box-shadow: none;
}

/* ===== ЛИДЕРЫ ШКОЛЫ ===== */
.school-leaders {
    margin-top: 20px;
    background: #170707;
    border: 2px solid #b33a3a;
    border-radius: 40px;
    padding: 20px;
    animation: leadersGlow 4s infinite;
}

@keyframes leadersGlow {
    0% { box-shadow: 0 0 10px #550000; }
    50% { box-shadow: 0 0 25px #9e2626, 0 0 50px #ff3333; }
    100% { box-shadow: 0 0 10px #550000; }
}

.leaders-title {
    font-size: clamp(22px, 6vw, 26px);
    text-align: center;
    color: #ffadad;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-shadow: 0 0 10px #ff3333;
}

.leaders-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.leader-cat-block {
    min-width: 150px;
    flex: 1 1 150px;
    background: #2a0c0c;
    border: 2px solid #b35959;
    border-radius: 30px;
    padding: 15px;
    box-shadow: 0 0 20px #660000;
}

.leader-cat-name {
    font-size: clamp(18px, 5vw, 20px);
    font-weight: bold;
    color: #ffa5a5;
    border-bottom: 2px dotted #b35959;
    padding-bottom: 8px;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 0 0 8px #ff3333;
}

.leader-teacher {
    font-size: clamp(16px, 4vw, 18px);
    background: #3a0c0c;
    padding: 8px;
    border-radius: 30px;
    margin: 5px 0;
    text-align: center;
    border: 1px solid #b45b5b;
    word-break: break-word;
}

.leader-votes {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: #ffaa00;
    text-shadow: 0 0 10px #ffaa00, 0 0 20px #ff6600;
    animation: leaderVotesGlow 2s infinite;
    margin-top: 5px;
}

@keyframes leaderVotesGlow {
    0% { text-shadow: 0 0 10px #ffaa00; }
    50% { text-shadow: 0 0 20px #ffff00, 0 0 30px #ff6600; }
    100% { text-shadow: 0 0 10px #ffaa00; }
}

/* ===== КОММЕНТАРИИ ===== */
.bottom-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
}

.comments-block {
    flex: 2 1 300px;
    min-width: 280px;
    background: #1a0606;
    border: 2px solid #b34242;
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 0 25px #470000;
}

.comments-title {
    font-size: clamp(22px, 6vw, 28px);
    border-bottom: 2px dotted #b35959;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #ffadad;
    text-shadow: 0 0 10px #ff3333;
}

.comments-info {
    background: #2a0a0a;
    border: 1px solid #ff6a6a;
    border-radius: 30px;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #ffcfcf;
    text-align: center;
    box-shadow: 0 0 15px #660000;
}

.comment-list {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 15px;
    background: #100101;
    padding: 10px;
    border-radius: 25px;
    border: 1px solid #a33a3a;
}

.comment-item {
    padding: 10px;
    border-bottom: 1px solid #6b2a2a;
    font-size: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.comment-nick {
    color: #ff7878;
    font-weight: bold;
    margin-right: 5px;
    text-shadow: 0 0 8px #ff4d4d;
}

.comment-text {
    color: #ffcfcf;
    flex: 1;
    word-break: break-word;
}

.comment-likes {
    display: flex;
    gap: 8px;
    align-items: center;
}

.like-btn, .dislike-btn {
    background: none;
    border: none;
    color: #ffa5a5;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
    padding: 2px 5px;
}

.like-btn:hover, .like-btn.active-like {
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    transform: scale(1.2);
}

.dislike-btn:hover, .dislike-btn.active-dislike {
    color: #ff0000;
    text-shadow: 0 0 10px #ff0000;
    transform: scale(1.2);
}

.like-count, .dislike-count {
    font-size: 14px;
    color: #ffb3b3;
}

.comment-input-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nick-input, .comment-input {
    background: #2a0808;
    border: 2px solid #b65c5c;
    color: #ffbebe;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 40px;
    width: 100%;
}

.nick-input:focus, .comment-input:focus {
    outline: none;
    border-color: #ff8a8a;
    box-shadow: 0 0 15px #b30000, 0 0 30px #ff3333;
}

.comment-send {
    background: #821f1f;
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid #ff8a8a;
    font-size: 20px;
    transition: 0.2s;
    box-shadow: 0 0 15px #b30000;
}

.comment-send:hover {
    background: #a52a2a;
    transform: scale(1.02);
    box-shadow: 0 0 20px #b30000, 0 0 40px #ff3333;
}

/* ===== РЕКЛАМНЫЙ БЛОК ===== */
.ad-block {
    flex: 1 1 220px;
    min-width: 220px;
    background: #160404;
    border: 3px dashed #b33a3a;
    border-radius: 50px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 0 30px #660000;
}

/* ===== РЕКЛАМНЫЕ СЕКЦИИ ===== */
.ad-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
}

.ad-banner {
    flex: 1 1 200px;
    min-width: 200px;
    background: linear-gradient(145deg, #2a0a0a, #3f0f0f);
    border: 2px solid #b34d4d;
    border-radius: 30px;
    padding: 20px 10px;
    text-align: center;
    font-size: clamp(18px, 5vw, 22px);
    font-weight: bold;
    color: #ffa8a8;
    text-transform: uppercase;
    transform: rotate(-0.5deg);
    box-shadow: 0 0 20px #660000;
    /* Убрана анимация пульсации */
}

.ad-banner small {
    font-size: 12px;
    display: block;
    color: #a16666;
}

/* ===== СЕКЦИЯ ПРЕДЛОЖЕНИЙ ===== */
.suggestions-section {
    margin-top: 30px;
    background: #1a0606;
    border: 3px solid #b33a3a;
    border-radius: 50px;
    padding: 25px;
    box-shadow: 0 0 40px #660000;
}

.suggestions-title {
    font-size: clamp(24px, 7vw, 30px);
    text-align: center;
    color: #ffadad;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 0 15px #ff3333;
}

/* TG Канал блок */
.tg-channel-block {
    background: linear-gradient(145deg, #1a3d1a, #2d6b2d);
    border: 3px solid #88ff88;
    border-radius: 50px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 0 30px #00ff00;
    animation: tgChannelPulse 3s infinite;
}

@keyframes tgChannelPulse {
    0% { box-shadow: 0 0 20px #00aa00; }
    50% { box-shadow: 0 0 50px #88ff88, 0 0 80px #00ff00; }
    100% { box-shadow: 0 0 20px #00aa00; }
}

.tg-channel-title {
    font-size: 26px;
    color: #ffffff;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-shadow: 0 0 15px #88ff88;
}

.tg-channel-text {
    font-size: 18px;
    color: #ccffcc;
    margin-bottom: 20px;
}

.tg-channel-button {
    display: inline-block;
    background: #00aa00;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid #88ff88;
    box-shadow: 0 0 30px #00ff00;
    transition: 0.2s;
    animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 50px #88ff88; }
    100% { transform: scale(1); }
}

.tg-channel-button:hover {
    background: #88ff88;
    color: black;
    transform: scale(1.1);
}

/* Голосования */
.polls-container {
    background: #2a0c0c;
    border-radius: 40px;
    padding: 20px;
    margin-bottom: 25px;
}

.poll-title {
    font-size: 22px;
    color: #ffb3b3;
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
}

.polls-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.poll-item {
    background: #3f1212;
    border: 2px solid #b35959;
    border-radius: 30px;
    padding: 15px;
    flex: 1 1 250px;
    text-align: center;
}

.poll-question {
    font-size: 18px;
    color: #ffcfcf;
    margin-bottom: 12px;
}

.poll-options {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.poll-btn {
    background: #551111;
    border: 2px solid #ff8a8a;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 16px;
}

.poll-btn:hover {
    background: #821f1f;
    transform: scale(1.05);
    box-shadow: 0 0 15px #ff3333;
}

.poll-btn.active-poll {
    background: #9e2626;
    box-shadow: 0 0 20px #ff3333;
}

/* Форма предложений */
.suggestion-form {
    background: #2a0c0c;
    border-radius: 40px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-title {
    font-size: 20px;
    color: #ffb3b3;
    margin-bottom: 5px;
    text-align: center;
}

.suggestion-nick, .suggestion-school, .suggestion-text {
    background: #3f1212;
    border: 2px solid #b65c5c;
    color: #ffbebe;
    padding: 12px 15px;
    font-size: 16px;
    border-radius: 30px;
    width: 100%;
}

.suggestion-school {
    cursor: pointer;
}

.suggestion-text {
    resize: vertical;
    min-height: 80px;
}

.suggestion-send {
    background: #821f1f;
    border: none;
    color: white;
    padding: 12px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid #ff8a8a;
    font-size: 18px;
    transition: 0.2s;
}

.suggestion-send:hover {
    background: #a52a2a;
    box-shadow: 0 0 20px #ff3333;
}

.suggestions-list {
    background: #2a0c0c;
    border-radius: 40px;
    padding: 20px;
}

.list-title {
    font-size: 20px;
    color: #ffb3b3;
    margin-bottom: 15px;
    text-align: center;
}

.suggestion-item {
    background: #3f1212;
    border: 1px solid #b35959;
    border-radius: 25px;
    padding: 12px;
    margin-bottom: 10px;
}

.suggestion-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #ffa5a5;
    flex-wrap: wrap;
}

.suggestion-author {
    color: #ff7878;
    font-weight: bold;
}

.suggestion-school-tag {
    background: #551111;
    padding: 2px 8px;
    border-radius: 15px;
}

.suggestion-content {
    color: #ffcfcf;
    font-size: 16px;
    word-break: break-word;
}

/* ===== СЕКЦИЯ О ПРОЕКТЕ ===== */
.about-section {
    margin-top: 30px;
    background: #1a0606;
    border: 3px solid #b33a3a;
    border-radius: 50px;
    padding: 30px;
    box-shadow: 0 0 40px #660000;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 32px;
    color: #ffadad;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 0 0 15px #ff3333;
}

.about-content h3 {
    font-size: 24px;
    color: #ffb3b3;
    margin: 20px 0 10px;
    text-shadow: 0 0 10px #ff3333;
}

.about-content p {
    font-size: 18px;
    line-height: 1.6;
    color: #ffcfcf;
    margin-bottom: 15px;
}

.about-ad {
    background: linear-gradient(145deg, #2a0a0a, #4f0f0f);
    border: 3px solid #ff4444;
    border-radius: 30px;
    padding: 25px;
    margin-top: 30px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #ffa8a8;
    text-transform: uppercase;
    box-shadow: 0 0 30px #ff0000;
    animation: aboutAdPulse 3s infinite;
}

@keyframes aboutAdPulse {
    0% { box-shadow: 0 0 20px #ff0000; }
    50% { box-shadow: 0 0 50px #ff6666; }
    100% { box-shadow: 0 0 20px #ff0000; }
}

.about-ad small {
    font-size: 16px;
    display: block;
    color: #ff99cc;
}

.footer-note {
    margin-top: 30px;
    text-align: center;
    color: #a55a5a;
    border-top: 2px solid #8b2a2a;
    padding-top: 15px;
    font-size: clamp(14px, 4vw, 18px);
    text-shadow: 0 0 8px #660000;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 12px;
    background: #1f0303;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(145deg, #a52a2a, #ff4d4d);
    border-radius: 20px;
    border: 2px solid #b35959;
    box-shadow: 0 0 10px #ff3333;
}

/* Топ предложений */
.top-suggestions-container {
    background: linear-gradient(145deg, #2a0a0a, #3f1212);
    border: 2px solid #ffaa00;
    border-radius: 30px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 0 30px #ffaa00;
}

.top-suggestions-title {
    font-size: 24px;
    color: #ffaa00;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 0 0 15px #ffaa00;
    animation: topTitleGlow 2s infinite;
}

@keyframes topTitleGlow {
    0% { text-shadow: 0 0 10px #ffaa00; }
    50% { text-shadow: 0 0 20px #ffff00, 0 0 30px #ff6600; }
    100% { text-shadow: 0 0 10px #ffaa00; }
}

.top-suggestion-item {
    background: #2a0c0c;
    border: 1px solid #ffaa00;
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.top-suggestion-author {
    color: #ffaa00;
    font-weight: bold;
    font-size: 16px;
}

.top-suggestion-text {
    color: #ffcfcf;
    font-size: 18px;
}

.top-suggestion-likes {
    color: #00ff00;
    font-weight: bold;
    text-align: right;
    font-size: 16px;
    text-shadow: 0 0 10px #00ff00;
}

/* Лайки для предложений */
.suggestion-likes {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-end;
}

.suggestion-item {
    position: relative;
}

.suggestion-item .like-btn, .suggestion-item .dislike-btn {
    background: none;
    border: none;
    color: #ffa5a5;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
    padding: 2px 5px;
}

.suggestion-item .like-btn:hover,
.suggestion-item .like-btn.active-like {
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    transform: scale(1.2);
}

.suggestion-item .dislike-btn:hover,
.suggestion-item .dislike-btn.active-dislike {
    color: #ff0000;
    text-shadow: 0 0 10px #ff0000;
    transform: scale(1.2);
}

.suggestion-item .like-count, .suggestion-item .dislike-count {
    font-size: 14px;
    color: #ffb3b3;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .tg-button, .tg-channel {
        width: 100%;
        text-align: center;
        margin: 5px 0 !important;
    }
    
    .activity-podium {
        flex-direction: column;
        align-items: center;
    }
    
    .place-bar {
        max-width: 280px;
    }
    
    .winners-grid {
        justify-content: center;
    }
    
    .winner-card {
        max-width: 150px;
    }
    
    .teacher-wheel {
        height: 350px;
    }
    
    .teacher-option {
        padding: 12px 15px;
        font-size: 18px;
    }
    
    .bottom-panel {
        flex-direction: column;
    }
    
    .comments-block, .ad-block {
        width: 100%;
    }
    
    .polls-grid {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 32px;
    }
    
    .school-btn {
        font-size: 16px;
        padding: 10px 12px;
        min-width: 120px;
    }
    
    .cat-btn {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .teacher-option {
        font-size: 16px;
        padding: 10px;
    }
    
    .save-vote-btn {
        font-size: 20px;
        padding: 12px 20px;
    }
    
    .winner-card {
        max-width: 130px;
    }
    
    .winner-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .place-1 .place-bar {
        min-height: 180px;
    }
    
    .place-2 .place-bar {
        min-height: 140px;
    }
    
    .place-3 .place-bar {
        min-height: 110px;
    }
}
