/*
 * Page-scoped styles for /about/.
 * The page follows data/baltijas-durvis-company-v2 without copying its header/footer.
 */
body.about-company {
  --about-navy: #0d2d63;
  --about-blue: #1b57a7;
  --about-line: #c9d6e7;
  --about-text: #17243d;
  --about-muted: #4f5e75;
  --about-grid: rgba(29, 87, 167, 0.1);
  --about-outer-gap: clamp(16px, 2.5vw, 32px);
  --about-section-gap: clamp(24px, 2.8vw, 36px);
  --about-shell-radius: 12px;
  margin: 0;
  overflow-x: hidden;
  /* PVC-like page backdrop (same contract as homepage /categories/). */
  background-color: #f3f8fe;
  background-image: linear-gradient(135deg, #fbfdff 0%, #edf5ff 48%, #f7fbff 100%);
}

.about-company-page,
.about-company-page * {
  box-sizing: border-box;
}

/*
 * White content surface mirrors home .site-shell / PVC .pvc-guide__surface.
 */
.about-company-page {
  --about-shell-radius: 12px;
  position: relative;
  isolation: isolate;
  width: min(var(--storefront-content-max, 1248px), calc(100% - 32px));
  max-width: var(--storefront-content-max, 1248px);
  margin: 18px auto 36px;
  color: var(--about-text);
  background: #fff;
  border: 1px solid rgba(116, 156, 204, 0.28);
  border-radius: var(--about-shell-radius);
  box-shadow: 0 18px 48px rgba(23, 73, 130, 0.08);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: 1.45;
  overflow-x: clip;
  overflow-y: visible;
}

.about-company-page > .about-hero {
  border-top-left-radius: var(--about-shell-radius);
  border-top-right-radius: var(--about-shell-radius);
}

.about-company-page > :last-child {
  border-bottom-left-radius: var(--about-shell-radius);
  border-bottom-right-radius: var(--about-shell-radius);
  overflow: hidden;
}

.about-company-page img {
  display: block;
  width: 100%;
  max-width: 100%;
}

.about-company-page a {
  color: inherit;
  text-decoration: none;
}

.about-company-page a:focus-visible {
  outline: 2px solid var(--about-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.about-company-page svg {
  display: block;
}

.about-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  color: var(--about-blue);
}

.about-icon--small {
  width: 22px;
  height: 22px;
}

.about-section {
  margin-top: var(--about-section-gap);
  overflow: hidden;
  border: 1px solid var(--about-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(13, 45, 99, 0.08);
}

.about-section-title {
  margin: 0 0 10px;
  color: var(--about-navy);
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: var(--fw-display);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.about-copy {
  margin: 0;
  color: var(--about-text);
  font-size: var(--text-body);
}

/*
 * Hero (desktop ≥641px): in-flow 16:9 banner (height = intrinsic, like home)
 * + navy HTML overlay on the clean left panel. No dark scrim, no cover-crop.
 * Mobile ≤767: stacked notebook (unchanged contract).
 * Image-only desktop (hero_show_copy_desktop=False) hides overlay, same height model.
 */
.about-hero {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--about-line);
  background: #f4f7fb;
  line-height: 0;
}

.about-hero__media {
  position: relative;
  inset: auto;
  z-index: 0;
  overflow: hidden;
}

.about-hero__media picture {
  display: block;
  width: 100%;
  height: auto;
}

.about-hero__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: unset;
  object-position: center;
}

.about-hero::after {
  display: none;
}

/* Blueprint strip disabled on desktop full-bleed (kept in DOM for a11y-neutral hide). */
.about-hero__blueprint {
  display: none;
}

.about-hero__content {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  width: min(44%, 560px);
  height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 2.4vw, 36px) clamp(16px, 1.8vw, 26px) clamp(16px, 2vw, 28px) clamp(22px, 3.2vw, 50px);
  color: var(--about-navy);
  line-height: normal;
}

.about-hero h1 {
  max-width: 520px;
  margin: 0;
  color: var(--about-navy);
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 48px);
  font-weight: var(--fw-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-transform: none;
  overflow-wrap: anywhere;
  text-shadow: none;
}

.about-hero__rule {
  display: block;
  width: 42px;
  height: 3px;
  margin: 12px 0 0;
  background: var(--about-navy);
}

.about-hero__lead {
  max-width: 460px;
  margin: 16px 0 0;
  color: var(--about-navy);
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 700;
  line-height: 1.28;
}

.about-hero__body {
  max-width: 440px;
  margin: 10px 0 0;
  color: #2a3d63;
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.55;
}

.about-hero__lead + .about-hero__body {
  margin-top: 12px;
}

/* CMS: hero_show_copy_desktop=False → image-only on PC (H1 stays for SEO).
 * Same height model as home: picture in normal flow, img height:auto. */
@media (min-width: 641px) {
  .about-hero:not(.about-hero--hide-copy-desktop) .about-hero__content {
    transform: translateY(-98px);
  }

  .about-hero--hide-copy-desktop {
    min-height: 0;
    line-height: 0;
    background: #f4f7fb;
  }

  .about-hero--hide-copy-desktop::after {
    display: none;
  }

  .about-hero--hide-copy-desktop .about-hero__media {
    position: relative;
    inset: auto;
    z-index: 0;
    overflow: hidden;
  }

  .about-hero--hide-copy-desktop .about-hero__media picture {
    display: block;
    width: 100%;
    height: auto;
  }

  .about-hero--hide-copy-desktop .about-hero__image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: unset;
    object-position: center;
  }

  .about-hero--hide-copy-desktop .about-hero__content {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

/* CMS: hero_show_copy_mobile=False → image-only on ≤640px. */
@media (max-width: 640px) {
  .about-hero--hide-copy-mobile {
    padding-top: 0;
    min-height: clamp(230px, 68vw, 360px);
  }

  .about-hero--hide-copy-mobile .about-hero__media {
    position: relative;
    inset: auto;
    height: clamp(230px, 68vw, 360px);
  }

  .about-hero--hide-copy-mobile .about-hero__content {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

.about-hero__benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 600px;
  margin-top: 28px;
}

.about-hero__benefit {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  color: var(--about-navy);
  font-size: var(--text-small);
  font-weight: 600;
  line-height: 1.25;
}

.about-hero__benefit .about-icon {
  color: var(--about-navy);
}

/* Company overview — hybrid C+D (editorial magazine + soft canvas/chips)
   Scoped to .about-overview so other sections keep shared primitives. */
.about-section.about-overview {
  border: 1px solid #d0dcea;
  border-radius: 16px;
  border-top: 3px solid var(--about-navy);
  background: linear-gradient(180deg, #f4f8fd 0%, #eaf1f9 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 12px 36px rgba(13, 45, 99, 0.07);
  overflow: hidden;
}

.about-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-height: 288px;
  padding: clamp(16px, 1.6vw, 20px);
}

.about-panel {
  min-width: 0;
  padding: clamp(18px, 1.65vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 6px 18px rgba(13, 45, 99, 0.05);
}

.about-overview .about-section-title {
  margin-bottom: 14px;
  padding-left: 0;
  border-left: 0;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.015em;
  line-height: 1.18;
}

.about-overview .about-copy {
  color: #152033;
  font-size: var(--text-md);
  font-weight: 500;
  line-height: 1.6;
  max-width: 48ch;
}

.about-panel--photo {
  display: flex;
  flex-direction: column;
}

.about-panel--photo .about-copy {
  margin-bottom: 16px;
}

.about-panel__media {
  aspect-ratio: 75 / 31;
  margin-top: auto;
  overflow: hidden;
  border: 1px solid #e0eaf5;
  border-radius: 10px;
  background: #edf2f7;
}

.about-panel__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.about-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
}

.about-stat {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  align-items: start;
  padding: 12px 12px 11px;
  border: 1px solid #e2ebf5;
  border-radius: 10px;
  background: #f3f7fc;
}

.about-stat--plain {
  grid-template-columns: minmax(0, 1fr);
}

.about-stat__body {
  min-width: 0;
}

.about-stat__value {
  display: block;
  margin: 0;
  color: var(--about-navy);
  font-family: var(--font-sans);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.about-stat__label {
  display: block;
  margin: 6px 0 0;
  color: #334864;
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: 0.01em;
}

.about-timeline {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  padding: 10px 12px;
  list-style: none;
  border: 1px solid #e2ebf5;
  border-radius: 10px;
  background: #f3f7fc;
}

.about-timeline__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 0 9px 12px;
  border-bottom: 0;
  border-left: 2px solid #d5e1f0;
  font-size: var(--text-md);
  line-height: 1.4;
}

.about-timeline__item:last-child {
  padding-bottom: 2px;
}

.about-timeline__item:first-child {
  padding-top: 2px;
}

.about-timeline__value {
  color: var(--about-navy);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.about-timeline__label {
  min-width: 0;
  color: #1c2a42;
  font-weight: 500;
}

/* Partners — P4 logo bar + compact body (soft canvas, no navy top bar) */
.about-section.about-partners {
  border: 1px solid #d0dcea;
  border-radius: 16px;
  background: linear-gradient(180deg, #f4f8fd 0%, #eaf1f9 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 12px 36px rgba(13, 45, 99, 0.07);
  overflow: hidden;
}

.about-partners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(16px, 1.6vw, 20px);
}

.about-partner-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 6px 18px rgba(13, 45, 99, 0.05);
}

.about-partner-card:last-child {
  border-right: 0;
}

.about-partner-logo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e2ebf5;
  background: #f3f7fc;
}

.about-partner-badge {
  flex: 0 0 auto;
  color: var(--about-navy);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.72;
}

.about-partner-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  flex: 1 1 auto;
  min-width: 0;
  min-height: 180px;
}

.about-partner-card__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(14px, 1.4vw, 18px) clamp(14px, 1.4vw, 16px);
}

