/* ==========================================================================
   ДАТАМЕСТО — STYLE.CSS
   ========================================================================== */

/* ==========================================================================
   1. БАЗОВЫЕ СТИЛИ
   ========================================================================== */
html {
    overflow-y: scroll;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f8f9fa;
    color: #1a1a2e;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

main {
    flex: 1 0 auto;
    padding: 0;
}

.main-index {
    padding-top: 0;
}
.main-home {
    padding-top: 20px;
}
.main-other {
    padding-top: 30px;
}
.main-profile {
    padding-top: 30px;
}
.main-edit-profile {
    padding-top: 30px;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ==========================================================================
   2. КНОПКИ
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-primary {
    background: #e53935;
    color: #fff;
    border-color: #e53935;
}
.btn-primary:hover {
    background: #c62828;
    border-color: #c62828;
}

.btn-secondary {
    background: #1a1a2e;
    color: #fff;
    border-color: #1a1a2e;
}
.btn-secondary:hover {
    background: #2a2a4e;
    border-color: #2a2a4e;
}

.btn-danger {
    background: #E33737;
    color: #fff;
    border-color: #E33737;
}
.btn-danger:hover {
    background: #c62a2a;
    border-color: #c62a2a;
}

.btn-outline,
.btn-ghost,
.btn-edit {
    background: #fff;
    color: #1a1a2e;
    border: 1px solid #d8dde3;
}
.btn-outline:hover,
.btn-ghost:hover,
.btn-edit:hover {
    background: #f8f9fa;
    border-color: #c4cbd2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.btn-outline:active,
.btn-ghost:active,
.btn-edit:active {
    background: #f1f3f5;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 17px;
}

.btn-block {
    width: 100%;
    display: flex;
    margin-top: 12px;
}

/* Лоадер на кнопке */
.btn .btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn .btn-loader i {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Кнопка «Войти через VK» */
.btn-vk {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    box-sizing: border-box;
    line-height: 1.2;
    font-family: inherit;
}
.btn-vk:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}
.btn-vk:active {
    background: rgba(255, 255, 255, 0.15);
}
.btn-vk i {
    font-size: 18px;
}


/* ==========================================================================
   3. ФОРМЫ
   ========================================================================== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #1a1a2e;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
    height: 44px;
}

textarea.form-control {
    height: auto;
    min-height: 100px;
}

.form-required-hint {
    margin: 0 0 20px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    color: #6c757d;
    border-left: 3px solid #e53935;
}

.required-star {
    color: #e53935;
    font-weight: 700;
    margin-left: 2px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}
.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #e53935;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}
.form-check label {
    cursor: pointer;
    margin: 0 !important;
    font-weight: 400 !important;
    font-size: 15px !important;
    color: #1a1a2e;
}

.form-check-hint {
    color: #6c757d;
    font-weight: 400;
    font-size: 13px;
}

.form-submit-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    flex-wrap: wrap;
}

.form-submit-draft {
    padding: 12px 24px;
    font-size: 15px;
    background: #fff;
    border: 1px solid #d8dde3;
    color: #1a1a2e;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.form-submit-draft:hover {
    background: #f8f9fa;
    border-color: #c4cbd2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.form-submit-primary {
    padding: 12px 32px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.form-submit-row--three .form-submit-draft {
    flex: 1 1 auto;
    min-width: 160px;
}
.form-submit-row--three .form-submit-primary {
    flex: 1 1 auto;
    min-width: 200px;
}

/* Поля с суффиксом «лет» */
.input-with-suffix {
    display: flex;
    align-items: center;
    gap: 8px;
}
.input-with-suffix .form-control {
    width: 100px;
    flex: 0 0 auto;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}
.input-with-suffix .form-control::-webkit-outer-spin-button,
.input-with-suffix .form-control::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}
.input-suffix {
    color: #6c757d;
    font-size: 14px;
    white-space: nowrap;
    user-select: none;
}

/* Прячем стрелки у number */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Одинаковые стрелки в select и input */
.field-wrap {
    position: relative;
    display: block;
}
.field-wrap select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none;
}
.field-wrap select.form-control::-ms-expand {
    display: none;
}
.field-wrap::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    pointer-events: none;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #6c757d;
}
.field-wrap .form-control {
    padding-right: 40px;
}

/* Быстрые кнопки даты/времени */
.date-quick-buttons,
.time-quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}
.date-quick-buttons .btn,
.time-quick-buttons .btn {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 10px;
    border: 1px solid #d8dde3;
    background: #fff;
    color: #1a1a2e;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.date-quick-buttons .btn:hover,
.time-quick-buttons .btn:hover {
    background: #f8f9fa;
    border-color: #c4cbd2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Поле-пароль с глазиком */
.password-field {
    position: relative;
}
.password-field .form-control {
    padding-right: 44px;
}
.password-field .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: 18px;
    padding: 0;
    line-height: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Маска телефона */
#phone,
#emergency_phone {
    letter-spacing: 0.5px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

/* Скрытое поле */
.field-disabled {
    background-color: #f2f2f2;
    color: #888;
    cursor: not-allowed;
}

/* ==========================================================================
   4. FILE UPLOAD (единая конструкция)
   ========================================================================== */
.file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.file-upload {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #fff;
    cursor: pointer;
    color: #1a1a2e;
    font-size: 14px;
    user-select: none;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.file-upload__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: #f1f3f5;
    color: #1a1a2e;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #d8dde3;
    border-radius: 6px;
    white-space: nowrap;
    flex: 0 0 auto;
}
.file-upload__btn i {
    font-size: 12px;
}
.file-upload:hover .file-upload__btn {
    background: #e9ecef;
    border-color: #c4cbd2;
}

.file-upload__name {
    flex: 1 1 0%;
    min-width: 0;
    color: #6c757d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
    padding-left: 6px;
}
.file-upload.has-file .file-upload__name {
    color: #1a1a2e;
}

.file-upload__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: transparent;
    border: none;
    color: #6c757d;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    line-height: 1;
}
.file-upload__clear:hover {
    color: #e53935;
}

.file-input-hidden:focus + .file-upload {
    border-color: #dc3c46;
    box-shadow: 0 0 0 3px rgba(220, 60, 70, 0.15);
}

/* ==========================================================================
   5. ШАПКА
   ========================================================================== */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 40px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
}
.logo span {
    color: #e53935;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
    transition: all 0.3s ease;
    margin: 0 auto;
    height: 100%;
}
.nav a {
    font-size: 14px;
    color: #495057;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
    line-height: 1;
    display: flex;
    align-items: center;
}
.nav a:hover {
    border-bottom-color: #e53935;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    height: 100%;
}
.nav-right a {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
    line-height: 1;
    display: flex;
    align-items: center;
}
.nav-right a:hover {
    border-bottom-color: #e53935;
}
.nav-right .nav-logout {
    color: #b91c1c;
}
.nav-right .nav-logout:hover {
    border-bottom-color: #b91c1c;
}

.nav-settings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    color: #495057;
    font-size: 18px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border-bottom: none !important;
}
.nav-settings:hover {
    background: #e9ecef;
    color: #495057;
    border-bottom: none !important;
}

/* Поиск в шапке (десктоп) */
.nav-search {
    display: flex;
    align-items: center;
    position: relative;
}
.nav-search-toggle {
    background: none;
    border: none;
    color: #495057;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}
.nav-search-toggle:hover {
    background: #f1f3f5;
    color: #e53935;
}
.nav-search-form {
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease, padding 0.3s ease;
    background: #fff;
}
.nav-search.open .nav-search-form {
    width: 260px;
    padding-right: 8px;
}
.nav-search-form input {
    width: 100%;
    padding: 8px 14px;
    border: 1px solid #ced4da;
    border-radius: 20px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}
.nav-search-form input:focus {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

/* Мобильный поиск */
.mobile-search-toggle {
    display: none;
    background: none;
    border: none;
    color: #1a1a2e;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    order: 2;
}

/* ==========================================================================
   6. БУРГЕР И МОБИЛЬНОЕ МЕНЮ
   ========================================================================== */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    order: 4;
}
.burger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #1a1a2e;
    border-radius: 2px;
    transition: 0.3s;
}
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 80%;
    height: 100%;
    background: #ffffff;
    z-index: 1000;
    padding: 20px 20px 30px;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 16px;
}
.mobile-menu-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}
.mobile-menu-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
}
.mobile-menu-close:hover {
    color: #1a1a2e;
}
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a2e;
    border-bottom: 1px solid #f1f3f5;
    transition: color 0.2s;
}
.mobile-menu-nav a i {
    width: 24px;
    text-align: center;
    color: #6c757d;
}
.mobile-menu-nav a:hover {
    color: #e53935;
}
.mobile-menu-nav a:hover i {
    color: #e53935;
}

.mobile-profile-link {
    margin-top: 8px;
    font-weight: 600 !important;
    color: #1a1a2e;
}

.mobile-create-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 20px;
    padding: 14px 20px;
    text-align: center !important;
    justify-content: center !important;
    background: #e53935;
    color: #fff !important;
    border-radius: 10px;
    font-weight: 600;
    border: none !important;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s;
}
.mobile-create-btn:hover {
    background: #c62828;
    color: #fff !important;
}

.mobile-my-events,
.mobile-my-registrations {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a2e;
    border-bottom: 1px solid #f1f3f5;
    transition: color 0.2s;
}
.mobile-my-events i,
.mobile-my-registrations i {
    width: 24px;
    text-align: center;
    color: #6c757d;
}
.mobile-my-events:hover,
.mobile-my-registrations:hover {
    color: #e53935;
}
.mobile-my-events:hover i,
.mobile-my-registrations:hover i {
    color: #e53935;
}

/* Поиск в мобильном меню */
.mobile-search-form {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}
.mobile-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.mobile-search-input-wrapper i {
    position: absolute;
    left: 14px;
    color: #6c757d;
    font-size: 14px;
    pointer-events: none;
}
.mobile-search-input-wrapper input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #f8f9fa;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.mobile-search-input-wrapper input:focus {
    border-color: #e53935;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

/* ==========================================================================
   7. МЕНЮ ПОЛЬЗОВАТЕЛЯ (выпадающее)
   ========================================================================== */
.nav-user-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu__trigger {
    position: relative;
    cursor: pointer;
    white-space: nowrap;
}

.user-menu__dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    left: auto;
    min-width: 280px;
    padding: 6px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.04),
        0 12px 28px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 200;
}

.user-menu:hover .user-menu__dropdown,
.user-menu.is-open .user-menu__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu__dropdown::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid #e9ecef;
    border-top: 1px solid #e9ecef;
    transform: rotate(45deg);
    border-radius: 2px 0 0 0;
    z-index: 1;
}

.user-menu__dropdown::after {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    width: 100%;
    height: 14px;
}

.user-menu__inner {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 0;
    overflow: hidden;
    border-radius: 12px;
}

.user-menu__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px 12px;
    margin-bottom: 4px;
}

.user-menu__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e53935;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}
.user-menu__avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.user-menu__userinfo {
    min-width: 0;
    flex: 1;
}
.user-menu__name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-menu__email {
    font-size: 12px;
    color: #8a9aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.user-menu__group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.user-menu__group:first-of-type {
    border-top: none;
}
.user-menu__group-title {
    padding: 6px 24px 2px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.45;
}

