@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
}

:root {
  --logo-red: #f04030;
  --logo-gold: #f0c000;
  --logo-green: #009050;
  --logo-blue: #4080f0;
  --blue: #2457c5;
  --blue-deep: #16356f;
  --ink: #1b2430;
  --muted: #5c6773;
  --line: #e2e6eb;
  --paper: #f4f6f8;
  --white: #ffffff;
  --tone-blue: #2457c5;
  --tone-red: #c42e22;
  --tone-gold: #6e5200;
  --tone-green: #007a44;
  --header-h: 4.75rem;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

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

h1, h2, h3, h4, p {
  margin-top: 0;
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

a {
  color: var(--blue);
}

a:hover {
  color: var(--blue-deep);
}

:focus-visible {
  outline: 3px solid var(--logo-blue);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--white);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 6px;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.brand-stripe {
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--logo-red) 0 25%,
    var(--logo-gold) 25% 50%,
    var(--logo-green) 50% 75%,
    var(--logo-blue) 75% 100%
  );
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--blue);
}

.uk-flag {
  width: 1.35rem;
  height: 0.68rem;
  display: block;
  flex: none;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(16, 32, 56, 0.16);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 48px;
  height: auto;
  display: block;
}

.brand:hover {
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.is-current {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger::before { top: -6px; }
.burger::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .burger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .burger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .burger::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - var(--header-h) - 2px);
  color: var(--white);
  overflow: hidden;
}

.hero-photo,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-photo {
  object-fit: cover;
  object-position: 62% center;
}

.hero-shade {
  background: linear-gradient(
    100deg,
    rgba(10, 22, 40, 0.92) 0%,
    rgba(10, 22, 40, 0.78) 36%,
    rgba(10, 22, 40, 0.38) 64%,
    rgba(10, 22, 40, 0.16) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 4.5rem;
  padding-bottom: 4rem;
}

.hero h1 {
  max-width: 12em;
  margin-bottom: 1rem;
  color: var(--white);
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  line-height: 1.05;
}

.hero h1::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 4px;
  margin-top: 1.15rem;
  background: linear-gradient(
    90deg,
    var(--logo-red) 0 25%,
    var(--logo-gold) 25% 50%,
    var(--logo-green) 50% 75%,
    var(--logo-blue) 75% 100%
  );
}

.hero-text {
  max-width: 38rem;
  margin-bottom: 0;
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.94);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-deep);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.78);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.section {
  padding: 4.25rem 0;
}

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

.section-lead {
  text-align: center;
}

.section-lead .prose {
  max-width: 44rem;
  margin-inline: auto;
}

.section-lead .points li {
  text-align: center;
}

.section-lead .icon {
  margin-inline: auto;
}

.prose {
  max-width: 42rem;
}

.prose p + p,
.about-copy p + p {
  margin-top: 1rem;
}

.section-head {
  margin-bottom: 1.75rem;
}

#challenges,
#solutions,
#customer-success,
#about,
#contact,
#production-planning,
#maintenance-management,
#mrp-software,
#calibration-management {
  scroll-margin-top: 5.75rem;
}

.section-head p {
  max-width: 44rem;
  margin-bottom: 0;
}

.section-head p + p {
  margin-top: 1rem;
}

#challenges .section-head {
  text-align: center;
}

#challenges .section-head p {
  margin-inline: auto;
}

#solutions .section-head {
  text-align: center;
}

#solutions .section-head p {
  margin-inline: auto;
}

.success-head {
  margin-bottom: 2rem;
  text-align: center;
}

.success-head h2 {
  max-width: none;
  margin-inline: auto;
  font-size: clamp(1.35rem, 2.8vw, 2.25rem);
}

@media (min-width: 768px) {
  .success-head h2 {
    white-space: nowrap;
  }
}

.success-head .section-subtitle,
.success-head .success-note {
  max-width: 40rem;
  margin-inline: auto;
}

