/* Girandra ir KO — v7. One palette (night, paper, weld orange), three type styles. Tokens first. */

@font-face {
  font-family: "Roboto Flex";
  src: url("fonts/robotoflex.woff?v=4") format("woff");
  font-weight: 820;
  font-stretch: 151%;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("fonts/onest.woff?v=4") format("woff");
  font-weight: 400 650;
  font-display: swap;
}
@property --weld { syntax: "<percentage>"; inherits: true; initial-value: 130%; }

:root {
  /* surfaces */
  --night: #070c14;          /* scene, hero, about, contact finale */
  --night-2: #0e1724;        /* partners band, footer, cards on night */
  --night-3: #172232;        /* hover on night cards */
  --paper: #f3f4f6;          /* light sections */
  --white: #ffffff;          /* cards on paper, form */
  /* text */
  --on-dark: #f1f4f7;
  --on-dark-2: #a9b5c1;      /* 9.4:1 on night */
  --on-dark-3: #7f8c99;      /* 5.6:1 on night */
  --ink: #0b1220;
  --ink-2: #3e4a57;          /* 8.6:1 on paper */
  --ink-3: #5c6876;          /* 5.4:1 on paper */
  /* the one accent: the welding arc */
  --accent: #ff6a13;
  --accent-hover: #ff8640;
  --accent-ink: #0b1220;     /* text on accent, 7.6:1 */
  --hot: #fff3dc;
  --error: #c0261d;
  --field: #7d8995;
  --raw: #5a6773;            /* an unwelded roster name, 3.4:1 on night (large text) */
  --line: rgb(241 244 247 / 0.12);
  --line-ink: rgb(11 18 32 / 0.14);

  --f-display: "Roboto Flex", "Segoe UI", sans-serif;
  --f-text: "Onest", "Segoe UI", system-ui, sans-serif;

  --r-card: 0;
  --r-ctl: 0;
  /* one corner system (v27, FIRST_TIME_RIGHT B4): square photos and fields; controls and plates have their corners cut
     at 45° like a flame-cut steel plate — the top-left and bottom-right corners, --cut deep */
  --cut: 12px;
  --plate: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  --shadow-card: 0 1px 2px rgb(11 18 32 / 0.06), 0 16px 36px -20px rgb(11 18 32 / 0.35);
  --shadow-float: 0 1px 2px rgb(0 0 0 / 0.3), 0 18px 40px -18px rgb(0 0 0 / 0.7);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);          /* expo out: entrances */
  --ease-soft: cubic-bezier(0.25, 1, 0.5, 1);     /* quart out: hover, small changes */
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);      /* state changes */
  --t-fast: 180ms;
  --t-mid: 360ms;

  --gutter: 16px;
  --pill-h: 64px;
  --section-y: clamp(88px, 11vw, 160px);
  color-scheme: dark;
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --pill-h: 84px; } }

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--pill-h) + 28px);
  scrollbar-color: #4a5868 var(--night);
}
body {
  margin: 0;
  background: var(--night);
  color: var(--on-dark);
  font: 400 17px/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 1024px) { body { font-size: 18px; } }
::selection { background: var(--accent); color: var(--accent-ink); }

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* ---------------------------------------------------------------- the three type styles
   1. display: Roboto Flex, one width (151 %) and one weight (820) for every heading, the phone and the wordmark
   2. text: Onest 400
   3. UI: Onest 600 (buttons, nav, labels, names) */
.display, h1, h2, .chapter h3, .role-name, .big-link, .wordmark {
  font-family: var(--f-display);
  font-weight: 820;
  font-stretch: 151%;
  letter-spacing: -0.01em;
  text-wrap: balance;
  hyphens: manual;
}
h1, h2 { overflow-wrap: break-word; }
h2 { font-size: clamp(1.6rem, 1rem + 2.4vw, 3.1rem); line-height: 1.05; max-width: 22em; }
p { text-wrap: pretty; }

.wrap { width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; }
.staff-head, .about-grid, .careers-grid, .contacts-grid { grid-template-columns: minmax(0, 1fr); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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;
}
.icon { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* no blue tap flash on phones (user rule 2026-10-05): each control shows its own pressed state in place */
html { -webkit-tap-highlight-color: transparent; }
.menu-toggle:active { background: var(--accent-hover); }
.lang a:active { color: var(--on-dark); background: var(--night-3); }
.big-phone:active .call-ic, .scroll-cue:active .cue-ic { color: var(--accent-hover); }
.row-link:active, .route:active { color: #fff; text-decoration-color: var(--accent); }

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 12px 18px; border-radius: var(--r-ctl);
  font-weight: 600; text-decoration: none; transition: top var(--t-fast) var(--ease);
}
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* ---------------------------------------------------------------- brand: ship + wordmark */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; }
.ship { width: clamp(74px, 19vw, 118px); height: auto; flex: none; transition: width 0.35s var(--ease); }   /* 28–45 px tall */
.ship-hull { fill: var(--accent); }
.ship-top { fill: currentColor; }
.wordmark { font-size: clamp(12.5px, 3.45vw, 22px); line-height: 1; letter-spacing: 0.03em; white-space: nowrap; transition: font-size 0.35s var(--ease); }
.brand { gap: clamp(5px, 1.4vw, 10px); }
.site-header.is-stuck .ship { width: clamp(74px, 17.5vw, 106px); }
.site-header.is-stuck .wordmark { font-size: clamp(12.5px, 3.1vw, 20px); }

/* ---------------------------------------------------------------- entrances */
/* motion grammar (v7): headings are welded (below); body text rises line by line inside masks; blocks (form, certificate)
   are cut in from the top like a plate; list rows draw their rule first, then their content rises; small details fade in */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .lines { visibility: hidden; }
.js .lines.is-split { visibility: visible; }
.line { display: block; overflow: clip; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.line-in { display: inline-block; transform: translateY(112%); transition: transform 1s var(--ease); transition-delay: calc(var(--li, 0) * 95ms + var(--d, 0ms)); }
.lines.is-in .line-in { transform: none; }
.js .clip-in { clip-path: inset(-48px -48px 100% -48px); transition: clip-path 1.25s var(--ease); transition-delay: var(--d, 0ms); }
.js .clip-in.is-in { clip-path: inset(-48px); }
.js .rule-in::after { transform: scaleX(0); transition: transform 1.2s var(--ease); }
.js .rule-in.is-in::after { transform: none; }
.js .pos.rule-in > * { opacity: 0; transform: translateY(40%); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0ms) + 260ms); }
.js .pos.rule-in.is-in > * { opacity: 1; transform: none; }