.about-partners .about-section-title {
  margin-bottom: 8px;
  padding-bottom: 0;
  border-bottom: 0;
  font-size: var(--text-2xl);
  letter-spacing: -0.015em;
}

.about-partners .about-copy {
  color: #152033;
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 1.55;
  max-width: none;
}

.about-partners .about-more {
  margin-top: auto;
  padding-top: 12px;
}

.about-partner-card__body > picture,
.about-partner-card__body > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  align-self: stretch;
}

.about-partner-card__body > picture img,
.about-partner-card__body > img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.about-partner-logo {
  min-width: 0;
  margin: 0;
}

.about-partner-logo__link,
.about-partner-logo__image {
  display: inline-flex;
  width: min(100%, 160px);
  max-width: 100%;
  align-items: center;
  justify-content: flex-start;
  vertical-align: top;
  padding: 6px 10px;
  border: 1px solid #e2ebf5;
  border-radius: 10px;
  background: #fff;
}

.about-partner-logo__link {
  transition: opacity 160ms ease, background-color 160ms ease;
}

.about-partner-logo__link:hover {
  opacity: 1;
  background: #f8fafc;
}

.about-company-page .about-partner-logo__link:focus-visible {
  outline-width: 3px;
  outline-offset: 4px;
  border-radius: 10px;
}

