* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: #e8e0d5;
    color: #2d2d2d;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d42e3c;
    box-shadow: 0 0 20px rgba(212,46,60,0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: 2px;
    color: #d42e3c;
    text-transform: uppercase;
}

.logo-sub {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    letter-spacing: 1px;
    color: #1a2a3a;
    margin-top: -5px;
}

.logo-small {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
    letter-spacing: 1px;
}

/* Шапка */
.header {
    background: rgba(232, 224, 213, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(212,46,60,0.2);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #1e2c3a;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 30px;
    transition: 0.2s;
    font-size: 0.95rem;
}

.nav a:hover {
    background: #d42e3c;
    color: white;
    box-shadow: 0 0 15px rgba(212,46,60,0.3);
}

/* Социальные ссылки */
.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #d42e3c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.social-link:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(212,46,60,0.5);
}

.btn {
    background: linear-gradient(135deg, #d42e3c, #b02330);
    color: white;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 8px 16px rgba(212,46,60,0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(212,46,60,0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #d42e3c;
    color: #d42e3c;
    box-shadow: none;
}

.btn-outline:hover {
    background: #d42e3c;
    color: white;
}

/* Герой */
.hero {
    background: linear-gradient(135deg, rgba(31,42,54,0.8) 0%, rgba(44,62,80,0.8) 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1.5s ease-in-out;
    opacity: 0;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(31,42,54,0.9) 0%, rgba(31,42,54,0.4) 20%, rgba(31,42,54,0.4) 80%, rgba(31,42,54,0.9) 100%);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-quote {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-left: 6px solid #d42e3c;
    border-radius: 30px;
    padding: 40px;
    margin: 30px 0;
    font-size: 1.3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212,46,60,0.2);
    text-align: left;
    animation: fadeInUp 1s ease;
}

.hero-quote p {
    color: #ffffff;
    opacity: 0.9;
    margin-bottom: 20px;
}

.hero-quote p:last-child {
    margin-bottom: 0;
}

.hero-quote p:first-child {
    font-size: 2rem;
    font-weight: 800;
    color: #d42e3c;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(212,46,60,0.5);
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Секции */
.section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(212,46,60,0.1);
    background: linear-gradient(180deg, #e8e0d5 0%, #f5efe8 100%);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    color: #1a2a3a;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #d42e3c, #ff8c8c);
    border-radius: 2px;
}

.grid-2, .grid-3, .grid-4 {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid rgba(212,46,60,0.1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d42e3c, #ff8c8c);
    opacity: 0;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 40px rgba(212,46,60,0.15);
}

.card:hover::before {
    opacity: 1;
}

.badge {
    background: #d42e3c;
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 5px;
}

.badge-light {
    background: rgba(212,46,60,0.1);
    color: #d42e3c;
    border: 1px solid #d42e3c;
}

/* Формы */
.registration-form, .auth-form {
    background: white;
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(212,46,60,0.1);
    border: 1px solid rgba(212,46,60,0.2);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: #1a2a3a;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(212,46,60,0.1);
    border-radius: 16px;
    font-size: 1rem;
    transition: 0.2s;
    background: #fdf8f2;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: #d42e3c;
    outline: none;
    box-shadow: 0 0 0 4px rgba(212,46,60,0.1);
    background: white;
}

/* Исправление для чекбоксов */
.consent-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 25px 0 20px 0 !important;
    padding: 0 !important;
}

.consent-group input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    margin: 0 !important;
    accent-color: #d42e3c !important;
    cursor: pointer !important;
}

.consent-group label {
    margin: 0 !important;
    line-height: 1.4 !important;
    font-size: 1rem !important;
    color: #1a2a3a !important;
    cursor: pointer !important;
    font-weight: normal !important;
}

/* Аватарки */
.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d42e3c;
    margin: 0 auto 15px;
    display: block;
}

.avatar-upload {
    margin: 20px 0;
    text-align: center;
}

.avatar-upload input[type="file"] {
    display: none;
}

.avatar-upload label {
    background: #d42e3c;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    display: inline-block;
    transition: 0.2s;
}

.avatar-upload label:hover {
    background: #b02330;
    transform: scale(1.05);
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #d42e3c;
    margin: 10px auto;
    display: none;
    object-fit: cover;
}

/* Жюри */
.jury-card {
    text-align: center;
}

.jury-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(145deg, #d42e3c, #a3323d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 700;
    border: 4px solid rgba(212,46,60,0.3);
    box-shadow: 0 0 30px rgba(212,46,60,0.2);
    object-fit: cover;
}

/* Архив */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.archive-item {
    border-radius: 24px;
    overflow: hidden;
    height: 200px;
    color: white;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    position: relative;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(212,46,60,0.2);
}

.archive-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(26,42,58,0.9) 0%, rgba(26,42,58,0.4) 70%);
    z-index: 1;
}

