﻿:root {
    --primary-dark: rgb(48, 34, 29);
    --primary-gold: rgb(188, 168, 119);
    --primary-darker: rgb(38, 24, 19);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.5;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

html {
    scroll-behavior: smooth;
}

/* Цветовые классы */
.brown-dark {
    background-color: var(--primary-dark) !important;
}

.brown-darker {
    background-color: var(--primary-darker) !important;
}

.gold {
    background-color: var(--primary-gold) !important;
}

.gold-text {
    color: var(--primary-gold) !important;
}

.border-gold {
    border-color: var(--primary-gold) !important;
}

.border-gold:focus {
    border-color: var(--primary-gold) !important;
    box-shadow: 0 0 0 0.2rem rgba(188, 168, 119, 0.25) !important;
}

.white-text {
    color: white !important;
}

/* Навигация и шапка */
.top-bar {
    background-color: var(--primary-dark);
    color: white;
    padding: 12px 0;
}

.top-bar a {
    color: white;
    text-decoration: none;
}

.top-bar a:hover {
    color: var(--primary-gold);
}

nav .brand-logo {
    font-weight: 500;
    font-size: 1.8rem;
}

nav ul a {
    color: white !important;
    font-weight: 400;
}

nav ul a:hover {
    background-color: rgba(188, 168, 119, 0.2) !important;
}

.sidenav li a {
    color: white !important;
}

.sidenav .divider {
    background-color: var(--primary-gold);
}

.main-nav {
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.main-nav .container > div {
    justify-content: center !important;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: inline-block;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 500;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary-gold);
}

.city-selector {
    display: flex;
    gap: 15px;
}

.city-selector a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}

.city-selector a.active {
    border-bottom-color: var(--primary-gold);
    color: var(--primary-gold);
}

/* Hero секция */
.hero-section {
    height: 500px;
    background-image: linear-gradient(rgba(48, 34, 29, 0.8), rgba(48, 34, 29, 0.8)),
    url('/assets/background-pic.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 820px;
    padding: 0 24px;
    text-align: center;
}

.hero-section h1 {
    font-weight: 500;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
    margin-bottom: 12px;
}

.hero-section h4 {
    font-weight: 300;
    margin-bottom: 30px;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.order-page-container {
    max-width: 1180px;
}

.order-tabs {
    display: inline-flex;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(48, 34, 29, 0.06);
    border: 1px solid rgba(48, 34, 29, 0.08);
}

.order-tabs__item {
    text-decoration: none;
    color: #30221d;
    font-weight: 600;
    border-radius: 999px;
    padding: 12px 18px;
    transition: all 0.2s ease;
}

.order-tabs__item:hover {
    color: #30221d;
    background: rgba(188, 168, 119, 0.14);
}

.order-tabs__item.is-active {
    background: #30221d;
    color: #f8f4eb;
    box-shadow: 0 10px 24px rgba(48, 34, 29, 0.18);
}

.metrics-panel {
    display: grid;
    gap: 24px;
    max-width: 1080px;
}

.customers-panel {
    display: grid;
    gap: 20px;
    max-width: 1080px;
}

.customer-filter-toggle {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1rem;
    border-radius: 16px;
    background: rgba(48, 34, 29, 0.05);
    border: 1px solid rgba(48, 34, 29, 0.08);
    cursor: pointer;
    font-weight: 600;
    color: #30221d;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.customer-filter-toggle:hover {
    background: rgba(188, 168, 119, 0.14);
    border-color: rgba(188, 168, 119, 0.3);
}

.customer-filter-toggle.is-active {
    background: #30221d;
    color: #f8f4eb;
    border-color: #30221d;
    box-shadow: 0 10px 24px rgba(48, 34, 29, 0.14);
}

.customer-filter-toggle__text {
    text-align: center;
}

.customer-filter-reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.customers-table-card {
    border-radius: 24px;
    background: #fffdf9;
    border: 1px solid rgba(48, 34, 29, 0.08);
    box-shadow: 0 18px 42px rgba(48, 34, 29, 0.08);
    overflow: hidden;
}

.customers-table-card table thead th {
    white-space: nowrap;
    background: rgba(48, 34, 29, 0.04);
}

.customer-name-cell {
    font-weight: 700;
    color: #30221d;
}

.customer-inline-input {
    min-width: 140px;
    border-radius: 12px;
    border-color: rgba(48, 34, 29, 0.12);
    background: rgba(255, 255, 255, 0.92);
}

.customer-inline-input:focus {
    border-color: rgba(188, 168, 119, 0.8);
    box-shadow: 0 0 0 0.18rem rgba(188, 168, 119, 0.16);
}

.customer-inline-input.is-invalid {
    border-color: #b13e3e;
    box-shadow: 0 0 0 0.18rem rgba(177, 62, 62, 0.14);
}

.customer-inline-input.is-saving {
    border-color: rgba(188, 168, 119, 0.8);
    background: rgba(255, 248, 228, 0.92);
}

.customer-inline-input.is-saved {
    border-color: rgba(31, 138, 67, 0.38);
    background: rgba(241, 251, 244, 0.96);
}

.customer-muted {
    color: #7f7268;
}

.customer-money {
    font-weight: 700;
    color: #30221d;
    white-space: nowrap;
}

.customer-favorite-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(48, 34, 29, 0.06);
    color: #9d8c82;
    font-size: 18px;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.customer-favorite-indicator:hover {
    transform: translateY(-1px);
    border-color: rgba(201, 51, 79, 0.2);
}

.customer-favorite-indicator.is-active {
    background: rgba(201, 51, 79, 0.12);
    color: #c9334f;
}

.customer-delete-button {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(177, 62, 62, 0.24);
    border-radius: 999px;
    background: rgba(177, 62, 62, 0.08);
    color: #b13e3e;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.customer-delete-button:hover {
    background: rgba(177, 62, 62, 0.14);
    border-color: rgba(177, 62, 62, 0.34);
    transform: translateY(-1px);
}

.customers-scroll-sentinel {
    display: flex;
    justify-content: center;
    padding: 18px 20px 22px;
    color: #7f7268;
    font-weight: 600;
}

.metrics-period-steps {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.metrics-period-steps__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    text-decoration: none;
    color: #30221d;
    background: rgba(48, 34, 29, 0.05);
    border: 1px solid rgba(48, 34, 29, 0.08);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.metrics-period-steps__item:hover {
    color: #30221d;
    background: rgba(188, 168, 119, 0.14);
    border-color: rgba(188, 168, 119, 0.32);
}

.metrics-period-steps__item.is-active {
    color: #f8f4eb;
    background: #30221d;
    border-color: #30221d;
    box-shadow: 0 10px 24px rgba(48, 34, 29, 0.18);
}

.metrics-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.metrics-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 245, 237, 0.98));
    border: 1px solid rgba(188, 168, 119, 0.24);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 12px 28px rgba(48, 34, 29, 0.08);
    display: grid;
    gap: 8px;
}

