/* =====================================================================
   Matrix Office — site styles
   PART 1: the ORIGINAL stylesheet, copied from the original HTML (only selectors were adapted
           to the semantic markup: h1→.page-h, span→.nav-logo-sub, h2→h3 in "about").
   PART 2: fixes & improvements (clearly separated, at the end of the file).
   ===================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --gold: #1A1A1A;
  --gold-light: #3D3D3D;
  --gold-dark: #000000;
  --bg-page: #FAF9F7;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-subtle: #F3F2F0;
  --text-dark: #1A1A1A;
  --text-mid: #4A4A4A;
  --text-muted: #8A8A8A;
  --border: #E4E2DE;
  --border-gold: rgba(26,26,26,0.25);
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg-page);
  color: var(--text-dark);
  font-family: 'Segoe UI', Arial, sans-serif;
  direction: rtl;
  min-height: 100vh;
}

/* WHATSAPP FLOAT */
.wa-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 900;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.wa-float svg { width: 34px; height: 34px; fill: #fff; }
@media (max-width: 600px) {
  .wa-float { width: 54px; height: 54px; bottom: 18px; left: 18px; }
  .wa-float svg { width: 30px; height: 30px; }
}

.mail-float {
  position: fixed;
  bottom: 96px;
  left: 24px;
  width: 60px;
  height: 60px;
  background: #1A1A1A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 900;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.mail-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.mail-float svg { width: 28px; height: 28px; stroke: #fff; fill: none; }
@media (max-width: 600px) {
  .mail-float { width: 54px; height: 54px; bottom: 86px; left: 18px; }
  .mail-float svg { width: 25px; height: 25px; }
}

/* MOBILE */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 0.5rem 1rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-btn {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  text-align: right;
  font-size: 1rem;
}
.mobile-menu .nav-btn:last-child { border-bottom: none; }

@media (max-width: 600px) {
  .hamburger { display: flex; }
  .nav-links { display: none; }
  nav { padding: 0 1rem; }
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.open:not([hidden]) { display: flex; }
.lightbox img {
  width: 90vw;
  height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; left: 1.5rem;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px; height: 40px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* NAV */
nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.nav-logo { color: var(--text-dark); font-size: 1.05rem; font-weight: 300; letter-spacing: 0.28em; line-height: 1.2; }
.nav-logo .nav-logo-sub { color: var(--text-muted); font-weight: 300; font-size: 0.75rem; display: block; letter-spacing: 0.15em; }
.nav-bsd { color: var(--gold-dark); font-size: 0.75rem; opacity: 0.85; }
.nav-links { display: flex; gap: 0.25rem; }
.nav-btn {
  background: none;
  border: none;
  color: var(--text-mid);
  cursor: pointer;
  font-size: 0.88rem;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  transition: all 0.2s;
  font-family: inherit;
  border-bottom: 2px solid transparent;
}
.nav-btn:hover { color: var(--gold); background: rgba(184,150,62,0.07); }
.nav-btn.active { color: var(--gold); border-bottom: 2px solid var(--gold); border-radius: 0; }

/* PAGES */
.page { display: none; min-height: calc(100vh - 64px); }
.page.active { display: block; }

/* HOME */
.hero {
  padding: 5rem 2rem 4rem;
  text-align: center;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}
.hero-title {
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--text-dark);
  letter-spacing: 0.35em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  margin-bottom: 2.5rem;
}
.advantages {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.adv-item { display: flex; align-items: center; gap: 0.5rem; color: var(--text-mid); font-size: 0.9rem; }
.adv-dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }
.adv-sep { color: var(--border); font-size: 1.2rem; }
.hero-desc {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.9;
}
.hero-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 0.8rem 2.2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-secondary {
  background: none;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  padding: 0.8rem 2.2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(184,150,62,0.07); transform: translateY(-1px); }

.features-section { padding: 3.5rem 2rem; background: var(--bg-page); }
.section-title { text-align: center; color: var(--gold-dark); font-size: 1.1rem; letter-spacing: 0.1em; margin-bottom: 2rem; font-weight: 600; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem;
  max-width: 860px;
  margin: 0 auto;
}
.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s;
  box-shadow: var(--shadow);
}
.feature-card:hover { border-color: var(--gold-light); box-shadow: 0 4px 18px rgba(0,0,0,0.1); }
.feature-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.feature-title { color: var(--gold-dark); font-size: 0.88rem; font-weight: 600; margin-bottom: 0.5rem; letter-spacing: 0.03em; }
.feature-text { color: var(--text-muted); font-size: 0.8rem; line-height: 1.65; }

/* CATALOG */
.catalog-header { padding: 2.5rem 2rem 1.5rem; border-bottom: 1px solid var(--border); background: var(--bg-white); }
.catalog-header .page-h { color: var(--gold-dark); font-size: 1.5rem; letter-spacing: 0.06em; margin-bottom: 0.25rem; }
.catalog-header p { color: var(--text-muted); font-size: 0.85rem; }
.catalog-filters {
  padding: 1rem 2rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  background: var(--bg-white);
}
.filter-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 1.1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: rgba(184,150,62,0.07);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-page);
}
.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s;
  cursor: default;
  box-shadow: var(--shadow);
}
.product-card:hover { border-color: var(--gold-light); box-shadow: 0 6px 22px rgba(0,0,0,0.1); transform: translateY(-2px); }
.product-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 1.1rem; }
.product-cat { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.1em; margin-bottom: 0.3rem; text-transform: uppercase; font-weight: 600; }
.product-name { color: var(--text-dark); font-size: 0.92rem; font-weight: 600; margin-bottom: 0.45rem; min-height: 2.4em; white-space: pre-wrap; }
.product-desc { color: var(--text-muted); font-size: 0.78rem; line-height: 1.6; margin-bottom: 0.8rem; min-height: 5em; white-space: pre-wrap; }
.product-cta {
  color: var(--gold);
  font-size: 0.8rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
  font-weight: 600;
}
.product-cta:hover { color: var(--gold-dark); text-decoration: underline; }

