/* =========================================================
   kukharkovrent.ru — страницы каталога, карточки, бронирования
   Дополняет style.css. Без внешних зависимостей.
   ========================================================= */

/* ---------- Общие утилиты ---------- */
.text-mute { color: var(--text-mute); }

.nav a { position: relative; }
.nav a.is-active { color: var(--accent); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.flash-wrap {
  display: grid;
  gap: 8px;
  padding-top: 18px;
}

.flash {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  font-size: .9rem;
  line-height: 1.5;
}
.flash--error { border-left-color: var(--err); }
.flash--success { border-left-color: var(--ok); }

/* ---------- Хлебные крошки и заголовки страниц ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--text-mute);
  font-size: .82rem;
  line-height: 1.5;
}
.breadcrumbs a { color: var(--text-dim); transition: color .16s ease; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span[aria-hidden] { color: var(--line); }

.page-head {
  padding: clamp(30px, 4.5vw, 56px) 0 clamp(24px, 3vw, 38px);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(900px 340px at 80% -20%, rgba(255, 176, 32, .07), transparent 60%),
    var(--bg);
}
.page-head__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.page-head__row > div:first-child { max-width: 720px; }
.page-head h1 {
  margin: 6px 0 12px;
  font-size: clamp(1.65rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -.02em;
}
.page-head__lead {
  max-width: 62ch;
  color: var(--text-dim);
  font-size: .98rem;
  line-height: 1.65;
}
.page-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.page-head__row--compact { align-items: flex-start; }

/* ---------- Каталог ---------- */
.section--catalog { padding-top: clamp(30px, 4vw, 46px); }

.catalog-filters {
  margin-top: 26px;
  padding-bottom: 2px;
}
.chip__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: var(--text-mute);
  font-size: .72rem;
  font-weight: 600;
}
.chip[aria-current="page"] .chip__count {
  background: rgba(26, 18, 6, .18);
  color: var(--accent-ink);
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
}

.item-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.item-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow-sm);
}
.item-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-elev);
}
.item-card__img,
.item-card__media .item-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.item-card:hover .item-card__img { transform: scale(1.035); }

.item-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.item-card__category {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(15, 18, 22, .72);
  backdrop-filter: blur(6px);
  color: var(--text-dim);
  font-size: .7rem;
  font-weight: 500;
}
.item-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 15px;
}
.item-card__title {
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.item-card__desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--text-mute);
  font-size: .82rem;
  line-height: 1.5;
}
.item-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.item-card__price { color: var(--text-mute); font-size: .78rem; white-space: nowrap; }
.item-card__price small { color: var(--text-mute); }
.item-card__price strong { color: var(--text); font-size: 1.05rem; }
.item-card__price span { color: var(--text-mute); }
.item-card__arrow {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
}

.item-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 176, 32, .08), transparent 60%),
    var(--bg-elev);
  color: #4d5a67;
}

.empty-state {
  padding: clamp(38px, 6vw, 64px) 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.empty-state h2 { margin-bottom: 10px; font-size: 1.3rem; }
.empty-state p { max-width: 50ch; margin: 0 auto 20px; color: var(--text-dim); font-size: .92rem; }

.catalog-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(32px, 4vw, 48px);
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-card), var(--bg-soft));
}
.catalog-help h2 { margin-bottom: 6px; font-size: 1.2rem; }
.catalog-help p { max-width: 58ch; color: var(--text-dim); font-size: .9rem; line-height: 1.6; }
.catalog-help__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Карточка товара ---------- */
.page-item { padding: clamp(26px, 4vw, 48px) 0 clamp(48px, 6vw, 76px); }

.item-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
}

.gallery { min-width: 0; }
.gallery__main {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 640px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}
.gallery__main img,
.gallery__main .item-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery__badge { top: 14px; left: 14px; }

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 9px;
  margin-top: 10px;
}
.gallery__thumb {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  cursor: pointer;
  transition: border-color .16s ease, opacity .16s ease;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { border-color: var(--text-mute); }
.gallery__thumb.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

.item-info { min-width: 0; }
.item-info__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.item-info__category {
  color: var(--accent);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: .7rem;
  font-weight: 600;
}
.pill--accent {
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--accent);
}

