a {
text-decoration: none;
}

body {
    margin: 0;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    background: transparent;
    color: #73d5ee;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background: url('uploads/background.png') center center / cover no-repeat, #757575;
    animation: bgFloat 13s ease-in-out infinite alternate;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    background: rgba(0,0,0,0.6);
    pointer-events: none;
}

.site-header {
    background: rgba(0,0,0,0.4);
    width: 100%;
    text-align: center;
    padding: 22px 0 12px 0;
    position: relative;
    z-index: 10;
}

.logo-wrap,
.main-section {
    background: transparent !important;
}

.logo-wrap {
    display: flex;
    justify-content: center;
}

.site-logo {
    max-width: 180px;
    max-height: 60px;
}

.main-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 94px);
    overflow: hidden;
}

.bg-art {
    display: none;
}

.bg-art::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(40,40,40,0.48);
    pointer-events: none;
}

@keyframes bgFloat {
    0% { transform: translate(0, 0) scale(1); }
    55% { transform: translate(12px, -9px) scale(1.015); }
    100% { transform: translate(-16px, 6px) scale(1.025); }
}

.main-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 38px 20px 40px 20px;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInStart 1.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeInStart {
    to {
        opacity: 1;
        transform: none;
    }
}

.main-title {
    font-size: 70px;
    font-weight: 100;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #73d5ee;
    text-shadow: 1px 2px 8px #333, 0 2px 0px #72a7be;
    line-height: 1.15;
    margin-bottom: 14px;
    margin-top: 0;
}

.subtitle {
    font-size: 23px;
    font-weight: 400;
    color: #73d5ee;
    margin-bottom: 31px;
    text-shadow: 0 1px 5px #2225;
}

.main-btn {
    font-size: 1.15rem;
    font-weight: 500;
    background: transparent;
    border: 2px solid #73d5ee;
    color: #efefef;
    padding: 17px 42px;
    border-radius: 10px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 2px 14px #3737372a;
    transition: background 0.7s, color 0.5s, border 0.5s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s;
    width: 590px;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.main-btn:hover, .main-btn:focus {
    background: #73d5ee;
    font-weight: 700;
    transform: scale(1.053);
    box-shadow: 0 2px 24px #73d5ee60, 0 2px 18px #3737371a;
}
.main-btn:active {
    transform: scale(0.97);
    box-shadow: 0 4px 16px #72a7be30;
}

/* МОДАЛЬНОЕ ОКНО */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(38, 38, 38, 0.8);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.25s ease-out;
}
.modal-overlay.active {
    opacity: 1;
}

.modal {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    min-width: 480px;
    max-width: 1400px;
    width: 90vw;
    background: url("uploads/лист с тенью.jpg") center center / cover no-repeat;
    border-radius: 18px;
    z-index: 101;
    padding: 0 0 56px 0;
    opacity: 0;
    transition: 
        opacity 0.2s ease-out,
        transform 0.25s cubic-bezier(0.3, 1.3, 0.38, 1.1);
}
.modal.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    border-radius: 6px 6px 0 0;
    color: #73d5ee;
    text-transform: uppercase;
    font-size: 32px;
    font-weight: 400;
    padding: 22px 0 18px 0;
    text-align: center;
    letter-spacing: 1px;
}

.modal-cards {
    display: flex;
    justify-content: center;
    column-gap: 36px;
    margin: 46px 0 0 0;
    flex-wrap: wrap;
}
.modal-card {
    background: #fff;
    border-radius: 6px 6px 12px 12px;
    width: 220px;
    min-height: 340px;
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 28px #0001, 0 2.5px 7px #1111;
    cursor: pointer;
    overflow: hidden;
    transition: box-shadow 0.18s, transform 0.15s;
}
.modal-card:hover,
.modal-card:focus {
    box-shadow: 0 16px 32px #2222, 0 4px 14px #73d5ee50;
    transform: translateY(-5px) scale(1.045);
}
.modal-card-icon {
    margin: 38px 0 12px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 145px;
}
.modal-img {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}
.modal-card-label {
    background: #73d5ee;
    color: #fff;
    width: 100%;
    min-height: 52px;
    text-align: center;
    font-size: 17px;
    letter-spacing: 0.5px;
    padding: 14px 6px 13px 6px;
    font-weight: 600;
    border-radius: 0 0 12px 12px;
    text-transform: uppercase;
    margin-top: auto;
}

/* Адаптация для мобильных устройств */
@media (max-width: 980px) {
    .modal-cards {
        column-gap: 14px;
        row-gap: 14px;
    }
    .modal-card {
        width: 160px;
        min-height: 220px;
    }
    .modal-card-icon svg {
        width: 56px;
        height: 56px;
    }
    .modal-card-icon {
        margin: 20px 0 10px 0;
        min-height: 100px;
    }
    .modal-card-label {
        font-size: 15px;
        padding: 10px 6px;
        min-height: 44px;
    }
}

@media (max-width: 700px) {
    .main-title {
        font-size: 1.7rem;
    }
    .main-content {
        padding: 24px 2vw 30px 2vw;
    }
    .site-logo {
        max-width: 140px;
        max-height: 48px;
    }
    .main-btn {
        width: 100%;
        min-width: unset;
        max-width: unset;
    }
    .modal {
        min-width: unset;
        width: 96vw;
        top: 50%;
        transform: translate(-50%, -50%) scale(0.98);
        max-height: 90vh;
        overflow-y: auto;
        padding-bottom: 20px;
        transition: 
            opacity 0.2s ease-out,
            transform 0.25s cubic-bezier(0.3, 1.3, 0.38, 1.1);
    }
    .modal.active {
        transform: translate(-50%, -50%) scale(1);
    }
    .modal-header {
        font-size: 20px;
        padding: 16px 0 12px 0;
        position: sticky;
        top: 0;
        background: rgba(0,0,0,0.7);
        z-index: 1;
    }
    .modal-cards {
        flex-direction: column;
        align-items: center;
        margin: 12px 0 0 0;
        row-gap: 12px;
        padding: 0 10px;
    }
    .modal-card {
        width: 100%;
        max-width: 280px;
        min-height: 100px;
        flex-direction: row;
        border-radius: 8px;
        margin-bottom: 0;
    }
    .modal-card-icon {
        margin: 0;
        padding: 0 10px;
        min-height: unset;
        width: 80px;
    }
    .modal-img {
        max-width: 60px;
        max-height: 60px;
    }
    .modal-card-label {
        flex-grow: 1;
        border-radius: 0 8px 8px 0;
        min-height: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        font-size: 14px;
    }
    .modal-card-icon svg {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 400px) {
    .modal-header {
        font-size: 18px;
    }
    .modal-card-label {
        font-size: 13px;
    }
}

.tickets-page .container,
.tickets-page .card,
.tickets-page form {
    position: relative;
    z-index: 5;
}