/*
  Siam Entrade plating site
  One stylesheet for every page. Order: tokens, base, layout, header, drawer, hero,
  home sections, page heading, content bands, buttons, catalog, sliders, FAQ,
  product page, contact, forms, footer, floating widgets, overlays, motion.

  Direction: a plating-line spec sheet. Hairline rules, square corners, one tri-colour
  rule (navy, red, cyan) taken from the logo, IBM Plex Sans Thai throughout.
*/

/* ---------- Tokens ---------- */

:root {
  --navy: #1f3867;
  --navy-deep: #0e1b36;
  --red: #e4234b;
  --red-text: #c8173f;
  --cyan: #29abe2;
  --cyan-light: #7fd3f5;
  --cyan-on-white: #16719e;

  --ink: #131c2e;
  --ink-soft: #3d485c;
  --on-dark: #d3dcec;
  --line: #d5d9e1;
  --line-strong: #8a94a8;
  --paper: #f4f5f7;
  --white: #fff;

  --glass-fill: rgba(255, 255, 255, 0.72);
  --glass-fill-strong: rgba(255, 255, 255, 0.8);
  --glass-edge: rgba(255, 255, 255, 0.85);
  --glass-gloss: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 46%);
  --glass-spec: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(255, 255, 255, 0.4), inset 0 0 26px rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
  --dark-fill: rgba(15, 30, 62, 0.92);
  --dark-edge: rgba(255, 255, 255, 0.22);
  --dark-gloss: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 40%);
  --dark-spec: inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 0 30px rgba(255, 255, 255, 0.05);
  --red-btn: #d61f47;

  --tri-rule: linear-gradient(90deg, var(--navy) 0 34%, var(--red) 34% 67%, var(--cyan) 67% 100%);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  --container: 1100px;
  --container-wide: 1240px;
  --gutter: 24px;
  --header-height: 60px;
  --header-gap: 12px;
  --header-space: calc(var(--header-height) + var(--header-gap) * 2);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-space) + 8px);
}

body {
  margin: 0;
  overflow-wrap: break-word;
  font-family: 'IBM Plex Sans Thai', 'Sukhumvit Set', 'Leelawadee UI', system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background: #eef1f6;
  overflow-x: hidden;
}

/* Atmosphere the glass refracts: a pre-blurred factory photo and soft brand-colour fields. */
body::before {
  content: '';
  position: fixed;
  inset: -25% -6%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42vmax 42vmax at 8% 8%, rgba(31, 56, 103, 0.2), transparent 70%),
    radial-gradient(36vmax 36vmax at 92% 40%, rgba(41, 171, 226, 0.26), transparent 70%),
    radial-gradient(30vmax 30vmax at 10% 90%, rgba(228, 35, 75, 0.13), transparent 70%),
    radial-gradient(38vmax 38vmax at 72% 102%, rgba(41, 171, 226, 0.16), transparent 70%),
    url('/assets/img/backgrounds/glass-backdrop.jpg') center / cover no-repeat,
    #eef1f6;
  transform: translate3d(0, calc(min(var(--scroll-y, 0), 4000) * -0.04px), 0);
  will-change: transform;
}

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

a {
  color: var(--navy);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--red-text);
}

.hero a:not(.btn):hover,
.standards a:not(.btn):hover,
.process a:not(.btn):hover,
.band--navy a:not(.btn):hover,
.contact-strip a:hover,
.site-footer a:not(.site-footer__logo):hover,
.page-heading a:hover,
.cookie-notice a:not(.btn):hover,
.drawer a:hover {
  color: var(--cyan-light);
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.6em;
  color: var(--navy-deep);
  text-wrap: balance;
}

p,
li {
  margin: 0 0 1em;
  text-wrap: pretty;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

::selection {
  background: var(--cyan);
  color: var(--navy-deep);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

:root {
  scrollbar-color: var(--navy) var(--paper);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--navy-deep);
  color: #fff;
}

.skip-link:focus,
.skip-link:hover {
  top: 12px;
  color: #fff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
  vertical-align: -0.125em;
}

.ta-center,
.ta-right {
  text-align: left;
}

body.has-overlay {
  overflow: hidden;
  overscroll-behavior: none;
}

html:has(body.has-overlay) {
  overflow: hidden;
}

/* Google's own banner and tooltips would push the page down and look foreign. */
.skiptranslate iframe,
iframe.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
#google_translate_element {
  display: none !important;
}

body {
  top: 0 !important;
  position: static !important;
}

font[style] {
  background: none !important;
  box-shadow: none !important;
}

/* ---------- Layout ---------- */

.container,
.container-wide {
  width: 100%;
  margin-inline: auto;
  padding-inline: 24px;
}

.container {
  max-width: calc(var(--container) + var(--gutter) * 2);
}

.container-wide {
  max-width: calc(var(--container-wide) + var(--gutter) * 2);
}

/* The tri-colour rule from the logo, used under headings and on edges. */
.title-underline {
  display: block;
  width: 72px;
  height: 4px;
  margin: 14px 0 0;
  background: var(--tri-rule);
}

/* ---------- Header ---------- */

/* Floating frosted glass: milky, translucent, blurred; solid where unsupported. */
.site-header {
  position: sticky;
  top: var(--header-gap);
  z-index: 60;
  width: min(calc(100% - 24px), calc(var(--container-wide) + 48px));
  margin: var(--header-gap) auto calc(var(--header-space) * -1 + var(--header-gap));
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 22px rgba(255, 255, 255, 0.35),
    0 10px 36px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header {
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(26px) saturate(185%);
    backdrop-filter: blur(26px) saturate(185%);
  }

  .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.8);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.site-header.is-scrolled {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 22px rgba(255, 255, 255, 0.35),
    0 14px 44px rgba(0, 0, 0, 0.26);
}

.site-header__inner {
  display: flex;
  align-items: stretch;
  gap: 24px;
  height: var(--header-height);
  padding-inline: 20px;
  max-width: none;
}

.site-header__logo {
  display: flex;
  align-items: center;
  flex: none;
}

.site-header__logo img {
  height: 38px;
  width: auto;
}

.main-nav {
  margin-left: auto;
  display: none;
}

.main-nav ul {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy-deep);
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--navy);
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.quote-cart,
.nav-toggle,
.lang-switcher__toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--navy-deep);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.quote-cart:hover,
.nav-toggle:hover,
.lang-switcher__toggle:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.quote-cart .icon,
.nav-toggle .icon {
  font-size: 1.1rem;
}

.quote-cart__count {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.quote-cart__count[hidden] {
  display: none;
}

.flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  flex: none;
}

.lang-switcher {
  position: relative;
}

.lang-switcher__toggle [data-lang-current] {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-caret {
  font-size: 0.7rem;
  transition: transform 0.25s var(--ease);
}

.lang-switcher.is-open .icon-caret {
  transform: rotate(180deg);
}

.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  width: 220px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--r-md);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.22));
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .lang-switcher__menu {
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
  }
}

.lang-switcher.is-open .lang-switcher__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--ink);
}

.lang-option:hover,
.lang-option:focus-visible {
  background: var(--paper);
  color: var(--navy);
}

.lang-option[aria-checked='true'] {
  font-weight: 700;
  color: var(--navy);
  background: #e3eef9;
}

.nav-toggle {
  padding: 0;
  width: 44px;
}

@media (min-width: 960px) {
  .main-nav {
    display: block;
  }

  .site-header__tools {
    margin-left: 12px;
  }

  .nav-toggle {
    display: none;
  }
}

