/* ==========================================================================
   Upack Service — base, typography, buttons
   Brand cues kept from the original site: deep slate-teal, orange, aqua,
   diamond (rhombus) motif. Text is never rotated.
   ========================================================================== */

:root {
  --ink: #0f2328;
  --ink-2: #16343a;
  --ink-3: #1d4047;
  --paper: #f7f4ee;
  --paper-2: #efeae1;
  --white: #ffffff;
  --orange: #eb521d;
  --orange-dark: #b33b0f;
  --orange-strong: #d04a14;
  --orange-text: #b83a10;
  --orange-light: #f06a3a;
  --aqua: #a9cfd0;
  --muted: #53686d;
  --line: rgba(15, 35, 40, 0.12);
  --line-dark: rgba(255, 255, 255, 0.12);
  --radius: 22px;
  --radius-lg: 30px;
  --shadow: 0 24px 60px -28px rgba(15, 35, 40, 0.38);
  --shadow-soft: 0 12px 34px -20px rgba(15, 35, 40, 0.28);
  --container: 1180px;
  --logo-w: 418.5px;
  --logo-h: calc(var(--logo-w) * 0.264634);
  --header-h: calc(var(--logo-h) + 20px);
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

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

img {
  height: auto;
}

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

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

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

::selection {
  background: var(--orange-strong);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 500;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--orange-strong);
  color: #fff;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

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

.container--narrow {
  width: min(100% - 48px, 920px);
  margin-inline: auto;
}

/* Typography and shared elements */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--orange-text);
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  background: currentColor;
  transform: rotate(45deg);
}

.eyebrow--light {
  color: var(--aqua);
}

.eyebrow--light::before {
  background: var(--orange);
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--orange);
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  line-height: 1.62;
  color: #3c5156;
}

.section--ink .lead {
  color: rgba(255, 255, 255, 0.72);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(34px, 5vw, 54px);
}

.section-head__copy {
  max-width: 760px;
}

.section-head h2 {
  margin-top: 14px;
}

.section-head .lead {
  margin-top: 18px;
}

.section-head--light h2 {
  color: #fff;
}

