/* ===== ОБЩИЕ СТИЛИ ===== */
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 0 40px 0;   /* ← 40px снизу */
}
.main-index {
    padding-top: 0;
}

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

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

/* ===== ФОРМА СОБЫТИЯ (create/edit) ===== */
.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;
    background: #fff;
    box-sizing: border-box;
    height: 44px;
}

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

.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: 4px 12px;
    font-size: 13px;
    border-radius: 20px;
    border: 1px solid #ced4da;
    background: #fff;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
}

.date-quick-buttons .btn:hover,
.time-quick-buttons .btn:hover {
    background: #e53935;
    color: #fff;
    border-color: #e53935;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

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

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

.btn-danger {
    background: #E33737;
    color: #fff;
}
.btn-edit {
    background: #fff;
    border: 1px solid #000000;
    color: #1a1a2e;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-edit:hover {
    background: #008000;
    color: #fff;
}

.btn-danger:hover {
    background: #c62a2a;
}

/* ===== ПРОФИЛЬ / ЛИЧНЫЙ КАБИНЕТ ===== */
.profile-container {
    max-width: 100%;
    margin: 0px auto;
    padding: 0 20px;
}

@media (max-width: 600px) {
    .profile-container {
        max-width: 100%;
        padding: 0 16px;
    }
}

.profile-container h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 24px;
    padding-bottom: 12px;
}

.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;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.profile-actions .profile-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    background: #f1f3f5;
    color: #1a1a2e;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

.profile-actions .profile-btn:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.profile-actions .profile-btn.logout {
    background: #fde8eb;
    border-color: #f5c6cb;
    color: #b91c1c;
}

.profile-actions .profile-btn.logout:hover {
    background: #f8d7da;
    border-color: #e5a0a8;
}

/* ===== ПРОФИЛЬ (редактирование) ===== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #e53935;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.profile-info-header {
    flex: 1;
}

.profile-info-header .profile-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.profile-info-header .profile-meta {
    font-size: 15px;
    color: #6c757d;
    margin: 0;
}

.profile-info-header .profile-meta .separator {
    margin: 0 4px;
    color: #adb5bd;
}

.form-section {
    margin-bottom: 24px;
}

.form-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
    color: #1a1a2e;
}

.current-avatar {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.avatar-preview {
    max-width: 60px;
    max-height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 600px) {
    .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;
    }
}

@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;
    }
    .profile-actions .btn {
        flex: 1;
        text-align: center;
        min-width: 0;
    }

    .profile-actions {
        flex-direction: column;
    }
    .profile-actions .btn {
        width: 100%;
    }
}

/* ===== РЕДАКТИРОВАНИЕ ПРОФИЛЯ ===== */
.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;
    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: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.edit-actions .btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-actions .btn-save {
    background: #e53935;
    color: #fff;
}

.edit-actions .btn-save:hover {
    background: #c62828;
}

.edit-actions .btn-back {
    background: #f1f3f5;
    color: #1a1a2e;
    border: 1px solid #dee2e6;
}

.edit-actions .btn-back:hover {
    background: #e9ecef;
}

@media (max-width: 480px) {
    .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%;
    }
}

/* ===== МАСКА ТЕЛЕФОНА ===== */
#phone {
    letter-spacing: 0.5px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}
#emergency_phone {
    letter-spacing: 0.5px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

/* ===== ГЛАЗОК ДЛЯ ПАРОЛЯ ===== */
.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;
}

/* ===== СООБЩЕНИЯ ===== */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 16px;
}

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

.alert-success {
    background: #e3f5e9;
    color: #0a7e3d;
    border: 1px solid #c3e6cb;
}

/* ===== СТРАНИЦА СОБЫТИЙ ===== */
.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;
}

.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-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 48px;
    background: #f1f3f5;
}

.card .badge {
    display: inline-block;
    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 .status {
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.status-open {
    background: #d4edda;
    color: #155724;
}

.status-closed {
    background: #fff3cd;
    color: #856404;
}

.status-finished {
    background: #e9ecef;
    color: #495057;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.status-draft {
    background: #f1f3f5;
    color: #6c757d;
}

.card .participants {
    color: #6c757d;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.empty-state h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .page-header h1 {
        font-size: 22px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== БУРГЕР И МОБИЛЬНОЕ МЕНЮ ===== */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    order: 1;
}

.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);
}

.nav-user-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