@media (max-width: 420px) {
  .lang-switcher__toggle [data-lang-current] span:not(.flag) {
    display: none;
  }

  .lang-switcher__toggle [data-lang-current] > span {
    display: none;
  }
}

/* ---------- Mobile drawer ---------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
}

.drawer.is-open {
  visibility: visible;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 27, 54, 0.6);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.drawer.is-open .drawer__backdrop {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 12px;
  bottom: 12px;
  top: 12px;
  width: min(340px, 88vw);
  padding: 20px;
  overflow-y: auto;
  background: rgba(14, 27, 54, 0.97);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 20px 50px rgba(0, 0, 0, 0.4);
  transform: translateX(110%);
  transition: transform 0.4s var(--ease);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .drawer__panel {
    background: rgba(14, 27, 54, 0.8);
    -webkit-backdrop-filter: blur(28px) saturate(170%);
    backdrop-filter: blur(28px) saturate(170%);
  }
}

.drawer.is-open .drawer__panel {
  transform: none;
}

.drawer__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
}

.drawer__nav {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.drawer__nav a,
.drawer__nav .drawer__lang-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 15px 4px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: none;
  color: #fff;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
}

.drawer__nav a:hover {
  color: var(--cyan-light);
}

.drawer__nav a[aria-current='page'] {
  color: var(--cyan-light);
}

.drawer__langs {
  margin: 0;
  padding: 0 0 0 8px;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}

.drawer__langs > div {
  overflow: hidden;
}

.drawer__lang-group.is-open .drawer__langs {
  grid-template-rows: 1fr;
}

.drawer__langs .lang-option {
  color: #fff;
}

.drawer__langs .lang-option:hover,
.drawer__langs .lang-option[aria-checked='true'] {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 26px;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: #fff;
}

.btn--accent,
.btn--cookie-accept {
  background: var(--red);
  border-color: var(--red);
}

.btn--accent:hover,
.btn--cookie-accept:hover {
  background: var(--red-text);
  border-color: var(--red-text);
}

.btn--outline,
.btn--ghost {
  background: transparent;
  color: var(--navy);
}

.btn--outline:hover,
.btn--ghost:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.band--navy .btn--ghost,
.band--navy .btn--outline,
.process .btn--outline {
  border-color: #fff;
  color: #fff;
}

.band--navy .btn--ghost:hover,
.band--navy .btn--outline:hover,
.process .btn--outline:hover {
  background: #fff;
  border-color: #fff;
  color: var(--navy-deep);
}

.btn--light {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.btn--light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--navy-deep);
}

.btn--sm {
  min-height: 42px;
  padding: 8px 18px;
  font-size: 0.92rem;
}

.btn--square {
  min-width: 180px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 84vh, 780px);
  padding: 140px 0 96px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(14, 27, 54, 0.94) 0%, rgba(14, 27, 54, 0.82) 48%, rgba(14, 27, 54, 0.4) 100%),
    var(--hero-image) center / cover no-repeat,
    var(--navy-deep);
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: end;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 760px;
}

.hero__prose {
  display: contents;
}

.hero__copy > h1,
.hero__prose > * {
  animation: rise 0.9s var(--ease) both;
}

.hero__prose > h2:has(img) {
  order: -1;
  margin: 0 0 28px;
  animation-delay: 0s;
}

.hero__copy > h1 {
  order: 0;
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  animation-delay: 0.1s;
}

.hero__prose > h2:not(:has(img)) {
  order: 1;
  margin: 0 0 12px;
  color: var(--cyan-light);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 600;
  animation-delay: 0.2s;
}

.hero__prose > p {
  order: 2;
  max-width: 62ch;
  margin: 0;
  color: var(--on-dark);
  font-size: 1.05rem;
  animation-delay: 0.3s;
}

.hero__prose > p a {
  color: #fff;
  font-weight: 600;
}

.hero__prose > .button-row {
  order: 3;
  margin-top: 32px;
  animation-delay: 0.4s;
}

.hero__prose > h2 img {
  width: min(280px, 70%);
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero__creds {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__creds img {
  width: 84px;
  height: 84px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  object-fit: cover;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr auto;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Contact strip ---------- */

.contact-strip {
  background: var(--navy-deep);
  color: var(--on-dark);
}

.contact-strip__inner {
  display: grid;
}

.contact-strip__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.95rem;
}

.contact-strip__item .icon {
  margin-top: 0.3em;
  color: var(--cyan);
  font-size: 1.1rem;
}

.contact-strip a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.contact-strip a:hover {
  color: var(--cyan-light);
  text-decoration: underline;
}

.contact-strip .social-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
}

@media (min-width: 1000px) {
  .contact-strip__inner {
    grid-template-columns: auto 1fr 1.4fr auto;
    gap: 0;
  }

  .contact-strip__item,
  .contact-strip .social-links {
    padding: 22px 28px;
    border-bottom: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
  }

  .contact-strip__item:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #fff !important;
  font-size: 1.15rem;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.social-link--line:hover {
  background: #06c755;
  border-color: #06c755;
}

.social-link--facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}

/* On light backgrounds (contact page) the same buttons take the navy outline. */
.contact-list .social-link {
  border-color: var(--line-strong);
  color: var(--navy) !important;
}

.contact-list .social-link:hover {
  color: #fff !important;
}

/* ---------- Home: banner pair ---------- */

.banner-pair {
  padding: 56px 0 8px;
}

.banner-pair__grid {
  display: grid;
  gap: 20px;
}

.banner-pair__item {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--white);
}


.banner-pair__item img {
  width: 100%;
}

@media (min-width: 768px) {
  .banner-pair__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* ---------- Home: standards (navy) ---------- */

.standards {
  margin-top: 56px;
  padding: 96px 0;
  background: var(--navy);
  color: #fff;
}

.standards__grid {
  display: grid;
  gap: 48px;
  align-items: start;
}

.standards .prose > p:first-child {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.6;
}

.standards a:not(.btn) {
  color: #fff;
}

.standards__media img {
  width: 100%;
  outline: 1px solid rgba(255, 255, 255, 0.35);
  outline-offset: 12px;
}

@media (min-width: 960px) {
  .standards__grid {
    grid-template-columns: 7fr 5fr;
    gap: 72px;
  }

  .standards__media {
    position: sticky;
    top: calc(var(--header-height) + 32px);
  }
}

/* ---------- Home: services (numbered rows) ---------- */

.services {
  padding: 88px 0 24px;
  background: var(--white);
}

.services__list {
  counter-reset: service;
}

.service-row:last-child {
  border-bottom: 1px solid var(--line);
}

.service-row {
  counter-increment: service;
  display: grid;
  gap: 16px 32px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.service-row::before {
  content: counter(service, decimal-leading-zero);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--red);
}

.service-row h3 {
  margin-bottom: 0.4em;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
}

.service-row p {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-soft);
}

.service-row__photo {
  overflow: hidden;
}

.service-row__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.service-row:hover .service-row__photo img {
  transform: scale(1.04);
}

@media (min-width: 900px) {
  .service-row {
    grid-template-columns: 140px 1fr 280px;
    align-items: center;
    padding: 40px 0;
  }
}

/* ---------- Home: looking-for text ---------- */

.looking {
  padding: 88px 0;
  background: var(--white);
}

.looking .prose {
  max-width: none;
  display: grid;
  gap: 0 72px;
  align-items: start;
}

.looking .is-lead {
  display: block;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy-deep);
}

.looking .prose > p:first-child {
  margin-bottom: 20px;
}

.looking .prose > p:first-child::after {
  content: '';
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 18px;
  background: var(--tri-rule);
}

