/* ══════════════════════════════════════
   PND PLAST — Unified Stylesheet
   ══════════════════════════════════════ */

:root {
  --bg:         #0b1929;   /* основной фон — тёмно-синий */
  --panel:      #0d1e35;   /* панели, карточки */
  --deep:       #091422;   /* самый тёмный */
  --teal:       #4ca5af;   /* бирюза */
  --teal-dim:   #466682;   /* приглушённая бирюза */
  --teal-glow:  rgba(76,165,175,0.18);
  --white:      #e8f0f8;
  --muted:      rgba(232,240,248,0.50);
  --border:     rgba(76,165,175,0.20);
  --grid:       rgba(76,165,175,0.055);
  --error:      #ff5a6e;
  --success:    #2ec47a;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  caret-color: transparent;
}

/* Show an insertion caret only in places that accept text. */
input:not([type]),
input:is([type="text"], [type="search"], [type="tel"], [type="email"], [type="url"], [type="password"], [type="number"]),
textarea,
[contenteditable="true"],
[contenteditable=""] {
  caret-color: auto;
  cursor: text;
}

a[href], button, summary, select,
input:is([type="checkbox"], [type="radio"], [type="button"], [type="submit"], [type="reset"]),
label[for], [role="button"] {
  cursor: pointer;
}

.nav-links, .nav-cta, button, [role="button"] {
  -webkit-user-select: none;
  user-select: none;
}

html {
  scroll-behavior: smooth;
  /* Always reserve scrollbar gutter — prevents layout shift when page height changes */
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  font-family: 'Exo 2', sans-serif;
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  cursor: default;
}

/* Keep the delivery strip and navigation together while scrolling. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  flex-shrink: 0;
  isolation: isolate;
}

/* ══════════ BACKGROUNDS ══════════ */
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg,
      rgba(11,25,41,0.55) 0%,
      rgba(11,25,41,0.80) 50%,
      var(--bg) 100%),
    url('background.webp') center center / cover no-repeat,
    linear-gradient(160deg, #0d1e35 0%, #091422 100%);
  transition: opacity 0.5s ease;
}

.hero-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid) 0.0625rem, transparent 0.0625rem),
    linear-gradient(90deg, var(--grid) 0.0625rem, transparent 0.0625rem);
  background-size: 2.75rem 2.75rem;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(6.875rem);
  pointer-events: none;
  z-index: -1;
}
.glow-1 {
  width: 32.5rem; height: 32.5rem;
  background: var(--teal);
  opacity: 0.10;
  top: -10rem; left: -10rem;
}
.glow-2 {
  width: 23.75rem; height: 23.75rem;
  background: var(--teal);
  opacity: 0.08;
  bottom: 2.5rem; right: -7.5rem;
}

/* ══════════ TOP BAR ══════════ */
.top-bar {
  position: relative;
  z-index: 100;
  width: 100%;
  background: var(--deep);
  background-image: url('assets/grain-surface.svg?v=2.3'), url('assets/delivery-map.svg?v=2');
  background-size: 6rem 6rem, max(100%, 150rem) 10rem;
  background-position: center, center;
  background-repeat: repeat, no-repeat;
  border-bottom: 0.0625rem solid var(--border);
}

.top-bar-inner {
  max-width: 68.75rem;
  min-height: 2.75rem;
  margin: 0 auto;
  padding: 0.375rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.top-bar-inner > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5625rem;
  color: #d2e2ed;
  white-space: nowrap;
}

.top-bar-inner > span::before {
  content: '';
  width: 7rem;
  height: 1.875rem;
  flex: 0 0 7rem;
  background: url('assets/delivery-truck-side.svg') center / contain no-repeat;
}

@media (max-width: 600px) {
  .top-bar-inner > span::before {
    width: 1.875rem;
    flex-basis: 1.875rem;
    background-image: url('assets/delivery-truck-front.svg');
  }
}

.top-bar a {
  display: inline-block;
  padding: 0.125rem 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #e2f5f6;
  text-decoration: none;
  white-space: nowrap;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.025em;
  font-variant-numeric: tabular-nums;
  transition: color .2s;
}

.top-bar a:hover,
.top-bar a:focus-visible {
  color: var(--teal);
}

.top-bar a:focus-visible {
  outline: none;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

/* ══════════ NAVBAR ══════════ */
.nav-wrap {
  position: relative;
  z-index: 100;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 1.5rem 1.25rem 0;
  flex-shrink: 0;
}

.navbar {
  width: 100%;
  max-width: 68.75rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0 2rem;
  background: rgba(13,30,53,0.80);
  backdrop-filter: blur(1.25rem);
  -webkit-backdrop-filter: blur(1.25rem);
  border: 0.0625rem solid var(--border);
  border-radius: 0.875rem;
  padding: 0.625rem 1.125rem;
  box-shadow:
    0 0.25rem 2rem rgba(0,0,0,0.45),
    inset 0 0.0625rem 0 rgba(76,165,175,0.12);
}

.nav-logo, .foot-logo, .nav-logo img, .foot-logo img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  caret-color: transparent;
}
.nav-logo img, .foot-logo img {
  pointer-events: none;
}

.nav-logo {
  width: 10rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
}
.nav-links a {
  text-decoration: none;
  color: rgba(232,240,248,0.75);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1.125rem;
  border-radius: 0.5rem;
  position: relative;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0.3125rem;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 1rem; height: 0.125rem;
  background: var(--teal);
  border-radius: 0.125rem;
  transition: transform 0.25s;
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.07);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  background: #fff;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-cta {
  text-decoration: none;
  background: transparent;
  color: #fff;
  border: 0.09375rem solid #fff;
  padding: 0.5625rem 1.375rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
  flex-shrink: 0;
}
.nav-cta:hover {
  background: #fff;
  color: var(--deep);
  border-color: #fff;
  box-shadow: none;
}
.nav-cta.active {
  background: #fff;
  color: var(--deep);
  border-color: #fff;
  box-shadow: none;
}