@media (max-width: 768px) {
    .nav {
        display: none !important;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 16px 0 8px;
        gap: 12px;
        border-top: 1px solid #e9ecef;
        margin-top: 8px;
        order: 3;
        flex-basis: 100%;
        margin-left: 0;
    }

    .nav.open {
        display: flex !important;
    }

    .nav a {
        text-align: center;
        padding: 8px 0;
        font-size: 16px;
        border-bottom: none;
    }

    .nav a:hover {
        border-bottom: none;
        background: #f1f3f5;
        border-radius: 8px;
    }

    .burger {
        display: flex;
        order: 2;
    }

    .nav-right {
        order: 1;
        margin-left: auto;
        gap: 12px;
    }

    .nav-right a {
        font-size: 14px;
    }

    .logo {
        font-size: 20px;
    }
}

/* ===== HEADER & NAVIGATION ===== */
.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;
}

/* ===== FOOTER ===== */
.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-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;
}

.messages {
    position: relative;
    z-index: 100;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 20px 0;
    text-align: center;
    pointer-events: none;
}

.messages .alert {
    pointer-events: auto;
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    max-width: 90%;
}

/* ===== ФОН ГЛАВНОЙ СТРАНИЦЫ ===== */
@media (min-width: 768px) {
    .hero {
        background-image: url('/static/images/fon.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        min-height: 400px;
        padding: 60px 0px;
        border-radius: 12px;
        position: relative;
        color: #fff;
        text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    }
    .hero h1 span {
        color: #fff;
    }
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.3);
        border-radius: 12px;
        z-index: 1;
    }
    .hero h1,
    .hero p,
    .hero .buttons {
        position: relative;
        z-index: 2;
    }
}

/* ===== ПОЛНОЭКРАННЫЙ ФОН НА ГЛАВНОЙ ===== */
.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 .buttons .btn {
    text-shadow: none;
}

.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-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;
}

@media (max-width: 768px) {
    .hero-fullscreen {
        min-height: 60vh;
        padding: 40px 20px;
    }
    .hero-fullscreen::before {
        background: rgba(0,0,0,0.35);
    }
    .hero-fullscreen h1 {
        font-size: 32px;
    }
    .hero-fullscreen h1 span {
        color: #fff;
    }
    .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;
    }
}

/* ===== ОТСТУПЫ MAIN ===== */
.auth-container {
    margin-top: 20px;
}

.auth-card {
    margin-top: 20px;
}

.main-home {
    padding-top: 20px;
}

.main-other {
    padding-top: 30px;
}

.main-edit-profile {
    padding-top: 20px;
}

.main-profile {
    padding-top: 20px;
}

.alert a {
    color: #e53935;
    text-decoration: underline;
    font-weight: 600;
}

/* ===== ИКОНКА НАСТРОЕК В МЕНЮ ===== */
.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;
}

/* ===== ВЫЕЗЖАЮЩЕЕ МЕНЮ (мобильная версия) ===== */
.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;
    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;
}

@media (max-width: 768px) {
    .nav {
        display: none !important;
    }
    .burger {
        display: flex;
    }
}

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

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.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: 4px;
    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-menu {
    padding-bottom: 30px;
}

/* ===== СТРАНИЦА СОБЫТИЯ ===== */
.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;
}

.status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
}

.status-open { background: #e3f5e9; color: #0a7e3d; }
.status-closed { background: #fef3e0; color: #b45a1c; }
.status-finished { background: #eef0f2; color: #555; }
.status-cancelled { background: #fde8eb; color: #b91c1c; }
.status-draft { background: #f0f0f0; color: #777; }

.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-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;
}

.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: 14px;
}

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

@media (max-width: 768px) {
    .event-grid {
        grid-template-columns: 1fr;
    }
    .event-header h1 {
        font-size: 24px;
    }
    .event-main {
        padding: 20px;
    }
}

/* ===== ФИЛЬТРЫ (единый блок) ===== */
.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 {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    background: #f1f3f5;
    transition: background 0.2s;
    text-decoration: none;
}

.filters a:hover {
    background: #dee2e6;
}

.filters a.active {
    background: #e53935;
    color: #fff;
}

@media (max-width: 768px) {
    .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%;
    }
}

/* ===== DATE PICKER ===== */
.date-picker-wrapper {
    display: inline-flex;
    align-items: center;
    position: relative;
    gap: 4px;
}

.date-picker-input {
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 20px;
    font-size: 14px;
    background: #fff;
    color: #495057;
    cursor: pointer;
    font-family: inherit;
}

.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: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fde8eb;
    color: #b91c1c;
    font-size: 14px;
    text-decoration: none;
    font-weight: 700;
}

.date-picker-clear:hover {
    background: #f8d7da;
}

/* ===== ПРОФИЛЬ ===== */
.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-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f3f5;
    gap: 16px;
    flex-wrap: wrap;
}

.profile-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.profile-avatar-small {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #e53935;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e9ecef;
}

.profile-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder-small {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.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;
}

