@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/inter-tight-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/inter-tight-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/inter-tight-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   UniMach — premium industrial theme
   ========================================================================== */

:root {
  --bg: #142b33;
  --bg-2: #10242b;
  --surface: #1a353e;
  --surface-2: #21414b;
  --line: rgba(255, 250, 242, 0.1);
  --line-strong: rgba(255, 250, 242, 0.2);
  --text: #fffaf2;
  --muted: rgba(255, 250, 242, 0.68);
  --accent: #087f8c;
  --accent-hover: #0a98a6;
  --paper: #edf5f4;
  --paper-text: #161819;
  --paper-muted: #5e6b70;
  --paper-line: rgba(22, 24, 25, 0.14);
  --font: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 5.4vw, 80px);
}

h2 {
  font-size: clamp(34px, 4.4vw, 64px);
}

h3 {
  font-size: clamp(21px, 1.8vw, 26px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  margin: 0;
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

::selection {
  background: #006dff;
  color: #fffaf2;
}

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

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.button.primary {
  background: var(--accent);
  color: #fffaf2;
}

.button.primary::after {
  content: '→';
  transition: transform 0.25s var(--ease);
}

.button.primary:hover {
  background: var(--accent-hover);
}

.button.primary:hover::after {
  transform: translateX(4px);
}

.button.ghost,
.button.secondary {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.button.ghost:hover,
.button.secondary:hover {
  border-color: var(--text);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--accent);
  font-weight: 600;
}

.text-link i {
  font-style: normal;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
}

.text-link:hover i {
  transform: translateX(4px);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
}

.site-header.scrolled,
.site-header.nav-open {
  background: rgba(31, 42, 46, 0.9);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: var(--wrap);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  position: relative;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--accent);
}

.brand-mark::before,
.brand-mark::after {
  content: '';
  position: absolute;
  background: var(--accent);
}

.brand-mark::before {
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 1.5px;
  transform: translateX(-50%);
}

.brand-mark::after {
  top: 50%;
  left: 4px;
  right: 4px;
  height: 1.5px;
  transform: translateY(-50%);
}

.brand-mark i {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--text);
}