/* ══════════ DYNAMIC PAGE CONTAINER ══════════ */
#app-main {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Keep the current view visible while the next route is prepared. */
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Page is fully loaded and active (fades in) */
#app-main.page-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ══════════ PAGE LAYOUTS ══════════ */
.page-main {
  width: 100%;
  max-width: 68.75rem;
  margin: 0 auto;
  padding: 3.75rem 1.25rem 5.3125rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Article detail page layout */
.page-article {
  width: 100%;
  max-width: 53.75rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5.3125rem;
  display: flex;
  flex-direction: column;
}

.article-page-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ══════════ PRODUCT DETAIL VIEW ══════════ */
#product-detail-container { width: 100%; min-width: 0; }

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 1.5rem;
  width: 100%;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.product-main-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgba(13,30,53,0.30);
  border: 0.0625rem solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(0.625rem);
}

.product-main-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
  padding: 0.5rem;
}

.product-thumbs {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.product-thumb-item {
  width: 4rem;
  height: 4rem;
  border-radius: 0.5rem;
  border: 0.0625rem solid var(--border);
  background: rgba(13,30,53,0.50);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0.25rem;
}

.product-thumb-item:hover,
.product-thumb-item.active {
  border-color: var(--teal);
  box-shadow: 0 0 0.625rem rgba(76,165,175,0.3);
  background: rgba(76,165,175,0.05);
}

.product-thumb-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}

.product-detail-info .product-cat {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.product-detail-info .product-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 1rem;
}

.product-detail-info .product-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.product-detail-specs {
  width: 100%;
  margin-bottom: 1.875rem;
}

.product-detail-specs h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  border-bottom: 0.0625rem solid var(--border);
  padding-bottom: 0.5rem;
}

.btn-back-articles {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
  color: rgba(232,240,248,0.70);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border: 0.09375rem solid rgba(232,240,248,0.18);
  border-radius: 0.5rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.btn-back-articles:hover {
  color: var(--teal);
  border-color: var(--teal);
  background: rgba(76,165,175,0.05);
}
.btn-back-articles svg {
  flex-shrink: 0;
}

.page-header {
  text-align: center;
  margin-bottom: 3.125rem;
  width: 100%;
}

.page-header .eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.875rem;
  opacity: 0.85;
}

.page-header h1 {
  font-size: clamp(1.75rem, 5vw, 2.875rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 1rem;
}

.page-header h1 span {
  color: var(--teal);
}

.page-header p {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 32.5rem;
  margin: 0 auto;
  line-height: 1.6;
}

/* ══════════ HOME PAGE (HERO) ══════════ */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 4.375rem;
  max-width: 51.25rem;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
}
.hero-tag::before,
.hero-tag::after {
  content: '';
  display: block;
  width: 1.75rem; height: 0.0625rem;
  background: var(--teal-dim);
}

.hero-title {
  font-size: clamp(2.25rem, 7.5vw, 5.75rem);
  font-weight: 800;
  line-height: 1.00;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero-title em {
  font-style: normal;
  color: var(--teal);
}

.hero-sub {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.80;
  color: var(--muted);
  max-width: 32.5rem;
  margin-bottom: 2.75rem;
}

.hero-btns {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-fill {
  background-color: #fff;
  color: var(--deep);
  padding: 0.8125rem 2.125rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: none; cursor: pointer;
  box-shadow: 0 0.25rem 1.375rem rgba(0,0,0,0.25);
  transition: box-shadow 0.2s, transform 0.15s, background-color 0.2s;
  display: inline-block;
}
.btn-fill:hover {
  background-color: #fff;
  box-shadow: 0 0.375rem 2rem rgba(0,0,0,0.35);
  transform: translateY(-0.125rem);
}

.btn-ghost {
  background-color: rgba(9,20,34,0.68);
  color: rgba(232,240,248,0.80);
  padding: 0.75rem 2.125rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0.09375rem solid rgba(232,240,248,0.22);
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-0.125rem);
}

.hero-btns :is(.btn-fill, .btn-ghost) {
  background-image: url('assets/grain-button.svg?v=3');
  background-size: 8rem 8rem;
  background-repeat: repeat;
  background-blend-mode: soft-light;
}

.stats {
  width: 100%;
  max-width: 68.75rem;
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
}

.stat {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #061522;
  background-image: url('assets/grain-surface.svg?v=2.3');
  background-size: 6rem 6rem;
  border: 0.0625rem solid rgba(255,255,255,0.20);
  border-radius: 0.75rem;
  padding: 1.375rem 34% 1.375rem 1.25rem;
  text-align: center;
  box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,.14), 0 0.375rem 1.375rem rgba(0,0,0,.25);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
}
.stat::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(6,21,34,.94), rgba(6,21,34,.82) 42%, rgba(6,21,34,.45) 68%, rgba(6,21,34,.24)),
    var(--stat-art);
  background-position: center, 72% center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}
.stat:nth-child(1) { --stat-art: url('assets/stats/production-photo.webp'); }
.stat:nth-child(2) { --stat-art: url('assets/stats/welding-photo.webp'); }
.stat:nth-child(3) { --stat-art: url('assets/stats/quality-photo.webp'); }
.stat > * { position: relative; z-index: 1; text-shadow: 0 0.125rem 0.5rem rgba(0,0,0,.55); }
.stat:hover {
  transform: scale(1.025);
  border-color: rgba(255,255,255,0.50);
  box-shadow: 0 0.5rem 2rem rgba(0,0,0,0.50);
}
.stat-n {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.01em;
}
.stat-l {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.375rem;
}