/* CONTACT */
.contact-page { padding: 2.5rem 2rem; max-width: 720px; margin: 0 auto; }
.contact-page .page-h { color: var(--gold-dark); font-size: 1.5rem; letter-spacing: 0.06em; margin-bottom: 0.25rem; }
.contact-sub { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 2.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }
label { color: var(--text-mid); font-size: 0.8rem; letter-spacing: 0.03em; font-weight: 500; }
input, textarea, select {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dark);
  padding: 0.65rem 0.9rem;
  font-family: inherit;
  font-size: 0.85rem;
  transition: border 0.2s;
  direction: rtl;
  width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,150,62,0.1); }
textarea { resize: vertical; min-height: 110px; }
select option { background: #fff; color: #2C2C2C; }
.form-submit-row { grid-column: 1 / -1; display: flex; justify-content: flex-end; margin-top: 0.25rem; }
.success-msg {
  display: none;
  background: rgba(184,150,62,0.08);
  border: 1px solid var(--gold-light);
  border-radius: 6px;
  padding: 1rem;
  color: var(--gold-dark);
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
}
.success-msg.show { display: block; }
.contact-info { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.contact-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1rem; }
.ci-item { color: var(--text-mid); font-size: 0.85rem; line-height: 1.7; }
.ci-label { color: var(--gold-dark); font-size: 0.8rem; display: block; margin-bottom: 0.2rem; font-weight: 600; }

/* ABOUT */
.about-page { padding: 2.5rem 2rem; max-width: 760px; margin: 0 auto; }
.about-page .page-h { color: var(--gold-dark); font-size: 1.5rem; letter-spacing: 0.06em; margin-bottom: 0.25rem; }
.about-sub { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 2.5rem; }
.about-section { margin-bottom: 2.5rem; }
.about-section h3 {
  color: var(--gold-dark);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.about-section p { color: var(--text-mid); font-size: 0.88rem; line-height: 1.95; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-top: 1rem; }
.value-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.value-icon { font-size: 1.6rem; margin-bottom: 0.5rem; }
.value-title { color: var(--gold-dark); font-size: 0.8rem; font-weight: 600; margin-bottom: 0.3rem; }
.value-text { color: var(--text-muted); font-size: 0.75rem; line-height: 1.5; }
.timeline { position: relative; padding-right: 1.75rem; }
.timeline::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.4rem;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.tl-item { position: relative; margin-bottom: 1.5rem; }
.tl-dot {
  position: absolute;
  right: -2.1rem;
  top: 0.25rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg-page);
}
.tl-year { color: var(--gold-dark); font-size: 0.82rem; font-weight: 600; margin-bottom: 0.2rem; }
.tl-text { color: var(--text-mid); font-size: 0.83rem; line-height: 1.65; }
.about-cta { text-align: center; margin-top: 2rem; }

/* FOOTER */
footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
  margin-top: 2rem;
}
footer p { color: var(--text-muted); font-size: 0.78rem; }
.footer-link { color: var(--gold); cursor: pointer; font-weight: 500; }
.footer-link:hover { color: var(--gold-dark); text-decoration: underline; }

