/* ==================== БАЗОВЫЕ СТИЛИ ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #FF6B35;
    --primary-blue: #1E3A8A;
    --secondary-blue: #3B82F6;
    --light-blue: #DBEAFE;
    --success-green: #10B981;
    --danger-red: #EF4444;
    --warning-yellow: #F59E0B;
    --white: #FFFFFF;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-600: #4B5563;
    --gray-800: #1F2937;
    --volleyball-orange: #FF8C42;
    --volleyball-white: #FFF5EB;
    --court-blue: #1E40AF;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--court-blue) 50%, var(--primary-blue) 100%);
    min-height: 100vh;
    color: var(--gray-800);
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== ФОН ==================== */
.volleyball-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.20;
    background: url('/pictures/volleyball.jpg') center center / cover no-repeat;
}

/* ==================== ХЕДЕР ==================== */
.header {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #FF8C42 100%);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.header .container.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header .container.header-content>* {
    flex-shrink: 0;
}

.header .nav {
    flex: 1;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* Выравнивание кнопки войти и бэйдж по ширине */
.nav-right .user-badge,
.nav-right .btn-logout,
.btn-login-nav {
    min-width: 80px;
    display: inline-block;
    text-align: center;
}

.logo {
    font-size: 48px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.site-title {
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-contact-nav {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 15px;
}

.btn-contact-nav:hover {
    background: var(--white);
    color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-contact-nav.active {
    background: var(--white);
    color: var(--primary-orange);
    font-weight: 700;
}

.nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-link.active {
    background: var(--white);
    color: var(--primary-orange);
}

.btn-vote-nav {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 15px;
}

.btn-vote-nav:hover {
    background: var(--white);
    color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-vote-nav.active {
    background: var(--white);
    color: var(--primary-orange);
    font-weight: 700;
}

.btn-login-nav {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 15px;
}

.btn-login-nav:hover {
    background: var(--white);
    color: var(--primary-orange);
    transform: translateY(-2px);
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
}

.btn-logout:hover {
    background: var(--white);
    color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.user-badge {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.user-badge:hover {
    background: var(--white);
    color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* ==================== ВЫПАДАЮЩЕЕ МЕНЮ "ЕЩЕ" ==================== */
.nav-more-wrapper {
    position: relative;
}

.btn-more-nav {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-more-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-more-nav.active {
    background: var(--white);
    color: var(--primary-orange);
    font-weight: 700;
}

.btn-more-nav .arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.btn-more-nav.active .arrow {
    transform: rotate(180deg);
}

.nav-more-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 12px;
    padding: 8px;
    min-width: 240px;
    z-index: 100;
    flex-direction: column;
    gap: 2px;
    margin-top: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-more-dropdown.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.nav-more-dropdown .dropdown-item {
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    position: relative;
}

.nav-more-dropdown .dropdown-item .icon {
    font-size: 18px;
    min-width: 24px;
    text-align: center;
}

.nav-more-dropdown .dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary-orange);
    transform: translateX(4px);
}

.nav-more-dropdown .dropdown-item.active {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--volleyball-orange) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.nav-more-dropdown .dropdown-item.active:hover {
    transform: translateX(0);
}

/* ==================== АДАПТИВ ДЛЯ МОБИЛЬНЫХ ==================== */

/* Планшеты и телефоны (до 768px) */
@media (max-width: 768px) {
    /* Основной контент - отступы по бокам */
    .main.container {
        padding: 0 12px;
    }

    .header {
        padding: 12px 0;
    }

    .header .container.header-content {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }

    /* Логотип и заголовок в одной строке */
    .logo {
        font-size: 32px;
    }

    .site-title {
        font-size: 18px;
        margin: 0;
        flex: 1;
    }

    /* Навигация - 2 колонки: Голосовать + Результаты + Еще */
    .nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        width: 100%;
        order: 3;
        align-items: start;
    }

    /* Первые 2 кнопки: Голосовать и Результаты на всю ширину */
    .nav > .btn-vote-nav {
        grid-column: span 1;
        text-align: center;
        padding: 8px 6px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Кнопка "Еще" занимает 2 ячейки (на всю ширину) */
    .nav-more-wrapper {
        grid-column: span 2;
    }

    /* Все кнопки в навигации */
    .btn-contact-nav,
    .btn-vote-nav {
        text-align: center;
        padding: 8px 6px;
        font-size: 12px;
        white-space: nowrap;
    }

    .btn-more-nav {
        width: 100%;
        text-align: center;
        padding: 10px 8px;
        font-size: 13px;
        white-space: nowrap;
        justify-content: center;
    }

    /* Выпадающее меню на мобильном */
    .nav-more-dropdown {
        display: none;
        position: relative;
        top: auto;
        right: auto;
        background: transparent;
        border-radius: 12px;
        padding: 8px;
        min-width: 100%;
        z-index: 100;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 6px;
        margin-top: 8px;
        box-shadow: none;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .nav-more-dropdown.visible {
        display: flex;
    }

    .nav-more-dropdown .dropdown-item {
        padding: 12px 14px;
        font-size: 13px;
        text-align: left;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex: 1 1 100%;
        min-width: 0;
        border-radius: 30px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        margin: 0;
        color: var(--gray-800);
        justify-content: flex-start;
        transform: none;
    }

    .nav-more-dropdown .dropdown-item .icon {
        font-size: 20px;
        min-width: 24px;
        text-align: center;
    }

    .nav-more-dropdown .dropdown-item:not(:last-child)::after {
        display: none;
    }

    .nav-more-dropdown .dropdown-item:hover {
        background: rgba(255, 255, 255, 1);
        color: var(--primary-orange);
        border-color: rgba(255, 255, 255, 0.5);
        transform: translateX(4px);
    }

    .nav-more-dropdown .dropdown-item.active {
        background: linear-gradient(135deg, var(--primary-orange) 0%, var(--volleyball-orange) 100%);
        color: var(--white);
        border-color: var(--primary-orange);
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    }

    .nav-more-dropdown .dropdown-item.active:hover {
        transform: translateX(0);
    }

    /* Блок с пользователем - справа от заголовка */
    .nav-right,
    .btn-login-nav {
        margin-left: auto;
    }

    /* Блок с бейджем и кнопкой выхода */
    .nav-right {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .user-badge {
        font-size: 11px;
        padding: 4px 10px;
        text-align: center;
        min-width: 70px;
    }

    .btn-logout {
        padding: 4px 10px;
        font-size: 11px;
        min-width: 70px;
    }

    /* Кнопка Входа */
    .btn-login-nav {
        padding: 8px 14px;
        font-size: 12px;
        text-align: center;
        white-space: nowrap;
        min-width: 70px;
    }

    /* Маленькие экраны - 1 колонка для кнопок */
    #nav {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #nav .btn-vote-nav {
        font-size: 11px !important;
        padding: 7px 4px !important;
    }
}

/* Маленькие телефоны (до 500px) */
@media (max-width: 500px) {
    .main.container {
        padding: 0 8px;
    }

    .header {
        padding: 10px 0;
    }

    .logo {
        font-size: 28px;
    }

    .site-title {
        font-size: 15px;
    }

    /* Навигация - 2 колонки для компактности */
    .nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    /* Уменьшаем кнопки */
    .btn-contact-nav,
    .btn-vote-nav {
        font-size: 11px;
        padding: 7px 4px;
    }

    .user-badge {
        font-size: 10px;
        padding: 3px 8px;
        min-width: 65px;
    }

    .btn-logout {
        padding: 3px 8px;
        font-size: 10px;
        min-width: 65px;
    }

    .btn-login-nav {
        padding: 7px 12px;
        font-size: 11px;
        min-width: 65px;
    }
}

/* Блок с количеством идущих на волейбол */
.going-count-block {
    text-align: center;
    padding: 15px 0;
    margin: 15px 0;
    border-top: 2px solid var(--gray-200);
    border-bottom: 2px solid var(--gray-200);
}

.going-count-icon {
    font-size: 32px;
    margin-bottom: 5px;
}

.going-count-number {
    font-size: 68px;
    font-weight: 700;
    color: var(--success-green);
    line-height: 1;
    
}

.going-count-label {
    font-size: 14px;
    color: var(--gray-600);
    margin-top: 5px;
}

/* ==================== ОСНОВНОЙ КОНТЕНТ ==================== */
.main {
    padding: 30px 20px;
    position: relative;
    z-index: 5;
    min-height: calc(100vh - 200px);
}

/* ==================== АВТОРИЗАЦИЯ ==================== */
.auth-card {
    background: var(--white);
    max-width: 450px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.auth-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.auth-title {
    color: var(--primary-blue);
    font-size: 28px;
    margin-bottom: 10px;
}

.auth-subtitle {
    color: var(--gray-600);
    margin-bottom: 30px;
}

.auth-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--gray-800);
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.name-fields {
    display: grid;
    gap: 15px;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.auth-buttons button {
    flex: 1;
}

.btn-full {
    width: 100%;
    margin-top: 25px;
}

.auth-register-link {
    text-align: center;
    margin-top: 20px;
}

.auth-register-link a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-register-link a:hover {
    text-decoration: underline;
}

/* ==================== КНОПКИ ==================== */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--volleyball-orange) 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary:disabled {
    background: var(--gray-200);
    color: var(--gray-600);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--court-blue) 100%);
    color: var(--white);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

/* ==================== ГОЛОСОВАНИЕ ==================== */
.vote-card {
    background: var(--white);
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.vote-header {
    text-align: center;
    margin-bottom: 20px;
}

.vote-title {
    color: var(--primary-blue);
    font-size: 26px;
    margin-bottom: 10px;
}

.vote-date {
    color: var(--primary-orange);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.vote-subtitle {
    color: var(--gray-600);
    font-size: 16px;
}

.vote-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.vote-option {
    cursor: pointer;
    padding: 20px;
    border: 3px solid var(--gray-200);
    border-radius: 15px;
    transition: all 0.3s ease;
}

/* Цвета для вариантов голосования */
.vote-option[data-vote="Пойду"] {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.vote-option[data-vote="Пойду"]:hover {
    border-color: rgba(16, 185, 129, 0.6);
    background: rgba(16, 185, 129, 0.1);
}

.vote-option[data-vote="Пойду"].selected {
    border-color: var(--success-green);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.vote-option[data-vote="Не пойду"] {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.vote-option[data-vote="Не пойду"]:hover {
    border-color: rgba(239, 68, 68, 0.6);
    background: rgba(239, 68, 68, 0.1);
}

.vote-option[data-vote="Не пойду"].selected {
    border-color: var(--danger-red);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
}

.vote-option[data-vote="Пока не ясно"] {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.05);
}

.vote-option[data-vote="Пока не ясно"]:hover {
    border-color: rgba(245, 158, 11, 0.6);
    background: rgba(245, 158, 11, 0.1);
}

.vote-option[data-vote="Пока не ясно"].selected {
    border-color: var(--warning-yellow);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
}

.vote-option input[type="radio"] {
    display: none;
}

.vote-option input[type="radio"]:checked+.vote-option-content {
    transform: scale(1.02);
}

.vote-option-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.vote-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-100);
    transition: all 0.3s ease;
}

.vote-option[data-vote="Пойду"].selected .vote-icon {
    background: var(--success-green);
    color: var(--white);
}

.vote-option[data-vote="Не пойду"].selected .vote-icon {
    background: var(--danger-red);
    color: var(--white);
}

.vote-option[data-vote="Пока не ясно"].selected .vote-icon {
    background: var(--warning-yellow);
    color: var(--white);
}

.vote-icon.going {
    color: var(--success-green);
}

.vote-icon.not-going {
    color: var(--danger-red);
}

.vote-icon.unsure {
    color: var(--warning-yellow);
}

.vote-label {
    font-size: 20px;
    font-weight: 600;
}

.btn-vote {
    width: 100%;
    margin-bottom: 15px;
}

.success-message {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 2px solid var(--success-green);
    color: var(--success-green);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 2px solid var(--danger-red);
    color: var(--danger-red);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    margin-top: 15px;
}

.user-info {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid var(--gray-200);
}

.user-name {
    color: var(--gray-600);
    font-size: 14px;
}

/* ==================== РЕЗУЛЬТАТЫ ==================== */
.results-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 25px;
    max-width: 1100px;
    margin: 20px auto;
}

.results-title {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.stats-header .results-title {
    color: var(--primary-blue);
}

.results-details .results-title {
    color: var(--primary-blue);
}

/* Левая колонка — статистика */
.results-stats {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    height: fit-content;
}

.stats-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
}

.stats-header .results-title {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.total-votes {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.total-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-orange);
}

.total-label {
    font-size: 13px;
    color: var(--gray-600);
    margin-top: 4px;
}

.stat-bar-item {
    margin-bottom: 15px;
}

.stat-bar-item:last-child {
    margin-bottom: 0;
}

.stat-bar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.stat-icon {
    font-size: 18px;
    font-weight: 700;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.stat-icon.going {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
}

.stat-icon.not-going {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-red);
}

.stat-icon.unsure {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-yellow);
}

.stat-label {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
}

.stat-count {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
}

/* Правая колонка — детали */
.results-details {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.results-details .results-title {
    color: var(--primary-blue);
    margin-bottom: 18px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.detail-column {
    padding: 12px;
    border-radius: 12px;
    background: var(--gray-100);
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.detail-icon {
    font-size: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
}

.detail-column.going .detail-icon {
    background: var(--success-green);
    color: white;
}

.detail-column.not-going .detail-icon {
    background: var(--danger-red);
    color: white;
}

.detail-column.unsure .detail-icon {
    background: var(--warning-yellow);
    color: white;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-voter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: var(--white);
    border-radius: 6px;
    font-size: 13px;
}

.detail-voter-initials {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.detail-column.going .detail-voter-initials {
    background: var(--success-green);
}

.detail-column.not-going .detail-voter-initials {
    background: var(--danger-red);
}

.detail-column.unsure .detail-voter-initials {
    background: var(--warning-yellow);
}

.detail-voter-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== ПРОГРЕСС-БАРЫ ==================== */
.stats-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.progress-bar {
    height: 25px;
    background: var(--gray-100);
    border-radius: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.5s ease;
}

.progress-fill.going {
    background: linear-gradient(90deg, var(--success-green), #34D399);
}

.progress-fill.not-going {
    background: linear-gradient(90deg, var(--danger-red), #F87171);
}

.progress-fill.unsure {
    background: linear-gradient(90deg, var(--warning-yellow), #FBBF24);
}

/* Адаптивность для результатов */
@media (max-width: 900px) {
    .results-container {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}

/* Маленькие экраны — компактнее */
@media (max-width: 500px) {
    .results-stats,
    .results-details {
        padding: 15px 12px;
    }

    .results-title {
        font-size: 20px;
    }

    .total-number {
        font-size: 36px;
    }

    .detail-voter {
        font-size: 12px;
    }

    .btn-copy,
    .btn-xls {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* ==================== ФУТЕР ==================== */
.footer {
    background: var(--gray-800);
    padding: 20px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 10;
}

/* ==================== СТРАНИЦА РЕЙТИНГА ПОСЕЩЕНИЙ ==================== */
.attendance-container {
    max-width: 1000px;
    margin: 40px auto;
}

.attendance-header {
    text-align: center;
    margin-bottom: 30px;
}

.attendance-title {
    color: var(--white);
    font-size: 32px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.attendance-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.attendance-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 20px 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 150px;
}

.stat-card-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-orange);
    line-height: 1;
}

.stat-card-label {
    font-size: 14px;
    color: var(--gray-600);
    margin-top: 5px;
}

.attendance-table-wrapper {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow-x: auto;
}

.attendance-table {
    width: 100%;
    border-collapse: collapse;
}

.attendance-table thead {
    background: var(--gray-100);
}

.attendance-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-800);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.attendance-table td {
    padding: 15px;
    border-top: 1px solid var(--gray-200);
}

.attendance-table tbody tr {
    transition: background 0.2s ease;
}

.attendance-table tbody tr:hover {
    background: var(--gray-100);
}

/* Стили для позиций */
.position-cell {
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    width: 80px;
}

.position-number {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    border-radius: 50%;
    background: var(--gray-200);
    text-align: center;
}

.position-gold .position-number {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.position-silver .position-number {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: white;
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.4);
}

.position-bronze .position-number {
    background: linear-gradient(135deg, #CD7F32, #B8860B);
    color: white;
    box-shadow: 0 4px 12px rgba(205, 127, 50, 0.4);
}

/* Ячейка пользователя */
.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-orange), var(--volleyball-orange));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.user-name {
    font-weight: 600;
    color: var(--gray-800);
}

/* Ячейка количества */
.count-cell {
    text-align: center;
    width: 120px;
}

.count-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--success-green), #34D399);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
}

/* Ячейка недель */
.weeks-cell {
    max-width: 300px;
}

.week-tag {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.week-more {
    display: inline-block;
    background: var(--primary-orange);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.no-weeks {
    color: var(--gray-600);
    font-style: italic;
}

.no-attendance-message {
    background: var(--white);
    padding: 60px 40px;
    border-radius: 15px;
    text-align: center;
    font-size: 20px;
    color: var(--gray-600);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Адаптивность для рейтинга */
@media (max-width: 768px) {
    .attendance-stats {
        flex-direction: column;
        align-items: center;
    }

    .attendance-table th,
    .attendance-table td {
        padding: 10px;
        font-size: 13px;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .weeks-cell {
        display: none;
    }
}

/* ==================== СТРАНИЦА АДМИНИСТРАТОРА ==================== */
.admin-container {
    max-width: 1100px;
    margin: 40px auto;
}

.admin-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-title {
    color: var(--white);
    font-size: 32px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.admin-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.admin-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.users-table-wrapper {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table thead {
    background: var(--gray-100);
}

.users-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-800);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-table td {
    padding: 0;
    border-top: 1px solid var(--gray-200);
    vertical-align: middle;
}

.users-table td>* {
    padding: 20px 15px;
}

.users-table tbody tr {
    transition: background 0.2s ease;
}

/* Force vertical centering for all table cells */
.users-table tbody tr td {
    vertical-align: middle !important;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 15px;
}

.user-cell .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-orange), var(--volleyball-orange));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.user-cell .user-name {
    font-weight: 600;
    color: var(--gray-800);
}

.current-badge {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.email-cell {
    color: var(--gray-600);
    font-size: 13px;
}

.date-cell {
    color: var(--gray-600);
    font-size: 13px;
}

.role-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.role-badge.admin {
    background: linear-gradient(135deg, var(--warning-yellow), #FBBF24);
    color: white;
}

.role-badge.user {
    background: var(--gray-200);
    color: var(--gray-600);
}

.actions-cell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.btn-action {
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    width: 100%;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-edit {
    background: linear-gradient(135deg, var(--secondary-blue), #60A5FA);
    color: white;
}

.btn-password {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    color: white;
}

.btn-role.btn-promote {
    background: linear-gradient(135deg, var(--success-green), #34D399);
    color: white;
}

.btn-role.btn-demote {
    background: linear-gradient(135deg, var(--warning-yellow), #FBBF24);
    color: white;
}

.btn-reset-pwd {
    background: linear-gradient(135deg, #6366F1, #818CF8);
    color: white;
}

.btn-reset-pwd:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-reset-pwd-active {
    background: linear-gradient(135deg, #F59E0B, #FBBF24) !important;
}

.btn-reset-pwd-active:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4) !important;
}

.password-reset-badge {
    background: var(--warning-yellow);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.row-password-reset {
    background: rgba(245, 158, 11, 0.05);
}

.btn-delete {
    background: linear-gradient(135deg, var(--danger-red), #F87171);
    color: white;
}

.no-actions {
    color: var(--gray-600);
    font-style: italic;
    font-size: 13px;
}

.no-users-message {
    background: var(--white);
    padding: 60px 40px;
    border-radius: 15px;
    text-align: center;
    font-size: 20px;
    color: var(--gray-600);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ==================== БЛОК СМЕНЫ НЕДЕЛИ ==================== */
.admin-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
    margin-bottom: 25px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.admin-actions .action-hint {
    font-size: 13px;
    color: var(--gray-600);
    font-style: italic;
}

.admin-actions .btn-danger {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-actions .btn-danger:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.week-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 2px solid var(--success-green);
    color: var(--success-green);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease;
}

/* ==================== КНОПКА ЭКСПОРТА XLS ==================== */
.btn-copy {
    padding: 8px 16px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-copy:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-copy:active {
    transform: translateY(0);
}

.btn-copy:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-xls {
    background: linear-gradient(135deg, #217346, #33a06f);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-xls:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(33, 115, 70, 0.4);
}

.btn-xls:active {
    transform: translateY(0);
}

.btn-xls:disabled {
    background: var(--gray-200);
    color: var(--gray-600);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==================== МОДАЛЬНЫЕ ОКНА ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay[style*="display: flex"] {
    display: flex !important;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.modal-content-wide {
    max-width: 550px;
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.modal-title {
    color: var(--primary-blue);
    font-size: 22px;
    margin-bottom: 10px;
}

.modal-subtitle {
    color: var(--gray-600);
    margin-bottom: 20px;
    font-size: 15px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-red), #F87171);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Адаптивность для админки */
@media (max-width: 900px) {
    .admin-stats {
        flex-direction: column;
        align-items: center;
    }

    .users-table th,
    .users-table td {
        padding: 10px;
        font-size: 13px;
    }

    .user-cell .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .actions-cell {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
    }
}

/* ==================== СТРАНИЦА КОНТАКТОВ ==================== */
.contacts-container {
    max-width: 1000px;
    margin: 40px auto;
}

.contacts-header {
    text-align: center;
    margin-bottom: 40px;
}

.contacts-title {
    color: var(--white);
    font-size: 32px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.contacts-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.contact-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.contact-label {
    color: var(--gray-600);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.contact-value {
    color: var(--primary-blue);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.contact-value:hover {
    color: var(--primary-orange);
}

.contact-map {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.contact-website {
    text-align: center;
}

.btn-website {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary-orange), var(--volleyball-orange));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-website:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.5);
}

/* Адаптивность для контактов */
@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .contacts-title {
        font-size: 26px;
    }

    .contact-icon {
        font-size: 36px;
    }

    .contact-value {
        font-size: 16px;
    }
}

/* ==================== СТРАНИЦА ПРЕДЛОЖЕНИЙ ==================== */
.proposals-container {
    max-width: 900px;
    margin: 40px auto;
}

.proposals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.proposals-title {
    color: var(--white);
    font-size: 28px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-new-proposal {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-orange), var(--volleyball-orange));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-new-proposal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Фильтры */
.proposals-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid transparent;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.filter-btn.active {
    background: var(--white);
    color: var(--primary-orange);
    border-color: var(--white);
}

.sort-wrapper {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.sort-select {
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 13px;
    cursor: pointer;
}

.sort-select option {
    background: var(--gray-800);
    color: var(--white);
}

/* Список предложений */
.proposals-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.proposal-item {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.proposal-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.proposal-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
}

.proposal-item-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.proposal-item-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.proposal-item-title:hover {
    color: var(--primary-orange);
}

.proposal-status-badge-small {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.btn-vote-proposal {
    padding: 6px 14px;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-vote-proposal:hover {
    background: var(--light-blue);
    border-color: var(--secondary-blue);
}

.btn-vote-proposal.voted {
    background: var(--success-green);
    color: white;
    border-color: var(--success-green);
}

.btn-disvote-proposal {
    padding: 6px 14px;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-left: 6px;
}

.btn-disvote-proposal:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger-red);
}

.btn-disvote-proposal.disvoted {
    background: var(--danger-red);
    color: white;
    border-color: var(--danger-red);
}

.proposal-votes-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.btn-delete-proposal-item {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.08);
    border: 2px solid rgba(239, 68, 68, 0.18);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete-proposal-item:hover {
    background: var(--danger-red);
    border-color: var(--danger-red);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-edit-proposal-item {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.08);
    border: 2px solid rgba(245, 158, 11, 0.18);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit-proposal-item:hover {
    background: var(--warning-yellow);
    border-color: var(--warning-yellow);
    color: var(--white);
    transform: translateY(-2px);
}

.proposal-item-description {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.proposal-item-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--gray-600);
}

.proposal-item-author {
    font-weight: 600;
}

.proposal-item-comments {
    margin-left: auto;
}

.no-proposals-message {
    background: var(--white);
    padding: 60px 40px;
    border-radius: 15px;
    text-align: center;
    font-size: 20px;
    color: var(--gray-600);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Текстовое поле в модалке */
.modal-content textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.modal-content textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* ==================== СТРАНИЦА ОБСУЖДЕНИЯ ПРЕДЛОЖЕНИЯ ==================== */
.proposal-container {
    max-width: 800px;
    margin: 30px auto;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.25);
}

.proposal-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
}

.proposal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-200);
}

.proposal-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.proposal-author {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 16px;
}

.proposal-date {
    color: var(--gray-600);
    font-size: 13px;
}

.proposal-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-status {
    padding: 8px 12px;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-status.active-status {
    border-color: var(--primary-orange);
    background: rgba(255, 107, 53, 0.1);
}

.btn-delete-proposal {
    padding: 8px 12px;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete-proposal:hover {
    background: var(--danger-red);
    border-color: var(--danger-red);
    transform: translateY(-2px);
}

.proposal-title {
    color: var(--primary-blue);
    font-size: 24px;
    margin-bottom: 15px;
}

.proposal-description {
    color: var(--gray-600);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    white-space: pre-wrap;
}

.proposal-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--gray-200);
}

.proposal-votes {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-vote-proposal-page,
.btn-disvote-proposal-page {
    padding: 8px 16px;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-vote-proposal-page:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success-green);
}

.btn-vote-proposal-page.voted {
    background: var(--success-green);
    color: white;
    border-color: var(--success-green);
}

.btn-disvote-proposal-page:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger-red);
}

.btn-disvote-proposal-page.disvoted {
    background: var(--danger-red);
    color: white;
    border-color: var(--danger-red);
}

.proposal-status-badge {
    padding: 6px 16px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 700;
}

/* Секция комментариев */
.comments-section {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.comments-title {
    color: var(--primary-blue);
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.comment-item {
    padding: 15px;
    background: var(--gray-100);
    border-radius: 12px;
    position: relative;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 14px;
}

.comment-date {
    color: var(--gray-600);
    font-size: 12px;
}

.btn-delete-comment {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--gray-600);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-delete-comment:hover {
    background: var(--danger-red);
    color: white;
}

.btn-edit-comment {
    position: absolute;
    top: 10px;
    right: 40px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-edit-comment:hover {
    background: var(--warning-yellow);
    color: white;
}

.comment-edit-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--secondary-blue);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    margin-top: 8px;
}

.comment-edit-textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.btn-save-comment {
    display: inline-block;
    padding: 8px 18px;
    background: var(--success-green);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.btn-save-comment:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-cancel-edit-comment {
    display: inline-block;
    padding: 8px 18px;
    background: var(--gray-200);
    color: var(--gray-600);
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn-cancel-edit-comment:hover {
    background: var(--gray-300);
    color: var(--gray-800);
}

.comment-text {
    color: var(--gray-800);
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.no-comments-message {
    text-align: center;
    padding: 30px;
    color: var(--gray-600);
    font-size: 16px;
}

/* Форма комментария */
.comment-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    padding-top: 15px;
    border-top: 2px solid var(--gray-200);
}

.comment-form textarea {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    transition: all 0.3s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.btn-send-comment {
    padding: 12px 24px;
    white-space: nowrap;
}

/* Адаптивность для предложений */
@media (max-width: 768px) {
    .proposals-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .btn-new-proposal {
        width: 100%;
        text-align: center;
    }

    .proposals-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        text-align: center;
    }

    .sort-wrapper {
        margin-left: 0;
        justify-content: center;
    }

    .proposal-item-header {
        flex-direction: column;
        gap: 10px;
    }

    .proposal-item-footer {
        flex-wrap: wrap;
        gap: 8px;
    }

    .proposal-item-comments {
        margin-left: 0;
    }

    /* Обсуждение — мобильная версия */
    .proposal-header {
        flex-direction: column;
        gap: 15px;
    }

    .proposal-actions {
        flex-wrap: wrap;
    }

    .proposal-title {
        font-size: 20px;
    }

    .comment-form {
        flex-direction: column;
    }

    .btn-send-comment {
        width: 100%;
        text-align: center;
    }
}

/* ==================== ПРОФИЛЬ ЛИЧНЫЙ ==================== */
.profile-container {
    max-width: 800px;
    margin: 40px auto;
}

.profile-header {
    margin-bottom: 25px;
}

.profile-title {
    color: var(--white);
    font-size: 32px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.profile-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.profile-info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.profile-info-row:last-child {
    border-bottom: none;
}

.profile-info-label {
    font-weight: 600;
    color: var(--gray-600);
    width: 180px;
    flex-shrink: 0;
}

.profile-info-value {
    color: var(--gray-800);
    font-size: 16px;
}

.profile-section-title {
    color: var(--primary-blue);
    font-size: 20px;
    margin-bottom: 20px;
}

.profile-divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 25px 0;
}

.car-capacity-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.capacity-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
}

.capacity-control {
    display: flex;
    align-items: center;
    gap: 20px;
}

.capacity-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-orange);
    width: 50px;
    text-align: center;
}

.capacity-control input[type="range"] {
    flex: 1;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    touch-action: pan-y;   /* 🔑 FIX: разрешает вертикальный скролл, оставляет горизонтальный свайп */
}

.capacity-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    background: var(--white);
    border: 3px solid var(--primary-orange);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.2s;
}

.capacity-control input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}

.capacity-control input[type="range"]::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: var(--white);
    border: 3px solid var(--primary-orange);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.2s;
}

.capacity-control input[type="range"]::-moz-range-thumb:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}

.capacity-hint {
    font-size: 13px;
    color: var(--gray-600);
    margin-top: 5px;
}

.driver-selection-title {
    color: var(--primary-blue);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.drivers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.driver-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.driver-option:hover {
    border-color: var(--secondary-blue);
}

.driver-option.selected {
    border-color: var(--success-green);
    background: rgba(16, 185, 129, 0.05);
}

.driver-option-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.driver-name {
    font-weight: 600;
    color: var(--gray-800);
}

.driver-slots {
    font-size: 13px;
    color: var(--gray-600);
}

.btn-choose-driver {
    padding: 8px 20px;
    background: var(--success-green);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-choose-driver:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.driver-option.selected .btn-choose-driver {
    background: #059669;
    cursor: default;
}

.no-drivers-message {
    text-align: center;
    padding: 30px;
    color: var(--gray-600);
    font-size: 16px;
}

.btn-not-go {
    display: inline-block;
    padding: 10px 24px;
    background: var(--danger-red);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    width: 100%;
    text-align: center;
}

.btn-not-go:hover {
    background: #DC2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.current-driver-badge {
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.03));
    border: 2px solid var(--secondary-blue);
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 15px;
    color: var(--gray-800);
    text-align: center;
}

/* ==================== БЛОК ПАССАЖИРОВ ==================== */
.passengers-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.passengers-title {
    color: var(--primary-blue);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.passengers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.passenger-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: var(--gray-100);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.passenger-item:hover {
    background: rgba(16, 185, 129, 0.08);
}

.passenger-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success-green), #34D399);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.passenger-name {
    font-weight: 500;
    color: var(--gray-800);
    font-size: 14px;
}

.no-passengers-message {
    text-align: center;
    padding: 20px;
    color: var(--gray-600);
    font-size: 14px;
    font-style: italic;
}

/* Бейджи карпула на странице результатов */
.detail-voter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.carpool-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-left: auto;
    cursor: default;
    transition: all 0.2s ease;
    line-height: 1.3;
    flex-shrink: 0;
    position: relative;
}

.carpool-badge:hover {
    transform: scale(1.05);
}

/* Кастомная подсказка для мобильных устройств */
.carpool-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: #1E3A8A;
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: normal;
    line-height: 1.5;
    white-space: pre-line;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    max-width: 280px;
    display: none;
    pointer-events: none;
}

.carpool-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 12px;
    border: 8px solid transparent;
    border-top-color: #1E3A8A;
}

.carpool-tooltip.active {
    display: block;
    animation: tooltipFadeIn 0.2s ease;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .carpool-badge {
        padding: 3px 8px;
        font-size: 11px;
    }

    .carpool-tooltip {
        right: -10px;
        left: unset;
        max-width: 260px;
        font-size: 12px;
    }
}

/* Адаптив профиля */
@media (max-width: 768px) {
    .profile-title {
        font-size: 24px;
    }

    .profile-card {
        padding: 20px;
    }

    .profile-info-label {
        width: 140px;
        font-size: 14px;
    }

    .capacity-value {
        font-size: 24px;
        width: 40px;
    }

    .capacity-control {
        gap: 10px;
    }

    .carpool-badge {
        padding: 3px 8px;
        font-size: 11px;
    }
}
/* ==================== БЛОК ПРАВИЛ НА СТРАНИЦЕ КОНТАКТОВ ==================== */
.rules-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600" opacity="0.15"><path fill="%23FF8C42" d="M0,0 L800,0 L800,600 L0,600 Z" /><circle cx="100" cy="100" r="80" fill="%23FFD700" opacity="0.3"/><circle cx="650" cy="450" r="120" fill="%23FFA500" opacity="0.2"/><circle cx="400" cy="300" r="200" fill="%23FF6B35" opacity="0.08"/><path d="M0,500 Q200,450 400,500 T800,480" stroke="%23FF8C42" stroke-width="3" fill="none" opacity="0.3"/><path d="M0,550 Q250,520 500,550 T800,540" stroke="%23FFD700" stroke-width="2" fill="none" opacity="0.2"/></svg>');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.rules-section::before {
    content: '🏐';
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 180px;
    opacity: 0.08;
    pointer-events: none;
    transform: rotate(-15deg);
}

.rules-section::after {
    content: '🌊';
    position: absolute;
    top: -30px;
    left: -30px;
    font-size: 150px;
    opacity: 0.08;
    pointer-events: none;
    transform: rotate(10deg);
}

.rules-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
    position: relative;
    z-index: 1;
}

.rules-icon {
    font-size: 52px;
    margin-bottom: 10px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.rules-title {
    color: var(--primary-blue);
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #1E3A8A, #FF6B35);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rules-subtitle {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.4;
}

.rules-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn-rules-download,
.btn-rules-view {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.btn-rules-download::before,
.btn-rules-view::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.btn-rules-download:hover::before,
.btn-rules-view:hover::before {
    width: 200px;
    height: 200px;
}

.btn-rules-download {
    background: linear-gradient(135deg, #1E3A8A, #3B82F6);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.btn-rules-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
    background: linear-gradient(135deg, #2563EB, #60A5FA);
}

.btn-rules-view {
    background: linear-gradient(135deg, #FF6B35, #FF8C42);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-rules-view:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #FF8C42, #FFA559);
}

.rules-note {
    margin-top: 20px;
    font-size: 12px;
    color: var(--gray-600);
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Адаптивность */
@media (max-width: 768px) {
    .rules-section {
        padding: 20px;
    }

    .rules-title {
        font-size: 20px;
    }

    .rules-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn-rules-download,
    .btn-rules-view {
        padding: 12px 20px;
        font-size: 14px;
        justify-content: center;
        width: 100%;
    }

    .rules-section::before {
        font-size: 120px;
        bottom: -15px;
        right: -15px;
    }

    .rules-section::after {
        font-size: 100px;
    }
}

@media (max-width: 500px) {
    .rules-section {
        padding: 15px;
        margin: 20px 0;
    }

    .rules-title {
        font-size: 18px;
    }

    .rules-subtitle {
        font-size: 12px;
    }
}