.section-head--light .lead {
  color: rgba(255, 255, 255, 0.66);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  font-weight: 650;
  color: var(--ink);
  border-bottom: 1px solid rgba(15, 35, 40, 0.24);
  padding-bottom: 3px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.link-arrow svg {
  width: 17px;
  height: 17px;
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover {
  color: var(--orange-text);
  border-color: var(--orange-text);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

.section--ink .link-arrow {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.section--ink .link-arrow:hover {
  color: var(--orange-text);
  border-color: var(--orange-text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
}

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

.btn--primary {
  background: var(--orange-strong);
  color: #fff;
  box-shadow: 0 14px 28px -16px rgba(235, 82, 29, 0.9);
}

.btn--primary:hover {
  background: var(--orange-dark);
  box-shadow: 0 18px 34px -16px rgba(235, 82, 29, 0.85);
}

.btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--light {
  background: #fff;
  color: var(--ink);
}

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

.btn--outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn--outline:hover {
  background: #fff;
  color: var(--orange-text);
}

.btn--lg {
  min-height: 56px;
  padding-inline: 30px;
  font-size: 1rem;
}

/* Utility spacing */
.u-mt-22 { margin-top: 22px; }
.u-mt-24 { margin-top: 24px; }
.u-mt-28 { margin-top: 28px; }

/* Header and navigation */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(12, 29, 33, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

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

.brand img {
  width: var(--logo-w);
  height: auto;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 550;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-list > li > a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-list > li > a.is-active {
  color: #fff;
}

.nav-list > li > a.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.nav-list .chevron {
  width: 13px;
  height: 13px;
  opacity: 0.65;
  transition: transform 0.25s ease;
}

.has-submenu:hover .chevron,
.has-submenu:focus-within .chevron,
.has-submenu.is-open .chevron {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 270px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #122c32;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s var(--ease), visibility 0.22s;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu.is-open .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  line-height: 1.35;
  transition: background 0.2s ease, color 0.2s ease;
}

.submenu a:hover,
.submenu a.is-active {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.nav-cta {
  margin-left: 4px;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  color: #fff;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s ease, top 0.3s ease;
}

.nav-toggle span:nth-child(1) {
  top: 15px;
}

.nav-toggle span:nth-child(2) {
  top: 22px;
}

.nav-toggle span:nth-child(3) {
  top: 29px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(4, 14, 17, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* No-JS navigation fallback */
.nojs-nav {
  position: relative;
  z-index: 90;
  margin-top: var(--header-h);
  padding: 12px 0;
  background: #0d2227;
  color: #fff;
}

.nojs-nav .container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.nojs-nav a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
}

.nojs-nav a:hover {
  color: var(--orange);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 64px) 0 92px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: #fff;
}

.hero::before {
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(235, 82, 29, 0.18) 0%, rgba(235, 82, 29, 0) 62%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}

.hero-copy {
  max-width: 690px;
}

.hero h1 {
  margin: 20px 0 24px;
  font-size: clamp(2.9rem, 6.1vw, 5.3rem);
  line-height: 0.98;
  font-weight: 800;
}

.hero h1 .accent {
  display: inline-block;
  font-size: 1.02em;
}

.hero-lead {
  max-width: 570px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.02rem, 1.55vw, 1.22rem);
  line-height: 1.62;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0;
  max-width: 620px;
  margin: 48px 0 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stats > div {
  padding-right: 30px;
  margin-right: 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stats > div:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}

.hero-stats dt {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-stats dd {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
  justify-self: end;
}

.diamond {
  position: absolute;
  display: grid;
  place-items: center;
  overflow: hidden;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.diamond img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.16));
}

.diamond--main {
  top: 14%;
  left: 14%;
  width: 72%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 34% 24%, #fffdf8 0%, #eee7dc 62%, #dfd6c8 100%);
  box-shadow: 0 34px 60px -24px rgba(0, 0, 0, 0.55);
}

.diamond--small {
  right: 0;
  bottom: 3%;
  width: 41%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 34% 24%, #ffffff 0%, #f1ece4 68%, #e3dbcf 100%);
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, 0.5);
  animation: float 7s ease-in-out infinite;
}

.diamond--accent {
  top: 1%;
  left: 1%;
  width: 25%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  background: var(--orange-strong);
  color: #fff;
  text-align: center;
  animation: float 8.5s ease-in-out infinite reverse;
}

.diamond--accent span {
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.diamond--accent small {
  font-size: clamp(0.45rem, 0.75vw, 0.58rem);
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.95;
}

.hero-outline {
  position: absolute;
  top: 18%;
  left: 18%;
  width: 64%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  transform: rotate(45deg);
  pointer-events: none;
}

.hero-outline::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: color 0.2s ease;
}

.scroll-hint::before {
  content: "";
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
}

.scroll-hint:hover {
  color: #fff;
}

/* Sections and content blocks */

.section {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0;
}

.section--tight {
  padding: clamp(48px, 6vw, 76px) 0;
}

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

.section--ink {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.section--ink::before,
.page-hero::before,
.cta::before,
.equipment-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 34px, rgba(255, 255, 255, 0.045) 34px 35px),
    repeating-linear-gradient(-45deg, transparent 0 34px, rgba(255, 255, 255, 0.045) 34px 35px);
  pointer-events: none;
}

.section--ink::before {
  z-index: -1;
}

.section--ink > .container,
.page-hero > .container {
  position: relative;
  z-index: 1;
}

/* Split text + media */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.split--reverse .split-media {
  order: 2;
}

.split-media {
  position: relative;
}

.media-frame {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.media-frame:hover img {
  transform: scale(1.03);
}

.media-badge {
  position: absolute;
  right: -18px;
  bottom: -18px;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--orange-strong);
  color: #fff;
  box-shadow: 0 18px 36px -18px rgba(235, 82, 29, 0.75);
}

.media-badge strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.media-badge span {
  display: block;
  margin-top: 5px;
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 1;
}

.split-copy h2 {
  margin: 14px 0 20px;
}

.split-copy .lead {
  margin-bottom: 18px;
}

.split-copy p:not(.lead):not(.eyebrow) {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

.split-copy .link-arrow {
  margin-top: 24px;
}

.mini-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.mini-facts li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
}

.mini-facts li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 2px;
  width: 8px;
  height: 8px;
  background: var(--orange);
  transform: rotate(45deg);
}

.mini-facts strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.2;
}

/* Product list */

.products-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: start;
  gap: clamp(32px, 6vw, 80px);
}

.products-intro {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.products-intro h2 {
  margin: 14px 0 20px;
}

.products-intro p {
  max-width: 430px;
  color: var(--muted);
  line-height: 1.72;
}

.product-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.product-list li {
  border-bottom: 1px solid var(--line);
}

.product-list a {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 21px 4px;
  transition: padding 0.3s var(--ease), color 0.2s ease;
}

.product-list a:hover {
  padding-left: 14px;
  color: var(--orange-text);
}

.product-list .num {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.product-list strong {
  font-size: clamp(1.02rem, 1.55vw, 1.24rem);
  font-weight: 600;
  line-height: 1.32;
}

.product-list svg {
  width: 21px;
  height: 21px;
  color: var(--orange-text);
  transition: transform 0.25s var(--ease);
}

.product-list a:hover svg {
  transform: translateX(4px);
}

/* Advantages */

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  overflow: hidden;
  background: var(--line-dark);
}

.adv-card {
  position: relative;
  min-height: 218px;
  padding: 30px;
  background: var(--ink);
  transition: background 0.3s ease;
}

.adv-card:hover {
  background: var(--ink-2);
}

.adv-num {
  color: var(--orange-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.adv-card h3 {
  margin: 44px 0 10px;
  color: #fff;
  font-size: 1.22rem;
}

.adv-card p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  line-height: 1.62;
}

/* Technology steps */

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

.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 306px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.step-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--paper-2);
  color: var(--orange-text);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.step-card h3 {
  margin: 24px 0 10px;
}

.step-card p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.step-card .link-arrow {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.86rem;
}

/* Gallery / work cards */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.work-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #fff 0%, #f2ede4 72%, #e8e1d6 100%);
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 20px rgba(15, 35, 40, 0.12));
  transition: transform 0.6s var(--ease);
}

.work-card:hover .work-media img {
  transform: scale(1.05);
}

.work-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 20px 22px 24px;
}