@media (max-width: 600px) {
    .profile-data-list p {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .profile-data-list .profile-value {
        text-align: left;
    }
}

.profile-layout {
    display: flex;
    gap: 30px;
    max-width: 1100px;
    margin: 20px auto 40px;
    padding: 0 20px;
    align-items: flex-start;
}

.profile-menu {
    width: 240px;
    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-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-left: 3px 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-main-content {
    flex: 1;
    min-width: 0;
}

.profile-menu-toggle {
    display: none;
}

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

.profile-menu-overlay {
    display: none;
}

@media (max-width: 768px) {
    .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-bottom: 1px solid #f1f3f5;
        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%;
    }
}

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

/* ===== МОИ СОБЫТИЯ ===== */
.my-events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.my-event-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-event-info {
    flex: 1;
    min-width: 250px;
}

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

.my-event-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.my-event-meta {
    font-size: 14px;
    color: #6c757d;
    margin: 4px 0;
}

.my-event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.my-event-actions .btn {
    padding: 8px 16px;
    font-size: 14px;
}

.my-event-actions .btn-outline {
    background: transparent;
    border: 1px solid #ced4da;
    color: #495057;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.my-event-actions .btn-outline:hover {
    background: #f1f3f5;
    border-color: #adb5bd;
}

.my-event-actions .btn-edit {
    padding: 8px 16px;
    font-size: 14px;
}

.my-event-actions .btn-danger {
    padding: 8px 16px;
    font-size: 14px;
}

.status-published {
    color: #0a7e3d;
    font-weight: 600;
    margin-right: 12px;
}

.status-pending {
    color: #b45a1c;
    font-weight: 600;
    margin-right: 12px;
}

@media (max-width: 600px) {
    .my-event-card {
        flex-direction: column;
    }
    .my-event-actions {
        width: 100%;
    }
    .my-event-actions .btn {
        flex: 1;
        text-align: center;
    }
}

/* ===== ЧЕКБОКСЫ ===== */
.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;
}

/* ===== ТРЕБОВАНИЯ К УЧАСТНИКАМ ===== */
.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;
}

/* ===== ПОИСК ПО КАТЕГОРИЯМ ===== */
.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;
}

/* ===== ОБЛОЖКА СОБЫТИЯ ===== */
.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;
}

@media (max-width: 768px) {
    .event-cover-wrapper {
        margin: -20px -20px 16px -20px;
    }
    .event-cover {
        max-height: 300px;
    }
}

/* ===== КНОПКА «КУПИТЬ БИЛЕТ» В КАРТОЧКЕ ===== */
.status-buy {
    background: #e3f5e9;
    color: #0a7e3d;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-buy i {
    font-size: 12px;
}

.status-buy-link {
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.status-buy-link:hover {
    background: #0a7e3d;
    color: #fff;
}

.status-buy-link:active {
    transform: scale(0.97);
}

/* ===== ФИЛЬТР ПО ГОРОДУ ===== */
.city-filter-wrapper {
    display: inline-flex;
    align-items: center;
}

.city-filter {
    padding: 6px 32px 6px 14px;
    border: 1px solid #ced4da;
    border-radius: 20px;
    font-size: 14px;
    background: #fff;
    color: #495057;
    cursor: pointer;
    font-family: inherit;
    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='%23495057' 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 10px center;
    background-size: 12px;
    min-width: 160px;
}

.city-filter:focus {
    outline: none;
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

/* ===== ПОИСК В ШАПКЕ (десктоп) ===== */
.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: 1;
}

@media (max-width: 768px) {
    .nav-search {
        display: none !important;
    }

    .mobile-search-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (min-width: 769px) {
    .mobile-search-toggle {
        display: none !important;
    }
}

/* ===== ПОИСК В МОБИЛЬНОМ МЕНЮ ===== */
.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);
}
/* ===== СЛОГАН В ФУТЕРЕ ===== */
.footer-slogan {
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    color: #495057;
    max-width: 1200px;
    margin: 0 auto 8px;
    padding: 0 20px;
}

@media (max-width: 600px) {
    .footer-slogan {
		text-align: center !important;
        font-size: 14px;
        line-height: 1.55;
    }
}
/* ===== КНОПКА «ПОДЕЛИТЬСЯ» В КАРТОЧКЕ ===== */
.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;
}

/* ===== МОДАЛКА «ПОДЕЛИТЬСЯ» ===== */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.share-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.share-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.share-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.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; }

@media (max-width: 600px) {
    .share-modal {
        width: 95%;
        max-width: none;
    }
    .share-btn {
        padding: 14px 16px;
    }
}
/* Кнопка «Пригласить» в сайдбаре — как обычная btn */
.sidebar-card .card-share-btn {
    background: #e53935;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    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;
}