/* CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rosatom', 'Nexa', 'Roboto', sans-serif !important;
}

body {
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
    transition: all 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Главный контнт с SVG  */
.main-content {
    background: linear-gradient(180deg, #259789 0%, #6CACE4 100%);
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.main-content::before {
    display: none;
}

/* SVG линия на фоне сайта */
.background-line {
    position: absolute;
    top: -200px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.svg-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero,
.how-it-works,
.search-section,
.projects-section,
.news-section {
    position: relative;
    z-index: 1;
}

/* Первая секция */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 180px;
    padding-bottom: 64px;
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    gap: 48px;
    text-align: center; 
}

.hero-content {
    text-align: center;
    max-width: 900px; 
    margin: 0 auto; 
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    line-height: 1.1;
    font-family: 'Nexa', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 21px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Хедер */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #259789;
    padding: 16px 0;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img,
.logo-icon img {
    width: 150px;      
    height: 40px;      
    object-fit: contain;
}

.logo-text {
    color: white;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Nexa', sans-serif;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-grow: 1; 
}

.nav-link {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-family: 'Nexa', sans-serif;
    font-size: 20px;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0;
    margin: 0;
}

.nav-link:hover {
    color: #22d3ee;
}

.nav-link:active {
    color: #2c5f9e;
}

/* Кнопка доступности в хедере */
.accessibility-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.accessibility-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.05);
}

.btn-register {
    padding: 10px 24px;
    background: linear-gradient(90deg, #025EA1 0%, #025EA1 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Nexa', sans-serif;
    font-size: 21px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-register:hover::before {
    left: 100%;
}

.btn-login {
    padding: 10px 24px;
    background: linear-gradient(90deg, #025EA1 0%, #025EA1 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Nexa', sans-serif;
    font-size: 21px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

/* Стили для информации о пользователе в хедере */
.user-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    color: white;
    font-family: 'Nexa', sans-serif;
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Стили для кнопки профиля */
.user-profile-btn {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.user-profile-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: white;
}

.user-profile-btn:active {
    transform: scale(0.95);
}

/* Кнопка Админ панель */
.nav .admin-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-family: 'Nexa', sans-serif;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0;
    margin: 0;
    transition: color 0.3s ease;
    position: relative;
    z-index: 10;
}

.nav .admin-btn:hover {
    color: #ff4757;
    transform: scale(1.05);
}

/* Кнопка активна */
.nav .admin-btn:active {
    transform: scale(0.95);
}

/* Футер */
.footer {
    background: #6DB0E1;
    padding: 48px 0 14px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.footer-column {
    color: white;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Nexa', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 16px;
    color: #fff;
}

.footer-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    text-align: left;
    padding: 0;
    cursor: pointer;
    display: block;
    width: 100%;
    line-height: 1.4;
}

.footer-link:hover {
    color: #fff;
    transform: translateX(5px);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 10px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    flex: 1;
}

.footer-image {
    max-width: 70px; 
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-image:hover {
    opacity: 1;
}

.footer-accessibility-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    margin-top: 8px;
}

.footer-accessibility-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}

/* Основные кнопки */
.btn-primary {
    padding: 12px 48px;
    background: linear-gradient(90deg, #025EA1 0%, #025EA1 100%);
    color: white;
    border: none;
    border-radius: 9999px;
    font-size: 40px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Nexa', sans-serif;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-text {
    background: none;
    border: none;
    color: white;
    font-weight: 500;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Nexa', sans-serif;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-text:hover {
    color: #22d3ee;
}

.btn-text:active {
    color: #2c5f9e;
}

.btn-help {
    padding: 8px 24px;
    background: linear-gradient(90deg, #025EA1 0%, #025EA1 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Nexa', sans-serif;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    min-width: 100px;
}

.btn-help::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-help:hover::before {
    left: 100%;
}

.btn-help:disabled {
    background: #64748b !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Кнопки пагинации */
.pagination-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.prev-btn, .next-btn {
    background: none;
    border: none;
    color: white;
    font-weight: 500;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Nexa', sans-serif;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
}

.prev-btn:hover, .next-btn:hover {
    color: #22d3ee;
    border-color: #22d3ee;
}

.prev-btn:active, .next-btn:active {
    color: #2c5f9e;
}

.prev-btn:disabled, .next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Кнопка после подачи данных на регистрацию НКО */
.disabled-nko {
    background-color: #9ca3af !important; 
    cursor: not-allowed !important;
    opacity: 0.7;
    pointer-events: none;
}

/* Стили для новой AJAX пагинации */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 16px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    min-width: 40px;
}

.pagination-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.pagination-btn.active {
    background: linear-gradient(90deg, #025EA1 0%, #025EA1 100%);
    color: white;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.pagination-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.pagination-btn.active:hover::before {
    left: 100%;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Карточки статистики */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    width: 100%;
    max-width: 1200px;
}

.stat-card {
    padding: 42px 0px 19px;
    text-align: center;
    min-width: 244px;
    min-height: 189px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 60px;
    font-weight: 900;
    color: white;
    margin-bottom: 8px;
    font-family: 'Nexa', sans-serif;
}

.stat-label {
    font-size: 17px;
    min-width:inherit;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    font-family: 'Nexa', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Карточки проектов */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 350px;
}

.project-highlighted {
    animation: 1s ease-in-out 1;
    border: 5px solid #EB2323;
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.project-highlighted::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid #2563eb;
    border-radius: 16px;
    animation: border-glow 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes border-glow {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

.nko-link {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    cursor: pointer;
}

.nko-link:hover {
    color: #357abd;
    text-decoration: underline;
}

.nko-name {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.project-org-text {
    color: rgba(255, 255, 255, 0.8);
}

.project-org {
    position: relative;
    z-index: 1;
}

.project-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Nexa', sans-serif;
    white-space: nowrap;
}

.badge-urgent {
    background: #F36DA0;
    color: white;
}

.badge-social {
    background: #03FFEA;
    color: white;
}

.badge-ecology {
    background: #03FF42;
    color: white;
}

.badge-animals {
    background: #FCC30B;
    color: white;
}

.project-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1e293b;
    font-family: 'Nexa', sans-serif;
    line-height: 1.3;
}

.project-location {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
    font-family: 'Roboto', sans-serif;
}

.project-description {
    font-size: 14px;
    color: #475569;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    line-height: 1.5;
    flex-grow: 1;
}

/* Кликабельные ссылки */
.project-description a.project-link {
    color: #2563eb;
    text-decoration: underline;
    word-break: break-all;
}

.project-description a.project-link:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
    font-family: 'Roboto', sans-serif;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    margin-top: auto;
}

.project-org {
    font-size: 14px;
    color: #64748b;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

/* Компактная кнопка удаления */
.delete-card-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(231, 76, 60, 0.95);
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
    z-index: 10;
    padding: 0;
    color: white;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.delete-card-btn:hover {
    background: #e74c3c;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.delete-card-btn:active {
    transform: scale(0.95);
}

.delete-card-btn:focus {
    opacity: 1;
    outline: 2px solid white;
    outline-offset: 1px;
}

/* Сообщение об отсутствии карточек */
.no-cards-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
}

.no-cards-message p {
    opacity: 0.8;
}

/* Секция пояснялка */
.how-it-works {
    padding: 80px 0;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-size: 36px;
    font-weight: 900;
    color: white;
    font-family: 'Nexa', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.steps-count {
    color: rgba(255, 255, 255, 0.9);
    font-size: 21px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

/* Стили для карточек шагов */
.step-card {
    min-width: 316px;
    min-height: 339px;
    padding: 50px 0px 38px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    text-align: center;
    width: 256px;
    transition: transform 0.3s;
    position: relative;
    overflow: visible;
    margin-top: 40px;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

.step-card:hover {
    transform: translateY(-5px);
}

/* Стили для кружочков */
.step-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: #00E0A0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.step-icon img {
    width: 32px;
    height: 32px;
}

.step-card-content {
    margin-top: 20px;
}

.step-title {
    font-size: 30px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    font-family: 'Nexa', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

.arrow-icon {
    font-size: 48px;
    color: #22d3ee;
    font-family: 'Roboto', sans-serif;
}

/* Секция поиска */
.search-section {
    padding: 135px 0;
    position: relative;
}

.search-content {
    text-align: center;
    margin-bottom: 48px;
}

.search-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 21px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

.search-form {
    max-width: 1000px;
    margin: 0 auto;
}

.search-input-large {
    width: 100%;
    height: 70px;
    padding: 0 70px 0 30px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 35px;
    color: white;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.search-input-large::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Roboto', sans-serif;
}

.search-input-large:focus {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.search-icon {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
}

/* Стили для кликабельной иконки поиска */
.search-icon-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-icon-clickable:hover {
    color: #4a90e2;
}

.search-icon-clickable:active {
    color: #4a9490;
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: start;
    width: 100%;
    margin-bottom: 20px;
}

.filter-select {
    height: 56px;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 28px;
    color: white;
    backdrop-filter: blur(15px);
    font-size: 16px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.filter-select:focus {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.filter-select option {
    background: #0047B1;
    color: white;
    font-family: 'Roboto', sans-serif;
}

/* Стили для крестиков фильтров */
.clear-filter-btn {
    display: none;
    margin-left: 8px;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    text-align: center;
    line-height: 16px;
    transition: all 0.2s ease;
}

.clear-filter-btn:hover {
    color: #ff6b6b;
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.clear-filter-btn:active {
    transform: scale(0.95);
}

/* Адаптивность для фильтров с крестиками */
.category-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
}

.category-toggle span:first-child {
    flex: 1;
    margin-right: 8px;
}

/* Стили для активного фильтра */
.category-toggle:has(.clear-filter-btn[style*="display: inline-block"]) {
    background: rgba(74, 144, 226, 0.1);
    border-color: #4a90e2;
}

/* Стили для кнопки применения фильтров */
.apply-filters-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    grid-column: 1 / -1;
}

.apply-filters-btn {
    display: block !important;
    padding: 16px 40px;
    border: none;
    border-radius: 9999px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(90deg, #025EA1 0%, #025EA1 100%);
    color: white;
    font-family: 'Nexa', sans-serif;
    min-width: 220px;
    text-align: center;
}

.apply-filters-btn:hover {
    background: linear-gradient(90deg, #024a80 0%, #024a80 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 94, 161, 0.3);
}

.apply-filters-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(2, 94, 161, 0.3);
}

.apply-filters-btn:disabled {
    background: #6b7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.search-results-header {
    text-align: center;
    margin-bottom: 30px;
}

.search-info {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.search-info p {
    margin: 0 0 10px 0;
    color: rgba(255,255,255,0.8);
}

/* Анимация при наведении на поле поиска */
.search-main {
    position: relative;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.search-main:focus-within {
    border: 5px;
    border-color: white;
}

.no-results-message {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255,255,255,0.7);
}

.no-results-message p {
    margin-bottom: 15px;
    font-size: 16px;
}

/* Пагинация для поиска */
.search-pagination {
    margin-top: 30px;
    justify-content: center;
}

/* Стили для выпадающего списка категорий */
.category-dropdown {
    position: relative;
    display: block;
    width: 100%;
}

.category-toggle {
    width: 100%;
    height: 56px;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 28px;
    color: white;
    backdrop-filter: blur(15px);
    font-size: 16px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    text-align: left;
}

.category-toggle:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.2);
}

.category-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 8px;
}

.category-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-item {
    position: relative;
    padding: 16px 20px;
    color: #1e293b;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover {
    background: rgba(0, 71, 177, 0.1);
}

.category-item svg {
    transition: transform 0.3s ease;
}

.category-item:hover svg {
    transform: translateX(3px);
}

/* Стили для подкатегорий */
.subcategory-menu {
    position: absolute;
    top: 0;
    left: 100%;
    width: 200px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    margin-left: 8px;
}

.subcategory-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.subcategory-item {
    padding: 14px 20px;
    color: #1e293b;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.subcategory-item:last-child {
    border-bottom: none;
}

.subcategory-item:hover {
    background: rgba(0, 71, 177, 0.1);
    color: #0047B1;
}

/* Секция новостей */
.news-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.news-section .container {
    position: relative;
    z-index: 1;
}

.news-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.news-section .section-title {
    color: white;
    font-family: 'Nexa', sans-serif;
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-title {
    font-family: 'Nexa', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #14256D;
    margin-bottom: 10px;
    line-height: 1.3;
    flex-grow: 1;
}

.news-date {
    color: #6CACE4;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    font-family: 'Roboto', sans-serif;
}

.news-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
    flex-grow: 1;
}

.news-link {
    color: #14256D;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.news-link:hover {
    color: #6CACE4;
}

.news-footer {
    text-align: center;
}

/* Секция карточек проектов */
.projects-section {
    padding: 80px 0;
    position: relative;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

/* Стили для AJAX пагинации в секции проектов */
#projectsContainer {
    position: relative;
    transition: opacity 0.3s ease;
}

/* Анимация для появления карточек при AJAX-загрузке */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.project-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Задержки для анимации карточек */
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

/* Индикатор загрузки для AJAX */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 16px;
}

.loading-content {
    text-align: center;
    color: white;
    font-family: 'Roboto', sans-serif;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Индикатор загрузки для AJAX */
.loading-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    text-align: center;
    color: white;
    font-family: 'Roboto', sans-serif;
    padding: 40px;
}

/* Панель доступности */
.accessibility-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.accessibility-panel.show {
    right: 0;
}

.accessibility-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.accessibility-header h3 {
    color: #1e293b;
    font-family: 'Nexa', sans-serif;
    font-size: 20px;
}

.close-panel {
    background: none;
    border: none;
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-panel:hover {
    color: #1e293b;
}

.accessibility-controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.control-group label {
    font-weight: 600;
    color: #1e293b;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
}

.size-controls,
.spacing-controls,
.font-controls,
.color-schemes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-controls button,
.spacing-controls button,
.font-controls button,
.color-schemes button {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}

.size-controls button:hover,
.spacing-controls button:hover,
.font-controls button:hover,
.color-schemes button:hover {
    border-color: #0047B1;
    background: #f8fafc;
}

.scheme-btn.active {
    border-color: #0047B1;
    background: #0047B1;
    color: white;
}

.reset-btn {
    padding: 12px 24px;
    background: #0047B1;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.reset-btn:hover {
    background: #003399;
}

/* Стили для версии для слабовидящих */
html.accessibility-large-font {
    font-size: 18px;
}

html.accessibility-large-font body,
html.accessibility-large-font .auth-modal,
html.accessibility-large-font .reg-modal,
html.accessibility-large-font .auth-dialog,
html.accessibility-large-font .auth-form {
    font-size: 18px;
}

html.accessibility-larger-font {
    font-size: 20px;
}

html.accessibility-larger-font body,
html.accessibility-larger-font .auth-modal,
html.accessibility-larger-font .reg-modal,
html.accessibility-larger-font .auth-dialog,
html.accessibility-larger-font .auth-form {
    font-size: 20px;
}

html.accessibility-high-contrast {
    background: #000 !important;
    color: #fff !important;
}

html.accessibility-high-contrast body,
html.accessibility-high-contrast .auth-modal,
html.accessibility-high-contrast .reg-modal,
html.accessibility-high-contrast .auth-dialog,
html.accessibility-high-contrast .auth-form {
    background: #000 !important;
    color: #fff !important;
}

html.accessibility-high-contrast .main-content {
    background: #000 !important;
}

html.accessibility-high-contrast .header,
html.accessibility-high-contrast .footer,
html.accessibility-high-contrast .auth-dialog {
    background: #000 !important;
    border-bottom: 2px solid #fff;
}

html.accessibility-high-contrast .nav-link,
html.accessibility-high-contrast .footer-title,
html.accessibility-high-contrast .footer-text,
html.accessibility-high-contrast .footer-links a,
html.accessibility-high-contrast .copyright,
html.accessibility-high-contrast .auth-form h3,
html.accessibility-high-contrast .tab-btn,
html.accessibility-high-contrast .form-group label {
    color: #fff !important;
}

html.accessibility-high-contrast .stat-card,
html.accessibility-high-contrast .step-card,
html.accessibility-high-contrast .map-card,
html.accessibility-high-contrast .auth-dialog {
    background: #333 !important;
    border-color: #fff !important;
}

html.accessibility-high-contrast .search-input-large,
html.accessibility-high-contrast .filter-select,
html.accessibility-high-contrast .auth-form input,
html.accessibility-high-contrast .auth-form textarea,
html.accessibility-high-contrast .auth-form select {
    background: #333 !important;
    border-color: #fff !important;
    color: #fff !important;
}

html.accessibility-high-contrast .search-input-large::placeholder,
html.accessibility-high-contrast .auth-form input::placeholder {
    color: #ccc !important;
}

html.accessibility-dark {
    background: #1a1a1a !important;
    color: #e0e0e0 !important;
}

html.accessibility-dark body,
html.accessibility-dark .auth-modal,
html.accessibility-dark .reg-modal,
html.accessibility-dark .auth-dialog,
html.accessibility-dark .auth-form {
    background: #1a1a1a !important;
    color: #e0e0e0 !important;
}

html.accessibility-dark .main-content {
    background: #1a1a1a !important;
}

html.accessibility-dark .header,
html.accessibility-dark .footer,
html.accessibility-dark .auth-dialog {
    background: #2d2d2d !important;
}

html.accessibility-dark .nav-link,
html.accessibility-dark .footer-title,
html.accessibility-dark .footer-text,
html.accessibility-dark .footer-links a,
html.accessibility-dark .copyright,
html.accessibility-dark .auth-form h3,
html.accessibility-dark .tab-btn,
html.accessibility-dark .form-group label {
    color: #e0e0e0 !important;
}

html.accessibility-dark .stat-card,
html.accessibility-dark .step-card,
html.accessibility-dark .map-card,
html.accessibility-dark .auth-dialog {
    background: #333 !important;
    border-color: #555 !important;
}

html.accessibility-dark .search-input-large,
html.accessibility-dark .filter-select,
html.accessibility-dark .auth-form input,
html.accessibility-dark .auth-form textarea,
html.accessibility-dark .auth-form select {
    background: #333 !important;
    border-color: #555 !important;
    color: #e0e0e0 !important;
}

html.accessibility-large-line-height body,
html.accessibility-large-line-height .auth-modal,
html.accessibility-large-line-height .reg-modal,
html.accessibility-large-line-height .auth-dialog,
html.accessibility-large-line-height .auth-form {
    line-height: 1.8;
}

html.accessibility-dyslexic-font body,
html.accessibility-dyslexic-font .auth-modal,
html.accessibility-dyslexic-font .reg-modal,
html.accessibility-dyslexic-font .auth-dialog,
html.accessibility-dyslexic-font .auth-form {
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
}

/* Специфические стили для модальных окон в режиме доступности */
html.accessibility-high-contrast .close-dialog,
html.accessibility-dark .close-dialog {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
}

html.accessibility-high-contrast .auth-tabs,
html.accessibility-dark .auth-tabs {
    background: rgba(255, 255, 255, 0.1) !important;
    border-bottom-color: rgba(255, 255, 255, 0.3) !important;
}

html.accessibility-high-contrast .tab-btn::after,
html.accessibility-dark .tab-btn::after {
    background: linear-gradient(90deg, #6CACE4, #259789) !important;
}

/* Стили для пагинации в режимах доступности */
html.accessibility-high-contrast .pagination-btn,
html.accessibility-dark .pagination-btn {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

html.accessibility-high-contrast .pagination-btn:hover,
html.accessibility-dark .pagination-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
}

html.accessibility-high-contrast .pagination-btn.active,
html.accessibility-dark .pagination-btn.active {
    background: #4A90E2;
    border-color: #4A90E2;
    color: white;
}

html.accessibility-high-contrast .prev-btn,
html.accessibility-high-contrast .next-btn,
html.accessibility-dark .prev-btn,
html.accessibility-dark .next-btn {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

html.accessibility-high-contrast .prev-btn:hover,
html.accessibility-high-contrast .next-btn:hover,
html.accessibility-dark .prev-btn:hover,
html.accessibility-dark .next-btn:hover {
    border-color: #4A90E2;
    color: #4A90E2;
}

/* Улучшения для больших шрифтов в пагинации */
html.accessibility-large-font .pagination-btn,
html.accessibility-larger-font .pagination-btn {
    padding: 10px 18px;
    font-size: 16px;
    min-width: 44px;
}

html.accessibility-large-font .prev-btn,
html.accessibility-large-font .next-btn,
html.accessibility-larger-font .prev-btn,
html.accessibility-larger-font .next-btn {
    padding: 10px 20px;
    font-size: 18px;
}

/* Дополнительные стили для доступности */
html.accessibility-large-font,
html.accessibility-large-font body {
    font-size: 18px !important;
}

html.accessibility-larger-font,
html.accessibility-larger-font body {
    font-size: 20px !important;
}

html.accessibility-large-line-height,
html.accessibility-large-line-height body {
    line-height: 1.8 !important;
}

html.accessibility-dyslexic-font,
html.accessibility-dyslexic-font body {
    font-family: 'Comic Sans MS', 'Arial', sans-serif !important;
}

/* Принудительное применение ко всем элементам */
.accessibility-large-font * {
    font-size: inherit !important;
}

.accessibility-larger-font * {
    font-size: inherit !important;
}

.accessibility-large-line-height * {
    line-height: inherit !important;
}

.accessibility-dyslexic-font * {
    font-family: inherit !important;
}

/* Стили для активных кнопок */
.size-controls button.active,
.spacing-controls button.active,
.font-controls button.active {
    border-color: #0047B1 !important;
    background: #0047B1 !important;
    color: white !important;
}

/* Улучшения для кнопок доступности в хедере и футере */
.accessibility-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accessibility-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.footer-accessibility-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s ease;
}

.footer-accessibility-btn:hover {
    opacity: 0.8;
}

/* Уведомления */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast-title {
    font-weight: 700;
    margin-bottom: 4px;
    font-family: 'Nexa', sans-serif;
}

.toast-description {
    font-size: 14px;
    color: #64748b;
    font-family: 'Roboto', sans-serif;
}

/* Toast для режимов доступности */
html.accessibility-high-contrast .toast,
html.accessibility-dark .toast {
    background: #2d2d2d;
    color: white;
    border: 2px solid white;
}

html.accessibility-high-contrast .toast-description,
html.accessibility-dark .toast-description {
    color: #e0e0e0;
}

/* Анимация для спиннера загрузки */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Стили для индикатора загрузки */
#loadingSpinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 99;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* modals.css */
/* Модальные окна авторизации */
.reg-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
}

.reg-modal.show {
    display: flex;
    opacity: 1;
}

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.auth-modal.show {
    display: flex;
    opacity: 1;
}

.auth-dialog {
    background: linear-gradient(90deg, #025EA1 0%, #025EA1 100%);
    border-radius: 24px;
    padding: 0;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    border: none;
    max-height: 550px;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-dialog.large {
    max-height: 900px !important;
    min-height: 700px;
    overflow-y: auto;
    max-width: 600px; 
}

.auth-dialog.xlarge::-webkit-scrollbar {
    width: 8px;
}

.auth-dialog.xlarge::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.auth-dialog.xlarge::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.auth-dialog.xlarge::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Для Firefox */
.auth-dialog.xlarge {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

/* Стили скроллбара для модального окна деталей НКО */
.nko-details-modal .admin-container::-webkit-scrollbar {
    width: 8px;
}

.nko-details-modal .admin-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.nko-details-modal .admin-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.nko-details-modal .admin-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Для Firefox */
.auth-dialog.xlarge {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

.nko-details-modal .admin-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

.nko-details-modal .auth-dialog.xlarge {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

/* Стили для крестиков закрытия */
.close-dialog {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-dialog:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    color: #ff6b6b;
}

.close-dialog:active {
    transform: scale(0.95);
}

.close-dialog:focus {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

/* Специфичные стили */
.auth-modal .close-dialog {
    z-index: 1000; /* Поверх форм */
}

.reg-modal .close-dialog {
    z-index: 1000; /* Поверх форм */
}

.auth-tabs {
    padding-top: 10px;
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 9;
}

.tab-btn {
    flex: 1;
    padding: 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Nexa', sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #025EA1, #025EA1);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.tab-btn.active {
    color: white;
}

.tab-btn.active::after {
    width: 80%;
}

.tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.auth-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(90deg, #025EA1 0%, #025EA1 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Nexa', sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.auth-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.auth-submit:hover::before {
    left: 100%;
}

.auth-submit:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-submit:disabled {
    background: #64748b;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-submit:disabled::before {
    display: none;
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}

.auth-switch a {
    color: #00E0A0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: #22d3ee;
    text-decoration: underline;
}

.auth-switch a:active {
    color: #2c5f9e;
}

.auth-form .form-group {
    animation: slideInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form .form-group:nth-child(1) { animation-delay: 0.1s; }
.auth-form .form-group:nth-child(2) { animation-delay: 0.2s; }
.auth-form .form-group:nth-child(3) { animation-delay: 0.3s; }
.auth-form .form-group:nth-child(4) { animation-delay: 0.4s; }
.auth-form .form-group:nth-child(5) { animation-delay: 0.5s; }
.auth-form .form-group:nth-child(6) { animation-delay: 0.6s; }
.auth-form .form-group:nth-child(7) { animation-delay: 0.7s; }
.auth-form .form-group:nth-child(8) { animation-delay: 0.8s; }
.auth-form .form-group:nth-child(9) { animation-delay: 0.9s; }

.form-group {
    margin-bottom: 24px;
    flex: 1;
}

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group label:after {
    content: " *";
    color: #FF4757;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="tel"],
.auth-form input[type="url"],
.auth-form input[type="password"],
.auth-form input[type="number"],
.auth-form textarea,
.auth-form select {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#profileForm .form-group input[type="text"],
#profileForm .form-group input[type="email"],
#profileForm .form-group input[type="tel"],
#profileForm .form-group input[type="url"],
#profileForm .form-group textarea,
#profileForm .form-group select {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* Скрываем стрелочки */
.auth-form input[type="number"]::-webkit-inner-spin-button,
.auth-form input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.auth-form input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
}

.auth-form input::placeholder,
.auth-form textarea::placeholder,
.auth-form select:invalid {
    color: rgba(255, 255, 255, 0.8) !important;
    opacity: 1;
    font-family: 'Roboto', sans-serif;
}

.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.auth-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    cursor: pointer;
    padding-right: 50px;
}

.auth-form select option {
    background: #0047B1;
    color: white;
    padding: 12px 16px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-form select option:hover {
    background: #003399;
}

.auth-form select option:checked {
    background: #00E0A0;
    color: #0047B1;
    font-weight: 600;
}

.auth-form textarea {
    resize: vertical;
    min-height: 100px;
    font-family: 'Roboto', sans-serif;
    line-height: 1.5;
}

.auth-form input[type="file"] {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-form input[type="file"]:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.auth-form input[type="file"]::file-selector-button {
    background: linear-gradient(90deg, #025EA1, #025EA1);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    margin-right: 12px;
    cursor: pointer;
    font-family: 'Nexa', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.auth-form input[type="file"]::file-selector-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #00E0A0;
}

.checkbox-group label {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: none;
    letter-spacing: 0;
}

.auth-form input[readonly] {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    opacity: 0.8;
    cursor: not-allowed;
}

.password-recovery-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
}

.recovery-help {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.back-switch a {
    color: #00E0A0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    margin-bottom: 10px;
}

.back-switch a:hover {
    color: #22d3ee;
    text-decoration: underline;
}

.back-switch a:active {
    color: #2c5f9e;
}

.form-group select::-webkit-scrollbar {
    width: 8px;
}

.form-group select::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.form-group select::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.form-group select::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.form-group.input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.form-group input.input::placeholder,
.form-group textarea.input::placeholder,
.form-group select.input:invalid {
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 1;
}

.form-group textarea.input {
    resize: vertical;
    min-height: 80px;
    font-family: 'Roboto', sans-serif;
}

.form-group select.input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    cursor: pointer;
}

.form-group select.input option {
    background: #0047B1;
    color: white;
    padding: 10px;
    font-family: 'Roboto', sans-serif;
}

.form-group select.input::-webkit-scrollbar {
    width: 8px;
}

.form-group select.input::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.form-group select.input::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.form-group select.input::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.user-projects-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    margin-top: 10px;
    overflow-x: hidden;
}

.user-project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    border-left: 2px solid transparent;
}

.user-project-item .badge {
    font-size: 10px;
    padding: 2px 6px;
    margin-right: 8px;
}

.profile-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Анимация переключения форм */
/* Общие стили для форм авторизации */
.auth-form {
    padding: 40px;
    display: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 0;
    transform: translateX(20px);
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.auth-form.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: formSlideIn 0.4s ease;
}

.auth-form h3 {
    color: white;
    font-family: 'Nexa', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 30px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
}

@keyframes formSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#authModal .auth-tabs {
    display: none;
}

#regModal .auth-tabs {
    display: none;
}

/* Стили для кнопки "Забыл пароль" */
.forgot-password-btn {
    background: none;
    border: none;
    color: #00E0A0;
    font-size: 13px;
    cursor: pointer;
    padding: 5px 0;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.forgot-password-btn:hover {
    color: #22d3ee;
    text-decoration: underline;
}

.forgot-password-btn:active {
    color: #2c5f9e;
}

/* Восстанавливаем оригинальные размеры форм */
.auth-dialog {
    background: linear-gradient(135deg, #259789 0%,  #6CACE4 100%);
    border-radius: 24px;
    padding: 0;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    border: none;
    max-height: 550px;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Общие стили для скроллируемых контейнеров внутри форм */
.form-scrollable {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 20px;
}

.form-scrollable::-webkit-scrollbar {
    width: 6px;
}

.form-scrollable::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.form-scrollable::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.form-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* Для Firefox */
.form-scrollable {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

/* Убираем старые стили скролла у форм */
.auth-form {
    overflow: visible; 
    max-height: none; 
}

/* Для коротких форм уменьшаем высоту скролла */
.auth-dialog:not(.large):not(.xlarge) .form-scrollable {
    max-height: 300px;
}

/* Для больших форм увеличиваем высоту скролла */
.auth-dialog.large .form-scrollable {
    max-height: 450px;
}

.auth-dialog.xlarge .form-scrollable {
    max-height: 1100px;
}

.user-project-item:hover {
    background: rgba(255,255,255,0.12) !important;
    border-left: 2px solid #4a90e2;
    padding-left: 14px; 
    margin-left: -2px;
}

.profile-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.auth-dialog.xlarge {
    width: 90%;
    height: auto;
    max-width: 1200px; 
    max-height: 900px;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    overflow: hidden; 
    background: linear-gradient(135deg, #259789 0%,  #6CACE4 100%);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    padding: 0;
}

/* Заголовок админ-панели */
.admin-panel-content {
    padding: 0;
    padding-top: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-modal-content {
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Заголовок секции "Управление пользователями" */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.admin-header h2 {
    margin: 0;
    color: white;
    font-family: 'Nexa', sans-serif;
    font-size: 24px;
}

.admin-stats {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

/* Содержимое панели */
.users-table-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 20px 20px;
    max-height: calc(100% - 100px);
} 

/* Таблица пользователей */
.admin-users-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    overflow: hidden;
    table-layout: fixed; 
}

/* Шапка таблицы */
.admin-users-table th {
    background: rgba(255,255,255,0.1);
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: white;
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ячейки таблицы */
.admin-users-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-users-table tr:hover {
    background: rgba(255,255,255,0.05);
}

/* Стили для кнопок управления ролями и удаления */
.role-controls,
.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.role-btn,
.delete-btn {
    padding: 6px 10px;
    font-size: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 70px;
    text-align: center;
}

.role-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    margin: 2px;
    font-weight: 500;
}

.role-admin { 
    background: linear-gradient(135deg, #ff6b6b, #ee5a52); 
    color: white; 
}
.role-nko { 
    background: linear-gradient(135deg, #4ecdc4, #44a08d); 
    color: white; 
}
.role-user { 
    background: linear-gradient(135deg, #45b7d1, #3498db); 
    color: white; 
}

.role-controls {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 120px;
}

.role-btn {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.role-btn.add {
    background: rgba(46, 204, 113, 0.3);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.role-btn.add:hover {
    background: #2ecc71;
    color: white;
}

.role-btn.remove {
    background: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.role-btn.remove:hover {
    background: #e74c3c;
    color: white;
}

.role-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.role-section {
    margin-bottom: 8px;
}

.role-section-label {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 4px;
    display: block;
}

.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 80px;
}

.delete-btn {
    padding: 6px 10px;
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: #e74c3c;
    color: white;
}

.delete-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Индикатор загрузки */
.admin-loading {
    text-align: center;
    padding: 40px;
    color: rgba(255,255,255,0.7);
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}


/* Стили для админ-панели в модалке */
.admin-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background: transparent;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 20px;
}

/* Стили для вкладок */
.admin-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    color: rgba(255,255,255,0.7);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.admin-tab-btn:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

.admin-tab-btn.active {
    color: white;
    border-bottom-color: #4a90e2;
    background: rgba(255,255,255,0.1);
}

.admin-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.admin-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Общие стили для таблиц */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-table th {
    background: rgba(255,255,255,0.1);
    font-weight: 600;
    color: white;
    font-size: 12px;
}

.admin-table td {
    color: rgba(255,255,255,0.9);
    font-size: 12px;
}

/* Стили для модального окна деталей НКО */
.nko-details-modal {
    animation: fadeIn 0.3s ease;
}

.nko-details-content {
    animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Стили для статусов НКО в профиле */
.nko-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nko-status-pending {
    background: #f59e0b;
    color: white;
}

.nko-status-approved {
    background: #10b981;
    color: white;
}

.nko-status-rejected {
    background: #ef4444;
    color: white;
}

/* Иконка причины отклонения */
.rejection-reason {
    cursor: help;
    font-size: 10px;
    opacity: 0.8;
}

/* Стили для подсказок с статусами */
.rejected-hint {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.pending-hint {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffeaa7;
    color: #856404;
}

.rejected-hint strong,
.pending-hint strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.rejected-hint p,
.pending-hint p {
    margin: 4px 0;
    font-size: 13px;
    opacity: 0.9;
}

/* Стиль для кнопки повторной отправки */
.resubmit-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    animation: pulse-resubmit 2s infinite;
}

.resubmit-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    animation: none;
}

@keyframes pulse-resubmit {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}


/* Стили для статусов */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #f59e0b;
    color: white;
}

.status-approved {
    background: #10b981;
    color: white;
}

.status-rejected {
    background: #ef4444;
    color: white;
}

.status-unknown {
    background: #6b7280;
    color: white;
}

/* Стили для секций информации */
.info-section {
    background: rgba(255,255,255,0.02);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.info-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Стили для бейджей ролей */
.role-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    margin: 2px;
    font-weight: 500;
}

/* Стили для кнопок действий */
.admin-action-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.admin-btn-small {
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin: 2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    transition: all 0.2s;
}

.admin-btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.admin-btn-danger {
    background: #ef4444 !important;
    color: white !important;
    border: none !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    transition: all 0.2s !important;
}

.admin-btn-danger:hover {
    background: #dc2626 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3) !important;
}

.admin-btn-secondary {
    background: #6b7280 !important;
    color: white !important;
    border: none !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    transition: all 0.2s !important;
}

.admin-btn-secondary:hover {
    background: #575c67 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.3) !important;
}

.admin-btn-primary{
    background: #4a90e2;
    color: white; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 6px; 
    cursor: pointer;
}

.admin-btn-fixed {
    background: #10b981;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 10px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 40px;
    flex-shrink: 0;
    white-space: nowrap;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    line-height: 1;
    vertical-align: middle;
}

.admin-btn-fixed:hover {
    background: #0da271;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.admin-btn-fixed:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

/* Анимации для формы */
#addCityForm {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Стили для кнопок */
.admin-btn-success {
    background: #10b981 !important;
}

.admin-btn-success:hover {
    background: #059669 !important;
}

/* Поле с ошибкой */
.field-error {
    font-size: 12px;
    color: #FF4757;
    margin-top: 5px;
    font-family: 'Roboto', sans-serif;
}

/* Стили для форм */
.admin-form {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.admin-form h3 {
    margin: 0 0 15px 0;
    color: white;
    font-size: 18px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: #4a90e2;
    background: rgba(255,255,255,0.15);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Стили для статусов */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #10b981 !important;
    color: white;
}

.status-inactive {
    background: #6b7280 !important;
    color: white;
}

/* Сообщения */
.admin-message {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.admin-message.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.admin-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.admin-loading {
    text-align: center;
    padding: 40px;
    color: rgba(255,255,255,0.7);
}

.admin-message.info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Загрузка */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}    

/* Стили для кнопки админ-панели */
.btn-admin-panel {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.btn-admin-panel:hover {
    background: linear-gradient(135deg, #ee5a52, #d63031);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}


/* Стили для полноэкранного модального окна профиля */
.auth-dialog.fullscreen {
    width: calc(100vw - 40px) !important;
    height: calc(100vh - 40px) !important;
    max-width: none !important;
    max-height: none !important;
    margin-bottom: 20px 
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden; 
}

.profile-scrollable {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    max-height: none;
}

.profile-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    min-height: min-content;
    max-width: 800px; 
    margin-right: auto; 
}

/* Двухколоночная сетка для форм */
.form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    max-width: 100%;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Cтили для полей формы в профиле */
.profile-section .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.profile-section .form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.profile-section .form-group input,
.profile-section .form-group select,
.profile-section .form-group textarea {
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.profile-section .form-group input:focus,
.profile-section .form-group select:focus,
.profile-section .form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.profile-section .form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: 'Roboto', sans-serif;
}

/* Стили для кнопки смены пароля */
.change-password-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #15256D 0%, #4495D1 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    display: inline-block;
    margin-top: 10px;
}

.change-password-btn:hover {
    background: linear-gradient(135deg, #15256D 0%, #4495D1 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.change-password-btn:active {
    transform: translateY(0);
}

#changePasswordForm .auth-submit {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
}

/* Стили для модального окна смены пароля */
#changePasswordModal .auth-dialog {
    max-width: 450px;
    width: 90%;
    margin: 20px auto;
}

/* Анимация появления новых полей */
#newPasswordSection {
    transition: all 0.3s ease;
    overflow: hidden;
}

#newPasswordSection.show {
    display: block !important;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { 
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to { 
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}

/* Стили для заблокированного поля */
.profile-section .form-group input:disabled {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

/* Анимация появления новых полей */
#newPasswordSection {
    transition: all 0.3s ease;
}

#newPasswordSection.show {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Подсказки под полями */
.field-hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Секции профиля */
.profile-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%; 
    box-sizing: border-box;
}

.profile-section h3 {
    font-family: 'Nexa', sans-serif;
    font-size: 1.4rem;
    color: white;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

/* Заголовок секции с кнопкой */
.profile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.profile-section-header h3 {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

/* Стили для двухколоночного макета профиля */
.profile-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    height: 100%;
}

.profile-left-column {
    flex: 1;
    min-width: 0; 
}

.profile-right-column {
    flex: 0 0 350px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Блок "Скоро здесь появится" */
.coming-soon-block {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.coming-soon-block:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.coming-soon-content {
    color: rgba(255, 255, 255, 0.9);
}

.coming-soon-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.coming-soon-content h3 {
    font-family: 'Nexa', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.coming-soon-content p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 25px;
    opacity: 0.8;
}

.coming-soon-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.feature-badge {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 50px;
    text-align: center;
}

.feature-item span:last-child {
    font-size: 13px;
    font-weight: 500;
    flex: 1;
}

/* Подсказка НКО */
.nko-hint {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.nko-hint .hint-content {
    color: #856404;
}

.nko-hint .hint-content strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.nko-hint .hint-content p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}

/* Стили для выпадающей секции НКО */
.nko-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
    position: relative;
}

.nko-section-header:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.nko-section-header h3 {
    margin: 0;
    color: white;
    font-family: 'Nexa', sans-serif;
    font-size: 1.2rem;
    border-bottom: none;
    padding-bottom: 0;
    flex: 1;
}

/* Подсветка секции НКО */
.nko-section-header.highlighted {
    background: rgba(74, 144, 226, 0.2) !important;
    border: 2px solid #4a90e2 !important;
    border-radius: 8px;
    padding: 12px 15px;
    animation: pulse-highlight 2s ease-in-out;
}

@keyframes pulse-highlight {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(74, 144, 226, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0);
    }
}

.nko-section-header.highlighted h3 {
    color: #4a90e2 !important;
    font-weight: bold;
}

.nko-section-header.highlighted .nko-toggle-icon {
    color: #4a90e2 !important;
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

.nko-toggle-icon {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
    margin-left: auto;
    padding-left: 15px; 
    flex-shrink: 0; 
}

.nko-toggle-icon.open {
    transform: rotate(180deg);
}

.nko-section-content {
    overflow: hidden;
    transition: all 0.4s ease;
    max-height: 0;
    opacity: 0;
}

.nko-section-content.open {
    max-height: 2000px;
    opacity: 1;
    margin-top: 20px;
}

/* Загрузка файлов */
.file-upload-container {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.file-upload-label:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.upload-icon {
    font-size: 16px;
}

/* Предпросмотр логотипа */
.logo-preview {
    display: none;
}

.logo-preview img {
    max-height: 100px;
    max-width: 200px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: block;
}

.remove-logo-btn {
    background: rgba(255, 71, 87, 0.9); 
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.remove-logo-btn:hover {
    background: rgba(255, 55, 66, 1); 
    transform: scale(1.1);
}

/* Принудительные стили для превью логотипа */
.logo-preview.fixed {
    position: relative !important;
    display: inline-block !important;
    margin-top: 10px !important;
}

.logo-preview.fixed .remove-logo-btn {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    z-index: 10 !important;
}

/* Проекты */
.projects-container {
    min-height: 120px;
    flex-shrink: 0; 
}

.loading-state {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
}

.profile-loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

/* Кнопки действий для профиля */
.profile-form-actions-fullwidth {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
    position: sticky;
    bottom: 0;
    z-index: 10;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.profile-scrollable {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    max-height: none;
}

/* Правая колонка тоже скроллится */
.profile-right-column {
    flex: 0 0 350px;
    position: relative;
    top: auto;
    height: auto;
}

.coming-soon-block {
    position: relative;
}

.profile-btn-primary, 
.profile-btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.profile-btn-primary {
    padding: 10px 24px;
    background: linear-gradient(90deg, #025EA1 0%, #025EA1 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Nexa', sans-serif;
    font-size: 21px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.profile-btn-primary:hover::before {
    left: 100%;
}

.profile-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'Nexa', sans-serif;
}

.profile-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.profile-btn-text {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.profile-btn-text:hover {
    background: rgba(74, 144, 226, 0.1);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.2);
}

/* Анимации */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Стили для скроллбара */
.profile-scrollable::-webkit-scrollbar {
    width: 6px;
}
.profile-scrollable::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}
.profile-scrollable::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}
.profile-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* Для Firefox */
.profile-scrollable {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

.profile-btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.profile-btn-warning:disabled {
    background: #6b7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* СИСТЕМА УВЕДОМЛЕНИЙ  */
#notificationContainer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    pointer-events: none;
}

/* Анимации для уведомлений */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Адаптивность для разных экранов */
@media (max-width: 1200px) {
    .search-filters {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .auth-dialog.xlarge {
        width: 98%;
        margin: 10px;
    }
    
    .users-table-container {
        overflow-x: auto;
    }
    
    .admin-users-table {
        min-width: 1000px;
    }
    
    .auth-dialog.xlarge {
        width: 98%;
        margin: 10px;
    }
    
    .users-table-container {
        overflow-x: auto;
    }
    
    .admin-users-table {
        min-width: 1000px;
    }
    
    .search-filters {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .hero-title {
        font-size: 36px;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .steps-container {
        flex-direction: column;
    }

    .arrow-icon {
        transform: rotate(90deg);
    }

    .search-filters {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-card {
        min-height: auto;
    }
    
    .project-card-content {
        min-height: auto;
        padding: 20px;
    }
    
    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .project-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .btn-help {
        align-self: stretch;
        text-align: center;
    }
    
    .step-card {
        width: 100%;
        max-width: 300px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .accessibility-panel {
        width: 100%;
        right: -100%;
    }
    
    .auth-dialog {
        width: 95%;
        margin: 20px;
    }
    
    .auth-form {
        padding: 30px 20px;
    }
    
    .tab-btn {
        padding: 16px;
        font-size: 16px;
    }
    
    .category-dropdown {
        width: 100%;
    }
    
    .category-toggle {
        width: 100%;
    }
    
    .category-dropdown-menu {
        width: 100%;
        position: static;
        transform: none;
    }
    
    .subcategory-menu {
        position: static;
        width: 100%;
        transform: none;
        margin-left: 0;
        margin-top: 8px;
        background: rgba(0, 0, 0, 0.05);
    }
    
    .search-filters {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .user-info {
        gap: 10px;
        flex-direction: column;
        align-items: flex-end;
    }
    
    .user-name {
        font-size: 16px;
    }
    
    .map-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .map-filters {
        width: 100%;
        justify-content: flex-start;
    }
    
    /* Адаптивность для AJAX пагинации */
    .pagination {
        gap: 4px;
        margin-top: 20px;
    }
    
    .pagination-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 36px;
    }
    
    .pagination-controls {
        gap: 10px;
    }
    
    .prev-btn, .next-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    /* Индикатор загрузки */
    .loading-indicator {
        width: 16px;
        height: 16px;
    }
    
    /* Контейнер проектов */
    #projectsContainer {
        position: relative;
    }
    
    /* Уведомления */
    .toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }
    
    .toast-title {
        font-size: 16px;
    }
    
    .toast-description {
        font-size: 14px;
    }
    
    /* Адаптивность для новостей */
    .news-section {
        padding: 60px 0;
    }
    
    .news-section .section-title {
        font-size: 28px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-title {
        font-size: 16px;
    }
    
    /* Адаптивность для панели доступности */
    .accessibility-controls {
        gap: 16px;
    }
    
    .control-group {
        gap: 8px;
    }
    
    /* Адаптивность для больших шрифтов в режиме доступности */
    html.accessibility-large-font .pagination-btn,
    html.accessibility-larger-font .pagination-btn {
        padding: 8px 14px;
        font-size: 14px;
        min-width: 38px;
    }
    
    html.accessibility-large-font .prev-btn,
    html.accessibility-large-font .next-btn,
    html.accessibility-larger-font .prev-btn,
    html.accessibility-larger-font .next-btn {
        padding: 8px 16px;
        font-size: 16px;
    }
    
        #projectsContainer {
        transition: opacity 0.3s ease;
    }
    
    .project-card {
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    
    .pagination-btn,
    .prev-btn,
    .next-btn,
    .btn-help {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .user-info {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .btn-admin-panel {
        margin: 5px 0;
        order: 1;
    }

    .btn-login {
        order: 2;
    }
    
    .profile-section {
        padding: 16px;
    }
    
    .profile-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .profile-form-actions {
        flex-direction: column;
        position: relative; 
    }
    
    .profile-btn-primary, 
    .profile-btn-secondary {
        min-width: auto;
        width: 100%;
    }
    
    .profile-scrollable {
        padding: 15px;
    }
    
    .profile-form-actions {
        margin: 0 -15px -15px -15px;
        padding: 15px;
    }
    
    .profile-form-actions-fullwidth {
        flex-direction: column;
        padding: 15px;
    }
    
    .profile-form-actions-fullwidth .profile-btn-primary,
    .profile-form-actions-fullwidth .profile-btn-secondary,
    .profile-form-actions-fullwidth .profile-btn-warning {
        width: 100%;
        max-width: 300px;
    }
    
    .profile-scrollable {
        margin-bottom: 120px; 
    }
    
    .user-project-item:hover {
        transform: none;
        border-left: 2px solid #4a90e2;
        padding-left: 12px;
        margin-left: 0;
    }
    
    .nko-section-header {
        padding: 12px 16px;
    }
    
    .nko-section-header h3 {
        font-size: 1.1rem;
    }
    
    .apply-filters-btn {
        padding: 14px 32px;
        font-size: 16px;
        min-width: 200px;
    }
    
    .search-filters {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .category-dropdown-menu {
        width: 100%;
        position: static;
        transform: none;
    }
    
    .subcategory-menu {
        position: static;
        width: 100%;
        transform: none;
        margin-left: 0;
        margin-top: 8px;
        background: rgba(0, 0, 0, 0.05);
    }
    
    .nko-details-content {
        margin: 10px;
        padding: 20px;
    }
    
    .nko-details-footer {
        flex-direction: column;
    }
    
    .nko-details-footer button {
        width: 100%;
    }
    
    .nko-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .nko-status-badge {
        margin-left: 0;
        align-self: flex-start;
    }
    
    .profile-right-column {
        flex: none;
        width: 100%;
    }
    
    .coming-soon-block {
        padding: 20px;
    }
    
    .coming-soon-icon {
        font-size: 36px;
    }
    
    .coming-soon-content h3 {
        font-size: 18px;
    }
    
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        padding: 12px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .btn-primary {
        font-size: 24px;
        padding: 10px 32px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .step-card {
        min-width: auto;
        width: 100%;
    }
    
    .map-card {
        min-width: auto;
        padding: 20px;
    }
    
    .map-container {
        padding: 20px;
    }
    
    .map-legend {
        bottom: 16px;
        left: 16px;
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .pagination {
        gap: 2px;
        margin-top: 16px;
    }
    
    .pagination-btn {
        padding: 4px 8px;
        font-size: 11px;
        min-width: 32px;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .prev-btn, .next-btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    /* Заголовок секции проектов на мобильных */
    .projects-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .project-title {
        font-size: 18px;
    }
    
    .project-description {
        font-size: 13px;
    }
    
    .news-section {
        padding: 40px 0;
    }
    
    .news-section .section-title {
        font-size: 24px;
    }
    
    .news-image {
        height: 160px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .toast {
        bottom: 12px;
        right: 12px;
        left: 12px;
        padding: 12px 16px;
    }
    
    .toast-title {
        font-size: 15px;
        margin-bottom: 2px;
    }
    
    .toast-description {
        font-size: 13px;
    }
    
    .apply-filters-btn {
        padding: 12px 24px;
        font-size: 15px;
        min-width: 180px;
    }
}

/* Горизонтальная прокрутка для пагинации на очень маленьких экранах */
@media (max-width: 360px) {
    .pagination {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .pagination::-webkit-scrollbar {
        height: 4px;
    }
    
    .pagination::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
    }
    
    .pagination::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }
}

