/* ===================================================================
   Table of Contents
======================================================================
    1.  Global & Root Styles
    2.  Typography
    3.  Layout (Header, Footer, Main, Container)
    4.  Components (Buttons, Cards, Forms, Tables, etc.)
    5.  Page-Specific Styles
        -   Index Page (Events Grid, Guests)
        -   Event Detail Page (Description, Reviews, Sharing)
        -   Buy Ticket & Payment Processing Page
        -   Profile Page
        -   Admin Panel
        -   Static & Error Pages
    6.  Utility Classes & Animations
    7.  Media Queries (Responsiveness)
=================================================================== */

/* ===================================================================
   1. Global & Root Styles
=================================================================== */
body {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #e9ecef;
    color: #343a40;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #065f46;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #064e3b;
}

hr {
    border: 0;
    border-top: 1px solid #e9ecef;
    margin: 30px 0;
}

/* ===================================================================
   2. Typography
=================================================================== */
h2 {
    color: #064e3b;
    margin-bottom: 20px;
    font-size: 2rem;
    text-align: center;
}

/* ===================================================================
   3. Layout (Header, Footer, Main, Container)
=================================================================== */
.container {
    width: 90%;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
    padding: 0 15px;
}

main {
    flex: 1; /* Pushes footer to the bottom */
    padding: 30px 0;
}

section {
    background: #fff;
    padding: 20px 25px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
}

/* --- Header & Side Menu --- */
.new-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.header-left, .header-center, .header-right {
    display: flex;
    align-items: center;
    flex: 1;
}

.header-center {
    justify-content: center;
}

.header-right {
    justify-content: flex-end;
}

.burger-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    padding: 5px 10px;
    margin-right: 15px;
}

.logo-link {
    line-height: 0;
}

.logo-img {
    height: 80px;
    width: auto;
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    z-index: 1002;
    transition: left 0.3s ease-in-out;
    padding-top: 60px;
}

.side-menu.active {
    left: 0;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #888;
}

.side-nav {
    display: flex;
    flex-direction: column;
}

