/* Основные стили для страницы ПОКОЛЕНИЕ */

/* Подключение кастомного шрифта */
@font-face {
    font-family: 'Capture it';
    src: url('/fonts/Capture it.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Capture it', 'Arial', 'Helvetica', sans-serif;
    overflow-x: hidden;
    color: white;
}

main {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
}

main.main-page {
    background: #1a2a4a url('/images/bg.jpg') 50% 0% no-repeat;
    height: 1500px;
}

main.inner-page {
    background: #1a2a4a url('/images/innerbg.jpg') 50% 0% no-repeat;
    height: 1050px;
}

.main-tile {
    text-align: center;
}
.header-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}
.main-logo {
    width: 800px;
}
.inner-logo {
    width: 600px;
    margin-bottom: 20px;
}

.info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.info .title {
    font-size: 58px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 40px;
}
.info .date {
    font-size: 36px;
    text-transform: uppercase;
    text-align: center;
}
.info .cinema {
    font-size: 28px;
    text-transform: uppercase;
    text-align: center;
}
.info .time {
    font-size: 36px;
    text-transform: uppercase;
    text-align: center;
}

.inner-page .info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.inner-page .info .date {
    font-size: 18px;
    text-transform: uppercase;
    text-align: center;
}
.inner-page .info .cinema {
    font-size: 18px;
    text-transform: uppercase;
    text-align: center;
}
.inner-page .info .time {
    font-size: 18px;
    text-transform: uppercase;
    text-align: center;
}

/* Кнопка регистрации */
.registration-section {
    text-align: center;
    margin: 40px 0;
}

.btn-registration {
    background: #FFFFFF;
    border: 1px solid #051034;
    color: #051034;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-registration:hover {
    background: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: #051034;
}

.btn-registration:active {
    transform: translateY(-1px);
}

.info-text {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 100px;
    width: 320px;
}

.info-text p {
    margin-left: 20px;
}

.footer {
    width: 210px;
    margin-top: auto;
    margin-bottom: 50px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.tesis {
    font-size: 20px;
    text-transform: uppercase;
    width: 330px;
}
.tesis p {
    margin-bottom: 20px;
}

.hall {
    margin: 25px 0 0 -50px;
    display: flex;
}


.footer::after {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    position: absolute;
    bottom: 0;
    right: -50px;
    background: url('/images/footer-ad.svg') no-repeat center center;
    background-size: contain;
}
.policy-link {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 12px;
    color: #fff;
    text-decoration: none;
    margin-bottom: 20px;
}

/* Обработка ошибок */
.error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.error-message {
    background: #dc3545;
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    position: relative;
    border: 2px solid #ff6b7a;
}

.error-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
}

.error-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.error-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cookie уведомление */
.cookie-notification {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transform: translateX(-50%) translateY(100px);
    transition: all 0.3s ease;
    max-width: 90%;
    min-width: 300px;
}

.cookie-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding: 0 20px;
    gap: 15px;
}

.cookie-text {
    color: #051034;
    font-size: 16px;
    text-align: center;
    flex: 1;
    line-height: 1.2;
}

.cookie-link {
    color: #051034;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-link:hover {
    color: #007bff;
    text-decoration: none;
}

