/* ========== БАЗОВЫЕ НАСТРОЙКИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #faf7f2;
    --panel-bg: rgba(255, 255, 255, 0.9);
    --accent: #e8a598;
    --accent-hover: #d48b7d;
    --text: #4a4a4a;
    --text-light: #a09b96;
    --border: rgba(0,0,0,0.05);
    --blur: blur(14px);
    --radius: 24px;
    --font: 'Nunito', sans-serif;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* ========== ШАПКА ========== */
.header {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 2rem;
    background: transparent;
    position: relative;
    z-index: 10;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}
.logo-link {
    text-decoration: none;
    color: inherit;
}
.admin-nav {
    position: absolute;
    right: 2rem;
    display: flex;
    gap: 1.5rem;
}
.admin-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    transition: color 0.2s;
}
.admin-nav a:hover {
    color: var(--accent);
}

/* ========== КОНТЕЙНЕР КОЛЕСА ========== */
.wheel-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}
.wheel-wrapper {
    position: relative;
    width: 500px;
    height: 500px;
}

#wheelCanvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 30px 15px rgba(232, 165, 152, 0.15);
}
.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 24px solid var(--accent);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    z-index: 5;
}
.wheel-center-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(232, 165, 152, 0.5);
    transition: background 0.3s, box-shadow 0.3s;
    animation: pulse 2s infinite;
    z-index: 6;
}
.wheel-center-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(212, 139, 125, 0.6);
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(232, 165, 152, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(232, 165, 152, 0); }
    100% { box-shadow: 0 0 0 0 rgba(232, 165, 152, 0); }
}

.wheel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 10;
    display: none;
    pointer-events: none;
}
.wheel-overlay.visible {
    display: block;
}

/* ========== ВТОРОЕ КОЛЕСО ========== */
.wheel2-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    display: none;
    z-index: 15;
}
.wheel2-container.visible {
    display: block;
}
#wheel2Canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
.wheel2-pointer {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 18px solid var(--accent);
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.1));
    z-index: 16;
}
.wheel2-center-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(232, 165, 152, 0.5);
    transition: background 0.3s;
    animation: pulse 2s infinite;
    z-index: 17;
}
.wheel2-center-btn:hover {
    background: var(--accent-hover);
}

/* ========== ОВЕРЛЕЙ-ПАНЕЛЬ ========== */
.overlay-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 360px;
    max-width: 90%;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    padding: 2rem;
    z-index: 20;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.overlay-panel.visible {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}
.overlay-panel.slide-in {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
    animation: slideUp 0.4s ease;
}
@keyframes slideUp {
    from { transform: translate(-50%, -50%) translateY(20px); opacity: 0; }
    to { transform: translate(-50%, -50%) translateY(0); opacity: 1; }
}
.panel-stage {
    text-align: center;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}
.info-logo {
    display: block;
    margin: 0 auto 1.2rem;
    width: 120px;
    height: 120px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}
#infoName {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
#infoCampaign {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.5;
}

.panel-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}
.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary:hover {
    background: var(--accent-hover);
}
.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.btn-outline:hover {
    background: var(--accent);
    color: white;
}
.full-width {
    width: 100%;
    margin-top: 0.8rem;
}
input, .custom-amount {
    width: 100%;
    padding: 0.8rem 1rem;
    margin: 0.5rem 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    background: white;
}
.quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}
.quick-amount-btn {
    padding: 0.5rem 1.2rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    transition: 0.2s;
}
.quick-amount-btn.active, .quick-amount-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}
.min-donation-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0.3rem 0 0.5rem;
}
.cert-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
}
.cert-details {
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 1rem 0;
    color: var(--text);
}

/* ========== ФУТЕР ========== */
.footer {
    width: 100%;
    max-width: 1200px;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid var(--border);
}
.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--accent);
}
.footer-copy {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* ========== КАБИНЕТ ФОНДА ========== */
.admin-content {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    flex: 1;
}
.admin-content h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--text);
}

.cabinet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
@media (max-width: 768px) {
    .cabinet-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s;
}
.card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.card h2 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-summary {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
}
.stat-item {
    text-align: center;
}
.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.2rem;
}
.chart-container {
    position: relative;
    height: 250px;
    width: 100%;
}

.deeds-list {
    list-style: none;
    margin: 1rem 0;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}
.deeds-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    background: var(--bg);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    font-weight: 600;
    transition: background 0.2s;
}
.deeds-list li:hover {
    background: #f1eae5;
}
.deed-delete {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}
.deed-delete:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}
.add-deed-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.add-deed-form input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
}
.add-deed-form button {
    padding: 0.6rem 1.4rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.add-deed-form button:hover {
    background: var(--accent-hover);
}

.settings-form label {
    font-weight: 600;
    margin-top: 1rem;
    display: block;
    margin-bottom: 0.3rem;
}
.settings-form input, .settings-form textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.settings-form textarea {
    resize: vertical;
    min-height: 60px;
}
.logo-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}
.logo-upload img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.logo-upload input[type="file"] {
    border: none;
    padding: 0;
}
.logo-upload button {
    padding: 0.6rem 1.4rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.logo-upload button:hover {
    background: var(--accent-hover);
}

/* ========== БЛОК ЗАГРУЗКИ ОФЕРТЫ ========== */
.offer-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}
.offer-upload p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text);
    flex-basis: 100%;
}
.offer-upload input[type="file"] {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
}
.offer-upload input[type="file"]::file-selector-button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 0.5rem;
    transition: background 0.2s;
}
.offer-upload input[type="file"]::file-selector-button:hover {
    background: var(--accent-hover);
}
.offer-upload button {
    padding: 0.6rem 1.4rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.offer-upload button:hover {
    background: var(--accent-hover);
}
.offer-upload a {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
}

/* ========== КОНТЕЙНЕР КНОПОК ВЫГРУЗКИ ========== */
.download-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* ========== СТИЛИ ДЛЯ ЧЕКБОКСОВ В ФОРМЕ ПОЖЕРТВОВАНИЯ ========== */
.checkbox-container {
    margin: 1rem 0;
    text-align: left;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.4;
}

/* Кастомный чекбокс */
.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

/* Галочка — чёткая, пропорциональная */
.checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label .checkbox-text {
    user-select: none;
}

.checkbox-link {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s;
}

.checkbox-link:hover {
    color: var(--accent-hover);
}

/* Предупреждение о необходимости согласия */
.checkbox-warning {
    color: #d48b7d;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
    text-align: center;
}
.checkbox-warning.visible {
    display: block;
}

/* ========== АДМИНКА ========== */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.admin-tab {
    padding: 0.7rem 1.8rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text);
}
.admin-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}
.admin-panel-section {
    display: none;
}
.admin-panel-section.active {
    display: block;
}

