/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* CSS Variables */
:root {
    --primary-color: #0066cc;
    --secondary-color: #27b5ff; /* 00a8ff */
    --accent-color: #ff6b35;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
}

a {
    color: var(--primary-color);
}

a:hover {
    color: var(--secondary-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section */
.section {
    padding: 80px 0;
}

/* Dynamic alternating section backgrounds */
.section:nth-child(odd) {
    background: var(--white);
}

.section:nth-child(even) {
    background: var(--light-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 16px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--gray-700);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;

    margin-top: 70px;
    height: calc(100vh - 70px);
    min-height: calc(100vh - 70px);

    height: calc(100svh - 70px);
    min-height: calc(100svh - 70px);

}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: -2;
}

/*
.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="wave" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M0 50 Q25 25 50 50 T100 50 V100 H0 Z" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23wave)"/></svg>') repeat;
    animation: wave 20s linear infinite;
}
*/
/* @keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100px); }
} */

.waves-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30vh; /* 25% высоты экрана */
    min-height: 150px; /* Минимальная высота */
    overflow: hidden;
    z-index: -1;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
    background-position: 0 bottom;
    transform-origin: center bottom;
}

.wave1 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 88.7'%3E%3Cpath d='M800 56.9c-155.5 0-204.9-50-405.5-49.9-200 0-250 49.9-394.5 49.9v31.8h800v-31.8z' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E");
    animation: wave-animation 12s linear infinite alternate;
    background-size: 30% 100px; /* Увеличиваем волны */
}

.wave2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 88.7'%3E%3Cpath d='M800 56.9c-155.5 0-204.9-50-405.5-49.9-200 0-250 49.9-394.5 49.9v31.8h800v-31.8z' fill='rgba(255,255,255,0.15)'/%3E%3C/svg%3E");
    animation: wave-animation 8s linear infinite alternate;
    background-size: 40% 120px; /* Увеличиваем волны */
}

.wave3 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 88.7'%3E%3Cpath d='M800 56.9c-155.5 0-204.9-50-405.5-49.9-200 0-250 49.9-394.5 49.9v31.8h800v-31.8z' fill='rgba(255,255,255,0.2)'/%3E%3C/svg%3E");
    animation: wave-animation 6s linear infinite alternate;
    background-size: 40% 140px; /* Увеличиваем волны */
}

.wave4 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 88.7'%3E%3Cpath d='M800 56.9c-155.5 0-204.9-50-405.5-49.9-200 0-250 49.9-394.5 49.9v31.8h800v-31.8z' fill='rgba(255,255,255,0.25)'/%3E%3C/svg%3E");
    animation: wave-animation 4s linear infinite alternate;
    background-size: 40% 160px; /* Увеличиваем волны */
}

/* Адаптация для больших экранов */
@media (min-width: 1200px) {
    .waves-container {
        height: 30vh;
    }
    
    .wave1 {
        background-size: 30% 150px;
    }
    
    .wave2 {
        background-size: 40% 180px;
    }
    
    .wave3 {
        background-size: 40% 210px;
    }
    
    .wave4 {
        background-size: 40% 240px;
    }
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .waves-container {
        height: 40vh;
        min-height: 200px;
    }
    
    .wave1 {
        background-size: cover;
        animation: wave-animation 6s linear infinite alternate;
    }
    
    .wave2 {
        background-size: cover;
        animation: wave-animation 4s linear infinite alternate;
    }
    
    .wave3 {
        background-size: cover;
        animation: wave-animation 3s linear infinite alternate;
    }
    
    .wave4 {
        background-size: cover;
        animation: wave-animation 2s linear infinite alternate;
    }
}


@keyframes wave-animation {
    0% {
        transform: translateX(0) translateZ(0);
    }
    50% {
        transform: translateX(-25%) translateZ(0);
    }
    100% {
        transform: translateX(-50%) translateZ(0);
    }
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-logo {
    margin-bottom: 32px;
}

.hero-logo-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-xl);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: slideInUp 1s ease-out 0.2s both;
}

.hero-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    animation: slideInUp 1s ease-out 0.4s both;
}

.hero-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.125rem;
    font-weight: 500;
}

.hero-detail i {
    font-size: 1.25rem;
    color: var(--accent-color);
}

.hero-countdown {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
    animation: slideInUp 1s ease-out 0.6s both;
}