.user-menu .user-menu__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 24px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    border-bottom: none !important;
    line-height: 1.3;
}
.user-menu .user-menu__item i {
    width: 20px;
    text-align: center;
    color: #8a9aaa;
    font-size: 14px;
    flex-shrink: 0;
    transition: color 0.15s;
}
.user-menu .user-menu__item:hover {
    background: #f8f9fa;
    color: #e53935;
    border-bottom: none !important;
}
.user-menu .user-menu__item:hover i {
    color: #e53935;
}
.user-menu .user-menu__item--danger,
.user-menu .user-menu__item--danger i {
    color: #b91c1c;
}
.user-menu .user-menu__item--danger:hover {
    background: #fde8eb;
    color: #b91c1c;
}
.user-menu .user-menu__item--danger:hover i {
    color: #b91c1c;
}

.user-menu__divider {
    height: 1px;
    background: #e9ecef;
    margin: 4px 24px;
}

/* Подменю */
.user-menu__submenu {
    display: block;
    width: 100%;
}
.user-menu__submenu > summary {
    list-style: none;
    cursor: pointer;
}
.user-menu__submenu > summary::-webkit-details-marker {
    display: none;
}
.user-menu__item--toggle {
    position: relative;
}
.user-menu__chevron {
    margin-left: auto;
    font-size: 0.7rem;
    opacity: 0.5;
    transition: transform 0.2s ease;
}
.user-menu__submenu[open] .user-menu__chevron {
    transform: rotate(180deg);
}
.user-menu__submenu-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 4px 0 4px 20px;
    padding-left: 12px;
    border-left: 2px solid rgba(0, 0, 0, 0.08);
}
.user-menu__item--sub {
    font-size: 0.85rem;
    padding: 6px 10px;
    opacity: 0.85;
}
.user-menu__item--sub:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}
.user-menu__item--sub i:first-child {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* ==========================================================================
   8. ЛИЧНЫЙ КАБИНЕТ — layout, меню, карточки
   ========================================================================== */
.profile-layout {
    display: flex;
    gap: 30px;
    max-width: 1100px;
    margin: 20px auto 40px;
    padding: 0 20px;
    align-items: flex-start;
}

.profile-menu {
    width: 300px;
    max-width: 300px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 90px;
}

.profile-menu__group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.profile-menu__group:first-of-type {
    border-top: none;
}
.profile-menu__group-title {
    padding: 8px 16px 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.4;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-left: 1px solid transparent;
    transition: all 0.15s;
}
.profile-menu-item i {
    width: 20px;
    color: #8a9aaa;
    font-size: 15px;
}
.profile-menu-item:hover {
    background: #f8f9fa;
    color: #1a1a2e;
}
.profile-menu-item:hover i {
    color: #1a1a2e;
}
.profile-menu-item.active {
    background: #f1f3f5;
    color: #e53935;
    border-left-color: #e53935;
    font-weight: 600;
}
.profile-menu-item.active i {
    color: #e53935;
}
.profile-menu-item.logout {
    color: #b91c1c;
    border-top: 1px solid #e9ecef;
    margin-top: 8px;
    padding-top: 16px;
}
.profile-menu-item.logout i {
    color: #b91c1c;
}
.profile-menu-item.logout:hover {
    background: #fde8eb;
}

/* Подменю «Кабинет организатора» */
.profile-menu__submenu {
    display: block;
    width: 100%;
}
.profile-menu__submenu > summary {
    list-style: none;
    cursor: pointer;
}
.profile-menu__submenu > summary::-webkit-details-marker {
    display: none;
}
.profile-menu-item--toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 6px;
    line-height: 1.2;
    transition: background 0.15s ease;
    font-size: inherit;
    color: inherit;
}
.profile-menu-item--toggle span {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-menu-item--toggle:hover {
    background: #f8f9fa;
}
.profile-menu-chevron {
    flex-shrink: 0;
    margin-left: auto;
    font-size: 0.7rem;
    opacity: 0.5;
    transition: transform 0.2s ease;
}
.profile-menu__submenu[open] .profile-menu-chevron {
    transform: rotate(180deg);
}
.profile-menu__submenu-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 4px 0 4px 28px;
    padding-left: 12px;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}
.profile-menu-item--sub {
    font-size: 0.875rem;
    padding: 8px 12px;
    opacity: 0.85;
}
.profile-menu-item--sub:hover {
    opacity: 1;
    background: #f8f9fa;
}
.profile-menu-item--sub i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.profile-main-content {
    flex: 1;
    min-width: 0;
}

.profile-menu-toggle,
.profile-menu-header,
.profile-menu-close,
.profile-menu-overlay {
    display: none;
}

/* Карточка «Мои события» */
.profile-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    gap: 16px;
    flex-wrap: wrap;
}
.profile-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

/* Профиль — данные */
.profile-card-single {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.profile-data-list p {
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f5;
    margin: 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.profile-data-list p:last-of-type {
    border-bottom: none;
}
.profile-data-list strong {
    color: #495057;
    font-weight: 600;
    flex-shrink: 0;
}
.profile-data-list .profile-value {
    color: #1a1a2e;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

/* Форма редактирования профиля */
.edit-profile-card .form-group {
    margin-bottom: 18px;
}
.edit-profile-card .form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #495057;
}
.edit-profile-card .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
    height: 44px;
}
.edit-profile-card .form-control:focus {
    border-color: #e53935;
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Уменьшили отступ между кнопками, как в комментариях */
    margin-top: 24px;
    padding-top: 16px;
}

/* Приводим размеры кнопок к тем, что в комментариях */
.edit-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px; /* Компактные отступы */
    font-size: 13px;   /* Меньший шрифт */
    font-weight: 500;
    border-radius: 8px; /* Чуть меньше скругление */
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.edit-actions .btn i {
    font-size: 12px;
}

.edit-actions .btn-save {
    background: #e53935;
    color: #fff;
    border: 1px solid #e53935;
}
.edit-actions .btn-save:hover {
    background: #c62828;
    border-color: #c62828;
}
.edit-actions .btn-back {
    background: #fff;
    color: #1a1a2e;
    border: 1px solid #d8dde3;
}
.edit-actions .btn-back:hover {
    background: #f8f9fa;
    border-color: #c4cbd2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Поле аватара */
.avatar-field {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    flex-wrap: wrap;
}
.avatar-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.avatar-preview {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e9ecef;
    background: #fff;
}
.avatar-placeholder-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e53935;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}
.avatar-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    color: #1a1a2e;
    border: 1px solid #d8dde3;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    user-select: none;
}
.avatar-upload-btn:hover {
    background: #f8f9fa;
    border-color: #c4cbd2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.avatar-upload-btn:active {
    background: #f1f3f5;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}
.avatar-upload-btn i {
    font-size: 14px;
    color: #6c757d;
}
.avatar-file-name {
    font-size: 13px;
    color: #6c757d;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.avatar-file-name.has-file {
    color: #0a7e3d;
    font-weight: 500;
}

/* Профиль — «О проекте» стили остаются */
.profile-card p {
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f5;
    margin: 0;
    display: flex;
    justify-content: space-between;
}
.profile-card p:last-of-type {
    border-bottom: none;
}
.profile-card strong {
    color: #495057;
    font-weight: 600;
}
.profile-card .profile-value {
    color: #1a1a2e;
    font-weight: 500;
}

/* ==========================================================================
   9. КАРТОЧКИ СОБЫТИЙ (общая сетка /events/)
   ========================================================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.page-header h1 {
    font-size: 28px;
    font-weight: 700;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding-bottom: 20px;
}

.card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: box-shadow 0.2s, transform 0.2s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-cover-link {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f3f5;
    text-decoration: none;
}
.card-cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.card:hover .card-cover {
    transform: scale(1.05);
}

.card .badge,
.my-event-info .badge,
.my-registration-info .badge {
    display: inline-block;
    width: auto;
    font-size: 12px;
    font-weight: 600;
    color: #e53935;
    background: #fde8eb;
    padding: 2px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}
.card h3 a {
    color: #1a1a2e;
}
.card h3 a:hover {
    color: #e53935;
}

.card .meta {
    font-size: 14px;
    color: #6c757d;
    margin: 4px 0;
}
.card .description {
    font-size: 14px;
    color: #495057;
    margin: 10px 0 14px;
    line-height: 1.4;
}
.card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
    font-size: 14px;
    margin-top: auto;
}
.card .participants {
    color: #6c757d;
}

/* Кнопка «Поделиться» в карточке */
.card-share-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.card-share-btn:hover {
    background: #f1f3f5;
    color: #e53935;
}

/* Кнопка «Пригласить» в сайдбаре */
.sidebar-card .card-share-btn {
    background: #e53935;
    color: #fff;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    transition: background 0.2s;
    font-family: inherit;
}
.sidebar-card .card-share-btn:hover {
    background: #c62828;
}
.sidebar-card .card-share-btn i {
    font-size: 15px;
}

/* Статусы для карточек и «Мои события» */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
}
.status-badge i {
    font-size: 15px;
    line-height: 1;
    color: inherit;
}
.status-badge.status-published,
.status-badge.status-open {
    padding: 5px 12px;
    min-height: auto;
    border-radius: 6px;
    background: #d4edda;
    color: #155724;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 600;
}
.status-badge.status-pending {
    background: #fef3e0;
    color: #b45a1c;
    border-color: #f5d6a8;
}
.status-badge.status-draft {
    background: #f1f3f5;
    color: #495057;
    border-color: #dee2e6;
}
.status-badge.status-cancelled {
    background: #fde8eb;
    color: #b91c1c;
    border-color: #f5c6cb;
}
.status-badge.status-finished {
    background: #eef0f2;
    color: #495057;
    border-color: #dee2e6;
}

.status-published {
    color: #0a7e3d;
    font-weight: 600;
}
.status-pending {
    color: #b45a1c;
    font-weight: 600;
}
.status-draft {
    color: #6c757d;
    font-weight: 600;
}
.status-cancelled {
    color: #b91c1c;
    font-weight: 600;
}
.status-finished {
    color: #495057;
    font-weight: 600;
}

/* Большая кнопка «Открыта регистрация» */
.status-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 24px;
    min-height: 44px;
    border-radius: 10px;
    background: #d4edda;
    color: #155724;
    border: none;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.15s, box-shadow 0.15s;
}
.status-open:hover {
    background: #c3e6cb;
    color: #155724;
}
.status-open i {
    font-size: 15px;
    color: inherit;
}
.status-closed {
    background: #fff3cd;
    color: #856404;
}

/* Кнопка «Купить билет» */
.status-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 24px;
    min-height: 44px;
    border-radius: 8px;
    background: #d4edda;
    color: #155724;
    border: none;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.15s, box-shadow 0.15s;
}
.status-buy i {
    font-size: 15px;
    color: inherit;
}
.status-buy-link {
    text-decoration: none;
}
.status-buy-link:hover {
    background: #c3e6cb;
    color: #155724;
}
.status-buy-link:active {
    background: #b1dfbb;
}

/* ==========================================================================
   10. МОИ СОБЫТИЯ
   ========================================================================== */
.my-events-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 900px) {
    .my-events-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.my-event-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
    padding: 0;
    margin: 0;
}
.my-event-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.my-event-cover-link {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f3f5;
    text-decoration: none;
    padding: 0;
    margin: 0;
}
.my-event-cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.my-event-card:hover .my-event-cover {
    transform: scale(1.05);
}