@media (min-width: 900px) {
  .looking .prose {
    grid-template-columns: 5fr 6fr;
  }

  .looking .prose > p:first-child,
  .looking .prose > p:nth-child(2),
  .looking .prose > .button-row {
    grid-column: 1;
  }

  .looking .prose > ul {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin-top: 0;
  }
}

/* ---------- Home: process ---------- */

.process {
  padding: 96px 0;
  background: var(--navy-deep);
  color: #fff;
}

.process__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.process__media img {
  width: 100%;
  outline: 1px solid rgba(255, 255, 255, 0.3);
  outline-offset: 12px;
}

.process h2 {
  margin-bottom: 36px;
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.process h2::after {
  content: '';
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 14px;
  background: var(--cyan);
}

.process__steps {
  --progress: 0;
  position: relative;
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process__steps::before,
.process__steps::after {
  content: '';
  position: absolute;
  z-index: 0;
  left: 21px;
  top: 22px;
  width: 2px;
  height: calc(100% - 44px);
  background: rgba(255, 255, 255, 0.22);
}

.process__steps::after {
  background: var(--cyan);
  transform-origin: top;
  transform: scaleY(var(--progress));
}

.process__step {
  counter-increment: step;
  position: relative;
  z-index: 1;
  padding: 0 0 36px 76px;
}

.process__step:last-child {
  padding-bottom: 0;
}

.process__step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--cyan);
  background: var(--navy-deep);
  color: #fff;
  font-weight: 700;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

.process__step.is-reached::before {
  background: var(--cyan);
  color: var(--navy-deep);
}

.process__step h3 {
  margin: 0 0 4px;
  padding-top: 6px;
  color: #fff;
  font-size: 1.3rem;
}

.process__step p {
  margin: 0;
  max-width: 48ch;
  color: var(--on-dark);
}

@media (min-width: 960px) {
  .process__grid {
    grid-template-columns: 5fr 6fr;
    gap: 80px;
  }
}

/* ---------- Home: panorama and block titles ---------- */

.panorama {
  background: var(--white);
}

.panorama img {
  width: 100%;
  max-height: 480px;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center 40%;
}

.block-title {
  margin-bottom: 32px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.block-title::after {
  content: '';
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 14px;
  background: var(--tri-rule);
}

.catalog-block .block-title,
.slider-block .block-title {
  margin-top: 0;
}

/* ---------- Page heading bar (inner pages) ---------- */

.page-heading {
  position: relative;
  padding: 116px 0 36px;
  background: var(--navy);
  color: #fff;
}

.page-heading__bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--cyan-light);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb [aria-current='page'] {
  color: #fff;
  font-weight: 600;
}

.breadcrumb__sep {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.65rem;
}

.page-heading__site {
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 600;
}

.page-heading--home {
  padding: 148px 24px 64px;
  text-align: center;
}

.page-heading--home h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

.page-heading--home .title-underline {
  margin-inline: auto;
}

/* ---------- Content bands (generic pages) ---------- */

.band {
  position: relative;
  padding: 96px 0;
  background: var(--white);
  color: var(--band-fg, var(--ink));
}

.band:nth-of-type(even):not(.band--navy):not(.band--image) {
  background: var(--paper);
}

.band--navy {
  background: var(--navy);
  color: #fff;
}

.band--navy h1,
.band--navy h2,
.band--navy h3,
.band--navy h4 {
  color: #fff;
}

.band--navy a:not(.btn) {
  color: #fff;
}

.band--image {
  background: var(--band-image) center / cover no-repeat, var(--paper);
  color: var(--band-fg, var(--ink));
}

.band--image h1,
.band--image h2,
.band--image h3 {
  color: var(--band-fg, var(--navy-deep));
}

.band__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.band__title {
  position: relative;
  max-width: calc(var(--container-wide) + var(--gutter) * 2);
  margin: 0 auto 40px;
  padding-inline: var(--gutter);
}

.band__title h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
}

.band__grid {
  position: relative;
  display: grid;
  gap: 40px;
  width: 100%;
  max-width: calc(var(--container-wide) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}

.band__col {
  min-width: 0;
}

.band__col--media img {
  width: 100%;
  border: 1px solid var(--line);
}

.band--navy .band__col--media img {
  border-color: rgba(255, 255, 255, 0.3);
}

@media (min-width: 900px) {
  .band__grid--2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
  }

  .band__grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.section-heading h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

/* Rich text from the site owner's editor. */
.prose {
  max-width: 54ch;
  overflow-wrap: break-word;
}

.band__grid--1 .prose,
.band__grid--1 .band__col--text {
  max-width: 600px;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h2 {
  margin-top: 1.4em;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.prose h3 {
  margin-top: 1.4em;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.prose h4 {
  margin-top: 1.2em;
  font-size: 1.1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
}

.prose ol {
  counter-reset: item;
}

.prose li {
  position: relative;
  padding: 12px 0 12px 32px;
  border-top: 1px solid var(--line);
}

.prose li:last-child {
  border-bottom: 1px solid var(--line);
}

.prose li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 1.35em;
  width: 10px;
  height: 10px;
  background: var(--red);
}

.prose ol li::before {
  counter-increment: item;
  content: counter(item);
  top: 12px;
  width: auto;
  height: auto;
  background: none;
  color: var(--red-text);
  font-weight: 700;
}

.band--navy .prose li,
.standards .prose li,
.band--navy .prose li:last-child {
  border-color: rgba(255, 255, 255, 0.22);
}

.band--navy .prose li::before,
.standards .prose li::before {
  background: var(--cyan);
}

.band--navy .prose ol li::before {
  background: none;
  color: var(--cyan-light);
}

.band--navy + .band--navy {
  padding-top: 0;
}

.prose strong,
.prose b {
  font-weight: 700;
}

.prose a {
  font-weight: 500;
}

.prose img {
  display: inline-block;
}

.prose .is-crimson {
  color: var(--red-text);
}

.band--navy .is-crimson,
.standards .is-crimson {
  color: #ff9db3;
}

.prose .is-lead {
  font-size: 1.2em;
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.5em;
}

.prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--navy);
  color: #fff;
}

.band--navy .prose th {
  background: var(--navy-deep);
}

/* ---------- Catalog: tools, grid, cards ---------- */

.catalog-block {
  padding: 40px 0 72px;
}

.catalog-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.catalog-search {
  display: flex;
  flex: 1 1 260px;
  max-width: 460px;
}

.catalog-search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-right: 0;
  background: var(--white);
  font: inherit;
  color: var(--ink);
}

.catalog-search button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 44px;
  border: 0;
  background: var(--navy);
  color: #fff;
}

.catalog-search button:hover {
  background: var(--red);
}

.catalog-tools .btn {
  min-height: 44px;
}

.layout-switch {
  display: flex;
  margin-left: auto;
  border: 1px solid var(--line-strong);
}

.layout-switch button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 42px;
  border: 0;
  background: var(--white);
  color: var(--navy);
}

.layout-switch button[aria-pressed='true'] {
  background: var(--navy);
  color: #fff;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 215px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.catalog-grid > li[hidden] {
  display: none;
}

.catalog-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--ink-soft);
}

.product-card {
  position: relative;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.25s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.product-card::before {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 4px;
  background: var(--tri-rule);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
  z-index: 1;
}

.product-card:hover,
.product-card:focus-within {
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-card:hover::before,
.product-card:focus-within::before {
  transform: scaleX(1);
}

.product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.product-card__thumb {
  overflow: hidden;
  background: #e8eaee;
}

.product-card__thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.product-card:hover .product-card__thumb img {
  transform: scale(1.05);
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 16px 14px;
}

.product-card__category {
  margin: 0 0 6px;
  color: var(--red-text);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}

.product-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 4px;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--navy-deep);
}

