* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --neon-blue: #00f2fe;
    --neon-pink: #f5576c;
    --neon-purple: #764ba2;
    --neon-cyan: #4facfe;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-light: #6B7280;
    --border-color: rgba(255, 255, 255, 0.1);
    --success-green: #10B981;
    --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.5);
    --shadow-neon: 0 0 20px rgba(0, 242, 254, 0.6);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
        opacity: 0.5;
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
        opacity: 0.4;
    }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 20px auto;
    padding: 0 15px;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 25px 25px 0 0;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.5) 0%, 
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.5) 100%);
    border-radius: 27px 27px 0 0;
    z-index: 1;
}

@keyframes rainbowBorder {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.header::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.5; }
}

.header-content {
    position: relative;
    z-index: 1;
}

.logo-section {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.main-logo {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(102, 126, 234, 0.5));
    animation: none;
}

@keyframes logoGlow {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1A1A1A;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes titleShine {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4A5568;
    margin-bottom: 15px;
    line-height: 1.5;
}

.event-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 50px;
    color: #1A1A1A;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.6);
}

.icon {
    width: 24px;
    height: 24px;
    color: #764ba2;
}

.form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 25px 20px;
    border-radius: 0 0 25px 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-top: none;
    position: relative;
}

.form-section {
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.form-section::before {
    display: none;
}

.form-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

.form-section:hover::before {
    display: none;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1A1A1A;
    margin-bottom: 16px;
    position: relative;
    padding-left: 35px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes titleGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.section-title::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: #1A1A1A;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@keyframes iconPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.6),
                    0 0 40px rgba(245, 87, 108, 0.4);
        transform: translateY(-50%) scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.8),
                    0 0 60px rgba(245, 87, 108, 0.6);
        transform: translateY(-50%) scale(1.1);
    }
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: #1A1A1A;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #1A1A1A;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1),
                0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.form-input:hover,
.form-textarea:hover {
    border-color: #764ba2;
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.1);
}

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

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    font-weight: 500;
    color: #1A1A1A;
    border: 1px solid transparent;
}

.radio-label:hover,
.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.1);
}

.radio-custom,
.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #1A1A1A;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: var(--white);
}

.checkbox-custom {
    border-radius: 6px;
}

input[type="radio"],
input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

input[type="radio"]:checked + .radio-custom {
    background: #1A1A1A;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--white);
    border-radius: 50%;
}

input[type="checkbox"]:checked + .checkbox-custom {
    background: #1A1A1A;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 16px;
    font-weight: bold;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.submit-btn {
    background: #1A1A1A;
    color: var(--white);
    border: none;
    padding: 16px 50px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5), 
                0 0 40px rgba(245, 87, 108, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

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

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    background: #2D3748;
}

.submit-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

.success-message {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 50px 40px;
    border-radius: 30px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    margin-top: 30px;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.success-content {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    color: var(--success-green);
    margin: 0 auto 20px;
    animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(0deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.success-content h3 {
    font-size: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-weight: 800;
}

.success-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.reset-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: var(--white);
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4);
}

.reset-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(245, 87, 108, 0.5);
}

.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--white);
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .container {
        max-width: 85% !important; /* очень узкий контейнер */
        margin: 8px auto 16px;
        padding: 0 8px;
    }

    .header {
        padding: 14px 12px;
        border-radius: 14px 14px 0 0;
        background: rgba(255, 255, 255, 0.35) !important; /* ОЧЕНЬ прозрачный */
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
    }

    .title {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .subtitle {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .event-info {
        gap: 8px;
    }

    .info-item {
        padding: 6px 12px;
        font-size: 0.8rem;
        background: rgba(255, 255, 255, 0.6) !important;
    }

    .form {
        padding: 14px 10px;
        border-radius: 0 0 14px 14px;
        background: rgba(255, 255, 255, 0.35) !important; /* ОЧЕНЬ прозрачный */
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
    }

    .form-section {
        padding: 10px 8px;
        margin-bottom: 10px;
        background: rgba(255, 255, 255, 0.25) !important; /* ОЧЕНЬ прозрачный */
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .section-title {
        font-size: 0.9rem;
        padding-left: 26px;
        margin-bottom: 10px;
    }

    .section-title::before {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

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

    .form-label {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }

    .form-input,
    .form-textarea {
        padding: 9px 11px;
        font-size: 0.85rem;
        background: rgba(255, 255, 255, 0.85) !important;
    }

    .radio-label,
    .checkbox-label {
        padding: 8px 10px;
        font-size: 0.85rem;
        background: rgba(255, 255, 255, 0.4) !important;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
        padding: 11px 18px;
        font-size: 0.9rem;
    }

    .video-background video {
        min-width: 100%;
        min-height: 100%;
    }

    .main-logo {
        max-width: 120px;
    }

    .logo-section {
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 88% !important; /* компактный на маленьких экранах */
        margin: 6px auto 12px;
        padding: 0 6px;
    }

    .header {
        padding: 12px 10px;
        background: rgba(255, 255, 255, 0.3) !important; /* МАКСИМАЛЬНО прозрачный */
        backdrop-filter: blur(6px) !important;
        -webkit-backdrop-filter: blur(6px) !important;
    }

    .title {
        font-size: 1.15rem;
    }

    .subtitle {
        font-size: 0.75rem;
    }

    .event-info {
        gap: 6px;
    }

    .info-item {
        padding: 5px 10px;
        font-size: 0.75rem;
        background: rgba(255, 255, 255, 0.55) !important;
    }

    .form {
        padding: 12px 8px;
        background: rgba(255, 255, 255, 0.3) !important; /* МАКСИМАЛЬНО прозрачный */
        backdrop-filter: blur(6px) !important;
        -webkit-backdrop-filter: blur(6px) !important;
    }

    .form-section {
        padding: 8px 7px;
        margin-bottom: 8px;
        background: rgba(255, 255, 255, 0.2) !important; /* МАКСИМАЛЬНО прозрачный */
    }

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

    .form-label {
        font-size: 0.8rem;
    }

    .form-input,
    .form-textarea {
        padding: 8px 10px;
        font-size: 0.8rem;
        background: rgba(255, 255, 255, 0.8) !important;
    }

    .radio-label,
    .checkbox-label {
        padding: 7px 9px;
        font-size: 0.8rem;
        background: rgba(255, 255, 255, 0.35) !important;
    }

    .submit-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .main-logo {
        max-width: 100px;
    }

    .logo-section {
        margin-bottom: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}