/* Энсис Технологии: общие стили сайта.
   Цвета только из брендбука: темно-синий, синий, серебро, белый (+ серебро 25% на белом).
   Шрифт Montserrat: заголовки ExtraBold/Bold, текст Medium/Regular. */

:root {
  --navy: #0d2340;
  --blue: #0072bc;
  --silver: #c7c9cc;
  --white: #ffffff;
  --mist: #f1f2f2;
  --ink-70: rgb(13 35 64 / .7);
  --line: rgb(13 35 64 / .16);
  --line-dark: rgb(199 201 204 / .36);
  --display: "Montserrat", system-ui, sans-serif;
  --text: "Montserrat", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --wrap: 1280px;
  --header-h: 76px;
  --cut: 22px;
  --ease: cubic-bezier(.2, .8, .1, 1);
  --vx-background: #0d2340;
  --vx-color-1: #ffffff;
  --vx-color-2: #0072bc;
  --vx-color-3: #c7c9cc;
  --vx-color-4: #0d2340;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--navy); font-family: var(--text); font-size: 17px; line-height: 1.5; font-weight: 500; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
body > section, body > header, body > footer { position: relative; z-index: 1; }
body > header { position: absolute; z-index: 10; top: 0; left: 0; right: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--silver); outline-offset: 4px; }

/* Buttons: blue is the action; the outline button stands on navy. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border: 1px solid var(--blue); border-radius: 0; background: var(--blue); color: var(--white); font: 600 16px/1.2 var(--text); cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease); }
.btn:hover { background: #005f9e; border-color: #005f9e; }
.btn--line { border-color: var(--silver); background: transparent; color: var(--white); }
.btn--line:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--ghost { border-color: var(--navy); background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Header */
.st-header { height: var(--header-h); color: var(--white); }
.st-header__bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: var(--gutter); }
.st-header__logo { display: block; flex: none; width: 150px; }
.st-header__logo img { width: 100%; height: auto; }
.st-nav { display: flex; align-items: center; gap: clamp(12px, 1.3vw, 22px); font-size: 13px; font-weight: 500; white-space: nowrap; }
.st-nav__group { position: relative; }
.st-nav__sub { position: absolute; top: calc(100% + 14px); left: -16px; z-index: 20; display: none; min-width: 320px; padding: 14px 0; background: var(--navy); border-top: 2px solid var(--blue); }
.st-nav__group:hover .st-nav__sub, .st-nav__group:focus-within .st-nav__sub { display: block; }
.st-nav__sub a { display: block; padding: 9px 20px; font-size: 15px; color: var(--silver); }
.st-nav__sub a:hover, .st-nav__sub a:focus-visible { color: var(--white); background: rgb(199 201 204 / .12); }
.st-header__side { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.st-header__phone { font-size: 14px; font-weight: 600; white-space: nowrap; }
.st-lang { display: flex; gap: 10px; font-size: 13px; font-weight: 600; }
.st-lang a:hover { color: var(--silver); }
.st-lang [aria-current="true"] { color: var(--silver); }
.st-header__cta { min-height: 44px; padding: 0 18px; font-size: 14px; white-space: nowrap; }
.st-header__toggle { display: none; padding: 10px 0; border: 0; background: none; color: inherit; font: 600 15px/1 var(--text); cursor: pointer; }
.st-header__panel { position: fixed; z-index: 60; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--header-h) + 24px) var(--gutter) 32px; background: var(--navy); color: var(--white); overflow-y: auto; }
.st-header__close { position: absolute; top: 0; right: var(--gutter); height: var(--header-h); border: 0; background: none; color: inherit; font: 600 15px/1 var(--text); cursor: pointer; }
.st-header__panel-links { display: grid; gap: 14px; font-size: 22px; font-weight: 700; line-height: 1.25; }
.st-header__panel-links small { display: block; margin-top: 6px; font-size: 15px; font-weight: 500; color: var(--silver); }
.st-header__panel-foot { display: grid; gap: 8px; font-size: 17px; color: var(--silver); }
@media (min-width: 1280px) {
  .st-header__panel { display: none; }
}
@media (max-width: 1279px) {
  .st-nav, .st-header__side { display: none; }
  .st-header__toggle { display: block; }
}

