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

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3b82f6;
    text-decoration: none;
}

.logo i {
    margin-right: 0.5rem;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__menu a {
    text-decoration: none;
    color: #334155;
    transition: color 0.2s;
}

.nav__menu a:hover {
    color: #3b82f6;
}

.nav__auth {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    background: #e2e8f0;
    color: #1e293b;
}

.btn--small {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.btn--primary {
    background: #3b82f6;
    color: white;
}

.btn--primary:hover {
    background: #2563eb;
}

.btn--block {
    display: block;
    text-align: center;
    width: 100%;
}

.btn--large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn--secondary {
    background: #64748b;
    color: white;
}

.btn--secondary:hover {
    background: #475569;
}

/* Hero */
.hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.search-bar {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 2rem auto 0;
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
}

/* Workspaces grid */
.workspaces {
    padding: 2rem 0;
}

.workspaces h2 {
    margin-bottom: 1.5rem;
}

.workspaces__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.workspace-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.workspace-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.workspace-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.workspace-card__content {
    padding: 1rem;
}

.workspace-card__content h3 {
    margin-bottom: 0.5rem;
}

.address, .price, .rating {
    margin: 0.5rem 0;
    color: #475569;
}

.rating i {
    color: #fbbf24;
}

/* Detail page */
.detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

.detail__image img {
    width: 100%;
    border-radius: 12px;
}

.detail__info h1 {
    margin-bottom: 1rem;
}

.amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.amenities span {
    background: #f1f5f9;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.booking {
    margin-top: 1.5rem;
}

.booking label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.booking input {
    width: 100px;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.total {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 1rem 0;
}

/* Profile */
.profile {
    padding: 2rem 0;
}

.profile__card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.profile__avatar i {
    font-size: 100px;
    color: #3b82f6;
}

.profile__info p {
    margin: 0.5rem 0;
}

.profile__bookings h2 {
    margin-bottom: 1rem;
}

.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.booking-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.status--active {
    background: #dbeafe;
    color: #1e40af;
}

.status--completed {
    background: #dcfce7;
    color: #166534;
}

/* Footer */
.footer {
    background: #1e293b;
    color: #cbd5e1;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* Уведомления */
.notification-btn-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 1rem;
}
.notification-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    color: #334155;
}
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
}
.notification-dropdown {
    position: absolute;
    top: 35px;
    right: 0;
    width: 250px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    z-index: 100;
}
.notification-dropdown.show {
    display: block;
}
.notification-header {
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: bold;
}
.notification-list {
    max-height: 300px;
    overflow-y: auto;
}
.notification-item {
    padding: 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

/* Кнопка чата в шапке */
.chat-header-btn {
    background: none;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    color: #334155;
    transition: all 0.2s;
    margin-right: 1rem;
}
.chat-header-btn:hover {
    background: #e2e8f0;
}

/* Модальное окно чата */
.chat-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}
.chat-modal-content {
    background-color: white;
    border-radius: 16px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 20px 35px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #3b82f6;
    color: white;
    font-weight: bold;
}
.chat-modal-close {
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}
.chat-modal-body {
    display: flex;
    flex-direction: column;
    height: 450px;
}
.chat-modal-body .chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f8fafc;
}
.chat-modal-body .chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #e2e8f0;
    background: white;
}
.chat-modal-body .chat-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    outline: none;
}
.chat-modal-body .chat-input button {
    background: #3b82f6;
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-left: 8px;
    cursor: pointer;
}
.chat-modal-body .message {
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
}
.chat-modal-body .message.user {
    background: #3b82f6;
    color: white;
    margin-left: auto;
    text-align: right;
}
.chat-modal-body .message.support {
    background: #e2e8f0;
    color: #1e293b;
}

/* Load more */
.load-more {
    text-align: center;
    margin: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav__wrapper {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .nav__menu {
        justify-content: center;
        gap: 1rem;
    }
    .nav__auth {
        justify-content: center;
    }
    .workspaces__grid {
        grid-template-columns: 1fr;
    }
    .detail {
        grid-template-columns: 1fr;
    }
    .profile__card {
        flex-direction: column;
        text-align: center;
    }
}

/* Auth pages */
.auth-page {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}

.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 40px;
    width: 100%;
    max-width: 440px;
}

.auth-card h1 {
    margin-bottom: 24px;
    font-size: 1.6rem;
    color: #1e293b;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

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

.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}

.auth-footer a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

/* Flash alerts */
.alert {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.alert-success { background: #dcfce7; color: #166534; }
.alert-danger  { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef9c3; color: #854d0e; }
.alert-info    { background: #dbeafe; color: #1e40af; }