.work-cat {
  color: var(--orange-text);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.work-body h3 {
  font-size: 1.04rem;
  line-height: 1.35;
  font-weight: 650;
}

.work-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 35, 40, 0.86);
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
}

.work-card:hover .work-zoom,
.work-card:focus-visible .work-zoom {
  opacity: 1;
  transform: none;
}

.work-zoom svg {
  width: 17px;
  height: 17px;
}

.work-specs {
  display: none;
}

/* Gallery filters */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn span {
  color: inherit;
  font-size: 0.72rem;
  opacity: 0.55;
}

.filter-btn:hover {
  border-color: rgba(15, 35, 40, 0.28);
  color: var(--ink);
}

.filter-btn.is-active {
  border-color: var(--orange-strong);
  background: var(--orange-strong);
  color: #fff;
}

.empty-state {
  padding: 40px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

/* Material descriptions */

.material-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 46px;
}

.material-card {
  padding: 2px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.material-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 650;
  line-height: 1.4;
  list-style: none;
}

.material-card summary::-webkit-details-marker {
  display: none;
}

.material-card summary::after {
  content: "+";
  flex: none;
  color: var(--orange-text);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

.material-card[open] summary::after {
  content: "–";
}

.material-card .prose {
  padding-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.65;
}

.material-card .prose p:last-child {
  margin-bottom: 0;
}

/* Call to action */

.cta-wrap {
  padding: 0 0 clamp(64px, 9vw, 120px);
}

.cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 32px;
  overflow: hidden;
  padding: clamp(36px, 6vw, 72px);
  border-radius: 32px;
  background: var(--orange-strong);
  color: #fff;
  isolation: isolate;
}

.cta::before {
  z-index: 0;
  opacity: 0.8;
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta h2 {
  margin-bottom: 14px;
  color: #fff;
}

.cta p {
  max-width: 580px;
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.62;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  justify-self: end;
}

.cta-phone {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease;
}

.cta-phone:hover {
  opacity: 0.78;
}

.cta-note {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
}

/* Footer */

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 72px 0 24px;
  background: #09181c;
  color: rgba(255, 255, 255, 0.66);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 40px, rgba(255, 255, 255, 0.025) 40px 41px),
    repeating-linear-gradient(-45deg, transparent 0 40px, rgba(255, 255, 255, 0.025) 40px 41px);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 1.1fr;
  gap: 40px;
}