/* Openings: the navy pattern is the ground; the header sits transparent over it. */
.st-hero, .st-page-hero { position: relative; overflow: hidden; background: var(--navy) url("ensys-pattern-navy.svg") center / cover no-repeat; color: var(--white); }
.st-hero::before, .st-page-hero::before { content: ""; position: absolute; inset: 0; background: rgb(13 35 64 / .84); pointer-events: none; }
.st-hero > *, .st-page-hero > * { position: relative; z-index: 1; }
.st-hero { min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding: calc(var(--header-h) + 56px) var(--gutter) 48px; }
.st-page-hero { padding: calc(var(--header-h) + 56px) var(--gutter) clamp(56px, 8vw, 96px); }
.st-page-hero__in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.st-page-hero__copy { max-width: 920px; }
.st-page-hero__mark { width: clamp(96px, 10vw, 150px); }
.st-page-hero__mark img { width: 100%; height: auto; }
.st-hero__main { max-width: var(--wrap); width: 100%; margin: 0 auto; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; align-items: center; }
.st-hero__copy--home { grid-column: 1 / 8; }
.st-hero__mark-home { grid-column: 8 / 13; justify-self: end; width: min(100%, 520px); }
.st-hero__mark-home img { width: 100%; height: auto; }
.st-hero__advantages { max-width: var(--wrap); width: 100%; margin: 56px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.st-hero__advantages li { padding: 24px 28px 0 0; font-size: 17px; font-weight: 600; line-height: 1.4; }
.st-hero__advantages li + li { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.st-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--silver); }
.st-hero h1, .st-page-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -.02em; }
.st-page-hero h1 { font-size: clamp(32px, 4.4vw, 60px); max-width: 16em; }
.st-hero__lead, .st-page-hero__lead { max-width: 36em; margin-top: 28px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--silver); }
.st-page-hero__lead { margin-top: 24px; }
.st-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.st-crumbs { margin-bottom: 36px; font-size: 14px; color: var(--silver); }
.st-crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.st-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-dark); }
.st-crumbs a:hover { color: var(--white); }

/* Sections */
.st-sec { padding: clamp(72px, 9vw, 120px) var(--gutter); background: var(--white); }
.st-sec--mist { background: var(--mist); }
.st-sec--navy { background: var(--navy); color: var(--white); }
.st-sec__in { max-width: var(--wrap); margin: 0 auto; }
.st-sec__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.st-h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -.015em; }
.st-h3 { font-size: 20px; font-weight: 700; line-height: 1.25; }
.st-lead { font-size: 18px; line-height: 1.6; }
.st-muted { color: var(--ink-70); }
.st-sec--navy .st-muted, .st-sec--navy .st-lead { color: var(--silver); }
.st-cut { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); }
.st-grid { display: grid; gap: 20px; }
.st-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.st-stack > * + * { margin-top: 20px; }
.st-prose p + p { margin-top: 18px; }

/* Direction cards: the first row is larger. */
.st-dirs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.st-dir { display: flex; flex-direction: column; gap: 18px; padding: 28px; background: var(--white); border-top: 1px solid var(--navy); transition: background .35s var(--ease), color .35s var(--ease); }
.st-dir:hover { background: var(--navy); color: var(--white); }
.st-dir:hover .st-dir__more { color: var(--silver); }
.st-dir:hover .st-dir__desc { color: var(--silver); }
.st-dir__mark { width: 64px; height: 64px; }
.st-dir__mark img { width: 100%; height: 100%; }
.st-dir__name { font-size: 19px; font-weight: 700; line-height: 1.25; }
.st-dir__desc { font-size: 15px; line-height: 1.5; color: var(--ink-70); }
.st-dir__more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--blue); }
.st-dir--big { grid-column: span 3; padding: 36px 32px; }
.st-dir--big .st-dir__mark { width: 84px; height: 84px; }
.st-dir--big .st-dir__name { font-size: 24px; }
.st-dir--small { grid-column: span 4; }
.st-dirs--row1 .st-dir--big { grid-column: span 3; }
.st-dirs--row2 .st-dir--small { grid-column: span 4; }

