:root {
  --ink: #08111f;
  --ink-2: #102138;
  --muted: #627188;
  --line: rgba(8, 17, 31, .11);
  --paper: #f7f8fb;
  --white: #ffffff;
  --blue: #123f8c;
  --blue-2: #0a65d8;
  --orange: #ff8a00;
  --orange-2: #ffb000;
  --cyan: #7bd8ee;
  --shadow: 0 24px 70px rgba(8, 17, 31, .16);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1000;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 999px;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 17, 31, .94);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(8, 17, 31, .18);
}

.topline {
  background: rgba(8, 17, 31, .92);
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
}

.topline-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
}

.topline a:hover {
  color: var(--white);
}

.nav-shell {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), #d9fbff);
  color: #14556f;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -.06em;
  box-shadow: 0 12px 30px rgba(10, 101, 216, .17);
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 16px;
  letter-spacing: -.02em;
}

.brand-text small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  font-weight: 800;
  padding: 12px 13px;
  border-radius: 999px;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, .10);
  color: var(--white);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 16px 34px rgba(8, 17, 31, .22);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  padding: 12px;
  cursor: pointer;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

.hero {
  position: relative;
  min-height: 910px;
  color: var(--white);
  isolation: isolate;
  padding: 188px 0 84px;
  display: grid;
  align-items: center;
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 10, 20, .92) 0%, rgba(5, 10, 20, .80) 38%, rgba(5, 10, 20, .35) 70%, rgba(5, 10, 20, .72) 100%),
    linear-gradient(180deg, rgba(5, 10, 20, .22), rgba(5, 10, 20, .80)),
    url('../img/hero-court.jpg') center / cover no-repeat;
  z-index: -2;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  background: linear-gradient(180deg, transparent, var(--paper));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: end;
  gap: 54px;
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange-2);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.hero h1,
.section h2,
.image-feature h2,
.hero-panel h2 {
  margin: 0;
  letter-spacing: -.065em;
  line-height: .96;
}

.hero h1 {
  font-size: clamp(48px, 7vw, 94px);
  max-width: 860px;
}

.hero-lead {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(18px, 2vw, 22px);
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  border-radius: 999px;
  padding: 0 24px;
  border: 0;
  cursor: pointer;
  font-weight: 950;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #150c00;
  box-shadow: 0 18px 45px rgba(255, 138, 0, .28);
}

.btn-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
}

.trust-row {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .86);
  font-weight: 800;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, .12);
}

.hero-panel {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .28);
}

.panel-image {
  height: 220px;
  overflow: hidden;
}

.panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-body {
  padding: 28px;
}

.panel-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.hero-panel h2 {
  font-size: 30px;
  letter-spacing: -.045em;
}

.hero-panel p {
  color: var(--muted);
  margin: 14px 0 18px;
}

.hero-panel a {
  font-weight: 950;
  color: var(--blue);
}

.stats-band {
  position: relative;
  z-index: 5;
  margin-top: -46px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px;
  min-height: 140px;
  display: grid;
  align-content: end;
  box-shadow: 0 16px 50px rgba(8, 17, 31, .08);
  border: 1px solid var(--line);
}

.stat strong {
  color: var(--blue);
  display: block;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -.055em;
}

.stat span {
  color: var(--muted);
  font-weight: 800;
  margin-top: 8px;
}

.section {
  padding: 104px 0;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.section-copy h2,
.section-head h2,
.references-copy h2,
.cert-card h2,
.contact-copy h2,
.image-feature h2 {
  font-size: clamp(38px, 5vw, 66px);
  letter-spacing: -.06em;
  line-height: .98;
}

.section-copy h2,
.section-head h2,
.references-copy h2,
.cert-card h2,
.contact-copy h2 {
  margin: 0;
}

.intro-text {
  font-size: 19px;
  color: var(--ink-2);
}

.intro-text p:first-child {
  margin-top: 0;
}

.products-section {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 850px;
  margin-bottom: 38px;
}

.section-head.narrow {
  max-width: 700px;
  text-align: center;
  margin-inline: auto;
}

.section-head p:last-child {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.product-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-btn {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-2);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 900;
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--white);
  background: var(--ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  background: var(--white);
  box-shadow: var(--shadow);
}

.card-number {
  color: var(--orange);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .12em;
}

.product-card h3 {
  margin: auto 0 12px;
  font-size: 26px;
  line-height: 1.02;
  letter-spacing: -.04em;
}

.product-card p {
  margin: 0 0 20px;
  color: var(--muted);
}

.product-card a {
  margin-top: auto;
  color: var(--blue);
  font-weight: 950;
}

.product-card.is-hidden {
  display: none;
}

.image-feature {
  padding: 104px 0;
  background: linear-gradient(180deg, var(--white), var(--paper));
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 60px;
  align-items: center;
}

.feature-photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 540px;
}

