/* ============================================================
   HERO (главная)
   ============================================================ */
.hero {
    position: relative;
    padding: 100px 0 120px;
    background: linear-gradient(135deg, #0f1c3f 0%, #1e3a8a 50%, #1e6bff 100%);
    overflow: hidden;
    color: var(--color-white);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.08), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,107,53,.15), transparent 45%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 780px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: .85rem;
    margin-bottom: 20px;
}
.hero-badge i { color: #ffd166; }
.hero h1 {
    color: var(--color-white);
    font-size: 3.25rem;
    letter-spacing: -.02em;
    margin-bottom: 16px;
}
.hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,.8);
    margin-bottom: 40px;
    max-width: 560px;
}

/* Форма поиска */
.search-form {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr auto;
    gap: 12px;
    background: var(--color-white);
    padding: 16px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.search-field {
    display: flex;
    flex-direction: column;
    padding: 6px 12px;
    border-right: 1px solid var(--color-border);
}
.search-field:last-of-type { border-right: none; }
.search-field label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--color-muted);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.search-field label i { color: var(--color-primary); }
.search-field input,
.search-field select {
    border: none;
    background: transparent;
    outline: none;
    font-size: .95rem;
    font-weight: 500;
    color: var(--color-text);
    padding: 4px 0;
    width: 100%;
}
.btn-search { border-radius: var(--radius-md); padding: 14px 28px; }

/* ============================================================
   СЕКЦИИ ГЛАВНОЙ
   ============================================================ */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--color-muted); }

.features { padding: 80px 0; background: var(--color-light); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-icon {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--color-primary), #4d8bff);
    color: var(--color-white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.feature-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.feature-card p { color: var(--color-muted); font-size: .92rem; }

.hotels-section { padding: 80px 0; }
.hotels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.hotel-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.hotel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hotel-cover {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: var(--color-light);
}
.hotel-cover .hotel-rating-badge {
    position: absolute;
    top: 12px; right: 12px;
}
.hotel-cover .hotel-stars {
    position: absolute;
    bottom: 12px; left: 12px;
    background: rgba(0,0,0,.5);
    color: #ffd166;
    padding: 3px 8px;
    border-radius: 20px;
}
.hotel-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.hotel-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.hotel-city { color: var(--color-muted); font-size: .88rem; margin-bottom: 16px; }
.hotel-city i { color: var(--color-primary); margin-right: 4px; }
.hotel-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hotel-price { font-weight: 700; color: var(--color-dark); font-size: 1.05rem; }
.hotel-price small { color: var(--color-muted); font-weight: 500; font-size: .8rem; }

.section-cta { text-align: center; margin-top: 48px; }

.cta-section {
    background: linear-gradient(135deg, var(--color-primary), #4d8bff);
    color: var(--color-white);
    padding: 80px 0;
    margin-top: 80px;
    text-align: center;
}
.cta-inner h2 { color: var(--color-white); margin-bottom: 12px; font-size: 2rem; }
.cta-inner p { color: rgba(255,255,255,.85); margin-bottom: 28px; font-size: 1.05rem; }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
    background: var(--color-light);
    padding: 40px 0 32px;
    border-bottom: 1px solid var(--color-border);
}
.page-header h1 { margin-bottom: 6px; }
.page-sub { color: var(--color-muted); }
.page-sub strong { color: var(--color-primary); }

/* ============================================================
   КАТАЛОГ
   ============================================================ */
.catalog { padding: 40px 0 80px; }
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

.filters {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: calc(var(--header-h) + 20px);
}
.filter-block { margin-bottom: 24px; }
.filter-block h3 {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color-muted);
    margin-bottom: 12px;
}
.filter-block select,
.filter-block input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: .9rem;
    outline: none;
}
.filter-block select:focus,
.filter-block input:focus { border-color: var(--color-primary); }