/* Figures */
.st-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.st-fig { padding: 32px 0 36px; border-top: 1px solid var(--navy); }
.st-fig b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(44px, 5.4vw, 80px); line-height: .95; color: var(--blue); letter-spacing: -.02em; }
.st-fig span { display: block; margin-top: 12px; font-size: 16px; line-height: 1.4; }
.st-sec--navy .st-fig { border-top-color: var(--line-dark); }
.st-sec--navy .st-fig b { color: var(--white); }

/* Stages on an isometric line */
.st-stages { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.st-stages li { position: relative; padding: 34px 18px 0 0; font-size: 16px; font-weight: 600; line-height: 1.35; border-top: 1px solid var(--navy); }
.st-stages li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; background: var(--blue); transform: skewX(-30deg); }
.st-stages li b { display: block; margin-bottom: 14px; font-size: 14px; color: var(--blue); }
.st-services { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.st-services li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; }

/* Tiles: chamfered surfaces */
.st-tile { padding: 28px; background: var(--mist); clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); }
.st-tile p { margin-top: 12px; font-size: 16px; line-height: 1.55; color: var(--ink-70); }
.st-sec--navy .st-tile { background: rgb(199 201 204 / .1); }
.st-sec--navy .st-tile p { color: var(--silver); }
.st-tile--white { background: var(--white); }
.st-sec--mist .st-tile { background: var(--white); }

/* Figure statement (scrubbed) */
.st-statement { max-width: 22em; font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.2; letter-spacing: -.015em; }

/* Projects */
.st-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.st-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--navy); background: transparent; color: var(--navy); font: 600 15px/1 var(--text); cursor: pointer; }
.st-chip[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.st-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.st-project { background: var(--white); border-top: 1px solid var(--navy); }
.st-project[hidden] { display: none; }
.st-project summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: start; padding: 26px 28px; cursor: pointer; list-style: none; }
.st-project summary::-webkit-details-marker { display: none; }
.st-project__name { font-size: 19px; font-weight: 700; line-height: 1.3; }
.st-project__type { margin-top: 8px; font-size: 15px; color: var(--ink-70); }
.st-project__dir { font-size: 13px; font-weight: 600; color: var(--blue); white-space: nowrap; }
.st-project__open { width: 18px; height: 18px; position: relative; margin-top: 4px; }
.st-project__open::before, .st-project__open::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--navy); }
.st-project__open::after { transform: rotate(90deg); transition: transform .3s var(--ease); }
.st-project[open] .st-project__open::after { transform: rotate(0deg); }
.st-project__body { padding: 0 28px 28px; }
.st-project__body dl { display: grid; gap: 14px; }
.st-project__body dt { font-size: 13px; font-weight: 600; color: var(--ink-70); }
.st-project__body dd { font-size: 16px; line-height: 1.5; }
.st-project__body .st-project__link { display: inline-block; margin-top: 22px; font-size: 15px; font-weight: 600; color: var(--blue); border-bottom: 1px solid var(--blue); }
.st-projects-empty { margin-top: 24px; font-size: 16px; color: var(--ink-70); }
.st-projects-empty[hidden] { display: none; }

/* Documents */
.st-docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.st-doc { display: grid; gap: 16px; padding: 24px; background: var(--white); border-top: 1px solid var(--navy); }
.st-doc__preview { display: grid; place-items: center; min-height: 150px; background: var(--mist); color: var(--ink-70); font-size: 14px; text-align: center; padding: 16px; }
.st-doc__title { font-size: 17px; font-weight: 700; line-height: 1.35; }