.section-subtitle {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.success-note {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.success-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.success-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--mark, var(--logo-blue));
  border-radius: 12px;
  padding: 1.35rem 1.25rem 1.4rem;
  box-shadow: 0 1px 2px rgba(27, 36, 48, 0.04);
}

.success-card .kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.65rem;
  max-width: 20rem;
  margin-inline: auto;
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

.success-card h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.75rem;
  margin-bottom: 1.15rem;
  padding-inline: 0.25rem;
  font-size: 1.18rem;
  line-height: 1.28;
}

.success-copy {
  margin: 0 auto 0;
  max-width: 21rem;
  text-align: left;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.success-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-height: 11.75rem;
  margin-bottom: 1.15rem;
  padding: 1rem 0.85rem 0.85rem;
  border-radius: 10px;
  background: var(--paper);
}

.success-visual:has(.success-shot) {
  gap: 0.85rem;
  min-height: clamp(16rem, 32vw, 20rem);
}

.success-visual .metric-delta {
  margin-top: 0.75rem;
  padding-top: 0;
}

.metric-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem 0.65rem;
  align-items: center;
  width: 100%;
}

.success-shot {
  display: block;
  width: 100%;
  height: clamp(12rem, 26vw, 15.5rem);
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: contain;
  object-position: center;
  background: var(--white);
}

.success-highlight {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  color: var(--mark-ink, var(--tone-blue));
}

.metric-arrow {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
  color: color-mix(in srgb, var(--mark, var(--logo-blue)) 55%, var(--muted));
}

.metric-arrow--oee {
  align-self: center;
}

.metric-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  text-align: center;
  padding: 0.7rem 0.45rem 0.75rem;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
}

.metric-slot--highlight {
  border-color: color-mix(in srgb, var(--mark, var(--logo-blue)) 35%, var(--line));
  background: color-mix(in srgb, var(--mark, var(--logo-blue)) 8%, white);
}

.metric-slot .time-bar-track {
  width: 100%;
  margin-top: 0.65rem;
}

.metric-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}

.metric-value {
  display: block;
  margin-top: 0.35rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.metric-unit {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.76rem;
  line-height: 1.3;
  color: var(--muted);
}

.metric-delta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tone-green);
}

.metric-delta--points {
  color: var(--mark-ink, var(--tone-red));
}

.metric-delta-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.oee-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.65rem;
  align-items: center;
  justify-items: center;
  width: 100%;
  flex: 1;
  padding-bottom: 1.35rem;
}

.oee-ring-wrap {
  position: relative;
  width: 5.25rem;
  height: 5.25rem;
}

.oee-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    var(--mark, var(--logo-red)) calc(var(--fill) * 1%),
    var(--line) 0
  );
  mask: radial-gradient(farthest-side, transparent calc(100% - 0.55rem), #000 calc(100% - 0.54rem));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 0.55rem), #000 calc(100% - 0.54rem));
}

.oee-ring-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.oee-ring-caption {
  position: absolute;
  left: 50%;
  bottom: -1.25rem;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.time-bar-track {
  display: block;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.time-bar-fill {
  display: block;
  height: 100%;
  width: var(--width);
  min-width: 0.35rem;
  border-radius: inherit;
  background: var(--mark, var(--logo-green));
}

.time-bar-fill--before {
  opacity: 0.42;
}

.challenge-body .kicker,
.challenge-body h3 {
  text-align: center;
}

.challenge-body .kicker {
  margin-bottom: 0.85rem;
}

.product-body .kicker {
  margin-bottom: 0.85rem;
}

.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.points li {
  background: var(--paper);
  border-radius: 10px;
  padding: 1.25rem;
}

.points h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.points p {
  margin-bottom: 0;
  color: var(--muted);
}

.icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--logo-blue) 14%, white);
  color: var(--blue);
}

.icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.challenge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.challenge,
.product {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.challenge {
  border-top: 4px solid var(--mark, var(--logo-blue));
}

.challenge img,
.about-media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.challenge-body,
.product-body {
  padding: 1.15rem 1.25rem 1.3rem;
}

.kicker {
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mark-ink, var(--blue));
}

.tone-blue { --mark: var(--logo-blue); --mark-ink: var(--tone-blue); }
.tone-red { --mark: var(--logo-red); --mark-ink: var(--tone-red); }
.tone-gold { --mark: var(--logo-gold); --mark-ink: var(--tone-gold); }
.tone-green { --mark: var(--logo-green); --mark-ink: var(--tone-green); }

.challenge p,
.product p {
  margin-bottom: 0;
}

.more {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.more:hover {
  text-decoration: underline;
}

.product {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-left: 4px solid var(--mark, var(--logo-blue));
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(27, 36, 48, 0.04);
}

.product + .product {
  margin-top: 1.5rem;
}

.product-media--gallery {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.product-gallery-viewport {
  --gallery-h: clamp(16rem, 32vw, 22rem);
  width: 100%;
  height: var(--gallery-h);
  padding: 0.65rem 0.85rem;
  overflow: hidden;
  box-sizing: border-box;
}

.product-gallery-track {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-gallery-track > li {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.product-gallery-track > li.is-active {
  display: flex;
}

.product-media--gallery img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: contain;
  object-position: center;
  background: var(--white);
}

.product-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 0.5rem 0.75rem;
}

.product-gallery-dots:has(button:only-child) {
  display: none;
}

.product-gallery-dots button {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.product-gallery-dots button:hover {
  background: color-mix(in srgb, var(--mark, var(--logo-gold)) 45%, var(--line));
}

.product-gallery-dots button[aria-selected="true"] {
  background: var(--mark, var(--logo-gold));
  transform: scale(1.2);
}

.product-gallery-dots button:focus-visible {
  outline: 2px solid var(--mark, var(--logo-gold));
  outline-offset: 3px;
}

.product h3 {
  font-size: 1.4rem;
}

.product .value {
  margin-top: 0.35rem;
  font-size: 1.125rem;
}

.product h4 {
  margin: 1.1rem 0 0.35rem;
  font-size: 0.98rem;
  letter-spacing: 0;
}

.product ul {
  margin: 0;
  padding-left: 1.15rem;
}

.product li + li {
  margin-top: 0.25rem;
}

.section-cta {
  margin: 1.75rem 0 0;
  text-align: center;
}

.about-layout {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.about-head {
  margin-bottom: 0;
  text-align: center;
}

.about-head h2 {
  max-width: 36rem;
  margin-inline: auto;
}

.about-head p {
  max-width: 44rem;
  margin-inline: auto;
  color: var(--ink);
}

.about-capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  align-items: stretch;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.about-capability {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--mark, var(--logo-blue));
  border-radius: 12px;
  padding: 1.35rem 1.25rem 1.4rem;
  box-shadow: 0 1px 2px rgba(27, 36, 48, 0.04);
}

.about-capability .icon {
  flex: none;
  background: color-mix(in srgb, var(--mark, var(--logo-blue)) 14%, white);
  color: var(--mark-ink, var(--tone-blue));
}

.about-capability h3 {
  display: flex;
  align-items: flex-start;
  min-height: 3.85rem;
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
  line-height: 1.32;
}

.about-capability p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

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

.contact-list li + li {
  margin-top: 1rem;
}

.contact-list span {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list a,
.contact-list address {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.contact-phone,
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.contact-list .contact-phone,
.contact-list .contact-email {
  display: flex;
}

.contact-list .contact-phone {
  margin-top: 0.55rem;
}

.contact-list .contact-email {
  margin-top: 0.45rem;
}

.contact-phone svg,
.contact-email svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}

.contact-list a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.contact-place {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.45rem 0 0;
  font-weight: 600;
  color: var(--ink);
}

.contact-place svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}

.photo-credit {
  margin: 0;
  padding: 0.4rem 0.7rem 0.55rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
}

.photo-credit a {
  color: inherit;
}

.enquiry-form,
.result-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
}

.section-tint .enquiry-form {
  background: var(--white);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
}

.span-2 {
  grid-column: span 2;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #c9d0d8;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 0.7rem 0.75rem;
  min-height: 3rem;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #9aa6b2;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--tone-red);
}

.field-error {
  min-height: 0;
  margin: 0.3rem 0 0;
  color: var(--tone-red);
  font-size: 0.875rem;
}

.field-error:empty {
  display: none;
}

.field .consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0.35rem 0 1rem;
  font-size: 0.95rem;
  font-weight: 400;
}

.consent input {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  margin: 0.22rem 0 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  flex: none;
  accent-color: var(--blue);
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-notice,
.form-status {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
}

.form-notice {
  background: #f3f6fb;
  border: 1px solid #d5e0f0;
}

.form-status:empty {
  display: none;
}

.form-status.is-success {
  background: #e7f6ee;
  color: #0c5a32;
  border: 1px solid #b7e2c8;
}

.form-status.is-error {
  background: #fdecea;
  color: #8e2218;
  border: 1px solid #f4c7c2;
}

.site-footer {
  background: var(--blue-deep);
  color: #e7edf5;
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer .brand {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.site-footer p {
  margin-bottom: 0;
  color: #d5deea;
}

.site-footer a {
  color: #e7edf5;
  text-decoration: none;
}

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

.site-footer .contact-place {
  color: #e7edf5;
  font-weight: 500;
}

.footer-label {
  margin-bottom: 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b7c3d4;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.4rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.25rem;
}

.cookie-settings {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

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

.cookie-dialog {
  position: fixed;
  z-index: 30;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 42rem;
  margin-inline: auto;
  padding: 1.25rem 1.35rem 1.15rem;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(22, 53, 111, 0.18);
}

.cookie-dialog h2 {
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
}

.cookie-dialog p {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.cookie-actions a {
  margin-right: auto;
  font-weight: 600;
}

.cookie-reject {
  background: var(--white);
  color: var(--ink);
  border-color: #c9d0d8;
}

.cookie-reject:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #c5d0de;
  font-size: 0.95rem;
}

.legal {
  padding-bottom: 4rem;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal ul {
  padding-left: 1.2rem;
}

.result-page {
  min-height: 100vh;
  display: grid;
  align-items: center;
  background: var(--paper);
  padding: 3rem 0;
}

.result-card {
  max-width: 38rem;
  margin-inline: auto;
  padding: 2rem;
}

.result-card h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-header {
    position: sticky;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.5rem 1.25rem 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0;
  }

  .points,
  .about-capabilities,
  .challenge-grid,
  .success-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .product-gallery-viewport {
    --gallery-h: clamp(13rem, 48vw, 17rem);
    padding-inline: 0.65rem;
  }

  .success-shot {
    height: clamp(10rem, 42vw, 13rem);
  }

  .success-visual:has(.success-shot) {
    min-height: clamp(14rem, 48vw, 17.5rem);
  }

  .about-capability h3 {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .header-phone {
    font-size: 0.88rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .form-grid,
  .span-2 {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .hero {
    align-items: flex-end;
  }

  .hero-shade {
    background: linear-gradient(
      180deg,
      rgba(10, 22, 40, 0.35) 0%,
      rgba(10, 22, 40, 0.55) 42%,
      rgba(10, 22, 40, 0.9) 100%
    );
  }

  .hero-inner {
    padding-top: 2.5rem;
    padding-bottom: 2.25rem;
  }

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

  .cookie-dialog {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .cookie-actions .btn {
    flex: 1 1 8rem;
  }

  .success-card h3 {
    min-height: 0;
  }

  .success-visual {
    min-height: 0;
  }

  .metric-value {
    font-size: 1.7rem;
  }

  .metric-label {
    font-size: 0.62rem;
  }
}

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