.my-event-draft-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(108, 117, 125, 0.9);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
}

.my-event-info {
    padding: 16px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.my-event-info h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 4px 0 6px;
    line-height: 1.3;
    word-break: break-word;
}
.my-event-info h3 a {
    color: #1a1a2e;
    text-decoration: none;
}
.my-event-info h3 a:hover {
    color: #e53935;
}
.my-event-meta {
    font-size: 14px;
    color: #6c757d;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    word-break: break-word;
}
.my-event-meta i {
    color: #adb5bd;
    width: 14px;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 3px;
}
.my-event-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    font-size: 14px;
    flex-wrap: wrap;
}
.my-event-participants {
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.my-event-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px 16px 16px;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}
.my-event-actions .btn {
    padding: 8px 12px;
    font-size: 13px;
    justify-content: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* Миниатюра обложки */
.my-event-thumb {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 96px;
    height: 96px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #e9ecef;
    background: #f1f3f5;
}
.my-event-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 28px;
}

/* ==========================================================================
   11. МОИ РЕГИСТРАЦИИ
   ========================================================================== */
.my-registrations-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.my-registration-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}
.my-registration-card.cancelled {
    opacity: 0.65;
}
.my-registration-info {
    flex: 1;
    min-width: 250px;
}
.my-registration-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.my-registration-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a2e;
}
.my-registration-info h3 a {
    color: #1a1a2e;
}
.my-registration-info h3 a:hover {
    color: #e53935;
}
.my-registration-meta {
    font-size: 14px;
    color: #6c757d;
    margin: 4px 0;
}
.my-registration-meta i {
    width: 20px;
    color: #adb5bd;
}
.my-registration-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}
.my-registration-actions .btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 10px;
}

.reg-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
}
.reg-status-confirmed {
    background: #e3f5e9;
    color: #0a7e3d;
}
.reg-status-waiting {
    background: #fef3e0;
    color: #b45a1c;
}
.reg-status-cancelled {
    background: #fde8eb;
    color: #b91c1c;
}
.reg-status-attended {
    background: #e3eaff;
    color: #4c75a3;
}

/* ==========================================================================
   12. СТРАНИЦА СОБЫТИЯ
   ========================================================================== */
.event-detail-container {
    max-width: 1100px;
    margin: 20px auto 40px;
    padding: 0 20px;
}

.back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: #e53935;
    text-decoration: none;
    font-weight: 500;
}
.back-link:hover {
    text-decoration: underline;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}
.event-header h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.category-tag {
    display: inline-block;
    background: #fde8eb;
    color: #e53935;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.event-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.event-main {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #e9ecef;
}

.event-meta {
    font-size: 16px;
    color: #555;
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.event-meta i {
    width: 24px;
    color: #e53935;
}
.event-meta a {
    color: #e53935;
    text-decoration: underline;
}
.event-warning {
    color: #b91c1c;
}

.event-description {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin: 24px 0;
}

/* Обложка */
.event-cover-wrapper {
    margin: -32px -32px 24px -32px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}
.event-cover {
    display: block;
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

/* Сайдбар */
.event-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e9ecef;
}
.sidebar-card h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #1a1a2e;
}
.sidebar-card .stat {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.sidebar-card .stat:last-child {
    border-bottom: none;
}
.sidebar-card .stat-label {
    color: #888;
}
.sidebar-card .stat-value {
    font-weight: 600;
}
.sidebar-card__hint {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.event-notice {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}
.event-notice-success { background: #e3f5e9; color: #0a7e3d; }
.event-notice-warning { background: #fef3e0; color: #b45a1c; }
.event-notice-error { background: #fde8eb; color: #b91c1c; }
.event-notice-info { background: #f0f0f0; }
.event-notice-info a { color: #e53935; font-weight: 600; }

/* Список участников */
.participants-list {
    list-style: none;
    margin-top: 8px;
}
.participants-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.participants-list li:last-child {
    border-bottom: none;
}
.participants-list .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e53935;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}
.participants-list .avatar-img {
    object-fit: cover;
}
.participants-list .participant-name {
    font-size: 14px;
    color: #1a1a2e;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Требования к участникам */
.event-requirements {
    margin: 24px 0;
    padding: 16px 20px;
    background: #fef3e0;
    border-left: 4px solid #e53935;
    border-radius: 8px;
}
.event-requirements .event-meta {
    margin: 8px 0;
    color: #b45a1c;
    font-weight: 500;
}
.event-requirements i {
    color: #e53935;
    width: 22px;
}

/* Правила мероприятия */
.event-rules {
    margin-top: 32px;
    padding: 20px 24px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
}
.event-rules h2 {
    margin: 0 0 16px;
    font-size: 1.2rem;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 8px;
}
.event-rules__block {
    margin-bottom: 18px;
}
.event-rules__block:last-child {
    margin-bottom: 0;
}
.event-rules__block h3 {
    font-size: 1rem;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.event-rules__block h3 i {
    color: #e63946;
    font-size: 0.9rem;
}
.event-rules__text {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #333;
}
.event-rules__text p {
    margin: 0 0 8px;
}
.event-rules__text p:last-child {
    margin-bottom: 0;
}

/* Согласие на регистрацию */
.register-consent .checkbox-line a {
    color: #e63946;
    text-decoration: none;
}
.register-consent .checkbox-line a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   13. КОММЕНТАРИИ
   ========================================================================== */
.event-main__comments {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
}
.event-main__comments-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
}
.event-main__comments .comment-form {
    margin-bottom: 20px;
}
.event-main__comments .comment-form textarea {
    resize: vertical;
    min-height: 90px;
    font-family: inherit;
    font-size: 15px;
}
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.comment-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}
.event-main__comments .comment-item {
    padding: 14px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 12px;
}
.event-main__comments .comment-item:last-child {
    margin-bottom: 0;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}
.comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}
.comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.comment-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.comment-date {
    font-size: 12px;
    color: #adb5bd;
}
.comment-text {
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
    margin-bottom: 8px;
    word-wrap: break-word;
}
.comment-actions {
    display: flex;
    gap: 12px;
    font-size: 13px;
}
.comment-actions a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
}
.comment-actions a:hover {
    color: #e53935;
}
.comment-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* ==========================================================================
   14. ФОТО СОБЫТИЯ
   ========================================================================== */
.upload-photos-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid #e9ecef;
    max-width: 600px;
}
.upload-photos-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}
.upload-photos-subtitle {
    font-size: 16px;
    color: #6c757d;
    margin: 0 0 24px;
}
.upload-photos-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.event-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.event-photo-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
}

.event-photo-item {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    background: #f1f3f5;
    cursor: pointer;
    overflow: hidden;
    font-family: inherit;
    text-decoration: none;
}
.event-photo-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.event-photo-wrap:hover .event-photo-item img {
    transform: scale(1.05);
}

.event-photo-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 8px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}
.event-photo-item:hover .event-photo-meta {
    opacity: 1;
}

/* Кнопка удаления фото — всегда видна */
.event-photo-delete-form {
    position: absolute;
    top: 8px;
    right: 8px;
    margin: 0;
    z-index: 10;
}
.event-photo-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(229, 57, 53, 0.95);
    color: #fff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.event-photo-delete i {
    color: #fff;
    font-size: 15px;
    line-height: 1;
}
.event-photo-delete:hover {
    background: #c62828;
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(229, 57, 53, 0.65);
}
.event-photo-delete:active {
    transform: scale(0.95);
}
.event-photo-delete:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Общая галерея фото (страница /photos/) */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.photo-card {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    border: none;
    padding: 0;
    cursor: pointer;
    background: #f1f3f5;
    font-family: inherit;
    transition: transform 0.2s;
}
.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.photo-card:hover img {
    transform: scale(1.05);
}
.photo-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: #fff;
    text-align: left;
    opacity: 0;
    transition: opacity 0.2s;
}
.photo-card:hover .photo-card-overlay {
    opacity: 1;
}
.photo-card-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.photo-card-meta {
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    gap: 6px;
    opacity: 0.85;
}
.photo-card-meta i {
    font-size: 10px;
}

/* ==========================================================================
   15. ЛАЙТБОКС
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox.open {
    opacity: 1;
    visibility: visible;
}
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
}
.lightbox-caption {
    color: #fff;
    font-size: 14px;
    text-align: center;
    opacity: 0.85;
    max-width: 80vw;
}
.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
    z-index: 10001;
}
.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}
.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
    z-index: 10001;
    user-select: none;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   16. ФИЛЬТРЫ
   ========================================================================== */
.filters {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    margin-bottom: 24px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.filters-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.filters-row-top {
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f3f5;
}
.filters-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.filters-dates a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.filters-dates a i {
    font-size: 13px;
}
.filters-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.filters a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    background: #fff;
    border: 1px solid #d8dde3;
    text-decoration: none;
    line-height: 1.2;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.filters a:hover {
    background: #f8f9fa;
    border-color: #c4cbd2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.filters a.active {
    background: #e53935;
    color: #fff;
    border-color: #e53935;
}
.filters a.active:hover {
    background: #c62828;
    border-color: #c62828;
}

/* Город */
.city-filter-wrapper {
    display: inline-flex;
    align-items: center;
}
.city-filter {
    padding: 8px 36px 8px 16px;
    border: 1px solid #d8dde3;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    color: #1a1a2e;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%231a1a2e' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    min-width: 180px;
    line-height: 1.2;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    height: 40px;
}
.city-filter:hover {
    background-color: #f8f9fa;
    border-color: #c4cbd2;
}
.city-filter:focus {
    outline: none;
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

/* Date picker */
.date-picker-wrapper {
    display: inline-flex;
    align-items: center;
    position: relative;
    gap: 4px;
}
.date-picker-input {
    padding: 8px 16px;
    border: 1px solid #d8dde3;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    color: #1a1a2e;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    height: 40px;
    min-width: 160px;
}
.date-picker-input:hover {
    background-color: #f8f9fa;
    border-color: #c4cbd2;
}
.date-picker-input:focus {
    outline: none;
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}
.date-picker-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #fde8eb;
    color: #b91c1c;
    font-size: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.15s, border-color 0.15s;
    border: 1px solid transparent;
}
.date-picker-clear:hover {
    background: #f8d7da;
    border-color: #e5a0a8;
}

/* ==========================================================================
   17. СООБЩЕНИЯ (ТОСТ В ПРАВОМ ВЕРХНЕМ УГЛУ)
   ========================================================================== */
.messages {
    position: fixed;
    top: 72px;
    right: max(20px, calc((100vw - 1100px) / 2 + 20px));
    left: auto;
    transform: none;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    width: auto;
    max-width: 380px;
    padding: 0;
    pointer-events: none;
}

.messages .alert {
    pointer-events: auto;
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.35;
    white-space: normal;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: msgSlideInRight 0.3s ease;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.messages .alert.alert--hiding {
    opacity: 0;
    transform: translateX(20px);
}
@keyframes msgSlideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.messages .alert-success {
    background: rgba(10, 126, 61, 0.15);
    color: #0a7e3d;
    border: 1px solid rgba(10, 126, 61, 0.3);
}
.messages .alert-error,
.messages .alert-danger {
    background: rgba(185, 28, 28, 0.15);
    color: #b91c1c;
    border: 1px solid rgba(185, 28, 28, 0.3);
}
.messages .alert-warning {
    background: rgba(180, 90, 28, 0.15);
    color: #b45a1c;
    border: 1px solid rgba(180, 90, 28, 0.3);
}
.messages .alert-info {
    background: rgba(25, 118, 210, 0.15);
    color: #1976d2;
    border: 1px solid rgba(25, 118, 210, 0.3);
}
.messages .alert-debug {
    background: rgba(108, 117, 125, 0.15);
    color: #495057;
    border: 1px solid rgba(108, 117, 125, 0.3);
}
.messages .alert .alert__close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: inherit;
    opacity: 0.6;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.15s, background 0.15s;
}
.messages .alert .alert__close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}
.messages .alert .alert__content {
    flex: 1;
    min-width: 0;
}

