/* Добавляем в начало файла для плавной прокрутки */
html {
    scroll-behavior: smooth;
}

/* Остальные стили остаются без изменений */
/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Основной контент */
main {
    min-height: 60vh;
}

/* Слайдер */
.slider-section {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 0px; /* Добавляем отступ сверху равный высоте логотипа */
}

.slider {
    position: relative;
    height: 550px; /* Уменьшаем высоту слайдера на 60px */
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slide-content {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    max-width: 80%;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Адаптивность для слайдера */
@media (max-width: 768px) {
    .slider {
        height: 300px;
    }
    
    .slide-content {
        bottom: 20px;
        padding: 15px;
    }
    
    .slide-content h2 {
        font-size: 1.2rem;
    }
    
    .slider-btn {
        padding: 8px 12px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .slider {
        height: 250px;
    }
    
    .slide-content {
        padding: 10px;
    }
    
    .slide-content h2 {
        font-size: 1rem;
    }
}

/* Новости */
.news-section {
    padding: 60px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.news-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #182082;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    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.1);
}

.news-card h3 {
    padding: 20px;
    font-size: 1.2rem;
    color: #333;
}

.read-more {
    background: #9b4351;
    color: white;
    border: none;
    padding: 12px 24px;
    margin: 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 1rem;
}

.read-more:hover {
    background: #782a36;
}

.all-news-btn {
    background: #182082;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.all-news-btn:hover {
    background: #0f1559;
}

/* Стили для модального окна регистрации */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-content h2 {
    color: #182082;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #182082;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
}

.checkbox-group label {
    font-weight: normal;
    font-size: 0.85rem;
    line-height: 1.4;
}

.submit-btn {
    background: #182082;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #0f1559;
}

/* Стили для расширенного модального окна регистрации */
.large-modal {
    max-width: 900px !important;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.form-row:has(.remove-distance-group) {
    grid-template-columns: 1fr 1fr auto;
}

.form-group input:invalid {
    border-color: #ff4444;
}

.form-group input:valid {
    border-color: #00c851;
}

.remove-distance-group {
    display: flex;
    align-items: flex-end;
}

.remove-distance-btn {
    background: #ff4444;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.3s;
}

.remove-distance-btn:hover {
    background: #cc0000;
}

/* Блоки спортсменов и дистанций */
.athlete-block {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #182082;
}

.distance-block {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.distance-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.add-distance-btn,
.add-athlete-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
    margin-top: 10px;
}

.add-distance-btn:hover,
.add-athlete-btn:hover {
    background: #218838;
}

/* Блок с ценой */
.price-block {
    background: #e9ecef;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.price-total {
    font-size: 1.5rem;
    font-weight: bold;
    color: #182082;
}

/* Чекбоксы */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
}

.checkbox-group label {
    font-weight: normal;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #333;
}

/* Информация об оплате */
.payment-info {
    text-align: center;
    margin: 20px 0;
}

.payment-info p {
    margin-bottom: 10px;
    color: #666;
}

.payment-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.payment-link {
    color: #182082;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.payment-link:hover {
    color: #9b4351;
    text-decoration: underline;
}

.submit-btn {
    background: #182082;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 20px;
    width: 100%;
}

.submit-btn:hover {
    background: #0f1559;
}

.submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.athlete-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #182082;
}

.athlete-header h3 {
    color: #182082;
    margin: 0;
    font-size: 1.2rem;
}

.remove-athlete-btn {
    background: #ff4444;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s;
}

.remove-athlete-btn:hover {
    background: #cc0000;
}

/* Индикатор сохранения */
.saving-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    z-index: 10001;
    display: none;
}

.saving-indicator.show {
    display: block;
    animation: fadeOut 2s ease-in-out;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

/* Модальное окно выбора соревнований */
.competition-select-modal {
    max-width: 600px !important;
    text-align: center;
}

.competition-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.competition-btn {
    background: linear-gradient(135deg, #182082, #9b4351);
    color: white;
    border: none;
    padding: 30px 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.competition-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(24, 32, 130, 0.3);
}

.competition-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.competition-date {
    font-size: 1.1rem;
    opacity: 0.9;
}

.competition-location {
    font-size: 1rem;
    opacity: 0.8;
}

/* Стили для страниц контента */
.content-page {
    min-height: 60vh;
}

.banner-section {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-title {
    text-align: center;
    font-size: 2.5rem;
    color: #182082;
    margin-bottom: 40px;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
}

.content-text p {
    margin-bottom: 20px;
}

/* Стили для страниц документов */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.document-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.document-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: #182082;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.document-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #182082;
    margin-bottom: 10px;
}

.document-size {
    font-size: 0.9rem;
    color: #666;
}

/* Стили для модального окна контактов */
.contacts-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item h3 {
    color: #182082;
    margin-bottom: 10px;
}

.contact-item strong {
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.contact-item a {
    color: #182082;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #9b4351;
}

.modal-social-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.modal-social-links .social-link {
    background: #182082;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.modal-social-links .social-link:hover {
    background: #9b4351;
}

/* Стили для модального окна пожертвований */
.donation-modal {
    max-width: 500px !important;
}

.donation-description {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}

.amount-section {
    margin-bottom: 25px;
}

.amount-section label {
    display: block;
    margin-bottom: 15px;
    font-weight: bold;
    color: #182082;
}

.preset-amounts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.preset-amount {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.preset-amount:hover {
    border-color: #182082;
    background: #f0f2ff;
}

.preset-amount.active {
    background: #182082;
    color: white;
    border-color: #182082;
}

.custom-amount-group {
    margin-top: 15px;
}

.amount-input-wrapper {
    position: relative;
    max-width: 200px;
}

.amount-input-wrapper input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.1rem;
    text-align: center;
}

.amount-input-wrapper .currency {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-weight: bold;
}

.donation-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.donation-info ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.donation-info li {
    margin-bottom: 5px;
    color: #666;
}

.donate-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: bold;
}

.donate-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.payment-security {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
}

/* Стили для страницы новостей */
.news-archive {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #182082;
}

.news-date {
    color: #9b4351;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.news-archive-title {
    color: #182082;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.news-archive-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more-link {
    color: #182082;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #9b4351;
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .news-section {
        padding: 40px 15px;
    }
    
    .news-section h2 {
        font-size: 2rem;
    }
    
    .news-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .banner-section {
        height: 300px;
    }
    
    .content-section {
        padding: 40px 15px;
    }
    
    .content-title {
        font-size: 2rem;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-content {
        margin: 20px auto;
        padding: 20px;
        width: 95%;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 5px;
    }
    
    .large-modal {
        margin: 20px auto;
        padding: 20px;
        width: 95%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .form-row:has(.remove-distance-group) {
        grid-template-columns: 1fr;
    }
    
    .remove-distance-group {
        justify-content: center;
    }
    
    .payment-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .athlete-block {
        padding: 15px;
    }
    
    .competition-buttons {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .competition-btn {
        padding: 20px 15px;
        min-height: 120px;
    }
    
    .competition-title {
        font-size: 1.3rem;
    }
    
    .preset-amounts {
        grid-template-columns: 1fr;
    }
    
    .donation-modal {
        margin: 20px auto;
        padding: 20px;
    }
    
    .news-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .news-section {
        padding: 30px 10px;
    }
    
    .news-section h2 {
        font-size: 1.8rem;
    }
}
/* Стили для видео контейнера в СЛАЙДЕРЕ */
.slider-section .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 1;
}

.slider-section .video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Убедимся, что изображения и видео в СЛАЙДЕРЕ занимают всю область слайда */
.slider-section .slide img,
.slider-section .video-container {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Для корректного отображения видео в СЛАЙДЕРЕ на мобильных устройствах */
@media (max-width: 768px) {
    .slider-section .video-container iframe {
        object-fit: cover;
    }
}
/* Стили для кнопки реквизитов */
.payment-details-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    width: 100%;
    transition: background-color 0.3s;
}

.payment-details-btn:hover {
    background: #218838;
}

/* Стили для модального окна реквизитов */
.payment-details-content {
    margin: 20px 0;
}

.payment-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.payment-detail-item:last-child {
    border-bottom: none;
}

.payment-detail-item strong {
    min-width: 120px;
    color: #333;
}

.payment-detail-item span {
    text-align: right;
    font-family: monospace;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid #e9ecef;
}

.payment-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
}

.payment-notice p {
    margin: 0;
    color: #856404;
}