.item-info h1 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  line-height: 1.16;
  letter-spacing: -.02em;
}
.item-info__short {
  margin-bottom: 14px;
  color: var(--text-dim);
  font-size: .93rem;
  line-height: 1.6;
}
.item-info__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: .82rem;
}
.item-info__rating a { color: var(--text-mute); text-decoration: underline; text-underline-offset: 2px; }
.item-info__rating a:hover { color: var(--accent); }

.rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--accent);
  font-size: .86rem;
  letter-spacing: .04em;
}
.rating b { margin-left: 5px; color: var(--text); font-size: .82rem; letter-spacing: 0; }
.rating__count { margin-left: 2px; color: var(--text-mute); font-size: .76rem; letter-spacing: 0; }

.item-info__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  margin-top: 16px;
}
.item-info__price-label {
  margin-right: 4px;
  color: var(--text-mute);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.item-info__price strong {
  color: var(--accent);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  letter-spacing: -.02em;
}
.item-info__price > span:last-child { color: var(--text-mute); font-size: .84rem; }
.item-info__terms { margin-top: 4px; color: var(--text-mute); font-size: .8rem; }

.item-info__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.item-info__actions .btn { flex: 1 1 210px; }

.item-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--line-soft);
}
.item-facts li {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  background: var(--bg-soft);
}
.item-facts span { color: var(--text-mute); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.item-facts strong { font-size: .82rem; font-weight: 600; }

/* Форма расчёта */
.booking-box {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.booking-box h2 { margin-bottom: 3px; font-size: 1.06rem; }
.booking-box__sub { margin-bottom: 14px; color: var(--text-mute); font-size: .8rem; }
.booking-box .field + .field,
.booking-box .form-row + .field,
.booking-box .field + .form-row { margin-top: 2px; }
.booking-box__note { margin-top: 10px; color: var(--text-mute); font-size: .74rem; line-height: 1.5; }
.booking-box .btn { margin-top: 4px; }

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.form-row .field { margin-bottom: 10px; }
.field-hint { margin: -4px 0 14px; color: var(--text-mute); font-size: .76rem; line-height: 1.5; }

.price-summary { display: grid; gap: 7px; margin: 14px 0 10px; }
.price-summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 7px;
  border-bottom: 1px dashed var(--line-soft);
  color: var(--text-mute);
  font-size: .82rem;
}
.price-summary__row:last-child { padding-bottom: 0; border-bottom: 0; }
.price-summary__row strong { color: var(--text); font-size: .88rem; font-weight: 600; white-space: nowrap; }
.price-summary__row--total {
  margin-top: 2px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
.price-summary__row--total span { color: var(--text); font-weight: 600; }
.price-summary__row--total strong { color: var(--accent); font-size: 1.12rem; }

.busy-ranges {
  margin: 4px 0 12px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text-mute);
  font-size: .76rem;
  line-height: 1.55;
}
.busy-ranges.is-busy { background: rgba(255, 107, 94, .09); color: #ffb3ab; }

/* ---------- Описание и боковая колонка ---------- */
.item-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
  margin-top: clamp(34px, 4.5vw, 56px);
  padding-top: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--line-soft);
}
.item-description h2 { margin-bottom: 18px; font-size: clamp(1.25rem, 2.3vw, 1.6rem); }

.rich-text { max-width: 72ch; color: var(--text-dim); font-size: .93rem; line-height: 1.7; }
.rich-text p { margin-bottom: 1em; }
.rich-text h3 {
  margin: 1.5em 0 .55em;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.35;
}
.rich-text h3:first-child { margin-top: 0; }
.rich-text ul { margin: 0 0 1.1em; padding-left: 1.25em; }
.rich-text li { margin-bottom: .32em; }
.rich-text li::marker { color: var(--accent); }
.rich-text > :last-child { margin-bottom: 0; }

.item-aside { display: grid; gap: 16px; }
.price-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.price-panel h2 { margin-bottom: 12px; font-size: 1.04rem; }
.price-panel__note { margin-top: 10px; color: var(--text-mute); font-size: .73rem; line-height: 1.5; }

