/* Демо мебель — визуальный язык в духе Homm.ru */
:root {
  --hoff-red: #da0916;
  --hoff-red-dark: #be0612;
  --hoff-ink: #1a1a1a;
  --hoff-muted: #6b6b6b;
  --hoff-line: #e6e6e6;
  --hoff-bg: #ffffff;
  --hoff-soft: #f5f5f5;
  --hoff-soft-2: #fafafa;
  --hoff-ok: #2e7d32;
  --hoff-danger: #c62828;
  --hoff-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  --hoff-radius: 4px;
  --hoff-font: "Manrope", "Onest", sans-serif;
  --hoff-display: "Onest", "Manrope", sans-serif;
  --hoff-max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.hoff-body {
  margin: 0;
  font-family: var(--hoff-font);
  color: var(--hoff-ink);
  background: var(--hoff-bg);
  min-height: 100vh;
  line-height: 1.45;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.hoff-wrap {
  width: min(var(--hoff-max), calc(100% - 2rem));
  margin: 0 auto;
}

/* Topbar */
.hoff-demos { background: #111; font-size: 0.72rem; }
.hoff-demos__inner { display: flex; flex-wrap: wrap; gap: 0.55rem; padding: 0.35rem 0; }
.hoff-demos a { color: #9ca3af; }
.hoff-demos a.is-active, .hoff-demos a:hover { color: #fff; }

.hoff-topbar {
  background: var(--hoff-soft);
  border-bottom: 1px solid var(--hoff-line);
  font-size: 0.82rem;
  color: var(--hoff-muted);
}
.hoff-topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  flex-wrap: wrap;
}
.hoff-topbar a { color: var(--hoff-muted); }
.hoff-topbar a:hover { color: var(--hoff-red); }
.hoff-topbar__left,
.hoff-topbar__right { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hoff-topbar__city { color: var(--hoff-ink); font-weight: 600; }
.hoff-topbar__catalogs { display: inline-flex; gap: 0.55rem; align-items: center; }
.hoff-topbar__catalogs a {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--hoff-line);
  color: var(--hoff-muted);
  font-weight: 600;
}
.hoff-topbar__catalogs a.is-active,
.hoff-topbar__catalogs a:hover {
  border-color: var(--hoff-red);
  color: var(--hoff-red);
  background: #fff5f5;
}

/* Header */
.hoff-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hoff-line);
}
.hoff-header__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 0.9rem 0;
}
.hoff-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 90px;
}
.hoff-logo__mark {
  font-family: var(--hoff-display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.04em;
  color: var(--hoff-red);
}
.hoff-logo__tag {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--hoff-ink);
  font-weight: 600;
}
.hoff-logo--footer .hoff-logo__mark { font-size: 1.7rem; }

.hoff-search {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--hoff-ink);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  min-height: 48px;
}
.hoff-search__input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 1.1rem;
  min-width: 0;
  background: transparent;
}
.hoff-search__btn {
  border: 0;
  background: var(--hoff-red);
  color: #fff;
  width: 52px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.hoff-search__btn:hover { background: var(--hoff-red-dark); }

.hoff-header__actions { display: flex; gap: 0.75rem; align-items: center; }
.hoff-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}
.hoff-action:hover { background: var(--hoff-soft); }
.hoff-action__badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--hoff-red);
  color: #fff;
  font-size: 0.7rem;
  display: grid;
  place-items: center;
}

.hoff-nav { border-top: 1px solid var(--hoff-line); }
.hoff-nav__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  align-items: center;
  padding: 0.55rem 0;
}
.hoff-nav__catalog {
  background: var(--hoff-red);
  color: #fff !important;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: var(--hoff-radius);
  margin-right: 0.4rem;
}
.hoff-nav__catalog:hover { background: var(--hoff-red-dark); }
.hoff-nav__link {
  padding: 0.45rem 0.7rem;
  border-radius: var(--hoff-radius);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--hoff-ink);
}
.hoff-nav__link:hover { background: var(--hoff-soft); color: var(--hoff-red); }
.hoff-nav__link--promo { color: var(--hoff-red); }