/* ══════════ ABOUT PAGE ══════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  width: 100%;
  max-width: 62.5rem;
  align-items: center;
  margin-top: 1.25rem;
}

.about-text {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(232,240,248,0.85);
}

.about-text p {
  margin-bottom: 1.25rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.about-feat-card {
  --feature-photo: url('assets/about-features/quality-photo.webp');
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 13.125rem;
  background-color: #0a1a2b;
  background-image: var(--feature-photo);
  background-clip: padding-box;
  background-size: cover;
  background-position: 65% center;
  background-repeat: no-repeat;
  border: 0.0625rem solid rgba(255,255,255,0.20);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
}

.about-feat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, rgba(6,21,34,0.94) 0%, rgba(6,21,34,0.88) 40%, rgba(6,21,34,0.74) 75%, rgba(6,21,34,0.62) 100%);
  pointer-events: none;
}

.about-feat-card > :is(h3, p) {
  position: relative;
  z-index: 1;
}

.about-feat-card:nth-child(2) { --feature-photo: url('assets/about-features/delivery-photo.webp'); }
.about-feat-card:nth-child(3) { --feature-photo: url('assets/about-features/assortment-photo.webp'); }
.about-feat-card:nth-child(4) { --feature-photo: url('assets/about-features/expertise-photo.webp'); }

.about-feat-card:hover {
  transform: scale(1.025);
  border-color: rgba(255,255,255,0.50);
  box-shadow: 0 0.5rem 2rem rgba(0,0,0,0.50);
}

.about-feat-card h3 {
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.about-feat-card p {
  font-size: 0.8125rem;
  color: rgba(232,240,248,0.94);
  line-height: 1.5;
  text-shadow: 0 0.0625rem 0.3125rem rgba(0,0,0,0.65);
}

.certificates {
  width: 100%;
  max-width: 62.5rem;
  margin-top: 4.75rem;
}

.certificates-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.certificates-heading .eyebrow {
  color: var(--teal);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.certificates-heading h2 {
  font-size: clamp(1.4375rem, 3vw, 2rem);
  line-height: 1.2;
}

.certificates-heading p {
  max-width: 25rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.875rem;
}

.certificate-entry { min-width: 0; margin: 0; }

.certificate-document {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  font: inherit;
  color: var(--white);
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.certificate-document:focus-visible {
  outline: 0.125rem solid #fff;
  outline-offset: 0.375rem;
}

.certificate-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 14.375rem;
  padding: 0;
  overflow: visible;
  background: transparent;
}

.certificate-thumb img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: 0 0.375rem 1.25rem rgba(0,0,0,.3);
  transition: transform .16s ease-out;
}

.certificate-name { display: block; }

.certificate-name {
  min-height: 2.375rem;
  margin-top: 1.125rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
}

.certificate-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: max(0.75rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(0.875rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  color: var(--white);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.certificate-viewer[open] { display: flex; flex-direction: column; }
.certificate-viewer::backdrop { background: rgba(2,8,16,.87); }

.certificate-viewer-bar,
.certificate-viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.875rem;
  padding: 0;
  flex-shrink: 0;
  background: transparent;
  opacity: 1;
  transition: opacity .22s ease, transform .22s ease;
}

.certificate-viewer.is-opening :is(.certificate-viewer-bar, .certificate-viewer-toolbar),
.certificate-viewer.is-closing :is(.certificate-viewer-bar, .certificate-viewer-toolbar) {
  opacity: 0;
  transform: translateY(0.5rem);
  pointer-events: none;
}

.certificate-viewer-bar { padding-bottom: 0.625rem; }
.certificate-viewer-toolbar { justify-content: center; gap: 1.5rem; padding-top: 0.625rem; flex-wrap: wrap; }
.certificate-viewer-caption { display: flex; align-items: baseline; gap: 0.75rem; min-width: 0; }
.certificate-viewer-caption strong { font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.certificate-viewer-caption span { color: #bac8d4; font-size: 0.75rem; white-space: nowrap; }
.certificate-viewer-group { display: flex; align-items: center; gap: 0.5rem; }
.certificate-viewer-group span { min-width: 2.625rem; text-align: center; font-size: 0.75rem; }

.certificate-control,
.certificate-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.375rem 0.625rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--white);
  text-decoration: none;
  background: #10243a;
  border: 0.0625rem solid var(--border);
  border-radius: 0.4375rem;
  cursor: pointer;
}

.certificate-control:hover,
.certificate-control:focus-visible,
.certificate-icon-btn:hover,
.certificate-icon-btn:focus-visible {
  color: var(--teal);
  border-color: var(--teal);
}

.certificate-control:disabled { opacity: .4; cursor: default; }
.certificate-fit { font-size: 0.75rem; font-weight: 700; }
.certificate-icon-btn { font-size: 1.5rem; line-height: 1; }

.certificate-control-icon {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.certificate-viewer-stage {
  position: relative;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  background: transparent;
  overscroll-behavior: contain;
  touch-action: none;
  user-select: none;
}

.certificate-viewer-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.certificate-viewer-canvas img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 0 0;
  display: block;
  max-width: none;
  max-height: none;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: 0 0.625rem 2.5rem rgba(0,0,0,.4);
}

.certificate-viewer-canvas img[hidden] { display: none; }
.certificate-viewer-stage.is-zoomed { cursor: grab; }
.certificate-viewer-stage.is-dragging { cursor: grabbing; }

/* ══════════ CATALOG PAGE ══════════ */
.catalog-sections,
.catalog-listing {
  width: 100%;
  max-width: 62.5rem;
}

.catalog-sections[hidden],
.catalog-listing[hidden] { display: none; }

.catalog-sections-heading,
.catalog-listing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.125rem;
}

.catalog-sections-heading h2 {
  font-size: 1.25rem;
  font-weight: 800;
}

.catalog-sections-heading > span,
.catalog-counter {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.catalog-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.125rem;
}

.catalog-category-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 13.75rem;
  padding: 1.5625rem 1.75rem;
  color: var(--white);
  text-decoration: none;
  background-color: #10243a;
  text-shadow: 0 0.0625rem 0.3125rem rgba(0,0,0,.65);
  border: 0.0625rem solid rgba(255,255,255,.65);
  border-radius: 1rem;
  box-shadow: none;
  transform-origin: center;
  transition: transform .22s ease, border-color .22s ease;
}

.catalog-category-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,21,34,.95), rgba(6,21,34,.83) 40%, rgba(6,21,34,.4) 70%, rgba(6,21,34,.15)), linear-gradient(0deg, rgba(6,21,34,.88), transparent 55%);
  pointer-events: none;
}

.catalog-category-card:hover,
.catalog-category-card:focus-visible {
  z-index: 1;
  transform: scale(1.03);
  color: var(--white);
  border-color: #fff;
  box-shadow: none;
  outline: none;
}

.catalog-category-count {
  margin-top: auto;
  padding-top: 0.8125rem;
  color: rgba(255,255,255,.9);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

.catalog-category-photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  pointer-events: none;
}

.catalog-category-name {
  max-width: 74%;
  font-size: clamp(1.25rem, 2.2vw, 1.6875rem);
  font-weight: 800;
  line-height: 1.17;
  margin-bottom: 0.4375rem;
}