.metrics-card--accent {
    background: linear-gradient(135deg, #30221d, #47332d);
    color: #fff;
}

.metrics-card__label {
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(48, 34, 29, 0.58);
}

.metrics-card--accent .metrics-card__label,
.metrics-card--accent .metrics-card__hint {
    color: rgba(255, 255, 255, 0.78);
}

.metrics-card__value {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1;
    color: #30221d;
}

.metrics-card--accent .metrics-card__value {
    color: #f3dca1;
}

.metrics-card__hint {
    color: rgba(48, 34, 29, 0.62);
    font-size: 0.95rem;
}

.metrics-reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.metrics-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
    gap: 24px;
}

.metrics-chart-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 235, 0.98));
    border: 1px solid rgba(188, 168, 119, 0.22);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 12px 32px rgba(48, 34, 29, 0.08);
}

.metrics-chart-card__header {
    margin-bottom: 18px;
}

.metrics-chart-card__header h3 {
    margin: 0 0 6px;
    color: #30221d;
    font-size: 1.25rem;
}

.metrics-chart-card__header p {
    margin: 0;
    color: rgba(48, 34, 29, 0.62);
}

.metrics-bar-chart {
    min-height: 280px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(50px, 1fr);
    gap: 12px;
    align-items: end;
    overflow-x: auto;
    padding-bottom: 8px;
}

.metrics-bar-chart__item {
    min-height: 280px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 10px;
    align-items: end;
}

.metrics-bar-chart__value,
.metrics-bar-chart__label {
    font-size: 0.82rem;
    text-align: center;
    color: rgba(48, 34, 29, 0.68);
}

.metrics-bar-chart__bar-wrap {
    height: 220px;
    display: flex;
    align-items: end;
    justify-content: center;
    background: rgba(48, 34, 29, 0.04);
    border-radius: 16px;
    padding: 8px;
}

.metrics-bar-chart__bar {
    width: 100%;
    border-radius: 12px 12px 8px 8px;
    min-height: 4px;
}

.metrics-bar-chart__bar--gold {
    background: linear-gradient(180deg, #d7bf84, #bca877);
}

.metrics-status-list {
    display: grid;
    gap: 16px;
}

.metrics-status-list__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: #30221d;
    font-weight: 600;
}

.metrics-status-list__track {
    height: 12px;
    background: rgba(48, 34, 29, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.metrics-status-list__fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #30221d, #bca877);
}

.metrics-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    color: rgba(48, 34, 29, 0.72);
    font-size: 0.92rem;
}