.product-card__brand {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.product-card__description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

.product-card__tag {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ink-soft);
}

.product-card__tag span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__more {
  flex: none;
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

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

.catalog-grid.is-list .product-card__link {
  flex-direction: row;
}

.catalog-grid.is-list .product-card__thumb {
  flex: 0 0 clamp(120px, 28%, 260px);
}

.catalog-grid.is-list .product-card__thumb img {
  height: 100%;
}

.catalog-grid.is-list .product-card__description {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}

.pager button {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
}

.pager button[aria-current='page'] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.pager button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Keyword cloud */

.tag-cloud-block {
  padding: 64px 0;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-cloud a {
  display: block;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--navy-deep);
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.tag-cloud a:hover,
.tag-cloud a[aria-current='page'] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ---------- Sliders (gallery, related products) ---------- */

.slider-block {
  padding: 72px 0;
}

.slider {
  --per-view: 1;
  position: relative;
}

.slider__viewport {
  overflow: hidden;
}

.slider__track {
  display: flex;
  gap: 16px;
  transition: transform 0.8s var(--ease);
  will-change: transform;
  touch-action: pan-y;
}

.slider__slide {
  flex: 0 0 calc((100% - 16px * (var(--per-view) - 1)) / var(--per-view));
  min-width: 0;
}

@media (min-width: 576px) {
  .slider {
    --per-view: 2;
  }
}

@media (min-width: 992px) {
  .slider {
    --per-view: 4;
  }
}

.slider__arrow {
  position: absolute;
  top: calc(50% - 28px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 56px;
  border: 0;
  background: var(--navy-deep);
  color: #fff;
  transition: background 0.2s var(--ease);
}

.slider__arrow:hover {
  background: var(--red);
}

.slider__arrow--prev {
  left: 0;
}

.slider__arrow--next {
  right: 0;
}

.slider__dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 20px;
}

.slider-dot {
  position: relative;
  width: 36px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
}

.slider-dot::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  top: 10px;
  height: 4px;
  background: var(--line-strong);
  transition: background 0.2s var(--ease);
}

.slider-dot.is-active::after {
  background: var(--red);
}

.gallery-slide {
  position: relative;
  display: block;
  background: var(--navy-deep);
  color: #fff;
  text-decoration: none;
}

.gallery-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: opacity 0.3s var(--ease);
}

.gallery-slide:hover img {
  opacity: 0.85;
}

.gallery-slide__zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--navy-deep);
  color: #fff;
}

.gallery-slide__caption {
  display: block;
  padding: 12px 14px;
  border-top: 4px solid var(--cyan);
  font-size: 0.92rem;
  font-weight: 600;
}

.related-products .slider__slide > [data-product] {
  height: 100%;
}

/* ---------- FAQ ---------- */

.faq__title {
  margin-bottom: 20px;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
}

.faq__item {
  border-top: 1px solid var(--line-strong);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 18px 0;
  border: 0;
  background: none;
  text-align: left;
  font-weight: 600;
  color: inherit;
}

.faq__sign {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
}

.faq__sign::before,
.faq__sign::after {
  content: '';
  position: absolute;
  left: 7px;
  right: 7px;
  top: 13px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.faq__sign::after {
  transform: rotate(90deg);
}

.faq__item.is-open .faq__sign::after {
  transform: none;
}

.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.faq__answer > div {
  overflow: hidden;
}

.faq__item.is-open .faq__answer {
  grid-template-rows: 1fr;
}

.faq__answer-text {
  margin: 0;
  padding: 0 0 20px;
}

/* ---------- Product page ---------- */

.product-page {
  padding: clamp(32px, 5vw, 64px) 0;
}

.panel {
  margin-bottom: 24px;
  padding: clamp(20px, 3vw, 36px);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
}

.panel__title,
.panel .section-heading h3 {
  margin: 0 0 24px;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
}

.panel__title .title-underline {
  margin-top: 12px;
}

.product-summary {
  display: grid;
  align-items: start;
  gap: 32px;
}

.product-summary__image {
  display: block;
  border: 1px solid var(--line);
}

.product-summary__image img {
  width: 100%;
}

.product-summary h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.25;
}

@media (min-width: 900px) {
  .product-summary {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
  }
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.product-meta--inline {
  padding-top: 0;
}

.product-meta__label {
  flex: 0 0 100%;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.product-meta--inline .product-meta__label {
  flex: none;
  margin-right: 4px;
}

.chip {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  color: var(--navy-deep);
  font-size: 0.88rem;
  text-decoration: none;
}

.chip:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 20px;
}

.product-actions .btn:last-child {
  background: var(--red);
  border-color: var(--red);
}

.product-actions .btn:last-child:hover {
  background: var(--red-text);
  border-color: var(--red-text);
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  color: var(--navy);
  font-size: 1rem;
}

.share-button:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ---------- Contact page ---------- */

.contact-page {
  padding: 72px 0;
}

.contact-page__grid {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-page__grid {
    grid-template-columns: 5fr 6fr;
    gap: 64px;
  }
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list li:first-child {
  border-top: 1px solid var(--line);
}

.contact-list > li > .icon {
  width: 40px;
  height: 40px;
  padding: 11px;
  background: var(--navy);
  color: #fff;
}

.contact-list .social-links {
  margin-top: 0;
}

.contact-page .button-row {
  margin-top: 28px;
}

.map-frame {
  border: 1px solid var(--line-strong);
  border-bottom: 4px solid var(--red);
  background: var(--white);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 50vw, 460px);
  border: 0;
}

.map-actions {
  margin-top: 16px;
}

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }

  .form-field--full {
    grid-column: 1 / -1;
  }
}

.form-field label,
.form-field legend {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

.required {
  color: var(--red-text);
}

.form-control {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-control:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--cyan);
}

.form-control[aria-invalid='true'] {
  border-color: var(--red-text);
}

.form-error {
  margin: 6px 0 0;
  color: var(--red-text);
  font-size: 0.88rem;
  font-weight: 500;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.form-status {
  margin: 20px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--cyan-on-white);
  border-left-width: 1px;
  background: #e8f4fb;
  color: var(--navy-deep);
}

.form-status.is-error {
  border-color: var(--red-text);
  background: #fdeaee;
  color: #7d0f27;
}

.form-status[hidden] {
  display: none;
}

.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
}

.policy-title {
  margin-bottom: 24px;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

.policy {
  max-width: 56ch;
}

/* RFQ */

.rfq-title {
  margin: 28px 0 20px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.rfq-steps {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rfq-steps__item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  font-size: 0.85rem;
  text-align: center;
  color: var(--ink-soft);
}

.rfq-steps__item::before {
  content: '';
  position: absolute;
  top: 22px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--line-strong);
  z-index: 0;
}

.rfq-steps__item:first-child::before {
  display: none;
}

.rfq-steps__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--line-strong);
  background: var(--white);
  font-weight: 700;
}

.rfq-steps__item.is-active {
  color: var(--navy-deep);
  font-weight: 600;
}

.rfq-steps__item.is-active .rfq-steps__dot {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.rfq-steps__item.is-active::before {
  background: var(--navy);
}

.rfq-empty {
  padding: 32px;
  border: 1px dashed var(--line-strong);
  background: var(--white);
  text-align: center;
}

.rfq-empty[hidden],
[data-rfq-list][hidden] {
  display: none;
}

.quote-table {
  width: 100%;
  margin-bottom: 24px;
  border-collapse: collapse;
  background: var(--white);
}

.quote-table th,
.quote-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.quote-table thead th {
  background: var(--navy);
  color: #fff;
}

.quote-table img {
  width: 64px;
  height: 48px;
  object-fit: cover;
}

.quote-table__remove {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--red-text);
}