/* Стандартный alert (вне тостов) */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 16px;
}
.alert a {
    color: #e53935;
    text-decoration: underline;
    font-weight: 600;
}
.alert-error {
    background: #fde8eb;
    color: #b91c1c;
    border: 1px solid #f5c6cb;
}
.alert-success {
    background: #e3f5e9;
    color: #0a7e3d;
    border: 1px solid #c3e6cb;
}

/* ==========================================================================
   18. МОДАЛКИ (share, site, confirm, delete, slot)
   ========================================================================== */
.share-modal-overlay,
.site-modal-overlay,
.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.share-modal-overlay.active,
.site-modal-overlay.active,
.confirm-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.share-modal,
.site-modal,
.confirm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    width: 90%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
    text-align: center;
}
.share-modal.open,
.site-modal.open,
.confirm-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Подтверждение */
.confirm-modal {
    padding: 28px 24px 20px;
}
.confirm-modal__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #f1f3f5;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.confirm-modal__icon.danger {
    background: #fde8eb;
    color: #e53935;
}
.confirm-modal__icon.warning {
    background: #fef3e0;
    color: #b45a1c;
}
.confirm-modal__icon.info {
    background: #e7f3ff;
    color: #1976d2;
}
.confirm-modal__title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px;
}
.confirm-modal__text {
    font-size: 15px;
    color: #495057;
    line-height: 1.5;
    margin: 0 0 24px;
}
.confirm-modal__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.confirm-modal__actions .btn {
    padding: 10px 28px;
    font-size: 15px;
    min-width: 120px;
}

/* Универсальная site-modal */
.site-modal {
    padding: 28px 24px 20px;
}
.site-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: #f1f3f5;
    color: #495057;
}
.site-modal-icon.danger {
    background: #fde8eb;
    color: #e53935;
}
.site-modal-icon.warning {
    background: #fef3e0;
    color: #b45a1c;
}
.site-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px;
}
.site-modal-text {
    font-size: 15px;
    color: #495057;
    line-height: 1.5;
    margin: 0 0 24px;
}
.site-modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.site-modal-actions .btn {
    padding: 10px 28px;
    font-size: 15px;
    min-width: 120px;
}

/* Share modal */
.share-modal {
    text-align: left;
}
.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
}
.share-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}
.share-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
}
.share-modal-close:hover {
    color: #1a1a2e;
}
.share-modal-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.share-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    color: #1a1a2e;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-align: left;
    font-family: inherit;
}
.share-btn:hover {
    background: #e9ecef;
}
.share-btn i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}
.share-btn-telegram:hover { background: #e3f5ff; color: #0088cc; }
.share-btn-whatsapp:hover { background: #e3f9e5; color: #25d366; }
.share-btn-vk:hover { background: #e3eaff; color: #4c75a3; }
.share-btn-max:hover { background: #ede3ff; color: #6c2bd9; }
.share-btn-instagram:hover { background: #fde8eb; color: #e53935; }
.share-btn-copy:hover { background: #fff3e0; color: #e65100; }

/* Slot modal */
.slot-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}
.slot-modal[style*="display: flex"] {
    display: flex !important;
}
.slot-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}
.slot-modal__content {
    position: relative;
    background: #fff;
    color: #1a1a1a;
    border-radius: 12px;
    padding: 28px 24px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 1;
}
.slot-modal__content h3 {
    margin: 0 0 20px;
    font-size: 1.15rem;
}
.slot-modal__content input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 42px;
    padding: 10px 12px;
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.2;
}
.slot-modal__content input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
}
.slot-modal__content input[type="date"]::-webkit-calendar-picker-indicator {
    margin-left: auto;
    padding: 0;
    cursor: pointer;
}

/* ==========================================================================
   19. ФУТЕР
   ========================================================================== */
.footer {
    flex-shrink: 0;
    background: #ffffff;
    color: #495057;
    padding: 60px 0 40px;
    border-top: 2px solid #e9ecef;
    margin-top: 0;
    min-height: 200px;
    display: flex;
    align-items: center;
}
.footer .container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer-slogan {
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    color: #495057;
    max-width: 1200px;
    margin: 0 auto 8px;
    padding: 0 20px;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}
.footer-links a {
    color: #495057;
    font-size: 14px;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #e53935;
}
.footer-copy {
    text-align: center;
    font-size: 13px;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
    padding-top: 16px;
}

/* ==========================================================================
   20. ХЛЕБНЫЕ КРОШКИ
   ========================================================================== */
.breadcrumbs-nav {
    margin-bottom: 16px;
}
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}
.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 6px;
}
.breadcrumbs li:not(:last-child)::after {
    content: '›';
    color: #adb5bd;
    font-size: 16px;
    line-height: 1;
}
.breadcrumbs a {
    color: #e53935;
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumbs a:hover {
    color: #c62828;
    text-decoration: underline;
}
.breadcrumbs li:last-child span {
    color: #1a1a2e;
    font-weight: 500;
}

/* ==========================================================================
   21. EMPTY STATE, LOAD MORE
   ========================================================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    margin-bottom: 40px;
}
.empty-state h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}
.empty-state p {
    color: #6c757d;
    margin-bottom: 20px;
}

.load-more-wrapper {
    display: flex;
    justify-content: center;
    margin: 32px 0 16px;
}
.load-more-btn {
    padding: 12px 48px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    background: #e53935;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.load-more-btn:hover:not(:disabled) {
    background: #c62828;
}
.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   22. АВТОРИЗАЦИЯ / ПАРОЛЬ
   ========================================================================== */
.auth-container {
    margin-top: 20px;
    margin-bottom: 20px;
}
.auth-card {
    margin-top: 20px;
}
.auth-form {
    max-width: 100%;
}
.auth-form__title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px;
}
.auth-form__description {
    font-size: 15px;
    color: #495057;
    margin: 0 0 24px;
    line-height: 1.5;
}
.auth-form__actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
}
.auth-form__actions .btn {
    flex: 1 1 auto;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.password-set-form .form-group {
    margin-bottom: 20px;
}
.password-set-form label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #1a1a2e;
}
.password-hint {
    font-size: 13px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 30px;
    line-height: 1.5;
}
.password-hint ul {
    margin: 0;
    padding-left: 18px;
}
.password-hint li {
    margin-bottom: 4px;
}
.password-hint li:last-child {
    margin-bottom: 0;
}
.field-errors {
    font-size: 13px;
    color: #b91c1c;
    margin-top: 6px;
    line-height: 1.4;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #adb5bd;
    font-size: 13px;
}
.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

/* ==========================================================================
   23. EMAIL-АДРЕСА
   ========================================================================== */
.email-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #e9ecef;
}
.email-row:last-child {
    border-bottom: none;
}
.email-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #e53935;
    cursor: pointer;
}
.email-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.email-info strong {
    color: #1a1a2e;
    font-size: 15px;
}
.email-status {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
}
.email-status.verified { background: #e3f5e9; color: #0a7e3d; }
.email-status.pending { background: #fef3e0; color: #b45a1c; }
.email-status.primary { background: #fde8eb; color: #e53935; }
.email-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}
.email-add-form {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}
.email-add-form .form-group {
    margin-bottom: 16px;
}

/* ==========================================================================
   24. ПОДСКАЗКИ АДРЕСА
   ========================================================================== */
.address-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}
.address-suggestion-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #1a1a2e;
    border-bottom: 1px solid #f1f3f5;
    transition: background 0.15s;
    word-break: break-word;
}
.address-suggestion-item:last-child {
    border-bottom: none;
}
.address-suggestion-item:hover {
    background: #f1f3f5;
    color: #e53935;
}

/* ==========================================================================
   25. ПОИСК ПО КАТЕГОРИЯМ
   ========================================================================== */
.category-search-group {
    position: relative;
}
.category-search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 260px;
    overflow-y: auto;
    z-index: 1000;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}
.category-search-dropdown.open {
    display: block;
}
.category-search-option {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 15px;
    color: #1a1a2e;
    border-bottom: 1px solid #f1f3f5;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.category-search-option:last-child {
    border-bottom: none;
}
.category-search-option:hover,
.category-search-option:active {
    background: #f1f3f5;
    color: #e53935;
}
.category-search-option.disabled {
    color: #adb5bd;
    cursor: default;
    font-style: italic;
}
.category-search-option.disabled:hover,
.category-search-option.disabled:active {
    background: transparent;
    color: #adb5bd;
}
.category-search-option.selected {
    background: #fde8eb;
    color: #e53935;
    font-weight: 600;
}

/* ==========================================================================
   26. ПРЕВЬЮ СОБЫТИЯ (CREATE EVENT)
   ========================================================================== */
.create-event-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: flex-start;
}
.create-event-form-col,
.create-event-preview-col {
    min-width: 0;
}
.event-preview-sticky {
    position: sticky;
    top: 90px;
}
.event-preview-title {
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
}
.event-preview-card {
    pointer-events: none;
    opacity: 0.98;
}

/* Wizard */
.event-wizard {
    background: transparent;
}
.event-wizard__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 8px;
}
.event-wizard__tab {
    background: transparent;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #6c757d;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.event-wizard__tab:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #1a1a1a;
}
.event-wizard__tab.is-active {
    background: #e63946;
    color: #fff;
    font-weight: 600;
}
.event-wizard__tab.is-done {
    color: #0a7e3d;
}
.wizard-step {
    display: none;
}
.wizard-step.is-active {
    display: block;
}
.wizard-step__title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}
.event-wizard__footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}
.event-wizard__footer .btn {
    min-width: 140px;
}
.wizard-required-hint {
    font-size: 0.85rem;
    color: #b91c1c;
    margin-top: 8px;
    display: none;
}
.wizard-required-hint.is-visible {
    display: block;
}

/* ==========================================================================
   27. СПОНСОР
   ========================================================================== */
.sponsor-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sponsor-counter {
    background: #e53935;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}
.sponsor-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 8px;
}
.sponsor-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
}
.sponsor-info-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.sponsor-info-value {
    font-size: 15px;
    color: #1a1a2e;
    font-weight: 500;
    word-break: break-word;
}
.sponsor-regions-badges,
.sponsor-selected-regions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.sponsor-region-badge {
    background: #fde8eb;
    color: #e53935;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
}
.sponsor-selected-regions .sponsor-region-badge {
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}
.sponsor-selected-regions .sponsor-region-badge:hover {
    background: #f5c6cb;
}
.sponsor-selected-regions .sponsor-region-badge i {
    margin-left: 4px;
    font-size: 11px;
    opacity: 0.7;
}