.metrics-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.metrics-legend__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.metrics-legend__dot--created,
.metrics-performance-chart__bar--created {
    background: #30221d;
}

.metrics-legend__dot--started,
.metrics-performance-chart__bar--started {
    background: #8e6f41;
}

.metrics-legend__dot--finished,
.metrics-performance-chart__bar--finished {
    background: #d0b77a;
}

.metrics-performance-chart {
    min-height: 320px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(62px, 1fr);
    gap: 14px;
    align-items: end;
    overflow-x: auto;
    padding-bottom: 8px;
}

.metrics-performance-chart__item {
    min-height: 320px;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 12px;
}

.metrics-performance-chart__bars {
    height: 260px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 8px;
    background: rgba(48, 34, 29, 0.04);
    border-radius: 18px;
    padding: 12px 10px;
}

.metrics-performance-chart__bar {
    flex: 1 1 0;
    min-height: 4px;
    border-radius: 10px 10px 6px 6px;
}

.metrics-performance-chart__label {
    text-align: center;
    color: rgba(48, 34, 29, 0.68);
    font-size: 0.82rem;
}

#create-order-modal {
    overflow-y: auto;
    overflow-x: hidden;
}

#create-order-modal .admin-create-order-modal__dialog {
    display: flex;
    align-items: stretch;
    min-height: calc(100dvh - 32px);
    height: calc(100dvh - 32px);
}

#create-order-modal .modal-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    border: 1px solid rgba(188, 168, 119, 0.24);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(48, 34, 29, 0.16);
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow: hidden;
}

#create-order-modal .modal-dialog {
    max-width: min(1100px, calc(100vw - 32px));
    margin: 1rem auto;
}

#create-order-modal .modal-dialog.modal-fullscreen-md-down {
    padding: 0;
}

#create-order-modal .js-admin-create-order-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

#create-order-modal .modal-header,
#create-order-modal .modal-footer {
    flex-shrink: 0;
    border-color: rgba(48, 34, 29, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 235, 0.96));
}

#create-order-modal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: clamp(18px, 2vw, 28px);
    background: linear-gradient(180deg, rgba(248, 245, 239, 0.95), rgba(244, 239, 231, 0.92));
}

.admin-create-order-modal__header {
    align-items: flex-start;
    gap: 16px;
    padding: clamp(18px, 2vw, 24px) clamp(18px, 2.4vw, 28px);
}

.admin-create-order-modal__header-copy {
    min-width: 0;
}

.admin-create-order-modal__header-copy p {
    max-width: 760px;
}

.admin-create-order-layout {
    display: grid;
    gap: 18px;
}

.admin-create-order-section {
    padding: clamp(18px, 2.2vw, 24px);
    border-radius: 24px;
    border: 1px solid rgba(188, 168, 119, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 246, 238, 0.96));
    box-shadow: 0 14px 34px rgba(48, 34, 29, 0.07);
}

.admin-create-order-section__heading {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
}

.admin-create-order-section__heading p {
    color: rgba(48, 34, 29, 0.62);
}

.admin-create-order-section .form-label {
    font-weight: 600;
    color: #30221d;
}

.admin-create-order-section .form-control,
.admin-create-order-section .form-select {
    min-height: 50px;
    border-radius: 14px;
    border-color: rgba(48, 34, 29, 0.14);
}

.admin-create-order-section textarea.form-control {
    min-height: 136px;
    resize: vertical;
}

.admin-create-order-modal__description {
    max-height: min(34dvh, 320px);
}

.admin-create-order-section input[type="file"].form-control {
    padding: 12px 14px;
    min-height: 58px;
}

.admin-create-order-modal__footer {
    padding: 16px clamp(18px, 2.4vw, 28px) clamp(18px, 2vw, 24px);
}

.admin-create-order-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    width: 100%;
}

.order-field-saved {
    background-color: #d1e7dd;
    border-color: #198754;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.order-field-saving {
    background-color: #fff3cd;
    border-color: #ffc107;
}

.order-pairs-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(188, 168, 119, 0.18);
    color: #5f4729;
    font-size: 0.82rem;
    font-weight: 700;
}

.order-filter-reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.table-responsive > .table {
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-bottom: 0;
}

.table-responsive > .table > thead > tr > th {
    border-bottom: none;
    color: rgba(48, 34, 29, 0.72);
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-bottom: 0.85rem;
}

.order-summary-row > td {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 245, 237, 0.98));
    border-top: 1px solid rgba(188, 168, 119, 0.16);
    border-bottom: 1px solid rgba(188, 168, 119, 0.16);
    box-shadow: 0 10px 24px rgba(48, 34, 29, 0.04);
}