.cookie-close {
    background: none;
    border: none;
    color: #051034;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cookie-close:hover {
    background: #f8f9fa;
    color: #dc3545;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    main.main-page {
        background: #1a2a4a url('/images/mob_bg.jpg') 50% 0% no-repeat;
        height: 1650px;
    }
    
    main.inner-page {
        background: #1a2a4a url('/images/mob_innerbg.jpg') 50% 0% no-repeat;
        height: 1000px;
    }

    .header-logos {
        flex-wrap: wrap;
    }
    .info .title {
        font-size: 38px;
        margin-bottom: 20px;
    }
    .info .date {
        font-size: 22px;
    }
    .info .cinema {
        font-size: 16px;
    }
    .info .time {
        font-size: 22px;
    }
    .btn-registration {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .cookie-notification {
        left: 10px;
        right: 10px;
        transform: translateY(100px);
        max-width: none;
        min-width: auto;
    }
    
    .cookie-notification.show {
        transform: translateY(0);
    }
    
    .cookie-content {
        padding: 0 15px;
        gap: 10px;
    }
    
    .cookie-text {
        font-size: 14px;
    }
    .info-text {
        font-size: 12px;
        width: 240px;
    }
    .tesis {
        margin-top: 280px;
        font-size: 16px;
        width: 280px;
    }
    
    /* Блок с экраном */
    div[style*="margin-bottom: 15px"] {
        width: 300px;
        max-width: 300px;
        margin: 0 auto 15px auto !important;
    }
    
    div[style*="margin-bottom: 15px"] svg {
        width: 100%;
        height: auto;
    }
    
    /* Адаптация схемы зала под мобильные */
    .hall {
        width: 300px;
        max-width: 300px;
        margin: 25px auto 0 auto;
        transform-origin: top center;
        overflow: visible;
    }
    
    .hall svg {
        height: 165px;
    }
    
    /* Адаптация модального окна бронирования */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-content {
        border-radius: 15px;
        background: #1a2a4a;
        color: white;
    }
    
    .modal-header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px;
    }
    
    .modal-title {
        font-size: 18px;
        font-weight: bold;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    .modal-body h6 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .modal-body .bi-question-circle {
        font-size: 2.5rem !important;
        color: #6ea8fe !important;
    }
    
    .modal-body .alert {
        padding: 15px 10px;
        margin: 15px 0;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: white;
    }
    
    .modal-body .alert strong {
        color: rgba(255, 255, 255, 0.8);
        font-size: 12px;
    }
    
    .modal-body .alert .row {
        margin: 0;
    }
    
    .modal-body .alert .col-6 {
        padding: 5px;
    }
    
    .modal-body .badge {
        font-size: 1rem !important;
        padding: 8px 12px;
    }
    
    .modal-body .text-muted {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.7) !important;
    }
    
    .modal-body .bi-info-circle {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .modal-footer {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-footer .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
        font-weight: bold;
        border-radius: 25px;
        margin: 0;
    }
    
    .modal-footer .btn-secondary {
        background: transparent;
        border: 2px solid white;
        color: white;
    }
    
    .modal-footer .btn-primary {
        background: white;
        border: 2px solid white;
        color: #051034;
    }
    
    .btn-close {
        filter: invert(1);
        opacity: 0.8;
    }
}