.sponsor-regions-checkboxes ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}
.sponsor-regions-checkboxes li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background 0.15s;
}
.sponsor-regions-checkboxes li:hover {
    background: #e9ecef;
}
.sponsor-regions-checkboxes input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #e53935;
    cursor: pointer;
    flex-shrink: 0;
}
.sponsor-regions-checkboxes label {
    cursor: pointer;
    font-size: 14px;
    color: #1a1a2e;
    margin: 0;
    font-weight: 400;
}

.sponsor-all-russia {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}
.sponsor-all-russia input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #e53935;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}
.sponsor-all-russia label {
    cursor: pointer;
    font-weight: 400 !important;
    color: #1a1a2e;
    margin: 0 !important;
    line-height: 1.4;
}
.sponsor-all-russia label small {
    color: #6c757d;
}
.sponsor-all-russia.is-active + #sponsor-regions-group {
    opacity: 0.5;
    pointer-events: none;
}

.sponsor-regions-wrapper {
    position: relative;
}
.sponsor-regions-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 260px;
    overflow-y: auto;
    z-index: 1000;
    box-sizing: border-box;
}
.sponsor-regions-dropdown.open {
    display: block;
}
.sponsor-regions-option {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 15px;
    color: #1a1a2e;
    border-bottom: 1px solid #f1f3f5;
    transition: background 0.15s;
    user-select: none;
}
.sponsor-regions-option:last-child {
    border-bottom: none;
}
.sponsor-regions-option:hover {
    background: #f1f3f5;
    color: #e53935;
}
.sponsor-regions-option.disabled {
    color: #adb5bd;
    cursor: default;
    font-style: italic;
}
.sponsor-regions-option.disabled:hover {
    background: transparent;
    color: #adb5bd;
}
.hidden-regions-wrapper {
    display: none;
}

.sponsor-contracts-list,
.sponsor-contracts-full-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}
.sponsor-contract-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    flex-wrap: wrap;
}
.sponsor-contract-info {
    flex: 1;
    min-width: 200px;
}
.sponsor-contract-event {
    font-size: 13px;
    color: #6c757d;
    margin-top: 4px;
}
.sponsor-contract-full {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
}
.sponsor-contract-full__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.sponsor-contract-full__header h3 {
    margin: 0;
    font-size: 17px;
    color: #1a1a2e;
}
.sponsor-contract-full__files {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.sponsor-contract-status {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}
.sponsor-contract-status.status-draft { background: #f1f3f5; color: #6c757d; }
.sponsor-contract-status.status-sent { background: #fef3e0; color: #b45a1c; }
.sponsor-contract-status.status-signed { background: #e3f2fd; color: #1976d2; }
.sponsor-contract-status.status-active { background: #e3f5e9; color: #0a7e3d; }
.sponsor-contract-status.status-cancelled { background: #fde8eb; color: #b91c1c; }

.sponsor-empty {
    color: #6c757d;
    font-size: 14px;
    padding: 16px 0;
}
.sponsor-empty a {
    color: #e53935;
    text-decoration: none;
    font-weight: 500;
}
.sponsor-empty a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   28. ОРГАНИЗАТОРАМ
   ========================================================================== */
.for-organizers {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}
.org-hero {
    background: linear-gradient(135deg, #fde8eb 0%, #fff 100%);
    border: 1px solid #f5c6cb;
    border-radius: 16px;
    padding: 40px 32px;
    margin-bottom: 40px;
}
.org-hero__title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 12px;
    line-height: 1.2;
}
.org-hero__subtitle {
    font-size: 17px;
    color: #495057;
    margin: 0 0 24px;
    max-width: 720px;
    line-height: 1.6;
}
.org-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.org-section {
    margin-bottom: 48px;
}
.org-section__title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px;
}
.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.org-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px 20px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.org-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}
.org-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fde8eb;
    color: #e53935;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}
.org-card__title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 8px;
}
.org-card__text {
    font-size: 14px;
    color: #495057;
    line-height: 1.6;
    margin: 0;
}
.org-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}
.org-step {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid #e9ecef;
}
.org-step:last-child {
    border-bottom: none;
}
.org-step__num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e53935;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}
.org-step__body {
    flex: 1;
    min-width: 0;
}
.org-step__title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}
.org-step__text {
    font-size: 15px;
    color: #495057;
    line-height: 1.65;
    margin: 0 0 8px;
}
.org-step__list {
    margin: 8px 0 0;
    padding-left: 20px;
    color: #495057;
    font-size: 15px;
    line-height: 1.7;
}
.org-step__list li {
    margin-bottom: 4px;
}
.org-step a {
    color: #e53935;
    text-decoration: none;
    font-weight: 500;
}
.org-step a:hover {
    text-decoration: underline;
}
.org-invite {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
}
.org-invite__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fde8eb;
    color: #e53935;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.org-invite__text {
    font-size: 15px;
    color: #495057;
    line-height: 1.65;
    margin: 0 0 8px;
}
.org-invite__text:last-child {
    margin-bottom: 0;
}
.org-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.org-faq__item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 16px 20px;
}
.org-faq__item summary {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 30px;
}
.org-faq__item summary::-webkit-details-marker {
    display: none;
}
.org-faq__item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    color: #adb5bd;
    transition: transform 0.2s;
}
.org-faq__item[open] summary::after {
    content: '−';
}
.org-faq__item[open] summary {
    margin-bottom: 12px;
}
.org-faq__item p {
    font-size: 14px;
    color: #495057;
    line-height: 1.65;
    margin: 0;
}
.org-faq__item a {
    color: #e53935;
    text-decoration: none;
    font-weight: 500;
}
.org-faq__item a:hover {
    text-decoration: underline;
}
.org-cta {
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
}
.org-cta__title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}
.org-cta__text {
    font-size: 16px;
    color: #6c757d;
    margin: 0 0 24px;
}

/* ==========================================================================
   29. КОРЗИНА
   ========================================================================== */
.cart-page {
    max-width: 900px;
    margin: 20px auto 40px;
    padding: 0 20px;
}
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}
.cart-empty i {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 16px;
    display: block;
}
.cart-empty h2 {
    color: #1a1a2e;
    margin: 0 0 8px;
}
.cart-empty .btn,
.cart-empty .btn-primary {
    background: #e63946;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}
.cart-empty .btn:hover,
.cart-empty .btn-primary:hover {
    background: #c92c38;
    color: #fff;
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    flex-wrap: wrap;
}
.cart-item__info {
    flex: 1 1 240px;
    min-width: 0;
}
.cart-item__info h3 {
    margin: 0 0 6px;
    color: #1a1a2e;
}
.cart-item__event,
.cart-item__participant,
.cart-item__email,
.cart-item__age {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 2px 0;
}
.cart-item__event-link {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.15s ease;
}
.cart-item__event-link:hover {
    color: #e63946;
    text-decoration: underline;
}
.cart-item__share {
    margin-left: 8px;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.15s ease;
}
.cart-item__share:hover {
    color: #e63946;
}

.cart-item__controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}
.cart-item__qty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fafafa;
}
.qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #1a1a1a;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.15s ease;
}
.qty-btn:hover {
    background: rgba(230, 57, 70, 0.1);
    color: #e63946;
}
.qty-value {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a;
}
.cart-item__price-block {
    text-align: right;
}
.cart-item__amount {
    font-size: 0.95rem;
    color: #6c757d;
}
.cart-item__amount strong {
    color: #e63946;
    font-size: 1.05rem;
    display: block;
    margin-top: 2px;
}
.cart-item__subtotal {
    display: block;
    margin-top: 4px;
    color: #e63946;
    font-size: 1.1rem;
}
.cart-item__remove {
    color: #6c757d;
    font-size: 0.9rem;
    text-decoration: none;
}
.cart-item__remove:hover {
    color: #e63946;
}
.cart-item__price {
    text-align: right;
    white-space: nowrap;
}

.cart-total {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px 24px;
}
.cart-total__row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: #6c757d;
}
.cart-total__row--grand {
    border-top: 1px solid #e9ecef;
    margin-top: 6px;
    padding-top: 12px;
    font-size: 1.15rem;
    color: #1a1a1a;
}
.cart-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.cart-hint {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Миниатюра события в корзине */
.cart-item__event-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}
.cart-item__thumb {
    padding: 0;
    border: 1px solid #e9ecef;
    background: #fafafa;
    cursor: pointer;
    flex-shrink: 0;
    display: block;
    width: 135px;
    height: 135px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cart-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cart-item__thumb:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.cart-item__event-meta {
    flex: 1;
    min-width: 0;
}
.cart-item__event-meta h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}

/* ==========================================================================
   30. СЛОТЫ УЧАСТИЯ
   ========================================================================== */
.slots-page {
    max-width: 1100px;
    margin: 20px auto 40px;
    padding: 0 20px;
}
.slots-page__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.slots-page__header h1 {
    margin: 0;
    color: #1a1a1a;
}
.slots-page__subtitle {
    color: #6c757d;
    margin: 4px 0 0;
}
.slots-page__info {
    background: #e7f3ff;
    border: 1px solid #b6d4fe;
    color: #084298;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.slots-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    color: #1a1a1a;
}
.slot-form-row {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
    background: #ffffff;
}
.slot-form-row__meta {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 12px;
    color: #6c757d;
}
.slot-form-row__grid {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 1fr 100px;
    gap: 12px;
    align-items: start;
}
.slot-form-row__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
}
.slot-form-row__field label {
    font-size: 0.85rem;
    color: #6c757d;
}
.slot-form-row__field .form-control {
    width: 100%;
}
.slot-form-row__checkbox {
    padding-top: 8px;
}
.slot-form-row__delete {
    margin-top: 12px;
}
.slot-form-row__delete label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #b91c1c;
    font-size: 0.9rem;
}
.field-error {
    color: #b91c1c;
    font-size: 0.85rem;
}
.slots-form__actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.slots-form__hint {
    margin-top: 16px;
}
.slots-form .form-control,
.slots-form input[type="text"],
.slots-form input[type="number"],
.slots-form textarea {
    background: #ffffff;
    border: 1px solid #ced4da;
    color: #1a1a1a;
    border-radius: 6px;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 0.95rem;
}
.slots-form .form-control:focus,
.slots-form input:focus,
.slots-form textarea:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.15);
}

/* ==========================================================================
   31. ДОКУМЕНТЫ СОБЫТИЯ
   ========================================================================== */
.doc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.doc-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f5;
}
.doc-list li:last-child {
    border-bottom: none;
}
.doc-link {
    color: #2ea44f;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.15s ease, transform 0.15s ease;
}
.doc-link i {
    color: #2ea44f;
    transition: color 0.15s ease;
}
.doc-link:hover {
    color: #248a3f;
    transform: translateX(2px);
}
.doc-link:hover i {
    color: #248a3f;
}

/* ==========================================================================
   32. СТРАНИЦА «О ПРОЕКТЕ» + OFFER
   ========================================================================== */