.order-summary-row > td:first-child {
    border-left: 1px solid rgba(188, 168, 119, 0.16);
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

.order-summary-row > td:last-child {
    border-right: 1px solid rgba(188, 168, 119, 0.16);
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
}

.order-items-card {
    padding: 18px;
    border: 1px solid rgba(188, 168, 119, 0.24);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 239, 229, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.order-items-list {
    display: grid;
    gap: 14px;
}

.order-item-row {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(48, 34, 29, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(251, 249, 245, 0.98));
    box-shadow: 0 10px 24px rgba(48, 34, 29, 0.06);
}

.order-item-row.is-saved {
    border-color: rgba(61, 143, 78, 0.28);
    background: linear-gradient(180deg, rgba(248, 255, 250, 1), rgba(244, 250, 246, 0.98));
}

.order-item-row--draft .invalid-feedback {
    display: block;
    font-size: 0.85rem;
}

.order-item-row--draft .form-control.is-invalid,
.order-item-row--draft .form-select.is-invalid {
    border-color: #b13e3e;
    box-shadow: 0 0 0 0.18rem rgba(177, 62, 62, 0.14);
    background-image: none;
}

.image-upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.image-upload-preview__item {
    display: grid;
    gap: 8px;
}

.image-upload-preview__thumb {
    aspect-ratio: 1;
    width: 100%;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(188, 168, 119, 0.24);
    box-shadow: 0 10px 22px rgba(48, 34, 29, 0.08);
    background: rgba(255, 255, 255, 0.7);
}

.image-upload-preview__name,
.image-upload-preview__meta {
    font-size: 0.8rem;
    line-height: 1.35;
    word-break: break-word;
}

.image-upload-preview__name {
    color: #30221d;
    font-weight: 600;
}

.image-upload-preview__meta {
    color: rgba(48, 34, 29, 0.58);
}

.order-item-save-button {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(48, 34, 29, 0.14);
    border-radius: 14px;
    background: #fff;
    color: #5d564f;
    font-size: 1.1rem;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.order-item-save-button:hover {
    transform: translateY(-1px);
}

.order-item-save-button.is-success {
    color: #1f8a43;
    border-color: rgba(31, 138, 67, 0.35);
    background: rgba(31, 138, 67, 0.08);
}

.order-item-save-button.is-saving {
    color: #856404;
    border-color: rgba(255, 193, 7, 0.45);
    background: rgba(255, 193, 7, 0.12);
    pointer-events: none;
}

.order-item-delete-button {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(183, 69, 69, 0.22);
    border-radius: 14px;
    background: rgba(183, 69, 69, 0.08);
    color: #b13e3e;
    font-size: 1rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.order-item-delete-button:hover {
    background: rgba(183, 69, 69, 0.14);
    border-color: rgba(183, 69, 69, 0.34);
    transform: translateY(-1px);
}

.order-favorite-button {
    border: 1px solid rgba(48, 34, 29, 0.12);
    border-radius: 12px;
    background: #fff;
    color: rgba(48, 34, 29, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.7rem 1rem;
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.order-favorite-button:hover {
    border-color: rgba(205, 76, 76, 0.45);
    color: #d15454;
    background: rgba(209, 84, 84, 0.08);
}

.order-favorite-button.is-active {
    color: #cf3f3f;
    border-color: rgba(207, 63, 63, 0.35);
    background: rgba(207, 63, 63, 0.1);
}

.order-favorite-button.is-busy {
    opacity: 0.7;
    pointer-events: none;
}

.order-favorite-button__icon {
    font-size: 1rem;
    line-height: 1;
}

.order-favorite-button__text {
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
}

.order-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 110px));
    gap: 12px;
}

.order-photo-card {
    border: 1px solid rgba(48, 34, 29, 0.14);
    border-radius: 12px;
    padding: 6px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.order-photo-card img {
    display: block;
    width: 100%;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
}

.order-photos-details summary {
    cursor: pointer;
}

.order-summary-row {
    cursor: pointer;
}

.order-summary-row:hover > td {
    background: rgba(188, 168, 119, 0.08);
}

.order-toggle-cell {
    text-align: center;
    vertical-align: middle;
}

.order-toggle-button {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(48, 34, 29, 0.12);
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #30221d;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.order-toggle-button:hover {
    background: rgba(188, 168, 119, 0.12);
    border-color: rgba(188, 168, 119, 0.5);
}

.order-toggle-chevron {
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.order-toggle-button.is-open .order-toggle-chevron {
    transform: rotate(180deg);
}

.order-details-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(244, 237, 225, 0.96));
    border: 1px solid rgba(188, 168, 119, 0.28);
    border-radius: 20px;
    box-shadow: 0 18px 34px rgba(48, 34, 29, 0.08);
}

tr[id^="order-details-"] > td {
    border: none;
    padding-top: 0;
}

.order-image-modal {
    position: fixed;
    inset: 0;
    background: rgba(17, 13, 12, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1050;
}

.order-image-modal.d-none {
    display: none;
}

.order-image-modal-inner {
    position: relative;
    max-width: min(92vw, 1100px);
    max-height: 88vh;
}

.order-image-modal img {
    display: block;
    max-width: 100%;
    max-height: 88vh;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    background: #fff;
}

.order-image-modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #30221d;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    font-size: 1.25rem;
    line-height: 1;
}

@media (max-width: 991px) {
    .metrics-cards,
    .metrics-layout {
        grid-template-columns: 1fr;
    }

    #create-order-modal .modal-dialog {
        max-width: calc(100vw - 20px);
        margin: 10px auto;
    }

    #create-order-modal .admin-create-order-modal__dialog {
        min-height: calc(100dvh - 20px);
        height: calc(100dvh - 20px);
    }

    .admin-create-order-section {
        border-radius: 22px;
    }
}

@media (max-height: 900px) {
    #create-order-modal .modal-content {
        max-height: calc(100dvh - 20px);
    }
}