.quote-table__remove:hover {
  background: var(--red-text);
  border-color: var(--red-text);
  color: #fff;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  background: var(--navy-deep);
  color: var(--on-dark);
}

.site-footer a {
  color: #fff;
}

.site-footer a:not(.site-footer__logo):hover {
  color: var(--cyan-light);
}

.site-footer__main {
  display: grid;
  gap: 32px;
  padding-block: 56px;
}

.site-footer__logo {
  display: inline-block;
  padding: 10px 14px;
  background: #fff;
}

.site-footer__logo img {
  height: 34px;
  width: auto;
}

.site-footer__name {
  margin: 20px 0 16px;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.5;
  max-width: 28ch;
}

.site-footer__col p {
  margin-bottom: 12px;
}

@media (min-width: 900px) {
  .site-footer__main {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 64px;
  }
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: #09122a;
  font-size: 0.88rem;
}

.site-footer__bottom {
  padding: 20px 0;
}

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__credit {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer__credit a {
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.site-footer__credit a:hover,
.site-footer__credit a:focus-visible {
  opacity: 1;
}

.site-footer__credit img {
  display: block;
  width: auto;
  height: 18px;
}

.site-footer__policies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
}

/* ---------- Floating widgets ---------- */

.contact-dock {
  position: fixed;
  left: 0;
  top: 50%;
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: translateY(-50%);
}

.dock-group {
  position: relative;
}

.dock-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  background: var(--navy-deep);
  color: #fff;
  font-size: 1.15rem;
  transition: background 0.2s var(--ease);
}

.dock-button:hover,
.dock-group.is-open .dock-button {
  background: var(--red);
}

.dock-menu {
  position: absolute;
  left: 100%;
  top: 0;
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: opacity 0.2s var(--ease), transform 0.25s var(--ease), visibility 0.2s;
}

.dock-group.is-open .dock-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dock-menu a,
.dock-menu button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  background: var(--navy);
  color: #fff;
  font-size: 1.15rem;
}

.dock-menu a:hover,
.dock-menu button:hover {
  background: var(--cyan);
  color: var(--navy-deep);
}

.dock-menu .is-line {
  background: #058a3b;
}

.dock-menu .is-facebook {
  background: #1565c0;
}

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 55;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  background: var(--red);
  color: #fff;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background 0.2s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: var(--navy-deep);
}

/* ---------- Cookie notice ---------- */

.cookie-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 18px max(var(--gutter), calc((100vw - var(--container-wide)) / 2));
  background: var(--navy-deep);
  border-top: 4px solid var(--cyan);
  color: #fff;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
  animation: rise 0.6s var(--ease) both;
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice.is-leaving {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.cookie-notice__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--cyan-light);
  font-size: 1.3rem;
}

.cookie-notice__text {
  flex: 1 1 320px;
}

.cookie-notice__text p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--on-dark);
}

.cookie-notice__text a {
  color: #fff;
}

.cookie-notice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-notice .btn--outline {
  border-color: #fff;
  color: #fff;
}

.cookie-notice .btn--outline:hover {
  background: #fff;
  color: var(--navy-deep);
}

/* ---------- Modal and lightbox ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(14, 27, 54, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: var(--white);
  border-top: 4px solid var(--red);
  box-shadow: var(--shadow);
  transform: translateY(16px);
  transition: transform 0.4s var(--ease);
}

.modal.is-open .modal__dialog {
  transform: none;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.modal__header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.modal__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--navy-deep);
}

.modal__close:hover {
  background: var(--navy);
  color: #fff;
}

.modal__body {
  padding: 24px;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
}

.modal__body .form-actions {
  justify-content: flex-start;
}

.rfq-modal__grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 560px) {
  .rfq-modal__grid {
    grid-template-columns: 1fr 2fr;
  }
}

.cookie-pref {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cookie-pref:last-child {
  border-bottom: 0;
}

.cookie-pref__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-pref p {
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.switch {
  position: relative;
  flex: none;
  width: 48px;
  height: 26px;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.switch span {
  position: absolute;
  inset: 0;
  background: #6c7689;
  transition: background 0.2s var(--ease);
  pointer-events: none;
}

.switch span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  transition: transform 0.25s var(--ease);
}

.switch input:checked + span {
  background: var(--navy);
}

.switch input:checked + span::after {
  transform: translateX(22px);
}

.switch input:disabled + span {
  opacity: 0.6;
}

.switch input:focus-visible + span {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 56px 16px 16px;
  background: rgba(9, 18, 42, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__figure {
  display: grid;
  place-items: center;
  min-height: 0;
  margin: 0;
}

.lightbox__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.3s var(--ease);
}

.lightbox__image.is-loading {
  opacity: 0.3;
}

.lightbox__caption {
  padding: 16px 0 0;
  color: #fff;
  text-align: center;
}

.lightbox__subcaption {
  display: block;
  color: var(--on-dark);
}

.lightbox__counter {
  margin-left: 12px;
  color: var(--on-dark);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(14, 27, 54, 0.6);
  color: #fff;
  font-size: 1.1rem;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--red);
  border-color: var(--red);
}

.lightbox__close {
  top: 8px;
  right: 8px;
}

.lightbox__nav--prev {
  left: 8px;
  top: 50%;
}

.lightbox__nav--next {
  right: 8px;
  top: 50%;
}

.lightbox__nav[hidden] {
  display: none;
}

/* ---------- Motion ---------- */

.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

@media (min-width: 900px) {
  .js-motion [data-reveal='left'] {
    transform: translateX(-32px);
  }

  .js-motion [data-reveal='right'] {
    transform: translateX(32px);
  }
}

.js-motion [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js-motion [data-reveal] {
    opacity: 1;
    transform: none;
  }
}


/* ---------- Shape: rounded corners ---------- */

.drawer__lang-toggle [data-lang-current] {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* Radius scale: --r-sm inputs and small chips, --r-md cards and panels,
   --r-lg photos and large surfaces, --r-pill buttons and tags. */

.skip-link {
  border-radius: var(--r-sm);
}

.btn,
.catalog-tools .btn {
  border-radius: var(--r-pill);
}

.quote-cart,
.nav-toggle,
.lang-switcher__toggle {
  border-radius: var(--r-pill);
}

.quote-cart__count {
  border-radius: var(--r-pill);
}

.flag {
  border-radius: 3px;
}

.lang-option {
  border-radius: var(--r-sm);
}

.drawer__close,
.social-link,
.share-button,
.modal__close,
.lightbox__close,
.lightbox__nav,
.slider__arrow,
.back-to-top,
.faq__sign,
.rfq-steps__dot,
.process__step::before,
.quote-table__remove,
.gallery-slide__zoom {
  border-radius: 50%;
}

.slider__arrow {
  height: 48px;
  width: 48px;
  top: calc(50% - 24px);
}

.slider__arrow--prev {
  left: 8px;
}

.slider__arrow--next {
  right: 8px;
}

.drawer__nav a,
.drawer__nav .drawer__lang-toggle {
  border-radius: var(--r-sm);
}

.hero__creds img,
.hero__prose > h2 img {
  border-radius: var(--r-md);
}

.contact-strip {
  border-radius: 0;
}

.banner-pair__item,
.service-row__photo,
.standards__media img,
.process__media img,
.band__col--media img,
.panorama img,
.product-summary__image,
.map-frame,
.gallery-slide,
.panel,
.rfq-empty,
.product-card {
  border-radius: var(--r-lg);
  overflow: hidden;
}

.standards__media img,
.process__media img {
  overflow: visible;
}

.panorama {
  padding: 0 var(--gutter);
}

.panorama img {
  max-width: var(--container-wide);
  margin-inline: auto;
}

.product-card {
  border-radius: var(--r-md);
}

.product-card::before {
  display: none;
}

.product-card:hover,
.product-card:focus-within {
  border-color: var(--cyan-on-white);
}

.gallery-slide__caption {
  border-top: 0;
  background: var(--navy-deep);
}

.panel,
.modal__dialog,
.map-frame {
  border-top-width: 1px;
}


.modal__dialog {
  border-radius: 26px;
  border-top: 0;
  box-shadow: var(--shadow);
}

.map-frame {
  border-bottom-width: 1px;
}

.catalog-search {
  border-radius: var(--r-pill);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--white);
}