.brand-logo {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-logo span:last-child {
  color: var(--muted);
}

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

.nav-links a {
  position: relative;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-phone {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
}

.nav-phone:hover {
  color: var(--text);
}

.nav-cta {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 0.25s var(--ease);
}

.nav-open .nav-burger span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-open .nav-burger span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* Language switcher */

.language-switcher {
  position: relative;
}

.language-toggle,
.language-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.language-toggle {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.language-toggle:hover,
.language-switcher.open .language-toggle {
  border-color: var(--text);
}

.language-chevron {
  color: var(--muted);
  font-size: 10px;
}

.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 170px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.language-switcher.open .language-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.language-menu button {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  text-align: left;
}

.language-menu button:hover,
.language-menu button.active {
  background: var(--surface-2);
  color: var(--accent);
}

.flag-icon {
  display: inline-block;
  width: 20px;
  height: 14px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.flag-et {
  background: linear-gradient(to bottom, #4891d9 0 33.33%, #111 33.33% 66.66%, #fff 66.66%);
}

.flag-en {
  background:
    linear-gradient(35deg, transparent 0 42%, #fff 42% 47%, #c8102e 47% 53%, #fff 53% 58%, transparent 58%),
    linear-gradient(145deg, transparent 0 42%, #fff 42% 47%, #c8102e 47% 53%, #fff 53% 58%, transparent 58%),
    linear-gradient(to bottom, transparent 0 36%, #fff 36% 44%, #c8102e 44% 56%, #fff 56% 64%, transparent 64%),
    linear-gradient(to right, transparent 0 38%, #fff 38% 45%, #c8102e 45% 55%, #fff 55% 62%, transparent 62%),
    #012169;
}

.flag-ru {
  background: linear-gradient(to bottom, #fff 0 33.33%, #1c57a7 33.33% 66.66%, #d52b1e 66.66%);
}

.flag-fi {
  background:
    linear-gradient(to right, transparent 0 28%, #002f6c 28% 44%, transparent 44%),
    linear-gradient(to bottom, transparent 0 36%, #002f6c 36% 58%, transparent 58%),
    #fff;
}

.flag-sv {
  background:
    linear-gradient(to right, transparent 0 30%, #fecc00 30% 43%, transparent 43%),
    linear-gradient(to bottom, transparent 0 38%, #fecc00 38% 56%, transparent 56%),
    #006aa7;
}

/* ---------- Hero ---------- */

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(32px, 6vh, 72px));
}

.hero::before,
.page-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  right: -10%;
  top: -20%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(closest-side, rgba(8, 127, 140, 0.16), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 85%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  flex: 1;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero-copy h1 {
  max-width: 13em;
}

.hero-text {
  max-width: 34em;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
}

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

.hero-media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  max-height: 68vh;
  justify-self: end;
  width: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.06);
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 43, 51, 0.75));
}

.corner {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  border: 0 solid var(--accent);
}

.corner.tl { top: -10px; left: -10px; border-top-width: 2px; border-left-width: 2px; }
.corner.tr { top: -10px; right: -10px; border-top-width: 2px; border-right-width: 2px; }
.corner.bl { bottom: -10px; left: -10px; border-bottom-width: 2px; border-left-width: 2px; }
.corner.br { bottom: -10px; right: -10px; border-bottom-width: 2px; border-right-width: 2px; }

.hero-media-tag {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}

.hero-media-tag span:first-child {
  color: var(--accent);
}

.hero-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: var(--wrap);
  margin: clamp(40px, 7vh, 80px) auto 0;
  padding: 0 var(--gutter);
}

.spec {
  display: grid;
  gap: 6px;
  padding: 26px 24px 30px 0;
  border-top: 1px solid var(--line-strong);
}

.spec + .spec {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.spec strong {
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.spec span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  padding: 20px 0;
  animation: ticker 48s linear infinite;
}

.ticker-track span {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-track i {
  color: var(--accent);
  font-size: 11px;
  font-style: normal;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: clamp(80px, 11vw, 140px) 0;
}

.section-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-head {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 64px;
  align-items: end;
}

.section-head-side {
  display: grid;
  gap: 24px;
  justify-items: start;
}

.lead {
  max-width: 36em;
  color: var(--muted);
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.6;
}

.section.light {
  background: var(--paper);
  color: var(--paper-text);
}

.section.light .lead,
.section.light p {
  color: var(--paper-muted);
}

.section.light .eyebrow {
  color: var(--paper-muted);
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.service-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface);
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05);
  transition: transform 0.9s var(--ease), filter 0.6s;
}

.service-card:hover .service-media img {
  transform: scale(1.05);
  filter: saturate(1) contrast(1.05);
}

.service-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  padding: 32px 30px 34px;
}

.service-index {
  color: var(--accent);
}

.service-body p {
  color: var(--muted);
  font-size: 16px;
}

.machine-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.tag {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Works preview (bento) ---------- */

.works-preview {
  padding-top: 0;
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(220px, 22vw, 320px);
  gap: 12px;
}

.bento-tile {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.bento-tile.wide {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-tile.tall {
  grid-row: span 2;
}

.bento-tile img,
.catalog-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06);
  transition: transform 1s var(--ease), filter 0.6s;
}

.bento-tile:hover img,
.catalog-item:hover img {
  transform: scale(1.05);
  filter: saturate(1) contrast(1.06);
}

.tile-meta,
.catalog-meta {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 60px 22px 20px;
  background: linear-gradient(180deg, transparent, rgba(12, 28, 34, 0.9));
  text-align: left;
}

.tile-meta .mono,
.catalog-meta .mono {
  color: var(--accent);
}

.tile-meta strong {
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* ---------- Process ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process li {
  display: grid;
  align-content: start;
  gap: 14px;
  padding-top: 26px;
  border-top: 2px solid var(--paper-text);
}

.process .mono {
  color: var(--accent);
  font-weight: 600;
}

.process p {
  font-size: 16px;
}

/* ---------- Machine park ---------- */

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

.spec-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s, padding 0.25s var(--ease);
}

.spec-row:hover {
  background: var(--bg-2);
  padding-left: 20px;
}

.spec-row .mono {
  color: var(--muted);
}

.spec-row:hover .mono {
  color: var(--accent);
}

.spec-row strong {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.spec-row > span:last-child {
  color: var(--muted);
  font-size: 15px;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-cta {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 120% at 100% 0%, rgba(8, 127, 140, 0.18), transparent 60%),
    var(--bg-2);
}

.footer-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 40px;
  align-items: end;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 110px) var(--gutter);
}

.footer-cta h2 {
  max-width: 15em;
  font-size: clamp(30px, 3.6vw, 52px);
}

.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px var(--gutter) 48px;
}

.footer-brand p {
  max-width: 22em;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-label {
  margin-bottom: 6px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px var(--gutter) 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Inner page hero ---------- */

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  max-width: none;
  padding: calc(var(--header-h) + clamp(64px, 10vw, 130px)) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}

.page-title h1 {
  max-width: 13em;
}

.page-title p {
  max-width: 38em;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(17px, 1.3vw, 19px);
}

.works-counter {
  display: flex;
  gap: 40px;
}

.works-counter div {
  display: grid;
  gap: 4px;
  padding-left: 20px;
  border-left: 1px solid var(--line-strong);
}

.works-counter strong {
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.works-counter span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Catalog ---------- */

.catalog {
  padding-top: 40px;
}

.catalog-bar {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 32px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 36, 43, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.chip sup {
  font-family: var(--mono);
  font-size: 10px;
  opacity: 0.7;
}

.chip:hover {
  color: var(--text);
}

.chip.active {
  background: var(--text);
  color: var(--bg);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.catalog-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  background: var(--surface);
  cursor: zoom-in;
}

.catalog-item.feature {
  grid-column: span 2;
  aspect-ratio: auto;
}

.catalog-item[hidden] {
  display: none;
}

.catalog-meta {
  gap: 4px;
  padding: 48px 18px 16px;
}

.catalog-meta strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.catalog-cat {
  color: var(--muted);
  font-size: 13px;
}

.catalog-zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fffaf2;
  font-size: 20px;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}

.catalog-item:hover .catalog-zoom,
.catalog-item:focus-visible .catalog-zoom {
  opacity: 1;
  transform: none;
}

/* Gallery lightbox */

.gallery {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: rgba(10, 22, 27, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.gallery.open {
  opacity: 1;
  visibility: visible;
}

.gallery-stage {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin: 0;
}

.gallery-stage img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
}

.gallery-stage figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 14px;
}

.gallery-stage figcaption .mono {
  color: var(--accent);
}

.gallery-stage figcaption strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
}

.gallery-nav,
.gallery-close {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.gallery-nav:hover,
.gallery-close:hover {
  border-color: var(--accent);
  background: rgba(8, 127, 140, 0.12);
}

.gallery-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  font-size: 26px;
}

/* Legacy lightbox (kept for compatibility) */

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(6, 7, 9, 0.94);
}

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

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

.form {
  display: grid;
  gap: 18px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  transition: border-color 0.2s, background 0.2s;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.field select option {
  background: var(--surface);
  color: var(--text);
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: #5d6168;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-2);
}

.file-field input[type='file'] {
  padding: 14px;
  border-style: dashed;
  cursor: pointer;
}

.file-field input[type='file']::file-selector-button {
  margin-right: 14px;
  padding: 8px 14px;
  border: 0;
  border-radius: 2px;
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font);
  cursor: pointer;
}

.form .button {
  justify-self: start;
}

.form-note {
  color: var(--muted);
  font-size: 13px;
}

.form-success,
.form-error {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-left: 3px solid #3ecf8e;
  background: rgba(62, 207, 142, 0.08);
  color: var(--text);
  font-size: 15px;
}

.form-error {
  border-left-color: #ff4d4d;
  background: rgba(255, 77, 77, 0.08);
}

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

.grecaptcha-badge {
  pointer-events: none;
}

/* ---------- Contacts ---------- */

.contact-section {
  padding-top: clamp(48px, 6vw, 80px);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.contact-card {
  padding: clamp(28px, 4vw, 48px);
  background: var(--bg-2);
}

.contact-card h2 {
  margin-bottom: 14px;
  font-size: clamp(26px, 2.4vw, 34px);
}

.contact-card > p,
.contact-form-intro {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 16px;
}

.contact-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--accent);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-brand strong {
  color: var(--muted);
  font-weight: 600;
}

.contact-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.contact-line {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-line span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-line p,
.contact-line a {
  color: var(--text);
  font-size: 16px;
}

.contact-line a:hover {
  color: var(--accent);
}

.email-reveal {
  padding: 0;
  border: 0;
  border-bottom: 1px dashed var(--accent);
  background: none;
  color: var(--accent);
  font-family: var(--font);
  font-size: inherit;
  font-weight: 500;
  cursor: pointer;
}

.email-reveal:hover,
.email-reveal:focus {
  color: var(--accent-hover);
}

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

.contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.contact-action:hover,
.contact-action:focus {
  border-color: var(--accent);
  background: rgba(8, 127, 140, 0.1);
}

.contact-map-wrap {
  margin-top: 24px;
}

.contact-map-card {
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.contact-map-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px clamp(20px, 3vw, 32px);
}

.contact-map-head h2 {
  font-size: 22px;
}

.contact-map-address {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

.contact-map-frame {
  height: clamp(300px, 36vw, 440px);
  border-top: 1px solid var(--line);
}

.contact-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.88) brightness(0.95);
}

/* ---------- Quote ---------- */

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}

.quote-aside {
  display: grid;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.quote-panel,
.quote-form-card {
  padding: clamp(26px, 3.4vw, 44px);
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.quote-panel h3,
.quote-form-card h2 {
  margin-bottom: 22px;
  font-size: clamp(22px, 2.2vw, 32px);
}

.quote-checklist {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tip;
}

.quote-checklist li {
  position: relative;
  padding-left: 40px;
  color: var(--muted);
  font-size: 16px;
  counter-increment: tip;
}

.quote-checklist li::before {
  content: '0' counter(tip);
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
}

.accent-panel {
  border-left: 3px solid var(--accent);
}

.accent-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.accent-panel p {
  color: var(--muted);
  font-size: 16px;
}

/* ---------- Generic content pages (legal, shop, Elementor) ---------- */

.content-page {
  padding-top: calc(var(--header-h) + 64px);
  min-height: 60vh;
}

.content-page a {
  color: #055a66;
  text-decoration: underline;
}

.content-page h1,
.content-page h2,
.content-page h3 {
  margin: 1.2em 0 0.5em;
  color: var(--paper-text);
}

.content-page p,
.content-page li {
  color: #2f3237;
}

/* ---------- Reveal on scroll ---------- */

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

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

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

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

  .ticker-track {
    animation: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .nav-phone {
    display: none;
  }

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

@media (max-width: 980px) {
  .nav-burger {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: grid;
    gap: 0;
    padding: 12px var(--gutter) 28px;
    background: rgba(20, 43, 51, 0.98);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }

  .nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links a {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 22px;
    color: var(--text);
  }

  .nav-links a.active::after {
    display: none;
  }

  .nav-links a.active {
    color: var(--accent);
  }

  .nav-actions {
    margin-left: auto;
  }

  .hero-inner,
  .section-head.split,
  .contact-layout,
  .quote-layout,
  .footer-cta-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    max-height: none;
    aspect-ratio: 16 / 10;
    justify-self: stretch;
  }

  .hero-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spec:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

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

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

  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .quote-aside {
    position: static;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .nav {
    gap: 12px;
  }

  .nav-cta {
    display: none;
  }

  .brand-logo {
    font-size: 17px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 8px;
  }

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

  .spec {
    padding: 20px 12px 22px 0;
  }

  .spec + .spec {
    padding-left: 14px;
  }

  .spec:nth-child(3) {
    padding-left: 0;
  }

  .bento {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 260px;
  }

  .bento-tile.wide,
  .bento-tile.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .bento-tile.wide {
    grid-row: span 1;
  }

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

  .spec-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .catalog-bar {
    border-radius: 14px;
  }

  .chip {
    min-height: 38px;
    padding: 0 14px;
    font-size: 14px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .catalog-meta {
    padding: 40px 12px 12px;
  }

  .catalog-meta strong {
    font-size: 14px;
  }

  .catalog-cat {
    display: none;
  }

  .works-counter {
    gap: 24px;
  }

  .form-grid,
  .contact-line {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-line {
    gap: 4px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }

  .gallery {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    padding: 70px 12px 20px;
  }

  .gallery-stage {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .gallery-nav {
    grid-row: 2;
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .corner.tl, .corner.bl { left: 0; }
  .corner.tr, .corner.br { right: 0; }
  .corner.tl, .corner.tr { top: 0; }
  .corner.bl, .corner.br { bottom: 0; }
}

/* ---------- Original-site palette: photo hero and light sections ---------- */

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(16, 20, 22, 0.86) 0%, rgba(16, 20, 22, 0.55) 55%, rgba(16, 20, 22, 0.3) 100%), linear-gradient(180deg, transparent 60%, rgba(20, 43, 51, 0.9));
}

.hero::before {
  display: none;
}

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

.hero .hero-copy h1 {
  max-width: 14em;
}

.hero .hero-text {
  color: rgba(255, 250, 242, 0.82);
}

.hero .hero-grid {
  z-index: 0;
  opacity: 0.6;
}

.hero .spec {
  border-top-color: rgba(255, 250, 242, 0.3);
}

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

.section.light .services-grid {
  background: var(--paper-line);
  border-color: var(--paper-line);
}

.section.light .service-card {
  background: #f8fffd;
}

.section.light .tag {
  border-color: var(--paper-line);
  color: var(--paper-text);
}

.section.light .service-media img {
  filter: none;
}

.process li {
  border-top-color: var(--accent);
}

.works-preview {
  padding-top: clamp(80px, 11vw, 140px);
}

.tile-meta .mono,
.catalog-meta .mono,
.gallery-stage figcaption .mono,
.spec-row:hover .mono,
.ticker-track i,
.text-link i,
.quote-checklist li::before {
  color: #6fd3dc;
}

.text-link {
  border-bottom-color: #6fd3dc;
}

.contact-layout {
  gap: 0;
  background: none;
  border: 0;
}

.contact-card {
  border: 1px solid var(--line);
}

.contact-layout > .contact-card + .contact-card {
  border-left: 0;
}

@media (max-width: 980px) {
  .contact-layout > .contact-card + .contact-card {
    border-left: 1px solid var(--line);
    border-top: 0;
  }
}

/* ---------- Front page split: parts & repair / CNC ---------- */

.split-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  min-height: 100svh;
}

.split-panel {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--header-h) + 48px) clamp(24px, 4.5vw, 72px) clamp(40px, 7vh, 88px);
  color: var(--text);
}

.split-panel + .split-panel {
  border-left: 1px solid var(--line-strong);
}

.split-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s;
}

.split-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(16, 20, 22, 0.35) 0%, rgba(16, 20, 22, 0.55) 45%, rgba(20, 43, 51, 0.95) 100%);
  transition: background 0.5s;
}

.split-second .split-bg {
  filter: saturate(0.7);
}

.split-panel:hover .split-bg {
  transform: scale(1.04);
  filter: saturate(1);
}

.split-content {
  display: grid;
  justify-items: start;
  gap: 18px;
  max-width: 34em;
}

.split-content .eyebrow {
  margin-bottom: 0;
  color: rgba(255, 250, 242, 0.85);
}

.split-title {
  font-size: clamp(38px, 4.6vw, 76px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.split-second .split-title {
  font-size: clamp(32px, 3.4vw, 54px);
}

.split-text {
  color: rgba(255, 250, 242, 0.82);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
}

.split-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.split-tags .tag {
  background: rgba(10, 22, 27, 0.4);
}

.split-content .button {
  margin-top: 8px;
}

/* ---------- Parts page ---------- */

.parts-hero .hero-copy h1 {
  max-width: 15em;
}

.parts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.parts-item {
  display: grid;
  gap: 18px;
  align-content: space-between;
  min-height: 170px;
  padding: 28px 30px;
  background: var(--bg);
  transition: background 0.25s;
}

.parts-item:hover {
  background: var(--bg-2);
}

.parts-item .mono {
  color: #6fd3dc;
}

.repair-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.repair-media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.repair-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.repair-copy h2 {
  margin-bottom: 22px;
}

.repair-list {
  display: grid;
  gap: 0;
  margin: 32px 0 36px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--paper-line);
}

.repair-list li {
  position: relative;
  padding: 16px 0 16px 34px;
  border-bottom: 1px solid var(--paper-line);
  color: var(--paper-text);
  font-weight: 500;
}

.repair-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--accent);
}

.process-dark li {
  border-top-color: var(--accent);
}

.process-dark p {
  color: var(--muted);
}

.process-dark .mono {
  color: #6fd3dc;
}

.cross-link {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.cross-link-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter);
}

.cross-link-inner strong {
  display: block;
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cross-link-inner .eyebrow {
  margin-bottom: 14px;
}

.cross-link-inner i {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 24px;
  font-style: normal;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

.cross-link-inner:hover i {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateX(6px);
}

@media (max-width: 980px) {
  .split-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-panel {
    min-height: 72svh;
  }

  .split-panel + .split-panel {
    min-height: 60svh;
    padding-top: 48px;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }

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

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

  .repair-media {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 720px) {
  .parts-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .parts-item {
    min-height: 0;
  }
}

/* Light content pages (legal, shop): keep the header solid so the menu stays readable */
body:has(.content-page) .site-header {
  background: rgba(31, 42, 46, 0.96);
  border-bottom-color: var(--line);
}

/* Front page chooser: no menu links, the two halves are the navigation */
body.home .nav-links,
body.home .nav-burger {
  display: none;
}

body.home .nav-actions {
  margin-left: auto;
}

/* ---------- Site switch button (back to the chooser) ---------- */

.nav-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}

.nav-switch:hover {
  border-color: var(--accent);
  background: rgba(8, 127, 140, 0.15);
}

.nav-switch-icon {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 16px;
  height: 14px;
}

.nav-switch-icon i {
  border: 1.5px solid currentColor;
}

body.home .nav-switch {
  display: none;
}

@media (max-width: 1280px) {
  .nav-switch-label {
    display: none;
  }

  .nav-switch {
    padding: 0 12px;
  }
}

/* ---------- E-shop teaser ---------- */

.shop-hero {
  min-height: 86svh;
  padding-bottom: clamp(48px, 8vh, 96px);
}

.soon-badge {
  display: inline-block;
  margin-bottom: 22px;
  padding: 8px 14px;
  border: 1px solid #6fd3dc;
  color: #6fd3dc;
  font-weight: 600;
  letter-spacing: 0.16em;
}

/* ---------- E-shop (WooCommerce) ---------- */

.nav-cart {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--text);
  transition: border-color 0.25s var(--ease);
}

.nav-cart:hover {
  border-color: var(--text);
}

.nav-cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: #6fd3dc;
  color: #142b33;
  font: 700 11px/19px var(--font);
  text-align: center;
}

.nav-cart-count[hidden] {
  display: none;
}

body.home .nav-cart {
  display: none;
}

.shop-top {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--header-h) + clamp(40px, 6vw, 72px)) 0 clamp(40px, 5vw, 64px);
  background-color: var(--bg-2);
  background-position: center;
  background-size: cover;
}

