/* ============================================================
   ГАВАНЬ — components.css
   Кнопки, формы, карточки, календарь, модалки, тосты
   ============================================================ */

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 550;
  letter-spacing: -.005em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--sh-xs);
}
.btn--primary:hover:not(:disabled) { background: var(--accent-hover); color: var(--on-accent); box-shadow: var(--sh-sm); }

.btn--ghost {
  background: var(--surface);
  border-color: var(--border-2);
  color: var(--text);
}
.btn--ghost:hover:not(:disabled) { background: var(--surface-2); border-color: var(--text-3); color: var(--text); }

.btn--subtle {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}
.btn--subtle:hover:not(:disabled) { background: var(--accent-line); color: var(--accent-hover); }

.btn--light {
  background: #fff;
  color: var(--dark);
  border-color: transparent;
}
.btn--light:hover { background: #EDEFE9; color: var(--dark); }

.btn--danger {
  background: transparent;
  border-color: var(--border-2);
  color: var(--danger);
}
.btn--danger:hover:not(:disabled) { background: var(--danger-soft); border-color: var(--danger); }

.btn--lg { min-height: 52px; padding: 14px 28px; font-size: 15.5px; }
.btn--sm { min-height: 36px; padding: 7px 14px; font-size: 13.5px; gap: 6px; }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  color: var(--text-2);
  background: transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.icon-btn--badge { position: relative; }

.badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  border: 2px solid var(--bg);
  box-sizing: content-box;
}

/* ---------- Чипы ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}
.chip--accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.chip--ok     { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.chip--warn   { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.chip--danger { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.chip--live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .3 } }

.chip-remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 12px;
  border-radius: var(--r-full);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 500;
}
.chip-remove:hover { background: var(--accent-line); }
.chip-remove .ic { width: 13px; height: 13px; stroke-width: 2.2; }

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.chips-row:empty { display: none; }

/* ---------- Поля ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label {
  font-size: 12.5px;
  font-weight: 550;
  color: var(--text-2);
  letter-spacing: .005em;
}

input[type="text"], input[type="tel"], input[type="email"],
input[type="search"], input[type="number"], input[type="date"], textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  font-size: 15px;
  color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  -webkit-appearance: none;
  appearance: none;
}
textarea { min-height: 84px; resize: vertical; line-height: 1.55; }

input::placeholder, textarea::placeholder { color: var(--text-3); }

input:hover:not(:disabled), textarea:hover, select:hover { border-color: var(--text-3); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--sh-focus);
}
input[aria-invalid="true"] { border-color: var(--danger); }
input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--danger-soft); }

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

.select-wrap { position: relative; }
.select-wrap select { padding-right: 38px; cursor: pointer; }
.select-wrap__arrow {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-3);
}
.select-wrap--sm select { min-height: 40px; font-size: 14px; padding: 8px 34px 8px 12px; }

.input-icon { position: relative; display: flex; flex: 1; min-width: 0; }
.input-icon .ic {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}
.input-icon input { padding-left: 37px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field--full { grid-column: 1 / -1; }

/* Чекбоксы и радио */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}
.checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox__box {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 1px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-xs);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: transparent;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.checkbox__box .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.checkbox:hover .checkbox__box { border-color: var(--accent); }
.checkbox input:checked + .checkbox__box {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.checkbox input:focus-visible + .checkbox__box { box-shadow: var(--sh-focus); }
.checkbox--lg { font-size: 14.5px; color: var(--text); }

.check-list { display: flex; flex-direction: column; gap: 11px; }
.check-list--two { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 14px; }
.check-list .checkbox__count { margin-left: auto; color: var(--text-3); font-size: 12px; }
.check-list .checkbox { align-items: center; width: 100%; }

/* Переключатель */
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text-2); }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  flex: none;
  width: 38px; height: 22px;
  border-radius: var(--r-full);
  background: var(--border-2);
  padding: 3px;
  transition: background var(--t-fast);
}
.switch__thumb {
  display: block;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--sh-xs);
  transition: transform var(--t);
}
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(16px); }
.switch input:focus-visible + .switch__track { box-shadow: var(--sh-focus); }

/* Ползунок */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  border: none;
  min-height: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: var(--r-full);
  background: var(--border-2);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: var(--sh-sm);
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: var(--r-full); background: var(--border-2); }
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: var(--sh-sm);
}
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: var(--sh-focus); }