.about-partner-logo picture {
  display: block;
  width: 100%;
}

.about-partner-logo img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.about-partner-logo--dre .about-partner-logo__link,
.about-partner-logo--dre .about-partner-logo__image {
  width: min(100%, 140px);
}

.about-partner-logo--martom .about-partner-logo__link,
.about-partner-logo--martom .about-partner-logo__image {
  width: min(100%, 170px);
}

.about-company-page .about-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--about-blue);
  font-size: var(--text-small);
  font-weight: 700;
}

.about-more:hover {
  text-decoration: underline;
}

.about-more:focus-visible {
  text-decoration: underline;
  outline: 2px solid var(--about-blue);
  outline-offset: 3px;
}

/* Directions and metalwork */
.about-directions,
.about-metal,
.about-offer,
.about-workflow {
  padding: 15px 14px 18px;
}

.about-direction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 16px;
}

.about-direction-card {
  min-width: 0;
  padding: 12px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(13, 45, 99, 0.12);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.about-direction-card:hover,
.about-direction-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(13, 45, 99, 0.18);
}

.about-direction-card__head {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 7px;
  color: var(--about-navy);
  font-size: var(--text-small);
  font-weight: 700;
  line-height: 1.2;
}

.about-direction-card__media {
  overflow: hidden;
  border-radius: 2px;
  line-height: 0;
}