.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.hotels-list { display: flex; flex-direction: column; gap: 16px; }
.hotel-row {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}
.hotel-row:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.hotel-row-cover {
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: var(--color-light);
    min-height: 160px;
}
.hotel-row-cover .hotel-stars {
    position: absolute;
    bottom: 8px; left: 8px;
    background: rgba(0,0,0,.55);
    color: #ffd166;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: .7rem;
}
.hotel-row-body { padding: 18px 22px; }
.hotel-row-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    margin-bottom: 8px;
}
.hotel-row-head h3 { font-size: 1.15rem; }
.hotel-row-body .hotel-city { margin-bottom: 6px; }
.hotel-reviews { font-size: .85rem; color: var(--color-muted); }
.hotel-row-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 18px 24px;
    border-left: 1px solid var(--color-border);
    background: #fafbfd;
    min-width: 180px;
}
.hotel-row-price span { font-size: .75rem; color: var(--color-muted); }
.hotel-row-price strong { font-size: 1.35rem; color: var(--color-dark); }
.hotel-row-price small { font-size: .75rem; color: var(--color-muted); margin-bottom: 10px; }

/* ============================================================
   КАРТОЧКА ОТЕЛЯ
   ============================================================ */
.hotel-hero {
    position: relative;
    height: 420px;
    background-size: cover;
    background-position: center;
    background-color: #2a3140;
    display: flex;
    align-items: flex-end;
    color: var(--color-white);
}
.hotel-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,15,25,.85) 10%, rgba(10,15,25,.2) 60%, transparent);
}
.hotel-hero-content { position: relative; z-index: 2; padding-bottom: 40px; }
.hotel-hero .breadcrumbs,
.hotel-hero .breadcrumbs a { color: rgba(255,255,255,.75); }
.hotel-hero .breadcrumbs a:hover { color: var(--color-white); }
.hotel-hero .breadcrumbs span { color: var(--color-white); }
.hotel-hero h1 { color: var(--color-white); margin-bottom: 10px; font-size: 2.5rem; }
.hotel-location { font-size: 1rem; opacity: .9; margin-bottom: 16px; }
.hotel-location i { margin-right: 6px; }
.hotel-rating-summary { display: flex; align-items: center; gap: 12px; }
.hotel-rating-summary span { font-size: .9rem; opacity: .9; }

.hotel-details { padding: 40px 0 80px; }
.hotel-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}
.hotel-main { display: flex; flex-direction: column; gap: 20px; }

.detail-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.detail-card h2 { font-size: 1.35rem; margin-bottom: 16px; }
.detail-card p { color: var(--color-text); }

.amenities-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.amenities-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .92rem;
}
.amenities-list i { color: var(--color-success); }

.room-types-list { display: flex; flex-direction: column; gap: 16px; }
.room-type-card {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    align-items: stretch;
}
.room-type-img {
    background-size: cover;
    background-position: center;
    background-color: var(--color-light);
    min-height: 140px;
}
.room-type-info { padding: 16px 0; }
.room-type-info h3 { font-size: 1.05rem; margin-bottom: 6px; }
.room-type-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: .82rem;
    color: var(--color-muted);
    margin-bottom: 8px;
}
.room-type-meta i { color: var(--color-primary); margin-right: 3px; }
.room-type-amen { font-size: .82rem; color: var(--color-muted); margin-bottom: 8px; }
.room-type-available { font-size: .82rem; color: var(--color-muted); }
.room-type-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 16px 20px;
    background: #fafbfd;
    min-width: 160px;
    gap: 2px;
}
.room-type-price strong { font-size: 1.2rem; color: var(--color-dark); }
.room-type-price small { font-size: .75rem; color: var(--color-muted); margin-bottom: 8px; }

.reviews-list { display: flex; flex-direction: column; gap: 20px; }
.review-item { padding-bottom: 20px; border-bottom: 1px solid var(--color-border); }
.review-item:last-child { border-bottom: none; padding-bottom: 0; }
.review-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.review-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex; align-items: center; justify-content: center;
}
.review-head strong { display: block; font-size: .95rem; }
.review-date { font-size: .78rem; color: var(--color-muted); }
.review-head .hotel-rating-badge { margin-left: auto; }
.review-item h4 { font-size: .95rem; margin-bottom: 6px; }
.review-item p { font-size: .92rem; color: var(--color-text); }