/* FAQ */
.st-faq { border-top: 1px solid var(--navy); }
.st-faq details { border-bottom: 1px solid var(--navy); }
.st-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: clamp(18px, 1.7vw, 22px); font-weight: 600; line-height: 1.3; cursor: pointer; list-style: none; }
.st-faq summary::-webkit-details-marker { display: none; }
.st-faq summary::after { content: ""; flex: none; width: 18px; height: 18px; background: linear-gradient(var(--blue), var(--blue)) center / 100% 2px no-repeat, linear-gradient(var(--blue), var(--blue)) center / 2px 100% no-repeat; transition: transform .35s var(--ease); }
.st-faq details[open] summary::after { transform: rotate(45deg); }
.st-faq details p { max-width: 62em; padding: 0 0 26px; font-size: 16px; line-height: 1.6; color: var(--ink-70); }

/* Forms: a ledger with underlined fields, not boxed cards. */
.st-form { display: grid; gap: 28px; }
.st-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; }
.st-field { display: grid; gap: 8px; }
.st-field > span { font-size: 14px; font-weight: 600; color: var(--navy); }
.st-field input, .st-field textarea { width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1px solid var(--navy); border-radius: 0; background: transparent; color: var(--navy); font: 500 17px/1.4 var(--text); outline: none; resize: vertical; }
.st-field input::placeholder, .st-field textarea::placeholder { color: rgb(13 35 64 / .45); }
.st-field input:focus, .st-field textarea:focus { border-bottom: 2px solid var(--blue); padding-bottom: 11px; }
.st-group { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.st-group legend { margin-bottom: 4px; padding: 0; font-size: 14px; font-weight: 600; }
.st-group__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st-group__chips label { position: relative; }
.st-group__chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.st-group__chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--navy); font-size: 15px; font-weight: 500; transition: background .2s var(--ease), color .2s var(--ease); }
.st-group__chips input:checked + span { background: var(--navy); color: var(--white); }
.st-group__chips input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.st-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--ink-70); }
.st-consent input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--blue); }
.st-consent a, .st-legal a { color: var(--navy); text-decoration: underline; text-underline-offset: .2em; }
.st-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.st-legal { font-size: 14px; color: var(--ink-70); }
.st-status { min-height: 1.5em; font-size: 16px; font-weight: 600; }
.st-status[data-state="error"] { color: #b3261e; }
.st-status[data-state="ok"] { color: var(--blue); }
.st-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.st-form--navy .st-field > span, .st-form--navy .st-group legend { color: var(--white); }
.st-form--navy .st-field input, .st-form--navy .st-field textarea { color: var(--white); border-bottom-color: var(--silver); }
.st-form--navy .st-field input::placeholder, .st-form--navy .st-field textarea::placeholder { color: rgb(199 201 204 / .6); }
.st-form--navy .st-group__chips span { border-color: var(--silver); color: var(--white); }
.st-form--navy .st-group__chips input:checked + span { background: var(--white); color: var(--navy); }
.st-form--navy .st-consent { color: var(--silver); }
.st-form--navy .st-consent a, .st-form--navy .st-legal a { color: var(--white); }
.st-form--navy .st-legal { color: var(--silver); }
.st-form--navy .st-status[data-state="ok"] { color: var(--white); }

/* CTA band */
.st-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: clamp(40px, 5vw, 64px); background: var(--blue); color: var(--white); }
.st-band h2 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 40px); line-height: 1.15; }
.st-band p { margin-top: 12px; font-size: 17px; color: rgb(255 255 255 / .9); }
.st-band .btn { background: var(--white); border-color: var(--white); color: var(--navy); }
.st-band .btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Contacts block */
.st-contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; }
.st-contacts dt { font-size: 14px; font-weight: 600; color: var(--ink-70); }
.st-contacts dd { margin-top: 6px; font-size: 19px; font-weight: 600; line-height: 1.4; }
.st-contacts dd a { border-bottom: 1px solid var(--blue); }
.st-req { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.7; color: var(--ink-70); }

/* Stage line for production */
.st-prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--navy); }
.st-prod:first-child { border-top: 0; padding-top: 0; }
.st-prod__photo { background: var(--mist); display: grid; place-items: center; padding: 24px; }
.st-prod__photo img { max-height: 420px; width: auto; }
.st-prod__photo--tall img { max-height: 520px; }