.shop-top h1 {
  max-width: 16em;
  font-size: clamp(34px, 4.4vw, 60px);
}

.shop-top-text {
  max-width: 38em;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.55;
}

.shop-search {
  display: flex;
  align-items: center;
  max-width: 760px;
  margin-top: 32px;
  background: #fff;
  border-radius: 2px;
  color: #5e6b70;
}

.shop-search svg {
  flex: none;
  margin-left: 18px;
}

.shop-search input[type='search'] {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #161819;
  font: 400 16px var(--font);
  outline: none;
}

.shop-search .button {
  min-height: 56px;
  border-radius: 0 2px 2px 0;
}

.shop-brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.shop-brands a {
  padding: 5px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  color: var(--text);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.shop-brands a:hover {
  border-color: #6fd3dc;
  background: rgba(111, 211, 220, 0.08);
}

.shop-body.section {
  padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 8vw, 110px);
}

.shop-cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.shop-cat {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--paper-line);
  background: #fff;
  color: var(--paper-text);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.shop-cat:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(20, 43, 51, 0.12);
}

.shop-cat-img {
  display: block;
  aspect-ratio: 4 / 3;
  background: #edf1f2;
}

.shop-cat-img img,
.shop-empty-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-cat b {
  padding: 14px 16px 2px;
  font-size: 16px;
  font-weight: 600;
}