/* weld: the one heading grammar — an arc runs along the line, heat cools to the text colour */
.js .weld, .js .hero-title .w > span {
  background-image: linear-gradient(90deg, currentColor calc(var(--weld) - 22%), var(--accent) calc(var(--weld) - 7%), var(--hot) calc(var(--weld) - 0.5%), transparent var(--weld));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.js .weld { --weld: 0%; position: relative; width: fit-content; }   /* the arc ends where the text ends, not at the column edge */
.js .weld.is-in, .js .is-in > .weld { animation: weld 1.15s cubic-bezier(0.45, 0, 0.25, 1) forwards; }
@keyframes weld { from { --weld: 0%; } to { --weld: 130%; } }
.js .weld::after, .js .hero-title .w > span::after {
  content: ""; position: absolute; top: 45%; left: min(var(--weld), 100%); width: 0.2em; height: 0.13em; margin: -0.065em 0 0 -0.1em;
  border-radius: 50%; background: #fff; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0.03em 0.02em #e6eaff, 0 0 0.12em 0.05em rgb(200 205 255 / 0.55), 0 0 0.3em 0.1em rgb(255 226 190 / 0.95),
    0 0 0.8em 0.26em rgb(255 140 50 / 0.5), 0 0 2em 0.6em rgb(255 106 19 / 0.2);
}
.js .weld.is-in::after, .js .is-in > .weld::after { animation: arc 1.15s linear forwards; }
@keyframes arc { 0% { opacity: 0; } 4% { opacity: 1; transform: scale(1.1); } 12% { transform: scale(0.85); } 22% { transform: scale(1.15); } 34% { transform: scale(0.9); } 47% { transform: scale(1.08); } 60% { transform: scale(0.88); } 72% { transform: scale(1.12); } 82% { opacity: 1; transform: scale(0.95); } 100% { opacity: 0; transform: scale(0.6); } }
@media (forced-colors: active) {
  .js .weld, .js .hero-title .w > span { background: none; -webkit-text-fill-color: currentColor; }
  .js .weld::after, .js .hero-title .w > span::after { display: none; }
}

/* script safety: if app.js never runs, everything hidden for an entrance shows after 2.6 s */
.js:not(.app-ok) .reveal, .js:not(.app-ok) .pos.rule-in > * { animation: safety-show 0.01s 2.6s forwards; }
.js:not(.app-ok) .lines { visibility: visible; }
.js:not(.app-ok) .clip-in { animation: safety-clip 0.01s 2.6s forwards; }
.js:not(.app-ok) .rule-in::after { animation: safety-show 0.01s 2.6s forwards; }
@keyframes safety-clip { to { clip-path: inset(-48px); } }
.js:not(.app-ok) .weld { animation: safety-weld 0.01s 2.6s forwards; }
@keyframes safety-show { to { opacity: 1; transform: none; } }
@keyframes safety-weld { to { --weld: 130%; } }

/* ---------------------------------------------------------------- buttons: one family, born from the trade (v27, B9:
   «кнопки нарисованы под этот сайт»): a flame-cut steel plate with two corners cut at 45°; on hover a white-hot seam is
   laid along its lower edge from left to right, as the arc lays a bead */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 15px 28px; border: 0; border-radius: 0; clip-path: var(--plate);
  font: 600 16px/1.2 var(--f-text); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease;
}
.btn .icon { transition: transform var(--t-mid) var(--ease); }
.btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, #ffb070, #fff4e6 92%, #fff);
  transform: scaleX(0); transform-origin: left; transition: transform 0.55s var(--ease);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary::after { background: linear-gradient(90deg, #7a2a08, #2a1004 92%, #000); }
.btn-ghost { background: none; clip-path: none; padding-inline: 2px; color: currentColor; }   /* the second action is a seam, not a twin plate (B9) */
.btn-ghost::after { background: var(--accent); transform: scaleX(0.3); }
@media (hover: hover) {
  .btn:hover::after { transform: scaleX(1); }
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-ghost:hover { color: #fff; }
  .btn:hover .icon:last-child:not(:first-child) { transform: translateX(4px); }
}

/* ---------------------------------------------------------------- header: one dark pill */
/* the header (shared rule 27–28.10: everything needed is visible at once, a medium logo, air between the groups):
   desktop — logo | nav | LT·EN · phone · contact button, one line; phones and narrow screens — logo | LT·EN · phone icon ·
   Menu. Sticky: the logo steps down 12 % and a soft gradient shade (24–56 px) lies under the bar — never a 1 px line. */
.site-header { position: fixed; inset: 12px 0 auto; z-index: 60; pointer-events: none; }
.site-header::after {   /* the soft shade under the stuck bar */
  content: ""; position: absolute; left: 0; right: 0; top: 55%; height: 56px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgb(3 6 11 / 0.55), rgb(3 6 11 / 0)); opacity: 0; transition: opacity 0.4s ease;
}
.site-header.is-stuck::after { opacity: 1; }
.header-pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  width: min(100% - 2 * var(--gutter) + 16px, 1480px); margin-inline: auto;
  min-height: var(--pill-h); padding: 6px 10px 6px 14px;
  position: relative; z-index: 2; background: var(--night-2); border-radius: 0; --cut: 14px; clip-path: var(--plate);
  transition: min-height 0.35s var(--ease);
}
.site-header.is-stuck .header-pill { min-height: 60px; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: none; }
.brand { min-width: 0; flex: 0 1 auto; }
.nav { display: none; }
.lang { display: inline-flex; padding: 2px; --cut: 8px; clip-path: var(--plate); background: var(--night); }
.lang a {
  display: grid; place-items: center; min-width: 25px; min-height: 40px; padding: 0 2px;
  --cut: 6px; clip-path: var(--plate); font-size: 12.5px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--on-dark-3); text-decoration: none; transition: color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.lang a[aria-current="true"] { background: var(--night-3); color: var(--on-dark); }
@media (hover: hover) { .lang a:not([aria-current]):hover { color: var(--on-dark); } }
.header-phone {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 38px; min-height: 40px;
  font-weight: 600; font-size: 16px; color: var(--on-dark); text-decoration: none; white-space: nowrap;
}
.header-phone .icon { width: 22px; height: 22px; color: var(--accent); flex: none; }
.header-phone span { display: none; }
@media (hover: hover) { .header-phone:hover { color: #fff; } }
.header-cta { display: none; }
/* the Menu button: the word and three equal lines that close into a cross (no plate round them) */
.menu-toggle {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 2px 0 6px; border: 0;
  background: none; color: var(--on-dark); font: 600 16px/1 var(--f-text); letter-spacing: 0.01em; cursor: pointer;
  transition: color var(--t-fast) ease;
}
.menu-toggle .icon { width: 26px; height: 26px; color: var(--accent); }
@media (hover: hover) { .menu-toggle:hover { color: #fff; } }
.menu-word { display: none; }
html:not(.js) .menu-toggle { display: none; }
/* the three lines close into a cross while the menu is open (the middle one draws in to nothing) and part again */
.ic-menu path { transform-box: fill-box; transform-origin: center; transition: transform 0.5s var(--ease-io), opacity 0.3s var(--ease-io); }
.menu-toggle[aria-expanded="true"] .mb-a { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .mb-m { transform: scaleX(0); opacity: 0; }
.menu-toggle[aria-expanded="true"] .mb-b { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 420px) { .header-pill { padding: 6px 8px 6px 12px; gap: 6px; } }
@media (min-width: 560px) { .lang a { min-width: 36px; padding: 0 3px; font-size: 13.5px; } .header-actions { gap: 8px; } .header-pill { gap: 14px; padding: 8px 14px 8px 18px; } .menu-word { display: inline; } .ship { width: clamp(96px, 14vw, 118px); } .wordmark { font-size: clamp(18px, 2.6vw, 22px); } :root { --pill-h: 72px; } }
@media (min-width: 700px) { .header-phone span { display: inline; } }
/* from 1400 px: the whole navigation fits — nav in the bar, the Menu button gives way to the contact button; the logo
   is 57 px tall at the top and steps down to 45 px once the bar sticks (−21 %) */
@media (min-width: 1400px) {
  .ship { width: 150px; } .wordmark { font-size: 28px; } .brand { gap: 12px; }
  .site-header.is-stuck .ship { width: 120px; } .site-header.is-stuck .wordmark { font-size: 23px; }
  .nav { display: block; margin-left: clamp(28px, 3.4vw, 64px); }
  .nav ul { display: flex; gap: clamp(26px, 2.4vw, 40px); }
  .nav-link { display: block; padding: 12px 0; font-weight: 600; font-size: 16.5px; color: var(--on-dark-2); text-decoration: none; transition: color var(--t-fast) ease; }
  .nav-link:hover { color: #fff; }
  .header-actions { gap: 26px; }
  .header-cta { display: inline-flex; min-height: 46px; padding: 11px 22px; }
  .menu-toggle, .mobile-menu { display: none; }
  .header-pill { padding: 8px 20px 8px 26px; gap: 0; }
}
.mobile-menu {
  pointer-events: auto;
  width: min(100% - 2 * var(--gutter) + 16px, 1312px); margin: 8px auto 0;
  position: relative; z-index: 1; background: var(--night-2); --cut: 14px; clip-path: var(--plate);
  max-height: calc(100dvh - var(--pill-h) - 40px); overflow-y: auto; padding: 8px 20px 20px;
}
.mm-link { display: flex; align-items: center; min-height: 54px; font: 600 1.2rem/1.2 var(--f-text); text-decoration: none; color: var(--on-dark); }
/* the open menu is one column on one left edge: items → language → phone → social icons (shared rule 18.10) */
.mm-foot { display: grid; justify-items: start; gap: 24px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.mm-foot .lang { margin: 0; }
.mm-foot .btn { width: 100%; max-width: 100%; }
.mm-social { display: flex; gap: 12px; }
/* icons never sit in plates (shared rule, Šaka 23.10): the mark beside its name */
.mm-soc { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; color: var(--on-dark); text-decoration: none; transition: color var(--t-fast) ease; }
.mm-soc .icon { width: 22px; height: 22px; }
@media (hover: hover) { .mm-soc:hover { color: var(--accent); } }
.mm-soc:active { color: var(--accent); }
.mobile-menu nav, .mobile-menu ul { margin: 0; padding: 0; list-style: none; }
.js .mobile-menu:not([hidden]) { animation: menu-in var(--t-mid) var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-10px) scale(0.98); } }
/* phones and tablets: the open menu is its own full-screen sheet on paper, one column on one left edge (B1); the bar
   with the cross stays above it */
@media (max-width: 1399px) {
  .mobile-menu { position: fixed; inset: 0; width: auto; margin: 0; max-height: none; height: 100dvh; clip-path: none;
    padding: calc(var(--pill-h) + 44px) var(--gutter) 32px; background: var(--paper); color: var(--ink); }
  .mobile-menu .mm-link { color: var(--ink); font: 820 1.45rem/1.1 var(--f-display); font-stretch: 151%; min-height: 58px; }
  .mobile-menu .mm-foot { border-top-color: var(--line-ink); }
  .mobile-menu .lang { background: rgb(13 20 30 / 0.07); }
  .mobile-menu .lang a { color: var(--ink-3); }
  .mobile-menu .lang a[aria-current="true"] { background: var(--ink); color: var(--paper); }
  .mobile-menu .mm-soc { color: var(--ink); }
}
/* ---------------------------------------------------------------- 3D scrollytelling */
.scrolly { position: relative; background: var(--night); color: var(--on-dark); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; z-index: 0; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.stage.is-ready canvas { opacity: 1; }
/* poster first: a 2× capture of the same scene; the live canvas fades in over it when its shaders are compiled */
/* the first frame of the dock pass: the no-JS / no-WebGL picture; dockpass.js removes it once the scene draws */
.stage-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 74% 50%; }
/* no shade over the photograph (v26): the dark gradients made the dock «тёмная и скучная». The bright photograph and the
   white type get separate fields instead: desktop — the dock on the right 56 %, the copy and the 3D renders on night on
   the left; phones — the dock on the upper half, the copy below it. */
.hero {
  margin-top: -100vh; margin-top: -100svh;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--pill-h) + 48px) 0 clamp(96px, 14svh, 150px);
}
@media (min-width: 960px) { .hero { align-items: center; padding-bottom: 96px; } }
.hero-inner { position: relative; }
.hero-title { font-size: clamp(2.1rem, 1rem + 5vw, 4.6rem); line-height: 1; max-width: 11.5em; color: #fff; }
@media (min-width: 960px) { .hero-title { max-width: 9.9em; } }
.hero-title .w { display: inline-block; }
.hero-title .w > span { display: inline-block; position: relative; }
.js .hero-title .w > span { --weld: 0%; animation: weld 0.55s cubic-bezier(0.45, 0, 0.25, 1) both; animation-delay: calc(var(--i) * 0.2s + 0.15s); }
.js .hero-title .w > span::after { animation: arc 0.55s linear both; animation-delay: calc(var(--i) * 0.2s + 0.15s); }
.intro-fast .hero-title .w > span, .intro-fast .hero-title .w > span::after { animation-duration: 0.18s; animation-delay: calc(var(--i) * 0.03s); }
.lead { margin-top: 22px; font-size: 1.1em; line-height: 1.6; max-width: 34em; }
.scrolly .lead, .about .lead, .contacts .lead { color: var(--on-dark-2); }
.hero-lead { max-width: 31em; }
@media (max-width: 599px) { .hero-lead { font-size: 1rem; margin-top: 16px; } .hero .actions { margin-top: 26px; } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.lines-intro { --d: 1050ms; }
.intro-fast .lines-intro { --d: 60ms; }
/* the buttons come after the lead's lines (which wait for the fonts): headline → lead → action */
.js .hero-actions { opacity: 0; }
.js .lines-intro.is-in + .hero-actions { animation: rise-in 0.9s var(--ease) both; animation-delay: 1.4s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.intro-fast .lines-intro.is-in + .hero-actions { animation-delay: 0.3s; animation-duration: 0.5s; }
.js:not(.app-ok) .hero-actions { animation: safety-show 0.01s 2.6s forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
/* the way into the services: a real link under the text column (v12, after "the caption is small and strange") */
.hero-cue { position: absolute; left: 0; right: 0; bottom: clamp(22px, 4svh, 40px); display: none; }
.scroll-cue {
  display: inline-flex; align-items: center; gap: 14px; min-height: 44px;
  font-weight: 600; font-size: 16px; color: var(--on-dark-2); text-decoration: none; transition: color var(--t-fast) ease;
}
.cue-ic {
  display: grid; place-items: center; width: 28px; height: 44px; flex: none; color: var(--accent);
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease;
}
.cue-ic .icon { width: 18px; height: 18px; transform: rotate(90deg); animation: cue-bob 1.6s var(--ease-io) 2.2s 2 both; }
@keyframes cue-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 5px; } }
@media (hover: hover) {
  .scroll-cue:hover { color: var(--on-dark); }
  .scroll-cue:hover .cue-ic { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
}
@media (min-width: 960px) and (min-height: 700px) { .hero-cue { display: block; } }

.chapter { min-height: 82vh; min-height: 82svh; display: flex; align-items: flex-start; padding: calc(42svh + 20px) 0 6svh; }   /* phones (v27): the copy right under the photo, no dark hole */   /* phones: about a third less empty scroll between the services (user 18.10) */   /* phones: one screen per service, the text in view under the shot */
@media (min-width: 960px) { .chapter { min-height: 100vh; min-height: 100svh; } }   /* v28: the left field is never empty between two chapters */
@media (min-width: 960px) { .chapter { align-items: center; padding: 0; } }
.chapter-body { max-width: 46rem; }   /* room for the longest word of the larger chapter titles (konstrukcijos) */
.chapter-fig { width: min(68vw, 320px); margin: 0 0 18px -2%; touch-action: pan-y; perspective: 1000px; }   /* the 3D render of the service (v26) */
.fig-card { position: relative; display: inline-block; max-width: 100%; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(0, var(--fy, 0px), 0); will-change: transform; }
.chapter-fig img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(44svh, 470px); }
.fig-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
@media (min-width: 960px) { .chapter-fig { width: clamp(320px, 27vw, 470px); margin-bottom: 22px; } }
.chapter-num { font-weight: 600; font-size: 15px; letter-spacing: 0.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.chapter h3 { margin-top: 16px; font-size: clamp(1.75rem, 0.7rem + 3.6vw, 4.3rem); line-height: 1.02; color: #fff; }
/* "send a similar job": the action next to the shot, a text link in the chapter column (it fills the form) */
.similar { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 22px; font-weight: 600; font-size: 16px; color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.similar .icon { width: 18px; height: 18px; color: var(--accent); transition: transform var(--t-fast) var(--ease); }
@media (hover: hover) { .similar:hover .icon { transform: translateX(3px); } }
.similar:active { color: var(--accent-hover); }
.chapter p:not(.chapter-num) { margin-top: 18px; font-size: 1.1em; color: var(--on-dark-2); max-width: 30em; }
.chapter-finale { min-height: 170vh; min-height: 170svh; }   /* the trawler shot holds for ~75svh before the stage scrolls away */
@media (max-width: 959px) { .chapter-finale { min-height: 92vh; min-height: 92svh; } }   /* phones: the call to action within the screen */
.finale-body { max-width: 48rem; }
.finale-title { font-size: clamp(1.9rem, 0.8rem + 3.4vw, 4.4rem); line-height: 1.03; color: #fff; }

/* ---------------------------------------------------------------- partners: one drifting row on the night band */
.partners { position: relative; overflow: hidden; background: var(--night-2); padding-block: clamp(64px, 8vw, 112px); }
.partners-title { font: 600 clamp(1rem, 0.9rem + 0.4vw, 1.2rem)/1.3 var(--f-text); letter-spacing: 0.02em; color: var(--on-dark-3); max-width: none; }
.drift { display: flex; flex-wrap: wrap; gap: 0.25em 1em; padding-inline: var(--gutter); margin-top: 26px; font-family: var(--f-display); font-weight: 820; font-stretch: 151%; font-size: clamp(1.8rem, 1rem + 4vw, 5rem); line-height: 1.08; letter-spacing: -0.01em; }
.drift li { overflow-wrap: break-word; color: var(--on-dark); }
.drift li:nth-child(even) { color: var(--on-dark-3); }
.partners.is-drifting .drift { flex-wrap: nowrap; width: max-content; will-change: transform; touch-action: pan-y; cursor: grab; user-select: none; }
.partners.is-drifting .drift.is-drag { cursor: grabbing; }
.partners.is-drifting .drift li { white-space: nowrap; }

/* ---------------------------------------------------------------- staff (night): a roster the arc welds row by row
   app.js sets --p (arc position along the name, 0–1) and --heat (arc brightness) from the row's place in the viewport. */
.staff { background: var(--night); padding-block: var(--section-y); box-shadow: inset 0 1px 0 var(--night-2); }
.staff-head { display: grid; gap: 26px; }
.staff-title { font-size: clamp(2.1rem, 1rem + 4vw, 4.6rem); line-height: 1.02; color: #fff; }
.staff .lead { margin-top: 0; color: var(--on-dark-2); }
.staff-intro .btn { margin-top: 30px; }
.roles { margin-top: clamp(56px, 7vw, 104px); border-top: 1px solid var(--line); }
.role { position: relative; }
.role::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: left; }
.role-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-block: clamp(24px, 3vw, 42px) clamp(26px, 3.2vw, 46px); }
.role-num { font-weight: 600; font-size: 14px; letter-spacing: 0.04em; color: var(--on-dark-3); font-variant-numeric: tabular-nums; transition: color var(--t-mid) ease; }
.role.is-welded .role-num { color: var(--accent); }
.role-name { position: relative; width: fit-content; max-width: 100%; font-size: clamp(1.7rem, 0.75rem + 4.3vw, 5.4rem); line-height: 1.04; color: #fff; overflow-wrap: break-word; }
.role-note { color: var(--on-dark-2); max-width: 22em; }
.js .role-name { --p: 0; --heat: 0; }
.js .role-name:not(.is-split), .js .role-line {
  background-image: linear-gradient(90deg,
    #fff calc(var(--p) * 100% - 1.5em),
    color-mix(in srgb, var(--accent) calc(var(--heat) * 100%), #fff) calc(var(--p) * 100% - 0.42em),
    color-mix(in srgb, var(--hot) calc(var(--heat) * 100%), #fff) calc(var(--p) * 100% - 0.03em),
    var(--raw) calc(var(--p) * 100%));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* each line is its own seam with its own --p (app.js); the arc itself is drawn on .arc-fx */
.js .role-line { --p: 0; display: block; width: fit-content; max-width: 100%; }
.arc-fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; mix-blend-mode: screen; visibility: hidden; }
.arc-fx.is-on { visibility: visible; }
.js:not(.app-ok) .role-name { background: none; -webkit-text-fill-color: currentColor; }
@media (forced-colors: active) {
  .js .role-name, .js .role-line { background: none; -webkit-text-fill-color: currentColor; }
  .arc-fx { display: none; }
}
@media (min-width: 960px) {
  .staff-head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(48px, 6vw, 110px); align-items: end; }
  .role-inner { grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 17rem); align-items: center; gap: 24px; }
  .role-note { justify-self: end; text-align: right; }
  .role-wide .role-name { grid-column: 2 / -1; }
}

/* the trades (v26, «здесь тоже скучно»): each row carries a photograph of that work to the right of the name, out to the
   edge of the screen; it is burned into view from its left edge as the arc welds the name (--rp from app.js). The name
   never sits on the photo. Phones: the photo is a band under the name. */
.role.has-shot { overflow: hidden; }
.role-shot { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.js .role-shot {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--rp, 0) * 125% - 25%), transparent calc(var(--rp, 0) * 125%));
  mask-image: linear-gradient(90deg, #000 calc(var(--rp, 0) * 125% - 25%), transparent calc(var(--rp, 0) * 125%));
}
.role.has-shot .role-inner { position: relative; }
.shot-01-welder { object-position: 62% 40%; } .shot-02-hull-fitters { object-position: 66% 40%; } .shot-03-structures { object-position: 72% 34%; }
.shot-04-grinder { object-position: 74% 38%; } .shot-05-plasma { object-position: 50% 45%; }
@media (max-width: 959px) { .role.has-shot { display: flex; flex-direction: column-reverse; } .role.has-shot .role-inner { padding-bottom: 18px; } }
@media (min-width: 960px) {
  /* the name column has one measure (--nw) from the site's left line; the photo starts 40 px after it */
  .role.has-shot { --wl: max(var(--gutter), calc((100vw - 1280px) / 2)); --nw: clamp(340px, 32vw, 560px); --sl: calc(var(--wl) + 4rem + 24px + var(--nw) + 40px);
    min-height: clamp(300px, 25vw, 440px); display: grid; align-items: center; }
  .role-shot { position: absolute; top: 0; left: var(--sl); width: calc(100% - var(--sl)); height: 100%; aspect-ratio: auto; }   /* an img keeps its own width with left+right: size it */
  .role.has-shot .role-inner { grid-template-columns: 4rem minmax(0, 1fr); align-content: center; }
  .role.has-shot .role-name { max-width: var(--nw); font-size: min(4.2rem, calc(var(--nw) / 10)); }
  :lang(ru) .role.has-shot .role-name { font-size: min(4.2rem, calc(var(--nw) / 14.6)); }
  .role.has-shot .role-note { grid-column: 2; justify-self: start; text-align: left; max-width: var(--nw); }
  .role.has-shot.role-wide .role-name { grid-column: 2; }
}

/* ---------------------------------------------------------------- careers (v28): a sunrise on a new ship's deck, and the
   company's own flyers on a rail below it. Desktop: the copy stands in the calm sky of the photograph (dark ink on pale
   sky); phones: the photo is a band above the copy. The flyers drift, drag, fling and open large in a swipeable viewer. */
.careers { background: var(--night); color: var(--on-dark); padding-bottom: clamp(48px, 7vw, 96px); overflow: hidden; }
.careers .lead { color: var(--on-dark-2); }
.careers-grid { display: grid; }
.careers-call p { margin: 22px 0 0; font-weight: 600; color: var(--on-dark-2); }
.careers-call .btn { margin-top: 12px; }
.scene img { display: block; width: 100%; height: 100%; object-fit: cover; }
.careers-scene { aspect-ratio: 4 / 3; }
.careers-scene img { object-position: 80% 50%; }
.careers .careers-grid { padding-block: clamp(28px, 6vw, 44px) 0; }
@media (min-width: 960px) {
  .careers { position: relative; padding-bottom: clamp(56px, 6vw, 96px); }
  .careers-scene { position: relative; aspect-ratio: auto; height: min(78svh, 760px); min-height: 520px; }
  .careers-scene img { object-position: 84% 50%; }
  .careers .careers-grid { --wl: max(var(--gutter), calc((100vw - 1280px) / 2)); position: absolute; top: clamp(112px, 15svh, 170px); left: var(--wl); width: calc(46vw - var(--wl)); padding: 0; margin: 0; }
  .careers .careers-title { color: var(--ink); font-size: min(clamp(2.4rem, 0.5rem + 3.4vw, 4.6rem), calc((46vw - var(--wl)) / 9.5)); }
  :lang(ru) .careers .careers-title { font-size: min(clamp(2.2rem, 0.4rem + 3vw, 4.2rem), calc((46vw - var(--wl)) / 11)); }
  .careers .lead { color: var(--ink); max-width: 27em; }
  .careers-call p { color: var(--ink); }
  .careers .btn-primary { background: var(--ink); color: #fff; }
}
.flyers { position: relative; margin-top: clamp(28px, 4vw, 56px); }
.flyer-row { display: flex; gap: clamp(18px, 2.4vw, 34px); padding-inline: var(--gutter); width: max-content; touch-action: pan-y; cursor: grab; user-select: none; will-change: transform; }
.flyer-row.is-drag { cursor: grabbing; }
.flyer-row li { flex: none; height: clamp(290px, 42vw, 580px); transition: transform 0.4s var(--ease); }
.flyer-row li:nth-child(odd) { transform: rotate(-1.4deg); }
.flyer-row li:nth-child(even) { transform: rotate(1.1deg) translateY(10px); }
@media (hover: hover) { .flyer-row li:hover { transform: rotate(0deg) translateY(-8px) scale(1.02); } }
.flyer-img { display: block; height: 100%; width: auto; max-width: none; box-shadow: 0 26px 50px -22px rgb(0 0 0 / 0.7); pointer-events: none; -webkit-user-drag: none; }
.fly-dialog { padding: 0; border: 0; background: none; overflow: visible; max-width: 100vw; max-height: 100dvh; }
.fly-dialog::backdrop { background: rgb(5 8 14 / 0.9); }
.fly-dialog img { display: block; height: min(86dvh, 980px); width: auto; max-width: calc(100dvw - 32px); touch-action: pan-y; background: #fff; }
.fly-nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border: 0; background: none; color: #fff; display: grid; place-items: center; }
.fly-nav .icon { width: 30px; height: 30px; }
.fly-prev { left: -56px; transform: scaleX(-1); } .fly-next { right: -56px; }
@media (max-width: 760px) { .fly-prev { left: 4px; } .fly-next { right: 4px; } .fly-nav { color: var(--ink); } }
.fly-count { position: absolute; left: 0; right: 0; bottom: -40px; text-align: center; color: #fff; font-weight: 600; font-size: 15px; }

/* ---------------------------------------------------------------- about (night): the drawing, the story, the certificate */
.about { background: var(--night); padding-block: var(--section-y); }   /* no top rule: it doubled the roster's last line (user 18.10) */
.about-grid { display: grid; gap: 40px; }
/* the macro of a fresh weld bead (a photograph); the arc that «re-lays» it and its afterglow are drawn on the canvas over it
   (app.js, seam): it travels by itself, and follows a finger or the mouse when dragged */
.seam { position: relative; width: 100%; aspect-ratio: 16 / 11; overflow: hidden; background: #0b0e12; touch-action: pan-y; cursor: ew-resize; }
.seam img, .seam canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.seam img { object-fit: cover; object-position: 50% 48.5%; }
.seam canvas { mix-blend-mode: screen; }
.about-title { max-width: 18em; }
.about-copy > p { max-width: 34em; color: var(--on-dark-2); }
.about-copy > p + p { margin-top: 20px; }
.cert {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 20px; align-items: start;
  width: 100%; max-width: 580px; margin-top: 40px; padding: 16px 20px 16px 16px;
  border: 0; border-radius: 0; clip-path: var(--plate); background: var(--night-2); color: var(--on-dark); text-align: left;
  transition: background-color var(--t-mid) ease, box-shadow var(--t-mid) var(--ease), transform 0.5s var(--ease);
}
.cert img { width: 82px; height: auto; }
.cert-body { display: grid; gap: 6px; }
.cert-title { font-weight: 600; font-size: 1.04rem; line-height: 1.3; }
.cert-text { font-size: 0.93em; line-height: 1.5; color: var(--on-dark-2); }
.cert-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--on-dark-3); }
.cert-open { display: grid; place-items: center; width: 28px; height: 28px; color: var(--accent); }
.cert-open .icon { width: 18px; height: 18px; }
.cert::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / 0.18), rgb(255 255 255 / 0) 45%);
  transition: opacity var(--t-mid) ease;
}
@media (hover: hover) { .cert:hover { background: var(--night-3); } }
@media (hover: hover) and (pointer: fine) {
  [data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
  [data-tilt]::after { opacity: var(--glare, 0); }
}
@media (min-width: 1200px) {
  /* the heading spans both columns; the drawing and the text below it end on one line (the card sits at the bottom) */
  .about-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px clamp(48px, 6vw, 110px); align-items: stretch; }
  .about-title { grid-column: 1 / -1; }
  .seam { grid-column: 1 / -1; aspect-ratio: 2.4 / 1; }
  .about-copy { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: clamp(48px, 6vw, 110px); align-items: end; }
  .about-copy > p { grid-column: 1; }
  .about-copy .cert { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin-top: 0; }
}

/* ---------------------------------------------------------------- contact finale (night) */
.contacts { background: var(--night); padding-block: var(--section-y) clamp(72px, 9vw, 120px); box-shadow: inset 0 1px 0 var(--night-2); }
.contacts h2 { font-size: clamp(2rem, 1rem + 3.6vw, 4.2rem); }
.contacts-grid { display: grid; gap: 48px; }
.big-links { display: grid; gap: 10px; margin-top: 30px; }
.big-link {
  display: inline-block; width: fit-content; max-width: 100%; color: var(--on-dark); text-decoration: none; white-space: nowrap;
  font-size: clamp(1.45rem, 0.95rem + 1.5vw, 2.35rem); line-height: 1.1;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 3px no-repeat; transition: background-size 0.5s var(--ease);
}
.big-phone { display: inline-flex; align-items: center; gap: clamp(12px, 1.4vw, 22px); background: none; }
.big-phone > span:last-child { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 3px no-repeat; transition: background-size 0.5s var(--ease); }
.call-ic { display: grid; place-items: center; flex: none; width: clamp(34px, 1rem + 1.2vw, 48px); aspect-ratio: 1; color: var(--accent); transition: color var(--t-fast) ease; }
.call-ic .icon { width: 100%; height: 100%; }
@media (hover: hover) {
  .big-phone:hover > span:last-child { background-size: 100% 3px; }
  .big-phone:hover .call-ic { background: var(--accent-hover); box-shadow: 0 14px 34px -12px rgb(255 106 19 / 0.75); }
}
@media (hover: hover) { .big-link:hover { background-size: 100% 3px; color: #fff; } }
/* contact facts: one rhythm of hairline label–value rows under the call line (v10, after "a mess here") */
.contact-rows { margin-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); width: 100%; }
.contact-rows > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.contact-rows dt { font-size: 15px; color: var(--on-dark-2); }
.contact-rows dd { color: #fff; font-size: 18px; overflow-wrap: anywhere; }
.contact-rows .person-name { font-weight: 600; }
@media (min-width: 600px) { .contact-rows > div { grid-template-columns: 11rem minmax(0, 1fr); gap: 16px; align-items: baseline; } }
.row-link, .route {
  display: inline-flex; align-items: center; gap: 6px; color: var(--on-dark); text-decoration: underline; text-decoration-color: rgb(255 106 19 / 0.7);
  text-underline-offset: 4px; text-decoration-thickness: 1.5px; transition: text-decoration-color var(--t-fast) ease, color var(--t-fast) ease;
}
.route { margin-left: 12px; font-weight: 600; font-size: 15px; }
.row-link .icon, .route .icon { width: 16px; height: 16px; color: var(--accent); flex: none; }
@media (hover: hover) { .row-link:hover, .route:hover { color: #fff; text-decoration-color: var(--accent); } }
/* the form straight on night, no card (v26, «скучно»; a card read as a template): underline fields */
.enquiry { position: relative; isolation: isolate; color: var(--on-dark); padding-top: clamp(28px, 3vw, 40px); }
.enquiry :focus-visible { outline-color: var(--accent); }
.fields { display: grid; gap: 26px 32px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 15px; letter-spacing: 0.01em; color: var(--on-dark); }
.req { color: var(--accent); margin-left: 3px; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 0 12px; border: 0; border-bottom: 1px solid rgb(241 244 247 / 0.34); border-radius: 0;
  background: transparent; color: #fff; font-size: 18px; caret-color: var(--accent);
  box-shadow: inset 0 -2px 0 -1px transparent; transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; field-sizing: content; max-height: 320px; }
.field input:hover, .field textarea:hover { border-color: rgb(241 244 247 / 0.6); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 -2px 0 -1px var(--accent); }
.field [aria-invalid="true"] { border-color: #ff7b6e; }
.field [aria-invalid="true"]:focus { box-shadow: inset 0 -2px 0 -1px #ff7b6e; }
.field-err { font-size: 14px; color: #ff9a8f; font-weight: 600; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.form-status { margin-top: 16px; font-weight: 600; color: var(--on-dark-2); }
.form-status:focus { outline: none; }
.form-status.is-ok { color: var(--on-dark); }
.form-status.is-ok::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 10px; background: var(--accent); box-shadow: 0 0 10px 2px rgb(255 106 19 / 0.6); vertical-align: 1px; }
.form-status a { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.enquiry.is-sending button[type="submit"] { opacity: 0.7; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status.is-error { color: #ff9a8f; }
@media (min-width: 600px) { .fields { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }
@media (min-width: 960px) {
  .contacts-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(48px, 6vw, 96px); align-items: stretch; }
  .contacts-info { display: flex; flex-direction: column; align-items: flex-start; }
  .contacts-info .contact-rows { margin-top: auto; }   /* the last hairline ends with the form */
  .contacts-info .big-links { margin-bottom: clamp(28px, 3vw, 40px); }
}

/* contacts (v26, «скучно»): a quay at dusk with a newly launched hull, the heading and the big phone on its calm deep
   sky; the facts and the form below on night, the form drawn straight on the page. */
.contacts.has-scene { padding-top: 0; }
.contacts-top { position: relative; }
.contacts-scene { aspect-ratio: 16 / 10; }
.contacts-scene img { object-position: 80% 50%; }
.contacts.has-scene .contacts-call { padding-top: clamp(28px, 6vw, 48px); }
.contacts.has-scene .contacts-grid { margin-top: clamp(32px, 5vw, 64px); }
@media (min-width: 960px) {
  .contacts-scene { aspect-ratio: auto; height: min(100svh, 56.25vw); min-height: 600px; }
  .contacts-scene img { object-position: 60% 60%; }
  .contacts.has-scene .contacts-call { position: absolute; inset: 0 0 auto; padding-top: clamp(120px, 14vh, 180px); }
  .contacts.has-scene .contacts-call h2 { font-size: clamp(3rem, 1rem + 5vw, 6.4rem); }
  /* the call line stands on the warm horizon: dark ink (white on that orange failed contrast) */
  .contacts.has-scene .big-phone, .contacts.has-scene .big-phone .call-ic { color: var(--ink); }
  .contacts.has-scene .contacts-grid { margin-top: clamp(56px, 6vw, 96px); align-items: stretch; }
  /* the facts run the full height of the form beside them (B3: neighbouring columns of one height) */
  .contacts.has-scene .contacts-info { align-items: stretch; }
  .contacts.has-scene .contacts-info .contact-rows { margin-top: 0; flex: 1; display: grid; grid-auto-rows: 1fr; }
  .contacts.has-scene .contact-rows > div { align-content: center; }
}

/* ---------------------------------------------------------------- footer: one centred composition */
.site-footer { background: var(--night-2); padding-block: clamp(40px, 5vw, 64px) 30px; }
.footer-inner { display: grid; justify-items: center; gap: 26px; text-align: center; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px clamp(20px, 3vw, 48px); }
.footer-soc, .row-fb { display: inline-flex; align-items: center; gap: 8px; }
.footer-soc { min-height: 44px; font-weight: 600; color: var(--on-dark); text-decoration: none; }
.footer-soc .icon, .row-fb .ic-fb, .mm-soc .icon { width: 22px; height: 22px; color: var(--accent); }
@media (hover: hover) { .footer-soc:hover { color: #fff; } }
.site-footer .brand .ship { width: 72px; }
.site-footer .wordmark { font-size: 18px; }
.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; }
.footer-link {
  display: block; padding: 10px 12px; --cut: 6px; clip-path: var(--plate); color: var(--on-dark-2); font-weight: 600; font-size: 15px; text-decoration: none;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease;
}
@media (hover: hover) { .footer-link:hover { background: var(--night-3); color: var(--on-dark); } }
.lang-footer { background: var(--night); }
/* the legal line: thin vertical rules between parts; app.js hides the rule that would start a wrapped line */
.legal { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 8px; width: 100%; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--on-dark-3); }
.legal > span { padding-inline: 14px; border-left: 1px solid rgb(241 244 247 / 0.2); }
.legal > span:first-child, .legal > span.line-start { border-left-color: transparent; }
.legal a { color: var(--on-dark); font-weight: 600; text-decoration: none; text-underline-offset: 3px; }
@media (hover: hover) { .legal a:hover { text-decoration: underline; text-decoration-color: var(--accent); } }

/* ---------------------------------------------------------------- company details page */
/* the details page header holds the brand, the phone and the full language switch; on phones the phone stays in the
   details list below, and the switch steps down a little */
@media (max-width: 439px) {
  .legal-page .header-pill { gap: 10px; }
  .legal-page .ship { width: 58px; }
  .lang-legal a { min-width: 32px; padding: 0 4px; }
}
.legal-main { padding: calc(var(--pill-h) + clamp(64px, 9vw, 120px)) 0 var(--section-y); }
.legal-title { font-size: clamp(2rem, 1rem + 3.6vw, 4.2rem); line-height: 1.04; color: #fff; }
.legal-list { margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); max-width: 52rem; }
.legal-list > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.legal-list dt { font-size: 14px; color: var(--on-dark-3); }
.legal-list dd { margin: 0; color: var(--on-dark); overflow-wrap: anywhere; }
.legal-list a, .legal-credits a, .legal-home { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.legal-credits { margin-top: 28px; font-size: 14px; color: var(--on-dark-3); max-width: 52rem; }
.legal-home { display: inline-flex; align-items: center; min-height: 44px; margin-top: 24px; font-weight: 600; color: var(--on-dark); }
.lang-legal { display: inline-flex; }
@media (min-width: 720px) { .legal-list > div { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; align-items: baseline; } }

/* ---------------------------------------------------------------- dialog */
.cert-dialog {
  padding: 0; border: 0; border-radius: 0; background: var(--white); overflow: visible;
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.6); max-width: calc(100vw - 32px);
}
.cert-dialog::backdrop { background: rgb(7 12 20 / 0.82); }
.cert-dialog img { width: min(360px, calc(100dvw - 32px)); height: auto; max-height: calc(100dvh - 48px); object-fit: contain; }
.dialog-close {
  position: absolute; top: -52px; right: -6px; display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; background: none; color: #fff;   /* above the certificate, on the dark backdrop */
}
@media (max-width: 420px) { .dialog-close { top: 8px; right: 8px; } }
.js .cert-dialog[open] { animation: dialog-in var(--t-mid) var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }

/* 2026-10-08: the exact author notice requested by the user. */
.design-credit, .nf-credit.design-credit { margin: 0; max-width: 100%; font-family: inherit; font-size: 12px; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-transform: none; white-space: normal; }

/* v26 split of the dock pass (see the note before .hero): after the base sizes, so these win */
@media (min-width: 960px) {
  .stage canvas, .stage-poster { left: 44%; width: 56%; }
  /* the copy starts on the site's left line (as the header) and ends 36 px before the photograph */
  .hero-inner, .chapters .wrap { --wl: max(var(--gutter), calc((100vw - 1280px) / 2)); --col: calc(44vw - var(--wl) - 36px); margin-left: var(--wl); margin-right: 0; width: var(--col); }
  .chapter-body, .finale-body, .hero-title, .hero-lead { max-width: 100%; }
  /* titles sized by the column: the longest word fits (LT «konstrukcijos» ≈ 10.5 em, RU «металлоконструкции» ≈ 14 em) */
  .hero-title { font-size: min(4.4rem, calc(var(--col) / 10)); }   /* «ir suvirinimas» is one glued unit */
  .chapter h3, .finale-title { font-size: min(3.9rem, calc(var(--col) / 11)); }
  :lang(ru) .chapter h3, :lang(ru) .finale-title { font-size: min(3.9rem, calc(var(--col) / 14.6)); }
  :lang(ru) .hero-title { font-size: min(4.4rem, calc(var(--col) / 10.5)); }
}
@media (max-width: 959px) {
  .stage canvas, .stage-poster { bottom: auto; height: 42%; }
  .hero { align-items: flex-start; padding: calc(42svh + 24px) 0 max(28px, 4svh); }   /* the copy right under the photo */
  .hero .actions .btn { flex: none; }
}
@media (max-width: 959px) and (max-height: 720px) { .stage canvas, .stage-poster { height: 31%; } .chapter { padding-top: calc(31svh + 20px); } .hero { padding-top: calc(31svh + 20px); } }
/* phones: the service's 3D render stands on the lower edge of the photo, right above its copy */
@media (max-width: 959px) {
  .chapter-body { position: relative; }
  .chapter-fig { position: absolute; bottom: calc(100% + 4px); left: -2%; width: min(52vw, 260px); margin: 0; }
  .chapter-fig img { max-height: 24svh; }
}   /* short phones: the copy stays under the photo */
@media (max-width: 959px) { .staff { padding-bottom: 0; } }   /* the roster's last row already carries its own space: no double gap before «Apie mus» */
