:root {
  --bg: #f3f2ee;
  --surface: #ffffff;
  --surface-strong: #f6f6f4;
  --ink: #232323;
  --muted: #6d6d68;
  --line: #deded8;
  --accent: #e8421a;
  --accent-strong: #c82f10;
  --accent-soft: #fff0eb;
  --dark: #111111;
  --dark-2: #202020;
  --gold: #b98228;
  --red: #e8421a;
  --shadow: 0 18px 45px rgba(17, 17, 17, 0.16), 0 4px 12px rgba(200, 47, 16, 0.06);
  --shadow-card: 0 1px 2px rgba(17, 17, 17, 0.05), 0 6px 18px rgba(17, 17, 17, 0.06);
  --shadow-card-hover: 0 2px 6px rgba(17, 17, 17, 0.08), 0 18px 36px rgba(200, 47, 16, 0.13);
  --font: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", system-ui, sans-serif;
  --font-display: "Archivo", "IBM Plex Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

/* Типографика редизайна: дисплей для заголовков, моно для кодов и цен */
.filter-head h1,
.request-header h2,
.company-title,
.viewer-title strong {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.product-code,
#paramsTitle,
.price,
.rate-badge strong,
.product-code-table {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 72px;
  left: 0;
  bottom: 0;
  width: 72px;
  background: url("assets/pattern.png") top left / 72px auto repeat-y;
  opacity: 0.95;
  pointer-events: none;
}

button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
  min-width: 0;
}

input,
select,
textarea {
  font-size: 16px;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 72px 1fr;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(280px, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 12px 22px;
  background: #111111;
  border-bottom: 1px solid #30302d;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  width: min(176px, 100%);
  height: 42px;
  flex: 0 1 176px;
  object-fit: contain;
  object-position: left center;
}

.brand-caption {
  display: block;
  padding-left: 12px;
  border-left: 1px solid #3d3d38;
  color: #d7d7d0;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0;
}

.topbar-search input {
  width: 100%;
  height: 44px;
  border: 1px solid #353530;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--dark-2);
  color: #fff;
  outline: none;
}

.topbar-search {
  min-width: 0;
}

.topbar-search input::placeholder {
  color: #a9a9a2;
}

.topbar-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 66, 26, 0.22);
}

.topbar-actions,
.detail-actions,
.panel-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.topbar-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.rate-badge {
  height: 42px;
  min-width: 118px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 0 12px;
  border: 1px solid #3b3b35;
  border-radius: 8px;
  background: #202020;
  color: #fff;
  text-align: left;
}

.rate-badge__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rate-badge__label {
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.rate-badge__refresh {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  fill: none;
  stroke: #9a9a93;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: center;
}

.rate-badge:hover .rate-badge__refresh {
  stroke: var(--accent);
}

.rate-badge strong {
  font-size: 14px;
  line-height: 1;
}

.rate-badge.is-loading strong {
  color: #d7d7d0;
}

.rate-badge.is-fallback .rate-badge__label {
  color: #ffb199;
}

.rate-badge.is-loading .rate-badge__refresh {
  animation: rate-spin 0.8s linear infinite;
}

@keyframes rate-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rate-badge.is-loading .rate-badge__refresh {
    animation: none;
  }
}

.japan-badge {
  min-height: 42px;
  min-width: 0;
  display: grid;
  grid-template-columns: 10px auto;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 0 8px;
  padding: 0 13px;
  border: 1px solid #3b3b35;
  border-radius: 8px;
  color: #fff;
  background: #202020;
  white-space: nowrap;
}

.jp-dot {
  grid-row: 1 / 3;
  align-self: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.japan-badge span:not(.jp-dot) {
  font-size: 12px;
  font-weight: 900;
}

.japan-badge small {
  color: #b8b8b1;
  font-size: 11px;
}

.icon-button,
.text-button,
.chip,
.category-tab,
.view-tabs button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
}