.shop-cat small {
  padding: 0 16px 14px;
  color: var(--paper-muted);
  font-size: 13px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}

.shop-side h4 {
  margin-bottom: 12px;
  color: var(--paper-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shop-side ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-side li a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  color: var(--paper-text);
  font-size: 15px;
  border-left: 2px solid transparent;
}

.shop-side li a small {
  color: var(--paper-muted);
  font-size: 12px;
}

.shop-side li a:hover {
  color: var(--accent);
}

.shop-side li.on a {
  border-left-color: var(--accent);
  background: #fff;
  color: var(--accent);
  font-weight: 600;
}

.shop-help {
  margin-top: 28px;
  padding: 22px;
  background: var(--bg);
  color: var(--text);
}

.shop-help b {
  display: block;
  font-size: 18px;
}

.section.light .shop-help p {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.shop-help .button {
  width: 100%;
  min-height: 46px;
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.shop-toolbar .woocommerce-result-count {
  margin: 0;
  color: var(--paper-muted);
  font-size: 14px;
}

.shop-toolbar .woocommerce-ordering {
  margin: 0;
}

.shop-toolbar select {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--paper-line);
  background: #fff;
  font: 400 14px var(--font);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.shop-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--paper-line);
  background: #fff;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.shop-card:hover {
  border-color: rgba(8, 127, 140, 0.5);
  box-shadow: 0 18px 40px rgba(20, 43, 51, 0.1);
}

.shop-card-img {
  display: block;
  aspect-ratio: 4 / 3;
  background: #edf1f2;
}

.shop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 16px 16px;
}

