:root {
  --ink: #171a1f;
  --muted: #707883;
  --line: #dde2e8;
  --line-strong: #cbd2da;
  --surface: #f7f8fa;
  --amber: #ffb000;
  --amber-soft: #fff8e9;
  --green: #078e5d;
  --blue: #176fe5;
  --shadow: 0 14px 38px rgb(27 35 45 / 8%);
  font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { min-width: 960px; background: #fff; scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

button, input { font: inherit; }
button { color: inherit; }

.shell {
  width: min(1392px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  height: 138px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 248px 340px 1fr 198px 138px;
  align-items: center;
  gap: 16px;
}

.brand { display: block; width: 230px; height: 82px; overflow: hidden; }
.brand img { width: 224px; height: 75px; object-fit: contain; object-position: left center; display: block; }

.certificates { position: relative; height: 72px; display: flex; align-items: center; justify-content: flex-end; gap: 13px; padding-left: 13px; border-left: 1px solid var(--line); }
.certificate {
  width: 58px;
  height: 68px;
  display: grid;
  grid-template-rows: 48px 15px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
  text-align: center;
}
.certificate img {
  width: 44px;
  height: 44px;
  display: block;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 50%;
}
.certificate span { display: block; font-size: 10px; white-space: nowrap; }

.phone { color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 700; white-space: nowrap; }
.request-button {
  height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: white;
  font-weight: 700;
  cursor: pointer;
}
.request-button span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-left: 9px;
  place-items: center;
  border-radius: 50%;
  background: var(--amber);
}

.catalog-page { padding: 40px 0 28px; }
.catalog-head {
  position: sticky;
  top: 0;
  z-index: 12;
  isolation: isolate;
  display: grid;
  grid-template-columns: 650px 1fr;
  gap: 24px;
  align-items: center;
  margin-top: -14px;
  padding: 14px 0;
}
.catalog-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  border-bottom: 1px solid rgb(221 226 232 / 80%);
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 10px 24px rgb(22 31 42 / 4%);
  backdrop-filter: blur(14px);
  pointer-events: none;
}
.catalog-title-line { display: flex; align-items: baseline; gap: 28px; white-space: nowrap; }
.catalog-title-line h1 { margin: 0; font-size: 28px; line-height: 1; letter-spacing: -.35px; }
.catalog-title-line strong { font-size: 16px; }
.catalog-title-line span { color: var(--muted); font-size: 14px; }

.global-search, .grade-search {
  position: relative;
  display: block;
}
.global-search input, .grade-search input {
  width: 100%;
  height: 58px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  outline: none;
  padding: 0 18px 0 48px;
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgb(12 24 40 / 2%);
}
.global-search input:focus, .grade-search input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgb(255 176 0 / 12%); }
.global-search input::placeholder, .grade-search input::placeholder { color: #8a929d; }
.search-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  width: 17px;
  height: 17px;
  border: 2px solid #74808c;
  border-radius: 50%;
  transform: translateY(-58%);
}
.search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -5px;
  bottom: -2px;
  background: #74808c;
  transform: rotate(48deg);
  border-radius: 2px;
}

