/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

a {
    color: #e67e00;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #fcd604, #ffde45);
    color: #000;
    padding: 40px 0;
    text-align: center;
}

.main-title {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.promo-block {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-direction: row;
}

.promo-code {
    font-size: 1.5em;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    border-radius: 5px;
    color: #000;
}

.copy-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.copy-icon {
    cursor: pointer;
    width: 24px;
    height: 24px;
    transition: transform 0.2s;
}

.copy-icon.copied {
    transform: scale(1.2);
}

.copy-text {
    font-size: 1em;
    font-weight: 500;
    color: #000;
    cursor: pointer;
    transition: color 0.2s;
}

.copy-text.copied {
    color: #28a745;
}

.copy-text:hover {
    color: #333;
}

.promo-instruction {
    text-align: center;
    margin-top: 10px;
    font-size: 1.1em;
    color: #000;
}

.promo-instruction a {
    color: #e67e00;
    font-weight: 600;
    word-break: break-word;
}

.promo-instruction a:hover {
    color: #cc7000;
    text-decoration: underline;
}

/* Main content */
.main-content {
    padding: 40px 0;
}

.intro-section, .events-section, .steps-section, .requirements-section, .faq-section, .video-section {
    margin-bottom: 40px;
}

.highlight {
    font-weight: 600;
    color: #e67e00;
}

.events-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.events-categories, .requirements-list, .steps-list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.events-categories {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.event-category {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    text-align: center;
}

.event-icon-concert, .event-icon-theater, .event-icon-exhibition, .event-icon-sport {
    font-size: 2em;
    margin-bottom: 10px;
}

.cta-text {
    margin-bottom: 20px;
    font-weight: 500;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fcd604;
    color: #000;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #e6c100;
    text-decoration: none;
}

.btn-secondary {
    background-color: #28a745;
    margin-left: 10px;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #218838;
    color: #fff;
}

.discount-block {
    background: #f0f0f0;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.final-text {
    font-weight: 500;
    color: #555;
}

/* Registration Image */
.registration-image {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.registration-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.registration-caption {
    margin-top: 15px;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

/* Video Section */
.video-section {
    text-align: center;
    margin: 40px 0;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 853px;
    margin: 0 auto;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-container iframe {
    width: 100%;
    height: 480px;
    border: none;
}

.video-caption {
    margin-top: 15px;
    color: #666;
    font-size: 0.9em;
}

/* FAQ Section */
.faq-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #e67e00;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.faq-item {
    background: #f9f9f9;
    border-radius: 5px;
    padding: 15px;
    position: relative;
}

.faq-checkbox {
    display: none;
}

.faq-question {
    font-size: 1.2em;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
}

.accordion-icon {
    margin-right: 10px;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-answer {
    font-size: 1em;
    color: #666;
    line-height: 1.5;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

/* Аккордеон работает через JavaScript */
.faq-item.active .accordion-icon {
    transform: rotate(90deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Footer */
.footer {
    background-color: #333;
    padding: 20px 0;
    color: #fff;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

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

.footer-copy {
    font-size: 0.9em;
}

/* 404 Page Styles */
.error-page .header {
    padding: 60px 0;
}

.error-page .main-title {
    font-size: 3em;
    margin-bottom: 30px;
}

.error-page .btn {
    margin: 10px 5px;
}

/* Responsive design */
@media (max-width: 768px) {
    .events-categories {
        flex-direction: column;
    }

    .main-title {
        font-size: 2em;
    }

    .events-section h2 {
        font-size: 1.5em;
    }

    .faq-section h2 {
        font-size: 1.5em;
    }

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

    .faq-question {
        font-size: 1.1em;
    }

    .faq-answer {
        font-size: 0.95em;
    }

    .promo-block {
        flex-direction: column;
        text-align: center;
    }

    .promo-code {
        margin-bottom: 10px;
    }

    .copy-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        white-space: nowrap;
        width: auto;
        margin: 0 auto;
    }

    .copy-icon, .copy-text {
        display: inline-block;
        vertical-align: middle;
    }

    .video-container iframe {
        height: 300px;
    }

    .promo-instruction {
        font-size: 1em;
        padding: 0 10px;
    }

    /* Mobile link break */
    .steps-list a {
        word-break: break-all;
        display: inline-block;
        max-width: 100%;
    }

    /* 404 Page Mobile Styles */
    .error-page .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
        text-align: center;
    }

    .error-page .btn-secondary {
        margin-left: 0;
        margin-top: 20px;
    }

    body {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .container {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .video-container iframe {
        height: 250px;
    }
    
    .promo-instruction {
        font-size: 0.9em;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    /* 404 Page Mobile Styles */
    .error-page .main-title {
        font-size: 2.5em;
    }
}

@media (min-width: 769px) {
    .registration-image img {
        max-width: 50%;
    }
}