.shop-card-cat {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shop-card h3 {
  margin: 6px 0 2px;
  font-size: 17px;
  line-height: 1.3;
}

.shop-card h3 a {
  color: var(--paper-text);
}

.shop-card-meta {
  color: var(--paper-muted);
  font-size: 12px;
}

.shop-card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}

.shop-card-price {
  color: var(--paper-text);
  font-size: 20px;
  font-weight: 700;
}

.shop-card-price del {
  color: var(--paper-muted);
  font-size: 14px;
  font-weight: 400;
}

.shop-card-price ins {
  text-decoration: none;
}

.shop-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1c8a4a;
  font-size: 12px;
}

.shop-stock::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22a35a;
}

.shop-stock.low {
  color: #b26b00;
}

.shop-stock.low::before {
  background: #e09b1a;
}

.shop-card-add {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  transition: background 0.2s var(--ease);
}

.shop-card-add:hover {
  background: var(--accent-hover);
}

.shop-card-add.loading {
  opacity: 0.6;
}

.shop-card-add.added {
  background: #1c8a4a;
}

.shop-card .added_to_cart {
  display: none;
}

.shop-empty {
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid var(--paper-line);
  background: #fff;
  text-align: center;
}

.shop-empty-art {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 560px;
  margin: 0 auto 28px;
}