.side-nav a {
    padding: 15px 25px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.side-nav a:hover {
    background-color: #f8f9fa;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}


/* --- Footer --- */
.new-footer {
    background-color: #343a40;
    color: #adb5bd;
    padding: 25px 0;
    margin-top: auto;
    font-size: 13px;
    line-height: 1.6;
}

.new-footer .container {
    max-width: 1140px;
}

.footer-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #495057;
}

.footer-links {
    flex-grow: 0;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    margin-right: 20px;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-phone {
    flex-grow: 1;
    text-align: center;
    font-weight: 500;
}

.footer-age-rating {
    flex-grow: 0;
    border: 1px solid #adb5bd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.footer-copyright {
    text-align: center;
    font-size: 12px;
    color: #6c757d;
}

/* ===================================================================
   4. Components (Buttons, Cards, Forms, Tables, etc.)
=================================================================== */

/* --- Buttons --- */
.button {
    display: block;
    width: fit-content;
    margin: 20px auto 0 auto;
    color: #fff;
    background: #065f46;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 7px;
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.button:hover {
    background: #064e3b;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.cabinet-button {
    background-color: #065f46;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
    margin: 0; /* Override default margin */
}

.cabinet-button:hover {
    background-color: #064e3b;
}

/* Стили для переключения текста в кнопке кабинета */
.cabinet-text-short {
    display: none; /* Короткий текст по умолчанию скрыт */
}

.secondary-button {
    background: #6c757d;
}

.secondary-button:hover {
    background: #5a6268;
}

.edit-button {
    background: #28a745;
}

.edit-button:hover {
    background: #218838;
}

.small-button {
    padding: 7px 14px;
    font-size: 0.9em;
    margin: 0 auto;
    display: block;
    width: auto;
    max-width: 120px;
}

/* --- Cards --- */

/* ================================================= */
/* == ЕДИНЫЕ СТИЛИ ДЛЯ КАРТОЧКИ МЕРОПРИЯТИЯ (v3) == */
/* ================================================= */

/* -- СЕТКА ДЛЯ КАРТОЧЕК -- */
/* По умолчанию (Mobile First) - две колонки */
.events-list-section .events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* -- ВНЕШНЯЯ ОБОЛОЧКА ССЫЛКИ -- */
a.event-card-link-wrapper,
a.event-card-link-wrapper:hover {
    text-decoration: none !important;
    color: inherit !important;
}

/* -- ОСНОВНОЙ КОНТЕЙНЕР КАРТОЧКИ -- */
.event-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%; /* Самое важное для одинаковой высоты */
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* -- БЛОК С ИЗОБРАЖЕНИЕМ И ЦЕНОЙ -- */
.event-card-image-container {
    position: relative;
}

.event-card-image {
    width: 100%;
    height: 150px; /* Высота для мобильных */
    object-fit: cover;
    background-color: #e0e0e0;
    border-radius: 8px 8px 0 0;
}

.event-card-price {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* -- ТЕКСТОВЫЙ БЛОК КАРТОЧКИ -- */
.event-card-body {
    padding: 12px;
    flex-grow: 1; /* Позволяет этому блоку растягиваться, если нужно */
}

.event-card-title {
    font-size: 1rem; /* Размер для мобильных */
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 8px 0;
}

.event-card-date {
    font-size: 0.8rem; /* Размер для мобильных */
    font-weight: 500;
    color: #064e3b;
    margin: 0 0 4px 0;
}

.event-card-location {
    font-size: 0.8rem; /* Размер для мобильных */
    color: #6c757d;
    margin: 0;
}


/* -- СТИЛИ ДЛЯ БОЛЬШИХ ЭКРАНОВ (ДЕСКТОП) -- */
@media (min-width: 769px) {

    /* Возвращаем адаптивную сетку для десктопа */
    .events-list-section .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    /* Увеличиваем высоту картинки */
    .event-card-image {
        height: 200px;
    }

    /* Увеличиваем отступы в текстовом блоке */
    .event-card-body {
        padding: 20px;
    }

    /* Увеличиваем шрифты */
    .event-card-title {
        font-size: 1.15rem;
    }

    .event-card-date, .event-card-location {
        font-size: 0.9rem;
    }
}

.guest-card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.guest-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px auto;
    border: 3px solid #065f46;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.guest-photo.placeholder {
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    color: #666;
}

.guest-card h3 {
    margin-top: 0;
    color: #064e3b;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.guest-card p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 0;
}

/* --- Forms & Inputs --- */
.buy-form, .admin-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group input[type="datetime-local"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #065f46;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(6, 95, 70, 0.25);
}

.form-group-inline {
    display: flex;
    gap: 15px;
}

.form-group-inline > div {
    flex: 1;
}

.form-error {
    color: #dc3545;
    font-size: 0.9em;
    margin-top: 5px;
    font-weight: bold;
}

/* --- Flash Messages / Notifications --- */
.flash-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 2000;
    width: 350px;
}

.flash {
    position: relative;
    padding: 15px 40px 15px 20px;
    margin-bottom: 15px;
    border-radius: 7px;
    font-weight: 500;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 1;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.flash.fade-out {
    animation: fadeOut 0.5s forwards;
}

.flash.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash.info, .flash.warning {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.close-flash {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    padding: 0;
}

.close-flash:hover {
    opacity: 1;
}

/* --- Tables (Modern Style) --- */
.table-responsive {
    overflow-x: auto;
    width: 100%;
    margin-top: 25px;
    border: 1px solid #e9ecef; /* Добавляем рамку вокруг всего блока */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

table {
    min-width: 800px; /* Мы все еще оставляем минимальную ширину для очень узких экранов */
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem; /* Слегка уменьшаем основной шрифт таблицы */
}

/* Убираем все старые рамки */
table, th, td {
    border: none;
}

th, td {
    padding: 16px 20px; /* Увеличиваем отступы */
    text-align: left;
    vertical-align: middle; /* Главное выравнивание по центру! */
    border-bottom: 1px solid #e9ecef; /* Линия-разделитель только снизу */
}

/* Стили для заголовков */
th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Убираем разделитель у последней строки */
tr:last-child td {
    border-bottom: none;
}

/* Эффект подсветки при наведении */
tr:hover {
    background-color: #f1f7fe;
}

/* Стили для колонки "Действия" */
td:last-child > div {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Новые стили для индикатора статуса */
.status-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    background-color: #e9ecef;
    color: #495057;
}

.status-pill.active {
    background-color: #d1fae5;
    color: #065f46;
}

/* Дополнительные стили для компактной таблицы */
.compact-table th, .compact-table td {
    padding: 12px 15px; /* Немного уменьшаем отступы */
}

/* Группа для кнопок действий */
.action-buttons-group {
    display: flex;
    gap: 6px; /* Уменьшаем расстояние между кнопками */
    align-items: center;
}

/* Стили для новых кнопок-стрелок */
.arrow-button {
    padding: 6px 10px !important; /* Делаем кнопки-стрелки меньше */
    font-size: 1.1rem !important;
    line-height: 1;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
}

.arrow-button:hover {
    background-color: #e0e0e0;
}

/* ===================================================================
   5. Page-Specific Styles
=================================================================== */

/* --- Index Page --- */
.guests-section .guests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* --- Event Detail Page --- */
.event-detail-section .event-header {
    text-align: center;
    margin-bottom: 30px;
}
.event-detail-section .event-header h2 {
    font-size: 2.5rem;
    color: #064e3b;
    margin-bottom: 10px;
}
.event-detail-section .event-info-block p {
    font-size: 1.1em;
    margin-bottom: 8px;
}
.event-detail-section .event-description {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
    line-height: 1.8;
}
.event-detail-section .buy-button-container {
    text-align: center;
    margin-top: 40px;
}

.event-detail-image-container {
    text-align: center;
    margin: 20px auto;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.event-detail-image {
    width: 100%;
    height: auto;
    display: block;
}
.placeholder-image-detail {
    width: 100%;
    height: 300px;
    background-color: #e0e0e0;
    border-radius: 10px;
}

/* Review Form & Display */
.review-form-section .rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; border: none; }
.review-form-section .rating > input { display: none; }
.review-form-section .rating > label { color: #ddd; cursor: pointer; font-size: 2.5em; transition: color 0.2s; }
.review-form-section .rating > input:checked ~ label,
.review-form-section .rating:not(:checked) > label:hover,
.review-form-section .rating:not(:checked) > label:hover ~ label { color: #f7d106; }

.review-card {
    padding: 20px 0;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap; /* Разрешаем перенос элементов */
}
.review-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #065f46;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}
.review-author-info { flex-grow: 1; }
.review-author-info strong { font-size: 1.1em; }
.review-rating-display .star { font-size: 1.2em; color: #ccc; }
.review-rating-display .star.filled { color: #f7d106; }
.review-date { color: #888; font-size: 0.9em; margin-left: auto; }
.review-text {
    margin: 0;
    padding-left: 20px;
    border-left: 4px solid #e9ecef;
    font-style: italic;
    color: #495057;
    font-size: 1.05em;
    line-height: 1.7;
}
hr.review-separator {
    border: 0;
    border-top: 1px solid #e9ecef;
    margin: 10px 0;
}

/* Share Buttons */
.share-section { text-align: center; margin-top: 40px; }
.share-section h3 { margin-top: 0; margin-bottom: 20px; color: #343a40; }
.share-buttons { display: flex; justify-content: center; gap: 15px; }
.share-button {
    text-decoration: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s;
}
.share-button:hover { opacity: 0.85; }
.share-button.telegram { background-color: #0088cc; }
.share-button.whatsapp { background-color: #25D366; }


/* --- Buy Ticket Page --- */
.buy-form {
    max-width: 900px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.buy-form .button {
    grid-column: 1 / -1;
    width: fit-content;
    margin: 20px auto 0 auto;
}
.form-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}
.form-section h3 {
    color: #064e3b;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}
.price-display {
    font-weight: bold;
    color: #28a745;
    background-color: #e6ffed;
    border: 1px solid #c3e6cb !important;
    text-align: center;
}
.card-number-display {
    font-size: 1.4em;
    font-weight: bold;
    color: #064e3b;
    background-color: #eaf4ff;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px dashed #a2d2ff;
    text-align: center;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}
.receiver-full-name-display {
    font-size: 1.2em;
    font-weight: bold;
    color: #343a40;
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #e9ecef;
    text-align: center;
}
.order-number-display {
    font-size: 1.5em;
    font-weight: bold;
    color: #6f42c1;
    background-color: #f5f0fa;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px dashed #d1c4e9;
    text-align: center;
}
.warning-text {
    background-color: #ffe0b2;
    border-color: #ffcc80;
    color: #b35900;
    padding: 15px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 0.95em;
}

/* --- Payment Processing Page --- */
.payment-processing-section {
    text-align: center;
    padding: 50px 30px;
}
.payment-processing-section h2 {
    color: #28a745;
    font-size: 2.5rem;
    margin-bottom: 30px;
}
.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #065f46;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
    margin: 30px auto;
}
.payment-processing-section p {
    font-size: 1.1em;
    margin-bottom: 15px;
    line-height: 1.7;
}

/* --- Profile Page --- */
.profile-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}
.profile-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}
.profile-info h2 { text-align: left; }
.my-tickets .ticket-card .status-confirmed { color: green; font-weight: bold; }
.my-tickets .ticket-card .status-pending { color: orange; font-weight: bold; }
.my-tickets .ticket-card .review-submitted {
    color: #6c757d;
    font-size: 0.9em;
    font-style: italic;
}
.my-review-card {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.my-review-event-info a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #064e3b; font-weight: 500; }
.my-review-event-image, .my-review-event-placeholder { width: 50px; height: 50px; object-fit: cover; border-radius: 5px; background-color: #e0e0e0; }
.my-review-content { flex-grow: 1; }
.my-review-meta { display: flex; justify-content: space-between; align-items: center; }
.my-review-text { font-style: italic; color: #555; margin-top: 5px; }

/* --- Admin Panel --- */
.admin-controls-panel {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.admin-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    justify-items: center;
    align-items: start;
}
.admin-control-button {
    width: 100%;
    max-width: 250px;
    text-align: center;
    padding: 12px 15px;
    font-size: 1rem;
    margin: 0;
    box-sizing: border-box;
}
tr.status-pending { border-left: 5px solid orange; }
tr.status-confirmed { border-left: 5px solid green; }
.html-editor-toolbar {
    margin-bottom: 10px;
    padding: 8px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.html-editor-toolbar button {
    background-color: #e9e9e9;
    color: #333;
    border: 1px solid #ccc;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* --- Static & Error Pages --- */
.faq-item {
    background-color: #fcfcfc;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}
.faq-item h3 {
    color: #064e3b;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3rem;
}
section ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
section ul li {
    background-color: #f8f9fa;
    border-left: 4px solid #065f46;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
}
.error-page h2 {
    font-size: 5rem;
    margin: 0;
}
.error-page p {
    font-size: 1.5rem;
    margin-top: 10px;
}
.error-page .button {
    margin-top: 30px;
}

/* ===================================================================
   6. Utility Classes & Animations
=================================================================== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

/* ===================================================================
   7. Media Queries (Responsiveness)
=================================================================== */
@media (max-width: 768px) {
    h2 { font-size: 1.8rem; }
    .buy-form { grid-template-columns: 1fr; }
    .admin-buttons-grid { grid-template-columns: 1fr; }
    .admin-control-button { max-width: none; }
    .flash-container {
        top: 20px;
        left: 20px;
        right: 20px;
        width: auto;
    }
	.cabinet-text-full {
    display: none;
}
.cabinet-text-short {
    display: inline; /* Отображаем короткую версию */
}
/* ================================== */
/* == НОВЫЕ СТИЛИ ДЛЯ ОТЗЫВОВ v3.1 == */
/* ================================== */

.review-card {
    display: flex;
    gap: 15px;
    padding: 20px 0;
}

.review-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0; /* Исправление для правильного переноса внутри flex-элемента */
}

.review-content-header {
    display: flex;
    align-items: flex-start;
    /* Убрали 'justify-content: space-between' */
}

.author-and-rating {
    display: flex;
    flex-direction: column;
    margin-right: 20px; /* Добавили отступ справа вместо растягивания */
}

.review-rating-display {
    margin-top: 4px;
}

.review-date {
    color: #888;
    font-size: 0.9em;
}

.review-body {
    margin-top: 10px;
}

.review-body p {
    margin: 0;
    font-size: 1.05em;
    line-height: 1.7;
    color: #495057;
    overflow-wrap: break-word; /* Главное свойство для переноса длинных слов */
    word-break: break-word;    /* Дополнительное свойство для лучшей совместимости */
}
}

@media (max-width: 480px) {
    .button {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* ========================================================== */
/* == НОВЫЕ КРАСИВЫЕ СТИЛИ ДЛЯ КАРТОЧКИ "ЧАСТО ПОСЕЩАЕМЫЕ" == */
/* ========================================================== */

.featured-section {
    /* Убираем фон секции, чтобы он не мешал общему фону страницы */
    background: none;
    border: none;
    box-shadow: none;
    padding-top: 20px;
    padding-bottom: 20px;
}

.featured-section h2 {
    /* Стили для заголовка "Часто посещаемые" */
    text-align: center;
    font-size: 2rem;
    color: #064e3b; /* Используем фирменный цвет из вашего style.css */
    margin-bottom: 25px;
}

.featured-slider {
    /* Добавляем немного отступов по бокам, чтобы карточки не прилипали к краям */
    padding: 0 10px;
}

.featured-card {
    /* Основа карточки */
    background-color: #ffffff;      /* Белый фон */
    border-radius: 12px;           /* Более заметные скругленные углы */
    overflow: hidden;              /* Обрезаем все, что выходит за рамки углов */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Мягкая тень как на картинке */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Плавная анимация при наведении */
    display: flex;
    flex-direction: column;
    height: 100%;                  /* Карточка занимает всю высоту слайда */
}

.featured-card:hover {
    /* Эффект при наведении */
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Убираем подчеркивание у ссылки */
.featured-card a, .featured-card a:hover {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Стили для изображения */
.featured-card img, .placeholder-image-featured {
    width: 100%;
    height: 180px;      /* Оптимальная высота для изображения */
    object-fit: cover;  /* Масштабируем изображение, чтобы оно заполнило блок без искажений */
}

.placeholder-image-featured {
    background-color: #e0e0e0; /* Фон для заглушки, если нет картинки */
}

/* Стили для заголовка */
.featured-card-title {
    padding: 20px 15px; /* Отступы внутри блока с текстом */
    text-align: center; /* Текст по центру */
    font-size: 1rem;    /* Размер шрифта */
    font-weight: 600;   /* Жирный шрифт */
    line-height: 1.4;   /* Межстрочный интервал */
    flex-grow: 1;       /* Позволяет блоку занять оставшееся место по высоте */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Этот код делает все карточки в слайдере одинаковыми по высоте */
.featured-slider .swiper-slide {
    height: auto; /* Позволяет слайдеру самому определять высоту по самой высокой карточке */
    display: flex;
    align-items: stretch; /* Заставляет все карточки растягиваться на 100% высоты ряда */
}

/* Стили для кнопок навигации слайдера (опционально, но улучшит вид) */
.featured-slider .swiper-button-next,
.featured-slider .swiper-button-prev {
    color: #065f46; /* Цвет стрелок в фирменном стиле */
	.featured-slider .swiper-slide {
    height: auto; /* Позволяет слайдеру самому определять высоту по самой высокой карточке */
    display: flex;
    align-items: stretch; /* Заставляет все карточки растягиваться на 100% высоты ряда */
}
}

/* Медиа-запрос для ПК, чтобы добавить больше "воздуха" по бокам слайдера */
@media (min-width: 769px) {
  .featured-slider {
    padding-left: 45px;
    padding-right: 45px;
  }
  .featured-slider .swiper-button-prev {
    left: 10px;
  }
  .featured-slider .swiper-button-next {
    right: 10px;
  }
  /* Блока .swiper-slide здесь больше нет */
}

/* Это контейнер, который делает чекбокс кликабельным */
.custom-checkbox-label {
    display: inline-block; /* Чтобы занимал место по размеру квадратика */
    position: relative;
    cursor: pointer;
    width: 24px;
    height: 24px;
    -webkit-user-select: none; /* Запрет выделения текста */
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Полностью прячем стандартный чекбокс */
.custom-checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Рисуем наш красивый квадрат */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: background-color 0.2s;
}

/* Меняем фон квадратика при наведении мыши */
.custom-checkbox-label:hover input ~ .checkmark {
    background-color: #ddd;
}

/* Когда чекбокс выбран, меняем фон на фирменный цвет */
.custom-checkbox-label input:checked ~ .checkmark {
    background-color: #065f46;
    border-color: #064e3b;
}

/* Рисуем галочку (изначально она не видна) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Показываем галочку, когда чекбокс выбран */
.custom-checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

/* Стили и положение самой галочки внутри квадрата */
.custom-checkbox-label .checkmark:after {
    left: 8px;
    top: 4px;
    width: 7px;
    height: 13px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Стили для инфо-блоков на странице мероприятия */
.event-info-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.info-box {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    flex-grow: 1;
    min-width: 250px;
}

.info-box i {
    font-size: 2rem;
    color: #065f46;
    margin-right: 20px;
}

.info-box-content {
    display: flex;
    flex-direction: column;
}

.info-box-title {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.info-box-data {
    font-size: 1.4rem;
    font-weight: bold;
    color: #343a40;
}

/* Новый дизайн для информации о дате/времени/месте */
.event-meta-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
    text-align: left;
}

.meta-item {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.meta-item.location-item {
    /* Для длинных адресов делаем так, чтобы элемент мог занимать всю ширину */
    grid-column: 1 / -1;
}

.meta-item i {
    font-size: 1.8rem;
    color: #065f46;
    margin-right: 15px;
    width: 30px; /* Фиксированная ширина для иконки */
    text-align: center;
}

.meta-text {
    display: flex;
    flex-direction: column;
}

.meta-text span {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.5px;
}

.meta-text strong {
    font-size: 1.1rem;
    color: #343a40;
    font-weight: 600;
}

/* --- Новый блок управления (фильтры + сортировка) --- */

.filter-sort-bar {
    background: #fff;
    padding: 15px 25px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    border: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between; /* Разносим элементы по краям */
    align-items: center;
    flex-wrap: wrap; /* Для мобильных устройств */
    gap: 20px;
}

/* --- Сортировка (без изменений, но нужна для контекста) --- */
.sorting-form {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sorting-form label {
    font-weight: 500;
    color: #495057;
}
.sorting-form select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    background-color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
}

/* --- Новое бургер-меню для категорий --- */
.category-burger-menu {
    position: relative; /* Нужно для позиционирования выпадающего списка */
    display: flex;
    align-items: center;
    gap: 15px;
}

.selected-category-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

/* Стили для выпадающего списка */
.category-dropdown {
    display: none; /* Изначально список скрыт */
    position: absolute;
    top: 130%; /* Располагаем под кнопкой */
    left: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    z-index: 100;
    padding: 8px;
    border: 1px solid #f0f0f0;
    max-height: 300px;
    overflow-y: auto;
}
.category-dropdown.show {
    display: block; /* Показываем список по клику */
}
.category-item {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-radius: 6px;
    white-space: nowrap;
}
.category-item:hover {
    background-color: #f5f5f5;
}
.category-item.active {
    background-color: #065f46;
    color: #fff;
    font-weight: bold;
}

/* --- Стили для самой кнопки-бургера (из вашего примера) --- */
.menu-btn {
    display: block;
    position: relative;
    width: 30px; /* Уменьшаем размер */
    height: 3px;
    background: linear-gradient(45deg, #065f46 0%, #059669 100%);
    transition: all .6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    cursor: pointer;
}
.menu-btn:before, .menu-btn:after {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    height: 3px;
    left: 0;
    background: linear-gradient(45deg, #065f46 0%, #059669 100%);
    transition: all .5s;
}
.menu-btn:before {
    width: 80%;
    top: -10px;
}
.menu-btn:after {
    width: 90%;
    top: 10px;
}
.menu-btn.open {
    transform: rotate(225deg);
}
.menu-btn.open:before, .menu-btn.open:after {
    top: 0px;
    width: 100%;
}
.menu-btn.open:after {
    transform: rotate(90deg);
}

/* Стили для объединенного блока фильтров и сортировки */
.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.category-filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Стили для нового выпадающего списка */
.custom-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
    width: 280px; /* Зададим ширину */
    justify-content: space-between;
}
.dropdown-toggle .fa-chevron-down {
    transition: transform 0.3s ease;
}
.custom-dropdown.open .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none; /* Изначально меню скрыто */
    position: absolute;
    top: 105%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1010;
    padding: 5px;
}
.custom-dropdown.open .dropdown-menu {
    display: block; /* Показываем меню */
}

.dropdown-item {
    display: block;
    padding: 10px 15px;
    color: #343a40;
    text-decoration: none;
    border-radius: 6px;
}
.dropdown-item:hover {
    background-color: #f8f9fa;
}
.dropdown-item.active {
    background-color: #065f46;
    color: #fff;
    font-weight: bold;
}

/* ===================================================================
   ИСПРАВЛЕНИЕ СТИЛЕЙ ПАГИНАЦИИ (v.Bulletproof)
=================================================================== */

/* ИЗМЕНЕНИЕ: Добавили 'nav' в начало каждого селектора, чтобы повысить его "важность" */

nav .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none !important;
    padding: 0;
    margin-top: 30px;
    gap: 8px;
}

nav .pagination .page-item {
    margin: 0;
    border: none !important;
}

nav .pagination .page-link {
    /* === Блок для унификации размера и центрирования === */
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    box-sizing: border-box;
    padding: 0;

    /* === Стили для обычного состояния кнопки === */
    text-decoration: none;
    color: #065f46;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

nav .pagination .page-link:hover {
    background-color: #f0f0f0;
    border-color: #065f46;
}

/* === Стили для активной (текущей) страницы === */
nav .pagination .page-item.active .page-link {
    background-color: #065f46;
    border-color: #065f46;
    color: #fff;
    font-weight: bold;
}

/* === Стили для неактивной кнопки ("Назад" на первой странице) === */
nav .pagination .page-item.disabled .page-link {
    color: #adb5bd;
    background-color: #f8f9fa;
    pointer-events: none;
    border-color: #e9ecef;
}

/* ========================================================= */
/* == ДОБАВЛЯЕМ "ВОЗДУХ" ДЛЯ СЛАЙДЕРА НА ПК == */
/* ========================================================= */

@media (min-width: 769px) {
  .featured-slider {
    /* Добавляем боковые отступы внутри контейнера слайдера */
    padding-left: 45px;
    padding-right: 45px;
  }

  /* Сдвигаем кнопки-стрелки, чтобы они оказались внутри новых отступов */
  .featured-slider .swiper-button-prev {
    left: 10px; /* Отступ левой стрелки от края */
  }
  .featured-slider .swiper-button-next {
    right: 10px; /* Отступ правой стрелки от края */
  }
}

/* ========================================================== */
/* == СТИЛИ ДЛЯ СЛАЙДЕРА С ЭФФЕКТОМ ЦЕНТРАЛЬНОГО ФОКУСА == */
/* ========================================================== */

/* Этот фикс нужен, чтобы можно было кликать на соседние слайды */
.featured-slider {
    overflow: visible;
}

/* Стили для всех слайдов по умолчанию (боковые, неактивные) */
.featured-slider .swiper-slide {
    opacity: 0.4; /* Полупрозрачные */
    transform: scale(0.85); /* Немного уменьшены */
    transition: transform 0.4s ease, opacity 0.4s ease; /* Плавный переход */
}

/* Стили для АКТИВНОГО (центрального) слайда */
.featured-slider .swiper-slide-active {
    opacity: 1; /* Полностью непрозрачный */
    transform: scale(1); /* Нормальный размер */
}

/* Этот блок для выравнивания высоты мы отключаем, так как он может мешать.
   Если карточки станут разной высоты - раскомментируйте его (уберите /* и */).
/*
.featured-slider .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}
*/

/* ========================================================= */
/* == СТИЛИ ДЛЯ ВЫРАВНИВАНИЯ ЧЕКБОКСА СОГЛАСИЯ (v.Fix) == */
/* ========================================================= */

.terms-agreement-container {
    display: flex; /* Включаем Flexbox для контейнера */
    align-items: flex-start; /* Выравниваем по верху */
    gap: 15px; /* Расстояние между галочкой и текстом */
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.terms-agreement-container .custom-checkbox-label {
    margin-top: 2px; /* Небольшой отступ сверху для идеального выравнивания */
    flex-shrink: 0; /* Запрещаем чекбоксу сжиматься */
}

.terms-agreement-container .terms-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #495057;
}

.terms-agreement-container .terms-text a {
    color: #065f46;
    text-decoration: underline;
}

/* ========================================================= */
/* == ОБНОВЛЕНИЕ СТИЛЕЙ СТРАНИЦЫ ПОКУПКИ (v.2)           == */
/* ========================================================= */

/* ПУНКТ 1: Стили для нового блока с ценой */
.price-info-box {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    background-color: #eaf7ff; /* Приятный голубой фон */
    border-left: 5px solid #007bff; /* Акцентная линия слева */
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.price-info-box .price-label {
    font-size: 1.1rem;
    color: #343a40;
    font-weight: 500;
}

.price-info-box .price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #065f46; /* Наш фирменный зеленый */
}

/* ПУНКТ 2: Стили для центрирования чекбокса и текста */
.terms-agreement-container {
    text-align: center; /* Центрируем весь контент */
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.terms-agreement-container .terms-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #495057;
    margin-bottom: 15px; /* Добавляем отступ под текстом */
}

.terms-agreement-container .custom-checkbox-label {
    display: inline-block; /* Это позволяет отцентрировать сам чекбокс */
}

/* ПУНКТ 3: Стили для горизонтального ряда кнопок */
.payment-choice-container {
    text-align: center;
    margin-top: 25px;
}

.payment-choice-container p {
    font-weight: 500;
    margin-bottom: 15px;
}

.payment-buttons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Позволит кнопкам переноситься, если не влезут */
    gap: 15px; /* Расстояние между кнопками */
}

.payment-buttons-row .button {
    margin: 0; /* Убираем лишние отступы */
}

/* ========================================================= */
/* == НОВЫЙ ДИЗАЙН КАРТОЧЕК В ПРОФИЛЕ (v.2)             == */
/* ========================================================= */

/* Сетка для билетов: одна карточка в ряд для лучшей читаемости */
.my-tickets .events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

/* Основа карточки билета */
.my-tickets .ticket-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    border-left: 5px solid #6c757d; /* Серая полоса по умолчанию */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.my-tickets .ticket-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Цветная полоса в зависимости от статуса */
.my-tickets .ticket-card.status-confirmed {
    border-left-color: #28a745; /* Зеленый */
}
.my-tickets .ticket-card.status-pending {
    border-left-color: #fd7e14; /* Оранжевый */
}

/* Основное содержимое карточки */
.my-tickets .ticket-card .event-card-body {
    padding: 25px;
    flex-grow: 1;
}

/* Стиль для названия мероприятия */
/* Улучшенный стиль для названия мероприятия */
.my-tickets .ticket-card .event-title {
    font-size: 1.6rem;   /* Увеличили размер шрифта */
    font-weight: 700;    /* Сделали шрифт более жирным */
    color: #343a40;
    margin-bottom: 25px; /* Немного увеличили отступ снизу */
    line-height: 1.3;    /* Улучшили межстрочный интервал на случай длинных названий */
}

/* Контейнер для даты и статуса */
.my-tickets .ticket-card .ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
}

.my-tickets .ticket-card .meta-item {
    font-size: 1rem;
    color: #6c757d;
}
.my-tickets .ticket-card .meta-item strong {
    color: #343a40;
    margin-right: 8px;
}

/* Новый стиль для статуса (капсула/badge) */
.my-tickets .ticket-card .status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
    line-height: 1.2;
}
.my-tickets .ticket-card .status-badge.status-confirmed {
    background-color: #d4edda;
    color: #155724;
}
.my-tickets .ticket-card .status-badge.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

/* Подвал с кнопками */
.my-tickets .ticket-card .event-card-footer {
    padding: 15px 25px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-end;
}

/* ========================================================= */
/* == СТИЛИ ДЛЯ ЦЕНЫ НА КАРТОЧКАХ "ЧАСТО ПОСЕЩАЕМЫЕ"    == */
/* ========================================================= */

.featured-card-image-container {
    position: relative; /* Это нужно, чтобы позиционировать дочерние элементы */
}

.featured-card .featured-card-price {
    position: absolute; /* Позиционируем поверх родительского элемента */
    bottom: 10px;       /* 10px от нижнего края */
    right: 10px;        /* 10px от правого края */
    
    background-color: rgba(255, 255, 255, 0.8); /* Белый полупрозрачный фон */
    color: #333;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(4px); /* Эффект "матового стекла" для современных браузеров */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Выравниваем заголовок "Описание мероприятия" по центру */
.event-info-block h3 {
    text-align: center;
}