/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e8e8e8;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a3a 50%, #2d1b4e 100%);
    min-height: 100vh;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #0d1421 0%, #1a1a3a 50%, #2d1b4e 100%);
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    width: 100%;
    box-sizing: border-box;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #e8e8e8;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    color: #da70d6;
}

.logo img {
    width: 100px;
    height: 50px;
    transition: all 0.3s ease;
}

.logo:hover img {
    transform: scale(1.1);
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(45deg, #da70d6, #ff69b4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav a {
    color: #e8e8e8;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(218, 112, 214, 0.3), transparent);
    transition: left 0.5s ease;
}

.nav a:hover::before {
    left: 100%;
}

.nav a:hover {
    background: linear-gradient(135deg, #da70d6, #ff69b4);
    color: #0a0e27;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(218, 112, 214, 0.4);
}

/* Register Button in Navigation */
.nav-register-btn {
    display: none; /* Hidden on desktop by default */
}

.nav-register-btn::before {
    display: none;
}

.nav-register-btn:hover {
    background: linear-gradient(135deg, #ffd1ff, #ff82c9) !important;
    color: #0a0e27 !important;
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Desktop Register Button */
.register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0a0e27;
    text-decoration: none;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ff9dff, #ff69b4);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.4);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    white-space: nowrap;
}

.register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 105, 180, 0.6);
    background: linear-gradient(135deg, #ffd1ff, #ff82c9);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Banner Styles */
.banner {
    width: 100%;
    object-fit: cover;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.banner:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(218, 112, 214, 0.2);
}

/* Banner Carousel Styles */
.banner-carousel {
    width: 100%;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: #0a0e27;
}

.banner-carousel-link {
    display: block;
    width: 100%;
    position: relative;
    text-decoration: none;
    padding-top: 20.833%; /* Соотношение 1920:400 = 4.8:1, что дает примерно 20.833% */
}

.banner-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 1s ease-in-out;
    border-radius: 15px;
}

.banner-carousel-img.active {
    opacity: 1;
}

.banner-carousel:hover .banner-carousel-img.active {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(218, 112, 214, 0.2);
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
    .banner-carousel-link {
        padding-top: 30%; /* Более высокий баннер на мобильных */
    }
}



/* Dynamically injected CTA buttons */
.cta-insert {
    margin: 45px auto;
    padding: 30px;
    max-width: 720px;
    border-radius: 24px;
    border: 1px solid rgba(218, 112, 214, 0.4);
    background: linear-gradient(145deg, rgba(13, 20, 33, 0.95), rgba(34, 18, 52, 0.85));
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-insert::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 55%);
    pointer-events: none;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0a0e27;
    text-decoration: none;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ff9dff, #ff69b4);
    border-radius: 999px;
    box-shadow: 0 15px 35px rgba(255, 105, 180, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    position: relative;
    z-index: 1;
}

.cta-link:hover,
.cta-link:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 25px 45px rgba(255, 105, 180, 0.5);
    background: linear-gradient(135deg, #ffd1ff, #ff82c9);
}

/* Section Styles */
section {
    background: linear-gradient(135deg, rgba(13, 20, 33, 0.8) 0%, rgba(26, 26, 58, 0.6) 100%);
    margin: 40px 0;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(218, 112, 214, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

section:hover {
    border-color: rgba(218, 112, 214, 0.4);
    box-shadow: 0 15px 40px rgba(218, 112, 214, 0.1);
    transform: translateY(-5px);
}

/* Typography */
h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #da70d6, #ff69b4, #9370db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    text-shadow: 0 0 30px rgba(218, 112, 214, 0.5);
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #da70d6;
    border-left: 4px solid #ff69b4;
    padding-left: 20px;
    position: relative;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ff69b4, #da70d6);
    border-radius: 2px;
}

p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d0d0d0;
}

/* Lists */
ul, ol {
    margin: 20px 0;
    padding-left: 30px;
}

li {
    margin-bottom: 10px;
    color: #d0d0d0;
    position: relative;
}
ol li {
    marker: none;
    list-style-type: none;
}

ul li::before {
    content: '✦';
    color: #da70d6;
    font-weight: bold;
    position: absolute;
    left: -20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

ol li {
    counter-increment: list-counter;
}

ol {
    counter-reset: list-counter;
}

ol li::before {
    content: counter(list-counter);
    color: #ff69b4;
    font-weight: bold;
    position: absolute;
    left: -25px;
    background: linear-gradient(45deg, #da70d6, #ff69b4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0d1421 0%, #1a1a3a 50%, #2d1b4e 100%);
    margin-top: 60px;
    padding: 40px 0;
    border-top: 2px solid rgba(218, 112, 214, 0.3);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #da70d6, #ff69b4, #da70d6, transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-text {
    color: #b0b0b0;
    font-size: 1rem;
    margin-bottom: 20px;
}


.copyright {
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid rgba(218, 112, 214, 0.2);
    padding-top: 20px;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    width: 35px;
    height: 35px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #da70d6;
    margin: 4px auto;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 1024px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hide desktop navigation */
    .nav {
        display: none;
    }
    
    /* Hide desktop register button on mobile */
    .register-btn.desktop-only {
        display: none !important;
    }
    
    /* Mobile navigation */
    .nav.mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, #0d1421 0%, #1a1a3a 50%, #2d1b4e 100%);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    .nav.mobile-nav.open {
        transform: translateX(0);
    }
    
    .nav.mobile-nav a {
        display: block;
        padding: 15px 30px;
        font-size: 1.2rem;
        color: #e8e8e8;
        text-decoration: none;
        text-align: center;
        background: rgba(218, 112, 214, 0.1);
        border: 1px solid rgba(218, 112, 214, 0.3);
        border-radius: 25px;
        min-width: 200px;
        transition: all 0.3s ease;
    }
    
    .nav.mobile-nav a:hover {
        background: linear-gradient(135deg, #da70d6, #ff69b4);
        color: #0a0e27;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(218, 112, 214, 0.3);
    }
    
    /* Mobile register button styling */
    .nav.mobile-nav .nav-register-btn {
        display: block; /* Show only in mobile menu */
        background: linear-gradient(135deg, #ff9dff, #ff69b4) !important;
        color: #0a0e27 !important;
        font-size: 1.3rem;
        padding: 18px 40px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(255, 105, 180, 0.5);
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .nav.mobile-nav .nav-register-btn:hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 15px 40px rgba(255, 105, 180, 0.7) !important;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    section {
        padding: 25px;
        margin: 25px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .banner {
        margin: 20px 0;
    }
    
    .banner-carousel {
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px 10px;
    }
    
    section {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #0a0e27;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #da70d6, #ff69b4);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff69b4, #da70d6);
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover Effects */
section:hover h2 {
    color: #ff69b4;
    transition: color 0.3s ease;
}

/* Focus States for Accessibility */
.nav a:focus,
.footer-links a:focus {
    outline: 2px solid #da70d6;
    outline-offset: 2px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #da70d6, #ff69b4);
    border: none;
    border-radius: 50%;
    color: #0a0e27;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(218, 112, 214, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(218, 112, 214, 0.5);
    background: linear-gradient(135deg, #ff69b4, #da70d6);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

/* Mobile adjustments for back to top button */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .back-to-top {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }
}
