@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyrillic.e58febde317b.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --font-apple: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", sans-serif;
}

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

body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
.logo,
.product-price,
.product-price small,
.cart-total > strong,
.checkout-summary-total strong,
.related-product-group h3 {
  font-family: var(--font-apple) !important;
}

.mobile-search-toggle { display: none; }

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.938c6e8019b6.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-cyrillic.3a5ed4d11365.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin.8616dc355070.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

.cart-quantity {
  display: flex;
  gap: 8px;
}

.cart-quantity input {
  width: 90px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.cart-quantity button {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  cursor: pointer;
}

.cart-controls { min-width: 170px; }
.cart-quantity { align-items: center; }
.quantity-button { width: 42px; height: 42px; padding: 0; font-size: 22px; font-weight: 700; }
.quantity-save { min-height: 42px; padding-inline: 12px; font-size: 13px; font-weight: 700; }
.cart-line-total { margin: 10px 0 0; font-size: 17px; font-weight: 800; }
.cart-back { width: 100%; margin-top: 10px; color: var(--ink); }
.cart-status { display: block; min-height: 24px; margin-top: 12px; color: #cfd4d6; font-size: 13px; }
.field-hint { color: var(--muted) !important; font-weight: 400; }
.company-details { grid-column: 1 / -1; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.company-details summary { cursor: pointer; font-weight: 700; }
.company-details[open] { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.company-details[open] summary { grid-column: 1 / -1; }
.field-wide { grid-column: 1 / -1; }
.order-summary-note { color: #b9bec0; font-size: 13px; }
.product-skeleton { pointer-events: none; overflow: hidden; }
.product-skeleton > div, .product-skeleton i, .product-skeleton b, .product-skeleton span { display: block; border-radius: 12px; background: linear-gradient(90deg, #f0f2f2 20%, #fafafa 37%, #f0f2f2 63%); background-size: 400% 100%; animation: skeleton-shimmer 1.2s ease infinite; }
.product-skeleton > div { height: 220px; }
.product-skeleton i { width: 35%; height: 12px; margin-top: 18px; }
.product-skeleton b { width: 82%; height: 18px; margin-top: 12px; }
.product-skeleton span { width: 56%; height: 14px; margin-top: 16px; }
@keyframes skeleton-shimmer { to { background-position: -135% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

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

.compare-table th,
.compare-table td {
  min-width: 180px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-scroll {
  overflow-x: auto;
}
.compare-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.compare-tools label { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.compare-table thead { position: sticky; top: 82px; z-index: 2; background: #fff; }
.compare-table th a { display: block; font-size: .82rem; }
.compare-table th button { margin-top: 8px; padding: 0; border: 0; color: var(--red); background: transparent; cursor: pointer; font-size: .75rem; }
.compare-product-image { width: 120px; height: 120px; margin-bottom: 8px; object-fit: contain; }

.document-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.document-grid article {
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.catalog-navigation { margin-top: 34px; }
.catalog-navigation-modes, .related-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.catalog-navigation-mode, .related-filter button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}
.catalog-navigation-mode.active, .related-filter button.active { border-color: var(--red); color: #fff; background: var(--red); }
.catalog-load-more { display: grid; justify-items: start; gap: 8px; }
.catalog-load-more p { min-height: 1.5em; margin: 0; color: var(--muted); font-size: .85rem; }
.related-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.related-product-group { margin-top: 58px; }
.related-product-group:first-of-type { margin-top: 0; }
.related-product-group h3 { margin: 0 0 20px; font-family: Unbounded, sans-serif; font-size: clamp(1.25rem, 2vw, 2rem); letter-spacing: -.04em; }
.related-group-head { display: grid; gap: 14px; margin-bottom: 20px; }
.related-group-head h3 { margin: 0; }
.related-group-head .related-filter { margin: 0; }

.quick-nav a { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid transparent; border-radius: 50%; font-size: 1.25rem; }
.quick-nav a:hover { border-color: var(--line); background: var(--soft); }
.quick-nav b { position: absolute; top: -3px; right: -5px; min-width: 17px; height: 17px; margin: 0; color: #fff; background: var(--red); }
.search-form { position: relative; overflow: visible; }
.search-suggestions { position: absolute; top: calc(100% + 8px); right: 0; left: 0; z-index: 40; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.search-suggestions a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.search-suggestions a:last-child { border-bottom: 0; }
.search-suggestions a:hover { background: var(--soft); }
.search-suggestions img { width: 48px; height: 48px; object-fit: contain; }
.search-suggestions b, .search-suggestions small { display: block; }
.search-suggestions b { font-size: .78rem; line-height: 1.3; }
.search-suggestions small, .search-suggestions p { margin: 0; color: var(--muted); font-size: .72rem; }
.search-suggestions p { padding: 14px; }

.product-card { min-height: 0; padding: 14px; border-color: transparent; box-shadow: 0 0 0 1px var(--line); }
.product-card:hover { box-shadow: 0 14px 34px rgba(32, 38, 42, .12); }
.product-image { height: 250px; margin-bottom: 8px; background: transparent; }
.product-image img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.product-card h3 { display: -webkit-box; min-height: 3.9em; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.product-buy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: stretch; }
.product-price-inline { display: flex; align-items: baseline; gap: 6px; min-width: 0; white-space: nowrap; }
.product-price-inline strong { font-size: 1.08rem; }
.product-price-inline small { color: var(--muted); font-size: .72rem; }
.product-card-actions { display: grid; grid-template-columns: 32px 32px minmax(88px, 1fr); gap: 4px; align-items: center; }
.card-cart { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 6px; }
.card-icon-button, .card-quantity button { display: grid; place-items: center; width: 32px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: .95rem; cursor: pointer; }
.product-card-actions > .card-icon-button, .product-card-actions .card-quantity > button { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.product-card-actions > .card-icon-button.active { border-color: var(--red); background: #fff; color: var(--red); }
.card-cart > button { display: grid; flex: 1 0 88px; place-items: center; min-width: 88px; height: 40px; padding: 0 8px; border: 0; border-radius: 11px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; white-space: nowrap; cursor: pointer; transition: min-width .25s ease, padding .25s ease; }
.card-cart.has-quantity > button { min-width: 40px; width: 40px; padding: 0; font-size: 0; }
.card-cart.has-quantity > button::after { content: "+"; font-size: 1.3rem; }
.card-cart.has-quantity { grid-column: 1 / -1; }
.card-quantity { display: flex; align-items: center; gap: 2px; border: 0; border-radius: 12px; background: transparent; animation: quantity-in .25s ease-out; }
.card-quantity[hidden] { display: none !important; }
.card-quantity output { min-width: 28px; text-align: center; font-size: .76rem; font-weight: 800; }
@keyframes quantity-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
.product-gallery { display: grid; min-height: 0; overflow: hidden; background: transparent; }
/* Supplier images contain large white margins; crop the canvas, not the product card. */
.gallery-stage { display: grid; place-items: center; width: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in; overflow: hidden; }
.gallery-stage > img { width: 100%; height: min(650px, 48vw); max-height: none; object-fit: contain; object-position: center; transform: none; }
.gallery-thumbs { z-index: 2; display: flex; gap: 8px; padding: 12px; overflow-x: auto; background: #fff; scroll-snap-type: x mandatory; }
.gallery-thumbs button { flex: 0 0 66px; width: 66px; height: 66px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; scroll-snap-align: start; }
.gallery-thumbs button.active { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.image-lightbox[hidden] { display: none !important; }
.image-lightbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.image-lightbox-backdrop { position: absolute; inset: 0; border: 0; background: rgba(13, 16, 18, .9); }
.image-lightbox-dialog { position: relative; z-index: 1; display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; width: min(1100px, 100%); height: min(86vh, 900px); }
.image-lightbox-dialog > img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.image-lightbox-close, .image-lightbox-nav { display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.image-lightbox-close { position: absolute; top: 0; right: 0; z-index: 2; width: 44px; height: 44px; font-size: 1.6rem; }
.image-lightbox-nav { width: 42px; height: 42px; font-size: 2rem; }
.cart-thumb { background: transparent; }
.filter-facet { display: grid; gap: 6px; margin: 0; padding: 12px 0; border: 0; border-top: 1px solid var(--line); }
.filter-facet legend { padding: 0; font-size: .82rem; font-weight: 800; }
.filter-option { display: grid !important; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; font-weight: 400 !important; cursor: pointer; }
.filter-option input { width: auto !important; }
.filter-option small { color: var(--muted); }
.filter-option.unavailable { color: #aeb3b5; cursor: not-allowed; }
.filter-more { margin-top: 7px; }
.filter-more summary { color: var(--red); font-size: .78rem; font-weight: 800; cursor: pointer; }
.filter-more .filter-option { margin-top: 7px; }

.product-info h1 { max-width: 760px; font-size: clamp(1.65rem, 2.05vw, 2.4rem); line-height: 1.1; }
.product-price { display: grid; gap: 3px; }
.product-price small { color: var(--muted); font-family: Manrope, sans-serif; font-size: .82rem; }
.icon-action { display: grid; place-items: center; width: 48px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-size: 1.1rem; }
.product-quantity { display: grid; grid-template-columns: 40px minmax(54px, 72px) 40px; align-items: center; gap: 4px; }
.product-quantity input { width: 100%; max-width: none; height: 44px; padding: 6px; text-align: center; }
.product-quantity button { width: 40px; height: 44px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); cursor: pointer; font-size: 1.1rem; }
.product-discount-callout { display: grid; gap: 7px; margin-top: 24px; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, #272d31, #3d4549); color: #fff; }
.product-discount-callout span { color: #d5d9da; font-size: .82rem; }
.product-discount-callout button { justify-self: start; padding: 0; border: 0; background: transparent; color: #fff; font-weight: 800; text-decoration: underline; cursor: pointer; }
.product-description { margin-top: 74px; padding-top: 44px; border-top: 1px solid var(--line); }
.product-description p { width: 100%; max-width: none; }
.product-specifications { margin-top: 56px; }
.spec-groups { columns: 2; column-gap: 60px; margin-top: 26px; }
.spec-groups > section { break-inside: avoid; margin: 0 0 28px; }
.spec-groups h3 { margin: 0 0 10px; font-size: 1rem; }
.spec-groups dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 0; }
.spec-groups dt, .spec-groups dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.spec-groups dd { text-align: right; }
.documents-section { max-width: none; }
.document-grid article strong { overflow-wrap: anywhere; }
.related-product-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.related-product-grid > div { min-width: 0; }
.related-product-grid .product-card { height: 100%; }
.related-product-grid .product-image { height: 180px; }
.related-product-grid .product-card h3 { font-size: .82rem; }
.related-more { margin-top: 18px; }
.toast-region { position: fixed; top: 100px; right: 20px; z-index: 100; display: grid; gap: 10px; width: min(360px, calc(100vw - 28px)); pointer-events: none; }
.toast { padding: 14px 16px; border-radius: 12px; background: #20272b; color: #fff; box-shadow: var(--shadow); animation: toast-in .2s ease-out; transition: opacity .3s, transform .3s; }
.toast.leaving { opacity: 0; transform: translateX(18px); }
@keyframes toast-in { from { opacity: 0; transform: translateX(18px); } }

.remove { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 50%; font-size: 1.2rem; line-height: 1; }
.cart-quantity { gap: 4px; }
.cart-quantity input { width: 62px; padding: 7px; text-align: center; }
.quantity-button { width: 34px; height: 34px; font-size: 18px; }
.checkout-summary-total { display: grid !important; gap: 6px; padding-bottom: 16px !important; }
.checkout-summary-total strong { font-size: 1.75rem; letter-spacing: -.035em; }
.checkout-summary-link { color: #fff; text-decoration: underline; font-size: .85rem; }
.order-summary { min-height: 0; padding: 30px; border-radius: 24px; }
.order-summary-label { display: block; margin-bottom: 8px; color: #99a1a5; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.order-summary h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.035em; }
.checkout-section { padding-top: 54px; }
.checkout-layout { grid-template-columns: minmax(0, 720px) minmax(300px, 380px); align-items: start; justify-content: center; gap: 32px; }
.checkout-form { min-width: 0; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.checkout-form .field { align-content: start; grid-template-rows: auto auto auto; }
.checkout-form .field > input,
.checkout-form .field > textarea { min-height: 50px; }
.checkout-form .field-email { grid-column: 1 / -1; }
.checkout-form .field-email > input { width: min(100%, 420px); }
.checkout-form .field-check { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 10px; }
.checkout-form .field-check input { width: 18px; height: 18px; margin: 2px 0 0; }

.site-footer { padding: 70px 0 24px; }
.footer-grid { grid-template-columns: 1.4fr .8fr .9fr; }
.footer-grid > div { display: grid; align-content: start; gap: 12px; }
.footer-grid p, .footer-grid a, .footer-grid span { margin: 0; color: #b7bec1; font-size: .88rem; }
.footer-grid a:hover { color: #fff; }
.footer-grid strong { color: #fff; }
.footer-request { justify-self: start; margin-top: 8px; padding: 0; border: 0; color: #fff; background: transparent; font-weight: 800; cursor: pointer; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 54px; padding-top: 20px; border-top: 1px solid #3c4448; color: #899296; font-size: .76rem; }

@media (max-width: 980px) {
  .checkout-layout { grid-template-columns: minmax(0, 1fr); max-width: 760px; gap: 20px; }
  .checkout-layout .order-summary { position: static; order: -1; width: 100%; }
}

@media (max-width: 760px) {
  .site-header { backdrop-filter: none; }
  .header-main { grid-template-columns: minmax(0, 1fr) 44px 44px; gap: 8px; }
  .mobile-search-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; }
  .mobile-search-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .search-form.mobile-open { position: fixed; top: 72px; right: 0; left: 0; z-index: 42; display: flex; padding: 10px 14px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: #fff; box-shadow: 0 16px 30px rgba(32, 38, 42, .12); }
  .search-form.mobile-open input { min-width: 0; border: 1px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: var(--soft); }
  .search-form.mobile-open > button { border: 1px solid var(--red); border-radius: 0 12px 12px 0; color: #fff; background: var(--red); }
  .search-form.mobile-open .search-suggestions { top: 140px; }
  body.menu-open { overflow: hidden; }
  .search-suggestions { position: fixed; top: 68px; right: 14px; left: 14px; max-height: calc(100vh - 90px); overflow-y: auto; }
  .related-heading { display: block; margin-bottom: 26px; }
  .related-heading .related-filter { margin-top: 20px; }
  .related-product-group { margin-top: 42px; }
  .catalog-navigation-mode, .related-filter button { min-height: 38px; padding: 0 12px; font-size: .78rem; }
  .breadcrumbs { flex-wrap: nowrap; overflow-x: auto; margin-bottom: 14px; padding-bottom: 3px; white-space: nowrap; }
  .breadcrumbs a, .breadcrumbs span { flex: 0 0 auto; }
  .product-info h1 { margin: 12px 0; font-size: clamp(1.28rem, 5.3vw, 1.65rem); line-height: 1.18; }
  .product-page { gap: 14px; margin-top: 14px; }
  .gallery-stage > img { height: min(88vw, 430px); object-fit: contain; transform: none; }
  .image-lightbox { padding: 10px; }
  .image-lightbox-dialog { grid-template-columns: 36px minmax(0, 1fr) 36px; height: 92vh; }
  .image-lightbox-nav { width: 34px; height: 34px; }
  .product-description { margin-top: 46px; padding-top: 30px; }
  .spec-groups { columns: 1; }
  .related-product-grid { display: grid; grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .related-product-grid .product-image { height: 145px; }
  .related-product-grid .product-card { padding: 10px; }
  .related-product-grid .product-buy { align-items: flex-end; }
  .related-product-grid .product-actions-inline { display: none; }
  .related-product-grid .product-card h3 { min-height: 3.6em; -webkit-line-clamp: 3; }
  .toast-region { top: 82px; right: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { display: grid; margin-top: 32px; }
  .compare-tools { align-items: start; flex-direction: column; }
  .checkout-section { padding-top: 28px; }
  .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .order-summary { order: -1; padding: 22px; }
  .checkout-form { padding: 20px 16px; border-radius: 20px; }
  .checkout-form .field-email > input { width: 100%; }
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 10px;
  color: #fff;
  background: #17191a;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #ed1b2f;
  outline-offset: 3px;
}

body.modal-open {
  overflow: hidden;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pagination {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
}

.pagination a,
.pagination span {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.pagination a {
  color: var(--ink);
  background: var(--paper);
  font-weight: 700;
}

.product-image img,
.product-gallery img,
.cart-thumb img,
.category-card img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.category-card img {
  height: 100%;
  object-fit: cover;
}

.catalog-layout,
.catalog-layout > *,
.product-page,
.product-page > *,
.product-info,
.product-grid,
.product-card,
.product-card h3,
.product-card h3 a {
  min-width: 0;
}

.product-card h3 a {
  overflow-wrap: anywhere;
}

.filters input,
.filters select,
.filters button {
  max-width: 100%;
}

.filters-toggle {
  display: none;
}

@media (min-width: 761px) {
  .mega-root-panel[hidden],
  .mega-third-panel[hidden] { display: none !important; }

  .mega-menu {
    max-height: none !important;
    overflow: visible !important;
    border-top: 1px solid transparent;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .18s ease, transform .18s ease, border-color .18s ease;
  }

  .mega-menu.open {
    max-height: none !important;
    overflow: visible !important;
    border-color: var(--line);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* The catalog must remain usable while JavaScript is still initializing. */
  .site-header:has(.catalog-trigger:hover) .mega-menu,
  .site-header:has(.mega-menu:hover) .mega-menu {
    max-height: none !important;
    overflow: visible !important;
    border-color: var(--line);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mega-shell {
    display: grid;
    grid-template-columns: minmax(255px, 290px) minmax(0, 1fr);
    height: min(680px, calc(100vh - 100px));
    min-height: 0;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 34px 72px rgba(25, 31, 35, .15);
  }

  .mega-level-root {
    display: grid;
    align-content: start;
    gap: 3px;
    padding: 25px 18px;
    overflow-y: auto;
    border-right: 1px solid var(--line);
    background: linear-gradient(135deg, #f4f5f5, #fbfbfb);
  }

  .mega-all-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 4px 15px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-size: .85rem;
    font-weight: 800;
  }

  .mega-root-link,
  .mega-second-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  .mega-root-link:hover,
  .mega-root-link:focus-visible,
  .mega-root-link.active,
  .mega-second-link:hover,
  .mega-second-link:focus-visible,
  .mega-second-link.active {
    background: rgba(237, 27, 47, .08);
    color: var(--red);
  }

  .mega-root-link.active { box-shadow: inset 3px 0 0 var(--red); }
  .mega-root-link i,
  .mega-second-link i { font-size: 1.4rem; font-style: normal; line-height: 1; }

  .mega-content { min-width: 0; overflow: hidden; }

  .mega-root-panel {
    display: grid;
    grid-template-columns: minmax(250px, .7fr) minmax(0, 1fr);
    grid-template-rows: max-content minmax(0, 1fr);
    align-content: start;
    gap: 0;
    height: 100%;
    min-height: 0;
  }

  .mega-panel-head {
    display: flex;
    grid-column: 1 / -1;
    align-self: start;
    align-items: baseline;
    gap: 12px;
    padding: 28px 30px 20px;
  }

  .mega-panel-head a { color: var(--ink); font-size: 1.25rem; font-weight: 800; }
  .mega-panel-head span { color: var(--muted); font-size: .75rem; }

  .mega-level-second {
    display: grid;
    align-content: start;
    gap: 4px;
    padding: 0 22px 28px 30px;
    overflow-y: auto;
  }

  .mega-second-link { padding-left: 12px; font-size: .9rem; }

  .mega-level-third {
    min-width: 0;
    padding: 0 30px 28px 26px;
    border-left: 1px solid var(--line);
    overflow-y: auto;
  }

  .mega-third-panel .mega-panel-head { padding: 0 0 16px; }
  .mega-third-panel .mega-panel-head a { font-size: 1rem; }

  .mega-third-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 18px;
  }

  .mega-third-links a {
    display: block;
    padding: 9px 0;
    color: var(--ink);
    font-size: .87rem;
    line-height: 1.35;
  }

  .mega-third-links a:hover,
  .mega-third-links a:focus-visible { color: var(--red); }
  .mega-view-section { color: var(--red) !important; font-weight: 800; }
}

@media (max-width: 760px) {
  .mega-menu {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: none;
    overflow: hidden;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: opacity .2s ease, transform .28s ease, visibility 0s linear .28s;
  }
  .mega-menu:not(.open) { content-visibility: hidden; }
  .mega-menu.open {
    max-height: none;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition-delay: 0s;
  }
  .mega-shell { position: relative; width: 100%; height: 100%; min-height: 0; padding: 0; overflow: hidden; }
  .mega-level-root, .mega-content { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; transition: transform .28s ease; }
  .mega-level-root { display: grid; align-content: start; gap: 6px; padding: 18px 14px 32px; transform: translateX(0); }
  .mega-all-link, .mega-root-link, .mega-second-link { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 10px 14px; border-radius: 10px; }
  .mega-all-link { margin-bottom: 8px; border: 1px solid var(--line); font-weight: 800; }
  .mega-root-link { width: 100%; border: 0; background: var(--soft); color: var(--ink); font: inherit; text-align: left; }
  .mega-root-link.active { color: var(--red); }
  .mega-content { margin: 0; transform: translateX(100%); }
  .mega-menu[data-mobile-level="second"] .mega-level-root, .mega-menu[data-mobile-level="third"] .mega-level-root { transform: translateX(-100%); }
  .mega-menu[data-mobile-level="second"] .mega-content, .mega-menu[data-mobile-level="third"] .mega-content { transform: translateX(0); }
  .mega-root-panel[hidden], .mega-third-panel[hidden] { display: none !important; }
  .mega-root-panel { position: relative; min-height: 100%; padding: 18px 14px 32px; }
  .mega-panel-head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; margin-bottom: 16px; }
  .mega-panel-head span { grid-column: 2; }
  .mega-panel-head a { font-weight: 800; }
  .mega-panel-head span { color: var(--muted); font-size: 12px; }
  .mega-level-second { display: grid; gap: 4px; }
  .mega-second-link { color: var(--ink); background: #f7f8f8; }
  .mega-second-link.active { color: var(--red); background: rgba(237, 27, 47, .08); }
  .mega-level-third { position: absolute; inset: 0; min-height: 100%; padding: 18px 14px 32px; overflow-y: auto; background: #fff; transform: translateX(100%); transition: transform .28s ease; }
  .mega-menu[data-mobile-level="third"] .mega-level-third { transform: translateX(0); }
  .mega-third-links { display: grid; gap: 2px; }
  .mega-third-links a { padding: 9px 0; font-size: 14px; }
  .mega-back { display: inline-flex; width: max-content; padding: 0; border: 0; color: var(--red); background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
  .cart-row { grid-template-columns: 76px minmax(0, 1fr); }
  .cart-thumb { width: 76px; height: 76px; }
  .cart-row .cart-controls, .cart-row > form { grid-column: 2; }
  .cart-controls { min-width: 0; }
  .quantity-save { display: none; }
  .company-details[open] { grid-template-columns: 1fr; }
  .filters-toggle {
    display: flex;
    width: 100%;
    margin-bottom: 18px;
  }

  .filters {
    display: none;
  }

  .filters.open {
    display: grid;
  }

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

  .document-grid article { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
  .document-grid article .button { min-height: 42px; padding-inline: 14px; }

  .pagination {
    justify-content: space-between;
  }

  .pagination a,
  .pagination span {
    padding-inline: 12px;
    font-size: 13px;
  }
}

@media (min-width: 761px) { .mega-back { display: none; } }

@media (max-width: 430px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .related-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .related-product-grid .product-buy > div { min-width: 0; }
  .related-product-grid .product-buy strong { font-size: .9rem; }
  .related-product-grid .card-cart > button { width: 34px; height: 34px; }
}

/* Homepage: product-led lighting studio */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 66px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 221, 165, .28), transparent 27%),
    linear-gradient(135deg, #faf9f6 0%, #fff 55%, #f0f1f1 100%);
}

.home-hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(47, 54, 58, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 54, 58, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  mask-image: linear-gradient(to right, #000, transparent 70%);
}

.home-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(460px, .95fr);
  align-items: center;
  gap: clamp(44px, 6vw, 96px);
}

.home-label,
.home-heading > span,
.home-heading > div > span,
.home-engineering-intro > span,
.home-final-card > div > span {
  display: block;
  margin-bottom: 17px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3.5rem, 5.4vw, 6.25rem);
  font-weight: 750;
  line-height: .92;
  letter-spacing: -.075em;
}

.home-hero h1 em { color: var(--red); font-style: normal; }
.home-hero-lead { max-width: 690px; margin: 28px 0; color: #5f6669; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; }

.home-task-search { max-width: 690px; padding: 9px; border: 1px solid rgba(47, 54, 58, .13); border-radius: 19px; background: rgba(255, 255, 255, .82); box-shadow: 0 18px 55px rgba(38, 44, 48, .08); backdrop-filter: blur(18px); }
.home-task-search label { display: block; padding: 3px 8px 7px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.home-task-search > div { display: flex; gap: 8px; }
.home-task-search input { min-width: 0; width: 100%; height: 52px; padding: 0 15px; border: 0; border-radius: 12px; background: #f3f4f4; outline: 0; }
.home-task-search input:focus { box-shadow: inset 0 0 0 2px var(--red); }
.home-task-search button { min-width: 104px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 800; cursor: pointer; }
.home-task-search button:hover { background: var(--red); }

.home-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.home-button-dark { border-color: var(--ink); background: transparent; color: var(--ink); }
.home-button-dark:hover { background: var(--ink); color: #fff; }
.home-assurances { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 0; color: #646b6e; font-size: 13px; list-style: none; }
.home-assurances li { display: flex; align-items: center; gap: 7px; }
.home-assurances i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(237, 27, 47, .1); color: var(--red); font-style: normal; font-weight: 900; }

.home-scene {
  --scene-glow: rgba(255, 206, 116, .8);
  --scene-edge: rgba(255, 216, 146, .18);
  position: relative;
  min-height: 610px;
  overflow: hidden;
  padding: 30px;
  border-radius: 38px;
  background: linear-gradient(155deg, #1b1f22, #090b0d 75%);
  color: #fff;
  box-shadow: 0 38px 90px rgba(24, 29, 32, .24);
  transition: background .7s ease;
}
.home-scene[data-home-scene="retail"] { --scene-glow: rgba(225, 237, 255, .92); --scene-edge: rgba(183, 214, 255, .2); background: linear-gradient(150deg, #222b32, #090d10 75%); }
.home-scene[data-home-scene="facade"] { --scene-glow: rgba(255, 107, 82, .86); --scene-edge: rgba(237, 27, 47, .22); background: linear-gradient(150deg, #2a1d1e, #090a0b 75%); }
.home-scene::after { position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, .1); border-radius: inherit; pointer-events: none; content: ""; }
.home-scene-beam { position: absolute; top: -38%; left: 3%; width: 94%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff 0 1.5%, var(--scene-glow) 3%, var(--scene-edge) 18%, transparent 62%); filter: blur(4px); transition: background .7s ease, transform .7s ease; }
.home-scene[data-home-scene="retail"] .home-scene-beam { transform: translateX(13%) scale(.9); }
.home-scene[data-home-scene="facade"] .home-scene-beam { transform: translateX(-12%) scale(1.12); }
.home-scene-top { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 18px; color: #aeb4b7; font-size: 12px; }
.home-scene-top strong { color: #fff; font-size: 13px; }
.home-scene-products { position: relative; z-index: 2; height: 365px; }
.home-scene-product { position: absolute; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255, 255, 255, .15); border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 28px 70px rgba(0, 0, 0, .42); transition: transform .5s cubic-bezier(.2,.8,.2,1), border-radius .5s ease; }
.home-scene-product:hover { transform: translateY(-8px) scale(1.02); }
.home-scene-product img { width: 84%; height: 84%; object-fit: contain; }
.home-scene-product-1 { top: 54px; left: 11%; width: 230px; height: 230px; }
.home-scene-product-2 { right: 3%; bottom: 18px; width: 174px; height: 174px; }
.home-scene-product-3 { top: 55px; right: 3%; width: 120px; height: 120px; }
.home-scene[data-home-scene="retail"] .home-scene-product { border-radius: 25%; }
.home-scene[data-home-scene="facade"] .home-scene-product-1 { transform: translateX(20px) rotate(-4deg); }
.home-scene > p { position: relative; z-index: 2; min-height: 44px; max-width: 430px; margin: 3px 0 20px; color: #d6d9da; font-size: 14px; }
.home-scene-switch { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 14px; background: rgba(255, 255, 255, .055); }
.home-scene-switch button { min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: #aeb4b7; font-weight: 700; cursor: pointer; transition: .25s ease; }
.home-scene-switch button.active { background: #fff; color: #171b1e; }

.home-proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.home-proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.home-proof-grid > div { display: grid; gap: 3px; min-width: 0; padding: 24px 28px; border-right: 1px solid var(--line); }
.home-proof-grid > div:first-child { padding-left: 0; }
.home-proof-grid > div:last-child { border-right: 0; }
.home-proof-grid strong { font-size: 21px; letter-spacing: -.035em; }
.home-proof-grid span { color: var(--muted); font-size: 12px; }

.home-heading { max-width: 870px; margin-bottom: 42px; }
.home-heading h2, .home-engineering h2, .home-final h2 { margin: 0; font-size: clamp(2.4rem, 4.2vw, 5rem); font-weight: 750; line-height: .98; letter-spacing: -.065em; }
.home-heading > p { max-width: 700px; margin: 19px 0 0; color: var(--muted); font-size: 17px; }
.home-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 28px; max-width: none; }
.home-heading-row > div { max-width: 900px; }
.home-arrow-link { display: inline-flex; align-items: center; gap: 20px; flex: 0 0 auto; padding: 0 0 9px; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--ink); font-size: 14px; font-weight: 800; cursor: pointer; }
.home-arrow-link i { color: var(--red); font-style: normal; }

.home-route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.home-route-card { display: flex; flex-direction: column; min-height: 355px; padding: 32px; border: 1px solid var(--line); border-radius: 26px; background: #fff; }
.home-route-card > span { color: var(--red); font-size: 12px; font-weight: 850; }
.home-route-card h3 { margin: auto 0 12px; font-size: clamp(1.5rem, 2vw, 2.1rem); line-height: 1.05; letter-spacing: -.045em; }
.home-route-card p { min-height: 70px; margin: 0 0 24px; color: var(--muted); }
.home-route-card a, .home-route-card button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 15px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: inherit; font-weight: 800; text-align: left; cursor: pointer; }
.home-route-card i { color: var(--red); font-style: normal; }
.home-route-card-red { border-color: var(--red); background: var(--red); color: #fff; }
.home-route-card-red > span, .home-route-card-red i { color: #fff; }
.home-route-card-red p { color: rgba(255, 255, 255, .78); }
.home-route-card-red a { border-color: rgba(255, 255, 255, .35); }
.home-route-card-dark { border-color: var(--dark); background: var(--dark); color: #fff; }
.home-route-card-dark p { color: #bbc0c2; }
.home-route-card-dark button { border-color: #4d5356; }

.home-catalog { background: #f3f4f4; }
.home-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.home-category-card { position: relative; display: flex; flex-direction: column; min-height: 315px; overflow: hidden; padding: 24px; border: 1px solid #e0e2e2; border-radius: 24px; background: #fff; transition: transform .3s ease, box-shadow .3s ease; }
.home-category-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(38, 44, 48, .12); }
.home-category-card > span { position: relative; z-index: 2; color: var(--red); font-size: 11px; font-weight: 850; }
.home-category-card h3 { position: relative; z-index: 2; max-width: 78%; margin: 12px 0; font-size: clamp(1.15rem, 1.55vw, 1.55rem); line-height: 1.08; letter-spacing: -.035em; }
.home-category-card > i { position: relative; z-index: 2; margin-top: auto; font-size: 12px; font-style: normal; font-weight: 750; }
.home-category-card img { position: absolute; right: -11%; bottom: -7%; width: 70%; height: 70%; object-fit: contain; opacity: .93; mix-blend-mode: multiply; transition: transform .45s ease; }
.home-category-card:hover img { transform: scale(1.06) rotate(-2deg); }
.home-category-card-3, .home-category-card-6 { background: linear-gradient(145deg, #fff, #fff1f1); }

.home-applications { position: relative; overflow: hidden; background: #171b1e; color: #fff; }
.home-applications::before { position: absolute; top: -380px; right: -220px; width: 780px; height: 780px; border-radius: 50%; background: radial-gradient(circle, rgba(237, 27, 47, .25), transparent 65%); content: ""; }
.home-heading-light > span { color: #ff5b68; }
.home-heading-light > p { color: #adb3b6; }
.home-application-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #454b4e; border-left: 1px solid #454b4e; }
.home-application-grid a { position: relative; min-height: 220px; padding: 26px; border-right: 1px solid #454b4e; border-bottom: 1px solid #454b4e; color: #fff; transition: background .3s ease; }
.home-application-grid a:hover { background: rgba(255, 255, 255, .055); }
.home-application-grid span { color: #ff5b68; font-size: 11px; font-weight: 850; }
.home-application-grid h3 { max-width: 300px; margin: 56px 0 8px; font-size: 24px; letter-spacing: -.035em; }
.home-application-grid p { max-width: 320px; margin: 0; color: #aeb4b7; font-size: 14px; }
.home-application-grid i { position: absolute; top: 25px; right: 25px; color: #ff5b68; font-style: normal; font-size: 20px; }

.home-products .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-engineering-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr); gap: clamp(50px, 8vw, 130px); }
.home-engineering-intro { position: sticky; top: 135px; align-self: start; }
.home-engineering-intro h2 { max-width: 700px; }
.home-engineering-intro p { max-width: 650px; margin: 25px 0 30px; color: var(--muted); font-size: 17px; }
.home-steps { margin: 0; padding: 0; list-style: none; }
.home-steps li { display: grid; grid-template-columns: 58px 1fr; gap: 20px; min-height: 158px; padding: 27px 0; border-top: 1px solid var(--line); }
.home-steps li:last-child { border-bottom: 1px solid var(--line); }
.home-steps li > span { color: var(--red); font-size: 12px; font-weight: 850; }
.home-steps h3 { margin: 0 0 9px; font-size: 24px; letter-spacing: -.035em; }
.home-steps p { max-width: 520px; margin: 0; color: var(--muted); }

.home-final { padding: 0 0 80px; }
.home-final-card { display: flex; align-items: end; justify-content: space-between; gap: 48px; padding: clamp(36px, 6vw, 78px); border-radius: 34px; background: var(--red); color: #fff; box-shadow: 0 32px 80px rgba(237, 27, 47, .22); }
.home-final-card > div > span { color: #fff; }
.home-final h2 { max-width: 850px; font-size: clamp(2.4rem, 4vw, 4.6rem); }
.home-final p { max-width: 680px; margin: 20px 0 0; color: rgba(255, 255, 255, .8); }
.home-final .button { flex: 0 0 auto; }

html.reveal-ready [data-home-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
html.reveal-ready [data-home-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .home-hero-grid { grid-template-columns: 1fr 440px; gap: 38px; }
  .home-hero h1 { font-size: clamp(3.25rem, 6vw, 5rem); }
  .home-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-products .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-engineering-grid { grid-template-columns: 1fr 1fr; gap: 60px; }
}

@media (max-width: 860px) {
  .home-hero { padding-top: 46px; }
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-scene { min-height: 560px; }
  .home-scene-product-1 { left: 22%; }
  .home-proof-grid { grid-template-columns: repeat(2, 1fr); }
  .home-proof-grid > div { border-bottom: 1px solid var(--line); }
  .home-proof-grid > div:nth-child(2) { border-right: 0; }
  .home-proof-grid > div:first-child { padding-left: 28px; }
  .home-proof-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
  .home-route-grid { grid-template-columns: 1fr; }
  .home-route-card { min-height: 280px; }
  .home-route-card p { min-height: 0; }
  .home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-application-grid { grid-template-columns: repeat(2, 1fr); }
  .home-engineering-grid { grid-template-columns: 1fr; }
  .home-engineering-intro { position: static; }
  .home-final-card { align-items: start; flex-direction: column; }
}

@media (max-width: 760px) {
  .home-hero { padding: 38px 0 46px; }
  .home-hero::before { background-size: 38px 38px; }
  .home-hero h1 { font-size: clamp(2.75rem, 13vw, 4.3rem); }
  .home-hero-lead { margin: 22px 0; font-size: 16px; }
  .home-task-search > div { align-items: stretch; }
  .home-task-search input { height: 48px; font-size: 14px; }
  .home-task-search button { min-width: 84px; }
  .home-hero-actions { display: grid; grid-template-columns: 1fr; }
  .home-hero-actions .button { width: 100%; }
  .home-assurances { display: grid; gap: 9px; }
  .home-scene { min-height: 490px; padding: 22px; border-radius: 26px; }
  .home-scene-products { height: 292px; }
  .home-scene-product-1 { top: 40px; left: 5%; width: 180px; height: 180px; }
  .home-scene-product-2 { right: 2%; bottom: 12px; width: 135px; height: 135px; }
  .home-scene-product-3 { top: 45px; right: 2%; width: 90px; height: 90px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .home-heading { margin-bottom: 30px; }
  .home-heading h2, .home-engineering h2, .home-final h2 { font-size: clamp(2.25rem, 10vw, 3.5rem); }
  .home-heading-row { align-items: start; flex-direction: column; }
  .home-route-card { min-height: 260px; padding: 25px; }
  .home-category-card { min-height: 250px; padding: 18px; border-radius: 18px; }
  .home-category-card h3 { max-width: 95%; font-size: 18px; overflow-wrap: anywhere; }
  .home-category-card img { width: 76%; height: 62%; }
  .home-application-grid { grid-template-columns: 1fr 1fr; }
  .home-application-grid a { min-height: 190px; padding: 19px; }
  .home-application-grid h3 { margin-top: 45px; font-size: 19px; }
  .home-application-grid p { font-size: 12px; }
  .home-application-grid i { top: 18px; right: 18px; }
  .home-products .product-grid { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; }
  .home-steps li { grid-template-columns: 42px 1fr; gap: 10px; min-height: 130px; }
  .home-steps h3 { font-size: 20px; }
  .home-final { padding-bottom: 28px; }
  .home-final-card { gap: 28px; padding: 30px 24px; border-radius: 24px; }
  .home-final .button { width: 100%; }
}

@media (max-width: 430px) {
  .home-task-search button { min-width: 72px; padding: 0 10px; font-size: 13px; }
  .home-proof-grid > div { padding: 18px 14px; }
  .home-proof-grid > div:first-child { padding-left: 14px; }
  .home-proof-grid strong { font-size: 18px; }
  .home-category-grid { gap: 9px; }
  .home-category-card { min-height: 220px; padding: 15px; }
  .home-category-card h3 { font-size: 16px; }
  .home-category-card > i { font-size: 11px; }
  .home-application-grid { grid-template-columns: 1fr; }
  .home-application-grid a { min-height: 160px; }
  .home-application-grid h3 { margin-top: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html.reveal-ready [data-home-reveal] { opacity: 1; transform: none; }
}

/* Related products progressively reduce density instead of squeezing cards. */
@media (min-width: 1101px) and (max-width: 1279px) {
  .related-product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .related-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 761px) and (max-width: 900px) {
  .related-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-page { grid-template-columns: 1fr; gap: 34px; }
  .product-page .buy-form { flex-wrap: wrap; }
}

@media (max-width: 340px) {
  .related-product-grid { grid-template-columns: 1fr; }
}

.related-product-grid .product-image {
  position: relative;
  display: block;
  overflow: hidden;
}

.related-product-grid .product-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.breadcrumbs {
  flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.breadcrumbs::-webkit-scrollbar {
  display: none;
}

.breadcrumbs > * {
  flex: 0 0 auto;
}

.mobile-cart-link {
  display: none;
}

.product-card-quick-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: flex;
  gap: 5px;
}

.product-card-quick-actions .card-icon-button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 3px 12px rgba(32, 38, 42, .06);
  font-size: .78rem;
  line-height: 1;
}

.product-card-quick-actions .card-icon-button.active {
  border-color: var(--red);
  color: var(--red);
  background: #fff;
}

.product-buy .card-cart {
  justify-self: end;
  width: min(100%, 170px);
}

.card-cart > [data-card-add] {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  transition: width .28s ease, max-width .28s ease, opacity .18s ease, padding .28s ease, transform .28s ease;
}

.card-cart.has-quantity {
  width: 100%;
}

.card-cart.has-quantity > [data-card-add] {
  width: 0;
  min-width: 0;
  max-width: 0;
  flex-basis: 0;
  padding-inline: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
}

.card-cart.has-quantity > [data-card-add]::after {
  content: none;
}

.card-quantity {
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  width: 100%;
  gap: 6px;
}

.card-quantity:not([hidden]) {
  display: grid;
}

.card-quantity button,
.product-card-actions .card-quantity > button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
}

.card-quantity input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  appearance: textfield;
}

.card-quantity input::-webkit-inner-spin-button,
.card-quantity input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

@media (max-width: 760px) {
  .header-main {
    grid-template-columns: minmax(0, 1fr) 44px 44px 44px;
  }

  .mobile-cart-link {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: #fff;
  }

  .mobile-cart-link svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-cart-link b {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: var(--red);
    font-size: .62rem;
    line-height: 1;
  }

  .related-product-grid .card-cart > [data-card-add] {
    width: 100%;
    height: 38px;
  }

  .related-product-grid .card-cart.has-quantity > [data-card-add] {
    width: 0;
  }
}
.product-grid.filter-loading { opacity: .55; transition: opacity .15s ease; cursor: progress; }
.product-grid.filter-loading::before { content: "Обновляем товары…"; position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 40; padding: 12px 20px; border-radius: 24px; background: #222; color: #fff; font-size: 14px; pointer-events: none; }