/* Счётчик */
.counter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.counter__btn {
  width: 42px; height: 42px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.counter__btn:hover { background: var(--surface-2); border-color: var(--text-3); }
.counter input {
  width: 76px;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.counter__hint { font-size: 13px; color: var(--text-3); }

/* ---------- Карточка пространства ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(16px, 2vw, 22px);
}
.cards-grid.is-list { grid-template-columns: 1fr; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.card:hover { border-color: var(--border-2); box-shadow: var(--sh-md); transform: translateY(-2px); }

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-3);
  overflow: hidden;
}
.card__media svg { width: 100%; height: 100%; display: block; }
.card__tags {
  position: absolute;
  top: 10px; left: 10px; right: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.card__tags .chip {
  background: rgba(255,255,255,.94);
  border-color: transparent;
  color: var(--dark);
  backdrop-filter: blur(6px);
  box-shadow: var(--sh-xs);
  font-weight: 550;
}
.card__fav {
  position: absolute;
  bottom: 10px; right: 10px;
  width: 34px; height: 34px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.94);
  color: var(--text-2);
  display: grid;
  place-items: center;
  box-shadow: var(--sh-sm);
  transition: color var(--t-fast), transform var(--t-fast);
}
.card__fav:hover { transform: scale(1.08); color: var(--accent); }
.card__fav.is-on { color: #C9A227; }
.card__fav.is-on .ic { fill: #C9A227; }

.card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 17px 17px;
  flex: 1;
}
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card__title { font-size: 16.5px; font-weight: 600; letter-spacing: -.015em; }
.card__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.card__rating .ic { color: #C9A227; fill: #C9A227; stroke-width: 1.2; }
.card__rating small { color: var(--text-3); font-weight: 400; }

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 13px;
  color: var(--text-2);
}
.card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.card__meta .ic { color: var(--text-3); }

.card__amen { display: flex; flex-wrap: wrap; gap: 6px; }
.card__amen .pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  padding: 3px 7px;
}
.card__amen .pill .ic { width: 13px; height: 13px; color: var(--text-3); }

.card__foot {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.card__price { white-space: nowrap; }
.card__price strong {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.card__price span { font-size: 13px; color: var(--text-3); }
.card__price small { display: block; font-size: 12px; color: var(--text-3); margin-top: 1px; }
/* Если кнопки не помещаются рядом с ценой — уходят на свою строку целиком */
.card__actions { display: flex; gap: 8px; flex: 1 1 auto; justify-content: flex-end; }

/* Список */
.cards-grid.is-list .card { flex-direction: row; }
.cards-grid.is-list .card__media { aspect-ratio: auto; width: 250px; flex: none; }
.cards-grid.is-list .card__body { padding: 18px 20px; }

/* ---------- Пустое состояние ---------- */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: clamp(40px, 8vw, 72px) 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border-2);
  border-radius: var(--r-lg);
}
.empty .ic--xl { color: var(--text-3); margin-bottom: 4px; }
.empty p { color: var(--text-2); max-width: 40ch; font-size: 14.5px; }
.empty .btn { margin-top: 10px; }
.empty--inline {
  padding: 28px;
  font-size: 14px;
  color: var(--text-2);
}

/* ---------- Аккордеон ---------- */
.accordion { display: flex; flex-direction: column; }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-item:first-child { border-top: 1px solid var(--border); }
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 2px;
  text-align: left;
  font-size: 15.5px;
  font-weight: 550;
  color: var(--text);
  letter-spacing: -.01em;
}
.acc-head:hover { color: var(--accent); }
.acc-head .ic { color: var(--text-3); transition: transform var(--t); flex: none; }
.acc-item.is-open .acc-head .ic { transform: rotate(180deg); color: var(--accent); }
.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t);
}
.acc-item.is-open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; }
.acc-body p {
  padding-bottom: 20px;
  padding-right: 40px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ---------- Календарь ---------- */
.calendar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
}
.calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.calendar__head strong {
  font-size: 15.5px;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: -.01em;
}
.calendar__weekdays,
.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar__weekdays {
  margin-bottom: 6px;
}
.calendar__weekdays span {
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.cal-day {
  position: relative;
  aspect-ratio: 1;
  min-height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.cal-day:hover:not(:disabled) { background: var(--surface-2); border-color: var(--border-2); }
.cal-day:disabled { color: var(--text-3); opacity: .38; cursor: not-allowed; }
.cal-day.is-other { visibility: hidden; }
.cal-day.is-today { border-color: var(--accent-line); font-weight: 700; }
.cal-day.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
}
.cal-day.is-selected .cal-day__dot { background: var(--on-accent) !important; opacity: .85; }
.cal-day__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-3);
}
.cal-day__dot.high { background: var(--ok); }
.cal-day__dot.mid  { background: #C9A227; }
.cal-day__dot.low  { background: var(--danger); }

.calendar__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
}
.calendar__legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.lg--high { background: var(--ok); }
.lg--mid  { background: #C9A227; }
.lg--low  { background: var(--danger); }

/* ---------- Слоты ---------- */
.slots {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.slots__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.slots__head h3 { font-size: 15.5px; }
.slots__head p { font-size: 13px; color: var(--text-3); margin-top: 2px; }

.presets { display: flex; gap: 6px; flex-wrap: wrap; }
.presets button {
  padding: 6px 11px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-full);
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 550;
  color: var(--text-2);
  transition: all var(--t-fast);
}
.presets button:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.slots__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 7px;
}
.slot {
  padding: 10px 4px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 550;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  transition: all var(--t-fast);
  min-height: 44px;
}
.slot:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.slot:disabled { cursor: not-allowed; }
.slot.is-busy {
  background: var(--surface-3);
  border-color: transparent;
  color: var(--text-3);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.slot.is-past { opacity: .35; background: transparent; border-style: dashed; }
.slot.is-mine {
  background: var(--warn-soft);
  border-color: var(--warn);
  color: var(--warn);
  text-decoration: none;
}
.slot.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
}
.slot.is-edge-start { border-radius: var(--r-sm); box-shadow: inset 3px 0 0 rgba(255,255,255,.5); }