.shop-empty-art span {
  aspect-ratio: 4 / 3;
  background: #edf1f2;
}

.shop-empty .soon-badge {
  margin-bottom: 14px;
  border-color: var(--accent);
  color: var(--accent);
}

.shop-empty h2 {
  font-size: clamp(26px, 2.6vw, 36px);
}

.section.light .shop-empty p {
  max-width: 32em;
  margin: 12px auto 0;
}

.shop-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.section.light .button.ghost {
  border-color: var(--paper-line);
  color: var(--paper-text);
  background: #fff;
}

.section.light .button.ghost:hover {
  border-color: var(--paper-text);
}

.woocommerce-pagination ul.page-numbers {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--paper-line);
  background: #fff;
  color: var(--paper-text);
}

.woocommerce-pagination .page-numbers .current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Single product, cart, checkout */

.shop-single.section {
  padding-top: calc(var(--header-h) + 36px);
}

body:has(.shop-single) .site-header {
  background: rgba(31, 42, 46, 0.96);
  border-bottom-color: var(--line);
}

.woocommerce .woocommerce-breadcrumb {
  margin-bottom: 24px;
  color: var(--paper-muted);
  font-size: 13px;
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--paper-muted);
}

.shop-single div.product .product_title {
  font-size: clamp(30px, 3vw, 44px);
}

.shop-single div.product p.price,
.shop-single div.product span.price {
  color: var(--paper-text);
  font-size: 28px;
  font-weight: 700;
}

.shop-single div.product .woocommerce-product-gallery__image {
  background: #edf1f2;
}

.shop-single .related > h2,
.shop-single .upsells > h2 {
  margin: 48px 0 18px;
  font-size: 24px;
}

.woocommerce ul.products li.product .price {
  color: var(--paper-text);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  padding: 14px 22px;
  border-radius: 2px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--accent-hover);
  color: #fff;
}

.woocommerce span.onsale {
  min-height: 0;
  min-width: 0;
  padding: 4px 10px;
  border-radius: 2px;
  background: var(--accent);
  line-height: 1.4;
}

.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--accent);
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--accent);
}

@media (max-width: 1100px) {
  .shop-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .shop-side ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .shop-side li a {
    border: 1px solid var(--paper-line);
    background: #fff;
  }

  .shop-side li a small {
    display: none;
  }

  .shop-help {
    display: none;
  }

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

@media (max-width: 560px) {
  .shop-search {
    flex-wrap: wrap;
  }

  .shop-search .button {
    width: 100%;
    border-radius: 0 0 2px 2px;
  }

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

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

  .nav-cart {
    width: 40px;
    height: 40px;
  }
}

/* Header fit with the cart button */
.nav-links a,
.nav-cta {
  white-space: nowrap;
}

.shop-cat b {
  padding-bottom: 14px;
}

.shop-cat small {
  margin-top: -12px;
}

@media (max-width: 1480px) {
  .nav-phone {
    display: none;
  }

  .nav-links a {
    padding: 10px 11px;
  }

  .nav-links a.active::after {
    left: 11px;
    right: 11px;
  }
}

@media (max-width: 720px) {
  .nav-actions {
    gap: 8px;
  }

  .nav-cart {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 420px) {
  .language-chevron {
    display: none;
  }

  .nav-switch {
    padding: 0 10px;
  }
}

.shop-card-img,
.shop-cat-img {
  aspect-ratio: auto;
  overflow: hidden;
}

.shop-card-img img,
.shop-cat-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.shop-single div.product p.price ins,
.shop-card-price ins {
  text-decoration: none;
}

/* WooCommerce styles every a.button inside body.woocommerce: give the theme buttons their own look back. */
.woocommerce a.button.primary,
.woocommerce a.button.ghost,
.woocommerce button.button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin: 0;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.woocommerce a.button.primary,
.woocommerce button.button.primary {
  background: var(--accent);
  color: #fffaf2;
}

.woocommerce a.button.primary:hover,
.woocommerce button.button.primary:hover {
  background: var(--accent-hover);
  color: #fffaf2;
}

.woocommerce a.button.ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.woocommerce .section.light a.button.ghost {
  border-color: var(--paper-line);
  background: #fff;
  color: var(--paper-text);
}

.woocommerce a.button.nav-cta {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.woocommerce .shop-search .button {
  min-height: 56px;
  border-radius: 0 2px 2px 0;
}

.woocommerce .shop-help a.button {
  width: 100%;
  min-height: 46px;
}

@media (max-width: 720px) {
  .woocommerce a.button.nav-cta {
    display: none;
  }
}

@media (max-width: 560px) {
  .woocommerce .shop-search .button {
    width: 100%;
    border-radius: 0 0 2px 2px;
  }
}

/* ---------- Customer account, cart and checkout pages ---------- */

.nav-account {
  position: relative;
}

.nav-account-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6fd3dc;
}

body.home .nav-account {
  display: none;
}

.woo-page-head {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.woo-page-head .eyebrow {
  margin-bottom: 14px;
}

.content-page .woo-page-head h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
}

.content-page .woo-page-head p {
  max-width: 36em;
  margin-top: 12px;
  color: var(--paper-muted);
  font-size: 17px;
}

.um-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Login + registration */
.woocommerce #customer_login.col2-set {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 32px);
  width: 100%;
}

.woocommerce #customer_login.col2-set::before,
.woocommerce #customer_login.col2-set::after {
  display: none;
}