.catalog-category-description {
  max-width: 74%;
  color: #d6e3eb;
  font-size: 0.8125rem;
  line-height: 1.45;
  margin-bottom: 1.125rem;
}

.catalog-message { grid-column: 1 / -1; padding: 1.875rem 0; color: var(--muted); text-align: center; }

.catalog-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.375rem;
  padding: 0.5rem 0.9375rem;
  border: 0.0625rem solid var(--white);
  border-radius: 0.5625rem;
  background: #10243a;
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.catalog-back svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.catalog-back:hover,
.catalog-back:focus-visible { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.08); }

.catalog-listing .catalog-controls { max-width: none; margin-bottom: 1.5rem; }
.catalog-listing .search-wrap { flex: 1; max-width: none; min-width: 12.5rem; }
.catalog-listing .catalog-grid { max-width: none; }

.catalog-controls {
  width: 100%;
  max-width: 62.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
  background-color: #10243a;
  border: 0.0625rem solid var(--white);
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  user-select: none;
  caret-color: transparent;
  cursor: default;
}

.catalog-controls input { user-select: text; }

.category-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.catalog-search-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.catalog-subcategory {
  min-width: 14.375rem;
  max-width: 100%;
  padding: 0.5625rem 0.875rem;
  color: var(--white);
  background: var(--deep);
  border: 0.0625rem solid var(--border);
  border-radius: 1.25rem;
  font: inherit;
  font-size: 0.8125rem;
}

.catalog-subcategory[hidden],
.catalog-more[hidden] { display: none; }

.filter-btn {
  background: transparent;
  color: var(--white);
  border: 0.0625rem solid rgba(76,165,175,0.30);
  padding: 0.5rem 1.125rem;
  border-radius: 1.875rem;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(76,165,175,0.05);
}

.filter-btn.active {
  background: var(--teal);
  color: var(--deep);
  border-color: var(--teal);
  box-shadow: 0 0 0.875rem rgba(76,165,175,0.30);
}

.search-wrap {
  position: relative;
  max-width: 20rem;
  width: 100%;
}

.search-input {
  width: 100%;
  background: rgba(9,20,34,0.70);
  border: 0.0625rem solid var(--border);
  border-radius: 1.25rem;
  padding: 0.5625rem 1rem 0.5625rem 2.375rem;
  color: var(--white);
  font-family: 'Exo 2', sans-serif;
  font-size: 0.8125rem;
  outline: none;
  transition: all 0.2s;
}

.search-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 0.1875rem rgba(76,165,175,0.12);
  background: rgba(9,20,34,0.90);
}

.search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.875rem;
  height: 0.875rem;
  fill: var(--teal);
  opacity: 0.6;
  pointer-events: none;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18.125rem, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 62.5rem;
}

.catalog-more {
  margin-top: 1.875rem;
  padding: 0.75rem 1.75rem;
  color: var(--teal);
  background: rgba(76,165,175,.08);
  border: 0.0625rem solid var(--teal);
  border-radius: 0.5625rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}

.catalog-more:hover,
.catalog-more:focus-visible { background: rgba(76,165,175,.18); }

.product-item {
  position: relative;
  background: rgba(13,30,53,0.70);
  border: 0.0625rem solid #fff;
  border-radius: 1rem;
  overflow: hidden;
  backdrop-filter: blur(0.625rem);
  -webkit-backdrop-filter: blur(0.625rem);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0.25rem 1.25rem rgba(0,0,0,0.30);
}

.product-item:hover {
  transform: translateY(-0.375rem);
  border-color: #fff;
  box-shadow: 0 0.5rem 2rem rgba(0,0,0,0.50);
}

.product-img-wrap {
  width: 100%;
  height: 11.25rem;
  background: rgba(9,20,34,0.50);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 0.0625rem solid rgba(76,165,175,0.10);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  transition: transform 0.4s ease;
}

.product-img-wrap.has-product-photo,
.product-main-img.has-product-photo,
.product-thumb-item:has(img) {
  background: #fff;
  backdrop-filter: none;
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  color: var(--teal);
  background: linear-gradient(135deg, rgba(76,165,175,.09), rgba(9,20,34,.35));
  text-align: center;
}

.product-image-placeholder span {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.product-image-placeholder small { color: var(--muted); font-size: 0.6875rem; }
.product-detail-no-image .product-image-placeholder { min-height: 100%; }

.product-item:hover .product-img {
  transform: scale(1.08);
}

.product-info {
  padding: 1.375rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-cat {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--teal);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.product-name {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.625rem;
}

.product-name a,
.product-name a:visited,
.product-name a:active,
.product-name a:focus {
  color: var(--white) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.product-subcategory {
  display: block;
  margin: -0.1875rem 0 0.625rem;
  color: var(--teal);
  font-size: 0.6875rem;
  line-height: 1.4;
}

.product-item:hover .product-name a {
  color: var(--teal) !important;
}

.product-full-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.product-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.product-specs {
  background: rgba(9,20,34,0.40);
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
}

.product-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.25rem 0;
  border-bottom: 0.0625rem solid rgba(232,240,248,0.05);
}

.product-spec-row:last-child {
  border-bottom: none;
}

.product-spec-label {
  color: var(--muted);
}

.product-spec-val {
  font-weight: 600;
  color: var(--white);
  text-align: right;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.625rem;
  margin-top: auto;
}

.product-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--teal);
}

.product-order-btn {
  position: relative;
  z-index: 2;
  padding: 0.5rem 1.125rem;
  background: transparent;
  color: var(--teal);
  border: 0.0625rem solid var(--teal);
  border-radius: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.product-order-btn:hover {
  background: var(--teal);
  color: var(--deep);
  box-shadow: 0 0 0.75rem rgba(76,165,175,0.30);
}

.product-item .product-cat,
.product-item .product-name,
.product-item .product-subcategory,
.product-item .product-desc,
.product-item .product-spec-label,
.product-item .product-spec-val,
.product-item .product-price {
  color: #fff;
}

.product-item .product-name a,
.product-item:hover .product-name a {
  color: #fff !important;
}

.product-item .product-order-btn {
  color: #fff;
  border-color: #fff;
}

.product-item .product-order-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
  box-shadow: none;
}