.topbar .icon-button,
.topbar .text-button {
  border-color: #3b3b35;
  background: #202020;
  color: #fff;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-button {
  min-height: 42px;
  padding: 0 16px;
  font-weight: 700;
}

.text-button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.text-button.secondary {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

.text-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.request-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.request-button span {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.request-button span.is-empty {
  background: #4a4a44;
  color: #b8b8b1;
}

.workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  padding: 18px 18px 18px 86px;
  width: min(100%, 1920px);
  margin-inline: auto;
}

.filters,
.detail-panel,
.catalog-panel {
  min-width: 0;
}

.filters,
.detail-panel {
  position: sticky;
  top: 90px;
  max-height: calc(100dvh - 108px);
  overflow-y: auto;
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filters {
  padding: 18px;
}

.filter-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filter-head h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1;
}

.filter-head span,
.range-value,
.sort-control label {
  color: var(--muted);
  font-size: 13px;
}

.filter-reset {
  width: 100%;
  min-height: 36px;
  margin-top: 16px;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-weight: 800;
  text-align: left;
}

.filter-block {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.filter-block:last-child {
  border-bottom: 0;
}

.company-card {
  position: relative;
  overflow: hidden;
  margin-top: 4px;
  padding: 16px;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
}

.company-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 42px;
  background: url("assets/pattern.png") left top / 42px auto repeat-y;
}

.company-card > * {
  position: relative;
  z-index: 1;
  margin-left: 36px;
}

.company-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.company-title {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 900;
}

.company-card address {
  margin-top: 10px;
  color: #deded8;
  font-style: normal;
  font-size: 12px;
  line-height: 1.45;
}

.company-links {
  display: grid;
  gap: 5px;
  margin-top: 12px;
}

.company-links a {
  color: #fff;
  font-size: 12px;
  text-decoration: none;
}

.company-links a:hover {
  color: var(--accent);
}

.filter-block h2 {
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--muted);
}

.filter-block label,
.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  color: var(--ink);
}

.filter-block input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.category-tabs {
  display: grid;
  gap: 8px;
}

.category-tab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  text-align: left;
}

.category-tab span {
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
}

.category-tab small {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.category-tab.is-active {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

.category-tab.is-active small {
  color: var(--accent);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 34px;
  padding: 0 11px;
  font-weight: 700;
}

.chip.is-active,
.view-tabs button.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.range-value {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
}

.price-input {
  width: 96px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  outline: none;
  text-align: right;
}

.catalog-panel {
  display: grid;
  gap: 14px;
  align-self: start;
  min-width: 0;
  padding-right: 2px;
}

.panel-toolbar {
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 52px;
  padding: 0 2px;
}

.view-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 4px;
  gap: 4px;
  background: #ededeb;
  border-radius: 8px;
}

.view-tabs button {
  min-width: 96px;
  min-height: 36px;
  border: 0;
  background: transparent;
  font-weight: 700;
}

.filter-toggle,
.filter-close,
.detail-toggle,
.detail-close {
  display: none;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-control select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-auto-rows: auto;
  gap: clamp(14px, 1.4vw, 20px);
  align-items: stretch;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 2px 0 rgba(31, 40, 35, 0.03);
  cursor: pointer;
  /* Внеэкранные карточки не раскладываются/не красятся (быстрее старт и ре-рендер 200 шт). */
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

.product-card__media {
  cursor: zoom-in;
}

.product-card.is-staggered {
  grid-template-rows: auto 1fr;
}

.product-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 66, 26, 0.18);
}

