:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #fafafc;
  --ink: #111111;
  --muted: #6e6e73;
  --line: #e2e2e7;
  --line-strong: #d1d1d6;
  --shadow: 0 18px 48px rgba(17, 17, 17, 0.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --container: 1320px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(0, 0, 0, 0.03), transparent 22%),
    linear-gradient(180deg, #fafafc 0%, var(--bg) 100%);
}

body.filters-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

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

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  background: #111111;
  color: #ffffff;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(226, 226, 231, 0.7);
  background: rgba(245, 245, 247, 0.82);
  backdrop-filter: blur(18px);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
}

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

.brand strong {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.header-share-wrap {
  display: none;
}

.header-spacer {
  display: none;
}

.header-call {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.625rem;
  height: 2.625rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.08);
}

.header-call img {
  width: 1.05rem;
  height: 1.05rem;
  object-fit: contain;
}

.header-call:hover {
  background: #ffffff;
}

.header-link,
.results-clear,
.clear-button,
.filter-toggle,
.filters-close {
  color: var(--muted);
  font-weight: 700;
}

.header-link:hover,
.results-clear:hover,
.clear-button:hover,
.filter-toggle:hover {
  color: var(--ink);
}

.filter-toggle {
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.filters-kicker,
.results-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 3.2rem);
  max-width: 12ch;
}

h3 {
  font-size: 1.3rem;
}

.empty-state p,
.product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.active-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.catalog {
  padding-top: 1.65rem;
  padding-bottom: 4.5rem;
}

.catalog-shell {
  position: relative;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.filter-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(17, 17, 17, 0.24);
}

.filters-panel,
.results-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.filters-panel {
  position: sticky;
  top: 6rem;
  padding: 1.4rem;
}

.filters-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.filters-head h2,
.results-head h2 {
  max-width: none;
}

.filters-close {
  display: none;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
}

.search-box {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.search-box label,
.filter-group legend {
  font-size: 0.9rem;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 3rem;
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
}

.filters-form {
  display: grid;
  gap: 1rem;
}

.filter-group {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 1rem 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.filter-group input {
  width: 1rem;
  height: 1rem;
}

.clear-button,
.results-clear {
  padding: 0;
  border: 0;
  background: transparent;
}

.results-panel {
  padding: 1.4rem;
}

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

.results-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  min-height: 2.25rem;
  padding: 1rem 0 1.3rem;
}

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

.product-card {
  border: 1px solid #edf0f2;
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
}

.product-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-media {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 2rem 1.5rem 1rem;
  background: #ffffff;
}

.product-media img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  object-position: center;
}

.product-body {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 0.85rem;
  padding: 0.6rem 1.45rem 1.8rem;
  text-align: center;
}

.product-series {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-body h3 {
  font-size: 1.02rem;
  line-height: 1.38;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.product-body p {
  max-width: 26ch;
  font-size: 0.97rem;
  line-height: 1.72;
  text-align: center;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  color: var(--ink);
  font-weight: 800;
}

.product-link::after {
  content: "→";
  font-size: 0.9rem;
}

.product-card:hover {
  border-color: #e1e6ea;
}

.empty-state {
  padding: 4rem 1rem 2rem;
  text-align: center;
}

.product-main {
  padding: 1.65rem 0 4rem;
}

.product-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  min-height: 2.5rem;
}

.back-link {
  display: none;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-weight: 700;
}

.back-link::before {
  content: "←";
  font-size: 0.9rem;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 1.5rem;
  align-items: stretch;
  padding-bottom: 1.5rem;
}

.product-visual,
.product-summary,
.detail-card,
.spec-card,
.product-missing-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.product-visual img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.product-summary {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.5rem;
}

.product-lead {
  margin: 0;
  color: var(--ink);
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.75;
  max-width: 60ch;
}

.header-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  min-height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease;
}

.header-share svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.header-share:hover {
  color: var(--ink);
}

.share-feedback {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.header-share-feedback {
  display: none;
}

.product-share-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.inline-share-feedback {
  min-width: 5.5rem;
}

.product-quick-specs {
  margin-top: 0.3rem;
}

.technical-table-compact th,
.technical-table-compact td {
  padding: 0.78rem 0;
}

.technical-table-compact th {
  width: 54%;
  padding-right: 1rem;
  font-size: 0.92rem;
}

.technical-table-compact td {
  font-size: 0.96rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  padding-bottom: 2rem;
}

.product-overview-section,
.product-details-section {
  scroll-margin-top: 6rem;
}

.product-overview-section {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}

.product-description-copy {
  display: grid;
  gap: 1.3rem;
  padding-top: 0.25rem;
}

.product-description-copy p {
  margin: 0;
  color: #26262a;
  font-size: 1.02rem;
  line-height: 1.9;
}

.product-description-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}