.about-direction-card__media picture {
  display: block;
}

.about-direction-card img {
  aspect-ratio: 300 / 206;
  width: 100%;
  height: auto;
  border-radius: 2px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.22s ease;
}

.about-direction-card:hover img,
.about-direction-card:focus-within img {
  transform: scale(1.05);
}

.about-direction-card p,
.about-metal-card p {
  margin: 8px 2px 0;
  color: #26344a;
  font-size: var(--text-small);
  line-height: 1.35;
}

.about-direction-card p {
  font-size: var(--text-md);
}

.about-metal__intro {
  margin-top: -2px;
  margin-bottom: 11px;
}

.about-metal-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.about-metal-card {
  display: grid;
  grid-column: span 2;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--about-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.about-metal-card:hover,
.about-metal-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(13, 45, 99, 0.18);
}

.about-metal-grid .about-metal-card--last-two-first {
  grid-column: 2 / span 2;
}

.about-metal-grid .about-metal-card--last-two-second {
  grid-column: 4 / span 2;
}

.about-metal-grid .about-metal-card--last-one {
  grid-column: 3 / span 2;
}

.about-metal-card__media {
  overflow: hidden;
  border-radius: 2px;
  line-height: 0;
}

.about-metal-card__media picture {
  display: block;
}

.about-metal-card img {
  aspect-ratio: 300 / 124;
  width: 100%;
  height: auto;
  border-radius: 2px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.22s ease;
}

.about-metal-card:hover img,
.about-metal-card:focus-within img {
  transform: scale(1.05);
}

.about-metal-card h3 {
  margin: 6px 0 4px;
  padding: 0;
  color: var(--about-navy);
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.5vw, 18px);
}

.about-metal-card p {
  margin: 0;
  padding: 0;
}

/* Offer and workflow */
.about-offer > .about-section-title {
  text-align: center;
}

.about-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  margin-top: 10px;
}

.about-offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--about-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(13, 45, 99, 0.09);
  text-align: center;
  transition: box-shadow 0.24s ease;
}

.about-offer-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 3px;
  background: var(--about-blue);
  opacity: 0.52;
  transition: opacity 0.24s ease;
}

.about-offer-card:hover {
  box-shadow: 0 9px 24px rgba(13, 45, 99, 0.15);
}

.about-offer-card:hover::before {
  opacity: 1;
}

.about-offer__media {
  aspect-ratio: 24 / 7;
  overflow: hidden;
  background: #dfeaf6;
  line-height: 0;
}

.about-offer__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.about-offer__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.26s ease;
}

.about-offer-card:hover .about-offer__image {
  transform: scale(1.035);
}

.about-offer__body {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 0 14px 16px;
}

.about-offer__head {
  display: flex;
  width: calc(100% - 20px);
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: -20px auto 10px;
  padding: 9px 12px;
  border: 1px solid var(--about-line);
  border-radius: 3px;
  color: var(--about-navy);
  background: #fff;
  box-shadow: 0 4px 10px rgba(13, 45, 99, 0.1);
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.about-offer-card--no-media .about-offer__body {
  padding-top: 16px;
}

.about-offer-card--no-media .about-offer__head {
  margin-top: 0;
}

.about-offer-grid ul {
  display: grid;
  flex: 1 1 auto;
  justify-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-body);
  text-align: center;
}

.about-offer-grid li {
  width: fit-content;
  max-width: 100%;
}

.about-offer-grid li::before {
  content: "›";
  margin-right: 6px;
  color: var(--about-blue);
  font-weight: 700;
}

.about-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  margin-top: 10px;
}

.about-step {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  min-height: 98px;
  padding: 14px 12px;
  border: 1px solid var(--about-line);
  border-radius: 4px;
  background: #fff;
}

.about-step__body {
  min-width: 0;
}

.about-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 34px;
  right: -22px;
  color: #6d88ad;
  font-size: var(--text-2xl);
}

