/* ========== ОСНОВНЫЕ ПЕРЕМЕННЫЕ ========== */
:root {
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #7c3aed;
    --secondary: #f0e6ff;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --text-dark: #2d2a4e;
    --text-light: #5d4a7c;
    --white: #ffffff;
    --gray-light: #f9f7ff;
    --border-color: #e9d5ff;
    --shadow-sm: 0 4px 12px rgba(139, 92, 246, 0.1);
    --border-radius-md: 12px;
    --border-radius-lg: 24px;
    --transition: all 0.2s ease;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    background: #cabce6;
    font-family: 'Segoe UI', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-sm);
}

.decorative-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* ========== НАВИГАЦИЯ ========== */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.brand {
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 40px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover {
    background: var(--secondary);
    color: var(--primary-dark);
}

/* ========== ЗАГОЛОВКИ ========== */
h1 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-dark);
}

h2 {
    font-size: 28px;
    text-align: center;
    margin: 40px 0 20px;
}

h3 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: var(--text-light);
}

/* ========== ФОРМЫ ========== */
form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-md);
    border: 2px solid var(--secondary);
    box-shadow: var(--shadow-sm);
}

form > div {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

input, select, textarea {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    font-size: 15px;
    transition: var(--transition);
    background: var(--white);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
    border-radius: 20px;
}

button, input[type="submit"] {
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    margin-top: 10px;
}

button:hover, input[type="submit"]:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* ========== ТАБЛИЦЫ ========== */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

th {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 14px 12px;
    font-weight: 700;
    text-align: center;
}

td {
    padding: 12px 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    vertical-align: middle;
}

tbody tr:hover {
    background: var(--gray-light);
}

td form {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

td button, td input[type="submit"] {
    padding: 6px 16px;
    font-size: 13px;
    margin: 0;
    background: var(--primary);
}

td button[name="remove_from_cart"],
td button[name="cancel_reservation"],
td button[name="delete_user"] {
    background: var(--danger);
}

.product-image-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

/* ========== КОРЗИНА ========== */
.cart-summary {
    background: var(--secondary);
    padding: 20px 25px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.cart-total {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-dark);
}

.cart-items-count {
    font-size: 18px;
    color: var(--text-light);
}

.checkout-btn {
    background: linear-gradient(135deg, var(--success), #059669);
    width: 100%;
    max-width: 300px;
    font-size: 18px;
    padding: 14px;
    margin: 20px auto;
    display: block;
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.qty-input {
    width: 70px;
    display: inline-block;
    margin-right: 8px;
}

.inline-form {
    display: inline-block;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--gray-light);
    border-radius: 24px;
}

.empty-state p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-state a {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    border-radius: 40px;
    text-decoration: none;
}

/* ========== КАТАЛОГ (СЕТКА ТОВАРОВ) ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.product-image {
    height: 220px;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 13px;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
}

.product-name {
    font-size: 20px;
    font-weight: 700;
    margin: 8px 0;
}

.product-description {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-details {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.product-weight {
    font-size: 14px;
    color: var(--text-light);
}

.product-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-dark);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.product-date {
    font-size: 12px;
    color: var(--text-light);
}

.btn-add-to-cart {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
}

.filter-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    background: var(--white);
    padding: 15px 25px;
    border-radius: 50px;
    border: 2px solid var(--secondary);
    margin-bottom: 30px;
}

.filter-form input, .filter-form select {
    flex: 1;
    min-width: 180px;
    padding: 12px 20px;
    border-radius: 40px;
    border: 2px solid var(--border-color);
}

.filter-form button, .filter-form .reset-btn {
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 600;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
}

.filter-form .reset-btn {
    background: var(--secondary);
    color: var(--text-dark);
    text-decoration: none;
    text-align: center;
}

/* ========== ФИЛЬТРАЦИЯ ПО ЦЕНЕ ========== */
.filter-section {
    background: var(--gray-light);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 25px;
}

.filter-title {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-range {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.price-input-group {
    flex: 1;
    min-width: 120px;
}

.price-input-group label {
    font-size: 12px;
    margin-bottom: 4px;
    color: var(--text-light);
}

.price-input-group input {
    padding: 10px 15px;
    border-radius: 30px;
}

.sort-select {
    padding: 10px 15px;
    border-radius: 30px;
    border: 2px solid var(--border-color);
    background: white;
    font-size: 14px;
    cursor: pointer;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.apply-price-btn, .reset-price-btn {
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.apply-price-btn {
    background: var(--primary);
    color: white;
}

.reset-price-btn {
    background: var(--secondary);
    color: var(--text-dark);
    text-decoration: none;
    display: inline-block;
}

.price-values {
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.active-filter {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.active-filter:hover {
    background: var(--primary-dark);
    color: white;
}

.products-count {
    margin-bottom: 15px;
    text-align: right;
    color: var(--text-light);
    font-size: 14px;
}

/* ========== ПАГИНАЦИЯ ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-dark);
    background: white;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    min-width: 40px;
    text-align: center;
}

.pagination a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========== ЗАКАЗЫ ========== */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.order-card:hover {
    box-shadow: var(--shadow-sm);
}

.order-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.order-number {
    font-weight: 700;
    font-size: 18px;
}

.order-date {
    font-size: 14px;
    opacity: 0.9;
}

.order-total {
    font-size: 18px;
    font-weight: 700;
}

.order-body {
    padding: 20px;
}

.order-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.order-info-item {
    display: flex;
    flex-direction: column;
}

.order-info-label {
    font-size: 12px;
    color: var(--text-light);
}

.order-info-value {
    font-weight: 600;
    color: var(--text-dark);
}

.order-status {
    font-size: 14px;
}

.status-success {
    color: var(--success);
    font-weight: 600;
}

.empty-orders {
    text-align: center;
    padding: 60px 20px;
    background: var(--gray-light);
    border-radius: 24px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

/* ========== ГЛАВНАЯ СТРАНИЦА ========== */
.landing-hero {
    text-align: center;
    padding: 50px 20px;
    background: var(--secondary);
    border-radius: 40px;
    margin-bottom: 50px;
}

.landing-hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.landing-hero p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 25px;
}

.landing-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.landing-btn-primary, .landing-btn-secondary {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.landing-btn-primary {
    background: var(--primary);
    color: white;
}

.landing-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.landing-btn-secondary {
    background: white;
    color: var(--primary-dark);
    border: 2px solid var(--primary);
}

.landing-btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.landing-feature-card {
    text-align: center;
    padding: 25px;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.landing-feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.landing-feature-card h3 {
    margin: 10px 0;
    font-size: 20px;
}

.landing-feature-card p {
    color: var(--text-light);
}

.landing-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    background: var(--primary);
    color: white;
    padding: 40px;
    border-radius: 40px;
    margin-bottom: 50px;
    text-align: center;
}

.landing-stat-number {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}

.landing-stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.landing-section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.landing-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.landing-category-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.landing-category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}

.landing-category-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.landing-category-card h4 {
    font-size: 20px;
    margin-bottom: 8px;
}

.landing-category-card p {
    color: var(--text-light);
    font-size: 14px;
}

.landing-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.landing-product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.landing-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.landing-product-image {
    height: 200px;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.landing-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-product-info {
    padding: 20px;
}

.landing-product-category {
    font-size: 13px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.landing-product-name {
    font-size: 18px;
    font-weight: 700;
    margin: 8px 0;
}

.landing-product-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark);
}

.landing-reviews {
    background: var(--secondary);
    padding: 50px 40px;
    border-radius: 40px;
    margin-bottom: 50px;
}

.landing-reviews-header {
    text-align: center;
    margin-bottom: 40px;
}

.landing-reviews-header p {
    color: var(--text-light);
}

.landing-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.landing-review-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
}

.landing-review-stars {
    color: #fbbf24;
    margin-bottom: 15px;
    font-size: 18px;
}

.landing-review-text {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
}

.landing-review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-review-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.landing-review-info {
    flex: 1;
}

.landing-review-name {
    font-weight: 700;
    color: var(--text-dark);
}

.landing-review-date {
    font-size: 12px;
    color: var(--text-light);
}

.landing-cta {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 40px;
    color: white;
}

.landing-cta h2 {
    color: white;
    margin-bottom: 15px;
}

.landing-cta p {
    margin-bottom: 25px;
    opacity: 0.95;
}

.landing-btn-white {
    background: white;
    color: var(--primary-dark);
    padding: 12px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.landing-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    cursor: pointer;
    color: #aaa;
    transition: var(--transition);
}

.close-modal:hover {
    color: #333;
}

.modal-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.modal-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-dark);
}

.modal-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    font-size: 15px;
}

.modal-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.confirm-btn {
    background: var(--success);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

.cancel-btn {
    background: var(--danger);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

/* ========== АДМИН-ПАНЕЛЬ ========== */
.admin-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.admin-card {
    background: var(--gray-light);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}

.admin-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.admin-card h3 {
    margin: 10px 0;
    font-size: 20px;
}

.admin-card p {
    color: var(--text-light);
    font-size: 14px;
}

.welcome-text {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 30px;
    color: white;
}

.welcome-text h1 {
    color: white;
    margin-bottom: 10px;
}

/* ========== СТАТИСТИКА В АДМИНКЕ ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-dark);
}

.stat-label {
    color: var(--text-light);
    font-size: 14px;
}

.stat-card.pending .stat-number { color: var(--warning); }
.stat-card.replied .stat-number { color: var(--success); }
.stat-card.hidden .stat-number { color: var(--danger); }

/* ========== ОБРАТНАЯ СВЯЗЬ (АДМИН) ========== */
.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feedback-card {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.feedback-card.pending {
    border-left: 4px solid var(--warning);
}

.feedback-card.replied {
    border-left: 4px solid var(--success);
}

.feedback-card.hidden-1 {
    background: #fef3c7;
    opacity: 0.8;
}

.feedback-header {
    background: var(--gray-light);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 700;
    color: var(--text-dark);
}

.user-email {
    font-size: 12px;
    color: var(--text-light);
}

.feedback-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.feedback-id {
    font-weight: 700;
    color: var(--primary);
}

.feedback-date {
    font-size: 13px;
    color: var(--text-light);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.replied {
    background: #d1fae5;
    color: #065f46;
}

.hidden-badge {
    background: #fee2e2;
    color: #991b1b;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.feedback-body {
    padding: 20px;
}

.message-section, .response-section {
    margin-bottom: 20px;
}

.message-section h4, .response-section h4 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.message-section p, .response-section p {
    background: var(--gray-light);
    padding: 15px;
    border-radius: 16px;
    line-height: 1.6;
}

.response-section p {
    background: #e8f4fd;
}

.response-date {
    font-size: 11px;
    color: var(--text-light);
    display: block;
    margin-top: 8px;
}

.reply-form {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--gray-light);
}

.reply-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 16px;
    margin-bottom: 12px;
}

.reply-form button {
    padding: 10px 20px;
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.action-buttons button {
    padding: 8px 16px;
    font-size: 13px;
    margin: 0;
}

.btn-toggle-hide {
    background: var(--warning);
}

.btn-delete {
    background: var(--danger);
}

.empty-state-custom {
    text-align: center;
    padding: 60px 20px;
    background: var(--gray-light);
    border-radius: 24px;
}

.empty-state-custom h3 {
    margin: 20px 0 10px;
}

/* ========== ОБРАТНАЯ СВЯЗЬ (ПОЛЬЗОВАТЕЛЬ) ========== */
.feedback-container {
    max-width: 900px;
    margin: 0 auto;
}

.feedback-form {
    background: linear-gradient(135deg, #f9f7ff, #fff);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 40px;
    border: 2px solid #f0e6ff;
}

.feedback-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.feedback-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9d5ff;
    border-radius: 15px;
    font-size: 16px;
    resize: vertical;
    margin-bottom: 15px;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.message-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
    border: 1px solid #f0e6ff;
    transition: all 0.3s ease;
}

.message-card.hidden-message {
    opacity: 0.7;
    border-left: 4px solid #f59e0b;
}

.message-header {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.message-date {
    font-size: 13px;
    opacity: 0.9;
}

.message-status {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.status-replied {
    background: #10b981;
}

.status-pending {
    background: #f59e0b;
}

.message-content {
    padding: 20px;
    border-bottom: 1px solid #f0e6ff;
}

.message-content p {
    margin: 0;
    line-height: 1.6;
    color: #2d2a4e;
}

.admin-response {
    background: #f9f7ff;
    padding: 20px;
    border-top: 2px solid #e9d5ff;
}

.admin-response h4 {
    color: #8b5cf6;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-response p {
    margin: 0;
    color: #5d4a7c;
    line-height: 1.6;
}

.empty-messages {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    border: 2px solid #f0e6ff;
}

.empty-messages p {
    font-size: 18px;
    color: #6b5b8c;
    margin-bottom: 20px;
}

/* ========== УВЕДОМЛЕНИЯ ========== */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.toast-notification.success {
    border-left: 4px solid var(--success);
}

.toast-notification.error {
    border-left: 4px solid var(--danger);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.success-message {
    background: var(--success);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-align: center;
    margin: 20px auto;
    max-width: 500px;
}

.error-message {
    background: var(--danger);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-align: center;
    margin: 20px auto;
}

/* ========== ПРОДУКТЫ (пустое состояние) ========== */
.no-products {
    text-align: center;
    padding: 60px 20px;
    background: var(--gray-light);
    border-radius: 24px;
}

.no-products p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.no-products a {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    border-radius: 40px;
    text-decoration: none;
}

/* ========== БРОНИРОВАНИЯ ========== */
.reservations-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reservation-card {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.reservation-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.reservation-body {
    padding: 20px;
}

.reservation-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.reservation-info-item {
    display: flex;
    flex-direction: column;
}

.reservation-label {
    font-size: 12px;
    color: var(--text-light);
}

.reservation-value {
    font-weight: 600;
    color: var(--text-dark);
}

/* ========== АДАПТИВНОСТЬ (ПЛАНШЕТЫ, 768px) ========== */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .nav-container {
        flex-direction: column;
        text-align: center;
    }
    
    .filter-form {
        flex-direction: column;
        border-radius: 30px;
    }
    
    .filter-form input, .filter-form select, .filter-form button, .filter-form .reset-btn {
        width: 100%;
    }
    
    .price-range {
        flex-direction: column;
    }
    
    .price-input-group {
        width: 100%;
    }
    
    .products-grid, .landing-products, .landing-reviews-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
    
    table {
        font-size: 13px;
    }
    
    th, td {
        padding: 8px 5px;
    }
    
    .cart-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .feedback-header {
        flex-direction: column;
    }
    
    .feedback-meta {
        justify-content: flex-start;
    }
    
    .message-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons button {
        width: 100%;
    }
    
    .landing-hero h1 {
        font-size: 32px;
    }
    
    .landing-stats {
        padding: 20px;
    }
    
    .landing-reviews {
        padding: 30px 20px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .order-info {
        grid-template-columns: 1fr;
    }
}

/* ========== МОБИЛЬНЫЕ УСТРОЙСТВА (576px и меньше) ========== */
@media (max-width: 576px) {
    /* Убираем декоративный фон */
    .decorative-bg {
        display: none;
    }
    
    /* Контейнер */
    .container {
        padding: 15px;
        border-radius: 20px;
    }
    
    /* Заголовки */
    h1 {
        font-size: 26px;
        margin-bottom: 20px;
    }
    h2 {
        font-size: 24px;
    }
    h3 {
        font-size: 20px;
    }
    
    /* Навигация – вертикальная, без горизонтальной прокрутки */
    .nav-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
        gap: 8px;
    }
    .nav-links a {
        padding: 10px 12px;
        font-size: 14px;
        text-align: center;
        flex: 1 0 auto;
        background: #f5f3ff;
        border-radius: 40px;
        white-space: normal;
    }
    .brand {
        justify-content: center;
        font-size: 24px;
    }
    .logo-img {
        height: 40px;
    }
    
    /* Минимальная высота для кликабельных элементов (тач-таргет) */
    button, 
    input[type="submit"],
    .nav-links a,
    .btn-add-to-cart,
    .action-buttons button,
    .delete-btn,
    .edit-btn,
    .checkout-btn,
    .confirm-btn,
    .cancel-btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Формы – на всю ширину, без вылетов */
    form {
        padding: 20px 15px;
    }
    input, select, textarea {
        font-size: 16px; /* предотвращает масштабирование на iOS */
        padding: 12px 15px;
    }
    .filter-form {
        border-radius: 20px;
        padding: 15px;
        gap: 10px;
    }
    
    /* Таблицы – горизонтальная прокрутка + компактность */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    table {
        font-size: 12px;
        min-width: 500px;
    }
    th, td {
        padding: 8px 6px;
        white-space: nowrap;
    }
    
    /* Карточки товаров – горизонтальная ориентация для экономии места */
    .products-grid,
    .landing-products,
    .services-grid {
        gap: 20px;
    }
    .product-card {
        flex-direction: row;
        align-items: center;
        padding: 12px;
    }
    .product-image {
        width: 100px;
        height: 100px;
        font-size: 40px;
        flex-shrink: 0;
        border-radius: 16px;
        overflow: hidden;
    }
    .product-info {
        padding: 0 0 0 15px;
    }
    .product-name {
        font-size: 18px;
    }
    .product-price {
        font-size: 20px;
    }
    .product-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .product-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    .btn-add-to-cart {
        width: 100%;
        text-align: center;
    }
    
    /* Статистика – 2 колонки */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .landing-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
        gap: 15px;
    }
    .landing-stat-number {
        font-size: 28px;
    }
    
    /* Модальные окна */
    .modal-content {
        width: 95%;
        padding: 20px 15px;
        margin: 20px auto;
        border-radius: 20px;
    }
    .modal-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .confirm-btn, .cancel-btn {
        width: 100%;
    }
    
    /* Футер – колонки вертикально, текст по центру */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
        padding: 0 20px;
    }
    .footer-col a, .footer-col p {
        justify-content: center;
        text-align: center;
    }
    .footer-bottom {
        font-size: 12px;
    }
    
    /* Корзина */
    .cart-summary {
        flex-direction: column;
        text-align: center;
    }
    .inline-form {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .qty-input {
        width: 80px;
    }
    .checkout-btn {
        max-width: 100%;
    }
    
    /* Карточки обратной связи */
    .feedback-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    .action-buttons button {
        width: 100%;
        margin: 4px 0;
    }
    
    /* Главная: преимущества, категории – одна колонка */
    .landing-features,
    .landing-categories {
        grid-template-columns: 1fr;
    }
    .landing-hero {
        padding: 30px 15px;
    }
    .landing-hero h1 {
        font-size: 28px;
    }
    .landing-section-title {
        font-size: 26px;
    }
    .landing-reviews {
        padding: 30px 15px;
    }
    .landing-cta {
        padding: 30px 20px;
    }
    
    /* Услуги */
    .service-card {
        padding: 20px;
    }
    .service-name {
        font-size: 20px;
    }
    .service-price {
        font-size: 24px;
    }
    
    /* Админ-панель */
    .admin-menu {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .welcome-text h1 {
        font-size: 24px;
    }
    
    /* Заказы */
    .order-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .order-info {
        grid-template-columns: 1fr;
    }
    
    /* Пагинация – кнопки меньше */
    .pagination a, .pagination span {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 34px;
    }
    
    /* Дополнительно: убираем лишние тени и границы для производительности */
    .product-card, .service-card, .order-card {
        box-shadow: none;
    }
    
    /* Улучшение тач-событий */
    button, a, .btn-add-to-cart, .nav-links a {
        touch-action: manipulation;
    }
}

/* ========== ДЛЯ АДМИНКИ (номера, услуги) – общие стили ========== */
.product-image-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.edit-btn, .delete-btn {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 5px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
}
.edit-btn {
    background: var(--warning);
    color: white;
}
.delete-btn {
    background: var(--danger);
    color: white;
    border: none;
    cursor: pointer;
}
.edit-btn:hover, .delete-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Сетка услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}
.service-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}
.service-icon {
    font-size: 48px;
    margin-bottom: 15px;
}
.service-name {
    font-size: 22px;
    font-weight: 700;
    margin: 10px 0;
    color: var(--text-dark);
}
.service-price {
    font-size: 28px;
    color: var(--primary-dark);
    font-weight: 800;
    margin: 15px 0;
}

/* Убираем нижние отступы у контейнера и футера */
.container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
body {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
.footer {
    margin-top: 0 !important;
    margin: 40px 0 0 0 !important;
    padding: 40px 0 20px !important;
}
.container > *:last-child {
    margin-bottom: 0 !important;
}