.info-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: calc(var(--header-h) + 20px);
}
.info-card h3 { font-size: 1rem; margin-bottom: 14px; }
.info-card p { font-size: .9rem; color: var(--color-text); margin-bottom: 8px; }
.info-card strong { color: var(--color-dark); }

/* ============================================================
   AUTH (login / register)
   ============================================================ */
.auth-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #eef3ff, #f5f7fb);
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: 1.7rem; margin-bottom: 6px; text-align: center; }
.auth-sub { text-align: center; color: var(--color-muted); margin-bottom: 28px; font-size: .92rem; }
.auth-switch { text-align: center; margin-top: 20px; font-size: .9rem; color: var(--color-muted); }
.auth-switch a { color: var(--color-primary); font-weight: 600; }

/* ============================================================
   МОИ БРОНИ
   ============================================================ */
.my-bookings { padding: 40px 0 80px; }
.bookings-list { display: flex; flex-direction: column; gap: 16px; }
.booking-card {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.booking-cover {
    background-size: cover;
    background-position: center;
    background-color: var(--color-light);
    min-height: 160px;
}
.booking-body { padding: 20px 24px; }
.booking-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.booking-head h3 { font-size: 1.1rem; }
.booking-body p { font-size: .9rem; color: var(--color-text); margin-bottom: 5px; }
.booking-body p i { color: var(--color-primary); margin-right: 4px; }
.booking-body code { background: var(--color-light); padding: 2px 8px; border-radius: 4px; font-size: .82rem; }
.booking-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 20px 24px;
    background: #fafbfd;
    border-left: 1px solid var(--color-border);
    gap: 10px;
    min-width: 160px;
}
.booking-price strong { font-size: 1.2rem; color: var(--color-dark); }

/* ============================================================
   ПРОФИЛЬ
   ============================================================ */
.profile-section { padding: 40px 0 80px; }
.profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    align-items: start;
}
.profile-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
}
.profile-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin: 0 auto 16px;
}
.profile-card h3 { margin-bottom: 4px; }
.profile-card p { color: var(--color-muted); font-size: .9rem; margin-bottom: 14px; }
.profile-form-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.profile-form-card h2 { font-size: 1.3rem; margin-bottom: 20px; }

/* ============================================================
   АДМИНКА
   ============================================================ */