@media (max-width: 768px) {
    .order-tabs {
        display: grid;
        width: 100%;
        border-radius: 24px;
    }

    .order-tabs__item {
        text-align: center;
    }

    #create-order-modal .modal-dialog {
        max-width: 100vw;
        margin: 0;
        height: 100dvh;
    }

    #create-order-modal .admin-create-order-modal__dialog {
        min-height: 100dvh;
        height: 100dvh;
    }

    #create-order-modal .modal-content {
        min-height: 100dvh;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
    }

    #create-order-modal .modal-header {
        padding-top: max(18px, env(safe-area-inset-top));
        padding-right: 16px;
        padding-bottom: 10px;
        padding-left: 16px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 235, 0.92));
    }

    #create-order-modal .modal-footer {
        padding: 10px 16px max(10px, env(safe-area-inset-bottom));
        background: linear-gradient(180deg, rgba(248, 244, 235, 0.92), rgba(255, 255, 255, 0.98));
    }

    #create-order-modal .js-admin-create-order-form {
        display: block;
        min-height: auto;
    }

    #create-order-modal .modal-body {
        overflow: visible;
        padding: 14px 16px 12px;
        flex: 0 0 auto;
    }

    .admin-create-order-modal__header {
        align-items: flex-start;
        gap: 10px;
    }

    .admin-create-order-modal__header-copy p {
        font-size: 0.92rem;
        line-height: 1.4;
    }

    .admin-create-order-section {
        padding: 14px;
        border-radius: 18px;
    }

    .admin-create-order-section__heading {
        margin-bottom: 14px;
    }

    .admin-create-order-section .form-control,
    .admin-create-order-section .form-select {
        min-height: 46px;
        font-size: 0.95rem;
    }

    .admin-create-order-modal__actions {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .admin-create-order-modal__actions > * {
        width: 100%;
        min-height: 40px;
        padding: 0.52rem 0.9rem;
        font-size: 0.92rem;
        border-radius: 12px;
    }

    .admin-create-order-modal__footer .btn,
    .admin-create-order-modal__footer .btn-gold {
        box-shadow: none;
    }
}

@media (max-height: 760px) {
    #create-order-modal .modal-dialog {
        max-width: 100vw;
        margin: 0;
        height: 100dvh;
    }

    #create-order-modal .admin-create-order-modal__dialog {
        min-height: 100dvh;
        height: 100dvh;
    }

    #create-order-modal .modal-content {
        min-height: 100dvh;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }
}