/* Compliance text */
.st-compliance p { max-width: 58em; margin-top: 22px; font-size: 18px; line-height: 1.65; }

/* Press */
.st-news { display: flex; flex-direction: column; gap: 16px; padding: 32px; background: var(--white); border-top: 1px solid var(--navy); }
.st-news__rubric { font-size: 13px; font-weight: 600; color: var(--blue); }
.st-news__title { font-size: 20px; font-weight: 700; line-height: 1.3; }
.st-news__text { font-size: 16px; line-height: 1.55; color: var(--ink-70); }
.st-news__link { margin-top: auto; font-size: 15px; font-weight: 600; color: var(--blue); border-bottom: 1px solid var(--blue); align-self: flex-start; }

/* Floating action on direction pages */
.st-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; box-shadow: 0 10px 30px rgb(13 35 64 / .25); }

/* Footer: the slit wordmark waits under the page. */
.st-footer { position: relative; min-height: min(78svh, 680px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(48px, 8svh, 84px) var(--gutter) 28px; background: var(--navy); color: var(--white); overflow: hidden; }
.st-footer-info .st-sec__in { max-width: var(--wrap); margin: 0 auto; }
.st-footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; width: 100%; }
.st-footer__cols h2 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--silver); }
.st-footer__cols ul { display: grid; gap: 8px; margin-top: 16px; font-size: 15px; }
.st-footer__cols a:hover { color: var(--silver); }
.st-footer__req { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--silver); }
.st-footer [data-vx-wordmark] { margin: 0; width: min(100%, 1200px); align-self: center; }
.st-footer [data-vx-wordmark] img { width: 100%; height: auto; }
.st-footer__legal { max-width: var(--wrap); width: 100%; margin: 0 auto; position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 14px; color: var(--silver); }
.st-footer__legal a { text-decoration: underline; text-underline-offset: .2em; }
.st-footer__legal a:hover { color: var(--white); }

