/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a237e;
    --secondary-color: #283593;
    --accent-color: #e53935;
    --light-bg: #f8f9fa;
    --dark-text: #333;
    --light-text: #fff;
    --shadow: 0 2px 10px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--light-text);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
}

.btn:hover {
    background: #c62828;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn i {
    margin-right: 8px;
}

/* Цветовые вариации кнопок */
.save-btn, .view-btn {
    background: #43a047 !important;
}

.save-btn:hover, .view-btn:hover {
    background: #2e7d32 !important;
}

.cancel-btn {
    background: #546e7a !important;
    margin-left: 10px;
}

.cancel-btn:hover {
    background: #37474f !important;
}

.delete-btn {
    background: var(--accent-color) !important;
}

.delete-btn:hover {
    background: #c62828 !important;
}

.edit-btn {
    background: #1e88e5 !important;
    margin-right: 10px;
}

.edit-btn:hover {
    background: #1565c0 !important;
}

.more-btn, .download-btn {
    background: #4c75a3 !important;
}

.more-btn:hover, .download-btn:hover {
    background: #395c81 !important;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: var(--primary-color);
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

.hidden {
    display: none !important;
}

/* Telegram виджет */
.telegram-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #0088cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    text-decoration: none;
    transition: var(--transition);
}

.telegram-widget:hover {
    background: #006699;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* Кнопка админки - для десктопа в верхнем правом углу */
.admin-toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--light-text);
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.admin-toggle-btn:hover {
    background: #c62828;
    transform: scale(1.1);
}

/* Всплывающая админ-панель */
.admin-bottom-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--light-text);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transform: translateY(100%);
    transition: var(--transition);
    max-height: 80vh;
    overflow-y: auto;
}

.admin-bottom-panel.visible {
    transform: translateY(0);
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    border-bottom: 1px solid #e0e0e0;
}

.admin-panel-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.admin-close-btn {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.admin-close-btn:hover {
    background: rgba(255,255,255,0.2);
}

.admin-panel-content {
    padding: 20px;
}

.admin-form-section {
    max-width: 400px;
    margin: 0 auto;
}

.admin-login-btn {
    width: 100%;
    margin-top: 15px;
    background: #1e88e5 !important;
}

.admin-login-btn:hover {
    background: #1565c0 !important;
}

.login-group {
    margin-bottom: 15px;
}

.login-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--primary-color);
}

.login-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.admin-help-text {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #546e7a;
    text-align: center;
}

.admin-controls-panel {
    text-align: center;
}

.admin-welcome {
    margin-bottom: 20px;
}

.admin-welcome h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.admin-welcome p {
    color: #546e7a;
    font-size: 0.95rem;
}

.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-action-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-action-btn i {
    margin-right: 10px;
}

.admin-logout-btn {
    background: var(--accent-color) !important;
}

.admin-logout-btn:hover {
    background: #c62828 !important;
}

/* Стили для раздела Новостей */
.news-section {
    padding: 80px 0;
}