.tier-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.tier-table th {
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
  color: var(--text-mute);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.tier-table th:nth-child(2),
.tier-table th:nth-child(3) { text-align: right; }
.tier-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-dim);
  white-space: nowrap;
}
.tier-table td:nth-child(2),
.tier-table td:nth-child(3) { text-align: right; }
.tier-table td:nth-child(2) { color: var(--text); }
.tier-table td:nth-child(3) { color: var(--text-mute); }
.tier-table tr:last-child td { border-bottom: 0; }
.tier-table tr:last-child td:nth-child(2) { color: var(--accent); font-weight: 600; }

.variant-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.variant-tab {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.variant-tab:hover { border-color: var(--text-mute); color: var(--text); }
.variant-tab.is-active {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
}

.item-included { padding: 18px; }
.item-included h3 { margin-bottom: 10px; font-size: .98rem; }

.check-list { display: grid; gap: 8px; }
.check-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: .84rem;
  line-height: 1.5;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
}
.check-list--compact { margin-top: 10px; gap: 6px; }
.check-list--compact li { font-size: .8rem; }

.check.has-error { color: var(--err); }
.check.has-error input { outline: 2px solid var(--err); outline-offset: 2px; }
.check .field__error { flex-basis: 100%; }

.item-aside__cta {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(255, 176, 32, .09), var(--bg-card) 60%);
}
.item-aside__cta h3 { margin-bottom: 6px; font-size: .98rem; }
.item-aside__cta p { margin-bottom: 12px; color: var(--text-dim); font-size: .83rem; line-height: 1.55; }
.item-aside__cta .btn + .btn { margin-top: 8px; }

.related { margin-top: clamp(40px, 5vw, 64px); }
.related .section__head { margin-bottom: 22px; }