.foundations-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}
.foundation-card {
    background: white;
    border-radius: 20px;
    padding: 1.8rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}
.foundation-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}
.foundation-card h3 {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.foundation-card .stats {
    display: flex;
    justify-content: space-between;
    margin: 0.8rem 0;
    font-size: 0.9rem;
}
.foundation-card .badge {
    background: var(--accent);
    color: white;
    padding: 0.2rem 0.7rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}
.foundation-card .actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.foundation-card button {
    padding: 0.4rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.2s;
}
.foundation-card button:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 100;
}
.modal.show {
    display: flex;
}
.modal-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
}
.modal-close {
    position: absolute;
    top: 1rem; right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}
.modal-card h2 {
    margin-bottom: 1.5rem;
}
.modal-card .form-row {
    margin-bottom: 1rem;
}
.modal-card label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.modal-card input, .modal-card textarea {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
}
.modal-card .deeds-block {
    margin-top: 1rem;
}
.tariff-section {
    margin-top: 2rem;
}

/* ========== АДМИНКА – ШИРОКИЙ КОНТЕНТ ========== */
body.admin-body .admin-content {
    max-width: 1400px;
    width: 100%;
    padding: 2rem;
}

.filter-bar {
    background: white;
    border-radius: 20px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.filter-label {
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}
.filter-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    color: var(--text);
}
.filter-checkbox input[type="checkbox"] {
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}
.btn-sm {
    padding: 0.5rem 1.4rem;
    font-size: 0.9rem;
    border-radius: 12px;
}

.chart-container-wide {
    width: 100%;
    height: 400px;
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.form-select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    background: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a4a4a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    cursor: pointer;
}

/* ========== ПОЛЕ ПАРОЛЯ И КОПИРОВАНИЕ ========== */
.password-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-field-wrapper input {
    padding-right: 2.5rem;
}
.password-toggle {
    position: absolute;
    right: 0.8rem;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1.1rem;
    transition: color 0.2s;
}
.password-toggle:hover {
    color: var(--accent);
}

.btn-generate {
    margin-top: 0.5rem;
    background: none;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 12px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}
.btn-generate:hover {
    background: var(--accent);
    color: white;
}

.input-with-copy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.input-with-copy input {
    flex: 1;
}
.copy-btn {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s;
}
.copy-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ========== УВЕДОМЛЕНИЯ О ДОНАТАХ ========== */
.notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
}
.notification-toast {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    max-width: 380px;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease;
    pointer-events: all;
}
.notification-toast.show {
    opacity: 1;
    transform: translateX(0);
}
.toast-icon {
    font-size: 1.8rem;
    color: var(--accent);
}
.toast-body {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.4;
}
.toast-body small {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* ========== ПРАВОВЫЕ СТРАНИЦЫ ========== */
.static-page {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    color: var(--text);
}
.static-page h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text);
}
.static-page h2 {
    font-size: 1.4rem;
    margin: 1.5rem 0 0.8rem;
    font-weight: 700;
}
.static-page p, .static-page ul {
    margin-bottom: 1rem;
}
.static-page ul {
    padding-left: 1.5rem;
}
.static-page a {
    color: var(--accent);
    text-decoration: none;
}
.static-page a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 600px) {
    .wheel-wrapper {
        width: 320px;
        height: 320px;
    }
    .wheel-center-btn {
        width: 85px;
        height: 85px;
        font-size: 1rem;
    }
    .wheel2-container {
        width: 240px;
        height: 240px;
    }
    .wheel2-center-btn {
        width: 60px;
        height: 60px;
        font-size: 0.8rem;
    }
    .info-logo {
        width: 90px;
        height: 90px;
    }
    /* Шапка на мобильных: вертикально */
    .header {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem;
    }
    .admin-nav {
        position: static;
        gap: 1rem;
    }

    /* Адаптация кабинета фонда для мобильных */
    .admin-content {
        padding: 1rem;
    }
    .admin-content h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .card {
        padding: 1.2rem;
    }
    .card h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    .stats-summary {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .stat-value {
        font-size: 1.4rem;
    }
    .chart-container {
        height: 200px;
    }
    .add-deed-form {
        flex-direction: column;
    }
    .add-deed-form button {
        width: 100%;
        margin-top: 0.3rem;
    }
    .logo-upload {
        flex-direction: column;
        align-items: flex-start;
    }
    .logo-upload button {
        width: 100%;
    }
    .btn-sm {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
    }
    .download-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}