/* Глубина и интерактивные состояния (редизайн): подсветка без сдвига */
.product-card {
  box-shadow: var(--shadow-card);
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

.product-card:hover {
  border-color: #cdc6ba;
  box-shadow: var(--shadow-card-hover);
}

.icon-button,
.text-button,
.chip,
.category-tab,
.view-tabs button,
.price-mode-btn,
.gallery-thumb,
.company-about,
.footer-link,
.rate-badge {
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.text-button:not(:disabled):active {
  transform: translateY(1px);
}

.text-button.primary:not(:disabled):hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.text-button.secondary:not(:disabled):hover {
  background: var(--dark-2);
  border-color: var(--dark-2);
}

.icon-button:not(:disabled):hover {
  border-color: var(--accent);
  color: var(--accent);
}

.topbar .icon-button:not(:disabled):hover,
.topbar .text-button:not(:disabled):hover {
  border-color: var(--accent);
}

.gallery-thumb:hover {
  border-color: var(--accent);
}

:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.product-photo,
.detail-media {
  position: relative;
  overflow: hidden;
  background: #f4f2ed;
}

.product-photo__img,
.detail-media__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Лёгкий зум фото при наведении на карточку (сама карточка не двигается). */
.product-photo__img {
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-photo__img:not(.is-placeholder) {
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .product-card:hover .product-photo__img:not(.is-placeholder) {
    transform: none;
  }
}

.product-photo__img.is-placeholder,
.detail-media__img.is-placeholder {
  object-fit: contain;
  padding: 16%;
  opacity: 0.55;
}

.table-photo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.table-photo__img.is-placeholder {
  object-fit: contain;
  padding: 12%;
  opacity: 0.55;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-photo::before,
.detail-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/pattern.png") left top / 54px auto repeat-y;
  opacity: 0.16;
}

.product-photo[data-has-photo="true"]::before,
.detail-media[data-has-photo="true"]::before,
.product-photo[data-has-photo="false"]::before,
.detail-media[data-has-photo="false"]::before {
  display: none;
}

.product-photo[data-has-photo="false"],
.detail-media[data-has-photo="false"] {
  background-size: cover, min(46%, 220px), cover;
}

.product-photo {
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-bottom: 1px solid var(--line);
}

.product-card.is-staggered .product-photo {
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}


.product-badge {
  position: absolute;
  top: 10px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(17, 17, 17, 0.86);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-badge--type {
  left: 10px;
  max-width: calc(100% - 96px);
}

.product-badge--size {
  right: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  background: rgba(17, 17, 17, 0.78);
}

.product-badge--new {
  left: 10px;
  top: auto;
  bottom: 10px;
  background: var(--accent);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.product-card__body {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 12px;
  padding: 14px;
  min-width: 0;
  height: 100%;
}

.product-card__specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.spec-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.spec-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spec-name--sub {
  font-size: 13.5px;
  font-weight: 600;
}

.spec-params {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.part-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  min-width: 0;
}

.part-line strong {
  color: var(--ink);
  font-size: 12px;
  overflow-wrap: anywhere;
  text-align: right;
}

.part-line.is-muted strong {
  color: var(--accent);
}

.price {
  font-size: 18px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.price,
.spec-table td,
.range-value,
#rateValue,
#usdRateValue,
.quick-specs dd,
.calc-row strong,
.line-total {
  font-variant-numeric: tabular-nums;
}

/* Ценовая полоска и действия карточки (редизайн) */
.price-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 9px;
  background: var(--accent-soft);
  min-width: 0;
}

.price-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.price-stack .price {
  line-height: 1.15;
}

.price-sub {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--font);
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
  overflow-wrap: anywhere;
}

button.price-sub {
  cursor: pointer;
}

button.price-sub:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

button.price-calc {
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

button.price-calc:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 2px;
}

.avail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.avail .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.avail--in {
  color: #1f7a3d;
}

.avail--in .dot {
  background: #22a44e;
  box-shadow: 0 0 0 3px rgba(34, 164, 78, 0.16);
}

.avail--order {
  color: var(--accent-strong);
}

.avail--order .dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 66, 26, 0.14);
}

.product-card__actions {
  display: flex;
  gap: 6px;
  min-width: 0;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.card-btn--photo {
  flex: 0 1 auto;
}

.card-btn__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.card-btn--ghost:not(:disabled):hover {
  border-color: var(--accent);
  color: var(--accent);
}

.card-btn--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.card-btn--primary:not(:disabled):hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.card-btn:not(:disabled):active {
  transform: translateY(1px);
}

.card-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.catalog-table {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  width: 86px;
}

th {
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.table-photo {
  width: 64px;
  height: 48px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong) center / cover no-repeat;
  box-shadow: 0 1px 0 rgba(31, 40, 35, 0.04);
  cursor: zoom-in;
}

.table-photo:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(232, 66, 26, 0.14);
}

.calc-table-button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #f1b29d;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 900;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover {
  background: var(--accent-soft);
}

.filter-close {
  justify-self: end;
  margin: 0 0 10px auto;
}

.detail-media {
  cursor: zoom-in;
}

.detail-body {
  padding: 18px;
}

.detail-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-body h2 {
  margin: 6px 0 5px;
  font-size: 27px;
  line-height: 1.1;
  word-break: break-word;
}

.detail-body p {
  margin: 0;
  color: var(--muted);
}

.quick-specs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin: 18px 0;
  min-width: 0;
}