.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 20px 16px;
    min-width: 80px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.countdown-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: slideInUp 1s ease-out 0.8s both;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator {
    color: var(--white);
    font-size: 1.5rem;
    text-decoration: none;
    opacity: 0.7;
    transition: var(--transition);
}

.scroll-indicator:hover {
    opacity: 1;
    color: var(--white);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::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: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Event Info Section */
.event-info {
    background: var(--light-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.info-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.info-card a {
  text-decoration: none;
}

.info-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    color: var(--white);
    font-size: 1.5rem;
}

.event-info .info-icon {
    background: linear-gradient(135deg, var(--white), var(--secondary-color));
}


.info-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.info-card p {
    color: var(--gray-600);
    line-height: 1.6;
}


.info-icon .fas.fa-calendar-alt::before{
    content:"";
}

.info-icon .fas.fa-calendar-alt{
    background: url(images/logo-calendar.png);
    display: block;
    width: 82px;
    height: 82px;
    background-size: 82px;
}

.info-icon .fas.fa-map-marker-alt::before{
    content:"";
}

.info-icon .fas.fa-map-marker-alt{
    background: url(images/logo-map.png);
    display: block;
    width: 82px;
    height: 82px;
    background-size: 82px;
}

.info-icon .fas.fa-users::before{
    content:"";
}

.info-icon .fas.fa-users{
    background: url(images/sup-kolko.png);
    display: block;
    width: 82px;
    height: 82px;
    background-size: 82px;
}

.info-icon .fas.fa-handshake::before{
    content:"";
}

.info-icon .fas.fa-handshake{
    background: url(images/logo-bialoleka.png);
    display: block;
    width: 82px;
    height: 82px;
    background-size: 82px;
}
  
/* Categories Section */
.categories {
    background: var(--white);
}

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

.category-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-card.elite {
    border-left-color: var(--accent-color);
}

.category-card.junior {
    border-left-color: var(--success-color);
}

.category-card.youth {
    border-left-color: var(--warning-color);
}

.category-card.children {
    border-left-color: var(--info-color);
}

.category-card.amateur {
    border-left-color: var(--primary-color);
}

.category-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.category-age {
    font-size: 0.875rem;
    color: var(--gray-600);
    background: var(--gray-100);
    padding: 4px 12px;
    border-radius: var(--border-radius);
    display: inline-block;
    margin-bottom: 16px;
}

.category-races {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.race-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.race-item:hover {
    background: var(--gray-200);
}

.race-name {
    font-weight: 500;
    color: var(--dark-color);
}

.race-distance {
    font-weight: 600;
    color: var(--primary-color);
}

.info-note {
    margin-top:20px;
    text-align: left;
}

.important-note {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffeaa7;
    border-radius: var(--border-radius-lg);
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.note-icon {
    color: var(--warning-color);
    font-size: 1.5rem;
    margin-top: 4px;
}

.note-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.note-content p {
    color: var(--gray-700);
    line-height: 1.6;
}

/* Maps Section */
.maps {
    background: var(--light-color);
}

.maps-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.map-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

.map-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.map-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.map-item:hover .map-image {
    transform: scale(1.05);
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 32px 24px 24px;
    transform: translateY(0);
    transition: var(--transition);
}

.map-item:hover .map-overlay {
    transform: translateY(0);
}

.map-overlay h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.map-overlay p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 16px;
}

.map-view-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 8px 16px;
    font-size: 0.875rem;
}

.map-view-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

/* Pricing Section */
.pricing {
    background: var(--white);
}

.pricing-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.price-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    padding: 40px 32px;
}

.price-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.currency {
    font-size: 1.25rem;
    font-weight: 500;
}

.amount {
    font-size: 4rem;
    font-weight: 700;
}

.price-description {
    font-size: 1.125rem;
    opacity: 0.9;
}

.payment-info,
.bank-details {
    padding: 32px;
    border-bottom: 1px solid var(--gray-200);
}

.bank-details {
    border-bottom: none;
    background: var(--gray-50);
}

.payment-info h3,
.bank-details h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 16px;
}

.payment-note {
    background: var(--info-color);
    color: var(--white);
    padding: 12px 16px;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    margin-top: 12px;
}

.bank-info p {
    margin-bottom: 8px;
    color: var(--gray-700);
}

.bank-info strong {
    color: var(--dark-color);
}

/* Packages Section */
.packages {
    background: var(--light-color);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
}

.package-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.package-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--white);
    font-size: 1.25rem;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
}