/* ══════════ ARTICLES PAGE ══════════ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1.75rem;
  width: 100%;
  max-width: 62.5rem;
}

.article-card {
  background: rgba(13,30,53,0.70);
  border: 0.0625rem solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  backdrop-filter: blur(0.625rem);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-0.375rem);
  border-color: rgba(76,165,175,0.50);
  box-shadow:
    0 0.5rem 2rem rgba(0,0,0,0.50),
    0 0 1.25rem rgba(76,165,175,0.15);
}

.article-img-wrap {
  width: 100%;
  height: 11.25rem;
  overflow: hidden;
  position: relative;
}

.article-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-img {
  transform: scale(1.04);
}

.article-body {
  padding: 1.375rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-date {
  font-size: 0.6875rem;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.article-title {
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.article-summary {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.article-more {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
}

.article-more svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: var(--teal);
  transition: transform 0.2s;
}

.article-card:hover .article-more svg {
  transform: translateX(0.25rem);
}

/* ══════════ ARTICLE DETAIL PAGE ══════════ */
.article-detail-wrap {
  width: 100%;
  margin: 0 auto;
  background: rgba(13,30,53,0.70);
  border: 0.0625rem solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  backdrop-filter: blur(0.625rem);
  -webkit-backdrop-filter: blur(0.625rem);
  box-shadow: 0 0.5rem 2.5rem rgba(0,0,0,0.55);
}

.article-detail-hero {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  max-height: 27.5rem;
  overflow: hidden;
  position: relative;
  border-bottom: 0.0625rem solid rgba(76,165,175,0.15);
}

.article-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* No overlay for cover photo to keep it bright and crisp */

.article-detail-content {
  padding: 2.5rem 3rem 3.25rem;
}

.article-detail-meta {
  font-size: 0.75rem;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.article-detail-title {
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.article-detail-text {
  font-size: 0.9375rem;
  color: rgba(232,240,248,0.85);
  line-height: 1.8;
  white-space: pre-line;
  margin-bottom: 2.25rem;
}

.article-detail-attachments {
  border-top: 0.0625rem solid rgba(76,165,175,0.15);
  padding-top: 1.5rem;
}

.article-detail-attachments h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.attachment-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.75rem, 1fr));
  gap: 0.75rem;
}

.attach-item {
  background: rgba(9,20,34,0.60);
  border: 0.0625rem solid var(--border);
  border-radius: 0.625rem;
  padding: 0.625rem 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
  transition: all 0.2s;
}

.attach-item:hover {
  background: rgba(76,165,175,0.08);
  border-color: var(--teal);
}

.attach-icon {
  font-size: 1.375rem;
  flex-shrink: 0;
}

.attach-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.attach-name {
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attach-type {
  font-size: 0.5625rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
}

/* ══════════ CONTACT FORM CARD ══════════ */
.form-card {
  width: 100%;
  max-width: 37.5rem;
  background-color: #11253b;
  background-image: url('assets/contact-panel.svg'), url('assets/grain-surface.svg?v=2.3');
  background-position: center, left top;
  background-size: cover, 6rem 6rem;
  background-repeat: no-repeat, repeat;
  border: 0.0625rem solid var(--border);
  border-radius: 1.25rem;
  padding: 2.75rem 3rem;
  box-shadow:
    0 0.5rem 3rem rgba(0,0,0,0.50),
    inset 0 0.0625rem 0 rgba(76,165,175,0.10);
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232,240,248,0.76);
  margin-bottom: 0.5625rem;
}

.form-group label span.req {
  color: var(--teal);
  margin-left: 0.1875rem;
}

.input-wrap {
  position: relative;
}

.input-wrap .field-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem; height: 1rem;
  opacity: 0.72;
  pointer-events: none;
  fill: var(--teal);
}

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  width: 100%;
  background-color: #0a1a2b;
  border: 0.0625rem solid var(--border);
  border-radius: 0.625rem;
  color: var(--white);
  font-family: 'Exo 2', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.8125rem 1rem 0.8125rem 2.75rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  background-color: #0a1a2b;
  background-image: url('assets/contact-field.svg'), url('assets/grain-surface.svg?v=2.3');
  background-position: right center, left top;
  background-size: 5.75rem 100%, 6rem 6rem;
  background-repeat: no-repeat, repeat;
}

.input-wrap textarea {
  resize: vertical;
  min-height: 6.875rem;
  padding-top: 0.875rem;
  line-height: 1.5;
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 0.3125rem solid transparent;
  border-right: 0.3125rem solid transparent;
  border-top: 0.375rem solid rgba(76,165,175,0.60);
  pointer-events: none;
}

.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
  border-color: rgba(76,165,175,0.55);
  box-shadow: 0 0 0 0.1875rem rgba(76,165,175,0.10);
  background-color: #0d2839;
}

.input-wrap input::placeholder,
.input-wrap textarea::placeholder {
  color: rgba(232,240,248,0.46);
}

.input-wrap select option {
  background: #0d1e35;
  color: var(--white);
}

.input-wrap input.is-error,
.input-wrap select.is-error,
.input-wrap textarea.is-error {
  border-color: rgba(255,90,110,0.60);
  box-shadow: 0 0 0 0.1875rem rgba(255,90,110,0.10);
}

.input-wrap input.is-ok,
.input-wrap select.is-ok,
.input-wrap textarea.is-ok {
  border-color: rgba(46,196,122,0.50);
}

.field-error {
  font-size: 0.6875rem;
  color: var(--error);
  margin-top: 0.4375rem;
  padding-left: 0.25rem;
  display: none;
  letter-spacing: 0.03em;
}

.field-hint {
  font-size: 0.6875rem;
  color: rgba(232,240,248,0.48);
  margin-top: 0.4375rem;
  padding-left: 0.25rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
}

.product-card {
  position: relative;
  cursor: pointer;
}

.product-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.product-card label {
  --choice-art: url('assets/stats/production-photo.webp');
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  min-height: 4.75rem;
  gap: 0.625rem;
  padding: 1rem;
  border: 0.0625rem solid var(--border);
  border-radius: 0.75rem;
  background-color: #0a1a2b;
  background-image: var(--choice-art);
  background-clip: padding-box;
  background-position: 72% center;
  background-size: cover;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  text-align: left;
  text-shadow: 0 0.0625rem 0.3125rem rgba(0, 0, 0, 0.65);
  line-height: 1.3;
  user-select: none;
}