/* Responsive */
@media (max-width: 1100px) {
  .st-dirs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-dirs .st-dir--big, .st-dirs .st-dir--small, .st-dirs--row1 .st-dir--big, .st-dirs--row2 .st-dir--small { grid-column: span 1; }
  .st-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .st-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .st-hero__main { grid-template-columns: 1fr; row-gap: 40px; }
  .st-hero__copy--home, .st-hero__mark-home { grid-column: 1; }
  .st-hero__mark-home { justify-self: start; width: min(64vw, 300px); }
  .st-hero__advantages { grid-template-columns: 1fr; margin-top: 40px; }
  .st-hero__advantages li { padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
  .st-hero__advantages li + li { padding-left: 0; border-left: 0; }
  .st-page-hero__in { grid-template-columns: 1fr; }
  .st-page-hero__mark { order: -1; }
  .st-sec__head, .st-contacts, .st-prod, .st-band, .st-services, .st-form__row { grid-template-columns: 1fr; }
  .st-figs, .st-docs, .st-projects { grid-template-columns: 1fr; }
  .st-grid--3 { grid-template-columns: 1fr; }
  .st-band { gap: 24px; }
  .st-prod { gap: 28px; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; --cut: 16px; }
  body { font-size: 16px; }
  .st-dirs { grid-template-columns: 1fr; }
  .st-stages { grid-template-columns: 1fr 1fr; }
  .st-hero h1, .st-page-hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .st-actions .btn { width: 100%; }
  .st-footer__cols { grid-template-columns: 1fr; }
  .st-header__logo { width: 124px; }
  .st-float { left: 16px; right: 16px; text-align: center; }
  .st-float .btn { width: 100%; }
}

/* Added layout pieces */
.st-dir > * { display: block; }
.st-dir--big .st-dir__mark { margin-bottom: 4px; }
.st-tile__text { font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--navy); }
.st-tile--white { background: var(--white); }
.st-project--static { padding: 28px; display: grid; gap: 10px; }
.st-project--static .st-project__dir { font-size: 13px; font-weight: 600; color: var(--blue); }
.st-project__figs { margin-top: 6px; display: grid; gap: 6px; font-size: 15px; }
.st-project__figs li { padding-left: 16px; position: relative; }
.st-project__figs li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; background: var(--blue); }
.st-project__body dd ul { display: grid; gap: 6px; }
.st-project__body dd li { position: relative; padding-left: 16px; }
.st-project__body dd li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; background: var(--blue); }
.st-prod--text { grid-template-columns: 1fr; max-width: 52em; }
.st-rubrics { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.st-rubrics .st-chip { cursor: default; }
.st-news-list { gap: 20px; }
.st-actions--row { align-items: center; }
.st-legal-line { margin-top: 28px; font-size: 14px; color: var(--silver); }
.st-lead--gap { margin-top: 20px; }
.st-services--one { grid-template-columns: 1fr; }
.st-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: start; }
.st-split--form { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); }
.st-split > div > .st-h2 + .st-lead { margin-top: 0; }
.st-form__row--one { grid-template-columns: 1fr; }
.st-sec--navy .st-lead { color: var(--silver); }
.st-trail { position: relative; }
.st-trail > img { display: none; }
.st-statement + .st-prod-list { margin-top: 48px; }
.st-prod-lead { max-width: 40em; }
.st-prod-lead + .st-prod-list { margin-top: 48px; }
.st-textlink { display: inline-flex; align-items: center; min-height: 56px; font-size: 16px; font-weight: 600; color: var(--white); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.st-textlink:hover { color: var(--silver); }
@media (max-width: 900px) {
  .st-split, .st-split--form { grid-template-columns: 1fr; gap: 40px; }
}
.st-stages { margin-top: 40px; }
.st-page-hero__mark { width: clamp(120px, 14vw, 200px); }
.st-stage-head { margin-bottom: 0; }
.st-project summary > span:first-child { display: grid; gap: 8px; min-width: 0; }
.st-project summary .st-project__dir, .st-project summary .st-project__name, .st-project summary .st-project__type { display: block; margin: 0; }
.st-project__dir { text-transform: none; }
.st-project__name { font-size: 18px; }
.st-project__type { margin-top: 0; }
.st-project__open { margin-top: 6px; }
.st-form__row > *, .st-field, .st-split > *, .st-contacts > *, .st-sec__in { min-width: 0; }
.st-field input, .st-field textarea, .st-form input, .st-form textarea { max-width: 100%; }
.st-group__chips { min-width: 0; max-width: 100%; }
.st-group__chips span { max-width: 100%; }
.st-grid > *, .st-services > *, .st-tiles > * { min-width: 0; }
.st-statement { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .st-statement { font-size: clamp(24px, 6.6vw, 32px); }
  .st-statement span, .st-statement [data-vx-scrub] { overflow-wrap: anywhere; }
}
.st-statement .vx-w { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .st-statement .vx-w, .st-statement .vx-c { display: inline; }
  .st-statement .vx-w { white-space: normal; }
}
.st-contacts { margin-top: 28px; }
.st-sec--mist .st-sec__head + .st-contacts, .st-contact-block .st-sec__head + .st-contacts { margin-top: 32px; }

/* Content pass: direction illustrations, technology list, document tiles */
.st-what { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 56px; align-items: center; }
.st-what__ill { display: block; width: 100%; max-width: 360px; height: auto; justify-self: end; }
.st-sec__ill { display: block; width: min(100%, 360px); height: auto; margin-bottom: clamp(36px, 5vw, 60px); }
.st-page-hero__ill { width: min(100%, 260px); justify-self: end; }
.st-page-hero__ill img { display: block; width: 100%; height: auto; }
.st-tech { display: grid; border-top: 1px solid var(--silver); }
.st-tech__item { display: grid; grid-template-columns: minmax(80px, 128px) minmax(0, 1fr); gap: 32px; padding: 40px 0; border-bottom: 1px solid var(--silver); }
.st-tech__num { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.03em; color: var(--blue); }
.st-tech .st-h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; margin-bottom: 16px; }
.st-tech__body p { max-width: 48em; font-size: 17px; line-height: 1.6; color: var(--ink-70); }
.st-doc__preview--doc { background: var(--white); border: 1px solid var(--silver); min-height: 150px; }
.st-doc__icon { width: 56px; height: 56px; color: var(--blue); }
.st-doc__note { font-size: 15px; line-height: 1.5; color: var(--ink-70); margin-top: -4px; }
@media (max-width: 900px) {
  .st-what { grid-template-columns: 1fr; gap: 32px; }
  .st-what__ill { max-width: 240px; justify-self: start; }
  .st-page-hero__ill { width: min(100%, 220px); justify-self: start; }
}
@media (max-width: 640px) {
  .st-tech__item { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .st-sec__ill { width: min(100%, 240px); }
}

/* Visual return: photographs, cut-outs and stone accents */
.st-sec__head--stack { grid-template-columns: minmax(0, 1fr); }
.st-accent { position: absolute; z-index: 0; display: block; height: auto; pointer-events: none; }
.st-accent--cube { top: 24px; right: var(--gutter); width: 128px; }
.st-accent--rock { bottom: 8px; right: var(--gutter); width: 104px; }
@media (max-width: 767px) { .st-accent { display: none; } }

/* Direction cards: a muted cut-out in the bottom-right corner */
.st-dir__ill { display: block; width: 128px; max-width: 100%; height: auto; margin-top: 8px; align-self: flex-end; opacity: .6; }

/* Home: production text, the large ship on the right, two smaller photos under the text */
.st-prod-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.st-prod-top__text { min-width: 0; }
.st-prod-pair { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: end; margin-top: 40px; }
.st-prod-pair img { width: 100%; height: auto; }
.st-prod-top__ship { margin: 0; justify-self: end; width: min(100%, 440px); }
.st-prod-top__ship img { width: 100%; height: auto; }
.st-prod-top + .st-prod-list { margin-top: 56px; }
@media (max-width: 900px) {
  .st-prod-top { grid-template-columns: 1fr; gap: 40px; }
  .st-prod-top__ship { justify-self: stretch; width: 100%; }
}

/* Production page: cube beside the first text, bare vessel and diver photos, lists */
.st-prod--ill { grid-template-columns: minmax(0, 1fr) 240px; }
.st-prod__ill { display: block; width: 240px; height: auto; justify-self: end; align-self: center; }
.st-prod__photo--bare { position: relative; align-self: stretch; justify-self: stretch; width: 100%; min-height: 300px; padding: 0; background: none; }
.st-prod__photo--bare img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; }
.st-plist { margin-top: 24px; border-top: 1px solid var(--line); }
.st-plist-title { margin-top: 28px; font-size: 17px; font-weight: 600; }
.st-plist li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.5; }
.st-plist li::before { content: ""; position: absolute; left: 0; top: 1.1em; width: 6px; height: 6px; background: var(--blue); }
@media (max-width: 900px) {
  .st-prod--ill { grid-template-columns: 1fr; }
  .st-prod__ill { justify-self: start; width: min(100%, 240px); }
}

/* Submarine cable page: vessel and diver side by side, equal height */
.st-sec--pair { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.st-pair { display: flex; justify-content: center; align-items: flex-end; gap: clamp(24px, 4vw, 56px); }
.st-pair img { display: block; width: auto; height: clamp(300px, 38vw, 480px); }
@media (max-width: 640px) {
  .st-pair { flex-direction: column; align-items: center; }
  .st-pair img { width: min(100%, 360px); height: auto; }
}

/* Technologies: one illustration per block, to the right of the text */
.st-tech__ill { display: block; width: 100%; max-width: 220px; height: auto; justify-self: end; align-self: center; }
@media (min-width: 901px) {
  .st-tech__item { grid-template-columns: minmax(80px, 128px) minmax(0, 1fr) 220px; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .st-tech__item { grid-template-columns: minmax(64px, 96px) minmax(0, 1fr) 150px; }
  .st-tech__ill { max-width: 150px; }
}
@media (max-width: 640px) {
  .st-tech__ill { order: -1; width: min(100%, 160px); max-width: 160px; justify-self: start; }
}