/* Кнопки */
.btn-gold {
    background-color: var(--primary-gold);
    color: var(--primary-dark);
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 500;
    border: none;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.btn-gold:hover {
    background-color: #a8945f;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: var(--primary-dark);
}

/* Карточки услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 32px rgba(48, 34, 29, 0.15);
}

.service-icon {
    width: 100px;
    height: 100px;
    background: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-dark);
    font-size: 3rem;
}

.card-title {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.card-desc {
    color: #666;
    margin-bottom: 20px;
    flex: 1 1 auto;
    width: 100%;
}

.price {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-gold);
    margin-top: auto;
}

/* Секция формы */
.form-section {
    background-color: var(--primary-dark);
    padding: 60px 0;
    margin: 80px 0;
    border-radius: 40px;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 30px;
}

.form-title {
    color: var(--primary-gold);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

/* Поле телефона */
.is-valid {
    border-bottom: 2px solid #28a745 !important;
    box-shadow: 0 1px 0 0 #28a745 !important;
}

.welcome-back {
    font-size: 1.2rem;
    color: var(--primary-gold);
    display: none;
    margin-top: 10px;
}

/* Модальное окно (если используется) */
.modal {
    max-height: 100%;
    background-color: var(--primary-dark);
}

.modal .modal-content {
    padding: 24px;
}

.modal .input-field label {
    color: var(--primary-gold);
}

.modal .input-field input:focus + label,
.modal .input-field textarea:focus + label {
    color: var(--primary-gold) !important;
}

.modal .input-field input:focus,
.modal .input-field textarea:focus {
    border-bottom: 1px solid var(--primary-gold) !important;
    box-shadow: 0 1px 0 0 var(--primary-gold) !important;
}

/* Кастом для селекта */
.browser-default {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--primary-gold);
    border-radius: 5px;
    padding: 10px;
    margin-top: 20px;
}

.browser-default option {
    background-color: var(--primary-dark);
}

/* Reviews section */
.reviews-section {
    padding: 20px 0 0;
}

.reviews-shell {
    background:
        radial-gradient(circle at top right, rgba(188, 168, 119, 0.18), transparent 24%),
        linear-gradient(135deg, #2b1d18, #382722 60%, #241814);
    border-radius: 36px;
    padding: 38px;
    border: 1px solid rgba(188, 168, 119, 0.18);
    box-shadow: 0 20px 50px rgba(48, 34, 29, 0.16);
}

.reviews-copy {
    max-width: 700px;
    margin: 0 auto 28px;
    text-align: center;
}

.reviews-copy .section-title {
    color: white !important;
    margin-top: 0;
}

.reviews-copy .section-title:after {
    background: var(--primary-gold);
}

.reviews-eyebrow {
    margin-bottom: 10px;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    font-weight: 700;
}

.reviews-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
}

.reviews-widget-frame {
    display: flex;
    justify-content: center;
}

.reviews-widget {
    width: min(100%, 620px);
    height: 800px;
    overflow: hidden;
    position: relative;
    padding: 10px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(188, 168, 119, 0.18);
}

.reviews-widget__iframe {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(188, 168, 119, 0.22);
    border-radius: 18px;
    box-sizing: border-box;
    background: white;
}

.reviews-widget__link {
    box-sizing: border-box;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    font-family: "YS Text", sans-serif;
    position: absolute;
    bottom: 18px;
    width: calc(100% - 20px);
    text-align: center;
    left: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-height: 14px;
    white-space: nowrap;
    padding: 0 16px;
}

.reviews-widget__link:hover {
    color: var(--primary-gold);
}

.order-consent-box {
    padding: 18px 20px;
    border: 1px solid rgba(201, 164, 92, 0.35);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(38, 28, 20, 0.96) 0%, rgba(27, 20, 14, 0.98) 100%);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.order-consent-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
}

.order-consent-check .form-check-input {
    margin-top: 0.28rem;
    flex-shrink: 0;
    border-color: rgba(201, 164, 92, 0.85);
    background-color: rgba(255, 255, 255, 0.08);
}

.order-consent-check .form-check-input:checked {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
}

.order-consent-check .form-check-label {
    color: rgba(255, 248, 236, 0.92);
    line-height: 1.6;
}

.privacy-policy-modal {
    border: 1px solid rgba(201, 164, 92, 0.26);
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(201, 164, 92, 0.14), transparent 34%),
        linear-gradient(180deg, #fffaf1 0%, #f5ede1 100%);
    box-shadow: 0 28px 70px rgba(35, 24, 16, 0.22);
}

.privacy-policy-modal .modal-header,
.privacy-policy-modal .modal-body {
    padding-left: 32px;
    padding-right: 32px;
}

.privacy-policy-modal .modal-header {
    border-bottom: 1px solid rgba(67, 43, 21, 0.08);
    padding-top: 28px;
    padding-bottom: 18px;
}

.privacy-policy-modal .modal-body {
    padding-top: 12px;
    padding-bottom: 28px;
}

.privacy-policy-modal__eyebrow {
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: rgba(97, 65, 34, 0.7);
}

.privacy-policy-modal .modal-title {
    color: #2f2014;
}

.privacy-policy-modal p {
    color: #4d3826;
    line-height: 1.75;
    margin-bottom: 1rem;
}

/* Секция контактов */
.contacts-section {
    background: var(--primary-dark);
    color: white;
    padding: 80px 0;
    margin-top: 80px;
}

.contacts-section .section-title {
    color: white !important;
    margin-top: 0;
}