.quick-specs div {
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.quick-specs dt {
  color: var(--muted);
  font-size: 12px;
}

.quick-specs dd {
  margin: 5px 0 0;
  font-size: 17px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.detail-size-lines {
  display: grid;
  gap: 2px;
  font-size: 15px;
  line-height: 1.25;
}

.detail-actions {
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.detail-actions .primary {
  flex: 1 1 132px;
}

.detail-actions .text-button {
  flex: 1 1 auto;
}

.component-options {
  margin-bottom: 16px;
}

.component-options:empty {
  display: none;
}

.component-options h3 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-section {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.detail-section h3,
.detail-accordion summary {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.detail-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.detail-section h3 .section-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.detail-section-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.detail-section-grid span {
  color: var(--muted);
  font-size: 12px;
}

.detail-section-grid strong {
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.detail-accordion {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.detail-accordion summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  cursor: pointer;
}

.detail-accordion .spec-table {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.component-grid {
  display: grid;
  gap: 8px;
}

.component-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.component-option span {
  font-weight: 800;
}

.component-option strong {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.component-option small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.component-option.is-muted strong,
.component-option.is-muted small {
  color: var(--accent);
}

.product-notice {
  padding: 12px;
  border: 1px solid #f1b29d;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.detail-gallery:empty {
  display: none;
}

.gallery-thumb {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong) center / cover no-repeat;
}

.gallery-thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(232, 66, 26, 0.18);
}

.spec-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: table;
  min-width: 0;
}

.spec-table:empty {
  display: none;
}

.spec-table th,
.spec-table td {
  white-space: normal;
  padding: 11px 12px;
}

.spec-table td {
  overflow-wrap: anywhere;
}

.spec-table th {
  width: 42%;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(4, minmax(150px, 1fr));
  gap: 22px;
  width: min(100%, 1920px);
  margin-inline: auto;
  padding: 26px 22px 28px 86px;
  border-top: 1px solid #30302d;
  background: var(--dark);
  color: #fff;
}

.footer-brand,
.footer-section {
  min-width: 0;
}

.footer-brand img {
  width: 176px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.footer-brand p {
  max-width: 280px;
  margin: 12px 0 0;
  color: #c9c9c2;
  font-size: 13px;
  line-height: 1.45;
}

.footer-section h2 {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-section,
.footer-section address,
.footer-section a,
.footer-section span {
  color: #deded8;
  font-size: 13px;
  line-height: 1.55;
}

.footer-section address {
  font-style: normal;
}

.footer-section a {
  display: block;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-section a:hover {
  color: #fff;
}

.footer-legal {
  display: grid;
  gap: 7px;
  margin: 0;
}

.footer-legal div {
  display: grid;
  gap: 2px;
}

.footer-legal dt {
  color: #8f8f89;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-legal dd {
  margin: 0;
  color: #deded8;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.footer-social span {
  display: block;
  color: #9f9f98;
}

.is-hidden {
  display: none;
}

.empty-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  text-align: center;
  padding: 28px;
}

.empty-state .filter-reset {
  width: auto;
  margin-top: 10px;
  text-align: center;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(380px, calc(100vw - 36px));
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.photo-viewer,
.request-modal,
.vladivostok-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 8, 8, 0.92);
  width: 100%;
  max-width: 100%;
}

.photo-viewer.is-hidden,
.request-modal.is-hidden,
.vladivostok-modal.is-hidden {
  display: none;
}

.viewer-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  min-height: 74px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: max(14px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 14px max(18px, env(safe-area-inset-left));
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0));
}

.viewer-title {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1 1 180px;
}

.viewer-title strong {
  font-size: 18px;
}

.viewer-title small {
  color: #d7d7d0;
}

.viewer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.viewer-actions .icon-button,
.viewer-actions .text-button {
  border-color: rgba(255, 255, 255, 0.16);
}

.viewer-stage {
  width: 100%;
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: 82px 88px 104px;
  touch-action: pan-y;
}

.viewer-stage img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  user-select: none;
}

.viewer-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 76px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.74);
  color: #fff;
  font-size: 46px;
  line-height: 1;
}

.viewer-prev {
  left: 18px;
}

.viewer-next {
  right: 18px;
}

.viewer-strip {
  position: absolute;
  left: max(18px, env(safe-area-inset-left));
  right: max(18px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 3;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.52);
}

.viewer-thumb {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #222 center / cover no-repeat;
}

.viewer-thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(232, 66, 26, 0.34);
}