.feature-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-copy p {
  color: var(--muted);
  font-size: 18px;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 850;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 0 0 5px rgba(255, 138, 0, .13);
}

.process-section {
  background: var(--ink);
  color: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 46px;
  background: rgba(255, 255, 255, .13);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.process-step {
  background: #0d1b31;
  padding: 34px;
  min-height: 280px;
}

.process-step span {
  display: inline-block;
  color: var(--orange-2);
  font-weight: 950;
  margin-bottom: 66px;
}

.process-step h3 {
  margin: 0 0 10px;
  font-size: 27px;
  letter-spacing: -.04em;
}

.process-step p {
  color: rgba(255, 255, 255, .72);
  margin: 0;
}

.references-section {
  background: var(--paper);
}

.references-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 54px;
  align-items: start;
}

.references-copy p:last-child {
  color: var(--muted);
  font-size: 18px;
}

.reference-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.reference-cards article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-height: 220px;
  display: grid;
  align-content: end;
  box-shadow: 0 15px 45px rgba(8, 17, 31, .06);
}

.reference-cards h3 {
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -.04em;
}

.reference-cards p {
  margin: 0;
  color: var(--muted);
}

.certificates-section {
  background:
    linear-gradient(90deg, rgba(8, 17, 31, .94), rgba(8, 17, 31, .70)),
    url('../img/court-lines.jpg') center / cover no-repeat;
  color: var(--white);
}

.cert-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 70px;
  align-items: center;
}

.cert-card p:not(.eyebrow) {
  color: rgba(255, 255, 255, .78);
  font-size: 18px;
  margin: 22px 0 28px;
}

.cert-list {
  display: grid;
  gap: 14px;
}

.cert-list div {
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(8px);
}

.cert-list span {
  display: inline-block;
  color: var(--orange-2);
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 12px;
}

.cert-list strong {
  display: block;
  font-size: 22px;
  letter-spacing: -.035em;
}

.cert-list p {
  color: rgba(255, 255, 255, .72);
  margin: 8px 0 0;
}

.gallery-section {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  gap: 14px;
}

.gallery-item {
  position: relative;
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  cursor: pointer;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, opacity .35s ease;
}

.gallery-item:hover img {
  transform: scale(1.055);
  opacity: .82;
}

.contact-section {
  background: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 54px;
  align-items: start;
}

.contact-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-list a,
.contact-list div {
  display: grid;
  gap: 3px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.contact-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.contact-list strong {
  font-size: 18px;
  line-height: 1.2;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.form-row.two {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  font-size: 13px;
  font-weight: 950;
  color: var(--ink-2);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  color: var(--ink);
  padding: 14px 15px;
  outline: none;
  transition: border .2s ease, box-shadow .2s ease, background .2s ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  background: var(--white);
  border-color: rgba(18, 63, 140, .55);
  box-shadow: 0 0 0 4px rgba(18, 63, 140, .10);
}

.hidden-field {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
}

.form-submit {
  width: 100%;
  margin-top: 4px;
}

.form-status {
  min-height: 24px;
  color: var(--blue);
  font-weight: 850;
  margin: 14px 0 0;
}

.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 56px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
  gap: 46px;
  padding-bottom: 34px;
}

.footer-brand .brand-text small {
  color: rgba(255, 255, 255, .62);
}

.site-footer p,
.site-footer span {
  color: rgba(255, 255, 255, .66);
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 17px;
}

.site-footer a:not(.brand) {
  display: block;
  color: rgba(255, 255, 255, .72);
  margin: 7px 0;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, .92);
  z-index: 500;
  display: none;
  place-items: center;
  padding: 30px;
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 84vh;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: fixed;
  right: 24px;
  top: 22px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 30px;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s ease, transform .75s ease;
}

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

.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

