/* =========================
   Base
   ========================= */
* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(90deg, rgba(43, 8, 84, 1) 0%, rgba(127, 83, 237, 1) 100%);
    font-family: "Open Sans", sans-serif;
    color: white;
}

/* =========================
   Header
   ========================= */
.header {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 50px;
    padding-bottom: 50px;
}

.logo {
    width: 120px;
    height: 120px;
}

.logo img {
    width: 130px;
    height: 125px;
}

.links ul {
    display: flex;
    list-style: none;
    justify-content: center;
}

.links ul li {
    margin: 0 40px;
    border-bottom: 2px solid transparent;
    transition: 0.5s;
}

.links ul li:hover {
    border-bottom: 2px solid white;
}

.link {
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
    color: white;
}

.socials ul {
    display: flex;
    list-style: none;
    justify-content: center;
}

.social-item {
    margin-right: 20px;
}

/* =========================
   Hero / About
   ========================= */
.description-container {
    background-image: url(../assets/img/ansambl2.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 75px;
    padding-bottom: 150px;
}

.main-title {
    font-size: 25px;
    max-width: 1300px;
    margin: 0 auto;
}

.main-title-text {
    text-align: center;
}

.description {
    margin: 100px auto;
}

.description-title {
    text-align: center;
    padding-top: 50px;
    padding-bottom: 150px;
    font-size: 35px;
}

.description-txt {
    max-width: 1300px;
    text-align: center;
    margin: 0 auto;
    font-size: 30px;
}

/* =========================
   Layout
   ========================= */
.container {
    margin: 0 auto;
    max-width: 1300px;
}

/* =========================
   Guests
   ========================= */
.guests {
    padding-top: 150px;
    padding-bottom: 150px;
    box-sizing: border-box;
    overflow: hidden;
}

.guests h2 {
    font-size: 35px;
    text-align: center;
    padding-bottom: 50px;
}

.guest-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 80px;
    width: 100%;
}

.guest-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.guest-item-img {
    height: auto;
    margin-bottom: 20px;
}

.guest-item-img img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

.guest-item-text {
    font-size: 20px;
}

/* pagination — НЕ absolute, чтобы не наезжало на текст */
.guests-pagination {
    margin-top: 24px;
    text-align: center;
    position: static !important;
}

.guests-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    opacity: 0.45;
}

.guests-pagination .swiper-pagination-bullet-active {
    opacity: 1;
}

.guests-swiper {
    width: 100%;
}

/* =========================
   Place / Buy
   ========================= */
.place {
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 150px;
    padding-bottom: 150px;
}

.place-title {
    text-align: left;
    font-size: 44px;
    margin-bottom: 30px;
}

.place-address {
    text-align: left;
    font-size: 20px;
    margin-bottom: 30px;
}

.place-time {
    text-align: left;
    font-size: 35px;
    margin-bottom: 150px;
}

.btn {
    padding: 24px 42px;
    background: linear-gradient(90deg, rgb(24, 2, 51) 0%, rgb(75, 20, 197) 100%);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: linear-gradient(90deg, rgb(13, 1, 32) 0%, rgb(31, 5, 89) 100%);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* =========================
   Footer
   ========================= */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 70px 0;
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: start;
}

.footer-title {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 12px;
}

.footer-text {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 8px;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer-link {
    font-size: 16px;
    font-weight: 700;
    opacity: 0.95;
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-col-center {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-legal {
    font-size: 14px;
    opacity: 0.8;
}

.footer-legal:hover {
    opacity: 1;
}

.footer-col-right {
    justify-self: end;
    text-align: right;
}

.footer-social-title {
    text-align: center;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
}

.footer-social {
    width: 62px; /* >900px побольше */
    height: 62px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.footer-social:hover {
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}

.footer-social img {
    width: 32px;
    height: 32px;
    display: block;
}

/* =========================
   Ticket modal
   ========================= */
.ticket-overlay[hidden] {
    display: none !important;
}

.ticket-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
}

.ticket-modal {
    width: min(1100px, 100%);
    background: rgba(20, 10, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    color: #fff;
    position: relative;
    max-height: calc(100vh - 48px);
    overflow: auto;
    overscroll-behavior: contain;
}

.ticket-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    z-index: 2;
}

.ticket-close:hover {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}

.ticket-close:active {
    transform: translateY(0px) scale(0.96);
    opacity: 0.9;
}

.ticket-header {
    padding: 18px 18px 10px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ticket-header h3 {
    margin: 0 0 10px 0;
}

.ticket-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 14px;
    opacity: 0.95;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.zone-1 {
    background: #e59abf;
}

.legend-dot.zone-2 {
    background: #6f72b7;
}

.legend-dot.zone-3 {
    background: #e6e6e6;
    border: 1px solid rgba(0, 0, 0, 0.25);
}

.legend-dot.pending {
    background: #b9891a;
}

.legend-dot.sold {
    background: #242424;
}

.ticket-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px 18px 18px 18px;
}

.ticket-hall {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 10px;
    overflow: hidden;
}

.hall-svg {
    width: 100%;
    height: 72vh;
    min-height: 520px;
    display: block;
    touch-action: none;
}

.ticket-summary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket-picked-title {
    opacity: 0.9;
    margin-bottom: 6px;
}

.ticket-picked-list {
    font-size: 14px;
    line-height: 1.35;
    opacity: 0.95;
}

.ticket-total {
    font-size: 18px;
    font-weight: 700;
}

.ticket-email {
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    outline: none;
}

.ticket-pay[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.ticket-note {
    font-size: 12px;
    opacity: 0.7;
}

/* =========================
   Seat map styles
   ========================= */
.hall-title {
    font-size: 24px;
    font-weight: 800;
}

.hall-scene-text {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.seat-rect {
    stroke: rgba(0, 0, 0, 0.35);
    stroke-width: 1;
}

.seat-zone-1 {
    fill: #e59abf;
}

.seat-zone-2 {
    fill: #6f72b7;
}

.seat-zone-3 {
    fill: #e6e6e6;
}

.seat-text {
    font-size: 11px;
    font-weight: 700;
    dominant-baseline: middle;
    text-anchor: middle;
    user-select: none;
}

.seat-text.light {
    fill: #ffffff;
}

.seat-text.dark {
    fill: #1a1a1a;
}

.seat-selected .seat-rect {
    stroke: #ffffff;
    stroke-width: 2;
}

/* sold — самое тёмное */
.seat-sold {
    pointer-events: none;
}

.seat-sold .seat-rect {
    fill: #242424 !important;
    stroke: rgba(0, 0, 0, 0.65);
}

.seat-sold .seat-text {
    fill: rgba(0, 0, 0, 0.55) !important;
    opacity: 0.95;
}

/* pending — отличается от sold */
.seat-pending {
    pointer-events: none;
}

.seat-pending .seat-rect {
    fill: #b9891a !important;
    stroke: rgba(255, 220, 120, 0.9);
    stroke-width: 1.5;
}

.seat-pending .seat-text {
    fill: rgba(255, 255, 255, 0.92) !important;
}

.grid-thick {
    stroke: rgba(0, 0, 0, 0.75);
    stroke-width: 2.5;
}

.grid-outer {
    stroke: rgba(0, 0, 0, 0.75);
    stroke-width: 2.5;
    fill: none;
}