.request-modal,
.vladivostok-modal {
  display: grid;
  place-items: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}

.request-window {
  width: min(980px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* Единая модалка деталей: header / прокручиваемое тело (фото + 2 колонки) / действия */
.detail-window {
  width: min(1040px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.detail-window__main {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
  overflow-y: auto;
  min-height: 0;
}

.detail-window__media {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}

.detail-window__media .detail-media {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.detail-window__media .detail-gallery {
  margin: 0;
}

.detail-window__info {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}

.detail-window__info .params-subtitle {
  margin: 0;
}

.detail-window .detail-actions {
  margin: 0;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface-strong);
  justify-content: flex-end;
}

.detail-window .detail-actions .primary,
.detail-window .detail-actions .text-button {
  flex: 0 0 auto;
}

.request-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 18px;
  background: var(--dark);
  color: #fff;
}

.request-header h2 {
  margin: 3px 0 0;
  font-size: 24px;
  overflow-wrap: anywhere;
}

.request-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.request-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-strong);
}

.request-summary div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.request-summary span {
  color: var(--muted);
  font-size: 12px;
}

.request-summary strong {
  font-size: 20px;
  overflow-wrap: anywhere;
}

.request-items {
  overflow: auto;
  padding: 12px 18px;
}

.request-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto minmax(96px, auto) 42px;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.request-item:last-child {
  border-bottom: 0;
}

.request-thumb {
  width: 74px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--surface-strong) center / cover no-repeat;
  border: 1px solid var(--line);
}

.request-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.request-info strong {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.request-info span,
.request-info small {
  color: var(--muted);
  font-size: 13px;
}

.qty-control {
  display: grid;
  grid-template-columns: 32px 34px 32px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.qty-control button {
  width: 32px;
  height: 34px;
  border: 0;
  background: var(--surface-strong);
  font-weight: 900;
}

.qty-control span {
  text-align: center;
  font-weight: 800;
}

.line-total {
  font-weight: 900;
  text-align: right;
  overflow-wrap: anywhere;
}

.request-remove {
  width: 36px;
  height: 36px;
}

.request-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.request-comment {
  display: grid;
  gap: 8px;
  padding: 0 18px 14px;
}

.request-comment span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.request-comment textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
}

.request-comment textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 66, 26, 0.14);
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
}