.footer-brand img {
  width: auto;
  height: 44px;
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 320px;
  font-size: 0.9rem;
  line-height: 1.68;
}

.footer-col h3 {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-contact {
  display: grid;
  gap: 12px;
  font-size: 0.92rem;
  line-height: 1.55;
}

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

.footer-contact .phone {
  color: var(--orange-light);
  font-size: 1.08rem;
  font-weight: 700;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a:hover {
  color: #fff;
}

/* Back to top */

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease),
    visibility 0.25s;
}

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

.to-top:hover {
  background: var(--orange-strong);
}

.to-top svg {
  width: 18px;
  height: 18px;
}

/* Scroll reveal (only when JS is available) */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal[data-delay="1"] {
  transition-delay: 0.08s;
}

.js .reveal[data-delay="2"] {
  transition-delay: 0.16s;
}

.js .reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

/* 404 */

.notfound {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 60px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.notfound::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 34px, rgba(255, 255, 255, 0.045) 34px 35px),
    repeating-linear-gradient(-45deg, transparent 0 34px, rgba(255, 255, 255, 0.045) 34px 35px);
}

.notfound-code {
  color: var(--orange);
  font-family: var(--font-serif);
  font-size: clamp(5rem, 16vw, 11rem);
  font-style: italic;
  line-height: 0.9;
}

.notfound h1 {
  margin: 18px 0 14px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.notfound p {
  max-width: 520px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.65);
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Subpage hero and breadcrumbs */

.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--header-h) + 70px) 0 72px;
  background: var(--ink);
  color: #fff;
}

.page-hero::before {
  z-index: -2;
}

.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -150px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 34px;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.76rem;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: "/";
  color: rgba(255, 255, 255, 0.22);
}

.breadcrumbs a {
  transition: color 0.2s ease;
}

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

.page-hero h1 {
  max-width: 880px;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 1.02;
}

.page-hero .lead {
  max-width: 730px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.68);
}

.page-hero .eyebrow {
  margin-bottom: 16px;
}

.page-hero--compact {
  padding-bottom: 54px;
}

/* Page body and sidebar */

.page-body {
  padding: clamp(56px, 8vw, 100px) 0;
}

.page-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 64px);
}

.sidebar {
  position: sticky;
  min-width: 0;
  top: calc(var(--header-h) + 24px);
}