.product-description-figure {
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 320px;
}

.product-description-figure img {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  object-position: center;
}

.product-details-section {
  display: grid;
  gap: 1.2rem;
  padding-bottom: 2rem;
}

.detail-header h2 {
  max-width: none;
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.detail-card {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
}

.detail-copy {
  display: grid;
  gap: 1rem;
}

.detail-copy p,
.detail-contact p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.detail-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.detail-list li::marker {
  color: var(--ink);
}

.detail-contact {
  display: grid;
  gap: 1rem;
}

.technical-table-wrap {
  overflow-x: auto;
}

.detail-table-section {
  display: grid;
  gap: 1rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.detail-table-section h3 {
  margin: 0;
}

.detail-table-section .technical-table {
  border-top: 1px solid var(--line);
}

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

.technical-table th,
.technical-table td {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.technical-table th {
  width: 42%;
  padding-right: 1.5rem;
  color: var(--muted);
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
}

.technical-table td {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.6;
}

.related-section {
  display: grid;
  gap: 1.1rem;
  padding-bottom: 2rem;
}

.results-head-compact {
  padding-bottom: 0;
  border-bottom: 0;
}

.product-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.product-missing {
  padding: 2rem 0 4rem;
}

.product-missing-shell {
  display: grid;
  gap: 1rem;
  max-width: 760px;
  padding: 1.6rem;
}

.site-footer {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.footer-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.5rem 1.6rem;
  padding: 0.9rem 0 1rem;
}

.footer-company,
.footer-line {
  margin: 0;
}

.footer-company {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.footer-line,
.footer-address {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.footer-address {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.footer-address:hover {
  color: var(--ink);
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

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

@media (max-width: 980px) {
  .product-topbar {
    display: none;
  }

  .catalog {
    padding-bottom: 0 !important;
  }

  .header-shell {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr) 5rem;
    gap: 0.5rem;
  }

  .header-spacer {
    display: inline-flex;
    grid-column: 1;
    justify-self: start;
    align-items: center;
    min-height: 2.5rem;
    color: transparent;
    font-weight: 700;
    visibility: hidden;
    pointer-events: none;
  }

  .header-share-wrap {
    display: grid;
    grid-column: 1;
    justify-self: start;
    align-items: center;
    width: 5rem;
    min-width: 0;
  }

  .header-spacer {
    display: none;
  }

  .brand {
    grid-column: 2;
    width: 100%;
    justify-self: center;
    justify-content: center;
    min-width: 0;
    text-align: center;
  }

  .header-actions {
    grid-column: 3;
    width: 5rem;
    justify-self: end;
    justify-content: flex-end;
    gap: 0;
  }

  .header-link {
    display: none;
  }

  .header-call {
    display: inline-flex;
  }

  .filter-toggle {
    display: inline-flex;
    grid-column: 1;
    width: 5rem;
    justify-self: start;
    align-items: center;
    min-height: 2.5rem;
    min-width: 0;
  }

  .catalog-shell {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    width: min(92vw, 360px);
    border-radius: 0 24px 24px 0;
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    overflow-y: auto;
  }

  .filters-panel.is-open {
    transform: translateX(0);
  }

  .filters-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .results-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .product-hero,
  .detail-grid,
  .detail-columns,
  .product-description-media {
    grid-template-columns: 1fr;
  }

  .product-visual {
    min-height: 320px;
    padding: 1.4rem;
  }

  .product-description-figure {
    min-height: 240px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--container), calc(100% - 1.25rem));
  }

  .catalog {
    padding-bottom: 0;
  }

  .header-shell {
    min-height: 4rem;
  }

  .brand strong {
    font-size: 0.86rem;
    letter-spacing: 0.12em;
    line-height: 1;
    white-space: nowrap;
  }

  .results-head {
    grid-template-columns: 1fr;
  }

  .results-head {
    display: grid;
    align-items: start;
  }

  .results-meta {
    justify-content: space-between;
  }

  .product-summary,
  .detail-card,
  .product-missing-shell {
    padding: 1.15rem;
  }

  .footer-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "company pib"
      "address mb";
    align-items: start;
    gap: 0.35rem 1rem;
    padding: 0.85rem 0 1rem;
  }

  .footer-company {
    grid-area: company;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
  }

  .footer-shell > .footer-line:nth-of-type(2) {
    grid-area: address;
  }

  .footer-shell > .footer-line:nth-of-type(3) {
    grid-area: pib;
  }

  .footer-shell > .footer-line:nth-of-type(4) {
    grid-area: mb;
  }

  .footer-shell > .footer-line:nth-of-type(3),
  .footer-shell > .footer-line:nth-of-type(4) {
    text-align: right;
    justify-self: end;
  }

  .footer-line,
  .footer-address {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .product-main {
    padding-top: 1rem;
  }

  .product-visual {
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