.calc-window {
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.calc-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 18px;
  background: var(--dark);
  color: #fff;
}

.calc-header h2 {
  margin: 3px 0 0;
  font-size: 24px;
  overflow-wrap: anywhere;
}

.calc-body {
  display: grid;
  gap: 14px;
  overflow: auto;
  padding: 18px;
}

.calc-product {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.calc-product span,
.calc-field span,
.calc-note {
  color: var(--muted);
  font-size: 13px;
}

.calc-product strong {
  display: block;
  margin: 3px 0;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.calc-product small {
  color: var(--muted);
}

.calc-thumb {
  width: 86px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface) center / cover no-repeat;
}

.calc-field {
  display: grid;
  gap: 8px;
}

.calc-field input,
.calc-field select {
  width: min(140px, 100%);
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  outline: none;
  background: #fff;
}

.calc-field select {
  width: min(360px, 100%);
}

.calc-field input:focus,
.calc-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 66, 26, 0.14);
}

.calc-breakdown {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.calc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.calc-row:last-child {
  border-bottom: 0;
}

.calc-row span {
  color: var(--muted);
}

.calc-row strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.calc-total {
  background: var(--accent-soft);
}

.calc-warning {
  background: #fff7e8;
}

.calc-warning strong {
  color: var(--gold);
}

.calc-total strong {
  color: var(--accent-strong);
  font-size: 20px;
}

.calc-empty {
  padding: 16px;
  color: var(--muted);
}

.calc-note {
  margin: 0;
  line-height: 1.45;
}

.calc-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1440px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
    max-width: none;
  }
}