.catalog-search input {
  border: 0;
  padding-left: 20px;
}

.catalog-search input:focus-visible {
  outline-offset: -3px;
}

.catalog-search button {
  width: 52px;
}

.layout-switch {
  border-radius: var(--r-pill);
  overflow: hidden;
}

.pager button {
  border-radius: var(--r-pill);
}

.tag-cloud a,
.chip {
  border-radius: var(--r-pill);
}

.form-control {
  border-radius: var(--r-sm);
}

.form-status {
  border-radius: var(--r-md);
}

.contact-list > li > .icon {
  border-radius: var(--r-sm);
}

.site-footer__logo {
  border-radius: var(--r-sm);
}

.site-footer__bottom {
  border-radius: 0;
}

.dock-button,
.dock-menu a,
.dock-menu button {
  border-radius: 0;
}

.contact-dock {
  border-radius: 0 var(--r-md) var(--r-md) 0;
  overflow: hidden;
}

.dock-menu {
  border-radius: 0 var(--r-md) var(--r-md) 0;
  overflow: hidden;
}

.cookie-notice {
  inset-inline: max(16px, calc((100vw - var(--container-wide)) / 2));
  bottom: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 16px 44px rgba(0, 0, 0, 0.4);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .cookie-notice {
    background: rgba(14, 27, 54, 0.86);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
  }
}

.cookie-notice__icon {
  border-radius: var(--r-sm);
}

.switch,
.switch span {
  border-radius: var(--r-pill);
}

.switch span::after {
  border-radius: 50%;
}

.quote-table img {
  border-radius: 8px;
}

.quote-table {
  border-radius: var(--r-md);
  overflow: hidden;
}

.prose table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.prose th,
.prose td {
  border-width: 0 1px 1px 0;
}

.prose li::before {
  border-radius: 3px;
}

.title-underline,
.block-title::after,
.process h2::after,
.looking .prose > p:first-child::after {
  border-radius: var(--r-pill);
}

.faq__sign {
  border-radius: 50%;
}

.lightbox__image {
  border-radius: var(--r-md);
}

@media (min-width: 900px) {
  .lang-switcher__menu {
    border-radius: var(--r-md);
  }
}

@media (max-width: 767px) {
  .contact-dock {
    border-radius: var(--r-md);
  }

  .dock-menu {
    border-radius: var(--r-md);
  }

  .site-header {
    width: calc(100% - 16px);
  }

  .site-header__inner {
    padding-inline: 12px;
    gap: 8px;
  }

  .cookie-notice {
    inset-inline: 8px;
    bottom: 8px;
  }
}


/* ---------- Liquid Glass ---------- */

/* Light glass: translucent fill, thin light edge, specular top highlight, soft shadow.
   Repeated cards fake the frost (fill over the blurred backdrop); only a few large
   surfaces use backdrop-filter. */

.service-row,
.product-card,
.panel,
.looking__inner,
.banner-pair__item,
.gallery-slide,
.rfq-empty,
.map-frame,
.catalog-search,
.layout-switch,
.tag-cloud a,
.chip,
.pager button,
.band:not(.band--navy):not(.band--image) .band__col--text,
.contact-page__grid > div:first-child {
  background-color: var(--glass-fill);
  background-image: var(--glass-gloss);
  background-size: 100% 220%;
  background-position: 0 0;
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-spec), var(--glass-shadow);
  transition: background-position 0.7s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s var(--ease);
}

.service-row:hover,
.product-card:hover,
.product-card:focus-within,
.gallery-slide:hover {
  background-position: 0 60%;
  transform: translateY(-3px);
  border-color: #fff;
}

.band:not(.band--navy):not(.band--image) .band__col--text,
.contact-page__grid > div:first-child,
.looking__inner {
  padding: 40px;
  border-radius: var(--r-lg);
}

/* Large dark glass slabs floating over the backdrop. */
.hero,
.contact-strip,
.standards,
.process,
.band--navy,
.page-heading,
.site-footer {
  margin-inline: 12px;
  border: 1px solid var(--dark-edge);
  border-radius: 32px;
  box-shadow: var(--dark-spec), 0 20px 50px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.contact-strip,
.standards,
.process,
.band--navy,
.page-heading,
.site-footer {
  background-color: var(--dark-fill);
  background-image: var(--dark-gloss);
}

.hero {
  margin-top: 12px;
}

.hero,
.page-heading {
  margin-top: 12px;
}

.contact-strip {
  margin-top: 16px;
  border-radius: var(--r-lg);
}

.standards,
.process,
.band--navy {
  width: min(calc(100% - 24px), 1296px);
  margin: 20px auto;
}

.band--image {
  width: min(calc(100% - 24px), 1296px);
  margin: 20px auto;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-spec), var(--glass-shadow);
}

.band--navy + .band--navy {
  padding-top: 96px;
}

.site-footer {
  margin-top: 40px;
  margin-bottom: 12px;
}


/* Sections that sat on solid white now let the backdrop through. */
.services,
.looking,
.panorama,
.tag-cloud-block,
.slider-block,
.catalog-block,
.band,
.band:nth-of-type(even):not(.band--navy):not(.band--image),
.banner-pair,
.contact-page,
.product-page {
  background: transparent;
}

.band--image {
  background: var(--band-image) center / cover no-repeat, #f4f6fa;
}

.band--navy {
  background-color: var(--dark-fill);
}

.tag-cloud-block {
  border-top: 0;
}

.services {
  padding-top: 64px;
}

.service-row {
  margin-bottom: 16px;
  padding: 24px;
  border-radius: var(--r-lg);
  gap: 16px 28px;
}

.service-row:last-child {
  border-bottom: 1px solid var(--glass-edge);
}

.service-row__photo {
  border-radius: var(--r-md);
}

.banner-pair__item {
  padding: 8px;
  border-radius: var(--r-lg);
}

.banner-pair__item img {
  border-radius: var(--r-md);
}

.hero__creds {
  padding: 10px;
  border: 1px solid var(--dark-edge);
  border-radius: var(--r-lg);
  background-color: rgba(17, 33, 68, 0.55);
  background-image: var(--dark-gloss);
  box-shadow: var(--dark-spec);
}

.hero__creds img {
  border: 0;
  border-radius: var(--r-sm);
}

.standards__media img {
  outline: 0;
  border: 8px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
}

/* The collage PNG has an opaque navy strip along its left edge and top-left corner;
   crop it away inside the frame so only the photos show. */
.process__media {
  position: relative;
  aspect-ratio: 736 / 558;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
}

