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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d0a0a 50%, #4a0000 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Экран загрузки */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d0a0a 50%, #4a0000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.loading-screen.slide-out {
    transform: translateX(100%);
}

.skateboard-container {
    position: relative;
    width: 33.33vw; /* Треть экрана */
    height: 33.33vh;
    max-width: 400px;
    max-height: 400px;
}

.skateboard-mascot {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: skateboard-ride 2s ease-in-out infinite;
}

@keyframes skateboard-ride {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Основной контент */
.main-content {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.main-content.hidden {
    opacity: 0;
    pointer-events: none;
}

.screen {
    display: none;
    padding: 20px;
    min-height: 100vh;
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: block;
}

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

/* Заголовок */
.header-logo {
    text-align: center;
    padding: 30px 20px;
    color: #ff5252;
}

.header-logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(2px 2px 8px rgba(255, 82, 82, 0.5));
}

.header-logo h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(255, 82, 82, 0.5);
    animation: pulse 2s infinite;
}

.event-date {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 10px;
    color: #ff5252;
}

/* Карточка билета */
.ticket-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 60vh;
}

.ticket-card-main {
    background: linear-gradient(145deg, #1a1a1a 0%, #2d0a0a 100%);
    border-radius: 30px;
    padding: 50px 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(255, 82, 82, 0.4);
    text-align: center;
    border: 4px solid #ff5252;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ticket-card-main:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(255, 82, 82, 0.6);
    border-color: #ff1744;
}

.ticket-card-main[style*="cursor: not-allowed"] {
    cursor: not-allowed !important;
}

.ticket-card-main[style*="cursor: not-allowed"]:hover {
    transform: none;
}

.ticket-logo-container {
    margin-bottom: 30px;
}

.ticket-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(255, 82, 82, 0.3));
}

.ticket-card-main h2 {
    font-size: 2.5rem;
    color: #ff5252;
    margin-bottom: 20px;
    font-weight: 700;
}

.ticket-price {
    font-size: 3.5rem;
    font-weight: bold;
    color: #ff1744;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(255, 23, 68, 0.3);
}

.tickets-remaining {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4CAF50;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(76, 175, 80, 0.15);
    border-radius: 15px;
}

.tickets-remaining.tickets-low {
    color: #ff5252;
    background: rgba(255, 82, 82, 0.15);
    animation: pulse-urgent 1s infinite;
}

.buy-ticket-btn {
    width: 100%;
    padding: 25px;
    background: linear-gradient(135deg, #ff1744 0%, #c62828 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 23, 68, 0.4);
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.buy-ticket-btn:active {
    transform: scale(0.95);
}

.buy-ticket-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    animation: none;
}

/* Футер */
.page-footer {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 8px;
    margin-top: 40px;
    text-align: center;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 82, 82, 0.3);
}

.footer-credit {
    font-size: 0.7rem;
    color: #ff5252;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.footer-credit:hover {
    color: #ff1744;
    text-decoration: underline;
}



@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 0 rgba(76, 175, 80, 0.6);
    }
}

@keyframes pulse-urgent {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 25px 0 rgba(255, 68, 68, 0.8);
    }
}

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

/* Экран деталей */
.back-button {
    background: rgba(255, 82, 82, 0.2);
    border: 2px solid rgba(255, 82, 82, 0.4);
    color: #ff5252;
    padding: 12px 20px;
    border-radius: 15px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.back-button:active {
    transform: scale(0.95);
    background: rgba(255, 82, 82, 0.3);
}

.ticket-details {
    background: linear-gradient(145deg, #1a1a1a 0%, #2d0a0a 100%);
    border-radius: 30px;
    padding: 30px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(255, 82, 82, 0.4);
    border: 2px solid #ff5252;
}

.ticket-header {
    text-align: center;
    margin-bottom: 30px;
}

.ticket-icon-large {
    font-size: 5rem;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

.ticket-header h1 {
    color: #ff5252;
    font-size: 2rem;
    margin-bottom: 10px;
}

.event-info {
    background: rgba(255, 82, 82, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 82, 82, 0.2);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 82, 82, 0.2);
}

.info-row:last-child {
    border-bottom: none;
}

.tickets-available-row {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #ef5350;
    border-bottom: none;
}

.tickets-available-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4CAF50;
    animation: pulse-text 2s infinite;
}

.tickets-available-value.low {
    color: #ff4444;
    animation: pulse-urgent-text 1s infinite;
}

@keyframes pulse-text {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes pulse-urgent-text {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.info-label {
    font-weight: 600;
    color: #ff5252;
    white-space: nowrap;
    flex-shrink: 0;
}

.info-value {
    color: #ffffff;
    font-weight: 500;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: right;
    margin-left: 10px;
}

.features-list {
    margin-bottom: 25px;
}

.feature-item {
    padding: 12px 0;
    color: #e0e0e0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 82, 82, 0.15);
}

.feature-item:last-child {
    border-bottom: none;
}

/* Промокод */
.promo-section {
    margin-bottom: 25px;
}

#promoInput {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 82, 82, 0.3);
    background: rgba(26, 26, 26, 0.5);
    color: #ffffff;
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    transition: border-color 0.3s;
}

#promoInput:focus {
    outline: none;
    border-color: #ff5252;
}

#promoInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.promo-button {
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.promo-button:active {
    transform: scale(0.95);
}

.promo-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
}

.promo-message.success {
    background: #d4edda;
    color: #155724;
}

.promo-message.error {
    background: #f8d7da;
    color: #721c24;
}

/* Итоговая цена */
.price-summary {
    background: rgba(255, 82, 82, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 82, 82, 0.2);
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 1.1rem;
    color: #ffffff;
}

.discount-row {
    color: #4CAF50;
    font-weight: 600;
}

.total-row {
    border-top: 2px solid #ff5252;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff1744;
}

/* Кнопка покупки */
.buy-button {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #ff1744 0%, #c62828 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 23, 68, 0.4);
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.buy-button:active {
    transform: scale(0.95);
}

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

/* Адаптивность */
@media (max-width: 768px) {
    .header-logo h1 {
        font-size: 1.5rem;
    }
    
    .header-logo-img {
        width: 100px;
        height: 100px;
    }
    
    .ticket-card-main {
        padding: 40px 30px;
    }
    
    .ticket-logo {
        width: 120px;
        height: 120px;
    }
    
    .ticket-card-main h2 {
        font-size: 2rem;
    }
    
    .ticket-price {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .skateboard-container {
        width: 40vw;
        height: 40vh;
    }
    
    .header-logo h1 {
        font-size: 1.2rem;
    }
    
    .ticket-card-main {
        padding: 30px 20px;
    }
    
    .ticket-logo {
        width: 100px;
        height: 100px;
    }
    
    .ticket-card-main h2 {
        font-size: 1.8rem;
    }
    
    .ticket-price {
        font-size: 2.5rem;
    }
}