.archive-item span {
    position: relative;
    z-index: 2;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Отзывы */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.review-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(212,46,60,0.1);
    transition: 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 40px rgba(212,46,60,0.15);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(145deg, #d42e3c, #a3323d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.review-author {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a2a3a;
}

.review-date {
    font-size: 0.9rem;
    color: #888;
}

.review-rating {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.review-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.review-answer {
    background: rgba(212,46,60,0.05);
    border-left: 4px solid #d42e3c;
    padding: 15px;
    border-radius: 16px;
    margin-top: 15px;
}

.review-answer p {
    color: #333;
    margin-bottom: 5px;
}

.review-answer small {
    color: #888;
}

/* Контакты */
.contacts-block {
    background: linear-gradient(135deg, #1a2a3a, #2a3a4a);
    color: white;
    border-radius: 40px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.contacts-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(212,46,60,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.contacts-block a {
    color: #ffb0b7;
    text-decoration: none;
    transition: 0.2s;
}

.contacts-block a:hover {
    color: #d42e3c;
    text-shadow: 0 0 10px rgba(212,46,60,0.5);
}

.organizer {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 20px;
    color: #ffb0b7;
}

/* Личный кабинет */
.dashboard-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.user-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(212,46,60,0.1);
}

.application-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(212,46,60,0.1);
    transition: 0.2s;
}

.application-card:hover {
    box-shadow: 0 10px 25px rgba(212,46,60,0.1);
    border-color: #d42e3c;
}

.app-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-approved { background: #d4edda; color: #155724; }
.status-rejected { background: #f8d7da; color: #721c24; }
.status-paid { background: #cce5ff; color: #004085; }

/* Админ-панель */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.tab {
    padding: 10px 25px;
    background: white;
    border-radius: 30px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    border: 1px solid rgba(212,46,60,0.2);
    transition: 0.2s;
}

.tab:hover {
    border-color: #d42e3c;
    color: #d42e3c;
}

.tab.active {
    background: #d42e3c;
    color: white;
    border-color: #d42e3c;
    box-shadow: 0 0 20px rgba(212,46,60,0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #1a2a3a, #2a3a4a);
    color: white;
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #d42e3c;
    margin-bottom: 10px;
}

/* Таблицы */
.admin-table {
    width: 100%;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(212,46,60,0.1);
}

.admin-table th {
    background: rgba(212,46,60,0.1);
    padding: 15px;
    text-align: left;
    color: #1a2a3a;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(212,46,60,0.1);
}

/* Ошибки и успех */
.error {
    background: rgba(220,53,69,0.1);
    color: #dc3545;
    padding: 12px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid #dc3545;
}

.success {
    background: rgba(40,167,69,0.1);
    color: #28a745;
    padding: 12px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid #28a745;
}

/* Футер */
.footer {
    background: #1a2a3a;
    color: #b8b8b0;
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid rgba(212,46,60,0.3);
}

.footer a {
    color: #ffb0b7;
    text-decoration: none;
}

.footer a:hover {
    color: #d42e3c;
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ С ПРИНУДИТЕЛЬНЫМИ СТИЛЯМИ ========== */
@media (max-width: 768px) {
    /* Контейнер */
    .container {
        padding: 0 10px !important;
    }
    
    /* Шапка - принудительно компактная */
    .header {
        padding: 5px 0 !important;
    }
    
    .header .container {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 3px !important;
    }
    
    /* Логотип - минимальный размер */
    .logo {
        flex-direction: row !important;
        align-items: center !important;
        gap: 3px !important;
        margin-bottom: 0 !important;
    }
    
    .logo-image {
        width: 25px !important;
        height: 25px !important;
    }
    
    .logo-main {
        font-size: 0.9rem !important;
        letter-spacing: 0 !important;
    }
    
    .logo-sub {
        font-size: 0.7rem !important;
        margin-top: 0 !important;
    }
    
    .logo-small {
        display: none !important;
    }
    
    /* Навигация - компактная строка */
    .nav {
        order: 3 !important;
        width: 100% !important;
        justify-content: center !important;
        gap: 2px !important;
        margin: 2px 0 0 !important;
        flex-wrap: wrap !important;
    }
    
    .nav a {
        padding: 2px 4px !important;
        font-size: 0.55rem !important;
        background: rgba(212,46,60,0.1) !important;
        border-radius: 12px !important;
        white-space: nowrap !important;
    }
    
    /* Соцсети */
    .social-link {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.6rem !important;
    }
    
    /* Герой */
    .hero {
        padding: 20px 0 !important;
    }
    
    .hero-quote {
        padding: 15px !important;
        margin: 15px 0 !important;
    }
    
    .hero-quote p:first-child {
        font-size: 1.1rem !important;
    }
    
    .hero-quote p {
        font-size: 0.8rem !important;
        margin-bottom: 5px !important;
    }
    
    /* Заголовки секций */
    .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 20px !important;
    }
    
    /* Сетки */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    /* Карточки */
    .card {
        padding: 15px !important;
    }
    
    /* Жюри */
    .jury-photo {
        width: 80px !important;
        height: 80px !important;
        font-size: 1.8rem !important;
    }
    
    /* Архив */
    .archive-grid {
        grid-template-columns: 1fr !important;
    }
    
    .archive-item {
        height: 140px !important;
    }
    
    .archive-item span {
        font-size: 0.9rem !important;
    }
    
    /* Отзывы */
    .reviews-grid {
        grid-template-columns: 1fr !important;
    }
    
    .review-card {
        padding: 15px !important;
    }
    
    .review-avatar {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
    }
    
    .review-author {
        font-size: 0.9rem !important;
    }
    
    .review-date {
        font-size: 0.7rem !important;
    }
    
    .review-rating {
        font-size: 1rem !important;
    }
    
    .review-text {
        font-size: 0.85rem !important;
    }
    
    /* Личный кабинет */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .user-card {
        padding: 15px !important;
    }
    
    .user-avatar {
        width: 60px !important;
        height: 60px !important;
    }
    
    .application-card {
        padding: 12px !important;
    }
    
    .application-card h4 {
        font-size: 1rem !important;
    }
    
    .app-nomination {
        font-size: 0.8rem !important;
    }
    
    .app-status {
        font-size: 0.7rem !important;
        padding: 2px 8px !important;
    }
    
    /* Формы */
    .registration-form,
    .auth-form {
        padding: 15px !important;
    }
    
    .form-grid {
        gap: 10px !important;
    }
    
    .form-group label {
        font-size: 0.85rem !important;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
    }
    
    /* Контакты */
    .contacts-block {
        padding: 20px !important;
    }
    
    .contacts-block p {
        font-size: 0.9rem !important;
    }
    
    .organizer {
        font-size: 1rem !important;
    }
    
    /* Кнопки */
    .btn {
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
    }
    
    /* Админка */
    .admin-tabs {
        gap: 3px !important;
    }
    
    .tab {
        padding: 5px 8px !important;
        font-size: 0.65rem !important;
    }
    
    .admin-table {
        font-size: 0.75rem !important;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 5px !important;
    }
    
    /* Таймер */
    div[style*="position: fixed"][style*="bottom: 20px"] {
        bottom: 5px !important;
        right: 5px !important;
        padding: 4px 8px !important;
        font-size: 0.65rem !important;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .logo-image {
        width: 20px !important;
        height: 20px !important;
    }
    
    .logo-main {
        font-size: 0.8rem !important;
    }
    
    .logo-sub {
        font-size: 0.6rem !important;
    }
    
    .nav a {
        font-size: 0.5rem !important;
        padding: 1px 3px !important;
    }
    
    .hero-quote p:first-child {
        font-size: 1rem !important;
    }
    
    .hero-quote p {
        font-size: 0.75rem !important;
    }
    
    .section-title {
        font-size: 1.3rem !important;
    }
    
    .badge {
        font-size: 0.6rem !important;
        padding: 2px 5px !important;
    }
    
/* Таймер */
#timer-container {
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    #timer-container {
        bottom: 10px !important;
        right: 10px !important;
        left: 10px !important;
        width: auto !important;
        max-width: none !important;
        padding: 10px 15px !important;
        font-size: 0.9rem !important;
        border-radius: 30px !important;
    }
    
    #timer-event {
        font-size: 0.8rem !important;
        white-space: normal !important;
    }
}