@media (max-width: 480px) {
    .btn-registration {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .cookie-content {
        padding: 0 12px;
        gap: 8px;
    }
    
    .cookie-text {
        font-size: 13px;
    }
    
    .cookie-close {
        font-size: 20px;
        width: 25px;
        height: 25px;
    }
    
    /* Дополнительная адаптация модального окна для маленьких экранов */
    .modal-dialog {
        margin: 5px;
        max-width: calc(100% - 10px);
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 15px 10px;
    }
    
    .modal-body h6 {
        font-size: 14px;
    }
    
    .modal-body .bi-question-circle {
        font-size: 2rem !important;
    }
    
    .modal-body .badge {
        font-size: 0.9rem !important;
        padding: 6px 10px;
    }
    
    .modal-footer .btn {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* Стили для блока забронированных мест */
.booked-seats-section {
    margin-top: 30px;
    transition: all 0.3s ease;
    font-family: Arial, Helvetica, sans-serif;
    width: 700px;
}

.seats-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media (max-width: 768px) {
    .booked-seats-section {
        width: auto;
    }
    
    .seats-control {
        flex-direction: column;
    }
}


.booked-seat-badge {
    background: transparent !important;
    border: 1px solid #fff !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 14px !important;
    min-width: 120px !important;
    text-align: center !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.booked-seat-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.booked-seat-badge:hover::before {
    left: 100%;
}

.booked-seat-badge:hover {
    background: #444 !important;
    border-color: #888 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.booking-rules {
    text-align: center !important;
    color: white !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    opacity: 0.8;
}

.booking-rules p {
    margin: 0 !important;
}

.booking-rules strong {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* По умолчанию скрываем десктопную версию */
.desktop-ticket-container {
    display: none;
}

.mobile-ticket-container {
    display: none;
}

/* Мобильная версия страницы билета */
@media (max-width: 768px) {
    .mobile-ticket-container {
        display: block !important;
        padding: 20px;
        text-align: center;
        min-height: 100vh;
        background: linear-gradient(135deg, #1a2a4a 0%, #2c3e6b 100%);
        position: relative;
    }
    
    .mobile-ticket-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 70%);
        pointer-events: none;
    }
    
    .mobile-logo {
        width: 180px;
        margin: 20px auto 30px;
        display: block;
    }
    
    .mobile-age-restriction {
        position: absolute;
        top: 20px;
        right: 20px;
        color: white;
        font-size: 14px;
        font-weight: bold;
    }
    
    .mobile-invitation {
        font-size: 28px;
        font-weight: bold;
        color: white;
        margin-bottom: 20px;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }
    
    .mobile-date-time {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 14px;
        color: white;
        margin-bottom: 10px;
        opacity: 0.9;
        width: 250px;
        text-align: start;
    }
    
    .mobile-ticket-details {
        background: transparent;
        border: none;
        padding: 0;
        margin: 0 auto 10px;
        max-width: 280px;
        font-family: Arial, Helvetica, sans-serif;
    }
    
    .mobile-ticket-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        text-align: center;
        width: 250px;
        text-align: start;
    }
    
    .mobile-ticket-column {
        flex: 1;
        text-align: start;
    }
    
    .mobile-cinema-map {
        text-align: center;
        margin: 0 auto 30px;
        max-width: 300px;
    }
    
    .mobile-cinema-map img {
        width: 100%;
        height: auto;
        max-width: 280px;
    }
    
    .mobile-ticket-label {
        color: rgba(255,255,255,0.7);
        font-size: 12px;
        margin-bottom: 2px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .mobile-ticket-value {
        color: white;
        font-size: 24px;
        font-weight: bold;
        line-height: 1.2;
    }
    
    
    .mobile-venue-info {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 14px;
        margin-bottom: 10px;
        width: 250px;
        text-align: start;

    }
    
    .mobile-venue-name {
        color: white;
        font-size: 16px;
        font-weight: 500;
        margin-bottom: 5px;
    }
    
    .mobile-venue-address {
        color: rgba(255,255,255,0.8);
        font-size: 14px;
        line-height: 1.4;
    }
    
    .mobile-qr-large {
        width: 150px;
        height: 150px;
        background: white;
        border-radius: 12px;
        margin: 0 auto 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 20px rgba(0,0,0,0.2);
        border: 2px solid white;
    }
    
    .mobile-qr-large img,
    .mobile-qr-large svg {
        width: 125px;
        height: 125px;
    }
    
    .mobile-building {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        opacity: 0.8;
    }
    
    .mobile-building svg {
        width: 100%;
        height: auto;
    }
    
    .mobile-ticket-info {
        width: 250px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }
    /* Скрываем десктопную версию на мобильных */
    .desktop-ticket-container {
        display: none !important;
    }
}

/* Десктопная версия билета */
@media (min-width: 769px) {
    .mobile-ticket-container {
        display: none !important;
    }
    
    .desktop-ticket-container {
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }
    
    .desktop-invitation {
        font-size: 32px;
        font-weight: bold;
        color: white;
        margin-bottom: 15px;
        text-align: center;
        letter-spacing: 2px;
    }
    
    .desktop-datetime {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 18px;
        color: white;
        margin-bottom: 5px;
        text-align: center;
    }
    
    .desktop-venue {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 16px;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 30px;
        text-align: center;
    }
    
    .desktop-ticket-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 60px;
        margin-bottom: 40px;
        width: 100%;
        max-width: 600px;

    }
    
    .desktop-ticket-info {
        position: absolute;
        width: 633.6px;
        height: 522px;
        left: calc(50% - 633.6px/2 - 0px);
        top: 364px;
        padding: 20px;

        background: rgba(5, 16, 52, 0.35);
        border-radius: 20px;
    }


    .desktop-ticket-details {
        display: flex;
        gap: 40px;
    }
    
    .desktop-ticket-item {
        text-align: center;
    }
    
    .desktop-ticket-label {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
        text-transform: uppercase;
        margin-bottom: 10px;
    }
    
    .desktop-ticket-value {
        font-size: 36px;
        font-weight: bold;
        color: white;
    }
    
    .desktop-qr-code {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .desktop-cinema-map {
        max-width: 400px;
        margin-bottom: 30px;
    }
    
    .desktop-cinema-map img {
        width: 100%;
        height: auto;
    }
}