.contacts-section .section-title:after {
    background: white;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contacts-grid > div {
    min-width: 0;
}

.contacts-info p {
    margin: 20px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.contacts-info {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(188, 168, 119, 0.18);
    border-radius: 24px;
    padding: 32px;
}

.contacts-info i {
    color: var(--primary-gold);
    font-size: 1.5rem;
    width: 30px;
}

/* Социальные сети */
.social-links {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.social-links a.btn-floating {
    background-color: var(--primary-dark) !important;
    color: var(--primary-gold) !important;
    border: 2px solid var(--primary-gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
    font-size: 1.5rem;
}

.social-links a.btn-floating i,
.social-links a.btn-floating .fab,
.social-links a.btn-floating .fas {
    color: inherit !important;
    opacity: 1 !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    line-height: 1 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-links a.btn-floating:hover {
    background-color: var(--primary-gold) !important;
    color: var(--primary-dark) !important;
    transform: translateY(-3px);
}

/* Карта */
.contacts-map-frame {
    width: 100%;
    height: 350px;
    border-radius: 20px;
    border: 3px solid var(--primary-gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: block;
}

.contacts-grid > div:last-child {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(188, 168, 119, 0.18);
    border-radius: 24px;
    padding: 16px;
}

/* Футер */
.page-footer {
    padding: 42px 0 36px;
    background-color: var(--primary-darker) !important;
    color: white;
    text-align: center;
    border-top: 1px solid rgba(188, 168, 119, 0.18);
}

.page-footer .logo {
    color: white;
    margin-bottom: 15px;
}

.footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.page-footer a {
    color: var(--primary-gold);
    text-decoration: none;
}

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

.footer-link-separator {
    display: inline-block;
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.45);
}

.pagination {
    gap: 8px;
    flex-wrap: wrap;
}

.pagination .page-item:not(.active) .page-link,
.pagination .page-item:not(.active) .page-link:visited {
    color: var(--primary-dark) !important;
    background-color: #fff;
    border: 1px solid rgba(48, 34, 29, 0.2);
}

.pagination .page-item:not(.active) .page-link:hover {
    color: var(--primary-dark) !important;
    background-color: rgba(188, 168, 119, 0.18);
    border-color: var(--primary-gold);
}

.pagination .page-item.active .page-link {
    color: var(--primary-dark) !important;
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
}

.pagination .page-item.disabled .page-link {
    color: rgba(48, 34, 29, 0.45) !important;
    background-color: #f3f0e8;
    border-color: rgba(48, 34, 29, 0.12);
}

/* Спиннер */
.spinner-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    text-align: center;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--primary-gold);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.spinner-label {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 500;
    color: white;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.form-blur {
    filter: blur(4px);
    pointer-events: none;
}

/* Заголовки секций */
.section-title {
    font-size: 2.2rem;
    margin: 60px 0 40px;
    text-align: center;
    color: var(--primary-dark);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary-gold);
    margin: 15px auto 0;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 1s ease-out;
}

/* Материал иконки */
.material-icons {
    vertical-align: middle;
}

/* Service pages */
.success-page,
.error-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 48px 0;
}

.success-page .container,
.error-page .container {
    position: relative;
    z-index: 1;
}

.success-page__shell,
.error-page__shell {
    margin: 0 auto;
    text-align: center;
}

.success-page__brand,
.error-page__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    margin-bottom: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--primary-gold);
    font-size: 0.95rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.success-page__actions,
.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    align-items: center;
}

.success-page__secondary-link,
.error-page__secondary-link {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid rgba(48, 34, 29, 0.12);
    background: rgba(255, 255, 255, 0.56);
    transition: all 0.25s ease;
}

.success-page__secondary-link:hover,
.error-page__secondary-link:hover {
    color: var(--primary-dark);
    background: rgba(188, 168, 119, 0.16);
    border-color: rgba(188, 168, 119, 0.4);
}

.success-page {
    background:
        radial-gradient(circle at top right, rgba(188, 168, 119, 0.24), transparent 28%),
        radial-gradient(circle at bottom left, rgba(188, 168, 119, 0.18), transparent 32%),
        linear-gradient(135deg, #241711 0%, #30221d 52%, #1f1410 100%);
}

.success-page__backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(17, 11, 9, 0.38), rgba(17, 11, 9, 0.2)),
        url('https://static.vecteezy.com/system/resources/thumbnails/055/767/518/small/men-s-black-leather-dress-shoes-holiday-clean-evening-dark-photo.jpg') center/cover;
    opacity: 0.18;
    transform: scale(1.06);
}

.success-page__shell {
    max-width: 880px;
}

.success-page__brand {
    border: 1px solid rgba(188, 168, 119, 0.34);
}

.success-page__card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 244, 235, 0.94));
    border: 1px solid rgba(188, 168, 119, 0.24);
    border-radius: 32px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
    padding: 48px 40px;
}

.success-page__badge {
    width: 84px;
    height: 84px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gold), #d4c08d);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 16px 34px rgba(188, 168, 119, 0.34);
}

.success-page__eyebrow {
    margin-bottom: 10px;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
}

.success-page__title {
    color: var(--primary-dark);
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.05;
    margin-bottom: 18px;
    font-weight: 600;
}

.success-page__lead {
    max-width: 620px;
    margin: 0 auto 28px;
    color: rgba(48, 34, 29, 0.78);
    font-size: 1.08rem;
}