/* Hero */
.hoff-hero { position: relative; }
.hoff-hero__slide {
  min-height: min(72vh, 620px);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.hoff-hero__content {
  width: 100%;
  padding: 3.5rem 0 3rem;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.hoff-hero__eyebrow {
  font-family: var(--hoff-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  margin: 0 0 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hoff-hero__title {
  font-family: var(--hoff-display);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  max-width: 14ch;
  letter-spacing: -0.03em;
}
.hoff-hero__text {
  margin: 0 0 1.25rem;
  max-width: 36ch;
  font-size: 1.05rem;
}
.hoff-hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 48%, rgba(0,0,0,0.05) 100%);
  pointer-events: none;
}
.hoff-hero__slide > * { position: relative; z-index: 1; }

/* Sections */
.hoff-section { padding: 2.5rem 0; }
.hoff-section--soft { background: var(--hoff-soft-2); }
.hoff-section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.hoff-section__head h2 {
  font-family: var(--hoff-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin: 0;
  letter-spacing: -0.02em;
}
.hoff-link { color: var(--hoff-red); font-weight: 700; }
.hoff-link:hover { text-decoration: underline; }
.hoff-muted { color: var(--hoff-muted); }

.hoff-rooms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.hoff-room {
  position: relative;
  min-height: 180px;
  border-radius: var(--hoff-radius);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: #fff;
  box-shadow: var(--hoff-shadow);
  transition: transform 0.25s ease;
}
.hoff-room::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.65));
}
.hoff-room__title {
  position: relative;
  z-index: 1;
  font-family: var(--hoff-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.hoff-room:hover { transform: translateY(-3px); }

.hoff-usp {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.hoff-usp__item {
  background: #fff;
  border: 1px solid var(--hoff-line);
  border-radius: var(--hoff-radius);
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.hoff-usp__item strong { font-family: var(--hoff-display); font-size: 1.05rem; }
.hoff-usp__item span { color: var(--hoff-muted); font-size: 0.9rem; }

/* Product grid / cards */
.hoff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.hoff-card {
  background: #fff;
  border: 1px solid var(--hoff-line);
  border-radius: var(--hoff-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.hoff-card:hover {
  box-shadow: var(--hoff-shadow);
  transform: translateY(-2px);
}
.hoff-card__media {
  aspect-ratio: 1 / 1;
  background: var(--hoff-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hoff-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hoff-card__placeholder {
  color: var(--hoff-red);
  font-family: var(--hoff-display);
  font-weight: 800;
  font-size: 1.4rem;
}
.hoff-card__body { padding: 0.85rem 0.9rem 1rem; display: grid; gap: 0.35rem; }
.hoff-card__title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  min-height: 2.5em;
}
.hoff-card__title:hover { color: var(--hoff-red); }
.hoff-card__price {
  font-family: var(--hoff-display);
  font-weight: 800;
  font-size: 1.2rem;
}
.hoff-card__stock { font-size: 0.82rem; color: var(--hoff-ok); font-weight: 600; }
.hoff-card__stock--out { color: var(--hoff-danger); }

/* Buttons / forms */
.hoff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: var(--hoff-radius);
  padding: 0.7rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.hoff-btn--primary { background: var(--hoff-red); color: #fff; }
.hoff-btn--primary:hover { background: var(--hoff-red-dark); }
.hoff-btn--ghost {
  background: transparent;
  color: var(--hoff-ink);
  border: 1px solid var(--hoff-line);
}
.hoff-btn--ghost:hover { border-color: var(--hoff-ink); }
.hoff-btn--lg { min-height: 52px; padding: 0.85rem 1.5rem; font-size: 1.02rem; width: 100%; max-width: 280px; }

.hoff-label { display: block; margin: 0.75rem 0 0.35rem; font-weight: 600; font-size: 0.9rem; }
.hoff-input {
  width: 100%;
  border: 1px solid var(--hoff-line);
  border-radius: var(--hoff-radius);
  padding: 0.65rem 0.75rem;
  background: #fff;
}
.hoff-input:focus { outline: 2px solid rgba(227, 6, 19, 0.25); border-color: var(--hoff-red); }
.hoff-input--qty { max-width: 120px; }
.hoff-check { display: flex; align-items: center; gap: 0.5rem; margin: 1rem 0; font-weight: 600; }

.hoff-alert {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: var(--hoff-radius);
}
.hoff-alert--ok { background: #e8f5e9; color: #1b5e20; }
.hoff-alert--err { background: #ffebee; color: #b71c1c; }

/* Catalog / product pages */
.hoff-page { padding: 1.25rem 0 3rem; }
.hoff-page__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.hoff-page__head h1,
.hoff-product__info h1 {
  font-family: var(--hoff-display);
  margin: 0;
  letter-spacing: -0.02em;
}
.hoff-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--hoff-muted);
  margin-bottom: 1rem;
}
.hoff-crumbs a:hover { color: var(--hoff-red); }

.hoff-catalog-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}
.hoff-catalog-switch {
  display: inline-flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.hoff-catalog-switch__item {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--hoff-line);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}
.hoff-catalog-switch__item.is-active,
.hoff-catalog-switch__item:hover {
  background: var(--hoff-red);
  border-color: var(--hoff-red);
  color: #fff;
}
.hoff-rooms--catalog {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}
.hoff-room--plain {
  background: linear-gradient(135deg, #f3f3f3, #e8e8e8);
  color: var(--hoff-ink);
  min-height: 140px;
}
.hoff-room--plain::before { display: none; }
.hoff-subchips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}
.hoff-chip {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--hoff-line);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}
.hoff-chip:hover {
  border-color: var(--hoff-red);
  color: var(--hoff-red);
}
.hoff-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--hoff-line);
}
.hoff-toolbar__count { color: var(--hoff-muted); font-weight: 600; }
.hoff-toolbar__sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.hoff-toolbar__sort select {
  border: 1px solid var(--hoff-line);
  border-radius: var(--hoff-radius);
  padding: 0.45rem 0.65rem;
  background: #fff;
}
.hoff-catalog--solo { grid-template-columns: 260px 1fr; }
.hoff-cat-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.hoff-cat-tile {
  border: 1px solid var(--hoff-line);
  border-radius: var(--hoff-radius);
  padding: 1.4rem 1.2rem;
  background: linear-gradient(180deg, #fff, var(--hoff-soft-2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hoff-cat-tile:hover {
  border-color: var(--hoff-red);
  box-shadow: var(--hoff-shadow);
}
.hoff-cat-tile__name { font-family: var(--hoff-display); font-weight: 700; font-size: 1.15rem; }
.hoff-cat-tile__more { color: var(--hoff-red); font-weight: 700; }

.hoff-catalog {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.hoff-filters {
  border: 1px solid var(--hoff-line);
  border-radius: var(--hoff-radius);
  padding: 1rem;
  background: #fff;
  position: sticky;
  top: 7.5rem;
}
.hoff-filters__title {
  margin: 0 0 0.5rem;
  font-family: var(--hoff-display);
  font-size: 1.15rem;
}
.hoff-filters__actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}
.hoff-filters__subs {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hoff-line);
  display: grid;
  gap: 0.45rem;
}
.hoff-filters__subs h3 { margin: 0 0 0.35rem; font-size: 0.95rem; }
.hoff-filters__subs a:hover { color: var(--hoff-red); }
.hoff-empty {
  border: 1px dashed var(--hoff-line);
  border-radius: var(--hoff-radius);
  padding: 2rem;
  text-align: center;
  color: var(--hoff-muted);
}
.hoff-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
}
.hoff-pagination a,
.hoff-pagination span {
  min-width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--hoff-line);
  border-radius: var(--hoff-radius);
  font-weight: 700;
}
.hoff-pagination .is-current,
.hoff-pagination a:hover {
  background: var(--hoff-red);
  border-color: var(--hoff-red);
  color: #fff;
}

.hoff-product {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}
.hoff-product__main {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--hoff-radius);
  background: var(--hoff-soft);
}
.hoff-product__main--empty {
  display: grid;
  place-items: center;
  color: var(--hoff-red);
  font-family: var(--hoff-display);
  font-weight: 800;
  font-size: 2rem;
}
.hoff-product__thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
}
.hoff-product__thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--hoff-radius);
  border: 1px solid var(--hoff-line);
}
.hoff-product__price {
  font-family: var(--hoff-display);
  font-size: 2rem;
  font-weight: 800;
  margin: 0.5rem 0;
}
.hoff-product__desc { color: var(--hoff-muted); margin: 1rem 0 1.25rem; }
.hoff-product__buy { display: grid; gap: 0.35rem; justify-items: start; }