/* ---------- Страница бронирования ---------- */
.page-booking { padding: clamp(26px, 4vw, 48px) 0 clamp(48px, 6vw, 76px); }

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(22px, 3vw, 36px);
  align-items: start;
}
.booking-form-card {
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.booking-divider {
  height: 1px;
  margin: 8px 0 16px;
  background: var(--line-soft);
}
.booking-aside {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: grid;
  gap: 14px;
}

.booking-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.booking-item__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-elev); }
.booking-item__img,
.booking-item__media .item-placeholder { width: 100%; height: 100%; object-fit: cover; }
.booking-item__body { display: grid; gap: 6px; padding: 16px; }
.booking-item__cat {
  color: var(--accent);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.booking-item__body h2 { font-size: 1.04rem; line-height: 1.3; }
.booking-item__body p { color: var(--text-mute); font-size: .81rem; line-height: 1.5; }
.booking-item__price { margin-top: 2px; color: var(--text-mute); font-size: .8rem; }
.booking-item__price strong { color: var(--accent); font-size: 1.05rem; }
.booking-item--empty { padding: 20px; }
.booking-item--empty h2 { margin-bottom: 8px; font-size: 1.02rem; }
.booking-item--empty p { margin-bottom: 14px; color: var(--text-dim); font-size: .85rem; line-height: 1.6; }

.price-summary--card {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.price-summary--card h3 { margin-bottom: 10px; font-size: .96rem; }
.busy-ranges--card { margin: 0; padding: 12px 14px; border: 1px solid var(--line); background: var(--bg-card); }

.booking-aside__help {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.booking-aside__help h3 { margin-bottom: 5px; font-size: .94rem; }
.booking-aside__help p { margin-bottom: 12px; color: var(--text-mute); font-size: .8rem; line-height: 1.5; }
.booking-aside__help .btn + .btn { margin-top: 8px; }

/* ---------- Успешная заявка ---------- */
.page-success { padding: clamp(40px, 6vw, 78px) 0; }
.success-card {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
  box-shadow: var(--shadow);
}
.success-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(63, 191, 127, .12);
  color: var(--ok);
  font-size: 1.5rem;
  font-weight: 700;
}
.success-card h1 { margin: 6px 0 12px; font-size: clamp(1.5rem, 3vw, 2rem); }
.success-card__lead { margin-bottom: 22px; color: var(--text-dim); font-size: .93rem; line-height: 1.65; }

.success-summary {
  display: grid;
  gap: 9px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.success-summary__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.success-summary__media {
  flex: 0 0 64px;
  overflow: hidden;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
}
.success-summary__img { width: 100%; height: 100%; object-fit: cover; }
.success-summary__item strong { display: block; font-size: .9rem; line-height: 1.35; }
.success-summary__item span { color: var(--text-mute); font-size: .76rem; }
.success-summary__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  color: var(--text-mute);
  font-size: .84rem;
}
.success-summary__row strong { color: var(--text); font-weight: 600; text-align: right; }

.success-card__note {
  margin: 18px 0;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--text-dim);
  font-size: .82rem;
  line-height: 1.6;
}
.success-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Контакты ---------- */
.page-contacts { padding: clamp(26px, 4vw, 48px) 0 clamp(48px, 6vw, 76px); }
.contacts--page { margin-top: 8px; }
.contact-list--cards { gap: 10px; }
.contact-list--cards li {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}
.contact-list--cards .contact-list__label {
  display: block;
  margin-bottom: 4px;
}
.contact-list--cards li > a,
.contact-list--cards li > span:not(.contact-list__label) { display: block; }
.contact-list__hint { display: block; margin-top: 4px; color: var(--text-mute); font-size: .78rem; line-height: 1.45; }
.contacts__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.contacts-map {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.contacts-map h2 { margin-bottom: 5px; font-size: 1.1rem; }
.contacts-map p { max-width: 62ch; color: var(--text-dim); font-size: .87rem; line-height: 1.6; }

/* ---------- Ошибки ---------- */
.page-error { padding: clamp(48px, 8vw, 96px) 0; }
.error-card {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  text-align: center;
}
.error-card__code {
  display: block;
  color: var(--accent);
  font-size: clamp(3.2rem, 9vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
}
.error-card h1 { margin: 12px 0 10px; font-size: clamp(1.3rem, 2.8vw, 1.8rem); }
.error-card p { max-width: 48ch; margin: 0 auto 20px; color: var(--text-dim); font-size: .92rem; line-height: 1.6; }
.error-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .item-details { grid-template-columns: minmax(0, 1fr) 320px; }
  .item-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header__phone > span:last-child { display: none; }
}

@media (max-width: 960px) {
  .item-layout { grid-template-columns: minmax(0, 1fr); }
  .gallery { max-width: 600px; }
  .gallery__main { aspect-ratio: 4 / 4.6; }
  .item-details { grid-template-columns: minmax(0, 1fr); }
  .item-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .item-aside .price-panel { grid-column: 1 / -1; }
  .booking-layout { grid-template-columns: minmax(0, 1fr); }
  .booking-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .booking-aside > .booking-item { grid-row: span 2; }
}

@media (max-width: 700px) {
  .page-head__actions { width: 100%; }
  .page-head__actions .btn { flex: 1 1 auto; }
  .item-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .item-card__body { padding: 12px 12px 11px; gap: 6px; }
  .item-card__title { font-size: .9rem; }
  .item-card__desc { font-size: .76rem; -webkit-line-clamp: 2; }
  .item-card__meta { padding-top: 8px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .item-card__price strong { font-size: .95rem; }
  .item-card__arrow { display: none; }
  .item-card__category { display: none; }
  .item-card__badge { top: 8px; left: 8px; font-size: .64rem; padding: 4px 8px; }

  .gallery__main { max-height: none; }
  .item-info__actions .btn { flex: 1 1 100%; }
  .item-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item-aside { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .booking-aside { grid-template-columns: minmax(0, 1fr); }
  .booking-aside > .booking-item { grid-row: auto; }
  .booking-item__media { aspect-ratio: 16 / 9; }
  .success-card__actions .btn { flex: 1 1 100%; }
  .contacts-map { flex-direction: column; align-items: flex-start; }
  .contacts-map .btn { width: 100%; }
}

@media (max-width: 480px) {
  .catalog-help { flex-direction: column; align-items: stretch; }
  .catalog-help__actions .btn { flex: 1 1 100%; }
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head__actions .btn { flex: 1 1 100%; }
  .item-card__desc { display: none; }
}

@media print {
  .item-info__actions,
  .booking-box,
  .item-aside__cta,
  .catalog-help,
  .success-card__actions { display: none !important; }
}