.product-card label::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(6,21,34,0.9) 0%, rgba(6,21,34,0.84) 40%, rgba(6,21,34,0.75) 75%, rgba(6,21,34,0.66) 100%);
  pointer-events: none;
}

.product-card label > span {
  position: relative;
  z-index: 1;
}

.product-card:nth-child(2) label { --choice-art: url('assets/stats/welding-photo.webp'); }
.product-card:nth-child(3) label { --choice-art: url('assets/product-choices/fittings-photo.webp'); }
.product-card:nth-child(4) label { --choice-art: url('assets/product-choices/equipment-photo.webp'); }

.product-card label:hover {
  border-color: var(--white);
  box-shadow: inset 0 0 0 0.0625rem rgba(255, 255, 255, 0.3);
}

.product-card input[type="checkbox"]:checked + label {
  border-color: var(--white);
  box-shadow: inset 0 0 0 0.0625rem var(--white), 0 0 1.125rem rgba(255,255,255,0.15);
}

.product-card input[type="checkbox"]:checked + label::after {
  content: '\2713';
  position: absolute;
  z-index: 1;
  top: 0.4375rem;
  right: 0.4375rem;
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--white);
  color: var(--deep);
  font-size: 0.75rem;
  text-shadow: none;
}

.product-card input[type="checkbox"]:focus-visible + label {
  outline: 0.125rem solid var(--white);
  outline-offset: 0.1875rem;
}

.form-card {
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}

.form-card :is(input[type="text"], input[type="tel"], textarea) {
  -webkit-user-select: text;
  user-select: text;
  caret-color: auto;
}

.products-error {
  font-size: 0.6875rem;
  color: var(--error);
  margin-top: 0.5625rem;
  padding-left: 0.25rem;
  display: none;
}

.form-divider {
  width: 100%;
  height: 0.0625rem;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0.625rem 0 1.75rem;
}

.btn-submit {
  width: 100%;
  padding: 0.9375rem;
  background-color: var(--teal);
  background-image: url('assets/contact-submit.svg'), url('assets/grain-surface.svg?v=2.3');
  background-position: center, left top;
  background-size: 100% 100%, 6rem 6rem;
  background-repeat: no-repeat, repeat;
  color: var(--deep);
  border: none;
  border-radius: 0.625rem;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s, opacity 0.2s;
  box-shadow: 0 0.25rem 1.5rem rgba(76,165,175,0.30);
  position: relative;
  overflow: hidden;
}

.btn-submit:hover:not(:disabled) {
  background-color: #65b8c1;
  box-shadow: 0 0.375rem 2rem rgba(76,165,175,0.45);
  transform: translateY(-0.0625rem);
}

.btn-submit:active:not(:disabled) { transform: translateY(0); }

.btn-submit:disabled {
  filter: brightness(0.72);
  cursor: not-allowed;
  transform: none;
}

.btn-submit .spinner {
  display: none;
  width: 1rem; height: 1rem;
  border: 0.125rem solid rgba(9,20,34,0.35);
  border-top-color: var(--deep);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}

.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .spinner { display: block; }

.form-alert {
  margin-top: 1.25rem;
  padding: 0.875rem 1.125rem;
  border-radius: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 0.625rem;
  line-height: 1.4;
}

.form-alert.success {
  background: #113d34;
  border: 0.0625rem solid rgba(46,196,122,0.30);
  color: #4de8a0;
  display: flex;
}

.form-alert.error {
  background: #402332;
  border: 0.0625rem solid rgba(255,90,110,0.30);
  color: #ff7a88;
  display: flex;
}

.alert-icon { font-size: 1.125rem; flex-shrink: 0; }