@media (max-width: 600px) {
  .hero-title { font-size: 1.9rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .form-submit-row { grid-column: 1; }
  .contact-info-grid { grid-template-columns: 1fr; }
  nav { padding: 0 1rem; }
  .nav-btn { font-size: 0.78rem; padding: 0.4rem 0.6rem; }
}

/* =====================================================================
   PART 2 — fixes & improvements (design identity unchanged)
   ===================================================================== */
[hidden] { display: none !important; }
/* accessibility: muted text darkened slightly (#8A8A8A → #6B6B6B) to reach WCAG AA contrast on white */
:root { --text-muted: #6B6B6B; --danger: #B3261E; --ok: #1E7B3A; }
.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; }
.skip-link { position: absolute; top: -100px; right: 1rem; background: var(--gold); color: #fff; padding: .6rem 1rem; z-index: 2000; border-radius: 4px; text-decoration: none; }
.skip-link:focus { top: .5rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
main:focus { outline: none; }

/* links that replaced <button onclick> (real URLs: #catalog, #contact…) keep the original look */
a.nav-btn, a.btn-primary, a.btn-secondary, a.footer-link, a.nav-logo { text-decoration: none; display: inline-block; }
a.nav-logo { color: var(--text-dark); }
.nav-logo > span:first-child { display: block; }

/* header: nav + mobile menu stick together */
header { position: sticky; top: 0; z-index: 100; }
nav { position: relative; }
.nav-end { display: flex; align-items: center; gap: 1rem; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { box-shadow: 0 6px 12px rgba(0,0,0,0.06); }
.mobile-menu .nav-btn { display: block; }

/* hero */
.hero-icon { margin-bottom: 1rem; }
#brand-logo { max-height: 90px; max-width: 260px; object-fit: contain; }
.hero.has-bg { background-size: cover; background-position: center; }
.advantages { list-style: none; padding: 0; }
.hero-desc { margin-left: auto; margin-right: auto; }

/* catalog */
.product-card { display: flex; flex-direction: column; position: relative; }
.product-info { display: flex; flex-direction: column; flex: 1; }
.product-cta { margin-top: auto; align-self: flex-start; text-align: right; }
.product-img { position: relative; }
.product-img-btn { all: unset; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; cursor: zoom-in; box-sizing: border-box; }
.product-img-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.product-img .no-img { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--text-muted); }
.img-count { position: absolute; bottom: 8px; left: 8px; background: rgba(26,26,26,.75); color: #fff; font-size: .7rem; padding: 2px 7px; border-radius: 10px; }
.product-price { color: var(--text-dark); font-weight: 600; font-size: .9rem; margin-bottom: .6rem; }
.count-badge { display: inline-block; background: rgba(26,26,26,0.08); color: inherit; border-radius: 10px; padding: 0 7px; font-size: 0.72rem; line-height: 1.5; margin-inline-start: 5px; vertical-align: middle; }
.loading-msg, .empty-msg, .noscript-msg { grid-column: 1 / -1; text-align: center; color: var(--text-muted); padding: 3rem 0; }
.loading-msg::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-inline-end: 8px; vertical-align: -2px; border: 2px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.product-card { animation: fadeIn .25s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* works gallery (styles moved out of inline attributes) */
.works-page { max-width: 1100px; margin: 0 auto; padding: 3rem 2rem; }
.works-title { text-align: center; font-weight: 300; letter-spacing: 0.15em; color: var(--text-dark); margin-bottom: 0.5rem; font-size: 2em; }
.works-sub { text-align: center; color: var(--text-muted); margin-bottom: 2.5rem; }
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.work-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg-white); box-shadow: var(--shadow); }
.work-card button { all: unset; display: block; width: 100%; cursor: zoom-in; }
.work-card img { width: 100%; height: 230px; object-fit: cover; display: block; }
.work-card p { padding: 0.7rem 0.9rem; font-size: 0.82rem; color: var(--text-mid); line-height: 1.5; white-space: pre-wrap; border-top: 1px solid var(--border); }

/* contact form */
.req { color: var(--danger); }
.field-error { color: var(--danger); font-size: .75rem; min-height: 0; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.privacy-note { grid-column: 1 / -1; color: var(--text-muted); font-size: .75rem; }
.error-msg { display: none; background: #FDECEA; border: 1px solid #F3B8B3; border-radius: 6px; padding: 1rem; color: var(--danger); text-align: center; margin-top: 1.25rem; font-size: 0.9rem; }
.error-msg.show { display: block; }
.btn-primary[disabled] { opacity: .6; cursor: progress; transform: none; }
.contact-info-title { text-align: right; margin-bottom: 0.5rem; }
.ci-val { color: var(--text-mid); text-decoration: none; }
a.ci-val:hover { text-decoration: underline; }
.form-grid { position: relative; }

/* lightbox (accessible dialog + gallery) */
.lightbox-figure { display: flex; flex-direction: column; align-items: center; gap: .6rem; margin: 0; }
.lightbox img { width: 90vw; height: 82vh; }
.lightbox figcaption { color: #fff; font-size: .9rem; text-align: center; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); color: #fff; border: none; border-radius: 50%; width: 46px; height: 46px; font-size: 1.8rem; cursor: pointer; }
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { right: 1rem; }
.lightbox-next { left: 1rem; }

/* preview banner (admins only) */
.preview-banner { background: #FFF4CE; color: #5A4500; text-align: center; padding: .5rem 1rem; font-size: .85rem; border-bottom: 1px solid #E8D48A; }
.preview-banner a { color: inherit; font-weight: 600; margin-inline-start: .75rem; }

/* footer is shared by all pages now (was duplicated per page) */
footer { margin-top: 0; }

/* original bug: the later ".nav-links { display:flex }" rule overrode the mobile "display:none",
   so the full menu + hamburger were both shown on phones and pushed the page wider than the screen */
a.product-cta { text-decoration: none; }
a.product-cta:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .catalog-filters { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: .8rem 1rem; scrollbar-width: thin; }
  .filter-btn { flex: 0 0 auto; }
  .products-grid { padding: 1rem; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .product-img { height: 150px; }
  .product-desc { min-height: 0; }
  .catalog-header, .contact-page, .about-page { padding-left: 1rem; padding-right: 1rem; }
  .works-page { padding: 2rem 1rem; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .advantages { gap: .6rem 1rem; }
  .adv-sep { display: none; }
  footer { padding-bottom: 5.5rem; }  /* keep the last line clear of the floating buttons */
  .lightbox img { width: 94vw; height: 72vh; }
  .lightbox-nav { top: auto; bottom: 1rem; transform: none; }
}
@media (max-width: 380px) {
  .hero-title { font-size: 1.55rem; letter-spacing: 0.22em; }
  .nav-logo { font-size: .95rem; letter-spacing: .2em; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: .6rem; padding: .75rem; }
  .product-info { padding: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
