:root {
  --bg: #f5f2ea;
  --paper: #fffdf8;
  --ink: #212e1f;
  --muted: #6d7a63;
  --green: #b9d7a8;
  --green-soft: #e9f3e0;
  --green-strong: #385f34;
  --peach: #f7bf97;
  --red: #ef5139;
  --red-dark: #d64730;
  --rose: #bf3044;
  --line: rgba(56, 95, 52, .14);
  --shadow: 0 14px 44px rgba(38, 50, 35, .09);
  --shadow-soft: 0 4px 16px rgba(38, 50, 35, .07);
  --focus-ring: 0 0 0 3px rgba(239, 81, 57, .28);
  --ease: cubic-bezier(.4, 0, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(185, 215, 168, .5), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(247, 191, 151, .45), transparent 38rem),
    var(--bg);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(185, 215, 168, .6); }

/* Скроллбары */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(56, 95, 52, .22); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(56, 95, 52, .38); }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 336px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
}

/* ===== Сайдбар ===== */
.sidebar {
  position: sticky;
  top: 22px;
  height: calc(100vh - 44px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 253, 248, .88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.brand-card { display: flex; align-items: center; gap: 14px; }
.brand-logo { width: 68px; height: 68px; object-fit: contain; }
.eyebrow {
  margin: 0 0 4px;
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11px;
}
h1, h2, h3, h4, p { margin: 0; }
h1 {
  font-size: 25px;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--green-strong);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 16px;
  background: var(--green-soft);
  border: 1px solid var(--line);
}
.user-meta { display: grid; gap: 1px; min-width: 0; }
.user-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.user-meta strong { color: var(--green-strong); font-weight: 700; overflow-wrap: anywhere; font-size: 14px; }
.user-logout { flex-shrink: 0; padding: 9px 14px; }

/* Статус данных + кнопка обновления */
.sync-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.sync-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c9c4b8;
}
.sync-dot.live {
  background: #46a355;
  box-shadow: 0 0 0 0 rgba(70, 163, 85, .5);
  animation: pulse 2.4s var(--ease) infinite;
}
.sync-dot.warn { background: #e6a23c; }
.sync-dot.error { background: var(--red); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(70, 163, 85, .45); }
  70% { box-shadow: 0 0 0 7px rgba(70, 163, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(70, 163, 85, 0); }
}
.sync-meta { display: grid; gap: 1px; min-width: 0; flex: 1; }
.sync-meta strong { font-size: 13px; font-weight: 700; color: var(--green-strong); line-height: 1.2; }
.sync-meta span { font-size: 12px; color: var(--muted); font-weight: 600; }
.icon-btn {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-strong);
  transition: background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.icon-btn:hover { background: var(--green); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.icon-btn:active { transform: translateY(0) scale(.94); }
.icon-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.icon-btn.spinning svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.search-box { display: grid; gap: 7px; font-weight: 700; font-size: 13px; color: var(--green-strong); }
.search-box input {
  width: 100%;
  border: 1.5px solid var(--line);
  outline: none;
  border-radius: 14px;
  padding: 13px 15px;
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.search-box input::placeholder { color: #a8b09e; font-weight: 500; }
.search-box input:hover { border-color: rgba(56, 95, 52, .3); }
.search-box input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239, 81, 57, .12); }

/* Вкладки (страница входа) */
.category-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.category-tab {
  border: 0;
  border-radius: 11px;
  padding: 11px 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.category-tab:hover { color: var(--green-strong); background: var(--green-soft); }
.category-tab.active { background: var(--green); color: var(--green-strong); }

/* Фильтры */
.catalog-filter-card {
  display: grid;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}
.catalog-filter-card:not(.open) .filter-field,
.catalog-filter-card:not(.open) .feature-filters { display: none; }
.filter-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  padding: 0;
  background: none;
  color: var(--green-strong);
  font-size: 15px;
  font-weight: 800;
}
.filter-toggle svg { transition: transform .2s var(--ease); }
.catalog-filter-card.open .filter-toggle svg { transform: rotate(180deg); }
.filter-count {
  display: none;
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.filter-count:not(:empty) { display: inline-block; }
.filter-card-head #clearFilters {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.filter-card-head #clearFilters:hover { background: rgba(239, 81, 57, .12); color: var(--red); }
.filter-field {
  display: grid;
  gap: 6px;
  color: var(--green-strong);
  font-size: 12px;
  font-weight: 700;
}
.filter-field select,
.filter-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 34px 10px 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23385f34' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  outline: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.filter-field select:hover { border-color: rgba(56, 95, 52, .3); }
.filter-field select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239, 81, 57, .12); }
.feature-filters { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 2px; }
.feature-filter {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: var(--green-strong);
  font-size: 12px;
  font-weight: 700;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .12s var(--ease);
}
.feature-filter:hover { border-color: var(--red); color: var(--red); }
.feature-filter:active { transform: scale(.95); }
.feature-filter.active { background: var(--red); border-color: var(--red); color: #fff; }

.list-meta { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.list-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sort-select {
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 7px 28px 7px 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23385f34' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 9px center;
  color: var(--green-strong);
  font-size: 12px;
  font-weight: 700;
  outline: none;
  transition: border-color .18s var(--ease);
}
.sort-select:hover { border-color: rgba(56, 95, 52, .35); }
.sort-select:focus { border-color: var(--red); }

/* Список объектов */
.hotel-list { overflow: auto; display: grid; gap: 8px; padding-right: 4px; overscroll-behavior: contain; }
.hotel-item {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 12px 13px;
  text-align: left;
  background: #fff;
  transition: border-color .16s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
.hotel-item:hover { border-color: rgba(56, 95, 52, .4); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.hotel-item:active { transform: translateY(0) scale(.99); }
.hotel-item:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.hotel-item.active { background: var(--green-soft); border-color: var(--green-strong); }
.hotel-item b { display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.hotel-item span { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.3; font-weight: 500; }
.hotel-item .mini { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.mini-chip {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(239, 81, 57, .1);
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
}

/* ===== Основная область ===== */
.main { min-width: 0; display: grid; gap: 18px; align-content: start; }
.hero {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--green-strong);
  box-shadow: var(--shadow);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .36;
  filter: saturate(1.08);
  transition: opacity .4s var(--ease);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(29, 41, 28, .93), rgba(29, 41, 28, .6), rgba(29, 41, 28, .18));
}
.hero-content { position: relative; z-index: 1; max-width: 760px; padding: 32px 34px; color: #fff; }
.hero-topline { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-topline span {
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .01em;
}
.hero h2 { font-size: 30px; line-height: 1.1; letter-spacing: -.015em; color: #fff; font-weight: 800; }
.hero p { margin-top: 12px; font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, .92); }
.hero .hotel-subtitle {
  margin-top: 8px;
  color: #dcedd4;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
  text-transform: none;
}
.hero-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 13px;
  padding: 12px 18px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(239, 81, 57, .28);
  transition: background .18s var(--ease), transform .16s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(239, 81, 57, .34); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: 0 3px 10px rgba(239, 81, 57, .25); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn.ghost {
  background: rgba(255, 255, 255, .94);
  color: var(--green-strong);
  box-shadow: 0 5px 16px rgba(29, 41, 28, .14);
}
.btn.ghost:hover { background: #fff; box-shadow: 0 8px 22px rgba(29, 41, 28, .18); }

/* Поиск по карточке */
.field-search-card {
  display: grid;
  grid-template-columns: minmax(280px, 520px) 1fr;
  align-items: end;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 253, 248, .92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.field-search input { background: #fff; }

/* Шахматка отеля */
.chessmate-card { border-left: 4px solid var(--peach); }
.chessmate-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chessmate-open { padding: 11px 15px; }
.chessmate-field {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 8px 8px 12px;
  background: #fff;
}
.chessmate-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.chessmate-field code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  color: var(--ink);
  user-select: all;
}
.copy-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green-strong);
  transition: background .16s var(--ease), transform .12s var(--ease);
}
.copy-btn:hover { background: var(--green); }
.copy-btn:active { transform: scale(.9); }
.chessmate-note { width: 100%; margin: 0; color: var(--muted); font-size: 12.5px; font-weight: 600; }

/* Карточки-опции */
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; align-items: start; }
.option-chip {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 15px;
  background: #fff;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
.option-chip:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.option-chip strong { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 800; color: var(--green-strong); text-transform: uppercase; letter-spacing: .03em; }
.option-chip span {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 500;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.option-chip.full-info { background: linear-gradient(135deg, rgba(233, 243, 224, .8), #fff); }
.option-chip.full-info.wide { grid-column: span 2; }
.option-chip.yes { background: linear-gradient(135deg, #e9f3e0, #fff); }
.option-chip.no { opacity: .6; background: #f3f0ea; }
.option-chip.partial { background: linear-gradient(135deg, #fff2df, #fff); }
.option-chip.unknown { background: #fff; }

/* Панели */
.content-grid { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
.panel-card {
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 253, 248, .94);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
h3 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; color: var(--green-strong); }
.section-head span { color: var(--muted); font-weight: 600; font-size: 13px; }

/* Цены */
.prices-table { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; }
.price-room { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 15px; }
.price-room-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 12px; }
.price-room b { font-size: 15px; font-weight: 700; color: var(--ink); }
.price-room small { color: var(--muted); font-weight: 500; }
.price-room a { color: var(--red); font-weight: 700; text-decoration: none; font-size: 13px; }
.price-room a:hover { text-decoration: underline; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 7px; }
.price-cell { border-radius: 11px; padding: 9px 10px; background: #f7f3e9; transition: background .16s var(--ease); }
.price-cell:hover { background: var(--green-soft); }
.price-cell span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; margin-bottom: 3px; }
.price-cell strong { font-size: 15px; font-weight: 800; color: var(--green-strong); }
.site-price-room { grid-column: 1 / -1; }
.site-price-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-price-list li {
  border-radius: 11px;
  padding: 10px 12px;
  background: #f7f3e9;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
}
.site-price-notes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.site-price-notes span {
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(239, 81, 57, .1);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

/* Финансы */
.finance-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.finance-total {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 14px;
  background: #fff;
}
.finance-total span {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.finance-total strong { color: var(--green-strong); font-size: 21px; font-weight: 800; }

/* Формы */
.inline-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 11px;
  margin-bottom: 16px;
}
.inline-form label { display: grid; gap: 6px; color: var(--green-strong); font-size: 12.5px; font-weight: 700; }
.inline-form input,
.inline-form select,
.inline-form textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  outline: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.inline-form input:hover, .inline-form select:hover, .inline-form textarea:hover { border-color: rgba(56, 95, 52, .3); }
.inline-form input:focus, .inline-form select:focus, .inline-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(239, 81, 57, .12);
}
.inline-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23385f34' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.inline-form textarea { resize: vertical; }
.inline-form .wide-field { grid-column: span 2; }

/* История */
.history-list { display: grid; gap: 8px; }
.history-item {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px 14px;
  background: #fff;
}
.history-item strong { color: var(--green-strong); font-weight: 700; }
.history-item span { color: var(--muted); font-size: 12px; font-weight: 600; }
.history-item p { font-size: 13px; color: var(--ink); }

.empty {
  padding: 18px;
  border: 1px dashed rgba(56, 95, 52, .25);
  border-radius: 15px;
  background: rgba(255, 255, 255, .7);
  color: var(--muted);
  font-weight: 600;
}

/* Тост */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  transform: translateY(120px);
  opacity: 0;
  transition: transform .28s var(--ease), opacity .28s var(--ease);
  background: var(--ink);
  color: #fff;
  padding: 13px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 12px 32px rgba(29, 41, 28, .35);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* Кнопка «К списку» на мобильных */
.fab {
  display: none;
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 40;
  border: 0;
  border-radius: 999px;
  padding: 12px 17px;
  background: var(--green-strong);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 10px 28px rgba(29, 41, 28, .35);
  transition: transform .16s var(--ease);
}
.fab:active { transform: scale(.95); }

/* Модальное окно «Карточка для клиента» */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: start center;
  padding: 28px 16px;
  overflow: auto;
  background: rgba(29, 41, 28, .5);
  backdrop-filter: blur(6px);
}
.modal.hidden { display: none; }
.modal-box {
  width: min(100%, 720px);
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.client-card { display: grid; gap: 18px; color: var(--ink); }
.client-card h2 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--green-strong);
}
.cc-head { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--green); }
.cc-logo { width: 64px; height: 64px; object-fit: contain; }
.cc-eyebrow { margin: 0 0 3px; color: var(--red); font-weight: 800; text-transform: uppercase; letter-spacing: .09em; font-size: 11px; }
.cc-head h1 { font-size: 23px; color: var(--green-strong); }
.cc-place { margin-top: 3px; color: var(--muted); font-weight: 600; }
.cc-rows { display: grid; gap: 6px; }
.cc-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}
.cc-row span { color: var(--muted); font-weight: 600; }
.cc-row b { font-weight: 600; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.cc-chip {
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 12.5px;
  font-weight: 700;
}
.cc-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; }
.cc-room { margin-bottom: 12px; }
.cc-room b { font-size: 14px; }
.cc-room small { color: var(--muted); }
.cc-price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin-top: 8px; }
.cc-price { border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; background: #fff; }
.cc-price span { display: block; color: var(--muted); font-size: 10.5px; font-weight: 700; }
.cc-price b { font-size: 13.5px; color: var(--green-strong); }
.cc-note { color: var(--muted); font-weight: 600; }
.cc-foot { padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; font-weight: 600; }

@media print {
  body.card-open > :not(#clientCardModal) { display: none !important; }
  body.card-open { background: #fff; }
  body.card-open #clientCardModal { position: static; padding: 0; background: none; backdrop-filter: none; }
  body.card-open .modal-box { width: 100%; box-shadow: none; border-radius: 0; padding: 0; }
  body.card-open .modal-actions { display: none; }
}

/* ===== Страница входа ===== */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-shell { width: min(100%, 520px); }
.login-card {
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 253, 248, .93);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.login-brand { display: flex; align-items: center; gap: 14px; }
.login-lead { color: var(--muted); line-height: 1.55; font-weight: 500; }
.login-form { display: grid; gap: 14px; }
.login-step.hidden,
.login-error.hidden,
.hidden { display: none; }
.login-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(239, 81, 57, .11);
  color: var(--rose);
  font-weight: 600;
}
.login-submit { width: 100%; justify-content: center; padding: 14px 18px; }

/* ===== Адаптивность ===== */
@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .hotel-list { max-height: 360px; }
  .content-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .option-chip.full-info.wide { grid-column: span 3; }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  .app-shell { padding: 10px; gap: 12px; }
  .sidebar { padding: 14px; border-radius: 20px; gap: 12px; }
  .brand-logo { width: 50px; height: 50px; }
  h1 { font-size: 20px; }
  .hero { min-height: 220px; border-radius: 22px; }
  .hero-content { padding: 20px; }
  .hero h2 { font-size: 22px; }
  .hero .hotel-subtitle { font-size: 15px; }
  .hero-actions .btn { padding: 11px 14px; font-size: 13px; }
  .field-search-card { grid-template-columns: 1fr; padding: 13px; }
  .quick-grid { grid-template-columns: 1fr; }
  .option-chip.full-info.wide { grid-column: auto; }
  .inline-form { grid-template-columns: 1fr; }
  .inline-form .wide-field { grid-column: auto; }
  .panel-card { padding: 16px; border-radius: 20px; }
  .prices-table { grid-template-columns: 1fr; }
  .hotel-list { max-height: 320px; }
  .fab { display: inline-flex; }
  .modal { padding: 10px; }
  .modal-box { padding: 14px; }
  .cc-row { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