.woocommerce #customer_login .col-1,
.woocommerce #customer_login .col-2 {
  float: none;
  width: auto;
  max-width: none;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--paper-line);
  background: #fff;
}

.woocommerce #customer_login .col-2 {
  border-top: 3px solid var(--accent);
}

.content-page #customer_login h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

.woocommerce form.login,
.woocommerce form.register {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.um-reg-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.woocommerce form .form-row {
  margin: 0 0 14px;
  padding: 0;
}

.woocommerce form .form-row label,
.woocommerce-page form .form-row label {
  margin-bottom: 6px;
  color: var(--paper-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.woocommerce form .form-row label small {
  color: var(--paper-muted);
  font-weight: 400;
}

.woocommerce form .form-row .required {
  color: #b3261e;
  text-decoration: none;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.woocommerce .select2-container .select2-selection--single {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(22, 24, 25, 0.22);
  border-radius: 2px;
  background: #fff;
  color: var(--paper-text);
  font: 400 16px var(--font);
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.woocommerce .select2-container .select2-selection--single .select2-selection__rendered {
  padding: 0;
  line-height: 24px;
}

.woocommerce .select2-container .select2-selection--single .select2-selection__arrow {
  top: 12px;
  right: 8px;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(8, 127, 140, 0.15);
  outline: none;
}

.woocommerce form .password-input {
  display: block;
  width: 100%;
}

.woocommerce form .show-password-input {
  top: 13px;
  right: 12px;
}

.woocommerce-form-login__rememberme {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: 4px 0 16px !important;
  font-weight: 400 !important;
}

.woocommerce form .woocommerce-form-login__submit,
.woocommerce form .woocommerce-form-register__submit {
  float: none;
  width: 100%;
  min-height: 52px;
  margin: 4px 0 0 !important;
  font-size: 15px;
}

.woocommerce-LostPassword {
  margin: 14px 0 0;
  font-size: 14px;
}

.woocommerce-privacy-policy-text p {
  margin: 4px 0 16px;
  color: var(--paper-muted);
  font-size: 13px;
  line-height: 1.5;
}

.woocommerce-password-strength {
  margin-top: 6px;
  font-size: 13px;
}

.woocommerce-password-hint {
  display: block;
  margin-top: 4px;
  color: var(--paper-muted);
  font-size: 12px;
}

/* Logged-in account */
.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.woocommerce-account .woocommerce > .woocommerce-notices-wrapper,
.woocommerce-account .woocommerce > #customer_login,
.woocommerce-account .woocommerce > .woocommerce-form-login,
.woocommerce-account .woocommerce > form.lost_reset_password,
.woocommerce-account .woocommerce > .woocommerce-message,
.woocommerce-account .woocommerce > .woocommerce-info,
.woocommerce-account .woocommerce > .woocommerce-error,
.woocommerce-account .woocommerce > p {
  grid-column: 1 / -1;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  float: none;
  width: auto;
}

.woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 8px;
  border: 1px solid var(--paper-line);
  background: #fff;
  list-style: none;
}

.content-page .woocommerce-MyAccount-navigation li {
  margin: 0;
}

.content-page .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 11px 14px;
  border-left: 2px solid transparent;
  color: var(--paper-text);
  font-size: 15px;
  text-decoration: none;
}

.content-page .woocommerce-MyAccount-navigation a:hover {
  color: var(--accent);
}

.content-page .woocommerce-MyAccount-navigation .is-active a {
  border-left-color: var(--accent);
  background: var(--paper);
  color: var(--accent);
  font-weight: 600;
}

.content-page .woocommerce-MyAccount-navigation-link--customer-logout a {
  margin-top: 6px;
  border-top: 1px solid var(--paper-line);
  color: var(--paper-muted);
}

.woocommerce-MyAccount-content {
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--paper-line);
  background: #fff;
}

.woocommerce-MyAccount-content > p:first-child {
  margin-top: 0;
}

.um-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.content-page a.um-tile {
  position: relative;
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--paper-line);
  background: var(--paper);
  color: var(--paper-text);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.content-page a.um-tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.um-tile b {
  display: block;
  font-size: 18px;
}

.um-tile small {
  color: var(--paper-muted);
  font-size: 14px;
}

.um-tile-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--accent);
}

.um-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 22px;
  background: var(--bg);
  color: var(--text);
}

.um-help b {
  font-size: 18px;
}

.content-page .um-help p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.content-page .um-help a.button {
  color: #fffaf2;
  text-decoration: none;
}

.content-page .woocommerce a.button,
.content-page .woocommerce button.button {
  text-decoration: none;
}

.woocommerce-account table.shop_table,
.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table {
  border: 1px solid var(--paper-line);
  border-radius: 0;
  background: #fff;
}