.admin-section { padding: 40px 0 80px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card i { font-size: 1.4rem; color: var(--color-primary); margin-bottom: 12px; display: block; }
.stat-card h3 { font-size: 1.8rem; margin-bottom: 4px; }
.stat-card p { font-size: .88rem; color: var(--color-muted); }

.admin-table-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    overflow-x: auto;
}
.admin-table-card h2 { font-size: 1.2rem; margin-bottom: 20px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th {
    text-align: left;
    padding: 10px 12px;
    background: var(--color-light);
    color: var(--color-muted);
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid var(--color-border);
}
.admin-table td { padding: 12px; border-bottom: 1px solid var(--color-border); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table code { background: var(--color-light); padding: 2px 6px; border-radius: 4px; font-size: .8rem; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .hotels-grid { grid-template-columns: repeat(2, 1fr); }
    .catalog-layout { grid-template-columns: 1fr; }
    .filters { position: static; }
    .hotel-layout { grid-template-columns: 1fr; }
    .info-card { position: static; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero { padding: 60px 0 80px; }
    .hero h1 { font-size: 2.1rem; }
    .search-form { grid-template-columns: 1fr 1fr; }
    .search-field { border-right: none; border-bottom: 1px solid var(--color-border); padding: 8px 4px; }
    .btn-search { grid-column: span 2; }
    .hotel-row { grid-template-columns: 1fr; }
    .hotel-row-price { border-left: none; border-top: 1px solid var(--color-border); flex-direction: row; align-items: center; gap: 8px; }
    .room-type-card { grid-template-columns: 1fr; }
    .room-type-price { border-top: 1px solid var(--color-border); flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; min-width: unset; padding: 14px 18px; }
    .room-type-price small { margin-bottom: 0; }
    .booking-card { grid-template-columns: 1fr; }
    .booking-price { border-left: none; border-top: 1px solid var(--color-border); flex-direction: row; align-items: center; justify-content: space-between; }
    .profile-layout { grid-template-columns: 1fr; }
    .hotel-hero { height: 320px; }
    .hotel-hero h1 { font-size: 1.8rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .features-grid, .hotels-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .search-form { grid-template-columns: 1fr; }
    .btn-search { grid-column: auto; }
    .stats-grid { grid-template-columns: 1fr; }
}
/* ============================================================
   КАСТОМНЫЙ SELECT (город)
   ============================================================ */
.custom-select { position: relative; }
.cs-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 4px 0;
    font-size: .95rem;
    font-weight: 500;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    outline: none;
}
.cs-trigger .cs-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.cs-trigger .cs-value.cs-placeholder { color: var(--color-muted); }
.cs-arrow { color: var(--color-muted); font-size: .75rem; transition: transform .2s ease; }
.custom-select.cs-open .cs-arrow { transform: rotate(180deg); }

.cs-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 260px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 200;
    display: none;
    animation: dropIn .15s ease;
}
.custom-select.cs-open .cs-menu { display: block; }

.cs-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--color-light);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
}
.cs-search-wrap i { color: var(--color-muted); font-size: .85rem; }
.cs-search {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: .9rem;
    padding: 4px 0;
}

.cs-list {
    list-style: none;
    max-height: 260px;
    overflow-y: auto;
    padding: 0;
}
.cs-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    cursor: pointer;
    transition: background var(--transition);
}
.cs-item:hover { background: var(--color-light); }
.cs-item.cs-selected { background: var(--color-primary-light); color: var(--color-primary); font-weight: 600; }
.cs-item i { width: 14px; color: var(--color-primary); font-size: .85rem; }

/* ============================================================
   КАСТОМНЫЙ GUEST SELECT
   ============================================================ */
.guest-select { position: relative; }
.gs-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 4px 0;
    font-size: .95rem;
    font-weight: 500;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    outline: none;
}
.gs-trigger i { color: var(--color-muted); font-size: .75rem; transition: transform .2s ease; }
.guest-select.gs-open .gs-trigger i { transform: rotate(180deg); }

.gs-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 300px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    z-index: 200;
    display: none;
    animation: dropIn .15s ease;
}
.guest-select.gs-open .gs-menu { display: block; }

.gs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}
.gs-row:first-child { padding-top: 0; }
.gs-row strong { display: block; font-size: .92rem; color: var(--color-dark); }
.gs-row small { color: var(--color-muted); font-size: .78rem; }

.gs-stepper {
    display: flex;
    align-items: center;
    gap: 4px;
}
.gs-stepper button {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--color-border);
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
    background: var(--color-white);
}
.gs-stepper button:hover:not(:disabled) { border-color: var(--color-primary); background: var(--color-primary-light); }
.gs-stepper button:disabled { opacity: .35; cursor: not-allowed; }
.gs-stepper span {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
    font-size: .95rem;
}
.gs-menu .btn { margin-top: 12px; }

/* Профиль — доп. блоки */
.profile-main { display: flex; flex-direction: column; gap: 20px; }
.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.profile-stats div { text-align: center; }
.profile-stats strong { display: block; font-size: 1.15rem; color: var(--color-dark); }
.profile-stats small { color: var(--color-muted); font-size: .78rem; }
.profile-form-card h2 { display: flex; align-items: center; gap: 8px; }
.profile-form-card h2 i { color: var(--color-primary); }