.package-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.package-list {
    list-style: none;
}

.package-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--gray-700);
}

.package-list i {
    color: var(--success-color);
    font-size: 1rem;
}

/* Registration Section */
.registration {
    background: var(--white);
}

.registration-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    border: 1px solid var(--gray-200);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    max-width: 80vw;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-checkboxes {
    margin-bottom: 32px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.checkbox-group label {
    color: var(--gray-700);
    line-height: 1.5;
    cursor: pointer;
}

/* Infrastructure Section */
.infrastructure {
    background: var(--light-color);
}

.infrastructure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.infrastructure-item {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.infrastructure-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.infrastructure-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--white);
    font-size: 1.25rem;
}

.infrastructure-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.infrastructure-item p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* FAQ Section */
.faq {
    background: var(--white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    cursor: pointer;
    background: var(--gray-50);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--gray-100);
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.faq-question i {
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-slow);
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px;
    max-height: 400px;
}

.faq-answer p {
    color: var(--gray-700);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: var(--light-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 4px;
    min-width: 20px;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-map {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 400px;
}

.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-600);
    text-align: center;
    padding: 32px;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 32px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--gray-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--gray-700);
    color: var(--gray-400);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.modal-map-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 48px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    /* Первая секция не должна иметь padding-top */
    .hero {
        margin-top: 70px;
        height: calc(100vh - 70px);
        min-height: calc(100vh - 70px);

        height: calc(100svh - 70px);
        min-height: calc(100svh - 70px);
    }

    .hero-logo-img {
        width:120px;
        height:120px;
    }
    
    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-details {
        flex-direction: column;
        gap: 16px;
    }

    .hero-countdown {
        gap: 16px;
    }

    .countdown-item {
        min-width: 60px;
        padding: 16px 12px;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        display: flex;
        gap: 10px;
    }
    
    .info-card .info-text {
        width:75%;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .maps-gallery {
        grid-template-columns: 1fr;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .infrastructure-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-countdown {
        gap: 12px;
    }

    .countdown-item {
        min-width: 50px;
        padding: 12px 8px;
    }

    .countdown-number {
        font-size: 1.25rem;
    }

    .countdown-label {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .registration-form {
        padding: 24px;
    }

    .infrastructure-grid {
        grid-template-columns: 1fr;
    }
}


/* Regulations Section */
.regulations {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.regulations-content {
    max-width: 800px;
    margin: 0 auto;
}

.regulations-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.regulations-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.regulations-icon i {
    font-size: 2rem;
    color: white;
}

.regulations-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.regulations-card p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.regulations-actions {
    margin-bottom: 2.5rem;
}

.regulations-note {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    border: 1px solid #f59e0b;
}

.regulations-note .note-icon {
    width: 40px;
    height: 40px;
    background: #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.regulations-note .note-icon i {
    color: white;
    font-size: 1.2rem;
}

.regulations-note .note-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 0.5rem;
}

.regulations-note .note-content p {
    font-size: 1rem;
    color: #92400e;
    margin: 0;
    line-height: 1.6;
}


/* Sponsors Section */
.sponsors {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.sponsors-content {
    max-width: 1200px;
    margin: 0 auto;
}

.sponsor-category {
    margin-bottom: 4rem;
}

.sponsor-category:last-child {
    margin-bottom: 0;
}

.sponsor-category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.sponsor-category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 2px;
}

.main-partner {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.partner-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.partner-card:hover::before {
    transform: scaleX(1);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.partner-card.featured {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.partner-card.featured .partner-logo {
    width: initial;
    height: initial;
    background: none;
    box-shadow: none;
    gap: 5px;
}
.partner-card.featured .partner-logo img {
  width: 20%;
}

.partner-card.featured::before {
    background: rgba(255, 255, 255, 0.2);
    transform: scaleX(1);
}

.partner-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.partner-logo {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.partner-card.featured .partner-logo {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.partner-logo i {
    font-size: 2rem;
    color: white;
}

.partner-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.partner-card.featured h4 {
}

.partner-role {
    font-size: 0.9rem;
    font-weight: 600;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.partner-card.featured .partner-role {
}

.partner-description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.partner-card.featured .partner-description {
}

@media (max-width: 768px) {
    .sponsors-grid {
        grid-template-columns: 1fr;
    }
    
    .partner-card {
        padding: 2rem;
    }
    
    .sponsor-category-title {
        font-size: 1.5rem;
    }
}


/* Gallery Section */
.gallery {
    background: linear-gradient(135deg, #fafafa 0%, #f1f5f9 100%);
}

.gallery-content {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 300px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    color: white;
    width: 100%;
}

.gallery-info h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gallery-info p {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.gallery-view-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.gallery-view-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.gallery-view-btn i {
    margin-right: 0.5rem;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 2rem;
    width: 90%;
    max-width: 1000px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #3b82f6;
}

#lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: all;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-info {
    text-align: center;
    color: white;
    margin-top: 2rem;
    max-width: 600px;
}

.lightbox-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.lightbox-info p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    .lightbox-content {
        padding: 1rem;
    }
    
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }
    
    .lightbox-nav {
        padding: 0 1rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }
    .partner-card.featured .partner-logo img {
        width: 30%;
    }
}


/* Schedule Section */
.schedule {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.schedule-content {
    max-width: 900px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-time {
    flex: 0 0 150px;
    text-align: center;
}

.timeline-item:nth-child(even) .timeline-time {
    text-align: center;
}

.time-range {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.timeline-content {
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 1rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/*
.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid #3b82f6;
    border-radius: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -42px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -42px;
}
*/
.timeline-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    position: absolute;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -42px;
    top: 50%;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -42px;
    top: 50%;
}

.timeline-icon i {
    font-size: 1rem;
    color: white;
}

.timeline-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.timeline-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-details li {
    padding: 0.5rem 0;
    color: #64748b;
    font-size: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.timeline-details li::before {
    content: '•';
    color: #3b82f6;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Highlight styles for race starts */
.timeline-item.highlight .timeline-content {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
}

.timeline-item.highlight .timeline-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.timeline-item.highlight .time-range {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.timeline-item.highlight .timeline-content::before {
    border-color: #f59e0b;
}

/* Ceremony styles */
.timeline-item.ceremony .timeline-content {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border-color: #10b981;
}

.timeline-item.ceremony .timeline-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.timeline-item.ceremony .time-range {
    background: linear-gradient(135deg, #10b981, #059669);
}

.timeline-item.ceremony .timeline-content::before {
    border-color: #10b981;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 60px;
    }
    
    .timeline-item:nth-child(even) {
        flex-direction: column !important;
    }
    
    .timeline-time {
        flex: none;
        margin-bottom: 1rem;
    }
    
    .timeline-content {
        width: 100%;
        margin-left: 0;
    }
    /*
    .timeline-content::before {
        left: -42px !important;
        top: 2rem;
    }
    */
    .timeline-icon {
        left: -42px !important;
        top: 2rem !important;
    }
    
    .time-range {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}


/* About Section */
.about {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.about-icon i {
    font-size: 2rem;
    color: white;
}

.about-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.about-card p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-card p:last-child {
    margin-bottom: 0;
}

.mission-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mission-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.mission-list li:last-child {
    border-bottom: none;
}

.mission-list i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.mission-list span {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
}

.achievements-section,
.sections-info {
    margin-bottom: 4rem;
}

.achievements-section:last-child,
.sections-info:last-child {
    margin-bottom: 0;
}

.achievements-section h3,
.sections-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.achievements-section h3::after,
.sections-info h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 2px;
}

.achievements-grid,
.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.achievement-item,
.section-item {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-item::before,
.section-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.achievement-item:hover::before,
.section-item:hover::before {
    transform: scaleX(1);
}

.achievement-item:hover,
.section-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.section-item.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.section-item.active::before {
    background: rgba(255, 255, 255, 0.2);
    transform: scaleX(1);
}

.section-item.active:hover {
    transform: scale(1.05) translateY(-5px);
}

.achievement-icon,
.section-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.section-item.active .section-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.achievement-icon i,
.section-icon i {
    font-size: 1.8rem;
    color: white;
}

.achievement-item h4,
.section-item h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-item.active h4 {
    color: white;
}

.achievement-item p,
.section-item p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.section-item.active p {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-card {
        padding: 2rem;
    }
    
    .achievements-grid,
    .sections-grid {
        grid-template-columns: 1fr;
    }
    
    .achievement-item,
    .section-item {
        padding: 2rem;
    }
    
    .achievements-section h3,
    .sections-info h3 {
        font-size: 1.6rem;
    }
}


/* Downloads Section */
.downloads {
    background: linear-gradient(135deg, #fafafa 0%, #f1f5f9 100%);
}

.downloads-content {
    max-width: 1200px;
    margin: 0 auto;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.download-category {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    position:relative;
}

.download-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.category-title i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    position: absolute;
    top:8px;
    right:8px;
    width:36px;
    height:36px;
}

.download-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.download-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.download-item:hover {
    background: #f1f5f9;
    border-color: #3b82f6;
    transform: translateX(5px);
}

.download-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.download-icon i {
    font-size: 1.3rem;
    color: white;
}

.download-info {
    flex: 1;
}

.download-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.download-info p {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.file-size {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
}

.download-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn i {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .downloads-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .download-category {
        padding: 2rem;
    }
    
    .download-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .download-info {
        text-align: center;
    }
    
    .download-btn {
        align-self: center;
    }
    
    .category-title {
        font-size: 1.3rem;
        justify-content: center;
    }
}


/* Travel Section */
.travel {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.travel-content {
    max-width: 1200px;
    margin: 0 auto;
}

.travel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.travel-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.travel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.travel-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.travel-icon i {
    font-size: 2rem;
    color: white;
}

.travel-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
}

.transport-options {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.transport-option {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.transport-option:hover {
    background: #f1f5f9;
    border-color: #3b82f6;
}

.transport-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.transport-icon i {
    font-size: 1.5rem;
    color: white;
}

.transport-info {
    flex: 1;
}

.transport-info h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.transport-info p {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.route-tips {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 10px;
    border-left: 4px solid #3b82f6;
}

.route-tips h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.route-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.route-tips li {
    padding: 0.5rem 0;
    color: #64748b;
    position: relative;
    padding-left: 1.5rem;
}

.route-tips li::before {
    content: '→';
    color: #3b82f6;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.accommodation-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.accommodation-item {
    padding: 2rem;
    background: #f8fafc;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.accommodation-item:hover {
    background: #f1f5f9;
    border-color: #3b82f6;
    transform: translateX(5px);
}

.accommodation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.accommodation-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stars {
    color: #f59e0b;
    font-size: 1.1rem;
}

.price {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.accommodation-item p {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.booking-note {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    border: 1px solid #f59e0b;
}

.note-icon {
    width: 50px;
    height: 50px;
    background: #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.note-icon i {
    color: white;
    font-size: 1.3rem;
}

.note-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 1rem;
}

.note-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.note-content li {
    padding: 0.5rem 0;
    color: #92400e;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.note-content li::before {
    content: '•';
    color: #f59e0b;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.additional-info {
    margin-top: 4rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-item {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.info-item:hover::before {
    transform: scaleX(1);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.info-icon i {
    font-size: 1.8rem;
    color: white;
}

.info-item h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.info-item p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .travel-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .travel-card {
        padding: 1rem;
    }
    
    .transport-option {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding:0;
        position: relative;
    }
    
    .transport-icon {
        position: absolute;
        top:8px;
        right:8px;
        width: 36px;
        height: 36px;
    }
    
    .transport-icon i {
        font-size:1.2rem;
    }
    
    .transport-info h4 {
        padding-top: 1rem;
    }
    
    .accommodation-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .booking-note {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        padding: 2rem;
    }
}


/* Registration Form Enhancements */
.distance-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.distance-checkboxes .checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.distance-checkboxes input[type="checkbox"] {
    margin: 0;
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
}

input[type="file"] {
    padding: 8px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

input[type="file"]:hover {
    border-color: var(--primary-color);
}

input[type="file"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.25);
}

/* Enhanced Mobile Navigation Styles */
@media (max-width: 1200px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 0.5rem 2rem;
        margin: 0;
        width: 90%;
        text-align: center;
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: rgba(59, 130, 246, 0.1);
        color: #3b82f6;
    }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        padding: 0.5rem;
    }
    
    .nav-toggle .bar {
        width: 25px;
        height: 3px;
        background: #1e293b;
        margin: 3px 0;
        transition: 0.3s;
        border-radius: 2px;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Performance optimizations */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators */
*:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .card,
    .info-card,
    .category-card {
        border: 2px solid #000;
    }
}

/* Print styles */
@media print {
    .navbar,
    .back-to-top,
    .lightbox,
    .nav-toggle {
        display: none !important;
    }
    
    .section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Additional responsive improvements */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 1rem;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .nav-menu {
        height: calc(100vh - 60px);
        top: 60px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}