@media (max-width: 1080px) {
  .hero-grid,
  .split-grid,
  .feature-grid,
  .references-grid,
  .cert-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .product-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .topline {
    display: none;
  }

  .site-header {
    background: rgba(247, 248, 251, .92);
    backdrop-filter: blur(16px);
  }

  .nav-shell {
    min-height: 76px;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
    position: relative;
    z-index: 111;
  }

  .menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--ink);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 100px 28px 40px;
    transform: translateX(100%);
    transition: transform .28s ease;
    z-index: 110;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav a {
    color: var(--white);
    width: min(420px, 100%);
    font-size: 26px;
    border-radius: 18px;
    padding: 15px 18px;
    text-align: center;
  }

  .hero {
    padding-top: 126px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 68px);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .brand-text small {
    display: none;
  }

  .hero {
    padding-bottom: 60px;
  }

  .hero-grid {
    gap: 30px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .trust-row span {
    flex: 1 1 calc(50% - 10px);
    justify-content: center;
    text-align: center;
  }

  .stats-grid,
  .product-grid,
  .process-grid,
  .reference-cards,
  .footer-grid,
  .form-row.two {
    grid-template-columns: 1fr;
  }

  .section,
  .image-feature {
    padding: 72px 0;
  }

  .product-card,
  .process-step {
    min-height: auto;
  }

  .process-step span {
    margin-bottom: 36px;
  }

  .feature-photo {
    height: 380px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 280px;
  }

  .gallery-item.tall,
  .gallery-item.wide {
    grid-row: auto;
    grid-column: auto;
  }

  .contact-form {
    padding: 22px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

/* Robust mobile navigation overlay - keep this at the end so it always wins on responsive. */
@media (max-width: 860px) {
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    background: var(--ink);
    z-index: 1000;
    pointer-events: auto;
  }

  body.nav-open .site-header {
    z-index: 1100;
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
  }

  body.nav-open .brand,
  body.nav-open .header-cta {
    visibility: hidden;
    pointer-events: none;
  }

  body.nav-open .menu-toggle {
    position: relative;
    z-index: 1130;
    background: transparent;
  }

  .main-nav {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 96px max(22px, env(safe-area-inset-left)) 34px max(22px, env(safe-area-inset-right)) !important;
    background: var(--ink) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    transform: translate3d(100%, 0, 0) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .28s ease, opacity .2s ease, visibility 0s linear .28s !important;
    z-index: 1120 !important;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .main-nav.is-open {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform .28s ease, opacity .2s ease, visibility 0s !important;
  }

  .main-nav a {
    width: min(420px, 100%) !important;
    color: var(--white) !important;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 18px;
    padding: 15px 18px;
    text-align: center;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: rgba(255, 255, 255, .12);
    color: var(--white) !important;
  }
}

/* Original logo and product-photo cards */
.brand-logo-wrap {
  width: 172px;
  min-width: 172px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  overflow: visible;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.footer-brand .brand-logo-wrap {
  background: transparent;
  box-shadow: none;
}

.product-card {
  padding: 0;
  overflow: hidden;
  min-height: 380px;
}

.product-image {
  height: 152px;
  background: #e9edf3;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.055);
}

.product-card:nth-child(2) .product-image img {
  object-position: center center;
}

.product-card:nth-child(3) .product-image img {
  object-position: center center;
}

.product-card:nth-child(4) .product-image {
  background: #ffffff;
}

.product-card:nth-child(4) .product-image img {
  object-fit: contain;
  padding: 8px;
}

.product-card:nth-child(6) .product-image img {
  object-position: center center;
}

.product-card .card-number,
.product-card h3,
.product-card p,
.product-card a {
  margin-left: 24px;
  margin-right: 24px;
}

.product-card .card-number {
  margin-top: 22px;
  display: block;
}

.product-card h3 {
  margin-top: 18px;
  margin-bottom: 12px;
}

.product-card p {
  flex: 1;
}

.product-card a {
  margin-bottom: 24px;
}

.certificates-section {
  background:
    linear-gradient(90deg, rgba(8, 17, 31, .94), rgba(8, 17, 31, .76)),
    url('../img/product-gumene-podloge.jpg') center / cover no-repeat;
}

@media (max-width: 640px) {
  .brand {
    gap: 9px;
  }

  .brand-logo-wrap {
    width: 140px;
    min-width: 140px;
    height: 50px;
    border-radius: 0;
    padding: 0;
  }

  .brand-text strong {
    font-size: 14px;
  }

  .product-card {
    min-height: auto;
  }

  .product-image {
    height: 190px;
  }
}

.gallery-item[data-lightbox="assets/img/product-gimnastika-razboj.png"] {
  background: #ffffff;
}

.gallery-item[data-lightbox="assets/img/product-gimnastika-razboj.png"] img {
  object-fit: contain;
  padding: 10px;
}

/* Mobile header must stay dark even before scroll so the white logo remains readable. */
@media (max-width: 860px) {
  .site-header {
    background: rgba(8, 17, 31, .94) !important;
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 50px rgba(8, 17, 31, .18);
  }
}