.news-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.news-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-item {
    background: var(--light-text);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    position: relative;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.news-header {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
}

.news-date {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.news-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-left: 10px;
}

.news-title {
    padding: 15px 20px 5px 20px;
    color: var(--primary-color);
    margin: 0;
    font-size: 1.3rem;
}

.news-content {
    padding: 0 20px 15px;
    color: #546e7a;
    line-height: 1.6;
}

.news-attachment {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 10px 0;
}

.news-attachment img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-preview {
    position: relative;
    cursor: pointer;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.play-icon:hover {
    background: rgba(0,0,0,0.7);
}

.news-link {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 20px 15px 20px;
    background: #4c75a3;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.news-link:hover {
    background: #395c81;
    transform: translateX(5px);
}

.admin-news-actions {
    padding: 0 20px 20px;
    display: flex;
    gap: 10px;
}

.vk-widget-section {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.section-subtitle {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* Стили для полного текста новости */
.news-full-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.news-full-overlay.active {
    opacity: 1;
    visibility: visible;
}

.news-full-content {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close-full-news {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-full-news:hover {
    color: var(--accent-color);
    background: #f5f5f5;
}

.news-full-header h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.news-full-meta {
    display: flex;
    gap: 15px;
    color: #546e7a;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.news-full-meta i {
    color: var(--accent-color);
    margin-right: 5px;
}

.news-full-image {
    width: 100%;
    height: 300px;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.news-full-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-full-text {
    color: #333;
    line-height: 1.8;
    margin-bottom: 25px;
}

.news-full-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.news-full-footer .btn {
    margin: 0;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #546e7a;
    font-size: 1.1rem;
}

/* Стили для кнопок фильтров */
.filter-btn {
    background: #e3f2fd;
    color: var(--primary-color);
    border: 1px solid #bbdefb;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}

.filter-btn:hover {
    background: #bbdefb;
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--light-text);
    border-color: var(--primary-color);
}

/* Адаптивное меню */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Шапка сайта */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.logos-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 8px 0;
    flex-wrap: wrap;
    align-items: center;
}

.logos-container img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

h1 {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    margin: 8px 0 12px;
}

nav {
    position: relative;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

nav ul li a {
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: var(--transition);
    display: block;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--light-text);
    transition: var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
    color: #ffeb3b;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

/* Адаптивное меню для мобильных устройств */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 15px;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    nav ul.active {
        right: 0;
    }
    
    nav ul li {
        width: 100%;
        padding: 15px 30px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    nav ul li a {
        display: block;
        width: 100%;
        text-align: left;
        padding: 5px 0;
    }
    
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Адаптивная позиция кнопки админки на мобильных устройствах */
    .admin-toggle-btn {
        bottom: 20px;
        top: auto;
        right: 20px;
        z-index: 1001;
        width: 45px;
        height: 45px;
    }
}

/* Основное содержание */
main {
    min-height: calc(100vh - 250px);
}

/* Параллакс-секции */
.parallax-section {
    min-height: 600px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--light-text);
    text-align: center;
}

.parallax-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 60px 0;
    width: 100%;
}

.parallax-section h2 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.parallax-section p {
    font-size: 1.6rem;
    max-width: 800px;
    margin: 0 auto 30px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* События */
.events {
    padding: 60px 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.event-card {
    background: var(--light-text);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    display: flex;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.event-date {
    background: var(--accent-color);
    color: var(--light-text);
    padding: 16px 12px;
    text-align: center;
    min-width: 80px;
}

.event-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
}

.event-date .month {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-content {
    padding: 16px;
    flex: 1;
}

.event-content h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.event-location,
.event-time {
    color: #546e7a;
    margin: 4px 0;
    font-size: 0.95rem;
}

.event-location i,
.event-time i {
    color: var(--accent-color);
    margin-right: 6px;
    font-size: 0.9rem;
}

.more-events {
    text-align: center;
    margin-top: 20px;
}

/* Секция достижений */
.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 25px;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.achievement-card:hover {
    transform: translateY(-5px);
}

.achievement-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.achievement-text {
    font-size: 1.1rem;
}

/* О Федерации */
.about {
    background: #f1f8e9;
    padding: 60px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.about-text p {
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.7;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Стили для раздела Соревнования */
.competitions-section {
    padding: 80px 0;
}

.competitions-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.competitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.competition-card {
    background: var(--light-text);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.competition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.competition-header {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
}

.competition-date {
    text-align: center;
}

.competition-date .day {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.competition-date .month-year {
    font-size: 1rem;
    opacity: 0.9;
}

.competition-label {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    align-self: center;
}

.motocross {
    background: rgba(229, 57, 53, 0.2);
}

.supermoto {
    background: rgba(25, 118, 210, 0.2);
}

.motodzhimkhana {
    background: rgba(46, 125, 50, 0.2);
}

.enduro {
    background: rgba(123, 31, 162, 0.2);
}

.sxcup {
    background: rgba(255, 152, 0, 0.2);
}

.competition-title {
    padding: 15px 20px;
    color: var(--primary-color);
    margin: 0;
    font-size: 1.3rem;
}

.competition-details {
    padding: 0 20px 15px;
    color: #546e7a;
}

.competition-details p {
    margin: 5px 0;
    display: flex;
    align-items: center;
}

.competition-details i {
    color: var(--accent-color);
    margin-right: 8px;
    width: 20px;
}

.competition-description {
    padding: 0 20px 15px;
    color: #546e7a;
    font-size: 0.95rem;
    line-height: 1.6;
}

.competition-actions {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.form-container {
    background: var(--light-text);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

#form-title {
    margin-bottom: 25px;
    color: var(--primary-color);
    text-align: center;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--light-text);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.empty-content {
    max-width: 600px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.empty-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.empty-content p {
    color: #546e7a;
    font-size: 1.1rem;
}

/* Стили для раздела Нормативных документов */
.documents-section {
    padding: 80px 0;
}

.documents-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.documents-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #e3f2fd;
    color: var(--primary-color);
    border: 1px solid #bbdefb;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}

.filter-btn:hover {
    background: #bbdefb;
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--light-text);
    border-color: var(--primary-color);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.document-card {
    background: var(--light-text);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.document-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    padding: 20px;
    text-align: center;
    font-size: 2.5rem;
}

.document-content {
    padding: 20px;
    flex-grow: 1;
}

.document-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.document-meta {
    display: flex;
    gap: 15px;
    color: #546e7a;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.document-meta i {
    color: var(--accent-color);
    margin-right: 5px;
}

.document-description {
    color: #546e7a;
    line-height: 1.6;
    margin-bottom: 15px;
}

.document-actions {
    padding: 0 20px 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.file-hint {
    font-size: 0.85rem;
    color: #546e7a;
    margin-top: 5px;
}

/* Цвета для разных типов документов */
.regulation .document-icon {
    background: linear-gradient(135deg, var(--accent-color), #c62828);
}

.order .document-icon {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
}

.position .document-icon {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
}

.other .document-icon {
    background: linear-gradient(135deg, #6a1b9a, #4a148c);
}

/* Стили для раздела Дисциплин */
.disciplines-section {
    padding: 80px 0;
}

.disciplines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.discipline-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 350px;
    position: relative;
}

.discipline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.discipline-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.discipline-overlay {
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 20px;
    color: white;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transition: all 0.3s ease;
}

.discipline-card:hover .discipline-overlay {
    background: linear-gradient(transparent, rgba(0,0,0,0.95));
}

.discipline-name {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.discipline-preview {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

/* Цвета для разных дисциплин */
.motocross .discipline-overlay {
    background: linear-gradient(transparent, rgba(229, 57, 53, 0.85));
}

.supercross .discipline-overlay {
    background: linear-gradient(transparent, rgba(25, 118, 210, 0.85));
}

.extreme-enduro .discipline-overlay {
    background: linear-gradient(transparent, rgba(46, 125, 50, 0.85));
}

.motodzhimkhana .discipline-overlay {
    background: linear-gradient(transparent, rgba(123, 31, 162, 0.85));
}

.track-racing .discipline-overlay {
    background: linear-gradient(transparent, rgba(255, 152, 0, 0.85));
}

.motorally .discipline-overlay {
    background: linear-gradient(transparent, rgba(74, 20, 140, 0.85));
}

/* Контакты */
.contacts-section {
    padding: 60px 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-card {
    display: flex;
    margin-bottom: 20px;
    background: var(--light-text);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateX(5px);
}

.contact-icon {
    background: #e3f2fd;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 1.3rem;
}

.contact-details h3 {
    color: var(--primary-color);
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.contact-details p {
    margin: 3px 0;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.contact-details i {
    color: var(--accent-color);
    margin-right: 6px;
    width: 18px;
    font-size: 0.9rem;
}

.contact-map h3 {
    margin-bottom: 16px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.map-placeholder {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.map-placeholder img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

.map-note {
    color: #546e7a;
    font-style: italic;
    font-size: 0.9rem;
}

.contact-form-section {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 30px;
}

.contact-form-section h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 2rem;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

/* Футер */
footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    padding: 40px 0 15px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ffeb3b;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: #ffeb3b;
}

.footer-social .social-icons {
    display: flex;
    gap: 12px;
    margin: 15px 0;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-icon.vk {
    background: #4c75a3;
    color: var(--light-text);
}

.social-icon.telegram {
    background: #0088cc;
    color: var(--light-text);
}

.social-icon:hover {
    transform: translateY(-3px);
}

.footer-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.footer-logos img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.copyright {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

/* Уведомления */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 4px;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transform: translateX(120%);
    transition: var(--transition);
    z-index: 10000;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #43a047;
}

.notification.error {
    background: var(--accent-color);
}

.notification.info {
    background: #1e88e5;
}

.close-notification {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 15px;
}

.close-notification:hover {
    opacity: 0.8;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .admin-toggle-btn {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .admin-panel-content {
        padding: 15px;
    }
    
    .admin-actions {
        gap: 10px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .parallax-section h2 {
        font-size: 2.2rem;
    }
    
    .parallax-section p {
        font-size: 1.3rem;
    }
    
    .about-content,
    .contacts-grid,
    .disciplines-grid,
    .news-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .admin-toggle-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 15px;
        top: auto;
        right: 15px;
    }
    
    .admin-panel-header h3 {
        font-size: 1rem;
    }
    
    .admin-actions {
        gap: 8px;
    }
    
    .admin-action-btn {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .logos-container {
        flex-direction: row;
        overflow-x: auto;
        padding: 6px 0;
        margin: 6px 0;
        justify-content: flex-start;
    }
    
    .logos-container img {
        height: 40px;
        min-width: 65px;
        margin: 0 6px;
        flex-shrink: 0;
    }
    
    h1 {
        font-size: 1.25rem;
        margin-top: 6px;
        margin-bottom: 10px;
    }
    
    .parallax-section h2 {
        font-size: 1.6rem;
    }
    
    .parallax-section p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        min-width: 100%;
    }
    
    .competition-actions,
    .document-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .notification {
        left: 10px;
        right: 10px;
        bottom: 10px;
        transform: translateY(120%);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .discipline-card {
        height: 300px;
    }
    
    .discipline-name {
        font-size: 1.6rem;
    }
    
    .discipline-preview {
        font-size: 1rem;
    }
    
    .news-item {
        margin-bottom: 20px;
    }
    
    .news-attachment {
        height: 150px;
    }
    
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .news-date {
        margin-bottom: 5px;
    }
    
    .admin-news-actions {
        flex-direction: column;
    }
    
    .section-subtitle {
        font-size: 1.5rem;
    }
}