.about-step h3 {
  margin: 0 0 6px;
  color: var(--about-navy);
  font-size: var(--text-body);
}

.about-step p {
  margin: 0;
  font-size: var(--text-small);
  line-height: 1.4;
}

/* Value panels */
.about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.about-value {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--about-line);
  background: #fff;
}

.about-value:last-child {
  border-right: 0;
}

.about-value__content {
  flex: 1 1 auto;
  padding: 20px;
}

.about-value p,
.about-value ul {
  max-width: none;
  font-size: var(--text-small);
}

.about-value p {
  margin: 0;
}

.about-value ul {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.about-value li::before {
  content: "✓";
  margin-right: 9px;
  color: var(--about-blue);
  font-weight: 700;
}

.about-value__media {
  flex: 0 0 clamp(165px, 15vw, 210px);
  min-height: 0;
  overflow: hidden;
  border-top: 1px solid var(--about-line);
  background: #edf2f7;
}

.about-value__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.about-value__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-value--coop {
  background: linear-gradient(135deg, #fff 0 58%, rgba(29, 87, 167, 0.09) 100%);
}

/* Page CTA; the shared CMS footer still renders after this section. */
.about-cta {
  min-height: 148px;
  margin-top: var(--about-section-gap);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-top: 1px solid #214d87;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(rgba(4, 40, 91, 0.93), rgba(4, 40, 91, 0.97)),
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    #082f69;
  background-size: auto, 40px 40px, 40px 40px, auto;
}

.about-cta__inner {
  padding: 20px;
}

.about-cta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
}

.about-cta p {
  margin: 4px 0 8px;
  font-size: var(--text-body);
}

.about-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
  margin-top: 10px;
}

.about-cta__phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: var(--text-5xl);
  line-height: 1;
  border-radius: 4px;
}

.about-cta__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.about-cta__secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
}

.about-cta__phone:focus-visible,
.about-cta__secondary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.about-cta__phone .about-icon {
  width: 38px;
  height: 38px;
  color: #fff;
}

@media (max-width: 1100px) {
  .about-hero--hide-copy-desktop {
    min-height: 0;
  }

  .about-hero__content {
    width: min(48%, 480px);
    padding-left: 24px;
  }

  .about-hero__benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 340px;
  }

  .about-partners {
    grid-template-columns: 1fr;
  }

  .about-partner-card {
    border-right: 0;
    border-bottom: 0;
  }

  .about-partner-card:last-child {
    border-bottom: 0;
  }

  .about-direction-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-direction-grid {
    gap: 20px 14px;
  }

  .about-metal-grid {
    gap: 14px;
  }

  /* Vertical process rail: preserves step order when 5-col desktop no longer fits. */
  .about-steps {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    max-width: 720px;
    margin-inline: auto;
    padding-left: 28px;
  }

  .about-steps::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 9px;
    width: 2px;
    background: linear-gradient(180deg, var(--about-blue), var(--about-line));
  }

  .about-step {
    min-height: 0;
    margin: 0 0 12px;
    border-radius: 4px;
  }

  .about-step:last-child {
    margin-bottom: 0;
  }

  .about-step:not(:last-child)::after {
    content: none;
  }

  .about-step::before {
    content: "";
    position: absolute;
    top: 22px;
    left: -23px;
    z-index: 1;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--about-blue);
    box-shadow: 0 0 0 1px var(--about-line);
  }

}