.about-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 32px 20px 64px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.about-hero {
    margin-bottom: 40px;
}
.about-hero h1 {
    font-size: 2rem;
    margin: 0 0 16px;
    color: #111111;
}
.about-lead {
    font-size: 1.125rem;
    color: #555555;
}
.about-section {
    margin-bottom: 32px;
}
.about-section h2 {
    font-size: 1.25rem;
    margin: 0 0 12px;
    color: #111111;
}
.about-section--accent {
    padding: 20px 24px;
    border-left: 4px solid #e63946;
    background: #fafafa;
    border-radius: 4px;
}
.about-list {
    margin: 0;
    padding-left: 20px;
}
.about-list li {
    margin-bottom: 6px;
}
.about-link {
    color: #e63946;
    text-decoration: none;
    transition: color 0.15s ease;
}
.about-link:hover {
    color: #c92c38;
    text-decoration: underline;
}
.about-disclaimer {
    margin-top: 48px;
    padding: 16px 20px;
    font-size: 0.9rem;
    color: #555555;
    background: #f5f5f5;
    border-radius: 6px;
}

.offer-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 32px 20px 64px;
    line-height: 1.6;
    color: #1a1a1a;
}
.offer-header {
    margin-bottom: 32px;
}
.offer-header h1 {
    font-size: 1.9rem;
    margin: 0 0 8px;
}
.offer-meta {
    font-size: 0.9rem;
    color: #666;
}
.offer-section {
    margin-bottom: 28px;
}
.offer-section h2 {
    font-size: 1.2rem;
    margin: 0 0 12px;
}
.offer-section p {
    margin: 0 0 10px;
    text-align: justify;
}
.offer-section ul {
    margin: 0 0 10px 20px;
    padding: 0;
}
.offer-section a {
    color: #e63946;
    text-decoration: none;
}
.offer-section a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   33. РОЛИ / ПОДСКАЗКИ / ЭДО
   ========================================================================== */
.role-hint {
    margin: 16px 0 8px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-left: 4px solid #e53935;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.55;
    color: #1a1a2e;
}
.role-hint h4 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 8px;
}
.role-hint h4 i {
    color: #e53935;
    font-size: 15px;
}
.role-hint p {
    margin: 0 0 10px;
}
.role-hint ul {
    margin: 0 0 10px 20px;
    padding: 0;
}
.role-hint li {
    margin-bottom: 4px;
}
.role-hint__note {
    margin: 0;
    color: #6c757d;
    font-size: 13px;
}
.role-hint a {
    color: #e53935;
    text-decoration: none;
    font-weight: 600;
}
.role-hint a:hover {
    text-decoration: underline;
}

.cannot-uncheck-reason {
    font-size: 12px;
    color: #dc2626;
    font-weight: 500;
    margin-left: 4px;
}

#acts-basis-details-group {
    padding: 14px 16px;
    background: #f8f9fa;
    border-left: 3px solid #e53935;
    border-radius: 8px;
    margin-top: -8px;
    margin-bottom: 16px;
}
#acts-basis-details-group label {
    color: #1a1a2e !important;
    font-weight: 600;
}

/* ЭДО */
.edo-block {
    margin-top: 20px;
    padding: 20px 24px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: transparent;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.edo-block h4 {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
}
.edo-block ol {
    margin: 0 0 18px 22px;
    padding: 0;
    line-height: 1.6;
}
.edo-block ol li {
    margin-bottom: 8px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.edo-block textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 80px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.4;
    resize: vertical;
    box-sizing: border-box;
    background: transparent;
    color: inherit;
}
.edo-block textarea:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.15);
}
.edo-block .btn,
.edo-block .btn-primary {
    display: inline-block;
    max-width: 100%;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background: #e63946;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: normal;
    text-align: center;
    word-wrap: break-word;
    box-sizing: border-box;
}
.edo-block .btn:hover,
.edo-block .btn-primary:hover {
    background: #c92c38;
}
.edo-block--sent { border-left: 4px solid #f0ad4e; }
.edo-block--signed { border-left: 4px solid #5cb85c; }

/* Подсветка автозаполнения */
.form-control.autofilled {
    background: #e3f5e9 !important;
    border-color: #0a7e3d !important;
    transition: background 0.3s, border-color 0.3s;
}

/* ==========================================================================
   34. ФОН ГЛАВНОЙ И HERO
   ========================================================================== */
.hero-fullscreen {
    position: relative;
    z-index: 1;
    width: 100vw;
    min-height: 70vh;
    background-image: url('/static/images/fon.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin: 0 calc(-50vw + 50%);
    padding: 80px 20px 60px;
}
.hero-fullscreen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}
.hero-fullscreen .buttons .btn {
    text-shadow: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.hero-fullscreen h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}
.hero-fullscreen h1 span {
    color: #fff;
}
.hero-fullscreen p {
    font-size: 18px;
    margin-bottom: 28px;
    opacity: 0.9;
    max-width: 100%;
    padding: 0 20px;
}
.hero-fullscreen .buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* ==========================================================================
   35. АДАПТИВ
   ========================================================================== */
@media (max-width: 1024px) {
    .create-event-layout {
        grid-template-columns: 1fr 320px;
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .create-event-layout {
        grid-template-columns: 1fr;
    }
    .event-preview-sticky {
        position: static;
    }
    .event-preview-col {
        order: -1;
    }
    .slot-form-row__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Шапка */
    .header .container {
        flex-wrap: nowrap;
        gap: 8px;
    }
    .nav {
        display: none !important;
    }
    .logo {
        order: 1;
        margin-right: auto;
        font-size: 20px;
    }
    .mobile-search-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 2;
    }
    .nav-right {
        order: 3;
        margin-left: 0;
        gap: 10px;
    }
    .nav-right .nav-settings {
        width: 28px;
        height: 28px;
        font-size: 15px;
    }
    .nav-right .nav-user {
        font-size: 14px;
        max-width: 90px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .nav-right .nav-login,
    .nav-right .nav-register {
        font-size: 13px;
    }
    .burger {
        display: flex;
        order: 4;
    }
    .nav-search {
        display: none !important;
    }
    .user-menu__dropdown {
        position: fixed;
        top: 60px;
        right: 12px;
        left: auto;
        width: calc(100vw - 24px);
        max-width: 320px;
        z-index: 1000;
    }
    .user-menu__dropdown::before {
        display: none;
    }

    /* Профиль — мобильное меню */
    .profile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 12px 16px;
        margin-bottom: 16px;
        background: #fff;
        border: 1px solid #e9ecef;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 600;
        color: #1a1a2e;
        cursor: pointer;
        transition: background 0.2s, border-color 0.2s;
    }
    .profile-menu-toggle:hover {
        background: #f8f9fa;
    }
    .profile-menu-toggle i {
        color: #e53935;
        font-size: 16px;
    }
    .profile-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        max-width: 80%;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        padding: 20px;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0;
        margin: 0;
        border-radius: 0;
        border: none;
    }
    .profile-menu.open {
        transform: translateX(0);
    }
    .profile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 16px;
        border-bottom: 1px solid #e9ecef;
        margin-bottom: 16px;
    }
    .profile-menu-title {
        font-size: 20px;
        font-weight: 700;
        color: #1a1a2e;
    }
    .profile-menu-close {
        display: block;
        background: none;
        border: none;
        font-size: 28px;
        line-height: 1;
        color: #6c757d;
        cursor: pointer;
        padding: 0 4px;
    }
    .profile-menu-close:hover {
        color: #1a1a2e;
    }
    .profile-menu-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 0;
        font-size: 15px;
        font-weight: 500;
        color: #1a1a2e;
        border-left: none;
        border-radius: 0;
        background: transparent;
        margin: 0;
        white-space: normal;
    }
    .profile-menu-item i {
        width: 20px;
        text-align: center;
        color: #6c757d;
        font-size: 15px;
    }
    .profile-menu-item.active {
        color: #e53935;
        background: transparent;
        font-weight: 600;
    }
    .profile-menu-item.active i {
        color: #e53935;
    }
    .profile-menu-item.logout {
        color: #b91c1c;
        border-top: 1px solid #e9ecef;
        margin-top: 8px;
        padding-top: 16px;
        border-bottom: none;
    }
    .profile-menu-item.logout i {
        color: #b91c1c;
    }
    .profile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .profile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    .profile-layout {
        flex-direction: column;
        padding: 0 16px;
    }
    .profile-main-content {
        width: 100%;
    }

    /* Страница события */
    .event-grid {
        grid-template-columns: 1fr;
    }
    .event-header h1 {
        font-size: 24px;
    }
    .event-main {
        padding: 20px;
    }
    .event-cover-wrapper {
        margin: -20px -20px 16px -20px;
    }
    .event-cover {
        max-height: 300px;
    }

    /* Фильтры */
    .filters-row-top {
        flex-direction: column;
        align-items: stretch;
    }
    .filters-dates {
        justify-content: center;
    }
    .filters-tools {
        flex-direction: column;
        align-items: stretch;
    }
    .city-filter-wrapper,
    .date-picker-wrapper {
        width: 100%;
        margin-left: 0;
    }
    .city-filter,
    .date-picker-input {
        width: 100%;
    }

    /* Фото */
    .event-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .event-photo-meta {
        opacity: 1;
    }
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding-bottom: 20px;
    }
    .photo-card-overlay {
        opacity: 1;
    }

    /* Лайтбокс */
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 24px;
    }
    .lightbox-content img {
        max-height: 70vh;
    }

    /* Wizard */
    .event-wizard__nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .event-wizard__tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
    .event-wizard__footer {
        flex-direction: column;
    }
    .event-wizard__footer .btn {
        width: 100%;
    }

    /* Миниатюра «Мои события» */
    .my-event-thumb {
        position: static;
        width: 100%;
        height: 140px;
        margin-bottom: 12px;
    }

    /* Организаторам */
    .for-organizers {
        padding: 24px 16px 40px;
    }
    .org-hero {
        padding: 28px 20px;
    }
    .org-hero__title {
        font-size: 24px;
    }
    .org-hero__subtitle {
        font-size: 15px;
    }
    .org-section__title {
        font-size: 20px;
    }
    .org-step {
        gap: 14px;
        padding: 20px 0;
    }
    .org-step__num {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .org-step__title {
        font-size: 16px;
    }
    .org-invite {
        flex-direction: column;
        padding: 20px;
    }
    .org-cta__title {
        font-size: 22px;
    }

    /* Корзина */
    .cart-item {
        flex-direction: column;
    }
    .cart-item__controls {
        align-items: stretch;
        width: 100%;
    }
    .cart-item__qty {
        align-self: flex-start;
    }
    .cart-item__price-block {
        text-align: left;
    }
    .cart-item__thumb {
        width: 160px;
        height: 160px;
    }

    /* Меню-раздел отключения */
    .burger {
        display: flex !important;
    }
}