.sidebar-title {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sidebar-nav {
  min-width: 0;
  margin: 0 0 24px;
  padding: 0;
  border-left: 1px solid var(--line);
  list-style: none;
}

.sidebar-nav a {
  display: block;
  margin-left: -1px;
  padding: 10px 0 10px 18px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.sidebar-nav a:hover {
  color: var(--ink);
}

.sidebar-nav a.is-active {
  border-left-color: var(--orange);
  color: var(--orange-text);
  font-weight: 650;
}

.sidebar-card {
  padding: 24px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
}

.sidebar-card h2 {
  font-size: 1.1rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.sidebar-card p {
  margin: 8px 0 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.84rem;
  line-height: 1.55;
}

.sidebar-card .btn {
  width: 100%;
  min-height: 44px;
  padding-inline: 16px;
  font-size: 0.84rem;
}

.sidebar-phone {
  display: block;
  margin-top: 14px;
  color: #fff;
  font-size: 0.96rem;
  font-weight: 650;
}

/* Prose */

.prose {
  max-width: 790px;
  color: #354a4f;
  font-size: 1.01rem;
  line-height: 1.76;
}

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

.prose h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.prose h3 {
  margin: 36px 0 12px;
  color: var(--ink);
  font-size: 1.22rem;
}

.prose p {
  margin: 0 0 18px;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.prose li {
  position: relative;
  padding-left: 24px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  top: 0.66em;
  left: 2px;
  width: 8px;
  height: 8px;
  background: var(--orange);
  transform: rotate(45deg);
}

.prose ol {
  counter-reset: item;
}

.prose ol li::before {
  counter-increment: item;
  content: counter(item, decimal-leading-zero);
  position: absolute;
  top: 0.1em;
  left: 0;
  color: var(--orange);
  font-size: 0.74rem;
  font-weight: 750;
}

.prose a {
  color: var(--orange-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration: none;
}

.content-section + .content-section {
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--line);
}

.content-section h2 {
  margin-bottom: 20px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.content-section .lead {
  margin-bottom: 20px;
}

/* Feature cards */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.feature-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Equipment panels */

.equipment-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(26px, 4vw, 44px);
  border-radius: 26px;
  background: var(--ink);
  color: #fff;
}

.equipment-panel::before {
  z-index: -1;
}

.equipment-panel h2 {
  color: #fff;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.equipment-panel .lead {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.96rem;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.equipment-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.equipment-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.25));
}

.equipment-card h3 {
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.35;
}

.equipment-card p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.84rem;
  line-height: 1.55;
}

.equipment-card--photo img {
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  filter: none;
}

/* Photo grid */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.photo-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-card figcaption {
  padding: 14px 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

/* Specs table */

.spec-table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.spec-table th,
.spec-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.93rem;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec-table th {
  width: 46%;
  color: var(--muted);
  font-weight: 600;
}

.spec-table td {
  color: var(--ink);
  font-weight: 650;
}

/* Quote */

.quote {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
}

.quote::before {
  content: "“";
  position: absolute;
  top: 4px;
  left: 26px;
  color: var(--orange);
  font-family: var(--font-serif);
  font-size: 120px;
  line-height: 1;
  opacity: 0.17;
}

.quote blockquote {
  position: relative;
  color: var(--ink);
  font-size: clamp(1.06rem, 1.8vw, 1.3rem);
  line-height: 1.64;
}

.quote blockquote p + p {
  margin-top: 18px;
}

.quote footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.9rem;
}

.quote footer strong {
  color: var(--ink);
}

.quote-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--orange-text);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
}

/* Contacts */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.contact-card .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--orange-text);
}

.contact-card .icon svg {
  width: 21px;
  height: 21px;
}

.contact-card h2 {
  font-size: 1.02rem;
  letter-spacing: 0;
}

.contact-card p,
.contact-card > a {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.contact-card > a:hover {
  color: var(--orange);
}

.contact-card .contact-big {
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.contact-card--wide {
  grid-column: span 2;
}

.contact-note {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.contact-actions .btn {
  min-height: 44px;
  padding-inline: 18px;
  font-size: 0.85rem;
}

.contact-actions .btn--outline {
  border-color: var(--line);
  color: var(--ink);
}

.contact-actions .btn--outline:hover {
  border-color: var(--orange-strong);
  background: var(--orange-strong);
  color: #fff;
}

/* Documents */

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.2s ease, transform 0.25s var(--ease);
}

.doc-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
}

.doc-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--orange-text);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.doc-card h3 {
  margin: 0 0 3px;
  font-size: 0.94rem;
  line-height: 1.35;
}

.doc-card div > span {
  color: var(--muted);
  font-size: 0.78rem;
}

/* Constructives grid */

.work-grid--constructives {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.work-grid--constructives .work-media {
  padding: 12px;
  aspect-ratio: 4 / 3;
}

.work-grid--constructives .work-body {
  padding: 14px 16px 18px;
}

.work-grid--constructives .work-body h3 {
  font-size: 0.88rem;
}

.work-grid--constructives .work-cat {
  font-size: 0.6rem;
}

/* Finishing chips */

.chip-list {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px !important;
  margin-top: 8px !important;
}

.chip {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.2;
}

.chip::before {
  display: none !important;
}

/* Page content wrapper */

.page-content {
  min-width: 0;
}

/* Request form */

.request-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: start;
  gap: clamp(24px, 4vw, 44px);
}

.form-panel {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
}

.form-panel h2 {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.form-panel > p {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

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

.field label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    background 0.2s ease;
}

.field textarea {
  min-height: 122px;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(15, 35, 40, 0.24);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(235, 82, 29, 0.14);
}

.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.checkbox input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--orange);
}