@media (max-width: 900px) {
  .about-direction-grid,
  .about-offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .about-value,
  .about-value:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--about-line);
  }

  .about-value:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 767px) {
  body.about-company {
    --about-outer-gap: 0px;
  }

  .about-company-page {
    font-size: var(--text-small);
  }

  .about-section {
    margin-inline: 10px;
  }

  /*
   * Mobile stacked hero: notebook + live text, then full image (no cover-crop).
   * DOM is media → content; column-reverse yields content → media.
   */
  .about-hero {
    display: flex;
    min-height: 0;
    flex-direction: column-reverse;
    padding-top: 0;
    background-color: #f3f8fe;
    background-image:
      linear-gradient(rgba(18, 60, 134, 0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(18, 60, 134, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
  }

  .about-hero__media {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    height: auto;
    width: calc(100% - 16px);
    margin-inline: 8px;
    overflow: visible;
    opacity: 1;
    line-height: 0;
  }

  .about-hero__media picture,
  .about-hero__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
  }

  .about-hero::after {
    display: none;
  }

  .about-hero__content,
  .about-hero:not(.about-hero--hide-copy-desktop) .about-hero__content {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    width: 100%;
    height: auto;
    transform: none;
    padding: 30px 20px 18px;
    color: var(--about-text);
    background: transparent;
  }

  .about-hero--hide-copy-mobile,
  .about-hero--hide-copy-mobile .about-hero__media {
    min-height: 0;
    height: auto;
  }

  .about-hero h1 {
    color: var(--about-navy);
    font-size: clamp(36px, 4.5vw, 48px);
    text-shadow: none;
  }

  .about-hero__lead {
    color: var(--about-navy);
    font-size: clamp(16px, 1.5vw, 18px);
  }

  .about-hero__body {
    max-width: none;
    color: var(--about-text);
  }

  .about-hero__benefit {
    color: var(--about-navy);
  }

  .about-hero__benefit .about-icon {
    color: var(--about-blue);
  }

  .about-hero__benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .about-overview {
    grid-template-columns: 1fr;
  }

  .about-stats {
    max-width: 360px;
  }

  .about-partner-card__body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .about-partner-card__body > picture,
  .about-partner-card__body > img {
    order: -1;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .about-partner-card__body > picture img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .about-direction-grid,
  .about-metal-grid,
  .about-offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-metal-card,
  .about-metal-grid .about-metal-card--last-two-first,
  .about-metal-grid .about-metal-card--last-two-second,
  .about-metal-grid .about-metal-card--last-one {
    grid-column: auto;
  }

  .about-offer-card,
  .about-offer-card:nth-child(n) {
    border: 1px solid var(--about-line);
  }

  .about-steps {
    max-width: none;
  }

  .about-cta {
    margin-top: var(--about-section-gap);
  }
}

@media (max-width: 640px) {
  .about-company-page {
    --about-shell-radius: 8px;
    width: calc(100% - 16px);
    margin: 8px auto 16px;
  }
}

@media (max-width: 420px) {
  .about-direction-grid,
  .about-metal-grid,
  .about-offer-grid {
    grid-template-columns: 1fr;
  }

  .about-offer-card,
  .about-offer-card:nth-child(n) {
    border: 1px solid var(--about-line);
  }

  .about-cta__phone {
    gap: 8px;
    font-size: var(--text-4xl);
  }

  .about-cta__phone .about-icon {
    width: 30px;
    height: 30px;
  }

  .about-cta__actions {
    flex-direction: column;
    gap: 12px;
  }
}

/* P3 motion: applied only when JS enables .js-about-motion (no FOUC without JS). */
.about-company-page.js-about-motion .about-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
  will-change: opacity, transform;
}

.about-company-page.js-about-motion .about-reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .about-company-page.js-about-motion .about-reveal,
  .about-company-page.js-about-motion .about-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

  .about-direction-card,
  .about-direction-card:hover,
  .about-direction-card:focus-within,
  .about-direction-card img,
  .about-direction-card:hover img,
  .about-direction-card:focus-within img,
  .about-metal-card,
  .about-metal-card:hover,
  .about-metal-card:focus-within,
  .about-metal-card img,
  .about-metal-card:hover img,
  .about-metal-card:focus-within img,
  .about-offer-card,
  .about-offer-card:hover,
  .about-offer-card::before,
  .about-offer-card:hover::before,
  .about-offer__image,
  .about-offer-card:hover .about-offer__image {
    transform: none;
    transition: none;
  }

  .about-direction-card:hover,
  .about-direction-card:focus-within {
    box-shadow: 0 4px 14px rgba(13, 45, 99, 0.12);
  }

  .about-metal-card:hover,
  .about-metal-card:focus-within {
    box-shadow: none;
  }

  .about-offer-card:hover {
    box-shadow: 0 4px 14px rgba(13, 45, 99, 0.09);
  }
}
