:root {
  --red: #ee002b;
  --red-dark: #b60021;
  --ink: #111820;
  --ink-2: #1d2936;
  --steel: #526070;
  --line: #d6dde6;
  --paper: #ffffff;
  --paper-2: #f4f6f8;
  --warm: #ffb22e;
  --blue: #007c9d;
  --green: #00a878;
  --shadow: 0 18px 42px rgba(17, 24, 32, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #f7f8fa 0, #eef2f5 460px, #f7f8fa 100%);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  padding-bottom: 82px;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select,
input[type="checkbox"] {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.hidden {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-top: 5px solid var(--red);
  border-bottom: 1px solid rgba(17, 24, 32, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(17, 24, 32, 0.08);
}

.header-inner,
main {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: grid;
  grid-template-columns: 220px auto minmax(260px, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.nav-item {
  position: relative;
}

.products-nav::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -10px;
  right: -10px;
  height: 14px;
}

.nav-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 12px;
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active,
.products-nav.is-open > .nav-link {
  border-color: rgba(238, 0, 43, 0.22);
  background: rgba(238, 0, 43, 0.07);
  color: var(--red-dark);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 35;
  display: none;
  width: min(320px, calc(100vw - 32px));
  max-height: 380px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(17, 24, 32, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.products-nav.is-open .nav-dropdown {
  display: grid;
}

.nav-dropdown button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  background: transparent;
  color: var(--ink-2);
  text-align: left;
  font-weight: 800;
}

.nav-dropdown button:hover {
  background: #f1f3f5;
  color: var(--red-dark);
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  min-height: 46px;
  border: 1px solid rgba(17, 24, 32, 0.16);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(17, 24, 32, 0.08);
}

.search-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0 15px;
  color: var(--ink);
  outline: none;
}

.search-form button {
  border: 0;
  background: var(--ink);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.search-form button:hover,
.load-more-button:hover,
.detail-button:hover {
  filter: brightness(1.05);
}

main {
  padding: 28px 0 54px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 0.98;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-view {
  display: none;
}

.page-view.active {
  display: block;
}

.brand-strip {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid rgba(17, 24, 32, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(17, 24, 32, 0.08);
}

.brand-strip-copy {
  display: grid;
  gap: 8px;
  width: 100%;
}

.brand-strip-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.brand-strip-copy p {
  max-width: none;
  margin: 0;
  color: var(--steel);
  font-size: 16px;
  line-height: 1.48;
}

.brand-logo-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.brand-logo-grid img {
  display: block;
  width: 100%;
  height: 54px;
  object-fit: contain;
  padding: 8px 10px;
  border: 1px solid rgba(17, 24, 32, 0.08);
  border-radius: 8px;
  background: #ffffff;
}

.seo-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
  margin: 0 0 22px;
  padding: 20px;
  border: 1px solid rgba(17, 24, 32, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 24, 32, 0.07);
}

.seo-summary h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.seo-summary p {
  margin: 0;
  color: var(--steel);
  font-size: 15px;
  line-height: 1.55;
}

.seo-summary ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-summary li {
  padding: 7px 10px;
  border: 1px solid rgba(17, 24, 32, 0.14);
  border-radius: 7px;
  background: #f6f8fa;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
}

.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: end;
  margin-bottom: 26px;
  padding: 30px;
  border: 1px solid rgba(17, 24, 32, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(120deg, #ffffff 0, #ffffff 58%, rgba(238, 0, 43, 0.08) 58%, rgba(238, 0, 43, 0.08) 100%),
    var(--paper);
  box-shadow: var(--shadow);
}

.catalog-hero p,
.content-hero p,
.info-page p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--steel);
  font-size: 18px;
  line-height: 1.45;
}

.hero-panel {
  display: grid;
  gap: 4px;
  padding: 20px;
  border-left: 5px solid var(--red);
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
}

.hero-panel strong {
  font-size: 42px;
  line-height: 1;
}

.hero-panel span {
  color: #dbe2ea;
  font-weight: 700;
}

.catalog-toolbar {
  margin-bottom: 20px;
  padding-top: 4px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
}

.category-filter-reserved[hidden],
.catalog-hero-reserved[hidden] {
  display: none !important;
}

.select-label {
  display: grid;
  gap: 6px;
  color: var(--steel);
  font-size: 13px;
  font-weight: 800;
}

.filter-menu {
  position: relative;
  display: grid;
  min-width: 240px;
  gap: 6px;
}

.filter-label {
  color: var(--steel);
  font-size: 13px;
  font-weight: 800;
}

.filter-trigger,
.select-label select {
  min-height: 48px;
  border: 1px solid rgba(17, 24, 32, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(17, 24, 32, 0.06);
  font-weight: 900;
}

.filter-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 14px 0 16px;
}

.filter-trigger:hover,
.filter-trigger[aria-expanded="true"],
.select-label select:focus {
  border-color: rgba(238, 0, 43, 0.42);
  outline: none;
}

.filter-arrow {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
}

.filter-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 15;
  display: grid;
  width: min(340px, calc(100vw - 32px));
  max-height: 340px;
  overflow: auto;
  border: 1px solid rgba(17, 24, 32, 0.14);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.filter-option {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0 11px;
  background: transparent;
  color: var(--ink-2);
  text-align: left;
  font-weight: 800;
}

.filter-option:hover,
.filter-option.active {
  background: rgba(238, 0, 43, 0.08);
  color: var(--red-dark);
}

.select-label select {
  min-width: 188px;
  padding: 0 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 28px 0 0;
}

.load-more-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--red);
  color: #ffffff;
  font-weight: 900;
}

.product-card {
  display: grid;
  min-height: 392px;
  grid-template-rows: 190px auto;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 32, 0.14);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(17, 24, 32, 0.1);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(238, 0, 43, 0.28);
  box-shadow: 0 18px 38px rgba(17, 24, 32, 0.16);
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  height: 190px;
  min-height: 190px;
  overflow: hidden;
  background:
    linear-gradient(135deg, #ffffff, #f0f3f6 72%),
    var(--paper-2);
}

.product-media::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 70px;
  height: 4px;
  background: var(--red);
}

.product-media-button {
  width: 100%;
  border: 0;
  border-radius: 0;
}

.product-media-button:hover img {
  transform: scale(1.035);
}

.product-media img {
  display: block;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  object-fit: contain;
  padding: 0;
  transition: transform 160ms ease;
}

.image-fallback {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 18px;
  background: var(--ink);
  color: #ffffff;
  font-size: 38px;
  font-weight: 900;
}

.product-info {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  padding: 15px;
}

.product-category {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-name {
  min-height: 44px;
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.3;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price {
  color: var(--ink);
  font-size: 23px;
  font-weight: 900;
}

.code {
  color: var(--steel);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.detail-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 900;
}

.empty-state {
  padding: 52px 18px;
  border: 1px dashed rgba(17, 24, 32, 0.24);
  border-radius: 8px;
  text-align: center;
  color: var(--steel);
  background: var(--paper);
}

.empty-state h2 {
  margin-bottom: 8px;
  color: var(--ink);
}

.content-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 20px;
  padding: 30px;
  border: 1px solid rgba(17, 24, 32, 0.12);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.content-hero img {
  display: block;
  width: 100%;
  min-height: 280px;
  max-height: 380px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--ink);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.service-card {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 18px;
  border: 1px solid rgba(17, 24, 32, 0.13);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(17, 24, 32, 0.08);
}

.service-card span {
  color: var(--red);
  font-weight: 900;
}

.service-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.service-card p {
  margin: 0;
  color: var(--steel);
  line-height: 1.48;
}

.info-page {
  padding: 30px;
  border: 1px solid rgba(17, 24, 32, 0.12);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.contact-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(17, 24, 32, 0.14);
  border-radius: 8px;
  background: #f7f9fb;
}

.contact-card:hover {
  border-color: rgba(238, 0, 43, 0.34);
}

.contact-card span {
  color: var(--steel);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card strong {
  overflow-wrap: anywhere;
  font-size: 20px;
}

.map-frame {
  width: 100%;
  min-height: 480px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 32, 0.14);
  border-radius: 8px;
  background: #dfe5eb;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 480px;
  border: 0;
}

.product-dialog {
  width: min(920px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.product-dialog::backdrop {
  background: rgba(17, 24, 32, 0.58);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(17, 24, 32, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  z-index: 2;
}

.dialog-body {
  display: grid;
  grid-template-columns: minmax(260px, 42%) minmax(0, 1fr);
}

.dialog-gallery {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #eef2f5;
}

.dialog-image {
  display: grid;
  min-height: 430px;
  place-items: center;
  border: 0;
  padding: 0;
  background: #eef2f5;
}

.dialog-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 28px;
}

.dialog-image:not(:disabled):hover img {
  transform: scale(1.02);
}

.dialog-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 18px 18px;
}

.dialog-thumb {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 4px;
  background: #ffffff;
}

.dialog-thumb.active {
  border-color: var(--red);
}

.dialog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-zoom {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 24, 32, 0.92);
}

.image-zoom img {
  max-width: min(1100px, 96vw);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.image-zoom-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 26px;
  font-weight: 900;
}

.dialog-info {
  padding: 34px;
}

.dialog-info h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.15;
}

.dialog-price {
  margin-bottom: 18px;
  color: var(--red-dark);
  font-size: 30px;
  font-weight: 900;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.spec-item {
  padding: 12px;
  border: 1px solid rgba(17, 24, 32, 0.12);
  border-radius: 8px;
  background: #f7f9fb;
}

.spec-item span {
  display: block;
  margin-bottom: 5px;
  color: var(--steel);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.spec-item strong {
  color: var(--ink);
}

.description {
  color: var(--steel);
  line-height: 1.55;
  white-space: pre-line;
}

.site-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  border-top: 3px solid var(--red);
  background: var(--ink);
  box-shadow: 0 -12px 30px rgba(17, 24, 32, 0.2);
}

.footer-inner {
  display: flex;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.footer-inner span + span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 14px;
  border-radius: 999px;
  background: var(--warm);
  vertical-align: 1px;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .search-form {
    grid-column: 1 / -1;
  }

  .catalog-hero,
  .content-hero {
    grid-template-columns: 1fr;
  }

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

  .brand-logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-panel {
    max-width: 260px;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 136px;
  }

  .brand img {
    width: 170px;
  }

  .catalog-hero,
  .content-hero,
  .info-page {
    padding: 20px;
  }

  .brand-strip {
    padding: 12px;
  }

  .brand-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-logo-grid img {
    height: 48px;
  }

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

  .select-label,
  .select-label select,
  .filter-menu {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
  }

  .product-card {
    min-height: 350px;
    grid-template-rows: 160px auto;
  }

  .product-media {
    height: 160px;
    min-height: 160px;
  }

  .product-info {
    padding: 12px;
  }

  .product-name {
    font-size: 15px;
  }

  .price {
    font-size: 19px;
  }

  .content-hero img {
    min-height: 220px;
  }

  .dialog-body {
    grid-template-columns: 1fr;
  }

  .dialog-image {
    min-height: 280px;
  }

  .dialog-info {
    padding: 24px;
  }

  .spec-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    padding: 18px 0;
  }

  .footer-inner span + span::before {
    display: none;
  }
}