.slots__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
}
.slots__legend span { display: inline-flex; align-items: center; gap: 6px; }
.sl { width: 11px; height: 11px; border-radius: 3px; flex: none; border: 1px solid var(--border-2); }
.sl--free { background: var(--surface); }
.sl--sel  { background: var(--accent); border-color: var(--accent); }
.sl--busy { background: var(--surface-3); border-color: transparent; }
.sl--mine { background: var(--warn-soft); border-color: var(--warn); }

/* ---------- Модалка ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 32px);
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 14, .55);
  backdrop-filter: blur(3px);
  animation: fadeIn .18s ease;
}
.modal__dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(86vh, 900px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  animation: modalIn .22s cubic-bezier(.2,.8,.3,1);
  overflow: hidden;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.985) } to { opacity: 1; transform: none } }

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex: none;
}
.modal__head h2 { font-size: 19px; }
.modal__body { padding: 20px; overflow-y: auto; overscroll-behavior: contain; }
.modal__foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 15px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  flex: none;
  flex-wrap: wrap;
}

/* Контент модалки пространства */
.sp-modal__media {
  aspect-ratio: 16 / 7;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-3);
  margin-bottom: 18px;
}
.sp-modal__media svg { width: 100%; height: 100%; }
.sp-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
  background: var(--surface-2);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.sp-modal__grid div span { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 3px; }
.sp-modal__grid div strong { font-size: 15px; font-weight: 600; }
.sp-modal h3 { font-size: 15px; margin: 20px 0 10px; }
.sp-modal p { color: var(--text-2); font-size: 14.5px; line-height: 1.65; }
.sp-modal__amen {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 9px;
}
.sp-modal__amen li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-2);
}
.sp-modal__amen .ic { color: var(--accent); }
.sp-modal__features li {
  display: flex;
  gap: 9px;
  font-size: 14px;
  color: var(--text-2);
  padding: 6px 0;
}
.sp-modal__features .ic { color: var(--accent); margin-top: 3px; }

/* ---------- Тосты ---------- */
.toasts {
  position: fixed;
  right: clamp(12px, 3vw, 24px);
  bottom: clamp(12px, 3vw, 24px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(370px, calc(100vw - 24px));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  pointer-events: auto;
  animation: toastIn .26s cubic-bezier(.2,.8,.3,1);
}
.toast.is-out { animation: toastOut .2s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px) } to { opacity: 1; transform: none } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px) } }
.toast--ok    { border-left-color: var(--ok); }
.toast--error { border-left-color: var(--danger); }
.toast--warn  { border-left-color: var(--warn); }
.toast__icon { flex: none; margin-top: 1px; }
.toast--ok .toast__icon    { color: var(--ok); }
.toast--error .toast__icon { color: var(--danger); }
.toast--warn .toast__icon  { color: var(--warn); }
.toast--info .toast__icon  { color: var(--accent); }
.toast__text { flex: 1; min-width: 0; }
.toast__text strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.toast__text span { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.toast__close { color: var(--text-3); flex: none; }
.toast__close:hover { color: var(--text); }

/* ---------- Табы ---------- */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 15px;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.tabs button:hover { color: var(--text); }
.tabs button.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.tabs__count {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  font-size: 11.5px;
  font-weight: 650;
  color: var(--text-2);
}
.tabs button.is-active .tabs__count { background: var(--accent-soft); color: var(--accent); }

/* ---------- Скелетон ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer { 0% { background-position: 100% 0 } 100% { background-position: 0 0 } }
.sk-card { height: 330px; border-radius: var(--r-lg); }