.woocommerce table.shop_table th {
  color: var(--paper-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.woocommerce-Addresses.col2-set {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.woocommerce-Addresses.col2-set::before,
.woocommerce-Addresses.col2-set::after {
  display: none;
}

.woocommerce-account .woocommerce-Addresses .woocommerce-Address {
  float: none;
  width: auto;
  padding: 18px;
  border: 1px solid var(--paper-line);
}

.woocommerce-Address-title h2 {
  margin-top: 0 !important;
  font-size: 20px;
}

.woocommerce-account fieldset {
  margin: 20px 0 0;
  padding: 18px;
  border: 1px solid var(--paper-line);
}

.woocommerce-account fieldset legend {
  padding: 0 6px;
  font-weight: 600;
}

.woocommerce form.lost_reset_password,
.woocommerce form.woocommerce-ResetPassword {
  max-width: 520px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--paper-line);
  background: #fff;
}

@media (max-width: 860px) {
  .woocommerce #customer_login.col2-set,
  .woocommerce-account .woocommerce,
  .woocommerce-Addresses.col2-set,
  .um-tiles {
    grid-template-columns: 1fr;
  }

  .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .content-page .woocommerce-MyAccount-navigation a {
    border: 1px solid var(--paper-line);
    border-left-width: 1px;
  }

  .content-page .woocommerce-MyAccount-navigation-link--customer-logout a {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .um-reg-row {
    grid-template-columns: 1fr;
  }

  .nav .language-code,
  .nav .language-chevron {
    display: none;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-cart {
    width: 38px;
    height: 38px;
  }
}


/* ---------- Varuosa päring (find a part form) ---------- */

.part-request {
  border-top: 1px solid var(--line);
}

.part-request-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.part-request-copy h2 {
  margin: 10px 0 18px;
}

.part-request-list {
  margin-top: 28px;
}

.part-request-direct {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.part-request-direct .mono {
  width: 100%;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.part-request-direct a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.part-form-card {
  padding: clamp(24px, 3.5vw, 44px);
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.part-form-step {
  margin-top: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.part-form .form-grid {
  gap: 14px 18px;
}

.part-form textarea {
  min-height: 120px;
}

/* light variant (inside the e-shop) */
.shop-part-form {
  margin-top: 24px;
  text-align: left;
}

.shop-part-form h3 {
  margin: 0 0 14px;
  font-size: clamp(20px, 2vw, 26px);
}

.part-form-light {
  border-color: var(--paper-line);
  background: #fff;
  color: var(--paper-text);
}

.part-form-light .part-form-step {
  border-bottom-color: var(--paper-line);
}

.part-form-light .field label {
  color: var(--paper-muted);
}

.part-form-light .field input,
.part-form-light .field select,
.part-form-light .field textarea {
  border-color: rgba(22, 24, 25, 0.22);
  background-color: #f6f9f9;
  color: var(--paper-text);
}

.part-form-light .field input:focus,
.part-form-light .field select:focus,
.part-form-light .field textarea:focus {
  background-color: #fff;
}

.part-form-light .field input::placeholder,
.part-form-light .field textarea::placeholder {
  color: #8a9599;
}

.part-form-light .field select option {
  background: #fff;
  color: var(--paper-text);
}

.part-form-light .file-field input[type='file']::file-selector-button {
  background: #e3ecec;
  color: var(--paper-text);
}

.part-form-light .form-note,
.section.light .part-form-light .form-note {
  color: var(--paper-muted);
}

.part-form-light .form-success,
.part-form-light .form-error {
  color: var(--paper-text);
}

@media (max-width: 980px) {
  .part-request-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .part-form .form-grid {
    grid-template-columns: 1fr;
  }

  .part-form .button {
    justify-self: stretch;
  }
}

/* ---------- Mobile contact bar: call / WhatsApp / Viber ---------- */

.mobile-contact-bar {
  display: none;
}

@media (max-width: 760px) {
  .mobile-contact-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 900;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-bottom: env(safe-area-inset-bottom, 0);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: #10242b;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
  }

  .mobile-contact-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    color: #fffaf2;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
  }

  .mobile-contact-bar a + a {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-contact-bar .mcb-call {
    background: var(--accent);
  }

  .mobile-contact-bar .mcb-wa svg {
    color: #25d366;
  }

  .mobile-contact-bar .mcb-viber svg {
    color: #a78bfa;
  }

  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }
}

.part-request .repair-list {
  border-top-color: var(--line);
}

.part-request .repair-list li {
  border-bottom-color: var(--line);
  color: var(--text);
}

@media (max-width: 760px) {
  #gt_float_wrapper {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .grecaptcha-badge {
    bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* WooCommerce clearfix pseudo-elements would become grid cells */
.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after {
  display: none;
}

.woocommerce-account .woocommerce > :empty {
  display: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  grid-column: 1;
}

.woocommerce-account .woocommerce-MyAccount-content {
  grid-column: 2;
}

@media (max-width: 860px) {
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    grid-column: 1;
  }
}

.nav-links .nav-mobile-only {
  display: none;
}

@media (max-width: 480px) {
  .nav-links .nav-mobile-only {
    display: block;
  }

  .nav-actions .nav-account {
    display: none;
  }
}

@media (max-width: 380px) {
  .nav-actions {
    gap: 4px;
  }
}

/* Category photos on white (studio images with white background) */
.shop-cat-img,
.shop-empty-art span {
  background: #fff;
}
.shop-cat-img img,
.shop-empty-art img {
  padding: 6px 10px 0;
  box-sizing: border-box;
  background: #fff !important; /* hide the dominant-colour placeholder */
}
.shop-cat {
  background: #fff;
}