.process__media img {
  position: absolute;
  top: -7.5%;
  left: -8.7%;
  width: 108.7%;
  max-width: none;
  height: auto;
  border: 0;
  outline: 0;
}

.standards .prose li,
.process__step {
  border-color: rgba(255, 255, 255, 0.2);
}

.process__step::before {
  background: #1d2f58;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.process__step.is-reached::before {
  background: var(--cyan);
}

.product-card {
  border-radius: var(--r-md);
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.84);
}

.product-card__description,
.product-card__brand,
.product-card__tag {
  color: #323c4f;
}

.product-card__thumb {
  margin: 8px 8px 0;
  border-radius: 12px;
}

.product-card__footer {
  border-top-color: rgba(31, 56, 103, 0.14);
}

.product-card:hover,
.product-card:focus-within {
  box-shadow: var(--glass-spec), 0 18px 40px rgba(0, 0, 0, 0.16);
}

.gallery-slide {
  padding: 8px;
  border-radius: var(--r-lg);
  color: var(--navy-deep);
}

.gallery-slide img {
  border-radius: var(--r-md);
}

.gallery-slide__caption {
  padding: 12px 8px 6px;
  background: transparent;
  color: var(--navy-deep);
}

.gallery-slide__zoom {
  top: 18px;
  right: 18px;
  background: rgba(17, 33, 68, 0.7);
}

.panel {
  border-radius: var(--r-lg);
  overflow: visible;
}

.map-frame {
  padding: 8px;
  border-radius: var(--r-lg);
}

.map-frame iframe {
  border-radius: var(--r-md);
}

.tag-cloud a,
.chip,
.pager button {
  background-image: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.tag-cloud a:hover,
.tag-cloud a[aria-current='page'],
.chip:hover,
.pager button[aria-current='page'] {
  background-color: var(--navy);
}

.catalog-search,
.layout-switch {
  background-color: rgba(255, 255, 255, 0.7);
}

.faq__item,
.faq__item:last-child {
  border-color: rgba(31, 56, 103, 0.22);
}

.band--navy .faq__item,
.band--navy .faq__item:last-child {
  border-color: rgba(255, 255, 255, 0.28);
}

.form-control {
  background-color: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.quote-table {
  background: rgba(255, 255, 255, 0.7);
}

.contact-list > li {
  border-color: rgba(31, 56, 103, 0.14);
}

.prose li,
.prose li:last-child {
  border-color: rgba(31, 56, 103, 0.16);
}

.standards .prose li,
.band--navy .prose li,
.band--navy .prose li:last-child {
  border-color: rgba(255, 255, 255, 0.22);
}

.band__col--media img {
  border: 6px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--glass-shadow);
}

.band--navy .band__col--media img {
  border-color: rgba(255, 255, 255, 0.16);
}

.panorama img {
  border: 6px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--glass-shadow);
}

/* No glass inside glass: chips in a panel are plain outlines. */
.panel .chip {
  background-color: transparent;
  box-shadow: none;
  border-color: rgba(31, 56, 103, 0.3);
}

.panel .chip:hover {
  background-color: var(--navy);
}

/* Glossy glass buttons */