.checkbox a {
  color: var(--orange-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-text {
  margin-top: 14px;
  padding: 2px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.consent-text summary {
  padding: 12px 0;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  list-style: none;
}

.consent-text summary::-webkit-details-marker {
  display: none;
}

.consent-text summary::after {
  content: "+";
  float: right;
  color: var(--orange);
    font-size: 1.1rem;
}

.consent-text[open] summary::after {
  content: "–";
}

.consent-text p {
  padding-bottom: 14px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.form-note {
  max-width: 420px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.form-status {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #eaf5ec;
  color: #1d5c2c;
  font-size: 0.88rem;
  line-height: 1.55;
}

.form-status--error {
  background: #fdecea;
  color: #8f2b1f;
}

.form-status a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.request-aside {
  display: grid;
  gap: 18px;
}

.request-aside-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-2);
}

.request-aside-card h2 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.request-aside-card p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.request-aside-card a {
  color: var(--ink);
  font-weight: 650;
}

.request-aside-card a:hover {
  color: var(--orange);
}

.request-aside-card .phone {
  display: block;
  margin-bottom: 6px;
  color: var(--orange);
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.request-aside-card ul {
  display: grid;
  gap: 8px;
  list-style: none;
  color: var(--muted);
  font-size: 0.88rem;
}

.request-aside-card li {
  position: relative;
  padding-left: 18px;
}

.request-aside-card li::before {
  content: "";
  position: absolute;
  top: 0.56em;
  left: 1px;
  width: 7px;
  height: 7px;
  background: var(--orange);
  transform: rotate(45deg);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 16, 19, 0.82);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  width: min(1000px, 100%);
  max-height: calc(100svh - 48px);
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.45);
}

.lightbox-media {
  display: grid;
  place-items: center;
  min-height: 380px;
  padding: 28px;
  background: radial-gradient(circle at 50% 40%, #fff 0%, #f1ece4 68%, #e8e1d6 100%);
}

.lightbox-media img {
  width: 100%;
  max-height: 72svh;
  object-fit: contain;
}

.lightbox-info {
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  padding: 34px;
}

.lightbox-info .eyebrow {
  font-size: 0.66rem;
}

.lightbox-info h2 {
  margin: 12px 0 18px;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  line-height: 1.22;
}

.lightbox-specs {
  display: grid;
  gap: 9px;
  list-style: none;
}

.lightbox-specs li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.lightbox-specs li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 2px;
  width: 7px;
  height: 7px;
  background: var(--orange);
  transform: rotate(45deg);
}

.lightbox-empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 35, 40, 0.08);
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover {
  background: var(--orange-strong);
  color: #fff;
}

.lightbox-close svg {
  width: 18px;
  height: 18px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transform: translateY(-50%);
  transition: background 0.2s ease, color 0.2s ease;
}

.lightbox-nav:hover {
  background: var(--orange-strong);
  color: #fff;
}

.lightbox-nav svg {
  width: 18px;
  height: 18px;
}

.lightbox-nav--prev {
  left: 14px;
}

.lightbox-nav--next {
  right: 14px;
}

.lightbox-counter {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

/* Print */

@media print {
  .site-header,
  .site-footer,
  .to-top,
  .scroll-hint,
  .hero-visual,
  .cta,
  .lightbox,
  .nav-overlay {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero,
  .page-hero,
  .section--ink,
  .notfound {
    background: #fff !important;
    color: #000 !important;
    min-height: auto;
    padding: 24px 0;
  }

  .hero h1,
  .page-hero h1,
  .section--ink h2,
  .section--ink h3 {
    color: #000 !important;
  }

  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsive layout */

@media (max-width: 1100px) {
  .hero-visual {
    max-width: 500px;
  }

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

  .step-card {
    min-height: 270px;
  }

  .products-layout {
    grid-template-columns: 1fr;
  }

  .products-intro {
    position: static;
  }

  .page-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.3fr 0.8fr 0.9fr;
  }

  .footer-col--contact {
    grid-column: 2 / -1;
  }
}

@media (min-width: 981px) and (max-width: 1100px) {
  .header-inner {
    gap: 16px;
  }

  .nav-list > li > a {
    padding: 10px 8px;
    font-size: 0.86rem;
  }

  .nav-cta {
    padding: 0 14px;
    font-size: 0.9rem;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 78px;
  }

  .brand img {
    width: auto;
    height: 44px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    width: min(88vw, 400px);
    margin: 0;
    padding: calc(var(--header-h) + 20px) 22px 28px;
    overflow-y: auto;
    background: #0d2227;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3);
    visibility: hidden;
    transform: translateX(103%);
    transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }

  .main-nav.is-open {
    visibility: visible;
    transition: transform 0.35s var(--ease), visibility 0s linear 0s;
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list > li > a {
    padding: 15px 10px;
    border-radius: 10px;
    font-size: 1rem;
  }

  .nav-list > li > a.is-active::after {
    display: none;
  }

  .nav-list > li > a.is-active {
    color: var(--orange);
  }

  .submenu {
    position: static;
    display: none;
    min-width: 0;
    margin: 2px 0 10px;
    padding: 4px 6px;
    border: 0;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .has-submenu.is-open .submenu {
    display: block;
  }

  .submenu a {
    padding: 11px 12px;
    font-size: 0.92rem;
  }

  .nav-cta {
    width: 100%;
    margin-top: 8px;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 52px) 0 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 480px;
    margin-top: 12px;
    justify-self: center;
  }

  .scroll-hint {
    display: none;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split--reverse .split-media {
    order: 0;
  }

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

  .material-grid {
    grid-template-columns: 1fr;
  }

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

  .cta {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-self: start;
  }

  .request-layout {
    grid-template-columns: 1fr;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: static;
  }

  .sidebar-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    margin-bottom: 0;
    padding-bottom: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }

  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar-nav a {
    margin-left: 0;
    padding: 10px 14px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    font-size: 0.86rem;
  }

  .sidebar-nav a.is-active {
    border-bottom-color: var(--orange);
  }

  .sidebar-card {
    display: none;
  }

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

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .footer-col--contact {
    grid-column: auto;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  .work-grid--constructives {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .work-grid--constructives {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .work-grid--constructives {
    grid-template-columns: 1fr;
  }
}

/* Small-screen refinements */

@media (max-width: 720px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 36px;
    padding-top: 22px;
  }

  .hero-stats > div {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 0 0 14px;
    margin: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero-stats > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .hero-stats dt {
    min-width: 88px;
    font-size: 1.2rem;
  }

  .hero-stats dd {
    margin-top: 0;
  }

  .media-badge {
    right: 12px;
    bottom: 12px;
  }

  .adv-grid {
    grid-template-columns: 1fr;
  }

  .adv-card {
    min-height: 0;
    padding: 26px;
  }

  .adv-card h3 {
    margin-top: 28px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step-card {
    min-height: 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card--wide {
    grid-column: auto;
  }

  .feature-grid,
  .equipment-grid,
  .photo-grid,
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    margin-top: 40px;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-panel {
    grid-template-columns: 1fr;
    max-height: calc(100svh - 24px);
    overflow-y: auto;
  }

  .lightbox-media {
    min-height: 300px;
    padding: 20px;
  }

  .lightbox-media img {
    max-height: 46svh;
  }

  .lightbox-info {
    max-height: none;
    padding: 26px 24px 30px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 14px;
    transform: none;
  }

  .lightbox-nav--prev {
    left: auto;
    right: 76px;
  }

  .lightbox-nav--next {
    right: 20px;
  }

  .cta {
    border-radius: 24px;
  }

  .page-hero {
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 54px;
  }

  .page-hero::after {
    display: none;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 70px;
  }

  .container,
  .container--narrow {
    width: min(100% - 36px, var(--container));
  }

  .brand img {
    height: 38px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 11vw, 3.3rem);
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-visual {
    max-width: 360px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .product-list a {
    grid-template-columns: 38px 1fr auto;
    gap: 10px;
    padding: 18px 2px;
  }

  .product-list .num {
    font-size: 0.7rem;
  }

  .mini-facts {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 28px 22px;
  }

  .form-actions .btn {
    width: 100%;
  }

  .to-top {
    right: 14px;
    bottom: 14px;
  }

  .quote {
    padding: 26px 22px;
  }
}

/* Reduced motion */

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

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