.success-page__order-box {
    max-width: 560px;
    margin: 0 auto 18px;
    padding: 18px 22px;
    border-radius: 20px;
    background: rgba(48, 34, 29, 0.06);
    border: 1px solid rgba(48, 34, 29, 0.08);
}

.success-page__order-label {
    display: block;
    margin-bottom: 8px;
    color: rgba(48, 34, 29, 0.58);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.success-page__order-id {
    display: inline-block;
    color: var(--primary-dark);
    background: rgba(188, 168, 119, 0.18);
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 0.95rem;
    word-break: break-word;
}

.success-page__note {
    max-width: 520px;
    margin: 0 auto 30px;
    color: rgba(48, 34, 29, 0.7);
    font-size: 0.98rem;
}

.error-page {
    background:
        radial-gradient(circle at top left, rgba(188, 168, 119, 0.18), transparent 26%),
        radial-gradient(circle at bottom right, rgba(138, 54, 43, 0.18), transparent 28%),
        linear-gradient(135deg, #221612 0%, #30221d 52%, #1d1411 100%);
}

.error-page__backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(18, 12, 10, 0.46), rgba(18, 12, 10, 0.26)),
        url('https://static.vecteezy.com/system/resources/thumbnails/055/767/518/small/men-s-black-leather-dress-shoes-holiday-clean-evening-dark-photo.jpg') center/cover;
    opacity: 0.14;
    transform: scale(1.05);
}

.error-page__shell {
    max-width: 920px;
}

.error-page__brand {
    border: 1px solid rgba(188, 168, 119, 0.28);
}

.error-page__card {
    background: linear-gradient(180deg, rgba(255, 251, 247, 0.96), rgba(246, 240, 232, 0.94));
    border: 1px solid rgba(188, 168, 119, 0.22);
    border-radius: 32px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
    padding: 48px 40px;
}

.error-page__badge {
    width: 84px;
    height: 84px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d8b977, #b07d53);
    color: #2d1d18;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 16px 34px rgba(176, 125, 83, 0.32);
}

.error-page__eyebrow {
    margin-bottom: 8px;
    color: #a16c47;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
}

.error-page__status {
    font-size: clamp(3.2rem, 8vw, 6rem);
    line-height: 1;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 14px;
}

.error-page__title {
    color: var(--primary-dark);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.08;
    margin-bottom: 16px;
    font-weight: 600;
}

.error-page__lead {
    max-width: 640px;
    margin: 0 auto 30px;
    color: rgba(48, 34, 29, 0.78);
    font-size: 1.05rem;
}

.error-page__actions {
    margin-bottom: 24px;
}

.error-page__meta {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(48, 34, 29, 0.06);
    border: 1px solid rgba(48, 34, 29, 0.08);
}

.error-page__meta-label {
    color: rgba(48, 34, 29, 0.58);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.error-page__meta code {
    color: var(--primary-dark);
    word-break: break-word;
}

.error-page__details {
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
    background: rgba(48, 34, 29, 0.04);
    border: 1px solid rgba(48, 34, 29, 0.08);
    border-radius: 20px;
    padding: 18px 20px;
}

.error-page__details summary {
    cursor: pointer;
    color: var(--primary-dark);
    font-weight: 600;
}

.error-page__details-body {
    margin-top: 16px;
    color: rgba(48, 34, 29, 0.82);
}

.error-page__details pre {
    margin: 14px 0 0;
    padding: 14px;
    border-radius: 14px;
    background: #201613;
    color: #f5e7d3;
    overflow-x: auto;
    font-size: 0.88rem;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Адаптивность */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .nav-links {
        display: none;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section h4 {
        font-size: 1.5rem;
    }

    .contacts-info {
        padding: 24px;
    }

    .reviews-shell {
        padding: 24px 18px;
        border-radius: 28px;
    }

    .reviews-widget {
        height: 720px;
        padding: 8px;
        border-radius: 22px;
    }

    .footer-inner {
        justify-content: center;
    }

    .success-page,
    .error-page {
        padding: 28px 0;
    }

    .success-page__card,
    .error-page__card {
        padding: 32px 22px;
        border-radius: 24px;
    }

    .success-page__actions,
    .error-page__actions {
        flex-direction: column;
    }

    .success-page__actions a,
    .error-page__actions a {
        width: 100%;
    }

    .success-page__secondary-link,
    .error-page__secondary-link {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero-section {
        height: 400px;
    }

    .contacts-map-frame {
        height: 250px;
        margin-top: 30px;
    }

    .form-container {
        padding: 20px;
    }

    .order-consent-box {
        padding: 16px;
    }

    .privacy-policy-modal .modal-header,
    .privacy-policy-modal .modal-body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 18px;
    }

    .reviews-widget {
        height: 640px;
    }
}