.btn {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background-color: rgba(31, 56, 103, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 14px 14px -12px rgba(255, 255, 255, 0.35), 0 6px 16px rgba(0, 0, 0, 0.16);
}

.btn:hover {
  background-color: var(--navy-deep);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.btn--accent,
.btn--cookie-accept,
.product-actions .btn:last-child {
  border-color: rgba(255, 255, 255, 0.45);
  background-color: var(--red-btn);
}

.btn--accent:hover,
.btn--cookie-accept:hover,
.product-actions .btn:last-child:hover {
  background-color: #b9173b;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--outline,
.btn--ghost {
  border-color: rgba(31, 56, 103, 0.35);
  background-color: rgba(255, 255, 255, 0.55);
  color: var(--navy);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn--outline:hover,
.btn--ghost:hover {
  background-color: var(--navy);
  color: #fff;
}

.btn--light,
.band--navy .btn--ghost,
.band--navy .btn--outline,
.process .btn--outline,
.cookie-notice .btn--outline {
  border-color: rgba(255, 255, 255, 0.55);
  background-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn--light:hover,
.band--navy .btn--ghost:hover,
.band--navy .btn--outline:hover,
.process .btn--outline:hover,
.cookie-notice .btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--navy-deep);
}

/* Floating controls: small, few, so they get the real blur */

.dock-button,
.dock-menu a,
.dock-menu button,
.back-to-top,
.slider__arrow {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background-color: rgba(17, 33, 68, 0.88);
  background-image: var(--dark-gloss);
  box-shadow: var(--dark-spec), 0 8px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top {
  background-color: rgba(214, 31, 71, 0.94);
}

.contact-dock {
  left: 8px;
  gap: 6px;
  overflow: visible;
  border-radius: 0;
}

.dock-button,
.dock-menu a,
.dock-menu button {
  border-radius: 50%;
}

.dock-menu {
  left: calc(100% + 6px);
  gap: 6px;
  overflow: visible;
  border-radius: 0;
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .dock-button,
  .dock-menu a,
  .dock-menu button,
  .back-to-top,
  .slider__arrow {
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
  }

  .dock-button,
  .dock-menu a,
  .dock-menu button,
  .slider__arrow {
    background-color: rgba(17, 33, 68, 0.7);
  }

  .modal {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .modal .modal__dialog {
    background-color: rgba(255, 255, 255, 0.84);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    backdrop-filter: blur(30px) saturate(180%);
  }

  .lightbox {
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .lightbox__close,
  .lightbox__nav {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  @media (min-width: 768px) {
    .panel,
    .looking__inner,
    .contact-page__grid > div:first-child {
      -webkit-backdrop-filter: blur(18px) saturate(170%);
      backdrop-filter: blur(18px) saturate(170%);
    }
  }
}

.modal__dialog {
  background-color: rgba(255, 255, 255, 0.97);
  background-image: var(--glass-gloss);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-spec), 0 30px 70px rgba(0, 0, 0, 0.3);
}

.modal__header,
.modal__footer,
.cookie-pref {
  border-color: rgba(31, 56, 103, 0.14);
}

.modal__close {
  background-color: rgba(255, 255, 255, 0.7);
}

.lightbox__close,
.lightbox__nav {
  background-image: var(--dark-gloss);
}

.lang-switcher__toggle,
.quote-cart,
.nav-toggle {
  background-color: rgba(255, 255, 255, 0.6);
  border-color: rgba(31, 56, 103, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.cookie-notice {
  background-image: var(--dark-gloss);
}

@media (prefers-reduced-transparency: reduce) {
  :root {
    --glass-fill: rgba(255, 255, 255, 0.96);
    --glass-fill-strong: #fff;
    --dark-fill: #112144;
  }

  .modal,
  .modal__dialog,
  .lightbox,
  .lightbox__close,
  .lightbox__nav,
  .panel,
  .looking__inner,
  .contact-page__grid > div:first-child,
  .dock-button,
  .dock-menu a,
  .dock-menu button,
  .back-to-top,
  .slider__arrow,
  .cookie-notice {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .modal__dialog,
  .cookie-notice {
    background-color: #fff;
  }

  .cookie-notice {
    background-color: #112144;
  }

  .dock-button,
  .dock-menu a,
  .dock-menu button,
  .slider__arrow {
    background-color: #112144;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    transform: none;
  }

  .service-row:hover,
  .product-card:hover,
  .gallery-slide:hover,
  .btn:hover {
    transform: none;
  }
}

@media (max-width: 767px) {
  .band:not(.band--navy):not(.band--image) .band__col--text,
  .contact-page__grid > div:first-child,
  .looking__inner {
    padding: 24px;
  }

  .hero,
  .contact-strip,
  .site-footer,
  .page-heading {
    margin-inline: 8px;
    border-radius: 26px;
  }

  .standards,
  .process,
  .band--navy,
  .band--image {
    width: calc(100% - 16px);
    border-radius: 26px;
  }

  .service-row {
    padding: 18px;
  }

  .contact-dock {
    left: 8px;
    bottom: 12px;
  }

  .slider__arrow--prev {
    left: 4px;
  }

  .slider__arrow--next {
    right: 4px;
  }
}

/* ---------- Small screens and print ---------- */

@media (max-width: 599px) {
  :root {
    --gutter: 16px;
  }

  .container,
  .container-wide {
    padding-inline: 16px;
  }

  .band,
  .standards,
  .looking,
  .process,
  .services,
  .tag-cloud-block,
  .contact-page,
  .slider-block {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero {
    min-height: 0;
    padding: 116px 0 64px;
  }

  .btn {
    width: 100%;
  }

  .button-row {
    flex-direction: column;
  }

  .product-actions {
    flex-direction: column;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .cookie-notice__actions {
    width: 100%;
  }

  .cookie-notice__actions .btn {
    flex: 1;
  }

  .catalog-tools .btn {
    width: auto;
    flex: 1;
  }

  .standards__media,
  .process__media {
    padding: 8px;
  }
}

@media (max-width: 767px) {
  .contact-dock {
    top: auto;
    bottom: 16px;
    flex-direction: row;
    transform: none;
  }

  .dock-menu {
    left: 0;
    top: auto;
    bottom: 100%;
    flex-direction: column;
    transform: translateY(8px);
  }

  /* เว้นที่ใต้ปุ่มลอยมุมล่าง ไม่ให้บังเครดิตและลิงก์นโยบาย */
  .site-footer__bottom {
    padding-bottom: 84px;
  }
}

@media print {
  .site-header,
  .contact-dock,
  .back-to-top,
  .cookie-notice,
  .drawer {
    display: none !important;
  }
}

/* ---------- Header: long capsule of Liquid Glass ---------- */

.site-header {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -1px 1px rgba(255, 255, 255, 0.4),
    inset 0 0 18px rgba(255, 255, 255, 0.35),
    0 14px 34px rgba(14, 27, 54, 0.2),
    0 2px 6px rgba(14, 27, 54, 0.1);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 48%),
    radial-gradient(120% 140% at 50% -40%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 60%);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header,
  .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.56);
    -webkit-backdrop-filter: blur(22px) saturate(230%) brightness(1.04);
    backdrop-filter: blur(22px) saturate(230%) brightness(1.04);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.site-header__inner {
  position: relative;
  z-index: 1;
  align-items: center;
  gap: 16px;
  padding-inline: 8px;
}

.site-header__logo {
  padding-left: 16px;
}

.site-header__logo img {
  height: 32px;
}

.main-nav {
  display: none;
  height: auto;
}

.main-nav ul {
  align-items: center;
  height: auto;
  gap: 4px;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  line-height: 1;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.2s var(--ease);
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--navy-deep);
}

.main-nav a[aria-current='page'] {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 #fff, 0 1px 4px rgba(14, 27, 54, 0.14);
  color: var(--navy-deep);
}

@media (min-width: 960px) {
  .main-nav {
    display: block;
  }
}

.quote-cart,
.nav-toggle,
.lang-switcher__toggle {
  height: 40px;
  min-width: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1px 4px rgba(14, 27, 54, 0.12);
  color: var(--navy-deep);
}

.nav-toggle {
  width: 40px;
  padding: 0;
}

.quote-cart:hover,
.nav-toggle:hover,
.lang-switcher__toggle:hover,
.lang-switcher.is-open .lang-switcher__toggle {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.85);
  color: var(--navy-deep);
}

@media (max-width: 420px) {
  .site-header__inner {
    gap: 6px;
    padding-inline: 6px;
  }

  .site-header__logo {
    padding-left: 10px;
  }

  .site-header__logo img {
    height: 26px;
  }

  .site-header__tools {
    gap: 4px;
  }

  .quote-cart,
  .nav-toggle,
  .lang-switcher__toggle {
    min-width: 38px;
    height: 38px;
    padding: 0 9px;
  }

  .nav-toggle {
    width: 38px;
    padding: 0;
  }
}

/* ---------- Phone polish: touch targets, cookie notice, lighter blur ---------- */

@media (max-width: 767px) {
  /* The notice is measured by site.js; the floating buttons ride above it. */
  .contact-dock {
    bottom: calc(12px + var(--cookie-lift, 0px));
    transition: bottom 0.3s var(--ease);
  }

  .back-to-top {
    bottom: calc(16px + var(--cookie-lift, 0px));
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background 0.2s, bottom 0.3s var(--ease);
  }

  .cookie-notice {
    gap: 8px 12px;
    padding: 12px 14px;
  }

  .cookie-notice__icon {
    display: none;
  }

  .cookie-notice__text {
    flex-basis: 100%;
  }

  .cookie-notice__text p {
    margin: 2px 0 0;
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .cookie-notice .btn--sm,
  .btn--sm {
    min-height: 44px;
  }

  /* One big blur and a few small ones is plenty on a phone GPU. */
  .site-header {
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
  }

  .cookie-notice {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .dock-button,
  .dock-menu a,
  .dock-menu button,
  .back-to-top,
  .slider__arrow,
  .lightbox__close,
  .lightbox__nav {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .modal {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .dock-button,
  .dock-menu a,
  .dock-menu button,
  .slider__arrow {
    background-color: rgba(17, 33, 68, 0.9);
  }

  /* Touch targets of 44px */
  .quote-cart,
  .nav-toggle,
  .lang-switcher__toggle {
    min-width: 44px;
    height: 44px;
  }

  .nav-toggle {
    width: 44px;
  }

  .site-header__logo {
    min-height: 44px;
  }

  .slider-dot {
    height: 44px;
  }

  .slider-dot::after {
    top: 20px;
  }

  .layout-switch button {
    height: 44px;
  }

  .share-button {
    width: 44px;
    height: 44px;
  }

  .product-meta a.chip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .site-footer__policies a,
  .site-footer__credit a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .site-footer__policies {
    gap: 0 24px;
  }

  .breadcrumb a,
  .contact-strip__item a,
  .contact-list a,
  .site-footer__col p a,
  .product-meta a:not(.chip):not(.share-button) {
    display: inline-block;
    padding-block: 10px;
    margin-block: -10px;
  }

  a[href^='tel:'] {
    white-space: nowrap;
  }

  /* Inline (not inline-block) so a following comma stays on the number's line. */
  :is(.site-footer__col, .contact-list, .contact-strip__item) a[href^='tel:'] {
    display: inline;
  }

  fieldset.form-field label {
    min-height: 44px;
  }

  input[type='checkbox'] {
    width: 22px;
    height: 22px;
  }
}

/* Card and label text was under 14px; tablets too. */
@media (max-width: 899px) {
  .product-card__category,
  .product-card__brand,
  .product-card__more,
  .product-card__more span,
  .product-card__tag span,
  .product-meta__label,
  .rfq-steps__label,
  .rfq-steps__dot {
    font-size: 0.875rem;
  }
}

@media (max-width: 420px) {
  .quote-cart,
  .nav-toggle,
  .lang-switcher__toggle {
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
  }

  .nav-toggle {
    width: 44px;
    padding: 0;
  }
}