/* ══════════ DIVIDERS ══════════ */
.line {
  width: 100%;
  height: 0.0625rem;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

/* ══════════ FOOTER ══════════ */
footer {
  background: var(--deep);
  padding: 1.75rem 1.25rem;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}
.foot-inner {
  max-width: 68.75rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.875rem;
}
.foot-logo {
  width: 7.5rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
}
.foot-logo span {
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(76,165,175,0.35);
}
.foot-copy {
  font-size: 0.6875rem;
  color: rgba(232,240,248,0.28);
}
.foot-links {
  display: flex;
  gap: 1.375rem;
}
.foot-links a {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(232,240,248,0.38);
  text-decoration: none;
  transition: color 0.2s;
}
.foot-links a:hover { color: var(--teal); }

/* ══════════ ANIMATIONS ══════════ */
@keyframes up {
  from { opacity: 0; transform: translateY(1.25rem); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ══════════ ADMIN PAGE ══════════ */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  position: relative;
  z-index: 10;
}

.admin-login-card {
  width: 100%;
  max-width: 25rem;
  background: rgba(13,30,53,0.80);
  border: 0.0625rem solid var(--border);
  border-radius: 1rem;
  padding: 2.25rem;
  box-shadow: 0 0.625rem 2.5rem rgba(0,0,0,0.50);
  backdrop-filter: blur(0.9375rem);
  text-align: center;
}

.admin-login-card h2 {
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 1.75rem;
  letter-spacing: 0.05em;
  color: var(--white);
}

.admin-login-card h2 span {
  color: var(--teal);
}

.admin-wrap {
  width: 100%;
  max-width: 68.75rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
  position: relative;
  z-index: 10;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 0.0625rem solid rgba(76,165,175,0.15);
  padding-bottom: 1.25rem;
  margin-bottom: 1.875rem;
}

.admin-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
}

.admin-header h1 span {
  color: var(--teal);
}

.admin-nav {
  display: flex;
  gap: 0.625rem;
}

.admin-tab-btn {
  background: transparent;
  color: var(--white);
  border: 0.0625rem solid rgba(232,240,248,0.15);
  padding: 0.5rem 1.125rem;
  border-radius: 0.5rem;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-tab-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.admin-tab-btn.active {
  background: rgba(76,165,175,0.12);
  border-color: var(--teal);
  color: var(--teal);
}

.admin-logout-btn {
  background: transparent;
  color: var(--error);
  border: 0.0625rem solid rgba(255,90,110,0.30);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.admin-logout-btn:hover {
  background: var(--error);
  color: var(--deep);
  border-color: var(--error);
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.25rem;
}

.admin-btn-add {
  background: var(--teal);
  color: var(--deep);
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0.25rem 0.875rem rgba(76,165,175,0.25);
  transition: all 0.2s;
}

.admin-btn-add:hover {
  background: #4ca5af;
  transform: translateY(-0.0625rem);
}

/* Tables */
.admin-table-wrap {
  background: rgba(13,30,53,0.50);
  border: 0.0625rem solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  backdrop-filter: blur(0.625rem);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th,
.admin-table td {
  padding: 1rem 1.25rem;
  border-bottom: 0.0625rem solid rgba(76,165,175,0.10);
  font-size: 0.8125rem;
}

.admin-table th {
  background: rgba(9,20,34,0.40);
  color: var(--teal);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(76,165,175,0.02);
}

.admin-thumb {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.375rem;
  background: rgba(9,20,34,0.50);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0.0625rem solid rgba(76,165,175,0.15);
}

.admin-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.admin-no-photo {
  color: var(--muted);
  font-size: 0.5625rem;
  line-height: 1.2;
  text-align: center;
}

.admin-btn-edit {
  background: transparent;
  color: var(--teal);
  border: 0.0625rem solid var(--teal);
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 0.375rem;
}

.admin-btn-edit:hover {
  background: var(--teal);
  color: var(--deep);
}

.admin-btn-delete {
  background: transparent;
  color: var(--error);
  border: 0.0625rem solid var(--error);
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-btn-delete:hover {
  background: var(--error);
  color: var(--deep);
}

/* Modals inside Admin */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 1.25rem;
}

.admin-modal.active {
  opacity: 1;
  pointer-events: all;
}

.admin-modal-container {
  background: var(--panel);
  border: 0.0625rem solid var(--border);
  border-radius: 1rem;
  width: 100%;
  max-width: 37.5rem;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0.625rem 2.5rem rgba(0,0,0,0.50);
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1010;
}

.admin-modal.active .admin-modal-container {
  transform: scale(1);
}

.admin-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 0.0625rem solid rgba(76,165,175,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-modal-header h3 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.375rem;
  cursor: pointer;
}

.admin-modal-close:hover {
  color: var(--white);
}

.admin-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.admin-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 0.0625rem solid rgba(76,165,175,0.10);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.admin-btn-cancel {
  background: transparent;
  color: var(--muted);
  border: 0.0625rem solid rgba(232,240,248,0.15);
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-btn-cancel:hover {
  border-color: var(--white);
  color: var(--white);
}

/* File Upload styling */
.admin-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(9,20,34,0.40);
  border: 0.0625rem dashed rgba(76,165,175,0.20);
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
}

.admin-file-name {
  font-size: 0.75rem;
  font-weight: 600;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-file-remove {
  color: var(--error);
  cursor: pointer;
  font-size: 0.6875rem;
  font-weight: 700;
}

.admin-file-remove:hover {
  text-decoration: underline;
}

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 760px) {
  .product-detail-page { padding: 1.5rem 1rem 3rem; }
  .product-detail-page .btn-back-articles { margin-bottom: 0; }
  .product-detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    margin-top: 1.25rem;
  }
  .product-main-img img { width: 100%; height: 100%; }
  .product-detail-info .product-title { font-size: 1.75rem; overflow-wrap: anywhere; }
  .product-detail-specs .product-spec-row { gap: 0.75rem; }
  .product-detail-specs .product-spec-label,
  .product-detail-specs .product-spec-val { min-width: 0; overflow-wrap: anywhere; }
  .product-detail-info .product-footer { flex-direction: column; align-items: stretch; gap: 1rem; }
  .product-detail-info .product-price { align-self: flex-start; }
  .product-detail-info .product-order-btn { width: 100%; min-height: 2.75rem; text-align: center; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 1.875rem; }
  .catalog-controls { flex-direction: column; align-items: stretch; gap: 0.875rem; }
  .search-wrap { max-width: none; }
}


@media (max-width: 800px) {
  .certificates-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .navbar {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .nav-links {
    grid-column: 1 / -1;
    justify-content: center;
    flex-wrap: wrap;
  }
  .nav-cta { grid-row: 1; grid-column: 2; justify-self: end; }
  .stats { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .catalog-category-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .catalog-category-card { min-height: 11.875rem; padding: 1.3125rem 1.375rem; }
  .catalog-category-name { font-size: 1.375rem; }
  .catalog-sections-heading h2 { font-size: 1.125rem; }
  .catalog-listing-top { flex-wrap: wrap; }
  .certificates { margin-top: 3.5rem; }
  .certificates-heading { display: block; }
  .certificates-heading p { margin-top: 0.625rem; }
  .certificates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .certificate-thumb { height: 11.875rem; }
  .certificate-viewer { padding-inline: 0.625rem; }
  .certificate-viewer-toolbar { gap: 0.625rem 1rem; }
  .certificate-viewer-caption { flex-direction: column; align-items: flex-start; gap: 0.1875rem; }
  .certificate-viewer-caption strong { font-size: 0.8125rem; max-width: 100%; }
  .form-card { padding: 2rem 1.5rem; }
  .products-grid { grid-template-columns: 1fr; gap: 0.5rem; }
  .product-card label {
    flex-direction: row;
    padding: 0.8125rem 1rem;
    justify-content: flex-start;
    gap: 0.875rem;
    text-align: left;
  }
  .art-modal-scroll { padding: 1.25rem 1.5rem 1.875rem; }
  .art-modal-hero { height: 11.25rem; }
  .article-detail-hero { aspect-ratio: 16 / 9; }
  .article-detail-content { padding: 1.5rem 1.25rem 1.875rem; }
  .admin-header { flex-direction: column; align-items: flex-start; gap: 0.875rem; }
}

@media (max-width: 500px) {
  .about-features { grid-template-columns: 1fr; }
  .top-bar-inner { font-size: 0.6875rem; gap: 0.5rem; padding-inline: 0.75rem; }
  .top-bar a { font-size: 1.0625rem; }
  .navbar { grid-template-columns: 1fr; justify-items: center; gap: 0.75rem; }
  .nav-cta { justify-self: center; }
}

@media (max-width: 380px) {
  .top-bar-inner { justify-content: center; flex-wrap: wrap; }
}

/* Honeypot field for bot protection */
.honeypot-wrap {
  position: absolute !important;
  left: -624.9375rem !important;
  top: -624.9375rem !important;
  width: 0.0625rem !important;
  height: 0.0625rem !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.article-gallery-item {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 0.0625rem solid rgba(76,165,175,0.15);
  background: rgba(9,20,34,0.30);
  cursor: pointer;
}

.article-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.article-gallery-item img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Quiet, fine noise sits behind content, including the header and footer. */
:is(footer, .navbar,
    .catalog-controls, .product-item, .article-card,
    .product-gallery, .article-detail-wrap,
    .search-input, .catalog-subcategory,
    .nav-cta, .filter-btn, .catalog-more,
    .product-order-btn, .btn-back-articles,
    .certificate-control, .certificate-icon-btn,
    .admin-login-card, .admin-table-wrap, .admin-modal-container,
    .admin-tab-btn, .admin-logout-btn, .admin-btn-add, .admin-btn-edit,
    .admin-btn-delete, .admin-btn-cancel, .admin-modal-close) {
  background-image: url('assets/grain-surface.svg?v=2.3') !important;
  background-size: 6rem 6rem !important;
}

/* Only display-size lettering gets a little texture. Body copy stays crisp. */
:is(.hero-title, .hero-title em, .page-header h1, .page-header h1 span,
    .certificates-heading h2, .stat-n, .product-detail-info .product-title,
    .article-detail-title) {
  background-color: currentColor;
  background-image: url('assets/grain-text.svg?v=2.2');
  background-size: 6rem 6rem;
  background-blend-mode: multiply;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Keep the Full HD composition proportional on larger desktop viewports. */
html.pnd-public { font-size: 16px; }
@media (min-width: 1921px) { html.pnd-public { font-size: calc(100vw / 120); } }
/* Home: copy on the left, delivery map and statistics on the right. */
.home-hero {
  width:100%; max-width:none; padding:3.75rem clamp(2rem,4.5vw,6rem) 4rem; margin:0 auto;
  display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1.15fr); gap:4rem; align-items:center;
}
.home-hero .hero-content { max-width:none; margin:0; padding:0; align-items:flex-start; text-align:left; }
.home-hero .hero-tag { font-size:.625rem; letter-spacing:.2em; gap:.5rem; white-space:nowrap; }
.home-hero .hero-tag::after { display:none; }
.home-hero .hero-tag::before { width:1.25rem; }
.home-hero .hero-title { font-size:4.5rem; line-height:1.06; margin-bottom:1.5rem; }
.home-hero .hero-sub { max-width:36rem; margin-bottom:2.25rem; font-size:1.0625rem; }
.home-hero .hero-btns { justify-content:flex-start; gap:.75rem; }
.home-hero .hero-btns a { padding:1rem 2rem; font-size:.75rem; letter-spacing:.1em; }
.home-hero-visual { display:flex; flex-direction:column; min-width:0; gap:2rem; }
.home-map { position:relative; margin:0; min-width:0; padding:1rem 0 .25rem; user-select:none; -webkit-user-select:none; }
.home-map img { display:block; width:100%; height:auto; pointer-events:none; filter:drop-shadow(0 .75rem 1.5rem #0005); }
.home-map figcaption { color:#d9e8ef; text-align:center; font-size:.5625rem; font-weight:600; text-transform:uppercase; letter-spacing:.24em; padding:.75rem 0; }
.home-map figcaption::before { content:''; display:inline-block; width:.3125rem; height:.3125rem; background:#e8f0f8; border-radius:50%; margin:0 .625rem .0625rem 0; box-shadow:0 0 .5rem #b6dce0; }
.home-hero .stats { max-width:none; padding:0; gap:.875rem; margin:0; }
.home-hero .stat { min-height:8.5rem; padding:1.375rem .75rem; border-color:#ffffff40; }
.home-hero .stat::before { background-image:linear-gradient(90deg,#061522d9,#06152299),var(--stat-art); }
.home-hero .stat-n { font-size:2.5rem; }
.home-hero .stat-l { font-size:.625rem; letter-spacing:.1em; line-height:1.5; color:#bdcbd6; }
@media(max-width:1100px) and (min-width:901px) {
  .home-hero { gap:1.5rem; }
  .home-hero .hero-title { font-size:3.125rem; }
  .home-hero .hero-tag { font-size:.5rem; letter-spacing:.15em; }
  .home-hero .stat-n { font-size:1.75rem; }
}
@media(max-width:900px) {
  .home-hero { grid-template-columns:minmax(0,1fr); max-width:none; gap:2rem; padding-top:3rem; }
  .home-hero .hero-title { font-size:clamp(2.375rem,7vw,3.625rem); }
  .home-hero .hero-sub { max-width:34rem; }
  .home-hero-visual { gap:1.25rem; }
  .home-map { padding:0; }
}
@media(max-width:540px) {
  .home-hero { padding:2.5rem 1.25rem 3rem; gap:1.5rem; }
  .home-hero .hero-tag { font-size:.4375rem; letter-spacing:.14em; white-space:normal; }
  .home-hero .hero-title { font-size:clamp(2.125rem,8vw,2.875rem); }
  .home-hero .hero-sub { font-size:.875rem; margin-bottom:1.5rem; }
  .home-hero .hero-btns { width:100%; display:grid; grid-template-columns:1fr; }
  .home-hero .hero-btns a { text-align:center; font-size:.6875rem; padding:1rem; }
  .home-hero .stats { grid-template-columns:1fr; }
  .home-hero .stat { min-height:6rem; padding:1.25rem 36% 1.25rem 1rem; }
  .home-hero .stat::before { background-image:linear-gradient(90deg,#061522ef,#061522bd 42%,#06152240),var(--stat-art); }
  .home-hero .stat-n { font-size:2.25rem; }
  .home-hero .stat-l { font-size:.5625rem; }
  .home-map figcaption { font-size:.5rem; letter-spacing:.18em; }
}
/* A little more breathing room for the home copy on desktop. */
@media(min-width:901px) {
  .home-hero .hero-content { padding-left:clamp(1rem,1.5vw,2rem); }
}