@media (max-width: 1180px) {
  body::before {
    display: none;
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand actions"
      "search search";
    row-gap: 10px;
    column-gap: 12px;
  }

  .brand {
    grid-area: brand;
  }

  .topbar-search {
    grid-area: search;
  }

  .topbar-actions {
    grid-area: actions;
  }

  .brand-caption {
    display: none;
  }

  .japan-badge {
    display: none;
  }

  .workspace {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
    height: auto;
    overflow: visible;
  }

  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 18px;
    padding-right: 18px;
  }

  .filters {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    width: min(360px, 100%);
    max-height: 100dvh;
    border-radius: 0;
    transform: translateX(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 180ms ease;
  }

  .filters.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    box-shadow: var(--shadow);
  }

  .catalog-panel {
    max-height: none;
    overflow: visible;
  }

  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    max-width: none;
  }

  .filter-toggle,
  .detail-toggle {
    display: inline-flex;
    align-items: center;
  }

  .filter-close {
    display: grid;
  }

  .detail-panel {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 80;
    width: min(420px, 100%);
    max-height: 100dvh;
    grid-template-columns: 1fr;
    grid-template-rows: auto 240px minmax(0, 1fr);
    border-radius: 0;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 180ms ease;
  }

  .detail-panel.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    box-shadow: var(--shadow);
  }

  .detail-close {
    display: grid;
  }

  .detail-media {
    min-height: 240px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 1024px) {
  .app-shell {
    grid-template-rows: auto 1fr;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px 12px;
    gap: 10px;
  }

  .topbar-search {
    order: 3;
    min-width: 0;
  }

  .topbar-actions {
    width: 100%;
    justify-content: stretch;
    order: 2;
  }

  .rate-badge {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
  }

  .topbar .icon-button {
    flex: 0 0 44px;
  }

  .request-button {
    flex: 1 1 132px;
    justify-content: center;
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-rows: auto 1fr;
  }

  .workspace {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 22px 12px calc(24px + env(safe-area-inset-bottom));
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .viewer-stage {
    padding: 82px 12px calc(104px + env(safe-area-inset-bottom));
  }

  .viewer-nav {
    top: auto;
    bottom: 92px;
    width: 46px;
    height: 54px;
    font-size: 34px;
  }

  .viewer-prev {
    left: 14px;
  }

  .viewer-next {
    right: 14px;
  }

  .request-item {
    grid-template-columns: 58px minmax(0, 1fr) auto;
  }

  .request-thumb {
    width: 58px;
  }

  .request-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .qty-control,
  .line-total {
    grid-column: 2 / 3;
  }

  .request-remove {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
  }
}

@media (max-width: 640px) {
  .catalog-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 10px 10px;
  }

  .brand-caption {
    display: none;
  }

  .brand-logo {
    width: 132px;
    flex-basis: 132px;
  }

  .topbar-actions .text-button:not(.request-button) {
    display: none;
  }

  .rate-badge {
    padding: 0 9px;
  }

  .japan-badge {
    display: none;
  }

  .panel-toolbar,
  .sort-control {
    align-items: stretch;
    flex-direction: column;
  }

  .view-tabs {
    width: 100%;
  }

  .sort-control select {
    width: 100%;
  }

  .quick-specs {
    grid-template-columns: 1fr;
  }

  .viewer-top {
    align-items: flex-start;
  }

  .viewer-actions .text-button {
    min-height: 38px;
    padding: 0 10px;
    font-size: 13px;
  }

  .request-modal,
  .vladivostok-modal {
    padding: 0;
  }

  .request-window,
  .calc-window,
  .detail-window,
  .about-window {
    width: 100%;
    max-height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .detail-window__main {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 14px;
  }

  .detail-section-grid {
    grid-template-columns: 1fr;
  }

  .detail-window .detail-actions {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }

  .detail-window .detail-actions .primary,
  .detail-window .detail-actions .text-button {
    flex: 1 1 auto;
    width: 100%;
  }

  .request-summary {
    grid-template-columns: 1fr;
  }

  .request-actions {
    justify-content: stretch;
  }

  .request-actions .text-button {
    flex: 1 1 140px;
  }

  .calc-product {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .calc-thumb {
    width: 64px;
  }

  .calc-row {
    grid-template-columns: 1fr;
  }

  .calc-row strong {
    text-align: left;
  }

  .calc-actions {
    flex-wrap: wrap;
  }

  .calc-actions .text-button {
    flex: 1 1 160px;
  }
}

/* Переключатель валюты цены ¥ / ₽ Владивосток (ONLINE-CATALOG-P2-P3) */
.price-mode-toggle {
  display: inline-flex;
  align-items: center;
  height: 42px;
  gap: 3px;
  padding: 3px;
  border: 1px solid #3b3b35;
  border-radius: 9px;
  background: #202020;
}

.price-mode-btn {
  height: 34px;
  border: 0;
  background: transparent;
  color: #cfcfc8;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 0 12px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
}

.price-mode-btn:not(.is-active):hover {
  color: #fff;
}

.price-mode-btn.is-active {
  background: var(--accent);
  color: #fff;
}

/* Попап параметров комплекта */
.params-body {
  display: grid;
  gap: 14px;
}

.params-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

/* Модалка «О компании» */
.about-window {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.about-body {
  padding: 20px;
  overflow-y: auto;
  display: grid;
  gap: 16px;
}

.about-lead {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.about-grid div {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.about-grid__wide {
  grid-column: 1 / -1;
}

.about-grid dt {
  color: var(--muted);
  font-size: 12px;
}

.about-grid dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.about-grid dd a {
  display: block;
  color: var(--accent);
  text-decoration: none;
}

.about-grid dd a:hover {
  text-decoration: underline;
}

/* Триггеры «О компании» */
.footer-link {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.footer-link:hover {
  color: #fff;
}

.company-about {
  margin-top: 12px;
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.company-about:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* Группировка фильтров по узлам */
.filter-group-label {
  margin: 18px 0 2px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