@media (max-width: 700px) {
    .event-wizard__nav {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .event-wizard__tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
    .event-wizard__footer {
        flex-direction: column;
    }
    .event-wizard__footer .btn {
        width: 100%;
    }
}

@media (min-width: 769px) {
    .burger {
        display: none !important;
    }
    .mobile-menu-overlay,
    .mobile-menu {
        display: none !important;
    }
    .profile-menu-overlay,
    .profile-menu-toggle,
    .profile-menu-header,
    .profile-menu-close {
        display: none !important;
    }
    .mobile-search-toggle {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .profile-container {
        max-width: 100%;
        padding: 0 16px;
    }
    .profile-card {
        padding: 16px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    .profile-info-header .profile-name {
        font-size: 18px;
    }
    .page-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .page-header h1 {
        font-size: 22px;
    }
    .card-grid {
        grid-template-columns: 1fr;
        padding-bottom: 20px;
    }
    .form-submit-row {
        flex-direction: column;
    }
    .form-submit-draft,
    .form-submit-primary {
        width: 100%;
    }
    .form-submit-row--three {
        flex-direction: column;
    }
    .form-submit-row--three .form-submit-draft,
    .form-submit-row--three .form-submit-primary {
        width: 100%;
    }
    .my-registration-card {
        flex-direction: column;
    }
    .my-registration-actions {
        width: 100%;
    }
    .my-registration-actions .btn {
        flex: 1;
        text-align: center;
    }
    .breadcrumbs {
        font-size: 13px;
    }
    .breadcrumbs li:last-child span {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .share-modal {
        width: 95%;
        max-width: none;
    }
    .share-btn {
        padding: 14px 16px;
    }
    .footer-slogan {
        text-align: center !important;
        font-size: 14px;
        line-height: 1.55;
    }
    .upload-photos-actions {
        flex-direction: column;
    }
    .upload-photos-actions .btn {
        width: 100%;
        text-align: center;
    }
    .profile-data-list p {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .profile-data-list .profile-value {
        text-align: left;
    }
    .sponsor-info-grid {
        grid-template-columns: 1fr;
    }
    .sponsor-contract-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .messages {
        top: 76px;
        left: 12px;
        right: 12px;
        max-width: none;
        align-items: stretch;
    }
    .messages .alert {
        width: 100%;
        max-width: 100%;
    }
    .hero-fullscreen {
        min-height: 60vh;
        padding: 40px 20px;
    }
    .hero-fullscreen h1 {
        font-size: 32px;
    }
    .hero-fullscreen p {
        color: rgba(255, 255, 255, 0.9);
    }
    .hero-fullscreen .buttons {
        justify-content: center;
        gap: 12px;
    }
    .hero-fullscreen .buttons .btn {
        width: auto;
        min-width: 180px;
        max-width: 280px;
    }
    .about-page {
        padding: 20px 16px 48px;
    }
    .about-hero h1 {
        font-size: 1.6rem;
    }
    .about-lead {
        font-size: 1rem;
    }
    .cart-item__thumb {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .profile-container {
        padding: 0 16px;
    }
    .profile-card {
        padding: 20px 16px;
    }
    .profile-card p {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px 8px;
        font-size: 14px;
    }
    .profile-actions {
        flex-direction: column;
    }
    .profile-actions .profile-btn {
        text-align: center;
        justify-content: center;
    }
    .profile-actions .btn {
        width: 100%;
    }
    .edit-profile-container {
        padding: 0 16px;
    }
    .edit-profile-card {
        padding: 20px 16px;
    }
    .edit-actions {
        flex-direction: column;
    }
    .edit-actions .btn {
        text-align: center;
        width: 100%;
    }
    .auth-form__actions {
        flex-direction: column;
    }
    .auth-form__actions .btn {
        width: 100%;
    }
    .site-modal,
    .confirm-modal {
        padding: 24px 20px 16px;
    }
    .site-modal-title,
    .confirm-modal__title {
        font-size: 18px;
    }
    .site-modal-text,
    .confirm-modal__text {
        font-size: 14px;
    }
    .site-modal-actions,
    .confirm-modal__actions {
        flex-direction: column;
    }
    .site-modal-actions .btn,
    .confirm-modal__actions .btn {
        width: 100%;
    }

    /* Шапка на узких экранах */
    .header .container {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 6px !important;
    }
    .logo {
        font-size: 20px;
        flex-shrink: 0;
    }
    .mobile-search-toggle,
    .burger,
    .theme-toggle {
        width: 34px;
        height: 34px;
        padding: 6px;
        font-size: 17px;
        flex-shrink: 0;
    }
    .nav-right {
        gap: 6px;
        flex-shrink: 0;
    }
    .nav-right .nav-user {
        max-width: 100px;
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .nav-right .nav-settings {
        display: none !important;
    }

    .slot-modal__content {
        max-width: 100%;
        padding: 20px 16px;
    }
    .slot-modal {
        padding: 12px;
    }
    .slot-modal__content input,
    .slot-modal__content textarea,
    .slot-modal__content select {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .edo-block {
        padding: 16px 18px;
    }
    .edo-block ol {
        margin-left: 18px;
        font-size: 0.92rem;
    }
    .edo-block .btn,
    .edo-block .btn-primary {
        display: block;
        width: 100%;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    .edo-block textarea {
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .avatar-file-name {
        display: none;
    }
    .avatar-file-name.has-file {
        display: block;
        margin-top: 8px;
        flex-basis: 100%;
    }
    .slot-form-row__grid {
        grid-template-columns: 1fr;
    }
    .slots-form {
        padding: 20px 16px;
    }
}

/* ==========================================================================
   КОНЕЦ
   ========================================================================== */
   
   /* ===== ОШИБКИ ФОРМЫ ===== */
.form-errors-box {
    background: #fde8eb;
    color: #b91c1c;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #e53935;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 400;
}

.form-errors-box__head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    color: #b91c1c;
    margin-bottom: 10px;
}

.form-errors-box__head i {
    font-size: 16px;
    color: #e53935;
}

.form-errors-box__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.form-errors-box__list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.5;
    color: #b91c1c;
}

.form-errors-box__list li:last-child {
    margin-bottom: 0;
}

.form-errors-box__list li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #e53935;
}

.form-errors-box__hint {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(185, 28, 28, 0.15);
    font-size: 13px;
    color: #b91c1c;
    opacity: 0.75;
}
/* ===== ТИП УЧАСТИЯ (Бесплатное / Платное) ===== */
.participation-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.participation-type__option {
    display: block;
    cursor: pointer;
}

.participation-type__option input[type="radio"] {
    display: none;
}

.participation-type__label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.participation-type__label i {
    font-size: 20px;
    color: #6c757d;
    margin-bottom: 4px;
}

.participation-type__label strong {
    font-size: 15px;
    color: #1a1a2e;
}

.participation-type__label small {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.35;
}

.participation-type__option:hover .participation-type__label {
    border-color: #c4cbd2;
    background: #f8f9fa;
}

.participation-type__option input[type="radio"]:checked + .participation-type__label {
    border-color: #e53935;
    background: #fde8eb;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.participation-type__option input[type="radio"]:checked + .participation-type__label i {
    color: #e53935;
}

.participation-type__option input[type="radio"]:disabled + .participation-type__label {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Подсказки */
.participation-hint {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.participation-hint i {
    flex-shrink: 0;
    margin-top: 2px;
}

.participation-hint--legal {
    background: #e7f3ff;
    color: #084298;
    border: 1px solid #b6d4fe;
}

.participation-hint--legal a {
    color: #084298;
    text-decoration: underline;
    font-weight: 600;
}

.participation-hint--error {
    background: #fde8eb;
    color: #b91c1c;
    border: 1px solid #f5c6cb;
}

.participation-hint--error a {
    color: #b91c1c;
    text-decoration: underline;
    font-weight: 600;
}
@media (max-width: 600px) {
    .participation-type {
        grid-template-columns: 1fr;
    }
}

/* ===== СЕКЦИИ ФОРМЫ ===== */
.form-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
}

.form-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.form-section__title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px;
}
/* ===== ФОРМА СОБЫТИЯ — чистые секции ===== */
.form-section--no-border {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.form-submit-row--clean {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}
/* ===== FILE UPLOAD: жёсткая одна строка на любых экранах ===== */
.file-upload {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0;
    overflow: hidden;
}

.file-upload__btn {
    flex: 0 0 auto !important;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-upload__name {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    padding-left: 6px;
}

.file-upload__clear {
    flex: 0 0 auto !important;
    margin-left: auto;
}

/* На мобильных — компактнее, чтобы всё влезало */
@media (max-width: 480px) {
    .file-upload {
        padding: 6px 8px !important;
        gap: 6px !important;
        font-size: 13px !important;
    }

    .file-upload__btn {
        padding: 5px 8px !important;
        font-size: 12px !important;
        gap: 4px !important;
    }

    .file-upload__btn i {
        font-size: 11px !important;
    }

    .file-upload__name {
        font-size: 12px !important;
        padding-left: 4px !important;
    }

    .file-upload__clear {
        font-size: 12px !important;
        padding: 3px 4px !important;
    }
}
/* ===== Длинный адрес — не растягивает карточку ===== */
.card .meta,
.my-event-meta,
.event-meta {
    word-break: break-word;
    overflow-wrap: anywhere;
    min-width: 0;
}

.card .meta span,
.my-event-meta span,
.event-meta span,
.event-meta a {
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
    vertical-align: middle;
}

/* Для превью слева в форме создания */
.event-preview-card .meta {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.event-preview-card .meta span {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    white-space: nowrap;
}

/* На карточке события адрес может быть очень длинным — режем до 2 строк */
.event-main .event-meta span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

/* ===== КАРТОЧКА «УПРАВЛЕНИЕ» В САЙДБАРЕ СОБЫТИЯ ===== */
.sidebar-card--manage {
    border-left: 3px solid #e53935;
    background: #fff;
}

.event-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-sidebar-actions .btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    text-align: left;
    justify-content: flex-start;
}

.event-sidebar-actions .btn i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* Специфика для «Удалить» — он danger, поэтому рамка и hover темнее */
.event-sidebar-actions .btn-danger {
    background: #fde8eb;
    color: #b91c1c;
    border: 1px solid #f5c6cb;
}

.event-sidebar-actions .btn-danger:hover {
    background: #f8d7da;
    border-color: #e5a0a8;
    color: #991b1b;
}

.event-sidebar-actions .btn-danger i {
    color: #b91c1c;
}

@media (max-width: 600px) {
    .event-sidebar-actions .btn {
        padding: 12px 16px;
        font-size: 15px;
    }
}
/* ==========================================================================
   КНОПКА «ВОЙТИ ЧЕРЕЗ ВК» — светлая тема
   ========================================================================== */
:root:not([data-theme="dark"]) .btn-vk,
[data-theme="light"] .btn-vk {
    color: #1a1a2e !important;
    background: #fff !important;
    border: 1px solid #1A1A2E !important;
}

:root:not([data-theme="dark"]) .btn-vk i,
[data-theme="light"] .btn-vk i {
    color: #1a1a2e !important;
}

:root:not([data-theme="dark"]) .btn-vk:hover,
[data-theme="light"] .btn-vk:hover {
    color: #1a1a2e !important;
    background: #f8f9fa !important;
    border-color: #1A1A2E !important;
}

:root:not([data-theme="dark"]) .btn-vk:active,
[data-theme="light"] .btn-vk:active {
    background: #f1f3f5 !important;
    border-color: #1A1A2E !important;
    color: #1a1a2e !important;
}
/* ===== АВАТАР В ЛИЧНОМ КАБИНЕТЕ ===== */
.profile-avatar-small {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    flex-shrink: 0;
    background: #e53935;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e9ecef;
    aspect-ratio: 1 / 1;
}

.profile-avatar-small img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.avatar-placeholder-small {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}
/* ===== СТРАНИЦА 404 ===== */
.page-404 {
    max-width: 640px;
    margin: 40px auto 80px;
    padding: 40px 20px;
    text-align: center;
}

.page-404__icon {
    font-size: 72px;
    color: #e53935;
    margin-bottom: 8px;
    line-height: 1;
}

.page-404__icon i {
    opacity: 0.9;
}

.page-404__code {
    font-size: 96px;
    font-weight: 800;
    color: #e53935;
    margin: 0;
    line-height: 1;
    letter-spacing: -2px;
}

.page-404__title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 8px 0 16px;
}

.page-404__text {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
    margin: 0 auto 32px;
    max-width: 480px;
}

.page-404__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

.page-404__search {
    max-width: 400px;
    margin: 0 auto;
}

.page-404__search form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.page-404__search form:focus-within {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.page-404__search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    background: transparent;
    color: #1a1a2e;
    min-width: 0;
}

.page-404__search button {
    border: none;
    background: transparent;
    color: #6c757d;
    font-size: 16px;
    padding: 12px 16px;
    cursor: pointer;
    transition: color 0.15s;
}

.page-404__search button:hover {
    color: #e53935;
}

@media (max-width: 600px) {
    .page-404 {
        margin: 20px auto 60px;
        padding: 20px 16px;
    }
    .page-404__icon {
        font-size: 56px;
    }
    .page-404__code {
        font-size: 72px;
    }
    .page-404__title {
        font-size: 22px;
    }
    .page-404__text {
        font-size: 15px;
    }
    .page-404__actions {
        flex-direction: column;
    }
    .page-404__actions .btn {
        width: 100%;
        justify-content: center;
    }
}
/* ===== СПИСОК ДЕТЕЙ ===== */
.children-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.child-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    flex-wrap: wrap;
}

.child-card__info {
    flex: 1;
    min-width: 200px;
}

.child-card__name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 17px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 6px;
}

.child-card__age {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    background: #f1f3f5;
    color: #495057;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
}

.child-card__meta {
    font-size: 14px;
    color: #6c757d;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.child-card__meta i {
    color: #adb5bd;
    font-size: 12px;
}

.child-card__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.child-card__actions .btn {
    padding: 8px 14px;
    font-size: 13px;
}

@media (max-width: 600px) {
    .child-card {
        flex-direction: column;
        align-items: stretch;
    }
    .child-card__actions {
        width: 100%;
    }
    .child-card__actions .btn,
    .child-card__actions form {
        flex: 1;
    }
    .child-card__actions .btn {
        width: 100%;
        justify-content: center;
    }
}
/* ===== МОИ КОММЕНТАРИИ ===== */
.my-comments-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.my-comment-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 18px 20px;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.my-comment-card:hover {
    border-color: #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ==== Шапка: событие + дата ==== */
.my-comment-card__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.my-comment-card__event {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
    min-width: 0;
}

.my-comment-card__event:hover {
    color: #e53935;
}

.my-comment-card__event i {
    color: #adb5bd;
    font-size: 12px;
    flex-shrink: 0;
}

.my-comment-card__date {
    font-size: 12px;
    color: #adb5bd;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ==== Текст комментария ==== */
.my-comment-card__text {
    font-size: 15px;
    color: #495057;
    line-height: 1.55;
    margin-bottom: 14px;
    word-break: break-word;
}

.my-comment-card__text p {
    margin: 0 0 6px;
}
.my-comment-card__text p:last-child {
    margin-bottom: 0;
}

/* ==== Кнопки — одинаковые, деликатные ==== */
.my-comment-card__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #f1f3f5;
}

.my-comment-card__actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #fff;
    color: #495057;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.my-comment-card__actions .btn:hover {
    background: #f8f9fa;
    border-color: #c4cbd2;
    color: #1a1a2e;
}

.my-comment-card__actions .btn i {
    font-size: 12px;
    color: #adb5bd;
    transition: color 0.15s;
}

.my-comment-card__actions .btn:hover i {
    color: #495057;
}

/* «Удалить» — тоже нейтральная, но с красным акцентом при наведении */
.my-comment-card__actions .btn-danger {
    background: #fff;
    color: #b91c1c;
    border-color: #e9ecef;
}

.my-comment-card__actions .btn-danger i {
    color: #b91c1c;
    opacity: 0.6;
}

.my-comment-card__actions .btn-danger:hover {
    background: #fde8eb;
    border-color: #f5c6cb;
    color: #b91c1c;
}

.my-comment-card__actions .btn-danger:hover i {
    color: #b91c1c;
    opacity: 1;
}

@media (max-width: 600px) {
    .my-comment-card {
        padding: 16px;
    }

    .my-comment-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .my-comment-card__actions {
        gap: 6px;
    }

    .my-comment-card__actions .btn {
        flex: 1;
        justify-content: center;
        padding: 8px 12px;
    }
}
/* ===== Блок участников в сайдбаре ===== */
.participants-block {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f3f5;
}

/* Пустое состояние участников в сайдбаре — компактнее */
.sidebar-card .empty-state {
    background: transparent;
    border: none;
    padding: 12px 8px;
    margin: 0;
    font-size: 14px;
}
/* ===== СТРАНИЦА УЧАСТНИКОВ СОБЫТИЯ ===== */
.participants-page-header {
    margin-bottom: 24px;
}

.participants-page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
}

.participants-page-subtitle {
    color: #6c757d;
    font-size: 15px;
    margin: 0;
}

.participants-page-subtitle a {
    color: #e53935;
    text-decoration: none;
}

.participants-page-subtitle a:hover {
    text-decoration: underline;
}

.participants-table-wrap {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.participants-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.participants-table thead th {
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    padding: 14px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.participants-table tbody td {
    padding: 12px 20px;
    border-bottom: 1px solid #f1f3f5;
    color: #1a1a2e;
    vertical-align: middle;
}

.participants-table tbody tr:last-child td {
    border-bottom: none;
}

.participants-table tbody tr:hover {
    background: #f8f9fa;
}

.participant-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.participant-cell__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.participant-cell__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e53935;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}

.participant-cell__name {
    font-weight: 500;
    color: #1a1a2e;
}

@media (max-width: 600px) {
    .participants-table thead th {
        padding: 10px 12px;
        font-size: 12px;
    }
    .participants-table tbody td {
        padding: 10px 12px;
        font-size: 14px;
    }
    .participant-cell__avatar {
        width: 34px;
        height: 34px;
    }
    .participant-cell__name {
        font-size: 13px;
    }
}
/* Ссылка «Все →» в заголовке карточки */
.sidebar-card__link {
    float: right;
    font-size: 13px;
    font-weight: 500;
    color: #e53935;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
}

.sidebar-card__link:hover {
    text-decoration: underline;
}

.sidebar-card__link i {
    font-size: 10px;
    margin-left: 2px;
}
/* === СТИЛИ ДЛЯ БАННЕРА КУКОВ === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    z-index: 9999; /* Чтобы был поверх всего */
    padding: 16px 24px;
    display: none; /* Изначально скрыт, JS покажет */
    border-top: 1px solid #e9ecef;
}

.cookie-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-banner__text {
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
}

.cookie-banner__text a {
    color: #e53935;
    text-decoration: underline;
}

.cookie-banner__btn {
    background-color: #e53935; /* Ваш основной цвет (красный) */
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.cookie-banner__btn:hover {
    background-color: #c62828;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .cookie-banner__btn {
        width: 100%;
    }
}
/* === КАСТОМНОЕ ПОЛЕ ЗАГРУЗКИ ФАЙЛА === */
.custom-file-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.file-input-hidden {
    display: none !important;
}

.file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
    transition: all 0.2s ease;
    margin: 0;
}

.file-upload-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.file-upload-btn i {
    color: #6c757d;
}

.file-upload-name {
    font-size: 14px;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.file-upload-name.has-file {
    color: #0a7e3d; /* Зеленый цвет, когда файл выбран */
    font-weight: 500;
}
/* === КРЕСТИК (сброс файла) === */
.file-upload-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 50%;
    color: #b02a37;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.file-upload-clear:hover {
    background-color: #f1aeb5;
    color: #842029;
}
/* Поле аватара */
.avatar-field {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    flex-wrap: nowrap; /* Запрещаем перенос на новую строку */
}

/* Переопределяем поведение загрузчика файла внутри аватара */
.avatar-field .file-upload {
    flex: 1 1 auto; /* Занимает всё оставшееся место */
    width: auto;    /* Сбрасываем принудительные 100% ширины */
}

.avatar-preview {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e9ecef;
    background: #fff;
}

.avatar-placeholder-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e53935;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}
/* На мобильных разрешаем перенос, чтобы ничего не сжималось */
@media (max-width: 600px) {
    .avatar-field {
        flex-wrap: wrap;
    }
    .avatar-field .file-upload {
        flex: 1 1 100%; /* Загрузчик переносится на новую строку под аватаром */
    }
}
/* ==========================================================================
   ЕДИНЫЙ ШРИФТ ДЛЯ ВСЕХ ПОЛЕЙ ВВОДА
   ========================================================================== */
.form-control,
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    /* Принудительно задаем системный шрифт, как у всего сайта */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
    font-size: 15px !important;
    color: #1a1a2e;
    
    /* Убираем разницу в высоте строк на iOS/Android */
    line-height: 1.5;
}

/* Стилизация текста-подсказки (placeholder), чтобы он тоже был красивым */
.form-control::placeholder {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
    font-size: 15px;
    color: #adb5bd;
    opacity: 1; /* Firefox делает плейсхолдеры полупрозрачными, это фиксит */
}

/* Отдельно поправим выпадающие списки (select), так как они часто капризничают */
select.form-control {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
    /* Если нужно, чтобы стрелочка в селекте не съезжала из-за шрифта */
    cursor: pointer; 
}
/* ==========================================================================
   ФИКС КНОПОК СМЕНЫ ПАРОЛЯ ДЛЯ ТЕМНОЙ ТЕМЫ
   ========================================================================== */

/* 1. Если тема переключается через атрибут (data-theme="dark") или класс (.dark) */
[data-theme="dark"] .edit-actions .btn-save,
[data-theme="dark"] .edit-actions .btn-back,
body.dark .edit-actions .btn-save,
body.dark .edit-actions .btn-back,
html.dark .edit-actions .btn-save,
html.dark .edit-actions .btn-back {
    background: #22262F !important;
    background-color: #22262F !important;
    color: #E2E8F0 !important;
    border: 1px solid #3b4252 !important;
}

/* Ховер-эффект для них */
[data-theme="dark"] .edit-actions .btn-save:hover,
[data-theme="dark"] .edit-actions .btn-back:hover,
body.dark .edit-actions .btn-save:hover,
body.dark .edit-actions .btn-back:hover {
    background: #2e333d !important;
    border-color: #4c566a !important;
    color: #ffffff !important;
}

/* 2. Если у пользователя включена СИСТЕМНАЯ темная тема (автоматически) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .edit-actions .btn-save,
    :root:not([data-theme="light"]) .edit-actions .btn-back {
        background: #22262F !important;
        color: #E2E8F0 !important;
        border: 1px solid #3b4252 !important;
    }
    :root:not([data-theme="light"]) .edit-actions .btn-save:hover,
    :root:not([data-theme="light"]) .edit-actions .btn-back:hover {
        background: #2e333d !important;
        border-color: #4c566a !important;
        color: #ffffff !important;
    }
}
.city-page-wrapper {
    margin-top: 24px;
    margin-bottom: 60px;
}