/* Auth / cart panels */
.hoff-panel {
  max-width: 480px;
  margin: 1.5rem auto;
  border: 1px solid var(--hoff-line);
  border-radius: var(--hoff-radius);
  padding: 1.5rem;
  background: #fff;
  box-shadow: var(--hoff-shadow);
}
.hoff-panel h1 {
  font-family: var(--hoff-display);
  margin: 0 0 1rem;
}
.hoff-panel .form-actions,
.hoff-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}
.error-list { color: var(--hoff-danger); padding-left: 1.1rem; }

/* Footer */
.hoff-footer {
  margin-top: 2rem;
  background: #111;
  color: #f2f2f2;
  padding: 2.5rem 0 1.25rem;
}
.hoff-footer a { color: #d0d0d0; }
.hoff-footer a:hover { color: #fff; }
.hoff-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #2a2a2a;
}
.hoff-footer__col { display: grid; gap: 0.45rem; align-content: start; }
.hoff-footer__col h3 {
  margin: 0 0 0.35rem;
  font-family: var(--hoff-display);
  font-size: 1rem;
  color: #fff;
}
.hoff-footer__text { color: #a8a8a8; margin: 0.5rem 0; max-width: 28ch; }
.hoff-footer__phone {
  font-family: var(--hoff-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff !important;
}
.hoff-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0 0.25rem;
  color: #8a8a8a;
  font-size: 0.85rem;
}

@media (max-width: 1100px) {
  .hoff-rooms,
  .hoff-rooms--catalog,
  .hoff-usp,
  .hoff-grid { grid-template-columns: repeat(2, 1fr); }
  .hoff-catalog,
  .hoff-catalog--solo { grid-template-columns: 1fr; }
  .hoff-filters { position: static; }
  .hoff-product { grid-template-columns: 1fr; }
  .hoff-footer__grid { grid-template-columns: 1fr 1fr; }
}
.hoff-label {
  display: block;
  margin: 0.75rem 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.hoff-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--hoff-line);
  border-radius: var(--hoff-radius);
  background: #fff;
}
.hoff-input:focus {
  outline: 2px solid rgba(218, 9, 22, 0.25);
  border-color: var(--hoff-red);
}
.hoff-input--qty { width: 5rem; }
.hoff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.hoff-table th,
.hoff-table td {
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--hoff-line);
  text-align: left;
}
.hoff-table th { font-weight: 700; color: var(--hoff-muted); }
.hoff-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--hoff-muted);
}
.hoff-breadcrumb a:hover { color: var(--hoff-red); }
.hoff-content { line-height: 1.6; }
.hoff-content p { margin: 0 0 0.85rem; }
.hoff-list { padding-left: 1.1rem; display: grid; gap: 0.45rem; }
.hoff-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.75rem 0;
}
.hoff-card__meta {
  font-size: 0.8rem;
  color: var(--hoff-muted);
  margin-bottom: 0.35rem;
}

@media (max-width: 760px) {
  .hoff-header__row { grid-template-columns: 1fr; }
  .hoff-topbar__right { display: none; }
  .hoff-rooms,
  .hoff-usp,
  .hoff-grid,
  .hoff-cat-tiles { grid-template-columns: 1fr; }
  .hoff-hero__slide { min-height: 68vh; }
  .hoff-footer__grid { grid-template-columns: 1fr; }
  .hoff-nav__inner { overflow-x: auto; flex-wrap: nowrap; }
  .hoff-page .hoff-grid { grid-template-columns: 1fr !important; }
}