.shape-strip {
  height: 158px;
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.shape-button {
  position: relative;
  min-width: 0;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 4px 10px 8px;
  cursor: pointer;
}
.shape-button:last-child { border-right: 0; }
.shape-button.active { box-shadow: inset 0 0 0 2px var(--amber); background: #fff; z-index: 1; }
.shape-button img {
  display: block;
  width: 110px;
  height: 110px;
  margin: -8px auto -4px;
  object-fit: cover;
  mix-blend-mode: multiply;
}
.shape-button strong { display: block; font-size: 17px; font-weight: 500; line-height: 1.15; }

.filter-bar {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.select-button {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  white-space: nowrap;
  cursor: default;
  font-size: 14px;
}
.select-button b { font-weight: 400; }
.select-button span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 14px;
  border-right: 1.5px solid #59636f;
  border-bottom: 1.5px solid #59636f;
  transform: translateY(-2px) rotate(45deg);
}
.filter-spacer { flex: 1; }
.result-count { margin: 0; white-space: nowrap; font-size: 14px; }
.result-count strong { font-size: 16px; }
.active-filter-row { height: 76px; display: flex; align-items: center; gap: 18px; }
.active-chip { height: 46px; padding: 0 13px; border: 1px solid var(--amber); border-radius: 6px; background: #fff; }
.active-chip span { margin-left: 12px; font-size: 20px; line-height: 1; }
.reset-filter { border: 0; background: transparent; color: var(--blue); cursor: pointer; }

.catalog-layout {
  display: grid;
  grid-template-columns: 305px minmax(0, 1fr);
  gap: 24px;
  padding-top: 28px;
}
.catalog-layout.with-details { grid-template-columns: 270px minmax(0, 700px) minmax(350px, 1fr); gap: 24px; }

.grade-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  min-width: 0;
  height: calc(100vh - 116px);
  padding-right: 16px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.grade-sidebar h2 { margin: 0 0 20px; font-size: 22px; }
.grade-sidebar > h2,
.grade-sidebar > .grade-search { flex: 0 0 auto; }
.grade-search input { height: 48px; padding-left: 14px; padding-right: 46px; }
.grade-search .search-icon { left: auto; right: 17px; }
.grade-list-scroll {
  min-height: 0;
  flex: 1;
  margin-top: 22px;
  padding-right: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c9d0d8 transparent;
}
.grade-list-scroll::-webkit-scrollbar { width: 6px; }
.grade-list-scroll::-webkit-scrollbar-track { background: transparent; }
.grade-list-scroll::-webkit-scrollbar-thumb { border-radius: 8px; background: #c9d0d8; }
.all-grades-heading {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0;
  padding: 3px 0 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.all-grades-heading h3 { margin: 0; font-size: 15px; }
.all-grades-heading span { color: var(--muted); font-size: 13px; }
.grade-list { margin: 14px 0 0; padding: 0 0 18px; list-style: none; }
.grade-block { margin: 0 0 18px; }
.grade-block h4 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.grade-block-list { display: grid; gap: 2px; }
.grade-row {
  position: relative;
  min-height: 35px;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: center;
  padding: 0;
  font-size: 13px;
  cursor: pointer;
}
.grade-number { color: var(--muted); font-variant-numeric: tabular-nums; }
.grade-entry {
  min-width: 0;
  min-height: 33px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  padding: 0 7px 0 9px;
  border: 1px solid transparent;
  border-radius: 5px;
}
.grade-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grade-count { text-align: right; font-weight: 700; }
.grade-row:hover .grade-entry { background: var(--surface); }
.grade-row.active .grade-entry { border-color: var(--amber); background: var(--amber-soft); font-weight: 700; }

.results { min-width: 0; }
.column-heads {
  height: 43px;
  display: grid;
  grid-template-columns: minmax(305px, 1.25fr) minmax(220px, 1fr) 170px 125px 125px 48px 54px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  color: #7c8490;
  font-size: 13px;
}
.column-heads span { padding: 0 10px; }
.column-heads span:first-child { padding-left: 100px; }
.column-heads span:nth-child(6) { padding-inline: 0; text-align: center; font-size: 11px; }
.catalog-layout.with-details .column-heads { grid-template-columns: minmax(330px, 1fr) 120px 150px 64px; }
.catalog-layout.with-details .column-heads span { padding-inline: 8px; }
.catalog-layout.with-details .column-heads span:first-child { grid-column: 1; padding-left: 92px; }
.catalog-layout.with-details .column-heads span:nth-child(2),
.catalog-layout.with-details .column-heads span:nth-child(5),
.catalog-layout.with-details .column-heads span:nth-child(7) { display: none; }
.catalog-layout.with-details .column-heads span:nth-child(3) { grid-column: 2; }
.catalog-layout.with-details .column-heads span:nth-child(4) { grid-column: 3; font-size: 0; }
.catalog-layout.with-details .column-heads span:nth-child(4)::after { content: "Цена, с НДС"; font-size: 13px; }
.catalog-layout.with-details .column-heads span:nth-child(6) { grid-column: 4; padding-inline: 0; text-align: center; font-size: 0; }
.catalog-layout.with-details .column-heads span:nth-child(6)::after { content: "Действия"; font-size: 11px; }

.product-group { margin-bottom: 36px; }
.product-group:last-child { margin-bottom: 0; }
.group-title {
  min-height: 67px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 23px;
  font-weight: 600;
}
.group-title img { width: 50px; height: 50px; margin-right: -3px; object-fit: cover; mix-blend-mode: multiply; }
.group-title span { color: var(--muted); font-size: 15px; font-weight: 400; }
.group-title span::before { content: "—"; margin-right: 8px; }
.product-list { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.product-card {
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(305px, 1.25fr) minmax(220px, 1fr) 170px 125px 125px 48px 54px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease;
}
.product-card > * { min-width: 0; }
.product-card:last-child { border-bottom: 0; }
.product-card:hover { background: #fbfcfd; }
.product-card.selected { position: relative; background: #fffdf7; box-shadow: inset 0 0 0 2px var(--amber); z-index: 1; }
.catalog-layout.with-details .product-card {
  grid-template-columns: minmax(330px, 1fr) 120px 150px 64px;
  grid-template-rows: minmax(62px, auto) minmax(62px, auto);
}
.catalog-layout.with-details .product-characteristics { display: none; }
.catalog-layout.with-details .product-main { grid-column: 1; grid-row: 1 / 3; }
.catalog-layout.with-details .product-stock { grid-column: 2; grid-row: 1 / 3; }
.catalog-layout.with-details .product-price { align-self: stretch; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid #edf0f3; }
.catalog-layout.with-details .product-price.wholesale { grid-column: 3; grid-row: 1; border-bottom: 1px solid #edf0f3; }
.catalog-layout.with-details .product-price.retail { grid-column: 3; grid-row: 2; }
.catalog-layout.with-details .doc-icon { grid-column: 4; grid-row: 1; justify-self: center; transform: scale(.86); }
.catalog-layout.with-details .add-button { grid-column: 4; grid-row: 2; width: 34px; height: 42px; align-self: center; justify-self: center; font-size: 27px; }

.product-main { min-width: 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 5px; align-items: center; padding: 16px 12px 16px 8px; }
.product-main img { width: 88px; height: 88px; object-fit: cover; mix-blend-mode: multiply; }
.position-copy { min-width: 0; }
.position-copy strong { display: block; margin-bottom: 4px; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.position-copy .grade { display: block; margin-bottom: 3px; font-size: 16px; overflow-wrap: anywhere; }
.position-copy .dimensions { display: block; color: #343a42; font-size: 15px; line-height: 1.28; overflow-wrap: anywhere; }
.product-characteristics, .product-stock, .product-price { padding: 14px 10px; font-size: 14px; line-height: 1.45; }
.product-characteristics { color: #59626d; overflow-wrap: anywhere; }
.product-characteristics small { display: block; margin-top: 8px; color: #818995; }
.product-stock strong, .product-price strong { display: block; margin-bottom: 5px; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.product-stock span { display: block; margin-bottom: 4px; }
.availability { color: var(--green); }
.availability::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--green); transform: translateY(-1px); }
.product-price small { display: block; margin-top: 8px; color: #707883; }
.product-price.retail strong { font-size: 14px; }
.doc-icon { width: 21px; height: 27px; border: 2px solid #53606c; border-radius: 2px; position: relative; justify-self: center; }
.doc-icon::before { content: ""; position: absolute; right: -2px; top: -2px; width: 8px; height: 8px; background: white; border-left: 2px solid #53606c; border-bottom: 2px solid #53606c; }
.doc-icon::after { content: ""; position: absolute; left: 4px; bottom: 6px; width: 10px; height: 2px; background: #53606c; box-shadow: 0 -5px 0 #53606c; }
.add-button {
  width: 42px;
  height: 50px;
  border: 2px solid var(--amber);
  border-radius: 6px;
  background: #fff;
  color: var(--amber);
  font-size: 31px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.manufacture-callout {
  min-height: 60px;
  margin-top: 16px;
  padding: 0 18px;
  border: 2px solid var(--amber);
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  font-size: 15px;
}
.manufacture-callout.at-top { margin: 14px 0 6px; }
.manufacture-callout.at-bottom { margin: 16px 0 0; }
.gear-icon { width: 24px; height: 24px; display: grid; place-items: center; border: 2px dotted #55616d; border-radius: 50%; font-size: 15px; }
.manufacture-callout strong { font-weight: 700; }
.manufacture-callout .arrow { margin-left: auto; width: 13px; height: 13px; border-top: 2px solid var(--amber); border-right: 2px solid var(--amber); transform: rotate(45deg); }

.details-panel {
  align-self: start;
  position: sticky;
  top: 92px;
  min-width: 0;
  max-height: calc(100vh - 108px);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd2da transparent;
}
.details-inner { padding: 24px 24px 20px; }
.details-top { position: relative; padding-right: 32px; }
.details-top h2 { margin: 0 0 3px; font-size: 31px; letter-spacing: -.5px; }
.details-top p { margin: 0 0 14px; font-size: 17px; }
.details-close { position: absolute; right: 0; top: 0; border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; }
.details-section { padding: 20px 0; border-top: 1px solid var(--line); }
.details-section h3 { margin: 0 0 16px; font-size: 21px; }
.detail-grid { display: grid; grid-template-columns: 120px 1fr; gap: 12px 14px; font-size: 15px; }
.detail-grid dt { color: var(--muted); }
.detail-grid dd { margin: 0; }
.cert-link { display: flex; align-items: center; gap: 10px; margin-top: 21px; border: 0; padding: 0; background: transparent; color: var(--blue); }
.details-section p { margin: 0; font-size: 15px; line-height: 1.55; }
.text-link { display: inline-block; margin-top: 14px; color: var(--blue); text-decoration: none; }
.analogs { display: flex; flex-wrap: wrap; gap: 9px; }
.analogs span { padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 13px; }
.replacement-note { margin-top: 14px; padding: 10px 12px; border: 1px solid #f3d792; border-radius: 5px; background: #fffaf0; color: #665d4a; font-size: 12px; }
.property-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; font-size: 14px; }
.property-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.property-table tr:last-child td { border-bottom: 0; }
.property-table td:first-child { width: 46%; color: var(--muted); border-right: 1px solid var(--line); }
.manager-action { width: 100%; height: 56px; border: 0; border-radius: 6px; background: var(--amber); font-weight: 700; cursor: pointer; }
.request-inline { width: 100%; height: 42px; border: 0; background: transparent; color: var(--blue); cursor: pointer; }

.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: #f3f5f6;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--amber);
}
.footer-main {
  min-height: 158px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 340px;
  gap: 38px;
  align-items: center;
  padding: 26px 0 22px;
}
.footer-brand {
  width: 225px;
  height: 76px;
  display: flex;
  align-items: center;
}
.footer-brand img {
  width: 220px;
  height: 72px;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
}
.footer-summary { display: grid; gap: 6px; min-width: 0; }
.footer-summary strong { font-size: 20px; font-weight: 650; }
.footer-summary span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.footer-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
}
.footer-contact > span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-contact a {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.footer-contact button {
  height: 46px;
  padding: 0 17px;
  border: 1px solid #e8aa00;
  border-radius: 6px;
  background: var(--amber);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.footer-contact button:hover { background: #ffbf18; }
.footer-bottom {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 112px;
  border-top: 1px solid #dfe3e7;
  color: var(--muted);
  font-size: 13px;
}
.footer-bottom a { color: var(--ink); font-weight: 600; text-decoration: none; }

@media (max-width: 1424px) {
  .header-inner { grid-template-columns: 215px 300px 1fr 175px 125px; gap: 8px; }
  .certificate { width: 48px; }
  .catalog-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 18px; }
  .grade-sidebar { padding-right: 18px; }
  .column-heads,
  .product-card { grid-template-columns: minmax(265px, 1.15fr) minmax(180px, .9fr) 145px 100px 100px 42px 46px; }
  .product-main { grid-template-columns: 78px minmax(0, 1fr); padding-inline: 5px; }
  .product-main img { width: 74px; height: 74px; }
  .column-heads span:first-child { padding-left: 83px; }
  .catalog-layout.with-details { grid-template-columns: minmax(0, 1fr); gap: 0; padding-right: 408px; }
  .catalog-layout.with-details .grade-sidebar { display: none; }
  .details-panel {
    position: fixed;
    z-index: 18;
    top: 92px;
    right: 16px;
    bottom: auto;
    width: 390px;
    height: calc(100vh - 108px);
    max-height: calc(100vh - 108px);
    align-self: auto;
  }
}

@media (max-width: 1250px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { grid-template-columns: 215px 300px 1fr 175px 125px; gap: 8px; }
  .certificate { width: 48px; }
  .catalog-head { grid-template-columns: 585px 1fr; }
  .catalog-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 18px; }
  .grade-sidebar { padding-right: 18px; }
  .column-heads,
  .product-card { grid-template-columns: minmax(260px, 1.15fr) minmax(190px, .9fr) 140px 100px 100px 42px 46px; }
  .product-main { grid-template-columns: 78px minmax(0, 1fr); padding-inline: 5px; }
  .product-main img { width: 74px; height: 74px; }
  .column-heads span:first-child { padding-left: 83px; }
  .catalog-layout.with-details { grid-template-columns: minmax(0, 1fr); gap: 0; padding-right: 408px; }
  .details-panel {
    position: fixed;
    z-index: 18;
    top: 92px;
    right: 16px;
    bottom: auto;
    width: 390px;
    height: calc(100vh - 108px);
    max-height: calc(100vh - 108px);
    align-self: auto;
  }
  .footer-main { grid-template-columns: 220px minmax(0, 1fr) 320px; gap: 24px; }
  .footer-brand { width: 200px; }
  .footer-brand img { width: 195px; }
}

@media (max-width: 1100px) {
  .site-header { height: 124px; }
  .header-inner { grid-template-columns: 182px 238px 1fr 152px 108px; gap: 7px; }
  .brand { width: 180px; height: 70px; }
  .brand img { width: 176px; height: 63px; }
  .certificates { height: 56px; gap: 4px; padding-left: 6px; }
  .certificate { width: 38px; height: 48px; display: block; }
  .certificate img { width: 38px; height: 38px; }
  .certificate span { display: none; }
  .phone { font-size: 15px; }
  .request-button { height: 48px; font-size: 14px; }
  .request-button span { width: 24px; height: 24px; margin-left: 4px; }
  .catalog-page { padding-top: 28px; }
  .catalog-head { grid-template-columns: 520px 1fr; gap: 16px; }
  .catalog-title-line { gap: 14px; }
  .catalog-title-line h1 { font-size: 24px; }
  .catalog-title-line span { display: none; }
  .shape-button { padding-inline: 4px; }
  .shape-button strong { font-size: 14px; }
  .filter-bar { flex-wrap: wrap; padding: 10px 0; }
  .filter-spacer { display: none; }
  .result-count { margin-left: auto; }
  .catalog-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 16px; }
  .column-heads,
  .product-card { grid-template-columns: minmax(225px, 1.1fr) minmax(140px, .85fr) 115px 80px 80px 36px 40px; }
  .product-main { grid-template-columns: 62px minmax(0, 1fr); }
  .product-main img { width: 60px; height: 60px; }
  .column-heads { font-size: 11px; }
  .column-heads span:first-child { padding-left: 67px; }
  .product-characteristics, .product-stock, .product-price { padding-inline: 6px; font-size: 12px; }
  .product-stock strong, .product-price strong { font-size: 13px; }
  .add-button { width: 34px; height: 44px; }
  .doc-icon { transform: scale(.82); }
  .grade-entry { grid-template-columns: minmax(0, 1fr) 32px; padding-left: 6px; }
  .catalog-layout.with-details { padding-right: 376px; }
  .catalog-layout.with-details .column-heads,
  .catalog-layout.with-details .product-card { grid-template-columns: minmax(255px, 1fr) 90px 115px 52px; }
  .catalog-layout.with-details .column-heads span:first-child { padding-left: 67px; }
  .catalog-layout.with-details .product-main { grid-template-columns: 62px minmax(0, 1fr); }
  .catalog-layout.with-details .product-stock,
  .catalog-layout.with-details .product-price { padding-inline: 6px; }
  .details-panel { right: 12px; width: 360px; }
  .footer-main { grid-template-columns: 185px minmax(0, 1fr) 292px; gap: 18px; }
  .footer-brand { width: 175px; height: 66px; }
  .footer-brand img { width: 170px; height: 62px; }
  .footer-summary strong { font-size: 18px; }
  .footer-contact { gap: 7px 10px; }
  .footer-contact a { font-size: 16px; }
  .footer-contact button { padding-inline: 12px; font-size: 12px; }
}

@media print {
  .site-header { position: static; }
}

/* Refined catalog concept: compact price rows, explicit details and manufacturing. */
.catalog-modes {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(310px, 1fr) minmax(300px, 1.05fr);
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}

.catalog-mode {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 17px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.catalog-mode:hover { background: #fbfcfd; }
.catalog-mode.active { position: relative; background: var(--amber-soft); box-shadow: inset 0 0 0 2px var(--amber); z-index: 1; }
.catalog-mode b { min-width: 42px; color: #4f5864; font-size: 14px; text-align: right; }
.mode-copy { min-width: 0; display: grid; gap: 2px; }
.mode-copy strong { font-size: 17px; }
.mode-copy small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.mode-mark { position: relative; width: 31px; height: 31px; display: block; border-radius: 50%; }
.stock-mark { border: 1px solid #acd8c6; background: #effaf5; }
.stock-mark::before { content: ""; position: absolute; left: 10px; top: 9px; width: 9px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.manufacture-mark { border: 1px solid #f2cf7a; background: #fff9e8; }
.manufacture-mark::before,
.manufacture-mark::after { content: ""; position: absolute; border: 2px solid #9b7420; border-radius: 50%; }
.manufacture-mark::before { inset: 8px; }
.manufacture-mark::after { inset: 12px; background: #9b7420; }
.mode-arrow { width: 10px; height: 10px; margin-right: 5px; border-top: 1.5px solid #59636f; border-right: 1.5px solid #59636f; transform: rotate(45deg); }
.mode-explanation { min-width: 0; display: flex; align-items: center; margin: 0; padding: 14px 20px; color: #59626d; font-size: 13px; line-height: 1.45; }
.mode-explanation strong { margin-right: 4px; color: var(--ink); }

.manufacture-size {
  position: relative;
  width: 255px;
  height: 50px;
  display: block;
}
.manufacture-size > span { position: absolute; z-index: 1; top: 6px; left: 13px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; pointer-events: none; }
.manufacture-size input { width: 100%; height: 50px; padding: 17px 13px 3px; border: 1px solid var(--amber); border-radius: 6px; outline: none; background: #fffdfa; font-weight: 600; }
.manufacture-size input:focus { box-shadow: 0 0 0 3px rgb(255 176 0 / 12%); }
.manufacture-mode .shape-button.active { background: #fffaf0; }
.manufacture-mode .result-count strong { color: #8c6500; }

.column-heads {
  height: 38px;
  grid-template-columns: minmax(215px, 1.35fr) minmax(160px, .9fr) 105px 130px 115px 130px 126px;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.column-heads span { padding: 0 10px; }
.column-heads span:first-child { padding-left: 12px; }
.column-heads .head-action { text-align: center; }

.product-group { margin-bottom: 30px; }
.group-title { min-height: 58px; font-size: 20px; }
.group-title img { width: 44px; height: 44px; }
.product-list { border-radius: 7px; }
.product-entry { position: relative; border-bottom: 1px solid var(--line); background: #fff; }
.product-entry:last-child { border-bottom: 0; }
.product-card.price-row {
  min-height: 78px;
  grid-template-columns: minmax(215px, 1.35fr) minmax(160px, .9fr) 105px 130px 115px 130px 126px;
  border: 0;
  background: transparent;
}
.product-card.price-row:hover { background: #fafbfc; }
.product-card.price-row.selected { background: #fffdf7; box-shadow: inset 3px 0 0 var(--amber); }
.product-card.price-row:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }

.product-card.price-row .product-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
}
.product-card.price-row .product-main img { width: 46px; height: 46px; object-fit: cover; mix-blend-mode: multiply; }
.product-card.price-row .position-copy { min-width: 0; display: grid; gap: 1px; }
.product-card.price-row .position-copy small { color: #7c8490; font-size: 10px; letter-spacing: .03em; text-transform: uppercase; }
.product-card.price-row .position-copy strong { overflow: hidden; margin: 0; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.product-card.price-row .position-copy > span { overflow: hidden; color: #4f5863; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.product-dimensions,
.product-card.price-row .product-stock,
.warehouse-cell,
.product-card.price-row .product-price,
.services-cell,
.product-actions { min-width: 0; padding: 9px 10px; font-size: 12px; line-height: 1.35; }
.product-dimensions strong,
.product-card.price-row .product-stock strong,
.warehouse-cell strong,
.product-card.price-row .product-price strong { display: block; overflow: hidden; margin: 0 0 4px; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.product-dimensions span,
.warehouse-cell span,
.product-card.price-row .product-price small { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-card.price-row .product-stock span { display: block; margin: 0; font-size: 11px; }
.mini-doc { position: relative; top: 1px; width: 8px; height: 11px; display: inline-block; border: 1px solid #6d7884; border-radius: 1px; }
.mini-doc::after { content: ""; position: absolute; left: 2px; bottom: 2px; width: 3px; height: 1px; background: #6d7884; box-shadow: 0 -2px 0 #6d7884; }
.services-cell { display: flex; flex-wrap: wrap; align-content: center; gap: 4px; }
.services-cell span { padding: 4px 6px; border: 1px solid #d9dee4; border-radius: 4px; background: #fff; color: #535d68; font-size: 10px; white-space: nowrap; }
.product-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding-left: 4px; }
.details-trigger { min-width: 82px; height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 8px; border: 1px solid #cfd5dc; border-radius: 5px; background: #fff; color: #37414c; font-size: 11px; font-weight: 700; cursor: pointer; }
.details-trigger i { width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s ease; }
.price-row:hover .details-trigger { border-color: var(--amber); }
.price-row.selected .details-trigger { border-color: var(--amber); background: var(--amber); color: var(--ink); }
.price-row.selected .details-trigger i { transform: rotate(135deg); }
.product-card.price-row .add-button { width: 32px; height: 34px; flex: 0 0 auto; border-width: 1px; border-radius: 5px; font-size: 22px; }

.analogue-offer {
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(150px, .72fr) minmax(130px, .65fr) minmax(170px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 12px 8px 18px;
  border-top: 1px solid;
  font-size: 11px;
}
.analogue-offer.available { border-color: #f0c45c; background: var(--amber-soft); }
.analogue-offer.unavailable { grid-template-columns: 34px minmax(220px, 1fr) minmax(180px, 1fr) auto; border-color: #e1e4e8; background: #f5f6f7; color: #7d858e; }
.analogue-symbol { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 19px; font-weight: 700; }
.available .analogue-symbol { color: #9b6d00; background: #fff; }
.analogue-copy { min-width: 0; display: grid; gap: 1px; }
.analogue-copy small { color: #7b6740; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.analogue-copy strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.analogue-relation { color: #6d5c36; font-weight: 700; }
.analogue-note { color: #786f5e; line-height: 1.35; }
.analogue-offer button { min-width: 155px; height: 34px; padding: 0 12px; border: 1px solid var(--amber); border-radius: 5px; background: #fff; color: #5e470d; font-size: 10px; font-weight: 700; cursor: pointer; }
.analogue-offer button i { width: 6px; height: 6px; display: inline-block; margin-left: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.analogue-offer button:disabled { border-color: #d8dde2; background: #eceff1; color: #9299a1; cursor: default; }
.analogue-offer button.checked { background: var(--amber); color: var(--ink); }

.manufacture-intro { min-height: 78px; display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; margin: 0 0 12px; padding: 14px 18px; border: 1px solid #f0c45c; border-radius: 7px; background: #fff; }
.manufacture-intro > span { display: inline-flex; align-items: center; justify-content: center; height: 30px; border-radius: 20px; background: var(--amber); font-size: 10px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.manufacture-intro strong { display: block; margin-bottom: 3px; font-size: 14px; }
.manufacture-intro p { margin: 0; color: var(--muted); font-size: 12px; }
.manufacture-row .position-copy small { color: #967000 !important; }
.manufacture-status strong { color: #846000; }
.manufacture-status strong { line-height: 1.1; white-space: normal !important; }
.manufacture-status span { color: var(--muted); }

.group-more { width: 100%; min-height: 54px; display: grid; grid-template-columns: 1fr auto 18px; gap: 12px; align-items: center; padding: 8px 15px 8px 68px; border: 0; border-top: 1px solid var(--line); background: #fafbfc; color: #3e4853; text-align: left; cursor: pointer; }
.group-more:hover { background: var(--amber-soft); }
.group-more span { font-size: 12px; font-weight: 700; }
.group-more small { color: var(--muted); font-size: 10px; }
.group-more i { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }

.catalog-layout.with-details { grid-template-columns: 250px minmax(0, 1fr) 390px; gap: 20px; }
.catalog-layout.with-details .column-heads,
.catalog-layout.with-details .product-card.price-row { grid-template-columns: minmax(190px, 1.35fr) minmax(130px, .9fr) 88px 98px 116px; }
.catalog-layout.with-details .product-card.price-row { grid-template-rows: minmax(78px, auto); }
.catalog-layout.with-details .column-heads span { display: block; grid-row: 1; padding: 0 8px; font-size: 11px; text-align: left; }
.catalog-layout.with-details .head-warehouse,
.catalog-layout.with-details .head-services,
.catalog-layout.with-details .warehouse-cell,
.catalog-layout.with-details .services-cell { display: none; }
.catalog-layout.with-details .head-position { grid-column: 1; padding-left: 10px; }
.catalog-layout.with-details .head-size { grid-column: 2; }
.catalog-layout.with-details .head-stock { grid-column: 3; }
.catalog-layout.with-details .head-price { grid-column: 4; }
.catalog-layout.with-details .head-action { grid-column: 5; text-align: center; }
.catalog-layout.with-details .column-heads span:nth-child(4)::after,
.catalog-layout.with-details .column-heads span:nth-child(6)::after { content: none; }
.catalog-layout.with-details .product-card.price-row .product-main { grid-column: 1; grid-row: auto; grid-template-columns: 42px minmax(0, 1fr); padding-inline: 8px; }
.catalog-layout.with-details .product-card.price-row .product-main img { width: 38px; height: 38px; }
.catalog-layout.with-details .product-dimensions { grid-column: 2; }
.catalog-layout.with-details .product-stock { grid-column: 3; grid-row: auto; }
.catalog-layout.with-details .product-price { grid-column: 4; grid-row: auto; border: 0; }
.catalog-layout.with-details .product-actions { grid-column: 5; grid-row: auto; }
.catalog-layout.with-details .product-actions .add-button { display: none; }
.catalog-layout.with-details .analogue-offer { grid-template-columns: 30px minmax(130px, .7fr) minmax(120px, .65fr) 1fr auto; padding-left: 12px; }
.catalog-layout.with-details .analogue-note { display: none; }
.catalog-layout.with-details .analogue-offer.unavailable { grid-template-columns: 30px minmax(180px, 1fr) 1fr auto; }

.details-panel { top: 94px; max-height: calc(100vh - 110px); border-radius: 8px; }
.details-inner { padding: 22px; }
.panel-kicker,
.section-kicker { display: block; margin-bottom: 7px; color: #8a6a16; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.details-top h2 { font-size: 28px; }
.details-top p { margin-bottom: 10px; color: #4f5863; font-size: 15px; }
.manager-action { height: 50px; background: var(--amber); color: var(--ink); }
.manager-secondary { width: 100%; height: 40px; border: 1px solid #cfd5dc; border-radius: 6px; background: #fff; color: #38434f; font-size: 12px; font-weight: 700; cursor: pointer; }
.details-section { padding: 18px 0; }
.details-section h3 { margin-bottom: 13px; font-size: 18px; }
.detail-grid { grid-template-columns: 100px 1fr; gap: 9px 12px; font-size: 13px; }
.cert-link { font-size: 12px; cursor: pointer; }
.cert-link .doc-icon { width: 16px; height: 21px; transform: scale(.75); }

.services-section { border-top: 1px solid var(--line); }
.service-options { display: grid; gap: 7px; }
.service-choice { min-height: 58px; display: grid; grid-template-columns: 34px minmax(0, 1fr) 24px; gap: 9px; align-items: center; padding: 8px 9px; border: 1px solid #d8dde3; border-radius: 6px; background: #fff; text-align: left; cursor: pointer; }
.service-choice:hover { border-color: var(--amber); }
.service-choice.selected { border-color: var(--amber); background: var(--amber-soft); }
.service-choice > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.service-choice strong { font-size: 13px; }
.service-choice small { color: var(--muted); font-size: 10px; }
.service-choice > i { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--amber); border-radius: 4px; color: #876200; font-style: normal; font-size: 16px; }
.service-glyph { position: relative; width: 31px; height: 31px; display: block; border-radius: 50%; background: #f4f6f8; }
.cut-glyph::before { content: ""; position: absolute; left: 8px; right: 8px; top: 14px; border-top: 2px dashed #59636f; transform: rotate(-30deg); }
.turn-glyph::before { content: ""; position: absolute; left: 7px; top: 9px; width: 17px; height: 12px; border: 1.5px solid #59636f; border-radius: 50%; }
.turn-glyph::after { content: ""; position: absolute; left: 15px; top: 7px; width: 1px; height: 17px; background: #59636f; }

.manufacture-from-card,
.manufacture-request { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 5px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; }
.manufacture-from-card i,
.manufacture-request i { width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.compact-knowledge { margin-top: 18px; }
.manufacture-badge { display: inline-flex; min-height: 28px; align-items: center; padding: 0 9px; border: 1px solid #efc45a; border-radius: 20px; background: var(--amber-soft); color: #725300; font-size: 10px; font-weight: 700; }
.manufacture-checklist { margin-top: 2px; }
.manufacture-request { background: var(--amber); color: var(--ink); }

@media (max-width: 1424px) {
  .catalog-modes { grid-template-columns: minmax(260px, .9fr) minmax(290px, 1fr) minmax(270px, 1fr); }
  .catalog-layout.with-details { display: block; padding-right: 408px; }
  .catalog-layout.with-details .grade-sidebar { display: none; }
  .details-panel { position: fixed; z-index: 18; top: 92px; right: 16px; width: 390px; height: calc(100vh - 108px); max-height: calc(100vh - 108px); }
}

@media (max-width: 1250px) {
  .catalog-modes { grid-template-columns: minmax(240px, .9fr) minmax(270px, 1fr) minmax(240px, .95fr); }
  .mode-explanation { padding-inline: 14px; font-size: 11px; }
  .column-heads,
  .product-card.price-row { grid-template-columns: minmax(205px, 1.25fr) minmax(145px, .9fr) 92px 115px 100px 112px 118px; }
}

@media (max-width: 1100px) {
  .catalog-modes { grid-template-columns: 1fr 1fr; }
  .mode-explanation { grid-column: 1 / -1; min-height: 44px; border-top: 1px solid var(--line); }
  .column-heads,
  .product-card.price-row { grid-template-columns: minmax(210px, 1.3fr) minmax(145px, .9fr) 90px 105px 116px; }
  .head-warehouse,
  .head-services,
  .warehouse-cell,
  .services-cell { display: none; }
  .head-position { grid-column: 1; }
  .head-size { grid-column: 2; }
  .head-stock { grid-column: 3; }
  .head-price { grid-column: 4; }
  .head-action { grid-column: 5; }
  .product-main { grid-column: 1; }
  .product-dimensions { grid-column: 2; }
  .product-stock { grid-column: 3; }
  .product-price { grid-column: 4; }
  .product-actions { grid-column: 5; }
  .catalog-layout.with-details { padding-right: 374px; }
  .details-panel { right: 12px; width: 360px; }
  .analogue-offer { grid-template-columns: 30px minmax(130px, .8fr) 1fr auto; }
  .analogue-note { display: none; }
}

/* Catalog navigation and regional search. */
.header-inner {
  grid-template-columns: 205px 360px minmax(168px, 1fr) 218px 126px;
  gap: 14px;
}

.phone-cluster {
  display: grid;
  gap: 5px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.phone-cluster a {
  min-width: 0;
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr);
  gap: 7px;
  align-items: baseline;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.phone-cluster small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
  text-overflow: ellipsis;
}
.phone-cluster span { font-size: 13px; font-weight: 750; }
.phone-cluster a:hover span { color: #9a6c00; }

.catalog-head {
  grid-template-columns: minmax(0, 1.08fr) minmax(520px, .92fr);
  gap: 30px;
}
.catalog-title-line { gap: 18px; }
.catalog-title-line h1 { font-size: 27px; }
.catalog-title-line strong { flex: 0 0 auto; }

.search-tools {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 8px;
  align-items: stretch;
}
.search-tools .global-search { min-width: 0; }
.search-tools .global-search input { height: 58px; padding-right: 14px; }
.city-filter { position: relative; min-width: 0; }
.city-filter-toggle {
  width: 100%;
  height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px;
  grid-template-rows: 18px 22px;
  align-content: center;
  padding: 6px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.city-filter-toggle:hover,
.city-filter-toggle[aria-expanded="true"] { border-color: var(--amber); }
.city-filter-toggle small {
  grid-column: 1;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.city-filter-toggle strong {
  grid-column: 1;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.city-filter-toggle i {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 8px;
  height: 8px;
  align-self: center;
  border-right: 1.5px solid #59636f;
  border-bottom: 1.5px solid #59636f;
  transform: translateY(-2px) rotate(45deg);
}
.city-filter-toggle[aria-expanded="true"] i { transform: translateY(2px) rotate(225deg); }
.city-filter-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  overflow: hidden;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 14px 36px rgb(22 31 42 / 16%);
}
.city-filter-menu button {
  width: 100%;
  min-height: 35px;
  padding: 0 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #4c5662;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}
.city-filter-menu button:hover { background: #f5f7f9; }
.city-filter-menu button.active { background: var(--amber-soft); color: var(--ink); font-weight: 700; }
.search-tolerance {
  position: absolute;
  right: 1px;
  bottom: -18px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .015em;
  white-space: nowrap;
}
.search-tolerance.active { color: #8b6500; }

.footer-contact { grid-template-columns: minmax(0, 1fr) auto; }
.footer-phones { display: grid; gap: 3px; }
.footer-phones a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 7px;
  align-items: baseline;
}
.footer-phones small { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.footer-phones strong { font-size: 13px; }

@media (max-width: 1424px) {
  .header-inner { grid-template-columns: 190px 334px minmax(150px, 1fr) 210px 116px; gap: 10px; }
  .certificates { gap: 7px; }
  .phone-cluster { padding-left: 10px; }
  .catalog-head { grid-template-columns: minmax(0, 1fr) minmax(510px, .9fr); gap: 24px; }
}

@media (max-width: 1350px) {
  .column-heads,
  .product-card.price-row {
    grid-template-columns: minmax(195px, 1.25fr) minmax(140px, .9fr) 88px 110px 96px 105px 112px;
  }
}

@media (max-width: 1250px) {
  .header-inner { grid-template-columns: 185px 314px minmax(130px, 1fr) 205px 108px; gap: 8px; }
  .phone-cluster span { font-size: 12px; }
  .catalog-head { grid-template-columns: minmax(0, 1fr) minmax(480px, .9fr); }
  .catalog-title-line h1 { font-size: 24px; }
  .catalog-title-line span { display: none; }
}

@media (max-width: 1100px) {
  .header-inner { grid-template-columns: 170px 278px minmax(118px, 1fr) 194px 100px; gap: 7px; }
  .phone-cluster { grid-template-columns: 1fr; gap: 3px; padding-left: 8px; }
  .phone-cluster a { grid-template-columns: 45px minmax(0, 1fr); gap: 4px; }
  .phone-cluster span { font-size: 11px; }
  .catalog-head { grid-template-columns: minmax(0, 1fr) minmax(430px, .9fr); }
  .catalog-title-line h1 { max-width: 410px; font-size: 22px; line-height: 1.1; white-space: normal; }
  .catalog-title-line strong { display: none; }
  .search-tools { grid-template-columns: minmax(0, 1fr) 160px; }
  .footer-contact button { font-size: 11px; }
}

/* Strict visual alignment with the approved catalog reference. */
.site-header { height: 108px; }
.header-inner { grid-template-columns: 205px 330px minmax(168px, 1fr) 218px 126px; gap: 14px; }
.brand { width: 200px; height: 72px; }
.brand img { width: 196px; height: 68px; }

.city-nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
}
.city-nav a {
  position: relative;
  padding: 13px 0;
  color: #505762;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.city-nav a:hover { color: var(--ink); }
.city-nav a.active { color: var(--ink); font-weight: 700; }
.city-nav a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--amber);
}

.catalog-head {
  grid-template-columns: minmax(0, 1.08fr) minmax(520px, .92fr);
  gap: 26px;
}
.catalog-head::before { background: #fff; box-shadow: none; backdrop-filter: none; }
.catalog-title-line {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  overflow: hidden;
  white-space: normal;
}
.catalog-title-line h1 {
  min-width: 0;
  flex: 0 1 auto;
  font-size: clamp(23px, 1.85vw, 27px);
  line-height: 1.08;
}
.catalog-title-line strong { flex: 0 0 auto; font-size: 15px; }
.catalog-title-line span { display: none; }

.city-filter-menu { box-shadow: none; }

.catalog-modes {
  min-height: 54px;
  display: flex;
  align-items: stretch;
  gap: 28px;
  margin-top: 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  overflow: visible;
}
.catalog-mode {
  position: relative;
  width: auto;
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px;
  align-items: center;
  padding: 0;
  border: 0;
  outline: none;
  background: #fff;
}
.catalog-mode:hover,
.catalog-mode.active { background: #fff; box-shadow: none; }
.catalog-mode.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--amber);
}
.catalog-mode .mode-mark,
.catalog-mode .mode-arrow { display: none; }
.mode-copy { display: block; }
.mode-copy strong { font-size: 15px; }
.mode-copy small { display: none; }
.catalog-mode b { min-width: 0; color: var(--muted); font-size: 12px; font-weight: 500; }
.mode-explanation {
  min-height: 53px;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: 12px;
}
.mode-explanation strong { color: #4f5863; }

.analogue-offer.available { background: var(--amber-soft); }
.manufacture-intro > span {
  border: 1px solid var(--amber);
  border-radius: 3px;
  background: #fff;
}
.manufacture-mode .shape-button.active { background: #fff; }

.details-panel {
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
}
.details-inner { padding: 20px; }
.details-top { padding: 0 30px 18px 0; }
.details-top h2 { font-size: 27px; letter-spacing: -.25px; }
.details-top p { margin-bottom: 9px; font-size: 14px; }
.details-close { top: -2px; font-size: 24px; }
.panel-kicker,
.section-kicker { color: #7b6340; font-size: 9px; }
.details-section { padding: 18px 0; }
.details-section h3 { margin-bottom: 13px; font-size: 18px; }
.detail-grid { grid-template-columns: 105px minmax(0, 1fr); gap: 9px 12px; font-size: 13px; }
.cert-link { margin-top: 17px; font-size: 12px; }

.service-options { gap: 0; border: 1px solid var(--line); border-radius: 5px; }
.service-choice {
  min-height: 52px;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
}
.service-choice:last-child { border-bottom: 0; }
.service-choice:hover,
.service-choice.selected { background: #fff; box-shadow: inset 3px 0 0 var(--amber); }
.service-choice .service-glyph { display: none; }
.service-choice > span:nth-child(2) { grid-column: 1; }
.service-choice > i { grid-column: 2; width: 23px; height: 23px; border-radius: 3px; }

.order-note { border-top: 1px solid var(--line); }
.order-note h3 { margin-bottom: 8px; font-size: 16px; line-height: 1.3; }
.order-note p { color: #5f6873; font-size: 12px; line-height: 1.5; }
.manufacture-from-card {
  width: auto;
  min-height: 36px;
  margin-top: 13px;
  padding: 0 12px;
  border: 1px solid var(--amber);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
}
.compact-knowledge { margin-top: 0; }
.compact-knowledge p { color: #555f69; font-size: 12px; line-height: 1.55; }
.chemistry-section .property-table { margin: 0; font-size: 12px; }
.data-note { margin-top: 10px !important; color: var(--muted); font-size: 10px !important; line-height: 1.45 !important; }
.manufacture-checklist ul { margin: 0; padding-left: 17px; color: #555f69; font-size: 11px; line-height: 1.65; }

.panel-actions {
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.panel-actions .manager-action { height: 48px; border-radius: 4px; }
.panel-actions .manager-secondary { height: 38px; border-radius: 4px; }
.manufacture-badge { border-radius: 3px; background: #fff; }

.site-footer::before { display: none; }

@media (max-width: 1424px) {
  .header-inner { grid-template-columns: 190px 305px minmax(150px, 1fr) 208px 116px; gap: 10px; }
  .city-nav { gap: 24px; }
  .catalog-head { grid-template-columns: minmax(0, 1fr) minmax(500px, .92fr); gap: 22px; }
}

@media (max-width: 1250px) {
  .header-inner { grid-template-columns: 180px 280px minmax(132px, 1fr) 202px 108px; gap: 8px; }
  .city-nav { gap: 19px; }
  .catalog-head { grid-template-columns: minmax(0, 1fr) minmax(470px, .92fr); }
  .catalog-title-line h1 { font-size: 23px; }
}

@media (max-width: 1100px) {
  .site-header { height: 108px; }
  .header-inner { grid-template-columns: 170px 220px minmax(150px, 1fr) 185px 100px; gap: 7px; }
  .city-nav { gap: 13px; }
  .city-nav a { font-size: 12px; }
  .catalog-head { grid-template-columns: minmax(0, 1fr) minmax(430px, .95fr); }
  .catalog-title-line h1 { max-width: none; font-size: 21px; white-space: normal; }
  .catalog-title-line strong { display: none; }
  .mode-explanation { max-width: 420px; }
}

/* ORBITA implementation layer: the approved visual language is preserved. */
html { min-width: 0; }

.search-stack { min-width: 0; display: grid; gap: 7px; }
.quick-routes {
  min-width: 0;
  min-height: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
}
.quick-routes > span { flex: 0 0 auto; font-weight: 700; }
.quick-routes button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid #aeb5bd;
  background: transparent;
  color: #3f4954;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.quick-routes button:hover { border-color: var(--amber); color: var(--ink); }
.quick-routes small { overflow: hidden; margin-left: auto; text-overflow: ellipsis; white-space: nowrap; }

.compact-filter {
  position: relative;
  width: 205px;
  height: 48px;
  display: block;
}
.compact-filter > span {
  position: absolute;
  z-index: 1;
  top: 5px;
  left: 12px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
  pointer-events: none;
}
.compact-filter select {
  width: 100%;
  height: 48px;
  padding: 16px 30px 2px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  outline: none;
  background: #fff;
  color: #37414c;
  font-size: 11px;
  font-weight: 650;
}
.compact-filter select:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgb(255 176 0 / 12%); }
.sort-filter { width: 175px; }

.match-label { font-size: 8px; font-weight: 800; letter-spacing: .025em; }
.match-label.exact { color: var(--green); }
.match-label.machining { color: #8a6500; }
.match-label.smaller { color: #a14e3e; }
.add-button.added { border-color: #9bcdb9 !important; background: #edf9f4 !important; color: var(--green); font-size: 15px !important; }

.decision-strip {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  margin: 0 0 12px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--amber);
  border-radius: 5px;
  background: #fff;
}
.decision-strip > div { min-width: 0; display: grid; gap: 2px; }
.decision-strip > div small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.decision-strip > div strong { font-size: 13px; }
.decision-strip dl { display: flex; gap: 15px; margin: 0; }
.decision-strip dl div { display: grid; gap: 1px; text-align: center; }
.decision-strip dt { color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.decision-strip dd { margin: 0; font-size: 14px; font-weight: 800; }
.decision-strip button,
.empty-result button,
.assistant-result button,
.assistant-evaluate {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--amber);
  border-radius: 4px;
  background: #fff;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}
.decision-strip button:hover,
.empty-result button:hover,
.assistant-result button:hover,
.assistant-evaluate:hover { background: var(--amber-soft); }

.empty-result { padding: 42px; border: 1px solid var(--line); border-radius: 6px; text-align: center; }
.empty-result > span { color: #8a6500; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.empty-result h2 { margin: 8px 0; font-size: 20px; }
.empty-result p { max-width: 620px; margin: 0 auto 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.empty-result > div { display: flex; justify-content: center; gap: 8px; }

.panel-match { display: block; margin: 1px 0 8px; font-size: 10px; }
.panel-match.exact { color: var(--green); }
.panel-match.machining { color: #806000; }
.panel-match.smaller { color: #9e4d3f; }
.details-panel { scrollbar-width: thin; }
.details-inner { overflow-wrap: anywhere; }
.detail-grid dd { line-height: 1.4; }

.panel-form { display: grid; gap: 9px; }
.panel-form.two-columns { grid-template-columns: 1fr 1fr; }
.panel-form label { min-width: 0; display: grid; gap: 4px; }
.panel-form label > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.panel-form input,
.panel-form select,
.panel-form textarea {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
}
.panel-form textarea { min-height: 76px; padding-block: 9px; resize: vertical; }
.panel-form input:focus,
.panel-form select:focus,
.panel-form textarea:focus { border-color: var(--amber); box-shadow: 0 0 0 2px rgb(255 176 0 / 10%); }
.panel-form .wide { grid-column: 1 / -1; }
.delivery-status { display: grid; gap: 3px; margin-top: 10px; padding: 10px; border-left: 3px solid var(--amber); background: #fafbfc; }
.delivery-status small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.delivery-status strong { font-size: 11px; }
.delivery-status span { color: var(--muted); font-size: 9px; line-height: 1.4; }

.service-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 9px 10px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.service-fields label { display: grid; gap: 3px; }
.service-fields span { color: var(--muted); font-size: 8px; }
.service-fields input { width: 100%; height: 34px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 3px; outline: none; background: #fff; font-size: 10px; }
.service-fields input:focus { border-color: var(--amber); }
.action-assurance { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; text-align: center; }

.form-progress { display: grid; gap: 7px; margin-bottom: 13px; }
.form-progress > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.form-progress small { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.form-progress strong { font-size: 12px; }
.form-progress > span { height: 4px; overflow: hidden; background: #e7eaee; }
.form-progress > span i { height: 100%; display: block; background: var(--amber); transition: width .15s ease; }
.form-progress p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.manufacture-form { grid-template-columns: 1fr; }
.file-field input { height: auto; min-height: 40px; padding: 7px; }
.file-field small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.manufacture-checklist ol { margin: 0; padding-left: 18px; color: #555f69; font-size: 10px; line-height: 1.55; }

.assistant-panel-inner .details-top p { line-height: 1.5; }
.assistant-form { grid-template-columns: 1fr; }
.assistant-evaluate { width: 100%; margin-top: 10px; background: var(--ink); border-color: var(--ink); color: #fff; }
.assistant-evaluate:hover { background: #30363e; }
.assistant-result { border-top: 1px solid var(--line); border-left: 3px solid var(--amber); padding-left: 13px; }
.assistant-result > span { color: #7b6340; font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.assistant-result h3 { margin: 5px 0 7px; font-size: 16px; }
.assistant-result p { color: #555f69; font-size: 11px; line-height: 1.5; }
.assistant-result > div { display: grid; gap: 6px; }
.assistant-rules ul { margin: 0; padding-left: 17px; color: #555f69; font-size: 10px; line-height: 1.6; }

.request-backdrop { position: fixed; z-index: 70; inset: 0; background: rgb(22 27 33 / 32%); }
.request-drawer {
  position: fixed;
  z-index: 71;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(680px, 100vw);
  overflow: auto;
  border-left: 1px solid var(--line-strong);
  background: #fff;
  box-shadow: -12px 0 40px rgb(20 28 38 / 12%);
}
.request-drawer-head {
  position: sticky;
  z-index: 2;
  top: 0;
  min-height: 92px;
  display: grid;
  grid-template-columns: 1fr 36px;
  gap: 12px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.request-drawer-head > div { display: grid; gap: 3px; }
.request-drawer-head span { color: #806000; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.request-drawer-head h2 { margin: 0; font-size: 19px; line-height: 1.2; }
.request-drawer-head button { width: 34px; height: 34px; border: 0; background: transparent; font-size: 26px; cursor: pointer; }
.request-drawer-body { padding: 20px 22px 38px; }
.bulk-entry { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.bulk-entry > div { display: grid; gap: 2px; }
.bulk-entry > div span { font-size: 12px; font-weight: 750; }
.bulk-entry > div small { color: var(--muted); font-size: 9px; }
.bulk-entry textarea { grid-column: 1 / -1; min-height: 82px; padding: 9px; border: 1px solid var(--line-strong); border-radius: 4px; outline: none; resize: vertical; font: inherit; font-size: 11px; }
.bulk-entry textarea:focus { border-color: var(--amber); }
.bulk-entry button { grid-column: 2; min-height: 34px; padding: 0 12px; border: 1px solid var(--amber); border-radius: 4px; background: #fff; font-size: 10px; font-weight: 750; cursor: pointer; }
.request-lines-section { padding: 20px 0; border-bottom: 1px solid var(--line); }
.request-lines-section > header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.request-lines-section h3,
.request-contact-section h3 { margin: 0; font-size: 16px; }
.request-lines-section > header span { color: var(--muted); font-size: 10px; }
.request-line { display: grid; grid-template-columns: 66px minmax(0, 1fr) 88px 28px; gap: 9px; align-items: center; padding: 10px 0; border-top: 1px solid #edf0f3; }
.request-line-code { display: grid; gap: 2px; }
.request-line-code small { font-size: 9px; font-weight: 800; }
.request-line-code span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.request-line-copy { min-width: 0; display: grid; gap: 2px; }
.request-line-copy strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.request-line-copy span,
.request-line-copy small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.request-line label { display: grid; gap: 2px; }
.request-line label span,
.request-line-value small { color: var(--muted); font-size: 8px; }
.request-line input { width: 100%; height: 32px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 3px; }
.request-line-value { display: grid; gap: 2px; }
.request-line-value strong { font-size: 10px; }
.request-line > button { width: 28px; height: 28px; border: 0; background: transparent; color: #7d858e; font-size: 20px; cursor: pointer; }
.request-empty { padding: 25px; border: 1px dashed var(--line-strong); text-align: center; }
.request-empty strong { font-size: 12px; }
.request-empty p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.request-contact-section { display: grid; gap: 12px; padding-top: 20px; }
.request-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.request-contact-grid label { display: grid; gap: 3px; }
.request-contact-grid span { color: var(--muted); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.request-contact-grid input,
.request-contact-grid select { width: 100%; height: 38px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 10px; }
.request-assurance { display: grid; gap: 2px; padding: 10px; border-left: 3px solid var(--amber); background: #fafbfc; }
.request-assurance strong { font-size: 11px; }
.request-assurance span { color: var(--muted); font-size: 9px; line-height: 1.4; }
.request-submit { min-height: 46px; border: 0; border-radius: 4px; background: var(--amber); font-size: 11px; font-weight: 800; cursor: pointer; }
.request-submit:disabled { background: #e5e8eb; color: #8b929a; cursor: default; }
.request-contact-section > p { margin: -5px 0 0; color: var(--muted); font-size: 8px; text-align: center; }
.request-ready { padding: 52px 22px; text-align: center; }
.request-ready > span { color: #806000; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.request-ready h3 { margin: 8px 0; font-size: 22px; }
.request-ready p { color: var(--muted); font-size: 11px; line-height: 1.55; }
.request-ready ol { display: inline-grid; gap: 5px; margin: 15px auto; padding-left: 20px; color: #4f5863; font-size: 10px; text-align: left; }
.request-ready button { min-height: 38px; padding: 0 13px; border: 1px solid var(--amber); border-radius: 4px; background: #fff; font-size: 10px; font-weight: 750; cursor: pointer; }
.request-open { overflow: hidden; }
.request-button.has-items { border-color: var(--amber); }

.toast {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  padding: 12px 15px;
  border-left: 3px solid var(--amber);
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 30px rgb(20 28 38 / 18%);
  font-size: 11px;
}

@media (max-width: 1100px) {
  .quick-routes small { display: none; }
  .compact-filter { width: 180px; }
  .sort-filter { width: 160px; }
  .decision-strip { grid-template-columns: minmax(220px, 1fr) auto; }
  .decision-strip dl { display: none; }
}

@media (max-width: 900px) {
  .shell { width: min(100% - 24px, 720px); }
  .site-header { height: 72px; }
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
  .brand { width: 170px; height: 60px; }
  .brand img { width: 165px; height: 58px; }
  .city-nav,
  .certificates,
  .phone-cluster { display: none; }
  .request-button { height: 42px; }
  .catalog-page { padding-top: 18px; }
  .catalog-head { position: relative; top: auto; display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 0; padding: 0 0 14px; }
  .catalog-head::before { display: none; }
  .catalog-title-line h1 { font-size: 22px; }
  .search-stack { grid-column: 1; }
  .quick-routes { flex-wrap: wrap; }
  .catalog-modes { gap: 18px; overflow-x: auto; }
  .mode-explanation { display: none; }
  .shape-strip { height: 116px; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 112px; overflow-x: auto; overflow-y: hidden; }
  .shape-button img { width: 78px; height: 78px; margin: -2px auto -3px; }
  .shape-button strong { font-size: 12px; }
  .filter-bar { align-items: stretch; gap: 7px; padding: 10px 0; overflow-x: auto; }
  .compact-filter,
  .manufacture-size { flex: 0 0 185px; }
  .result-count { align-self: center; margin-left: auto; }
  .active-filter-row { height: auto; min-height: 58px; overflow-x: auto; }
  .catalog-layout,
  .catalog-layout.with-details { display: block; padding: 16px 0 0; }
  .grade-sidebar { display: none; }
  .column-heads { display: none; }
  .product-group { margin-bottom: 20px; }
  .group-title { min-height: 48px; font-size: 16px; }
  .group-title img { width: 38px; height: 38px; }
  .product-card.price-row,
  .catalog-layout.with-details .product-card.price-row {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px 104px;
    grid-template-rows: auto auto;
  }
  .product-card.price-row .product-main,
  .catalog-layout.with-details .product-card.price-row .product-main { grid-column: 1; grid-row: 1 / 3; }
  .product-dimensions,
  .catalog-layout.with-details .product-dimensions { grid-column: 2; grid-row: 1; }
  .product-stock,
  .catalog-layout.with-details .product-stock { grid-column: 2; grid-row: 2; }
  .product-price,
  .catalog-layout.with-details .product-price { grid-column: 3; grid-row: 1; }
  .product-actions,
  .catalog-layout.with-details .product-actions { grid-column: 3; grid-row: 2; padding: 5px; }
  .warehouse-cell,
  .services-cell { display: none; }
  .catalog-layout.with-details .product-actions .add-button { display: inline-flex; }
  .analogue-offer,
  .catalog-layout.with-details .analogue-offer { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .analogue-relation,
  .analogue-note { display: none; }
  .details-panel {
    position: fixed;
    z-index: 60;
    inset: 0;
    width: auto;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }
  .details-inner { width: min(100%, 620px); margin: 0 auto; padding: 18px; }
  .request-drawer { width: 100%; }
  .site-footer { margin-top: 24px; }
  .footer-main { display: grid; grid-template-columns: 1fr; }
  .footer-brand { display: none; }
}

@media (max-width: 560px) {
  .shell { width: calc(100% - 18px); }
  .catalog-title-line { display: block; }
  .catalog-title-line h1 { font-size: 20px; }
  .catalog-title-line strong { display: inline-block; margin-top: 5px; }
  .search-tools { display: grid; grid-template-columns: 1fr 128px; }
  .search-tools .global-search input { height: 52px; padding-left: 42px; font-size: 12px; }
  .city-filter-toggle { height: 52px; }
  .search-tolerance { display: none; }
  .quick-routes > span { width: 100%; }
  .catalog-modes { min-height: 48px; }
  .catalog-mode { flex: 0 0 auto; }
  .mode-copy strong { font-size: 13px; }
  .product-card.price-row,
  .catalog-layout.with-details .product-card.price-row { grid-template-columns: minmax(0, 1fr) 92px; grid-template-rows: auto auto auto; }
  .product-card.price-row .product-main,
  .catalog-layout.with-details .product-card.price-row .product-main { grid-column: 1; grid-row: 1 / 3; }
  .product-dimensions,
  .catalog-layout.with-details .product-dimensions { grid-column: 2; grid-row: 1; }
  .product-stock,
  .catalog-layout.with-details .product-stock { grid-column: 2; grid-row: 2; }
  .product-price,
  .catalog-layout.with-details .product-price { grid-column: 1; grid-row: 3; padding-left: 12px; }
  .product-actions,
  .catalog-layout.with-details .product-actions { grid-column: 2; grid-row: 3; }
  .decision-strip { grid-template-columns: 1fr; gap: 8px; }
  .decision-strip button { width: 100%; }
  .panel-form.two-columns,
  .service-fields,
  .request-contact-grid { grid-template-columns: 1fr; }
  .panel-form .wide { grid-column: 1; }
  .request-drawer-head { padding-inline: 14px; }
  .request-drawer-body { padding-inline: 14px; }
  .request-line { grid-template-columns: 54px minmax(0, 1fr) 28px; }
  .request-line label,
  .request-line-value { grid-column: 2; }
  .request-line > button { grid-column: 3; grid-row: 1; }
  .toast { right: 10px; bottom: 10px; left: 10px; max-width: none; }
  .footer-summary { display: none; }
}

/* Compact catalog refinement: strict, single-purpose and without visual restyling. */
.catalog-head {
  grid-template-columns: minmax(420px, 1fr) minmax(610px, .95fr);
  gap: 22px;
  margin-top: -8px;
  padding: 8px 0;
}
.catalog-head::before { box-shadow: 0 5px 14px rgb(22 31 42 / 3%); }
.search-stack { position: relative; display: block; }
.search-tools {
  grid-template-columns: minmax(260px, 1fr) 150px 126px;
  gap: 6px;
}
.search-tools .global-search input,
.city-filter-toggle { height: 48px; border-radius: 5px; }
.search-tools .global-search input { padding-left: 43px; font-size: 12px; }
.search-tools .search-icon { left: 15px; transform: translateY(-56%) scale(.9); }
.search-shortcuts {
  height: 48px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}
.search-shortcuts button {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  padding: 0 7px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  color: #414a55;
  font-size: 9px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}
.search-shortcuts button:hover { border-color: var(--amber); color: var(--ink); }
.search-shortcuts i {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: #8a6500;
  font-style: normal;
  font-size: 11px;
  line-height: 1;
}
.search-shortcuts span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-tolerance { display: none; }
.quick-routes { display: none; }

.search-suggestions {
  position: absolute;
  z-index: 45;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  overflow: hidden;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-top: 2px solid var(--amber);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 16px 35px rgb(22 31 42 / 13%);
}
.search-suggestions button {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 6px 9px;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.search-suggestions button:last-child { border-bottom: 0; }
.search-suggestions button:hover { background: #f7f8fa; }
.search-suggestions button > span { color: #7b6340; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.search-suggestions button > strong { min-width: 0; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestions button > small { color: var(--muted); font-size: 9px; white-space: nowrap; }
.search-suggestions .manufacture-suggestion { border-left: 3px solid var(--amber); }
.search-suggestion-empty { display: grid; gap: 2px; padding: 12px; }
.search-suggestion-empty strong { font-size: 11px; }
.search-suggestion-empty span { color: var(--muted); font-size: 9px; }

.catalog-modes {
  min-height: 50px;
  gap: 8px;
  margin-top: 11px;
  border-bottom: 0;
}
.catalog-mode {
  min-width: 216px;
  min-height: 48px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  text-align: left;
}
.catalog-mode:hover { border-color: #aeb6bf; }
.catalog-mode.active {
  border-color: var(--amber);
  background: var(--amber-soft);
  box-shadow: inset 0 0 0 1px var(--amber);
}
.catalog-mode.active::after { display: none; }
.catalog-mode .mode-copy { min-width: 0; display: grid; gap: 1px; }
.catalog-mode .mode-copy strong { font-size: 15px; line-height: 1.05; }
.catalog-mode .mode-copy small { display: block; overflow: hidden; color: var(--muted); font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.catalog-mode b {
  min-width: auto;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: #59626d;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}
.catalog-mode.active b { border-color: #e5bb55; background: #fff; color: #705500; }
.mode-explanation { display: none; }

.shape-strip { margin-top: 12px; }
.filter-bar { min-height: 58px; gap: 8px; }
.compact-filter,
.manufacture-size { height: 42px; }
.compact-filter select,
.manufacture-size input { height: 42px; padding-top: 14px; }
.compact-filter > span,
.manufacture-size > span { top: 4px; }
.filter-reset {
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-bottom: 1px solid #8f98a2;
  background: transparent;
  color: #4d5661;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.filter-reset:hover { border-color: var(--amber); color: var(--ink); }
.active-filter-row { height: 52px; gap: 12px; }
.active-chip { height: 36px; border-radius: 4px; font-size: 10px; }
.active-filter-row .reset-filter { display: none; }

.match-summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
  padding: 7px 11px;
  border-left: 3px solid var(--amber);
  background: #f8f9fa;
  font-size: 10px;
}
.match-summary strong { font-size: 11px; }
.match-summary span { color: var(--muted); }
.instant-manufacture-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 11px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--amber);
  background: #fff;
}
.instant-manufacture-head > div { display: grid; gap: 2px; }
.instant-manufacture-head small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.instant-manufacture-head strong { font-size: 14px; }
.instant-manufacture-head > span { padding: 5px 8px; border: 1px solid var(--amber); border-radius: 3px; font-size: 9px; font-weight: 800; text-transform: uppercase; }

.selected-row-toolbar {
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-top: 0;
  border-left: 3px solid var(--amber);
  background: #fafbfc;
}
.selected-row-summary { min-width: 0; display: grid; gap: 2px; }
.selected-row-summary small { color: #806000; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.selected-row-summary strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.selected-row-actions { display: flex; gap: 6px; }
.selected-row-actions button {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: #fff;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}
.selected-row-actions button:hover { border-color: var(--amber); }
.selected-row-actions .row-primary { border-color: var(--amber); background: var(--amber); }

.details-panel { top: 68px; max-height: calc(100vh - 82px); }
.compact-manufacture-form { border-top: 0; padding-top: 4px; }
.compact-manufacture-form .manufacture-form { grid-template-columns: 1fr 1fr; }
.compact-manufacture-form .wide { grid-column: 1 / -1; }
.panel-actions .manager-action.is-added { border-color: #9bcdb9; background: #edf9f4; color: #08734e; }
.document-actions,
.request-document-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.document-actions button,
.request-document-actions button {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}
.document-actions button:hover,
.request-document-actions button:hover { border-color: var(--amber); }
.request-document-actions button:disabled { color: #9ba2aa; cursor: default; }
.minimal-contact-grid { grid-template-columns: 1fr 1fr; }
.phone-error { margin-top: -6px; color: #a13f31; font-size: 10px; font-weight: 700; }
.request-ready .request-document-actions { max-width: 360px; margin: 18px auto 8px; }

@media (max-width: 1250px) {
  .catalog-head { grid-template-columns: minmax(370px, 1fr) minmax(560px, .95fr); }
  .search-tools { grid-template-columns: minmax(230px, 1fr) 142px 118px; }
  .catalog-mode { min-width: 200px; }
}

@media (max-width: 900px) {
  .catalog-head { grid-template-columns: 1fr; padding-bottom: 10px; }
  .search-tools { grid-template-columns: minmax(0, 1fr) 140px 122px; }
  .catalog-modes { overflow: visible; }
  .catalog-mode { flex: 1 1 0; min-width: 0; }
  .selected-row-toolbar { grid-template-columns: 1fr; }
  .selected-row-actions { display: grid; grid-template-columns: repeat(3, 1fr); }
  .details-panel { top: 0; max-height: none; }
}

@media (max-width: 560px) {
  .search-tools { grid-template-columns: minmax(0, 1fr) 120px; }
  .search-shortcuts { grid-column: 1 / -1; height: 34px; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
  .search-suggestions { top: calc(100% + 5px); }
  .catalog-mode { min-height: 45px; padding: 0 9px; }
  .catalog-mode .mode-copy small { display: none; }
  .catalog-mode b { display: none; }
  .selected-row-actions { grid-template-columns: 1fr; }
  .compact-manufacture-form .manufacture-form,
  .minimal-contact-grid { grid-template-columns: 1fr; }
  .compact-manufacture-form .wide { grid-column: 1; }
  .instant-manufacture-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .search-suggestions button { grid-template-columns: 58px minmax(0, 1fr); }
  .search-suggestions button > small { grid-column: 2; }
}

/* Client review pass: clearer controls, stable geometry and reversible actions. */
.catalog-page { padding-top: 0; }
.catalog-head {
  grid-template-columns: minmax(410px, 1fr) minmax(640px, .98fr);
  gap: 20px;
  margin-top: 0;
  padding: 6px 0;
}
.search-tools { grid-template-columns: minmax(260px, 1fr) 150px 146px; }
.search-tools .global-search input,
.city-filter-toggle,
.search-shortcuts { height: 50px; }
.search-shortcuts { gap: 5px; }
.search-shortcuts button {
  grid-template-columns: 1fr;
  padding: 0 10px;
  border-color: #bfc6ce;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}
.search-shortcuts i { display: none; }
.search-shortcuts span { overflow: visible; text-overflow: clip; }

.catalog-modes {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.catalog-mode {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding-inline: 18px;
}
.catalog-mode .mode-copy strong { font-size: 16px; }
.catalog-mode .mode-copy small { font-size: 10px; }

.shape-button:first-child { border-radius: 8px 0 0 8px; }
.shape-button:last-child { border-radius: 0 8px 8px 0; }
.shape-button:first-child.active { box-shadow: inset 0 0 0 2px var(--amber); }
.shape-button:last-child.active { box-shadow: inset 0 0 0 2px var(--amber); }
.shape-button img,
.group-title img { filter: contrast(1.04) saturate(.55); }

.details-trigger { overflow: visible; }
.details-trigger i {
  position: relative;
  top: -1px;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin: 0 1px 0 2px;
  transform-origin: center;
}
.price-row.selected .details-trigger i { top: 2px; transform: rotate(-45deg); }

input[type="search"]::-webkit-search-cancel-button {
  width: 26px;
  height: 26px;
  margin-right: -3px;
  appearance: none;
  border-radius: 4px;
  background-color: transparent;
  background-image:
    linear-gradient(45deg, transparent 45%, #171a1f 45%, #171a1f 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, #171a1f 45%, #171a1f 55%, transparent 55%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px 12px;
  cursor: pointer;
}
input[type="search"]::-webkit-search-cancel-button:hover { background-color: #f0f2f4; }
input[type="search"]::-webkit-search-cancel-button:active { background-color: #e3e6e9; }
.details-close,
.request-drawer-head > button,
.request-line > button {
  display: grid;
  place-items: center;
  color: #171a1f;
  font-family: Arial, sans-serif;
  font-weight: 400;
  text-decoration: none;
}
.details-close,
.request-drawer-head > button {
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 23px;
}
.details-close:hover,
.request-drawer-head > button:hover { border-color: var(--line-strong); background: #f5f6f7; }
.active-chip span { color: #171a1f; font-weight: 400; }

.request-button {
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 10px 0 14px;
  border-radius: 5px;
  background: #fff;
}
.request-button .request-button-label {
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  line-height: 1;
}
.request-button #requestCount {
  width: auto;
  min-width: 25px;
  height: 24px;
  margin: 0;
  padding: 0 6px;
  border: 1px solid #d5dae0;
  border-radius: 3px;
  background: #eef0f2;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.request-button.has-items { border-color: var(--amber); background: #fff; }
.request-button.has-items #requestCount { border-color: var(--amber); background: var(--amber); }
.add-button.added {
  border-color: var(--amber) !important;
  background: #fff8e9 !important;
  color: #171a1f;
  font-size: 22px !important;
}
.selected-row-actions .row-primary.remove,
.panel-actions .manager-action.is-added { border-color: #c7cdd4; background: #f2f4f5; color: #303741; }

.manufacture-call-direct {
  display: grid;
  gap: 6px;
  padding: 14px 0 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.manufacture-call-direct > div { display: grid; gap: 2px; margin-bottom: 2px; }
.manufacture-call-direct small { color: #806000; font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.manufacture-call-direct strong { font-size: 14px; }
.manufacture-call-direct a {
  min-height: 35px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}
.manufacture-call-direct a:hover { border-color: var(--amber); }
.manufacture-call-direct a span { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.compact-manufacture-form { padding-top: 16px; }
.compact-manufacture-form .manufacture-form { grid-template-columns: 1fr; }
.compact-manufacture-form .wide { grid-column: 1; }

.back-to-top {
  position: fixed;
  z-index: 58;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #171a1f;
  border-radius: 5px;
  background: #171a1f;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .15s ease, transform .15s ease;
  cursor: pointer;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top span {
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: translateY(3px) rotate(45deg);
}
.back-to-top:hover { border-color: var(--amber); background: #2b3037; }
.footer-bottom a { display: none; }

.footer-main {
  grid-template-columns: 210px minmax(250px, 1fr) minmax(420px, 470px);
  gap: 28px;
  align-items: start;
}
.footer-contact { grid-template-columns: minmax(230px, 1fr) auto; align-items: end; }
.footer-phones { min-width: 230px; }
.footer-contact button { min-width: 230px; justify-self: end; }

@keyframes details-panel-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes details-panel-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(18px); }
}
@keyframes selected-row-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
.details-panel:not([hidden]) {
  animation: details-panel-in 320ms cubic-bezier(.22, .8, .28, 1) both;
}
.details-panel.is-closing {
  animation: details-panel-out 320ms cubic-bezier(.22, .8, .28, 1) both !important;
  pointer-events: none;
}
.selected-row-toolbar { animation: selected-row-in 220ms cubic-bezier(.22, .8, .28, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .details-panel:not([hidden]),
  .details-panel.is-closing,
  .selected-row-toolbar { animation: none !important; }
}

@media (max-width: 1250px) {
  .catalog-head { grid-template-columns: minmax(360px, .9fr) minmax(590px, 1.1fr); }
  .search-tools { grid-template-columns: minmax(230px, 1fr) 142px 138px; }
  .footer-main { grid-template-columns: 180px minmax(230px, 1fr) minmax(360px, 420px); gap: 20px; }
  .footer-contact { grid-template-columns: 1fr; }
  .footer-contact > span,
  .footer-contact button { grid-column: 1; }
  .footer-contact button { width: 100%; min-width: 0; justify-self: stretch; }
}

@media (max-width: 900px) {
  .catalog-page { padding-top: 12px; }
  .catalog-head { grid-template-columns: 1fr; }
  .search-tools { grid-template-columns: minmax(0, 1fr) 140px 140px; }
  .catalog-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr; }
  .footer-contact { grid-template-columns: minmax(230px, 1fr) minmax(230px, 280px); }
  .footer-contact > span { grid-column: 1 / -1; }
  .footer-contact button { grid-column: 2; grid-row: 2; }
}

@media (max-width: 640px) {
  .search-tools { grid-template-columns: minmax(0, 1fr) 118px; }
  .search-shortcuts { grid-column: 1 / -1; height: 40px; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
  .catalog-mode { padding-inline: 10px; }
  .catalog-mode .mode-copy strong { font-size: 14px; }
  .footer-contact { grid-template-columns: 1fr; }
  .footer-contact > span,
  .footer-contact button { grid-column: 1; grid-row: auto; }
  .footer-contact button { width: 100%; }
  .back-to-top { right: 12px; bottom: 12px; }
}

/* Smoothly reserve space for the details panel without changing the grid shape. */
@media (min-width: 1425px) {
  .catalog-layout {
    grid-template-columns: 329px minmax(0, 1fr) 0;
    gap: 0;
    transition: grid-template-columns 320ms cubic-bezier(.22, .8, .28, 1);
  }
  .catalog-layout.with-details {
    grid-template-columns: 270px minmax(0, 1fr) 410px;
    gap: 0;
  }
  .catalog-layout > .grade-sidebar {
    margin-right: 24px;
    transition: margin-right 320ms cubic-bezier(.22, .8, .28, 1);
  }
  .catalog-layout.with-details > .grade-sidebar { margin-right: 20px; }
  .catalog-layout > .details-panel {
    margin-left: 0;
    transition: margin-left 320ms cubic-bezier(.22, .8, .28, 1);
  }
  .catalog-layout.with-details > .details-panel { margin-left: 20px; }
}

@media (min-width: 901px) and (max-width: 1424px) {
  .catalog-layout {
    grid-template-columns: 305px minmax(0, 1fr);
    gap: 24px;
    padding-right: 0;
    transition:
      grid-template-columns 320ms cubic-bezier(.22, .8, .28, 1),
      gap 320ms cubic-bezier(.22, .8, .28, 1),
      padding-right 320ms cubic-bezier(.22, .8, .28, 1);
  }
  .catalog-layout.with-details {
    display: grid;
    grid-template-columns: 0 minmax(0, 1fr);
    gap: 0;
    padding-right: 408px;
  }
  .catalog-layout.with-details > .grade-sidebar {
    display: flex;
    opacity: 0;
    padding-right: 0;
    border-right-color: transparent;
    pointer-events: none;
  }
  .catalog-layout.with-details > .grade-sidebar > * { display: none; }
  .catalog-layout > .grade-sidebar {
    opacity: 1;
    transition: opacity 220ms ease;
  }
}

/* Interface refinement 23.08.2026: filters, selection context and product details. */
@media (min-width: 901px) {
  .site-header {
    position: relative;
    height: 98px;
    border: 0;
    background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
    box-shadow: 0 1px 0 #dce1e6, 0 8px 22px rgb(22 31 42 / 4%);
  }

  .site-header::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--amber) 0 22%, #20252b 22% 24%, #e5e8ec 24% 100%);
  }

  .header-inner {
    grid-template-columns: 188px 320px minmax(168px, 1fr) 218px;
    gap: 16px;
  }

  .brand {
    position: relative;
    width: 166px;
    max-width: 166px;
    height: 72px;
    padding: 5px 16px 5px 0;
    overflow: visible;
  }

  .brand::after {
    content: "";
    position: absolute;
    top: 12px;
    right: 0;
    width: 3px;
    height: 48px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--amber) 0 48%, #252a30 48% 100%);
  }

  .brand img {
    width: 150px;
    height: 62px;
  }

  .city-nav {
    height: 44px;
    gap: 3px;
    padding: 4px;
    border: 1px solid #dde2e7;
    border-radius: 8px;
    background: #f3f5f7;
  }

  .city-nav a {
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-radius: 5px;
    font-size: 12px;
  }

  .city-nav a:hover {
    background: rgb(255 255 255 / 68%);
  }

  .city-nav a.active {
    background: #fff;
    box-shadow: 0 1px 4px rgb(22 31 42 / 10%);
  }

  .city-nav a.active::after {
    right: 12px;
    bottom: 2px;
    left: 12px;
  }

  .certificates {
    height: 66px;
    justify-content: center;
    gap: 8px;
    padding: 4px 8px;
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    background: rgb(255 255 255 / 80%);
  }

  .certificate {
    width: 51px;
    height: 56px;
    grid-template-rows: 39px 13px;
  }

  .certificate img {
    width: 37px;
    height: 37px;
  }

  .certificate span {
    font-size: 8px;
  }

  .phone-cluster {
    gap: 3px;
    padding: 8px 10px 8px 13px;
    border: 1px solid #e0e4e8;
    border-left: 3px solid var(--amber);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 2px 8px rgb(22 31 42 / 4%);
  }

  .phone-cluster a {
    grid-template-columns: 51px minmax(0, 1fr);
    gap: 6px;
  }

  .phone-cluster span {
    font-size: 12px;
  }

  .filter-bar {
    overflow: visible;
  }

  .status-filter {
    position: relative;
    width: 205px;
    height: 42px;
  }

  .status-filter-toggle {
    position: relative;
    width: 100%;
    height: 42px;
    display: grid;
    grid-template-rows: 11px minmax(0, 1fr);
    align-content: center;
    gap: 1px;
    padding: 5px 34px 5px 11px;
    border: 1px solid #cbd2da;
    border-radius: 6px;
    background: #fff;
    text-align: left;
    cursor: pointer;
  }

  .status-filter-toggle:hover {
    border-color: #aeb6bf;
  }

  .status-filter-toggle[aria-expanded="true"] {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgb(255 176 0 / 11%);
  }

  .status-filter-toggle > span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .055em;
    line-height: 1;
    text-transform: uppercase;
  }

  .status-filter-toggle > strong {
    align-self: end;
    color: #37414c;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
  }

  .status-filter-toggle > i {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #59636f;
    border-bottom: 1.5px solid #59636f;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 160ms ease;
  }

  .status-filter-toggle[aria-expanded="true"] > i {
    transform: translateY(-25%) rotate(225deg);
  }

  .status-filter-menu {
    position: absolute;
    z-index: 80;
    top: calc(100% + 7px);
    left: 0;
    width: 220px;
    padding: 6px;
    border: 1px solid #cfd5dc;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 16px 34px rgb(22 31 42 / 14%);
  }

  .status-filter-menu::before {
    content: "";
    position: absolute;
    top: -1px;
    right: 12px;
    left: 12px;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: var(--amber);
  }

  .status-filter-menu button {
    width: 100%;
    height: 36px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    padding: 0 9px 0 10px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #3c4651;
    font-size: 11px;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
  }

  .status-filter-menu button:hover {
    background: #f4f6f8;
  }

  .status-filter-menu button.active {
    background: var(--amber-soft);
    color: var(--ink);
    font-weight: 750;
  }

  .status-filter-menu button i {
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border: 1px solid #c7ced6;
    border-radius: 50%;
    background: #fff;
  }

  .status-filter-menu button.active i {
    border-color: var(--amber);
    box-shadow: inset 0 0 0 4px #fff;
    background: var(--amber);
  }

  .filter-reset {
    position: relative;
    height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px 0 31px;
    border: 1px solid #d3d9df;
    border-radius: 5px;
    background: #fff;
    color: #525c67;
    box-shadow: 0 1px 2px rgb(22 31 42 / 3%);
  }

  .filter-reset::before,
  .reset-filter > i {
    width: 13px;
    height: 13px;
    border: 1.5px solid #69737e;
    border-left-color: transparent;
    border-radius: 50%;
  }

  .filter-reset::before {
    content: "";
    position: absolute;
    left: 10px;
  }

  .filter-reset::after,
  .reset-filter > i::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-top: 3px solid transparent;
    border-right: 4px solid #69737e;
    border-bottom: 3px solid transparent;
    transform: translate(-2px, -1px) rotate(18deg);
  }

  .filter-reset:hover {
    border-color: #adb6bf;
    background: #f7f8fa;
  }

  .active-filter-row {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 7px;
    padding: 7px 8px;
    border: 1px solid #dfe3e8;
    border-radius: 7px;
    background: #fafbfc;
  }

  .active-filter-set {
    min-width: 0;
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 6px;
  }

  .active-chip {
    height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 5px 0 10px;
    border: 1px solid #cfd5dc;
    border-radius: 16px;
    background: #fff;
    color: #303943;
    box-shadow: 0 1px 2px rgb(22 31 42 / 3%);
    cursor: pointer;
  }

  .active-chip:hover {
    border-color: #b9a85f;
    background: #fffdf8;
  }

  .active-chip > i {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--amber);
  }

  .active-chip .active-chip-label {
    margin: 0;
    color: #303943;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
  }

  .active-chip .active-chip-remove {
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    margin: 0;
    border-radius: 50%;
    background: #f0f2f4;
    color: #4f5964;
    font: 15px/1 Arial, sans-serif;
  }

  .active-chip:hover .active-chip-remove {
    background: #e5e8eb;
    color: var(--ink);
  }

  .active-filter-row .reset-filter {
    position: relative;
    min-width: max-content;
    height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    padding: 0 8px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #59636e;
    font-size: 10px;
    font-weight: 700;
  }

  .active-filter-row .reset-filter:hover {
    background: #eef1f3;
    color: var(--ink);
  }

  .reset-filter > i {
    position: relative;
    flex: 0 0 auto;
  }

  .product-entry.selected-entry {
    z-index: 3;
    isolation: isolate;
    overflow: hidden;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 10px 24px rgb(22 31 42 / 7%);
  }

  .product-entry.selected-entry::after {
    content: "";
    position: absolute;
    z-index: 12;
    inset: 0;
    border: 1px solid rgb(255 176 0 / 72%);
    border-radius: 7px;
    opacity: 1;
    pointer-events: none;
    animation: selected-outline-in 300ms cubic-bezier(.22, .8, .28, 1) both;
  }

  .catalog-layout.is-collapsing .product-entry.selected-entry::after {
    animation: selected-outline-out 280ms cubic-bezier(.4, 0, .2, 1) both;
  }

  .product-card.price-row.selected {
    background: linear-gradient(90deg, #fffdf8 0, #fff 52%);
  }

  .selected-row-toolbar {
    max-height: 166px;
    gap: 8px 12px;
    padding: 9px 10px 10px;
    border: 0;
    border-top: 1px solid #e3e7eb;
    background: #fff;
    box-shadow: inset 0 8px 18px -22px rgb(22 31 42 / 45%);
  }

  .selected-row-summary {
    position: relative;
    gap: 2px;
    padding-left: 12px;
  }

  .selected-row-summary::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 1px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--amber);
  }

  .selected-row-summary small {
    color: #68727d;
    letter-spacing: .075em;
  }

  .selected-row-summary strong {
    font-size: 11.5px;
  }

  .selected-row-actions button {
    min-height: 31px;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgb(22 31 42 / 4%);
  }

  .selected-row-actions .row-primary {
    border-color: var(--amber);
    background: var(--amber);
    color: #211900;
  }

  .analogue-offer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .analogue-intro,
  .analogue-stock-card,
  .analogue-manufacture-card {
    min-height: 78px;
    align-content: start;
    gap: 4px;
    padding: 9px 10px;
    border: 1px solid #d7dce2;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 3px rgb(22 31 42 / 4%);
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
  }

  .analogue-intro {
    border-top: 1px solid #d7dce2;
    border-left: 1px solid #d7dce2;
    background: #fff;
  }

  .analogue-intro.is-empty,
  .analogue-stock-card.is-unavailable {
    border-color: #e0e4e8;
    background: #fafbfc;
    box-shadow: none;
  }

  button.analogue-intro:hover,
  .analogue-stock-card:not(.is-unavailable):hover,
  .analogue-manufacture-card:hover {
    border-color: #c8a52c;
    box-shadow: 0 5px 13px rgb(22 31 42 / 8%);
    transform: translateY(-1px);
  }

  .analogue-eyebrow,
  .analogue-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #67717c;
    font-size: 7.5px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
  }

  .analogue-eyebrow > i,
  .analogue-status > i {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border: 2px solid var(--amber);
    border-radius: 50%;
    background: #fff;
  }

  .analogue-status.in-stock > i {
    border-color: var(--green);
    box-shadow: inset 0 0 0 2px #fff;
    background: var(--green);
  }

  .analogue-status.make-ready > i {
    box-shadow: inset 0 0 0 2px #fff;
    background: var(--amber);
  }

  .analogue-intro strong,
  .analogue-stock-card strong,
  .analogue-manufacture-card strong {
    font-size: 11px;
    font-weight: 760;
    line-height: 1.2;
  }

  .analogue-intro span:not(.analogue-eyebrow),
  .analogue-stock-card small,
  .analogue-manufacture-card small {
    font-size: 8.5px;
    line-height: 1.28;
  }

  .analogue-stock-card b,
  .analogue-manufacture-card b {
    margin-top: auto;
    color: #5c4b0d;
    font-size: 8.5px;
  }

  .details-panel {
    border-color: #cbd2da;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 18px 42px rgb(22 31 42 / 12%), 0 2px 6px rgb(22 31 42 / 5%);
  }

  .details-inner {
    padding: 0 18px 18px;
  }

  .details-product-hero {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 13px;
    margin: 0 -18px;
    padding: 18px 48px 17px 18px;
    border-bottom: 1px solid #dfe3e8;
    background: linear-gradient(122deg, #f7f8fa 0%, #fff 68%, var(--amber-soft) 100%);
  }

  .details-product-hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--amber) 0 34%, #23282e 34% 39%, transparent 39%);
  }

  .details-product-visual {
    width: 72px;
    height: 72px;
    border-color: #cfd5dc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgb(22 31 42 / 7%);
  }

  .details-product-visual img {
    width: 68px;
    height: 68px;
  }

  .details-product-copy .panel-kicker {
    width: max-content;
    max-width: 100%;
    padding: 3px 6px;
    border: 1px solid #d9dee4;
    border-radius: 4px;
    background: rgb(255 255 255 / 82%);
    color: #69737e;
  }

  .details-product-copy h2 {
    font-size: 24px;
    letter-spacing: -.25px;
  }

  .details-product-copy p {
    color: #4d5762;
  }

  .details-product-copy .availability {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    padding: 4px 7px;
    border: 1px solid #b8decf;
    border-radius: 4px;
    background: #edf9f4;
    color: #08734e;
    font-size: 10.5px;
    font-weight: 700;
  }

  .details-product-hero .details-close {
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: 1px solid #d7dce2;
    border-radius: 50%;
    background: rgb(255 255 255 / 86%);
    font-size: 21px;
  }

  .details-product-hero .details-close:hover {
    border-color: #aeb6bf;
    background: #fff;
  }

  .details-section {
    padding: 17px 3px;
  }

  .details-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 17px;
    letter-spacing: -.12px;
  }

  .details-section h3::before {
    content: "";
    width: 3px;
    height: 15px;
    flex: 0 0 auto;
    border-radius: 2px;
    background: var(--amber);
  }

  .position-section .detail-grid {
    grid-template-columns: 112px minmax(0, 1fr);
    border: 0;
    border-top: 1px solid #dfe3e8;
    border-bottom: 1px solid #dfe3e8;
    border-radius: 0;
    background: #fff;
  }

  .position-section .detail-grid dt,
  .position-section .detail-grid dd {
    padding: 8px 5px;
    border-bottom: 1px solid #e6e9ed;
  }

  .position-section .detail-grid dt {
    border-right: 0;
    background: transparent;
    color: #76808b;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 158px 228px minmax(150px, 1fr) 185px;
    gap: 10px;
  }

  .brand {
    width: 150px;
    max-width: 150px;
  }

  .brand img {
    width: 134px;
  }

  .city-nav a {
    padding-inline: 9px;
    font-size: 11px;
  }

  .certificates {
    gap: 4px;
    padding-inline: 4px;
  }

  .certificate {
    width: 42px;
  }

  .phone-cluster {
    padding-inline: 8px;
  }
}

@keyframes selected-outline-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes selected-outline-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes selected-row-expand {
  from {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    max-height: 166px;
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes selected-row-collapse {
  from {
    max-height: 166px;
    opacity: 1;
    transform: translateY(0);
  }
  to {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top-color: transparent;
    opacity: 0;
    transform: translateY(-4px);
  }
}

@media (min-width: 1101px) {
  .column-heads,
  .product-card.price-row {
    transition: grid-template-columns 320ms cubic-bezier(.22, .8, .28, 1);
  }
  .catalog-layout.with-details .column-heads,
  .catalog-layout.with-details .product-card.price-row {
    grid-template-columns: minmax(190px, 1.35fr) minmax(130px, .9fr) 88px 0 98px 0 116px;
  }
  .catalog-layout.with-details .product-card.price-row .product-main { grid-column: 1; }
  .catalog-layout.with-details .product-dimensions { grid-column: 2; }
  .catalog-layout.with-details .product-stock { grid-column: 3; }
  .catalog-layout.with-details .warehouse-cell { grid-column: 4; }
  .catalog-layout.with-details .product-price { grid-column: 5; }
  .catalog-layout.with-details .services-cell { grid-column: 6; }
  .catalog-layout.with-details .product-actions { grid-column: 7; }
  .catalog-layout.with-details #columnHeads .head-position,
  .catalog-layout.with-details #columnHeads .head-size,
  .catalog-layout.with-details #columnHeads .head-stock,
  .catalog-layout.with-details #columnHeads .head-price,
  .catalog-layout.with-details #columnHeads .head-action {
    display: block;
    font-size: 11px;
  }
  .catalog-layout.with-details #columnHeads .head-position { grid-column: 1; }
  .catalog-layout.with-details #columnHeads .head-size { grid-column: 2; }
  .catalog-layout.with-details #columnHeads .head-stock { grid-column: 3; }
  .catalog-layout.with-details #columnHeads .head-warehouse { grid-column: 4; }
  .catalog-layout.with-details #columnHeads .head-price { grid-column: 5; }
  .catalog-layout.with-details #columnHeads .head-services { grid-column: 6; }
  .catalog-layout.with-details #columnHeads .head-action { grid-column: 7; }
  .catalog-layout.with-details #columnHeads .head-warehouse,
  .catalog-layout.with-details #columnHeads .head-services,
  .catalog-layout.with-details .warehouse-cell {
    display: block;
    overflow: hidden;
    padding-inline: 0;
    opacity: 0;
    pointer-events: none;
  }
  .catalog-layout.with-details .services-cell {
    display: flex;
    overflow: hidden;
    padding-inline: 0;
    opacity: 0;
    pointer-events: none;
  }
}

.product-entry {
  content-visibility: auto;
  contain-intrinsic-size: auto 78px;
}
.product-entry.selected-entry { content-visibility: visible; }
.product-card.price-row { contain: layout paint style; }
.details-panel { contain: layout paint style; }

@media (min-width: 901px) and (max-width: 1100px) {
  .catalog-layout.with-details { padding-right: 374px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .catalog-layout,
  .catalog-layout > .grade-sidebar,
  .catalog-layout > .details-panel,
  .column-heads,
  .product-card.price-row { transition: none !important; }
}

/* Stable controls and accurate empty-grade states. */
.grade-row.empty .grade-entry { opacity: .48; }
.details-trigger {
  box-sizing: border-box;
  width: 82px;
  min-width: 82px;
  max-width: 82px;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  flex: 0 0 82px;
  overflow: hidden;
  white-space: nowrap;
}
.details-panel:not([hidden]) {
  animation-duration: 260ms;
}
.details-panel.is-closing {
  animation-duration: 240ms !important;
}

.selected-row-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 0;
  gap: 9px 12px;
  padding: 10px 12px 11px;
}
.analogue-offer-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, .9fr) minmax(190px, 1fr) minmax(190px, 1fr);
  gap: 8px;
}
.analogue-intro,
.analogue-stock-card,
.analogue-manufacture-card {
  min-width: 0;
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}
.analogue-intro { border-left: 3px solid var(--amber); background: #fffaf0; }
.analogue-intro.is-empty { border-left-color: var(--line-strong); background: #f7f8f9; }
.analogue-intro small,
.analogue-status {
  color: #7c6320;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.analogue-intro strong,
.analogue-stock-card strong,
.analogue-manufacture-card strong {
  overflow: hidden;
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
}
.analogue-intro strong i { padding: 0 2px; color: #9b750e; font-style: normal; }
.analogue-intro span,
.analogue-stock-card small,
.analogue-manufacture-card small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.3;
}
.analogue-stock-card,
.analogue-manufacture-card {
  appearance: none;
  font: inherit;
  cursor: pointer;
}
.analogue-stock-card:hover,
.analogue-manufacture-card:hover { border-color: var(--amber); }
.analogue-stock-card.is-unavailable { cursor: default; }
.analogue-stock-card b,
.analogue-manufacture-card b {
  color: #725500;
  font-size: 9px;
}
.analogue-stock-card b i,
.analogue-manufacture-card b i { font-style: normal; }
.analogue-status.in-stock { color: #08734e; }
.analogue-status.make-ready { color: #7b5a00; }
.analogue-safety-note {
  grid-column: 1 / -1;
  margin: 0;
  color: #786f5e;
  font-size: 9px;
  line-height: 1.35;
}

/* Action rows must never absorb free height while the details column is animating. */
.panel-actions {
  grid-auto-rows: max-content;
  align-content: start;
}
.document-actions,
.request-document-actions {
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  display: flex;
  align-items: stretch;
  gap: 7px;
  overflow: hidden;
}
.document-actions button,
.request-document-actions button {
  box-sizing: border-box;
  width: auto;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  flex: 1 1 0;
  align-self: flex-start;
  padding: 0 8px;
  line-height: 1.15;
}
.panel-actions .manager-action {
  min-height: 48px;
  max-height: 48px;
}
.panel-actions .manager-secondary {
  min-height: 38px;
  max-height: 38px;
}
.details-inner {
  min-width: 348px;
}
.details-panel .service-options {
  grid-auto-rows: 44px;
  align-content: start;
  max-height: 90px;
  overflow: hidden;
}
.details-panel .service-choice {
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  align-self: start;
  padding: 5px 8px;
  overflow: hidden;
}
.details-panel .service-choice > span:nth-child(2) { gap: 0; }
.details-panel .service-choice strong { font-size: 12px; line-height: 1.1; }
.details-panel .service-choice small {
  overflow: hidden;
  font-size: 9px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.details-panel .manufacture-from-card,
.details-panel .manufacture-request {
  box-sizing: border-box;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  align-self: start;
  overflow: hidden;
  white-space: nowrap;
}
.details-panel button {
  flex-shrink: 0;
  max-height: 52px;
}
.details-panel .document-actions button { max-height: 38px; }
.details-panel .details-close {
  box-sizing: border-box;
  width: 30px;
  min-width: 30px;
  max-width: 30px;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
}

/* Both order modes keep the same amber outline; selection adds only the fill. */
.catalog-mode,
.catalog-mode:hover {
  border-color: var(--amber);
  box-shadow: inset 0 0 0 1px var(--amber);
}
.catalog-mode.active {
  border-color: var(--amber);
  background: var(--amber-soft);
  box-shadow: inset 0 0 0 1px var(--amber);
}

/* Manufacturing stays visible inside every filtered stock group. */
.inline-manufacture-entry .manufacture-row {
  border-top: 1px solid var(--line);
  background: #fafbfc;
}
.inline-manufacture-entry .manufacture-row:hover { background: #f7f8f9; }
.inline-manufacture-entry .product-main {
  box-shadow: inset 2px 0 0 #d9a62a;
}
.inline-manufacture-entry .details-trigger {
  border-color: #c8ced5;
  background: #fff;
  color: #4f5863;
}
.inline-manufacture-entry .manufacture-row:hover .details-trigger { border-color: #d9a62a; }
.manufacture-row .details-trigger {
  gap: 4px;
  padding-inline: 5px;
  font-size: 10px;
}
.manufacture-row .details-trigger i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
}
.missing-manufacture-group .group-title span {
  color: #6f7781;
  font-weight: 600;
}
.missing-manufacture-group .product-list {
  border-color: var(--line-strong);
}
.missing-manufacture-group .inline-manufacture-entry .manufacture-row {
  border-top: 0;
}
.instant-manufacture-results .product-group:first-child {
  margin-top: 6px;
}
.missing-manufacture-head {
  margin-top: 4px;
}

@media (min-width: 901px) and (max-width: 1424px) {
  .catalog-layout,
  .catalog-layout.with-details {
    display: grid;
    grid-template-columns: 329px minmax(0, 1fr) 0;
    gap: 0;
    padding-right: 0;
  }
  .catalog-layout.with-details {
    grid-template-columns: 0 minmax(0, 1fr) 408px;
  }
  .catalog-layout > .grade-sidebar {
    margin-right: 24px;
  }
  .catalog-layout.with-details > .grade-sidebar {
    display: flex;
    margin-right: 0;
  }
  .catalog-layout.with-details > .details-panel {
    position: sticky;
    z-index: 10;
    top: 76px;
    right: auto;
    bottom: auto;
    width: auto;
    height: auto;
    max-height: calc(100vh - 92px);
    margin-left: 18px;
    align-self: start;
  }
  .catalog-layout.with-details .analogue-offer-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
  .catalog-layout.with-details .analogue-intro { grid-column: 1 / -1; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .catalog-layout.with-details {
    grid-template-columns: 0 minmax(0, 1fr) 374px;
  }
  .catalog-layout.with-details > .details-panel { margin-left: 14px; }
  .details-inner { min-width: 318px; }
}

@media (max-width: 900px) {
  .details-inner { min-width: 0; }
  .analogue-offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analogue-intro { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .selected-row-toolbar { grid-template-columns: 1fr; }
  .analogue-offer-grid { grid-template-columns: 1fr; }
  .analogue-intro { grid-column: auto; }
}

/* Review 11.08.2026: price-section hierarchy, multi-filters and compact details. */
.brand {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: flex;
  align-items: center;
  overflow: visible;
}
.brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.footer-brand {
  width: 220px;
  height: auto;
}
.footer-brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.request-button {
  position: fixed;
  z-index: 48;
  top: 12px;
  right: max(24px, calc((100vw - 1392px) / 2));
  min-width: 116px;
  box-shadow: 0 7px 24px rgb(22 31 42 / 10%);
}
.catalog-head { padding-right: 136px; }

.shape-strip { margin-top: 14px; }
.shape-button strong { font-size: 15px; line-height: 1.16; }
.catalog-modes {
  min-height: 56px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.catalog-mode {
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 9px 14px;
  border: 1px solid var(--amber);
  border-radius: 6px;
  background: #fff;
}
.catalog-mode + .catalog-mode { border-left: 1px solid var(--amber); }
.catalog-mode:hover { background: #fffdf8; }
.catalog-mode.active {
  border-color: var(--amber);
  background: var(--amber-soft);
  box-shadow: inset 0 0 0 1px var(--amber);
}
.catalog-mode.active::after { content: none; }
.catalog-mode .mode-mark { display: none; }
.catalog-mode .mode-copy strong { font-size: 15px; }
.catalog-mode .mode-copy small { font-size: 10px; }
.catalog-mode b { font-size: 10px; }
.mode-explanation { display: none; }

.active-filter-row {
  height: auto;
  min-height: 52px;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px 0;
}
.active-chip {
  height: 36px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 10px;
  cursor: pointer;
}
.active-chip span { margin-left: 8px; font-size: 16px; }
.active-filter-row .reset-filter { display: inline-flex; }

.grade-block { margin-bottom: 0; }
.grade-block h4 { display: none; }
.grade-list { margin-top: 8px; }

.city-filter-menu {
  right: 0;
  left: auto;
  width: 226px;
  padding: 6px;
}
.city-filter-menu button[data-warehouse] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
}
.city-filter-menu button[data-warehouse] i {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: #fff;
}
.city-filter-menu button[data-warehouse].active i {
  border-color: var(--amber);
  background: var(--amber);
}
.city-filter-menu button[data-warehouse].active i::after {
  content: "";
  width: 6px;
  height: 3px;
  border-bottom: 1.5px solid var(--ink);
  border-left: 1.5px solid var(--ink);
  transform: translateY(-1px) rotate(-45deg);
}
.city-filter-menu > small {
  display: block;
  padding: 6px 9px 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.price-warehouse-filter { position: relative; min-width: 0; padding: 0 6px; }
.price-warehouse-filter > button {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9px;
  gap: 5px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}
.price-warehouse-filter > button span { overflow: hidden; padding: 0; text-overflow: ellipsis; white-space: nowrap; }
.price-warehouse-filter > button > i {
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.price-warehouse-filter > button[aria-expanded="true"] > i { transform: translateY(2px) rotate(225deg); }
.price-warehouse-menu {
  position: absolute;
  z-index: 55;
  top: calc(100% + 10px);
  left: 0;
  width: 206px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(22 31 42 / 13%);
}
.price-warehouse-menu button {
  width: 100%;
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  gap: 8px;
  align-items: center;
  padding: 0 8px;
  border: 0;
  border-radius: 3px;
  background: #fff;
  font-size: 10px;
  text-align: left;
  text-transform: none;
  cursor: pointer;
}
.price-warehouse-menu button:hover { background: #f5f7f9; }
.price-warehouse-menu button.active { background: var(--amber-soft); font-weight: 700; }
.price-warehouse-menu button > i { width: 14px; height: 14px; border: 1px solid var(--line-strong); border-radius: 3px; }
.price-warehouse-menu button.active > i { border-color: var(--amber); background: var(--amber); }
.price-warehouse-menu button.active > i::after {
  content: "";
  width: 6px;
  height: 3px;
  display: block;
  margin: 3px;
  border-bottom: 1.5px solid var(--ink);
  border-left: 1.5px solid var(--ink);
  transform: rotate(-45deg);
}
.price-warehouse-menu [data-price-warehouse-all] { display: block; }

.product-list { overflow: visible; }
.product-entry.selected-entry {
  outline: 1px solid #e7b846;
  outline-offset: -1px;
  background: #fffdf7;
}
.product-card.price-row.selected { background: #fffaf0; }
.add-button { position: relative; overflow: visible; }
.add-button::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 50;
  right: -1px;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: 170px;
  padding: 6px 8px;
  border-radius: 4px;
  background: #242a31;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity .12s ease, transform .12s ease;
}
.add-button:hover::after,
.add-button:focus-visible::after { opacity: 1; transform: translateY(0); }

.analogue-intro:not(.is-empty) {
  appearance: none;
  font: inherit;
  cursor: pointer;
}
.analogue-intro:not(.is-empty):hover,
.analogue-intro:not(.is-empty):focus-visible { border-color: var(--amber); outline: none; }

@media (min-width: 1101px) {
  .catalog-layout.with-details .column-heads,
  .catalog-layout.with-details .product-card.price-row {
    grid-template-columns: minmax(176px, 1.25fr) minmax(124px, .9fr) 80px 98px 88px 0 108px;
  }
  .catalog-layout.with-details #columnHeads .head-warehouse,
  .catalog-layout.with-details .warehouse-cell {
    display: block;
    overflow: hidden;
    padding-inline: 6px;
    opacity: 1;
    pointer-events: auto;
  }
  .catalog-layout.with-details .warehouse-cell strong { font-size: 11px; }
}

.details-panel .service-options {
  grid-auto-rows: auto;
  max-height: none;
  overflow: visible;
}
.details-panel .service-fields {
  min-height: 64px;
  align-items: end;
}
.details-panel .service-fields output {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid #e0c36e;
  border-radius: 3px;
  background: #fffaf0;
  color: #5d4a19;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.manufacturing-capabilities h3 { margin-bottom: 10px; }
.capability-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}
.capability-facts span {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.3;
}
.capability-facts strong { color: var(--ink); font-size: 12px; }
.capability-table { width: 100%; border-collapse: collapse; font-size: 9px; }
.capability-table th,
.capability-table td { padding: 7px 6px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.capability-table th { width: 40%; background: #f7f8f9; }
.manufacturing-capabilities > p { margin: 8px 0 0; color: var(--muted); font-size: 9px; line-height: 1.4; }

.branch-view .catalog-head,
.branch-view .shape-strip,
.branch-view .catalog-modes,
.branch-view .filter-bar,
.branch-view .active-filter-row,
.branch-view .catalog-layout { display: none; }
.branch-view .catalog-page { padding-top: 26px; }
.branch-page { display: grid; gap: 16px; }
.branch-back {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #59636f;
  font-size: 12px;
  cursor: pointer;
}
.branch-back i {
  width: 7px;
  height: 7px;
  border-bottom: 1px solid currentColor;
  border-left: 1px solid currentColor;
  transform: rotate(45deg);
}
.branch-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 360px);
  gap: 30px;
  align-items: end;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 7px;
  background: #fafbfc;
}
.branch-hero span { color: #8a6a16; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.branch-hero h1 { margin: 5px 0 7px; font-size: 34px; }
.branch-hero p { margin: 0; color: #505b66; }
.branch-contacts { display: grid; gap: 5px; }
.branch-contacts a { color: var(--ink); font-size: 16px; font-weight: 700; text-decoration: none; }
.branch-contacts span { margin-top: 4px; color: var(--muted); font-size: 10px; letter-spacing: 0; text-transform: none; }
.branch-grid { display: grid; grid-template-columns: .78fr 1fr 1.15fr; gap: 12px; }
.branch-card {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.branch-card h2 { margin: 0 0 14px; font-size: 18px; }
.branch-card ul { margin: 0; padding-left: 18px; color: #4f5964; font-size: 13px; line-height: 1.65; }
.branch-stock-summary { display: grid; align-content: start; gap: 3px; }
.branch-stock-summary > span { color: #8a6a16; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.branch-stock-summary > strong { margin-top: 8px; font-size: 38px; line-height: 1; }
.branch-stock-summary > small { color: var(--muted); }
.branch-stock-summary > b { margin: 12px 0; font-size: 13px; }
.branch-stock-summary button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--amber);
  border-radius: 4px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}
.branch-assortment > div { display: grid; gap: 0; }
.branch-assortment span { min-height: 39px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); font-size: 11px; }
.branch-assortment span:last-child { border-bottom: 0; }

@media (max-width: 1250px) {
  .catalog-head { padding-right: 128px; }
  .request-button { right: 18px; }
  .branch-grid { grid-template-columns: 1fr 1fr; }
  .branch-assortment { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .catalog-head { padding-right: 0; }
  .catalog-layout,
  .catalog-layout.with-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 0;
    gap: 0;
    padding-top: 16px;
    transition: grid-template-columns 260ms cubic-bezier(.22, .8, .28, 1);
  }
  .catalog-layout.with-details { grid-template-columns: minmax(0, 1fr) minmax(320px, 42vw); }
  .catalog-layout > .results { grid-column: 1; min-width: 0; }
  .catalog-layout > .grade-sidebar { display: none; }
  .catalog-layout.with-details > .details-panel {
    position: sticky;
    z-index: 10;
    inset: auto;
    top: 12px;
    grid-column: 2;
    width: auto;
    height: auto;
    max-height: calc(100vh - 24px);
    margin: 0 0 0 12px;
    align-self: start;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
  }
  .catalog-layout.with-details .details-inner { width: auto; min-width: 0; margin: 0; }
  .catalog-layout.with-details .product-card.price-row {
    grid-template-columns: minmax(0, 1fr) 92px;
    grid-template-rows: auto auto auto;
  }
  .catalog-layout.with-details .product-card.price-row .product-main { grid-column: 1; grid-row: 1 / 3; }
  .catalog-layout.with-details .product-dimensions { grid-column: 2; grid-row: 1; }
  .catalog-layout.with-details .product-stock { grid-column: 2; grid-row: 2; }
  .catalog-layout.with-details .product-price { grid-column: 1; grid-row: 3; }
  .catalog-layout.with-details .product-actions { grid-column: 2; grid-row: 3; }
}

@media (max-width: 680px) {
  .catalog-layout.with-details { grid-template-columns: minmax(0, 1fr); }
  .catalog-layout.with-details > .details-panel {
    position: relative;
    top: auto;
    grid-column: 1;
    grid-row: 1;
    max-height: none;
    margin: 0 0 14px;
  }
  .catalog-layout.with-details > .results { grid-column: 1; grid-row: 2; }
}

/* Desktop Chrome refinement 23.08.2026.
   Keeps the approved catalogue structure while shortening the path to stock
   and preventing the price actions from being clipped at medium widths. */
@media (min-width: 901px) {
  .shape-strip {
    height: 132px;
    margin-top: 10px;
  }
  .shape-button {
    padding-top: 2px;
    padding-bottom: 7px;
  }
  .shape-button img {
    width: 88px;
    height: 88px;
    margin: -2px auto -1px;
  }
  .shape-button strong {
    font-size: 14px;
    line-height: 1.12;
  }

  .catalog-modes {
    min-height: 50px;
    margin-top: 8px;
  }
  .catalog-mode {
    min-height: 50px;
    padding: 7px 12px;
  }
  .catalog-mode .mode-copy strong { font-size: 14px; }
  .catalog-mode .mode-copy small { font-size: 9px; }

  .filter-bar { min-height: 50px; }
  .active-filter-row {
    min-height: 44px;
    padding: 6px 0;
  }
  .active-chip { height: 32px; }
  .catalog-layout { padding-top: 20px; }
}

@media (min-width: 901px) and (max-width: 1250px) {
  /* The count remains visible in the active price section and result summary. */
  .catalog-title-line strong { display: none; }
  .catalog-head {
    grid-template-columns: minmax(340px, .78fr) minmax(0, 1.22fr);
    gap: 16px;
    padding-block: 8px;
  }
  .catalog-title-line h1 {
    max-width: 360px;
    font-size: 22px;
    line-height: 1.04;
  }

  /* Service tags are secondary at this width. Storage stays visible and
     filterable; size, stock, price and both actions remain on screen. */
  .column-heads,
  .product-card.price-row {
    grid-template-columns: minmax(178px, 1.2fr) minmax(124px, .88fr) 80px 96px 82px 0 112px;
  }
  .head-services,
  .services-cell {
    display: flex;
    overflow: hidden;
    padding-inline: 0;
    opacity: 0;
    pointer-events: none;
  }
  .head-position { grid-column: 1; }
  .head-size { grid-column: 2; }
  .head-stock { grid-column: 3; }
  .head-warehouse { grid-column: 4; }
  .head-price { grid-column: 5; }
  .head-services { grid-column: 6; }
  .head-action { grid-column: 7; }
  .product-main { grid-column: 1; }
  .product-dimensions { grid-column: 2; }
  .product-stock { grid-column: 3; }
  .warehouse-cell { grid-column: 4; }
  .product-price { grid-column: 5; }
  .services-cell { grid-column: 6; }
  .product-actions { grid-column: 7; }

  .product-card.price-row .product-main {
    grid-template-columns: 42px minmax(0, 1fr);
    padding-inline: 8px;
  }
  .product-card.price-row .product-main img {
    width: 38px;
    height: 38px;
  }
  .product-dimensions,
  .product-card.price-row .product-stock,
  .warehouse-cell,
  .product-card.price-row .product-price,
  .product-actions {
    padding-inline: 7px;
  }
  .warehouse-cell strong { font-size: 11px; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .column-heads,
  .product-card.price-row {
    grid-template-columns: minmax(156px, 1.15fr) minmax(116px, .82fr) 76px 90px 76px 0 112px;
  }
}

/* Visual polish 23.08.2026: one geometry system for the existing catalogue.
   Text, colour roles, data order and the details-panel structure stay intact. */
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:where(button, a, input, select) {
  -webkit-tap-highlight-color: transparent;
}

:where(button, a, input, select):focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

:where(
  .city-nav a,
  .shape-button,
  .catalog-mode,
  .search-shortcuts button,
  .city-filter-toggle,
  .compact-filter select,
  .grade-entry,
  .details-trigger,
  .add-button,
  .service-choice,
  .manager-action,
  .manager-secondary,
  .request-button
) {
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

@media (min-width: 901px) {
  .site-header {
    height: 96px;
    border-bottom-color: #dfe3e8;
  }

  .header-inner {
    grid-template-columns: 188px 320px minmax(168px, 1fr) 218px 126px;
    gap: 14px;
  }

  .brand {
    max-width: 166px;
  }

  .brand img {
    display: block;
  }

  .city-nav {
    gap: 25px;
  }

  .city-nav a {
    padding-block: 11px;
  }

  .city-nav a.active::after {
    right: 0;
    bottom: 3px;
    left: 0;
  }

  .certificates {
    height: 64px;
  }

  .certificate {
    height: 62px;
    grid-template-rows: 43px 15px;
  }

  .certificate img {
    width: 40px;
    height: 40px;
  }

  .phone-cluster {
    gap: 4px;
  }

  .request-button {
    top: 11px;
    height: 46px;
    border-radius: 6px;
    box-shadow: 0 7px 22px rgb(22 31 42 / 8%);
  }

  .request-button:hover {
    border-color: var(--amber);
    box-shadow: 0 8px 24px rgb(22 31 42 / 11%);
  }

  .catalog-head {
    min-height: 78px;
    gap: 24px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .catalog-title-line {
    align-content: center;
    row-gap: 6px;
  }

  .catalog-title-line h1 {
    font-weight: 700;
    letter-spacing: -.45px;
  }

  .catalog-title-line strong,
  .result-count strong,
  .grade-count,
  .product-dimensions strong,
  .product-stock strong,
  .product-price strong {
    font-variant-numeric: tabular-nums;
  }

  .search-tools .global-search input,
  .city-filter-toggle {
    height: 50px;
    border-color: #c8ced5;
    border-radius: 6px;
    background: #fff;
  }

  .search-tools .global-search input:hover,
  .city-filter-toggle:hover {
    border-color: #aeb6bf;
  }

  .search-tools .global-search input:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgb(255 176 0 / 11%);
  }

  .search-shortcuts {
    gap: 0;
    overflow: hidden;
    border: 1px solid #bfc6ce;
    border-radius: 6px;
    background: #fff;
  }

  .search-shortcuts button {
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .search-shortcuts button + button {
    border-top: 1px solid var(--line);
  }

  .search-shortcuts button:hover {
    background: #f7f8fa;
  }

  .shape-strip {
    height: 128px;
    margin-top: 8px;
    border-color: #d6dbe1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 0 rgb(22 31 42 / 2%);
  }

  .shape-button {
    padding-inline: 8px;
    border-right-color: #e0e4e8;
  }

  .shape-button:hover {
    background: #f8f9fa;
  }

  .shape-button.active {
    background: var(--amber-soft);
    box-shadow: inset 0 0 0 1px var(--amber);
  }

  .shape-button:focus-visible {
    z-index: 2;
    outline-offset: -3px;
  }

  .shape-button img {
    width: 84px;
    height: 84px;
    margin-top: 0;
  }

  .shape-button strong {
    font-weight: 600;
    letter-spacing: -.12px;
  }

  .catalog-modes {
    min-height: 52px;
    margin-top: 8px;
  }

  .catalog-mode {
    min-height: 52px;
    padding: 8px 14px;
    border-width: 1px;
    border-radius: 6px;
    box-shadow: none;
  }

  .catalog-mode:hover {
    background: #fffdf8;
    box-shadow: 0 3px 10px rgb(22 31 42 / 4%);
  }

  .catalog-mode.active {
    background: var(--amber-soft);
    box-shadow: none;
  }

  .catalog-mode .mode-copy {
    gap: 2px;
  }

  .catalog-mode .mode-copy strong {
    font-weight: 750;
    letter-spacing: -.12px;
  }

  .filter-bar {
    min-height: 54px;
    margin-top: 8px;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fafbfc;
  }

  .compact-filter,
  .manufacture-size,
  .compact-filter select,
  .manufacture-size input {
    height: 42px;
    border-radius: 5px;
  }

  .filter-reset {
    height: 32px;
  }

  .result-count {
    padding-right: 4px;
    color: #424b55;
  }

  .result-count strong {
    color: var(--ink);
    font-weight: 750;
  }

  .active-filter-row {
    min-height: 48px;
    padding: 6px 0;
  }

  .active-chip {
    height: 34px;
    border-radius: 5px;
    background: #fffdf8;
  }

  .active-chip:hover {
    background: var(--amber-soft);
  }

  .catalog-layout {
    gap: 20px;
    padding-top: 16px;
  }

  .grade-sidebar {
    height: calc(100vh - 116px);
    padding: 16px 12px 12px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .grade-sidebar h2 {
    margin-bottom: 15px;
    font-size: 21px;
    letter-spacing: -.25px;
  }

  .grade-search input {
    height: 46px;
    border-radius: 6px;
    background: #fbfcfd;
  }

  .grade-list-scroll {
    margin-top: 15px;
    padding-right: 5px;
  }

  .all-grades-heading {
    padding: 4px 0 10px;
    background: #fff;
  }

  .grade-entry {
    min-height: 32px;
    border-radius: 5px;
  }

  .grade-row:hover .grade-entry {
    background: #f5f7f9;
  }

  .grade-row.active .grade-entry {
    border-color: var(--amber);
    background: var(--amber-soft);
    box-shadow: inset 3px 0 0 var(--amber);
  }

  .column-heads {
    height: 40px;
    position: relative;
    z-index: 5;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #f7f8fa;
    color: #68727d;
  }

  .column-heads span {
    align-self: center;
  }

  .product-group {
    margin-bottom: 26px;
  }

  .group-title {
    min-height: 54px;
    gap: 6px;
    padding-left: 3px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.2px;
  }

  .group-title img {
    width: 42px;
    height: 42px;
  }

  .product-list {
    overflow: visible;
    border-color: #d9dee4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 14px rgb(22 31 42 / 3%);
  }

  .product-entry:first-child,
  .product-entry:first-child > .price-row {
    border-radius: 7px 7px 0 0;
  }

  .product-entry:last-child,
  .product-entry:last-child > .price-row,
  .product-entry:last-child > :last-child {
    border-radius: 0 0 7px 7px;
  }

  .product-entry.selected-entry {
    outline: 0;
    background: #fffdf7;
    box-shadow: inset 0 0 0 1px #e7b846;
  }

  .product-card.price-row {
    min-height: 76px;
  }

  .product-card.price-row:hover {
    background: #f7f8fa;
  }

  .product-card.price-row.selected {
    background: #fffaf0;
    box-shadow: inset 3px 0 0 var(--amber);
  }

  .product-card.price-row .position-copy strong,
  .product-dimensions strong,
  .product-card.price-row .product-stock strong,
  .warehouse-cell strong,
  .product-card.price-row .product-price strong {
    letter-spacing: -.08px;
  }

  .availability {
    font-weight: 650;
  }

  .services-cell span {
    border-color: #d5dbe1;
    border-radius: 4px;
    background: #fbfcfd;
  }

  .details-trigger,
  .product-card.price-row .add-button {
    height: 36px;
    border-radius: 6px;
  }

  .details-trigger:hover,
  .product-card.price-row .add-button:hover {
    border-color: var(--amber);
    background: var(--amber-soft);
  }

  .price-row.selected .details-trigger {
    background: var(--amber);
  }

  .details-panel {
    top: 88px;
    max-height: calc(100vh - 100px);
    border-color: #cfd5dc;
    border-radius: 8px;
    background: #fff;
    background-clip: padding-box;
    clip-path: inset(0 round 8px);
    box-shadow: none;
    isolation: isolate;
    scrollbar-color: #c8ced5 transparent;
  }

  .details-inner {
    padding: 22px;
  }

  .details-top h2 {
    font-weight: 750;
    letter-spacing: -.35px;
  }

  .details-section {
    padding: 17px 0;
  }

  .details-section h3 {
    font-weight: 700;
    letter-spacing: -.18px;
  }

  .detail-grid {
    row-gap: 10px;
    line-height: 1.38;
  }

  .service-options {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
  }

  .details-panel .service-choice {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .details-panel .service-choice:last-child {
    border-bottom: 0;
  }

  .details-panel .service-choice:hover,
  .details-panel .service-choice.selected {
    background: var(--amber-soft);
    box-shadow: inset 3px 0 0 var(--amber);
  }

  .manager-action,
  .manager-secondary,
  .manufacture-from-card,
  .manufacture-request,
  .document-actions button {
    border-radius: 6px;
  }

  .manager-action:hover,
  .manager-secondary:hover,
  .manufacture-from-card:hover,
  .manufacture-request:hover {
    box-shadow: 0 4px 12px rgb(22 31 42 / 7%);
  }

  .footer-brand {
    width: 190px;
  }

  .site-footer {
    border-top-color: #dfe3e8;
  }
}

@media (min-width: 1101px) and (max-width: 1250px) {
  .header-inner {
    grid-template-columns: 164px 280px minmax(132px, 1fr) 202px 108px;
    gap: 8px;
  }

  .brand {
    max-width: 154px;
  }

  .city-nav {
    gap: 18px;
  }

  .column-heads .price-warehouse-filter > button span {
    overflow: visible;
    font-size: 9px;
    line-height: 1.12;
    text-overflow: clip;
    white-space: normal;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 154px 220px minmax(150px, 1fr) 185px 100px;
    gap: 7px;
  }

  .brand {
    max-width: 144px;
  }

  .city-nav {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Precision pass 23.08.2026: aligned selection, catalogue edges and motion. */
:root {
  --amber: #ffb000;
  --amber-soft: #fff8e9;
}

@media (min-width: 901px) {
  .header-inner {
    grid-template-columns: 188px 320px minmax(168px, 1fr) 218px;
  }

  .catalog-head {
    padding-right: 0;
  }

  .search-tools {
    grid-template-columns: minmax(240px, 1fr) 144px 134px 104px;
    gap: 6px;
  }

  .request-button {
    position: static;
    top: auto;
    right: auto;
    z-index: 1;
    width: 100%;
    min-width: 0;
    height: 50px;
    align-self: stretch;
    border-color: #bfc6ce;
    box-shadow: none;
  }

  .request-button:hover {
    border-color: var(--amber);
    background: var(--amber-soft);
    box-shadow: none;
  }

  .request-button.has-items {
    background: var(--amber-soft);
  }

  .catalog-layout {
    gap: 0;
    transition: grid-template-columns 300ms cubic-bezier(.22, .8, .28, 1);
  }

  .catalog-layout > .results {
    min-width: 0;
    transition: margin-left 300ms cubic-bezier(.22, .8, .28, 1);
  }

  .catalog-layout:not(.with-details) > .results {
    margin-left: 20px;
  }

  .catalog-layout.with-details > .results {
    margin-left: 0;
  }

  .group-more {
    min-height: 58px;
    grid-template-columns: minmax(0, 1fr) auto 28px;
    gap: 12px;
    padding: 8px 14px 8px 56px;
    border-top: 1px solid color-mix(in srgb, var(--amber) 48%, #d5dbe1);
    border-bottom: 1px solid color-mix(in srgb, var(--amber) 38%, #d5dbe1);
    background: color-mix(in srgb, var(--amber-soft) 76%, #fff);
    color: #514814;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 84%);
  }

  .group-more:hover,
  .group-more:focus-visible {
    background: var(--amber-soft);
  }

  .group-more span {
    font-size: 13px;
    font-weight: 750;
    letter-spacing: -.08px;
  }

  .group-more small {
    font-size: 10px;
  }

  .group-more i {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--amber) 54%, #cbd2d9);
    border-radius: 50%;
    background: #fff;
    transform: none;
  }

  .group-more i::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
  }

  .product-entry:has(.add-button:hover),
  .product-entry:has(.add-button:focus-visible),
  .add-button:hover,
  .add-button:focus-visible {
    z-index: 60;
  }

  .add-button::after {
    top: 50%;
    right: calc(100% + 8px);
    bottom: auto;
    box-shadow: 0 7px 18px rgb(22 31 42 / 18%);
    transform: translate(3px, -50%);
  }

  .add-button:hover::after,
  .add-button:focus-visible::after {
    transform: translate(0, -50%);
  }

  .product-entry.selected-entry {
    overflow: hidden;
    outline: 0;
    border-radius: 6px;
    background: #fff;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--amber) 72%, #9c8618);
  }

  .product-card.price-row.selected {
    background: #fff;
    box-shadow: none;
  }

  .selected-row-toolbar {
    max-height: 152px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
    overflow: hidden;
    padding: 8px 10px 9px;
    border: 0;
    border-top: 1px solid var(--line);
    background: #f7f8fa;
    animation: selected-row-expand 300ms cubic-bezier(.22, .8, .28, 1) both;
  }

  .catalog-layout.is-collapsing .selected-row-toolbar {
    pointer-events: none;
    animation: selected-row-collapse 280ms cubic-bezier(.4, 0, .2, 1) both;
  }

  .selected-row-summary {
    gap: 1px;
    padding-left: 2px;
  }

  .selected-row-summary small {
    color: #756515;
  }

  .selected-row-actions button {
    min-height: 30px;
    border-radius: 5px;
  }

  .selected-row-actions .row-primary {
    border-color: var(--amber);
    background: var(--amber);
  }

  .analogue-offer-grid {
    gap: 6px;
  }

  .analogue-intro,
  .analogue-stock-card,
  .analogue-manufacture-card {
    min-height: 72px;
    gap: 2px;
    padding: 7px 9px;
    border-color: #d7dce2;
    border-radius: 5px;
    background: #fff;
  }

  .analogue-intro {
    border-left: 1px solid #d7dce2;
    border-top: 2px solid var(--amber);
    background: #fff;
  }

  .analogue-intro small,
  .analogue-status {
    font-size: 7.5px;
  }

  .analogue-intro strong,
  .analogue-stock-card strong,
  .analogue-manufacture-card strong {
    font-size: 10.5px;
  }

  .analogue-intro span,
  .analogue-stock-card small,
  .analogue-manufacture-card small,
  .analogue-stock-card b,
  .analogue-manufacture-card b {
    font-size: 8.5px;
    line-height: 1.22;
  }

  .analogue-safety-note {
    font-size: 8px;
    line-height: 1.2;
  }

  .details-trigger-label {
    display: inline-block;
  }

  .price-row.selected .details-trigger-label {
    animation: details-label-in 220ms ease both;
  }

  .catalog-layout.is-collapsing .details-trigger-label {
    opacity: .55;
  }

  .details-product-hero {
    position: relative;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin: -22px -22px 0;
    padding: 18px 48px 18px 18px;
    border-bottom: 1px solid var(--line);
    background: #fafbfc;
  }

  .details-product-hero .details-close {
    top: 16px;
    right: 16px;
  }

  .details-product-visual {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #d8dde3;
    border-radius: 7px;
    background: #fff;
  }

  .details-product-visual img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    mix-blend-mode: multiply;
  }

  .details-product-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  .details-product-copy .panel-kicker {
    margin: 0;
  }

  .details-product-copy h2 {
    margin: 0;
    font-size: 25px;
    line-height: 1.02;
  }

  .details-product-copy p {
    margin: 0 0 3px;
    font-size: 13px;
  }

  .details-product-copy .availability {
    font-size: 12px;
  }

  .position-section .detail-grid {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 12px;
  }

  .position-section .detail-grid dt,
  .position-section .detail-grid dd {
    padding: 7px 8px;
    border-bottom: 1px solid var(--line);
  }

  .position-section .detail-grid dt {
    border-right: 1px solid var(--line);
    background: #f7f8fa;
  }

  .position-section .detail-grid dt:last-of-type,
  .position-section .detail-grid dd:last-of-type {
    border-bottom: 0;
  }
}

@keyframes selected-row-expand {
  from {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    max-height: 152px;
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes selected-row-collapse {
  from {
    max-height: 152px;
    opacity: 1;
    transform: translateY(0);
  }
  to {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top-color: transparent;
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes details-label-in {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 1101px) and (max-width: 1250px) {
  .header-inner {
    grid-template-columns: 164px 280px minmax(132px, 1fr) 202px;
  }

  .search-tools {
    grid-template-columns: minmax(220px, 1fr) 142px 128px 108px;
    gap: 5px;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 154px 220px minmax(150px, 1fr) 185px;
  }

  .search-tools {
    grid-template-columns: minmax(190px, 1fr) 132px 118px 102px;
    gap: 5px;
  }
}

@media (max-width: 900px) {
  .request-button {
    position: static;
    top: auto;
    right: auto;
    width: 100%;
    grid-column: 1 / -1;
    box-shadow: none;
  }
}