/* Аватар с инициалами */
.user-avatar span { font-size: .82rem; font-weight: 700; letter-spacing: .5px; }
.profile-avatar span { font-size: 1.6rem; font-weight: 700; }
.profile-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* Мобильное меню */
.mobile-menu-btn { display: none; }
@media (max-width: 900px) {
    .mobile-menu-btn { display: flex; }
    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: var(--color-white);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        transform: translateY(-120%);
        transition: transform .25s ease;
        margin: 0;
        z-index: 99;
    }
    .main-nav.open { transform: translateY(0); }
    .nav-link { padding: 10px 12px; border-radius: var(--radius-sm); }
    .nav-link.active::after { display: none; }
    .nav-link.active { background: var(--color-primary-light); color: var(--color-primary); }
}

@media (max-width: 768px) {
    .cs-menu { min-width: 100%; left: 0; right: 0; }
    .gs-menu { min-width: 100%; left: 0; right: 0; }
}
/* ============================================================
   АДМИН-ПАНЕЛЬ (расширенная)
   ============================================================ */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}
.admin-sidebar {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 12px;
    position: sticky;
    top: calc(var(--header-h) + 20px);
}
.admin-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-weight: 500;
    font-size: .92rem;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.admin-tab i { width: 18px; color: var(--color-muted); font-size: .9rem; }
.admin-tab:hover { background: var(--color-light); }
.admin-tab.active { background: var(--color-primary-light); color: var(--color-primary); font-weight: 600; }
.admin-tab.active i { color: var(--color-primary); }

.admin-panel { min-width: 0; }
.admin-panel h2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; font-size: 1.3rem; }

.admin-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    overflow-x: auto;
}

.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th {
    text-align: left;
    padding: 11px 12px;
    background: var(--color-light);
    color: var(--color-muted);
    font-weight: 600;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}
.admin-table td { padding: 12px; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafbfd; }
.admin-table code { background: var(--color-light); padding: 2px 6px; border-radius: 4px; font-size: .8rem; }

.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-actions .btn { padding: 6px 10px; font-size: .78rem; }
.admin-actions .btn-danger {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.admin-actions .btn-danger:hover { background: #fecaca; }
.admin-actions .btn-ghost { padding: 6px 10px; }

.admin-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}
.admin-toolbar input,
.admin-toolbar select {
    padding: 9px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: .88rem;
    outline: none;
    min-width: 160px;
}
.admin-toolbar input:focus,
.admin-toolbar select:focus { border-color: var(--color-primary); }
.admin-toolbar .btn { padding: 9px 16px; }
.admin-toolbar .spacer { flex: 1; }

.admin-empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--color-muted);
}
.admin-empty i { font-size: 2.5rem; color: #cbd2df; margin-bottom: 12px; display: block; }

.admin-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.admin-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.admin-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}
.admin-pagination button {
    min-width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text);
    font-weight: 600;
    font-size: .88rem;
}
.admin-pagination button.active { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.admin-pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* Модалка админки шире */
.admin-modal .modal-content { max-width: 640px; }
.admin-modal .modal-content textarea {
    min-height: 100px;
    resize: vertical;
}
.admin-modal .form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* Мини-статистика */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-mini {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.stat-mini-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.stat-mini-icon.blue   { background: #e8f0ff; color: #1e6bff; }
.stat-mini-icon.green  { background: #e6f7ee; color: #067647; }
.stat-mini-icon.orange { background: #fff4e5; color: #b45309; }
.stat-mini-icon.purple { background: #f3e8ff; color: #7c3aed; }
.stat-mini strong { display: block; font-size: 1.3rem; line-height: 1.2; }
.stat-mini small { color: var(--color-muted); font-size: .8rem; }

@media (max-width: 1024px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .stats-row { grid-template-columns: 1fr; }
    .admin-grid-2, .admin-grid-3 { grid-template-columns: 1fr; }
}