/* FM-AUTO — A2 Glacier Open (Figma z4Um02KAScR8ASjBaOIcWc, frame 24:6) */

/* Manrope (OFL, variable 200-800, Latin + Cyrillic subset): the site font. Affect is unicase
   (its capitals are drawn at x-height), so sentences cannot start with a capital in it;
   it stays available with ?font=affect. */
@font-face { font-family: "Manrope"; src: url("../assets/fonts/manrope/manrope.woff2?v=b836d3e1") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Affect"; src: url("../assets/fonts/affect_light.woff2?v=362204ea") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Affect"; src: url("../assets/fonts/affect.woff2?v=359d835e") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Affect"; src: url("../assets/fonts/affect_bold.woff2?v=d84b45c4") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0c2236;
  --ink-70: rgba(12, 34, 54, .7);
  --ink-60: rgba(12, 34, 54, .6);
  --ink-40: rgba(12, 34, 54, .4);
  --line: rgba(12, 34, 54, .15);
  --blue: #0a6fd6;
  --sky: #00a3ff;
  --render-white: #f1f3fb;            /* the white of the Seedance render */
  --page: linear-gradient(180deg, #dcebf6 0%, #c9ddee 40%, #bcd3e7 75%, #d7e7f3 100%);
  --font: "Manrope", system-ui, sans-serif;
  --content: 1280px;
  /* Layout frame: every screen keeps its content inside the same outer margins.
     left/right = --gutter; top = compact nav (84 px) + a gap; bottom = the same gap. */
  --frame-gap: clamp(36px, 5.5vh, 72px);
  --frame-top: calc(84px + var(--frame-gap));
  --frame-bottom: var(--frame-gap);
  --logo-w: clamp(120px, 8.4vw, 176px);     /* nav logo: Figma's 110 px at 1440, scaled up */
  --gutter: max(clamp(16px, 5.6vw, 80px), calc((100vw - var(--content)) / 2));
  /* «Ми вже працюємо з» starts entering at this point of the transition (0..1). Tune with ?tune */
  --partners-at: .45;
  --scroll-length: 150vh;             /* scroll distance of the transition; longer = slower */
  --h2: clamp(34px, 3.6vw, 52px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
@property --shade { syntax: "<number>"; inherits: true; initial-value: 0; }
:root[data-font="affect"] { --font: "Affect", "Manrope", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--ink); font-family: var(--font); font-weight: 400;
  background: #c9ddee var(--page) no-repeat; background-size: 100% 100%;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 400; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }

.eyebrow { color: var(--blue); font-size: 13px; letter-spacing: .1em; }
.section-head { display: flex; flex-direction: column; gap: 14px; }
.section-head h2 { font-size: var(--h2); letter-spacing: -.03em; line-height: 1.05; }

/* ---------- buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 8px 8px 8px 24px;
  border-radius: 999px; font-size: 16px; white-space: nowrap; line-height: 1;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s;
}
.btn i { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; flex: none; transition: transform .35s var(--ease-out); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(10, 70, 140, .22); }
.btn:hover i { transform: rotate(45deg); }
.btn--sky { background: var(--sky); color: #fff; }
.btn--sky i, .btn--blue i, .btn--ghost i { background: #fff; }
.btn--white { background: rgba(255, 255, 255, .92); color: var(--ink); }
.btn--white i { background: var(--ink); }
.btn--white i.i-blue { background: var(--blue); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .6); color: #fff; padding: 7px 7px 7px 23px; }
/* Viber's own violet, its glyph in the white circle; icons that are not arrows do not spin on hover */
/* Viber: white pill (it reads on the blue footer), Viber's dark violet text (11:1), its violet circle */
.btn--viber { background: #fff; color: #59267c; font-weight: 600; }
.btn--viber i { background: #7360f2; }
.btn--viber:hover { box-shadow: 0 12px 28px rgba(60, 40, 160, .3); }
.btn--viber:hover i, .btn--ghost[href^="tel:"]:hover i { transform: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 112px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 max(48px, calc((100vw - var(--content)) / 2 - 32px));
  transition: height .4s var(--ease-out);
}
.nav__brand { position: relative; display: block; width: var(--logo-w); aspect-ratio: 110 / 56; transition: width .4s var(--ease-out); }
.nav__word { display: block; width: 100%; height: 100%; }
/* the ball sits exactly where the mark is in the 110x56 logo (x/y 5.14, size 45.72) */
.nav__mark { position: absolute; left: 4.671%; top: 9.175%; width: 41.567%; aspect-ratio: 1; }
.nav__mark fm-globe { display: block; width: 100%; height: 100%; }   /* fm-globe sets its own position: relative */
.nav__mark img { display: block; width: 100%; height: 100%; }
.nav__pill {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; padding: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .32); border: 1px solid rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.nav__pill a { position: relative; padding: 10px 20px; border-radius: 999px; font-size: 15px; transition: background-color .3s; }
.nav__pill a:hover { background: rgba(255, 255, 255, .5); }
.nav__pill a.is-active { background: rgba(255, 255, 255, .85); }
/* the CTA: logo blue, white text, as tall as the menu's pill and set like its links */
.nav__cta {
  margin-left: auto; display: inline-flex; align-items: center; height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--sky); color: #fff; font-size: 15px; font-weight: 600;
  transition: transform .3s var(--ease-out), box-shadow .3s, background-color .3s, color .3s;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(10, 70, 140, .22); }
/* over the blue footer: white logo (the ball too), white menu, white CTA with ink text */
.nav__word, .nav__mark, .nav__pill a { transition: filter .3s, color .3s, background-color .3s; }
.nav.is-on-blue .nav__word, .nav.is-on-blue .nav__mark { filter: brightness(0) invert(1); }
.nav.is-on-blue .nav__pill { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); }
.nav.is-on-blue .nav__pill a { color: #fff; }
.nav.is-on-blue .nav__pill a:hover { background: rgba(255, 255, 255, .18); }
.nav.is-on-blue .nav__pill a.is-active { background: #fff; color: var(--ink); }
.nav.is-on-blue .nav__cta { background: #fff; color: var(--ink); }
/* on «Про компанію» its own form is the action, so the header CTA steps aside */
.nav.is-cta-off .nav__cta { opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden; transition: opacity .3s, transform .3s, visibility 0s .3s; }
.nav.is-on-blue .nav__burger { color: #fff; }
.nav.is-compact { height: 84px; }
/* frosted backing while content runs under the header (main.js .is-solid) */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: rgba(236, 243, 250, .78); box-shadow: 0 1px 0 rgba(20, 60, 110, .08);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  transition: opacity .3s, background-color .3s;
}
.nav.is-solid::before { opacity: 1; }
.nav.is-on-blue::before { background: rgba(6, 110, 225, .6); box-shadow: none; }
.nav.is-on-film::before { background: rgba(10, 24, 40, .45); }
.nav.is-compact .nav__brand { width: calc(var(--logo-w) * .86); }
.nav__burger, .nav__sheet { display: none; }
/* language switch: a glass pill like the menu's, right of the CTA (so it stays put when the CTA
   steps aside), opening a list of languages with flags; on phones it lives in the burger sheet */
.lang { position: relative; flex: none; }
.lang--nav { margin-left: 8px; }
.lang__flag { flex: none; width: 20px; height: 14px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(12, 34, 54, .12); }
.lang__chev { flex: none; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out); }
.lang__btn[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }
.lang__btn {
  display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 14px 0 16px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .32); border: 1px solid rgba(255, 255, 255, .7); color: var(--ink);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .02em;
  transition: background-color .3s, color .3s, border-color .3s;
}
.lang__btn:hover, .lang__btn[aria-expanded="true"] { background: rgba(255, 255, 255, .6); }
.lang__btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.nav.is-on-blue .lang--nav .lang__btn { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); color: #fff; }
.nav.is-on-blue .lang--nav .lang__btn:hover, .nav.is-on-blue .lang--nav .lang__btn[aria-expanded="true"] { background: rgba(255, 255, 255, .26); }
.lang__menu { list-style: none; margin: 0; padding: 0; }
.lang--nav .lang__menu:not([hidden]) {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 6px; border-radius: 20px;
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(12, 34, 54, .18); animation: langIn .18s var(--ease-out);
}
@keyframes langIn { from { opacity: 0; transform: translateY(-4px); } }
.lang__menu a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 14px;
  color: var(--ink); font-size: 15px; transition: background-color .2s;
}
.lang__menu a:hover { background: rgba(10, 111, 214, .08); }
.lang__menu a[aria-current="true"] { font-weight: 600; background: rgba(10, 111, 214, .06); }
.lang__menu a:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.nav__sheet .lang--sheet { display: none; }
@media (prefers-reduced-motion: reduce) { .lang--nav .lang__menu:not([hidden]) { animation: none; } }


/* ---------- 01 hero + transition stage ---------- */
.scrolly { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--render-white); }
.stage canvas, .stage video { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage video { object-fit: cover; transition: opacity 300ms ease-out; }
.stage video.off { opacity: 0; }
/* End loops are laid out by hero.js (size + x offset) so the road can pan; until then, cover. */
.stage .loop-end[style*="width"], .stage .loop-road[style*="width"] { inset: auto; left: 0; top: 50%; object-fit: fill; }
.stage .loop-road { opacity: 0; transition: none; }
.scrub-track { height: var(--scroll-length); }

/* Multiply tint: turns the render's white into the page's glacier blue once the
   camera is top-down, so «Чому ми?» sits on the same colour as the rest of the page. */
.stage__glacier {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply;
  background: linear-gradient(180deg, #dcebf6 0%, #cfe1f0 100%); opacity: var(--glacier, 0);
}
/* Bottom dissolve into the page, only once the stage is about to scroll away. */
.stage__fade {
  position: absolute; inset: auto 0 0 0; height: 35vh; pointer-events: none;
  background: linear-gradient(180deg, rgba(201, 221, 238, 0), #c9ddee); opacity: var(--end, 0);
}

.hero-ui { position: absolute; inset: 0; color: #fff; will-change: opacity; }
.hero-tint {
  position: absolute; inset: 40% 0 0 0; pointer-events: none; opacity: var(--tint, 1);
  background: linear-gradient(180deg, rgba(159, 192, 218, 0) 0%, rgba(111, 149, 182, .5) 45%, rgba(63, 103, 136, .9) 100%);
}
.hero-ui__wordmark {
  position: absolute; left: 50%; top: max(76px, 9vh); width: min(72vw, 1056px); height: auto;
  transform: translateX(-50%);
}
.hero-ui__bottom {
  position: absolute; left: max(56px, calc((100vw - var(--content)) / 2 - 24px)); right: max(56px, calc((100vw - var(--content)) / 2 - 24px));
  bottom: clamp(32px, 7vh, 72px);
  display: flex; flex-direction: column; gap: 28px;
}
.hero-ui__intro {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  transition: opacity .35s var(--ease-out), translate .45s var(--ease-out);
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; max-width: 640px; }
.hero-copy h1 { font-size: clamp(38px, 3.9vw, 56px); line-height: 1.04; letter-spacing: -.03em; }
.hero-copy h1 span { display: block; }
/* hero copy is all lower case, as in the Figma hero (the source text keeps normal capitals) */
.hero-copy h1, .hero-copy p { text-transform: lowercase; }
/* translated pages keep their capitals: German nouns, Europe, Ukraine in lower case read as typos */
html:not([lang="uk"]) .hero-copy h1, html:not([lang="uk"]) .hero-copy p { text-transform: none; }
/* proper names keep their capital inside the lower-case hero copy (owner: «України» with a capital) */
.hero-copy .keep-case { text-transform: none; }
.hero-copy h1 .light { font-weight: 300; color: rgba(255, 255, 255, .8); }
.hero-copy p { font-size: 18px; line-height: 1.5; color: rgba(255, 255, 255, .9); max-width: 430px; }
.facts { display: flex; gap: 48px; }
.facts > div { width: 220px; border-top: 1px solid rgba(255, 255, 255, .5); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.facts dt { display: flex; align-items: flex-end; gap: 6px; white-space: nowrap; }
.facts b { font-weight: 300; font-size: 52px; line-height: 1; letter-spacing: -.03em; }
.facts small { font-size: 20px; color: rgba(255, 255, 255, .8); }
.facts dd { font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .8); }

/* ---------- hero quote form (Figma 119:656: route row, opens to cargo + contact) ---------- */
.qform {
  --q-blue: #0097ff;
  position: relative; color: var(--ink); padding: 16px 24px 24px 20px; border-radius: 24px;
  background: rgba(255, 255, 255, .72); border: 1px solid #fff;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 24px rgba(12, 34, 54, .14);
}
.qform__sheet-head { display: none; }
.qform__route {
  display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 200px auto;
  grid-template-areas: "from swap to when go"; gap: 12px; align-items: end;
}
.qf--from { grid-area: from; } .qf--to { grid-area: to; } .qf--when { grid-area: when; }
.qform__swap { grid-area: swap; } .qform__go { grid-area: go; }
.qf { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qf__label { font-size: 13px; font-weight: 600; color: rgba(12, 34, 54, .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qf__box {
  position: relative; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px;
  background: #fff; border: 1px solid rgba(12, 34, 54, .16); border-radius: 14px; cursor: text;
  box-shadow: inset 0 1px 2px rgba(12, 34, 54, .05);
  transition: border-color .2s, box-shadow .2s;
}
.qf__box:hover { border-color: rgba(12, 34, 54, .3); }
.qf__box:focus-within { border-color: var(--q-blue); box-shadow: inset 0 1px 2px rgba(12, 34, 54, .05), 0 0 0 3px rgba(0, 151, 255, .16); }
.qf__box > img { flex: none; width: 20px; height: 20px; }
.qf__turn { rotate: 90deg; }
.qf__box input {
  flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; padding: 0; background: none; outline: none;
  font: 500 16px/1.2 var(--font); color: var(--ink);
}
.qf__box input::placeholder { color: rgba(12, 34, 54, .45); font-weight: 400; opacity: 1; }
.qf__unit { flex: none; font-size: 15px; color: rgba(12, 34, 54, .5); }
.qf__prefix { flex: none; height: 32px; padding: 0 12px; border-radius: 12px; background: #e8f1fa; display: grid; place-items: center; font-size: 16px; }
.qf.is-bad .qf__box { border-color: #e5484d; box-shadow: inset 0 1px 2px rgba(12, 34, 54, .05), 0 0 0 3px rgba(229, 72, 77, .14); }
.qf.is-bad .qf__label { color: #c62f35; }
.qform__swap {
  width: 40px; height: 40px; margin-bottom: 8px; border-radius: 12px; border: 1px solid rgba(12, 34, 54, .12);
  background: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .35s var(--ease-out), border-color .2s;
}
.qform__swap:hover { border-color: var(--q-blue); }
.qform__swap.is-turned { transform: rotate(180deg); }
.qform__go {
  height: 56px; padding: 0 32px 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px;
  background: var(--q-blue); color: #fff; font: 600 17px/1 var(--font); white-space: nowrap; cursor: pointer;
  transition: background-color .2s, transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.qform__go:hover { background: #0a86e6; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 120, 220, .28); }
.qform__go[disabled] { cursor: progress; }
.qform__go img { width: 24px; height: 24px; }
/* step states of the button: blue -> (loading) -> grey «Заповніть решту даних» -> logo blue */
.qform__go.is-wait { background: #e4e9ef; color: rgba(12, 34, 54, .55); box-shadow: none; transform: none; }
.qform__go.is-wait img { filter: brightness(0); opacity: .35; }
.qform__go.is-ready { background: var(--sky); }
.qform__go.is-ready:hover { background: #1aadff; }
/* loading beat before step 2: the icon turns into a spinner */
.qform__go::before {
  content: ""; display: none; width: 20px; height: 20px; margin: 2px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: qspin .7s linear infinite;
}
.qform__go.is-loading::before { display: block; }
.qform__go.is-loading img { display: none; }
.qform__go.is-loading { cursor: progress; }
@keyframes qspin { to { transform: rotate(360deg); } }

/* popovers under (or over) a field: city suggestions and the calendar */
.qf { position: relative; }
.qpop {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; margin: 0;
  background: #fff; border: 1px solid rgba(12, 34, 54, .1); border-radius: 18px;
  box-shadow: 0 24px 48px rgba(12, 34, 54, .18), 0 2px 6px rgba(12, 34, 54, .06);
  animation: qpopIn .18s var(--ease-out);
}
.qpop.is-up { top: auto; bottom: calc(100% + 8px - 24px); }
.qpop[hidden] { display: none; }
@keyframes qpopIn { from { opacity: 0; translate: 0 -4px; } }
.qpop.is-up { animation-name: qpopUp; }
@keyframes qpopUp { from { opacity: 0; translate: 0 4px; } }
.qcity { right: 0; min-width: 280px; padding: 6px; list-style: none; max-height: 320px; overflow: hidden auto; overscroll-behavior: contain; }
/* too narrow: the raion shrinks away first, then the oblast, the name last (huge shrink ratios
   make it practically one after the other) */
.qcity li[role="option"] > * { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qcity__name { flex: 0 1 auto; }
.qcity li[role="option"] > small { flex: 0 1000000 auto; display: flex; justify-content: flex-end; }
.qcity__raion { flex: 0 1000000 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.qcity__obl { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.qcity li[role="option"] {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px;
  font-size: 15px; color: var(--ink); cursor: pointer;
}
.qcity li[role="option"] b { font-weight: 700; }
.qcity li[role="option"] small { font-size: 12px; color: rgba(12, 34, 54, .5); white-space: nowrap; }
.qcity li[role="option"]:hover, .qcity li[aria-selected="true"] { background: #eef5fc; }
/* nothing found: the typed text as the one row, in the brand blue with a pen */
.qcity li.qcity__free { align-items: center; justify-content: flex-start; gap: 10px; color: #0078d4; }
.qcity li.qcity__free .qcity__name { display: flex; flex-direction: column; gap: 2px; font-weight: 600; white-space: normal; overflow-wrap: anywhere; }
.qcity li.qcity__free .qcity__name small { font-weight: 400; color: rgba(12, 34, 54, .55); white-space: normal; }
.qcity__free-ico { flex: none; width: 20px; height: 20px; }
.qcity__head { padding: 8px 12px 4px; font-size: 12px; color: rgba(12, 34, 54, .45); }
/* «Дізнатись ціну» / «Заповніть решту даних»: both labels in one cell, the button is always as
   wide as the longer one */
.qform__go-label { display: grid; }
.qform__go-label > span { grid-area: 1 / 1; text-align: center; }
.qform__go:not(.is-wait) [data-go="rest"], .qform__go.is-wait [data-go="price"] { visibility: hidden; }
/* phone: the country code is a button opening a list of countries with a search field */
.qf__code { display: flex; align-items: center; gap: 4px; padding: 0 8px 0 12px; border: 0; cursor: pointer; font: inherit; font-size: 16px; color: var(--ink); transition: background-color .2s; }
.qf__code:hover, .qf__code[aria-expanded="true"] { background: #dbe9f7; }
.qf__code:focus-visible { outline: 2px solid var(--q-blue); outline-offset: 2px; }
.qf__code-chev { flex: none; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .6; transition: transform .2s; }
.qf__code[aria-expanded="true"] .qf__code-chev { transform: rotate(180deg); }
/* as wide as the phone field (owner: the list was narrower than the field), never under 300px */
.qcode { right: 0; width: auto; min-width: 300px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.qcode__q {
  height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(12, 34, 54, .14); background: #f6f9fc;
  font: inherit; font-size: 15px; color: var(--ink);
}
.qcode__q::placeholder { color: rgba(12, 34, 54, .45); }
.qcode__q:focus { outline: none; border-color: var(--q-blue); box-shadow: 0 0 0 3px rgba(0, 151, 255, .16); }
.qcode__list { position: relative; list-style: none; margin: 0; padding: 0; max-height: 260px; overflow: hidden auto; overscroll-behavior: contain; }
/* a row: the code bold on the left, then the flag and the country's name in a lighter weight */
.qcode__list li[role="option"] { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; font-size: 15px; color: var(--ink); cursor: pointer; }
.qcode__list li[role="option"] b { flex: none; min-width: 48px; font-weight: 700; }
.qcode__list li[role="option"] span { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 400; color: rgba(12, 34, 54, .72); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qcode__list li[role="option"] img { flex: none; width: 20px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(12, 34, 54, .1); }
.qcode__list li[role="option"]:hover, .qcode__list li.is-active { background: #eef5fc; }
.qcode__list li[aria-selected="true"] { background: #eef5fc; }
.qcode__list li[aria-selected="true"] span { color: var(--ink); }
.qcode__none { padding: 10px; font-size: 14px; color: rgba(12, 34, 54, .5); }
/* the cargo + contact part clips for its fold; while the list is open it must not */
.qform.is-code-open .qform__more-in { overflow: visible; }
.callback:has(.qcode:not([hidden])) { overflow: visible; }
@media (max-width: 760px) {
  /* phones: the list is the field's width, always under it */
  .qcity { left: 0; right: 0; min-width: 0; max-height: min(320px, 46vh); }
  .qcity li[role="option"] { padding: 12px; font-size: 16px; }
}
.qcal { width: 312px; padding: 14px; outline: none; }
.qcal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.qcal__title { font-size: 15px; font-weight: 600; }
.qcal__nav {
  width: 36px; height: 36px; border-radius: 10px; border: 0; background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.qcal__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qcal__nav:hover:not(:disabled) { background: #eef5fc; }
.qcal__nav:disabled { opacity: .25; cursor: default; }
.qcal__week, .qcal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.qcal__week span { padding: 6px 0; font-size: 12px; color: rgba(12, 34, 54, .45); }
.qcal__grid button {
  aspect-ratio: 1; border: 0; border-radius: 12px; background: none; font: 500 14px/1 var(--font); color: var(--ink); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.qcal__grid button:hover:not(:disabled) { background: #eef5fc; }
.qcal__grid button:disabled { color: rgba(12, 34, 54, .22); cursor: default; }
.qcal__grid button.is-today { box-shadow: inset 0 0 0 1.5px rgba(0, 151, 255, .5); }
.qcal__grid button.is-sel { background: var(--q-blue); color: #fff; box-shadow: none; }
.qcal__grid button:focus-visible { outline: 2px solid var(--q-blue); outline-offset: 1px; }
.qcal__foot { display: flex; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(12, 34, 54, .08); }
.qcal__foot button {
  flex: 1; height: 34px; border-radius: 10px; border: 1px solid rgba(12, 34, 54, .12); background: #fff;
  font: 500 13px/1 var(--font); color: var(--ink); cursor: pointer;
}
.qcal__foot button:hover { border-color: var(--q-blue); color: var(--q-blue); }
.qf--when .qf__box, .qf--when input { cursor: pointer; }
.qf__box.is-active { border-color: var(--q-blue); box-shadow: inset 0 1px 2px rgba(12, 34, 54, .05), 0 0 0 3px rgba(0, 151, 255, .16); }
.qf--when .qcal { left: auto; right: 0; }

/* the flat copy in «Про компанію»: same fields, no card */
.qform--flat { padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; }
.qform--flat .qform__cargo-head { border-top-color: rgba(12, 34, 54, .14); }

.qform__go:focus-visible, .qform__swap:focus-visible, .qform__close:focus-visible { outline: 2px solid var(--q-blue); outline-offset: 3px; }
/* the cargo + contact part folds away while the form is a single row */
.qform__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.qform.is-open .qform__more { grid-template-rows: 1fr; }
/* the clip (needed for the fold) gets 4 px of room on the sides and below, taken back by the
   margin, so the fields' 3 px focus ring is never cut off at the edges */
.qform__more-in { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s .45s; padding: 0 4px 4px; margin: 0 -4px -4px; }
.qform.is-open .qform__more-in { visibility: visible; transition: none; }
.qform__cargo-head {
  display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(12, 34, 54, .08);
  font-size: 14px; font-weight: 600;
}
.qform__extra { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.qform__cargo { display: flex; gap: 10px; align-items: end; }
/* sized to their content (owner, 2026-11-11): the room goes to the name */
.qf--len, .qf--wid, .qf--hei { width: 116px; } .qf--vol { width: 120px; } .qf--kg { width: 104px; }
.qform__cargo .qf__box { padding: 0 12px; gap: 6px; }   /* a value like 13.60 fits in 116 px */
.qform__or { height: 56px; padding: 0 4px; display: flex; align-items: center; font-size: 14px; color: rgba(12, 34, 54, .5); }
.qform__contact { flex: 1 1 460px; display: flex; gap: 10px; min-width: 0; }
.qf--tel { width: 276px; flex: none; } .qf--name { flex: 1; }
.qf--tel .qf__box { gap: 12px; }
.qform__status:empty { display: none; }
.qform__status { margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--ink-70); }
.qform__status.is-bad { color: #c62f35; }
.qform__status.is-ok { display: flex; gap: 8px; align-items: flex-start; color: var(--ink); }
.qform__status.is-ok svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: #1a9b55; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.qform__status a { color: var(--blue); text-decoration: underline; }
.qform__close {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(12, 34, 54, .12); background: #fff; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.qform__close svg { width: 18px; height: 18px; }
/* open on a short screen: the hero copy steps aside for the form */
@media (max-height: 940px) and (min-width: 761px) {
  .hero-ui.is-quoting .hero-ui__intro { opacity: 0; translate: 0 -16px; pointer-events: none; }
}
@media (max-width: 1500px) and (min-width: 761px) { .qform__contact { flex-basis: 100%; } }
/* the route stays one row down to 961 px (two rows ate a laptop's hero, owner 2026-11-03) */
@media (max-width: 1240px) and (min-width: 961px) {
  .qform__route { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 156px auto; }
  .qform__contact { flex-basis: 100%; }
}
@media (max-width: 960px) and (min-width: 761px) {
  .qform__route { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); grid-template-areas: "from swap to" "when go go"; }
  .qform__contact { flex-basis: 100%; }
}
/* short windows: the hero type follows the height, so the copy, facts and form keep their air */
@media (min-width: 761px) and (max-height: 800px) {
  .hero-ui__bottom { gap: 18px; }
  .hero-copy { gap: 16px; }
  .hero-copy h1 { font-size: clamp(32px, min(3.9vw, 6vh), 56px); }
  .hero-copy p { font-size: 16px; }
  .facts > div { padding-top: 12px; }
  .facts b { font-size: clamp(36px, 6vh, 52px); }
  .facts small { font-size: 17px; }
  .facts { gap: 32px; }
  .facts > div { width: 190px; }   /* clear of the truck at 1280 */
}
@media (max-width: 960px) and (min-width: 761px) {
  .qform__cargo { flex-wrap: wrap; }
  .qf--tel { width: 260px; }
}
/* phones: the row is a small card (from / to / button); opened, it is a full-screen sheet */
@media (max-width: 760px) {
  .qform { padding: 14px; border-radius: 20px; }
  .qform__route { grid-template-columns: minmax(0, 1fr) 40px; grid-template-areas: "from swap" "to swap" "when when" "go go"; gap: 10px; }
  .qform__swap { align-self: center; margin: 22px 0 0; }
  .qform__swap img { rotate: 90deg; }
  /* closed (hero and «Про компанію» alike): two rows, Звідки / Куди + Коли, the label inside the
     field over its value; the fields are filled in place. Only the button opens the whole form
     as a full-screen sheet (quote.js). The suggestion list and the calendar hang off the whole
     route block (full width, above it when the room is there), not off one field. */
  .qform:not(.is-sheet) .qform__swap { display: none; }
  .qform:not(.is-sheet) .qform__route { position: relative; grid-template-columns: minmax(0, 1fr) 112px; grid-template-areas: "from from" "to when" "go go"; }
  .qform:not(.is-sheet) .qf { position: static; }
  .qform:not(.is-sheet) .qf > .qf__box { height: 56px; }
  .qform:not(.is-sheet) .qf__label {
    position: absolute; z-index: 1; margin: 9px 0 0 47px; font-size: 12px; font-weight: 600; line-height: 1;
    color: rgba(12, 34, 54, .55); pointer-events: none;
  }
  .qform:not(.is-sheet) .qf__box input { padding-top: 17px; font-size: 15px; }
  .qform:not(.is-sheet) .qf--when .qf__box { padding: 0 12px; }
  .qform:not(.is-sheet) .qf--when .qf__box > img { display: none; }
  .qform:not(.is-sheet) .qf--when .qf__label { margin-left: 13px; }
  .qform:not(.is-sheet) .qpop { left: 0; right: 0; width: auto; }
  .qform:not(.is-sheet) .qpop.is-up { bottom: calc(100% + 8px); }
  .qform:not(.is-sheet) .qcal { left: auto; width: min(312px, 100%); }
  .qform--flat { padding: 0; border-radius: 0; }
  .qpop { position: absolute; }
  .qcal { width: min(312px, calc(100vw - 32px)); }
  .qform__go { width: 100%; }
  .qform.is-sheet {
    position: fixed; inset: 0; z-index: 90; overflow: auto; overscroll-behavior: contain; border-radius: 0; border: 0;
    padding: 0 16px 32px; background: #f4f8fc; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
  }
  .qform.is-sheet .qform__sheet-head {
    display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1;
    padding: 14px 0; margin-bottom: 6px; background: #f4f8fc; font-size: 18px; font-weight: 600;
  }
  /* the sheet is one grid: route fields, cargo + contact, and the button pinned at the bottom */
  .qform.is-sheet {
    display: grid; grid-template-columns: minmax(0, 1fr) 40px; align-content: start; column-gap: 10px; row-gap: 10px;
    grid-template-areas: "head head" "from swap" "to swap" "when when" "more more" "status status" "go go";
  }
  .qform.is-sheet .qform__route { display: contents; }
  .qform.is-sheet .qform__sheet-head { grid-area: head; }
  .qform.is-sheet .qform__more { grid-area: more; }
  .qform.is-sheet .qform__status { grid-area: status; margin-top: 0; }
  .qform.is-sheet { padding-bottom: 104px; }
  .qform.is-sheet .qform__go { position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: auto; z-index: 2; box-shadow: 0 10px 24px rgba(0, 120, 220, .28); }
  .qform.is-sheet .qform__go.is-wait { box-shadow: none; }   /* the grey «Заповніть решту даних» casts no blue glow */
  .qform.is-sheet .qform__cargo-head { margin-top: 6px; }
  .qform__cargo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
  .qf--len, .qf--wid, .qf--hei, .qf--vol, .qf--kg { width: auto; }
  .qf--vol { grid-column: span 2; }
  .qform__cargo .qf__box { padding: 0 12px; gap: 8px; }
  .qform__or { display: none; }
  .qform__contact { flex-direction: column; flex-basis: 100%; gap: 10px; }
  .qf--tel { width: auto; }
  :root.is-quote-sheet { overflow: hidden; }
  /* the «Про компанію» form sits in a .reveal box: once the form is fixed, the empty box leaves
     the screen, loses .is-in and its translate + opacity would trap the sheet inside it */
  .reveal:has(.qform.is-sheet) { transform: none !important; opacity: 1 !important; transition: none !important; }
  :root.is-quote-sheet .nav { visibility: hidden; }
}

/* ---------- 02 partners (over the held top-down loop) ---------- */
/* The screen's content sits inside the sticky stage at its final place; flip.js reveals it
   part by part during the transition and moves it up with the scroll on the way to «Чому ми?». */
.partners {
  position: absolute; inset: 0; z-index: 3;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px;
  padding: 104px var(--gutter) clamp(28px, 5vh, 56px);
  visibility: hidden; will-change: transform;
}
.partners.is-live { visibility: visible; }
.partners-spacer { height: 100vh; height: 100svh; margin-top: -100vh; margin-top: -100svh; }
/* eyebrow and heading appear where they stand: no travel */
.p-step { opacity: 0; filter: blur(10px); transition: opacity .7s var(--ease-out), filter .7s var(--ease-out); }
.p-step.is-on { opacity: 1; filter: none; }
@media (prefers-reduced-motion: reduce) { .p-step { filter: none; transition: opacity .2s; } }
.partners__left { align-self: start; }
.partners__right > .section-head { margin-bottom: 16px; }   /* a bit more air under «Ми вже працюємо з» */
/* right column: heading, then the hover card filling the free height, then the cards */
.partners__right {
  grid-column: 2; position: relative; align-self: stretch; min-height: 0;
  display: flex; flex-direction: column; gap: 18px;
  /* the grid is as wide as --gw with 2:1 cells, low enough to leave the hover card at least
     280 px above it (heading + gaps take ~150 px) */
  --gw: min(720px, 46vw);
  --cw: calc((var(--gw) - 36px) / 4);
  /* never flatter than 2.5:1 (on a short screen the preview above gives way first) */
  --ch: min(calc(var(--cw) / 2), max(calc(var(--cw) / 2.5), calc((100svh - var(--frame-top) - var(--frame-bottom) - 150px - 280px - 36px) / 4)));
  --gh: calc(var(--ch) * 4 + 36px);
  width: var(--gw);
}
/* laptops (a screen under ~820 px tall): no room for the preview above the cards, so it goes
   and the cards take the whole height (up to nearly square); a card opens the company on click */
@media (max-height: 820px) and (min-width: 761px) {
  .partners__right { --ch: min(calc(var(--cw) / 1.15), calc((100svh - var(--frame-top) - var(--frame-bottom) - 150px - 36px) / 4)); }
  .partners__right .pview { display: none; }
}
/* taller screens where the preview still cannot show every company's text at a readable size
   (flip.js decideMode): the same - no preview, full-height cards, a click opens the modal */
@media (min-width: 761px) {
  :root.pv-modal .partners__right { --ch: min(calc(var(--cw) / 1.15), calc((100svh - var(--frame-top) - var(--frame-bottom) - 150px - 36px) / 4)); }
  :root.pv-modal .partners__right .pview { display: none; }
}
@media (hover: hover) and (min-width: 961px) { :root.pv-modal .pcard { cursor: pointer; } }
/* card size follows the screen height so the grid, plus the preview above it, always fits */
.flapgrid {
  list-style: none; margin: 0; padding: 0; margin-top: auto;
  display: grid; grid-template-columns: repeat(4, var(--cw)); grid-auto-rows: var(--ch); gap: 12px;
}
.flapgrid > li { grid-column: var(--c); grid-row: var(--r); position: relative; perspective: 640px; }
/* A card hangs from a hinge on its top edge and swings down into place (flip.js). */
.pcard {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 0;
  border-radius: 22px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 16px 16px rgba(63, 103, 136, .12);
  transform-origin: 50% 0; backface-visibility: hidden;
  /* translate / scale are separate from transform, so they stack on top of the hinge swing */
  transition: box-shadow .35s var(--ease-out), background-color .35s, translate .45s cubic-bezier(.2, 1.4, .4, 1), scale .45s cubic-bezier(.2, 1.4, .4, 1);
}
.js-flip .pcard { opacity: 0; transform: rotateX(-90deg); }
.pcard img { max-width: 73%; max-height: 48%; width: auto; height: auto; pointer-events: none; transition: opacity .35s, filter .35s, scale .45s cubic-bezier(.2, 1.4, .4, 1); }
/* the company in the preview (hover, keyboard focus or the auto cycle): the card takes the
   company's own colour (the preview's), its logo recoloured the same way, and lifts on a
   neutral shadow */
.pcard.is-active, .pcard:focus-visible {
  z-index: 2; background: var(--pc-bg, #fff); border-color: transparent; translate: 0 -8px; scale: 1.06;
  box-shadow: 0 26px 34px rgba(12, 34, 54, .26), 0 4px 10px rgba(12, 34, 54, .1);
}
.pcard.is-active img { scale: 1.06; }
.pcard img.is-mono-white { filter: brightness(0) invert(1); }
.pcard img.is-mono-ink { filter: brightness(0); opacity: .9; }
@media (prefers-reduced-motion: reduce) { .pcard.is-active, .pcard:focus-visible { translate: none; scale: none; } .pcard.is-active img { scale: none; } }
/* Shading on the face while it swings */
.pcard::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 34, 54, 0), rgba(12, 34, 54, .18)); opacity: var(--shade, 0);
}

/* ---------- 04 Чому ми? (Figma 92:3881: bento on its own sky, rising over the road) ---------- */
.why {
  position: relative; z-index: 2; isolation: isolate;
  padding: 80px clamp(16px, 5.6vw, 80px) 72px;
  background: linear-gradient(180deg, #c9ddee 0%, #bcd3e7 55%, #d7e7f3 100%);
}
.why__flow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; object-fit: cover; }   /* scaled, never stretched */
.why__inner { width: 100%; max-width: 1520px; margin: 0 auto; display: flex; flex-direction: column; gap: 47px; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.bento > :nth-child(1), .bento > :nth-child(4) { grid-column: span 5; }
.bento > :nth-child(2), .bento > :nth-child(3) { grid-column: span 7; }
.bcard {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: 31px; cursor: default;
  background: rgba(255, 255, 255, .34); border: 1px solid rgba(255, 255, 255, .75);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(10, 51, 102, .08);
}
.bcard, .bcard.reveal {
  transition: translate .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s, opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: 0s, 0s, 0s, var(--d, 0ms), var(--d, 0ms);
}
.bcard--v { display: flex; flex-direction: column; gap: 24px; }
.bcard--v .bcard__text { margin-top: auto; }
.bcard--h { display: grid; grid-template-columns: minmax(0, 355fr) minmax(0, 417fr); gap: 32px; align-items: start; }
.bcard--h .bcard__text { align-self: end; }
.bcard__text { display: flex; flex-direction: column; gap: 12px; }
.bcard__num { font-size: 13px; color: rgba(12, 34, 54, .4); }
.bcard h3 { font-size: 26px; line-height: 1.2; letter-spacing: -.01em; font-weight: 400; }
.bcard p { font-size: 16px; line-height: 1.6; color: rgba(12, 34, 54, .7); }
.bcard__spot {
  position: absolute; left: var(--mx, 70%); top: var(--my, 30%); width: 560px; height: 460px; z-index: -1;
  translate: -50% -50%; pointer-events: none; opacity: 0; transition: opacity .4s;
  /* a soft glow in the logo blue, following the pointer (the Figma spotlight was much stronger) */
  background: radial-gradient(closest-side, rgba(0, 163, 255, .10), rgba(0, 163, 255, .04) 55%, rgba(0, 163, 255, 0));
}
@media (hover: hover) {
  /* hover (Figma: card 02): up 6px, 1.5px sky border (1px border + .5px ring), deeper shadow, spotlight */
  .bcard:hover { translate: 0 -6px; border-color: var(--sky); box-shadow: inset 0 0 0 .5px var(--sky), 0 26px 60px rgba(0, 90, 160, .12); }
  .bcard:hover .bcard__spot { opacity: 1; }
}

/* visuals: parts placed in design px of the inner box, scaled to the box by --u */
.bvis {
  position: relative; container-type: inline-size; overflow: hidden; border-radius: 20px;
  background: rgba(255, 255, 255, .45); border: 1px solid rgba(255, 255, 255, .85);
}
.bvis--route, .bvis--fleet { aspect-ratio: 564 / 151; --u: calc(100cqw / 562); }
.bvis--gps, .bvis--oneway { aspect-ratio: 417 / 296; --u: calc(100cqw / 415); }
.bvis--gps { background: linear-gradient(144.63deg, #133a60 0%, #0a2138 71.429%); border-color: rgba(255, 255, 255, .14); }
.bvis > *, .bv-units > i { position: absolute; left: calc(var(--ox, 0px) + var(--x) * var(--u)); top: calc(var(--oy, 0px) + var(--y) * var(--u)); }
.bvis > img, .bv-dot, .bv-units > i { width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); max-width: none; }
.bv-c { translate: -50% 0; }
.bv-t { font-size: max(10px, calc(12 * var(--u))); letter-spacing: .02em; color: rgba(12, 34, 54, .55); white-space: nowrap; }
.bv-t--blue { color: #0a6fd6; }
.bv-pill {
  display: flex; align-items: center; gap: calc(8 * var(--u)); padding: calc(7 * var(--u)) calc(12 * var(--u)); border-radius: 999px;
  background: rgba(255, 255, 255, .9); font-size: max(10px, calc(12 * var(--u))); letter-spacing: .02em; color: rgba(12, 34, 54, .85); white-space: nowrap;
}
.bv-pill--dark { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .9); }
.bv-pill i { position: relative; width: calc(7 * var(--u)); height: calc(7 * var(--u)); flex: none; }
.bv-pill i img { position: absolute; left: -85.71%; top: -85.71%; width: 271.42%; height: 271.42%; max-width: none; }
.bv-dot { display: grid; place-items: center; font-size: max(11px, calc(16 * var(--u))); color: #fff; }
.bv-dot img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bv-dot { line-height: 1; }
.bv-dot span { position: relative; }
.bv-dot--off { color: rgba(12, 34, 54, .35); }
.bv-back { display: flex; align-items: center; gap: calc(8 * var(--u)); white-space: nowrap; }
.bv-back s { font-size: max(10px, calc(12 * var(--u))); letter-spacing: .02em; color: rgba(12, 34, 54, .45); }
.bv-back b { font-weight: 400; font-size: max(10px, calc(13 * var(--u))); color: #0a6fd6; }
.bv-big { font-weight: 300; font-size: calc(81 * var(--u)); line-height: 1; letter-spacing: -.04em; color: #0a6fd6; }
.bv-fleet { display: flex; flex-direction: column; gap: calc(10 * var(--u)); font-size: max(11px, calc(14 * var(--u))); color: rgba(12, 34, 54, .7); }
.bv-pills { display: flex; gap: calc(6 * var(--u)); }
.bv-pills span {
  padding: calc(7 * var(--u)) calc(12 * var(--u)); border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(10, 111, 214, .2);
  font-size: max(10px, calc(12 * var(--u))); letter-spacing: .02em; color: rgba(12, 34, 54, .85); white-space: nowrap;
}
/* «Оплата лише в одну сторону»: two trucks seen from above, two directions - the loaded one
   (blue, 50 %) is what you pay for, the way back (grey) is 0 % */
.bvis--trucks svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ow-road { fill: rgba(12, 34, 54, .06); }
.ow-edge { stroke: #fff; stroke-width: 3; fill: none; opacity: .9; }
.ow-mid { stroke: #fff; stroke-width: 3; stroke-dasharray: 22 16; fill: none; opacity: .9; }
.ow-shadow { fill: rgba(12, 34, 54, .22); filter: blur(5px); }
.ow-trailer { fill: var(--sky); }
.ow-ribs path { stroke: rgba(255, 255, 255, .22); stroke-width: 1.5; }
.ow-hitch { fill: #2b4a66; }
.ow-cab { fill: #0a86e6; }
.ow-deflector { fill: #3cbaff; }
.ow-glass { fill: #0c2236; opacity: .82; }
.ow-mirror { fill: #0c2236; opacity: .7; }
.ow-truck--back .ow-trailer { fill: #e3e8ee; }
.ow-truck--back .ow-ribs path { stroke: rgba(12, 34, 54, .07); }
.ow-truck--back .ow-cab { fill: #c4cdd6; }
.ow-truck--back .ow-deflector { fill: #d5dce3; }
.ow-truck--back .ow-glass { fill: #5f7182; }
.ow-truck--back .ow-mirror, .ow-truck--back .ow-hitch { fill: #8796a5; }
.ow-truck--back .ow-shadow { fill: rgba(12, 34, 54, .14); }
.ow-pct { font: 300 28px/1 var(--font); letter-spacing: -.03em; fill: #fff; text-anchor: middle; dominant-baseline: middle; }
.ow-pct--off { fill: #7d8b99; }
/* both drive a little, each its own way; the lane marks run past to sell the motion */
@media (prefers-reduced-motion: no-preference) {
  .ow-truck--go .ow-truck__body, .ow-truck--go .ow-pct { animation: owGo 3.4s ease-in-out infinite alternate; }
  .ow-truck--back .ow-truck__body { animation: owGo 3.4s ease-in-out infinite alternate-reverse; }
  .ow-pct--off { animation: owBack 3.4s ease-in-out infinite alternate-reverse; }
}
@keyframes owGo { from { translate: -8px 0; } to { translate: 8px 0; } }
@keyframes owBack { from { translate: 8px 0; } to { translate: -8px 0; } }
.bv-units { position: absolute; inset: 0; }
.bv-units > i { border-radius: 4px; background: linear-gradient(170deg, #5cc4ff 0%, #0a6fd6 71.429%); }
/* small life: the live dots breathe, the fleet bars fill in once the card is in */
@media (prefers-reduced-motion: no-preference) {
  .bv-pulse { animation: bvPulse 2.4s ease-in-out infinite; }
  .bv-ring { animation: bvRing 2.4s ease-out infinite; }
  .bcard.reveal .bv-units > i { opacity: 0; scale: .3 1; transform-origin: left center; transition: opacity .4s, scale .6s var(--ease-out); }
  .bcard.reveal.is-in .bv-units > i { opacity: 1; scale: 1 1; transition-delay: calc(var(--d, 0ms) + 350ms + var(--k, 0) * 60ms); }
}
/* paused off screen and while the page moves (js/main.js) */
.why:not(.is-live) :is(.bv-pulse, .bv-ring, .ow-truck__body, .ow-pct),
.why.is-moving :is(.bv-pulse, .bv-ring, .ow-truck__body, .ow-pct) { animation-play-state: paused; }
@keyframes bvPulse { 50% { scale: 1.18; opacity: .7; } }
@keyframes bvRing { 0% { scale: .7; opacity: 0; } 30% { opacity: 1; } 100% { scale: 1.15; opacity: 0; } }

/* ---------- 05 insurance ---------- */
.insurance {
  position: relative; padding: 0 var(--gutter) 90px; text-align: center; overflow: hidden;
  /* picks up exactly where «Чому ми?» ends (#d7e7f3) and melts into the page's own gradient */
  background: linear-gradient(180deg, #d7e7f3 0, rgba(215, 231, 243, .6) 22vh, rgba(215, 231, 243, 0) 48vh);
}
.insurance__inner { position: relative; }
.insurance__million { width: min(88vw, 1267px); height: auto; margin: 4px auto 0; pointer-events: none; }
.paper {
  position: absolute; left: 50%; top: -7px; width: 225px; aspect-ratio: 225 / 309; padding: 0; border: 0;
  margin-left: -112px; border-radius: 6px; background: #fff; cursor: zoom-in; touch-action: none;
  box-shadow: 0 33px 60px rgba(36, 80, 122, .24), 0 3px 7.5px rgba(11, 42, 74, .1);
  transform: translate(var(--px, 0px), var(--py, 0px)) rotate(var(--rot, -2deg)) scale(var(--scale, 1));
  transition: transform .5s var(--ease-out), box-shadow .4s var(--ease-out);
}
/* hover / keyboard focus: the sheet straightens, comes forward and catches the light */
.paper:hover, .paper:focus-visible {
  --rot: 0deg; --scale: 1.08;
  box-shadow: 0 48px 90px rgba(36, 80, 122, .32), 0 6px 14px rgba(11, 42, 74, .12);
}
.paper.is-dragging { cursor: grabbing; transition: none; box-shadow: 0 50px 80px rgba(36, 80, 122, .3), 0 3px 7.5px rgba(11, 42, 74, .1); }
.paper img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; pointer-events: none; user-select: none; }
.paper__sheen { position: absolute; inset: 0; border-radius: 6px; overflow: hidden; background: linear-gradient(126deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, 0) 41.7%, rgba(191, 209, 229, .12) 83.3%); }
.paper__sheen::after {          /* a band of light that sweeps across on hover */
  content: ""; position: absolute; inset: -20% auto -20% -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: translateX(0) skewX(-12deg); opacity: 0;
}
.paper:hover .paper__sheen::after, .paper:focus-visible .paper__sheen::after { animation: paperSheen .9s var(--ease-out); }
@keyframes paperSheen { 0% { opacity: 0; transform: translateX(0) skewX(-12deg); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateX(420%) skewX(-12deg); } }
.paper__zoom {
  position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center; background: rgba(255, 255, 255, .94); box-shadow: 0 6px 7.5px rgba(11, 42, 74, .18);
  transition: transform .35s cubic-bezier(.2, 1.4, .4, 1), background-color .25s, box-shadow .25s;
}
.paper__zoom img { display: block; width: 18px; height: 18px; transition: filter .25s; }
.paper:hover .paper__zoom { transform: scale(1.06); }
/* the button itself: blue, white glyph, a little bigger */
.paper__zoom:hover, .paper:focus-visible .paper__zoom { background: var(--blue); transform: scale(1.18); box-shadow: 0 10px 18px rgba(10, 111, 214, .35); }
.paper__zoom:hover img, .paper:focus-visible .paper__zoom img { filter: brightness(0) invert(1); }
@media (prefers-reduced-motion: reduce) {
  .paper:hover, .paper:focus-visible { --scale: 1; }
  .paper:hover .paper__sheen::after, .paper:focus-visible .paper__sheen::after { animation: none; }
}
.insurance__copy { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 185px; }
.insurance__copy h2 { font-size: clamp(34px, 3.3vw, 48px); letter-spacing: -.02em; max-width: 760px; }
.insurance__copy p { font-size: 17px; line-height: 1.65; color: rgba(12, 34, 54, .72); max-width: 720px; }

.brand { display: flex; align-items: flex-start; justify-content: center; margin: 60px auto 0; gap: 21px; }
.orb { position: relative; width: 100px; height: 100px; flex: none; }
.orb canvas, .orb video, .orb__poster { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.orb canvas, .orb video { width: 146%; height: 146%; }      /* the sphere fills ~68% of the clip */
.orb__poster { width: 220%; height: 220%; top: 96%; object-fit: contain; transition: opacity .4s; }
.orb.is-live .orb__poster { opacity: 0; }
.brand__word {
  width: 239px; height: auto; margin: -22px -60px -98px -60px;   /* the SVG keeps its old shadow padding; -22 centres the letters on the ball */
}

/* ---------- sky behind «Відгуки» + «Про компанію»: the hero's sky (pale, a warm sun glow
   up right, cool haze on the left), rising out of the page colour and settling back ---------- */
.sky {
  background:
    radial-gradient(55% 32% at 84% 22%, rgba(255, 252, 244, .95), rgba(255, 252, 244, 0) 72%),
    radial-gradient(60% 36% at 8% 34%, rgba(214, 224, 234, .7), rgba(214, 224, 234, 0) 70%),
    linear-gradient(180deg, rgba(233, 239, 244, 0) 0%, #e8eef3 16%, #eff2f5 34%, #e6ecf1 55%, #d6e2ec 78%, #c8d9e8 100%);
}
.sky .dots button:not([aria-selected="true"])::before { background: rgba(12, 34, 54, .16); }
.sky .reviews__arrows .round.is-edge { background: rgba(12, 34, 54, .07); }

/* ---------- 06 reviews ---------- */
.reviews { padding: 60px var(--gutter) 60px; }
.reviews__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.reviews__arrows { display: flex; gap: 12px; }
.round { width: 56px; height: 56px; border-radius: 999px; border: 0; display: grid; place-items: center; transition: transform .3s var(--ease-out); }
.round:hover { transform: scale(1.06); }
.round--light { background: rgba(255, 255, 255, .6); }
.round--dark { background: var(--ink); }
/* review arrows: dark while there is a slide that way, light at the end of the list
   (still clickable there: it wraps to the other end) */
.reviews__arrows .round { background: var(--ink); color: #fff; transition: transform .3s var(--ease-out), background-color .35s var(--ease-out), color .35s var(--ease-out); }
.reviews__arrows .round.is-edge { background: rgba(255, 255, 255, .6); color: var(--ink); }
.reviews__arrows .round svg { display: block; }
/* the viewport clips neighbouring slides, but its padding leaves room for a letter's tilt,
   hover lift and shadow; the slide gap (2x the side padding) keeps neighbours out of that room */
.reviews__viewport {
  --rv-x: var(--gutter); --rv-top: 64px; --rv-bottom: 150px;
  overflow: hidden; padding: var(--rv-top) var(--rv-x) var(--rv-bottom);
  margin: calc(104px - var(--rv-top)) calc(-1 * var(--rv-x)) calc(-1 * var(--rv-bottom));
  touch-action: pan-y;   /* sideways swipes are the slider's (js/main.js), not the browser's back gesture */
}
.reviews__track { display: flex; gap: calc(2 * var(--rv-x)); transition: transform .7s var(--ease-out); }
.quote { flex: 0 0 100%; display: flex; flex-direction: column; gap: 32px; max-width: 100%; padding-right: 2px; }
.quote blockquote { font-weight: 300; font-size: clamp(20px, min(1.95vw, 2.6vh), 28px); line-height: 1.5; letter-spacing: -.01em; max-width: 1040px; }
.quote figcaption { display: flex; align-items: center; gap: 18px; }
.quote figcaption b { display: block; font-weight: 700; font-size: 17px; }
.quote figcaption small { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-60); }
.quote__logo { width: 96px; height: 48px; display: grid; place-items: center; flex: none; }
.quote__logo img { max-width: 96px; max-height: 32px; width: auto; height: auto; mix-blend-mode: luminosity; }
/* each dot is a 24 px tap target (WCAG 2.5.8) drawn as the old 8 px dot by ::before; the -8 px
   margins keep the row 8 px tall, so nothing around it moves */
.dots { display: flex; gap: 0; margin-top: 42px; }
.dots button { position: relative; width: 24px; height: 24px; margin: -8px 0; border: 0; padding: 0; background: none; cursor: pointer; transition: width .4s var(--ease-out); }
.dots button::before { content: ""; position: absolute; inset: 8px; border-radius: 4px; background: rgba(255, 255, 255, .9); transition: background-color .3s; }
.dots button[aria-selected="true"] { width: 44px; }
.dots button[aria-selected="true"]::before { background: var(--blue); }

/* ---------- 07 about: see «Про компанію» (option 04) at the end ---------- */

/* ---------- 08 contacts ---------- */
.contacts { background: linear-gradient(90deg, #0a6fd6, #00a3ff); color: #fff; padding: 100px var(--gutter) 36px; }
.contacts__top { display: flex; justify-content: space-between; gap: 48px; }
.contacts__cta { display: flex; flex-direction: column; gap: 36px; max-width: 640px; }
.contacts__cta h2 { font-size: var(--h2); line-height: 1.05; letter-spacing: -.03em; max-width: 620px; }
.contacts__list { width: min(420px, 100%); }
.contacts__list > div { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.contacts__list dt { font-size: 13px; letter-spacing: .06em; color: rgba(255, 255, 255, .7); }
.contacts__list dd { font-size: 21px; }
.contacts__list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contacts__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 160px; }
.contacts__bottom nav { display: flex; flex-wrap: wrap; gap: 32px; font-size: 15px; color: rgba(255, 255, 255, .85); }
.contacts__bottom nav a:hover { color: #fff; }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; margin: 0; overflow: auto; }
.lightbox::backdrop { background: rgba(12, 34, 54, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox img { width: min(92vw, 1000px); height: auto; margin: 5vh auto; border-radius: 8px; box-shadow: 0 40px 80px rgba(0, 0, 0, .3); cursor: zoom-out; }
.lightbox[open] img { animation: pop .45s var(--ease-out); }
.lightbox__close { position: fixed; right: 20px; top: 16px; width: 48px; height: 48px; border-radius: 999px; border: 0; background: #fff; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: transform .3s var(--ease-out), background-color .25s, color .25s; }
.lightbox__close svg { display: block; width: 20px; height: 20px; }
.lightbox__close:hover { transform: scale(1.08); background: var(--blue); color: #fff; }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(12px); } }
/* touch screens: full-screen viewer, pinch / double-tap zoom (main.js) */
.lightbox__close { z-index: 2; }
.lightbox.is-zoomable { width: 100vw; height: 100vh; height: 100dvh; overflow: hidden; touch-action: none; }
.lightbox.is-zoomable img {
  position: absolute; left: 0; top: 0; margin: 0; max-width: none; transform-origin: 0 0; border-radius: 4px;
  cursor: default; animation: lbFade .3s var(--ease-out); will-change: transform; -webkit-user-select: none; user-select: none;
}
.lightbox.is-zoomable img.is-easing { transition: transform .28s var(--ease-out); }
@keyframes lbFade { from { opacity: 0; } }
:root.is-viewing { overflow: hidden; }
/* phones: a swipe that starts on a paper scrolls the page (the drag toy is for mice) */
@media (max-width: 760px) { .paper { touch-action: manipulation; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none !important; transition: opacity .6s; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav__pill { display: none; }
  .bento > * { grid-column: span 6 !important; }
  .bcard--h { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  .bcard--h .bvis { order: -1; }
  .bcard--h .bcard__text { margin-top: auto; }
  .facts { gap: 28px; }
  .facts > div { width: 180px; }
}
@media (max-width: 1180px) and (min-width: 761px) {
  .nav__burger { display: grid; }
}
@media (max-width: 960px) {
  .partners { grid-template-columns: 1fr; }
  .contacts__top { flex-direction: column; }
}
@media (max-width: 760px) {
  .nav { height: 72px; padding: 0 16px; }
  .nav.is-compact { height: 64px; }
  .nav__brand, .nav.is-compact .nav__brand { width: 104px; }
  .nav__cta { display: none; }
  .nav__burger { display: grid; }
  /* phones (Figma 165:47145): no wordmark and no facts; the film sits in the upper two thirds
     under the header, the copy and the form stand on the tint below it */
  .hero-ui__wordmark, .hero-ui .facts { display: none; }
  .stage canvas, .stage video { top: 0; bottom: auto; height: 68%; }
  .hero-tint {
    top: 21%;
    background: linear-gradient(180deg, rgba(111, 149, 182, 0) 0%, rgba(111, 149, 182, .5) 45%, rgba(63, 103, 136, .9) 59%, rgba(63, 103, 136, .9) 100%);
  }
  /* partners on the page colour, not over the road */
  .partners::before {
    content: ""; position: absolute; inset: 0; z-index: -1; background: var(--render-white);
    opacity: 0; transition: opacity .6s var(--ease-out);
  }
  .partners.is-live::before { opacity: 1; }
  .hero-ui__bottom { left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 22px; bottom: 24px; }
  .hero-ui__intro { flex-direction: column; align-items: stretch; gap: 18px; }
  .hero-copy { gap: 16px; }
  .hero-copy p { font-size: 16px; }
  .facts { gap: 16px; }
  .facts > div { flex: 1; width: auto; padding-top: 12px; }
  .facts b { font-size: 36px; }
  .facts small { font-size: 16px; }
  .facts dd { font-size: 13px; }
  .btn { font-size: 15px; padding-left: 18px; gap: 10px; }
  .btn i { width: 36px; height: 36px; }
  .why { padding: 48px 16px 56px; }
  .why__inner { gap: 28px; }
  .bento { gap: 16px; }
  .bento > * { grid-column: 1 / -1 !important; }
  .bcard { padding: 18px; border-radius: 22px; gap: 18px; }
  /* phones: flat glass, no background blur and no shadow (Figma 165:47145; also cheaper to scroll) */
  .bcard { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .bcard h3 { font-size: 22px; }
  .bcard p { font-size: 15px; }
  .partners { padding: 80px 16px 0; gap: 20px; }
  .partners__right { grid-column: 1; align-self: start; width: auto; --ch: 72px; }
  .flapgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 72px; gap: 8px; }
  .flapgrid > li { grid-column: auto; grid-row: auto; }
  .pcard { border-radius: 16px; }
  .pcard img { max-width: 76%; max-height: 38px; }
  /* insurance: the policy on top over the million, then copy, then a smaller ball + wordmark */
  .insurance { padding: 0 16px 36px; }
  .insurance__inner { padding-top: 150px; }   /* padding, not the million's margin: a margin collapses through and drags the paper down */
  .insurance__million { margin-top: 0; }
  .paper { top: 31px; width: 157px; margin-left: -78.5px; }
  .insurance__copy { margin-top: 64px; }
  .insurance__copy p { font-size: 16px; line-height: 26px; }
  .brand { margin-top: 96px; gap: 16px; }
  .orb { width: 68px; height: 68px; }
  .brand__word { width: 179px; margin: -16.5px -45px -73.5px -45px; }   /* .75 of the desktop box */
  .quote blockquote { font-size: 16px; font-weight: 500; line-height: 1.5; }
  .reviews { padding: 48px 16px; }
  .reviews__viewport { --rv-x: 16px; }   /* the room for a letter = this side padding, never wider */
  .reviews__arrows .round { width: 48px; height: 48px; }
  .reviews__viewport { --rv-top: 0px; margin-top: 40px; }   /* no letter on phones, so no room kept above the quote */
  .contacts { padding: 72px 16px 28px; }
  .contacts__list dd { font-size: 18px; }
  .contacts__bottom { flex-direction: column; align-items: flex-start; margin-top: 72px; }
  .contacts__bottom nav { gap: 20px; }
  .hero-copy h1 { font-size: 34px; }
  .hero-copy p { font-size: 15px; }
  .hero-copy .btn--white { display: none; }
  .hero-ui__bottom { gap: 18px; }
}
/* three bare lines (owner, 2026-10-30): no circle; the 48 px button stays the touch target */
.nav__burger {
  margin-left: 12px; margin-right: -11px; width: 48px; height: 48px; border: 0; border-radius: 12px; background: none;
  place-items: center; align-content: center; gap: 5px; padding: 0; cursor: pointer; color: var(--ink);
}
.nav__burger span { display: block; width: 24px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .3s var(--ease-out), opacity .2s, background-color .3s; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
.nav__burger:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.nav__sheet:not([hidden]) {
  display: flex; flex-direction: column; position: absolute; right: 16px; top: calc(100% - 4px);
  min-width: 220px; padding: 8px; border-radius: 22px; background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 16px 40px rgba(12, 34, 54, .18);
}
.nav__sheet a { padding: 14px 16px; border-radius: 14px; font-size: 16px; }
.nav__sheet a:hover { background: rgba(10, 111, 214, .08); }
@media (max-width: 760px) {
  .lang--nav { display: none; }
  /* in the sheet: a full-width row under a divider; the list opens in place below it */
  .nav__sheet .lang--sheet { display: block; position: relative; margin-top: 9px; }
  .nav__sheet .lang--sheet::before {
    content: ""; position: absolute; left: 16px; right: 16px; top: -5px; height: 1px; background: rgba(12, 34, 54, .1);
  }
  .lang--sheet .lang__btn {
    width: 100%; height: auto; padding: 14px 16px; gap: 12px; border: 0; border-radius: 14px; background: none;
    -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 16px; font-weight: 400; letter-spacing: 0; text-align: left;
  }
  .lang--sheet .lang__btn:hover, .lang--sheet .lang__btn[aria-expanded="true"] { background: rgba(10, 111, 214, .08); }
  .lang--sheet .lang__name { flex: 1; }
  .lang--sheet .lang__menu { padding: 4px 0 2px; }
  .nav__sheet .lang--sheet .lang__menu a { padding: 0 16px 0 48px; font-size: 16px; }
}

/* ---------- ?tune panel ---------- */
.tune {
  position: fixed; right: 16px; bottom: 16px; z-index: 80; width: 300px; padding: 14px 16px 16px;
  border-radius: 16px; background: rgba(12, 34, 54, .86); color: #fff; font: 13px/1.45 system-ui, sans-serif;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 12px 32px rgba(12, 34, 54, .3);
}
.tune b { display: block; font-size: 12px; letter-spacing: .06em; opacity: .7; margin-bottom: 8px; }
.tune label { display: block; margin-top: 10px; }
.tune input[type=range] { width: 100%; accent-color: #00a3ff; }
.tune output { float: right; font-variant-numeric: tabular-nums; }
.tune code { display: block; margin-top: 12px; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .1); font: 12px ui-monospace, Consolas, monospace; user-select: all; }
.tune .tune__live { margin-top: 10px; opacity: .75; font: 12px ui-monospace, Consolas, monospace; white-space: pre; }

/* ---------- partner preview (hover / focus a card), styled per company ----------
   Pops up right above the card grid, as wide as the grid: photo on the left melting into a
   colour sampled from its edge, logo + text on the right. */
.partners__left { display: flex; flex-direction: column; gap: 48px; min-width: 0; }
.pview {
  --pv-bg: #eaf2f9; --pv-ink: #0c2236;
  /* fills the space between the heading and the grid, rising out of the grid on hover */
  position: relative; flex: 1 1 auto; min-height: 0;
  display: grid; grid-template-columns: var(--pv-media, 46%) 1fr;
  border-radius: 26px; overflow: hidden;
  background: var(--pv-bg); color: var(--pv-ink);
  box-shadow: 0 28px 50px rgba(12, 34, 54, .22), 0 2px 6px rgba(12, 34, 54, .08);
  opacity: 0; transform: translateY(18px) scale(.97); transform-origin: 50% 100%; visibility: hidden;
  transition: opacity .3s var(--ease-out), transform .45s var(--ease-out), visibility 0s .45s,
              background-color .45s var(--ease-out), color .45s var(--ease-out);
  pointer-events: none;
}
.pview.is-quick { transition-duration: .12s, .12s, 0s, .12s, .12s; }
.pview.is-on { opacity: 1; transform: none; visibility: visible;
  transition: opacity .3s var(--ease-out), transform .45s cubic-bezier(.2, 1.4, .4, 1), background-color .45s var(--ease-out), color .45s var(--ease-out); }
/* the photo fades out to the right into the card itself (mask): no edge, even mid-animation */
.pview__media { position: relative; min-height: 0; overflow: hidden; }
.pview__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 100%); mask-image: linear-gradient(90deg, #000 45%, transparent 100%);
}
.pview__body {
  position: relative; display: flex; flex-direction: column; justify-content: flex-start; min-width: 0; min-height: 0;
  padding: 22px 28px 22px 6px; overflow: hidden;
}
/* a fixed band, logos centred in it; each logo's size comes from flip.js (optical balance) */
/* the band shrinks a little for long texts (flip.js fit), never below the logo itself */
.pview__logo { height: max(calc(112px * var(--ls, 1) * var(--pv-band, 1)), var(--pv-logo-h, 0px)); flex: none; display: flex; align-items: center; }
.pview__logo img { display: block; max-width: none; object-fit: fill; }
.pview__logo img.is-mono-white { filter: brightness(0) invert(1); }
.pview__logo img.is-mono-ink { filter: brightness(0); opacity: .9; }
.pview__title { margin-top: 10px; font-size: clamp(20px, 2.2vh, 26px); letter-spacing: -.01em; line-height: 1.15; }
/* the full text from fm-auto.com.ua, every paragraph; flip.js fits it by font size and
   photo width instead of cutting it */
.pview__text { margin-top: 8px; font-size: var(--pv-fs, 15px); line-height: var(--pv-lh, 1.5); }
.pview__text p + p { margin-top: .5em; }
.pview.is-swap .pview__media img, .pview.is-swap .pview__body > * { animation: pviewIn .45s var(--ease-out) both; }
.pview.is-swap .pview__title { animation-delay: .05s; }
.pview.is-swap .pview__text { animation-delay: .1s; }
@keyframes pviewIn { from { opacity: 0; transform: translateY(8px); } }
.pview.is-swap .pview__media img { animation-name: pviewImg; }
@keyframes pviewImg { from { opacity: 0; } }
.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; }
@media (hover: none), (max-width: 960px) { .pview { display: none; } }

/* ---------- partner card: touch screens and narrow windows (flip.js). A tap on a card opens the
   company's card full screen, in its own colours: a bar with the cross on top, then photo
   melting into the colour, logo, title, the full text (scrolls), and a full-width «Закрити». ---------- */
.psheet {
  --pv-bg: #eaf2f9; --pv-ink: #0c2236;
  position: fixed; inset: 0; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden; background: var(--pv-bg);
  flex-direction: column; color: var(--pv-ink);
  transition: translate .24s cubic-bezier(.5, 0, .75, 0);
}
.psheet[open] { display: flex; }
/* the close button floats over the photo, so the photo starts at the very top (phones too) */
.psheet__bar {
  position: absolute; top: 0; right: 0; z-index: 2; display: flex; justify-content: flex-end; align-items: center;
  padding: max(12px, env(safe-area-inset-top)) 12px 0; background: none;
}
.psheet__panel { flex: 1 1 auto; min-height: 0; overflow: hidden auto; overscroll-behavior: contain; }
.psheet__foot {
  flex: none; padding: 12px 16px max(16px, env(safe-area-inset-bottom)); background: var(--pv-bg);
  box-shadow: 0 -10px 24px color-mix(in srgb, var(--pv-bg) 92%, transparent);
}
.psheet__done {
  display: block; width: 100%; height: 52px; border: 0; border-radius: 16px; cursor: pointer;
  background: var(--pv-ink); color: var(--pv-bg); font: inherit; font-size: 16px; font-weight: 600;
}
.psheet__done:focus-visible, .psheet__close:focus-visible { outline: 2px solid var(--pv-ink); outline-offset: 3px; }
.psheet::backdrop { background: rgba(12, 34, 54, .45); transition: opacity .24s; }
.psheet[open] { animation: psheetUp .45s var(--ease-out); }
.psheet[open]::backdrop { animation: psheetFade .3s var(--ease-out); }
.psheet.is-closing { translate: 0 100%; }
.psheet.is-closing::backdrop { opacity: 0; }
@keyframes psheetUp { from { transform: translateY(100%); } }
@keyframes psheetFade { from { opacity: 0; } }
:root:has(.psheet[open]) { overflow: hidden; }
.psheet__close {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0;
  background: color-mix(in srgb, var(--pv-bg) 78%, transparent); color: var(--pv-ink); cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.psheet__close svg { width: 18px; height: 18px; }
.psheet__media { aspect-ratio: 16 / 10; max-height: 46vh; overflow: hidden; }
.psheet__media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.psheet__body { position: relative; max-width: 720px; margin: -24px auto 0; padding: 0 20px 24px; }
.psheet__logo { min-height: 44px; display: flex; align-items: center; }
.psheet__logo img { display: block; max-width: none; object-fit: fill; }
.psheet__logo img.is-mono-white { filter: brightness(0) invert(1); }
.psheet__logo img.is-mono-ink { filter: brightness(0); opacity: .9; }
.psheet__title { margin-top: 12px; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; font-weight: 500; }
.psheet__text { margin-top: 8px; font-size: 15px; line-height: 1.55; }
.psheet__text p + p { margin-top: .6em; }
/* wider screens (touch laptops, tablets, short windows where the preview has no room): the same
   card as a centred modal - photo across the top, one text column, closed by the cross, Esc or a
   click outside */
@media (min-width: 761px) {
  .psheet {
    inset: 0; margin: auto; width: min(760px, calc(100vw - 48px)); height: fit-content;
    max-height: min(880px, calc(100dvh - 48px)); border-radius: 28px;
    box-shadow: 0 40px 90px rgba(12, 34, 54, .35);
    transition: opacity .2s var(--ease-out), scale .2s var(--ease-out);
  }
  .psheet__bar { padding: 16px; }
  /* never a scrollbar: the photo gives up height first (down to 120 px), then the type steps
     down (flip.js fitSheet sets --ps-fs) */
  .psheet__panel { display: flex; flex-direction: column; overflow: hidden; }
  .psheet__media { flex: 0 1 auto; aspect-ratio: 16 / 9; min-height: 120px; max-height: none; }
  .psheet__body { flex: none; max-width: none; margin: -32px 0 0; padding: 0 44px 36px; }
  .psheet__title { font-size: calc(var(--ps-fs, 16px) * 1.75); }
  .psheet__text { margin-top: 12px; font-size: var(--ps-fs, 16px); line-height: 1.6; }
  .psheet__foot { display: none; }
  .psheet[open] { animation: psheetPop .35s var(--ease-out); }
  .psheet.is-closing { translate: none; opacity: 0; scale: .97; }
}
@keyframes psheetPop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
/* every close button on a layer above the page answers the pointer the same way as the policy
   viewer's: it grows a little and fills (brand blue; the partner card in the company's own ink) */
.qform__close, .callback__close, .psheet__close {
  transition: transform .3s var(--ease-out), background-color .25s, color .25s, border-color .25s;
}
@media (hover: hover) {
  .qform__close:hover, .callback__close:hover { transform: scale(1.08); background: var(--blue); border-color: var(--blue); color: #fff; }
  .psheet__close:hover { transform: scale(1.08); background: var(--pv-ink); color: var(--pv-bg); }
}
.qform__close:active, .callback__close:active, .psheet__close:active, .lightbox__close:active { transform: scale(.96); }
/* short windows with a mouse: the cards open the modal, so they say so */
@media (hover: hover) and (min-width: 961px) and (max-height: 820px) { .pcard { cursor: pointer; } }
@media (prefers-reduced-motion: reduce) {
  .psheet, .psheet[open], .psheet[open]::backdrop { animation: none; transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pview, .pview.is-on { transform: none; }
  .pview.is-swap .pview__media img, .pview.is-swap .pview__body > * { animation: none; }
}

/* ---------- layout frame (last, so it wins over the per-section paddings above) ---------- */
.nav { padding-left: var(--gutter); padding-right: var(--gutter); }
.hero-ui__bottom { left: var(--gutter); right: var(--gutter); bottom: var(--frame-bottom); }
.partners { padding: var(--frame-top) var(--gutter) var(--frame-bottom); }
.why { padding-top: var(--frame-top); padding-bottom: var(--frame-bottom); }
@media (min-width: 761px) {
  /* key screens: at least one screen tall, content centred in the frame (below the nav);
     taller than the screen, it starts at the frame's top edge instead (safe) */
  .why, .insurance, .reviews, .contacts {
    min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: safe center;
    padding-top: var(--frame-top); padding-bottom: var(--frame-bottom);
  }
  /* contacts: the main block centred in the space above the bottom row, which stays at the bottom */
  .contacts { justify-content: flex-start; }
  .contacts__top { margin-block: auto; }
  .contacts__bottom { margin-top: 48px; }
}
@media (max-width: 760px) {
  :root { --frame-gap: 28px; --frame-top: 96px; }
  .nav { padding: 0 16px; }
  .hero-ui__bottom { left: 16px; right: 16px; bottom: 24px; }
  /* every block is at least one screen and starts under the header, so one block is seen at a time */
  .insurance, .reviews, .contacts {
    min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: safe center;
    padding-top: var(--frame-top);
  }
  /* the last block fills the screen with the browser's bar hidden too (it hides at the page end):
     at 100svh the block above showed through under the header (owner screenshot 2026-11-01) */
  .contacts { justify-content: flex-start; min-height: 100lvh; }
  .contacts__top { margin-block: auto; }
  .insurance .paper { top: 0; }
  .insurance__inner { padding-top: 119px; }
}
/* phones: no scrubbed transition (hero.js startLite), the film just fades; a short track */
:root.hero-lite { --scroll-length: 60vh; }
.hero-lite .stage canvas, .hero-lite .stage .loop-end, .hero-lite .stage .loop-road { display: none; }

/* ---------- sent: the fields make way for a confirmation ---------- */
.qform.is-done > :not(.qdone):not(.qform__sheet-head):not(h2), .callback__form.is-done > :not(.qdone):not(.callback__close) { display: none; }
.qdone { display: flex; align-items: center; gap: 18px; padding: 6px 4px; outline: none; animation: qpopIn .35s var(--ease-out); }
.qdone__check {
  flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--sky); display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(0, 120, 220, .25);
}
.qdone__check svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.qdone__body { flex: 1; min-width: 0; }
.qdone__title { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.qdone__text { margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--ink-70); }
.qdone__route { margin-top: 6px; font-size: 13px; color: var(--ink-60); }
.qdone__again {
  flex: none; height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid rgba(12, 34, 54, .14); background: #fff;
  font: 600 14px/1 var(--font); color: var(--ink); cursor: pointer;
}
.qdone__again:hover { border-color: #0097ff; color: #0097ff; }
.qdone--dialog { flex-direction: column; align-items: flex-start; gap: 10px; padding: 0; }
.qdone--dialog .qdone__title { font-size: 26px; margin-top: 4px; }
.qdone--dialog .qdone__close { width: 100%; margin-top: 8px; }
.qdone__actions { display: contents; }
.qdone__ok { display: none; }
@media (max-width: 760px) {
  .qdone { flex-wrap: wrap; }
  .qdone__again { width: 100%; }
  /* in the full-screen sheet: one centred message, the actions pinned to the bottom */
  .qform.is-sheet.is-done { display: flex; flex-direction: column; min-height: 100%; }
  .qform.is-sheet .qdone {
    flex: 1; flex-direction: column; flex-wrap: nowrap; justify-content: center; align-items: center;
    gap: 0; padding: 0 12px 150px; text-align: center;
  }
  .qform.is-sheet .qdone__check { width: 88px; height: 88px; box-shadow: 0 16px 36px rgba(0, 120, 220, .28); }
  .qform.is-sheet .qdone__check svg { width: 40px; height: 40px; }
  .qform.is-sheet .qdone__body { flex: none; margin-top: 28px; display: flex; flex-direction: column; align-items: center; }
  .qform.is-sheet .qdone__title { font-size: 28px; letter-spacing: -.02em; }
  .qform.is-sheet .qdone__text { margin-top: 10px; max-width: 300px; font-size: 16px; line-height: 1.5; }
  .qform.is-sheet .qdone__route {
    margin-top: 20px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid rgba(12, 34, 54, .08);
    font-size: 15px; font-weight: 600; color: var(--ink);
  }
  .qform.is-sheet .qdone__actions {
    display: flex; flex-direction: column; gap: 10px; position: fixed; left: 16px; right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom)); z-index: 2;
  }
  .qform.is-sheet .qdone__ok { display: flex; position: static; width: 100%; }
  .qform.is-sheet .qdone__again { height: 56px; border-radius: 16px; font-size: 16px; background: transparent; }
}

/* ---------- callback request (dialog) ---------- */
.callback {
  --q-blue: #0097ff;
  width: min(440px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; border-radius: 28px; color: var(--ink);
  background: #fff; box-shadow: 0 40px 80px rgba(12, 34, 54, .28);
}
.callback::backdrop { background: rgba(12, 34, 54, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.callback[open] { animation: pop .4s var(--ease-out); }
.callback__form { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.callback h2 { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; font-weight: 500; padding-right: 40px; }
.callback__lead { font-size: 16px; line-height: 1.5; color: var(--ink-70); margin-top: -6px; }
.callback .qf--tel { width: auto; }
.callback__go { width: 100%; margin-top: 4px; }
.callback__go img { filter: none; opacity: 1; }
.callback__status:empty { display: none; }
.callback__status { font-size: 14px; line-height: 1.45; color: var(--ink-70); }
.callback__status.is-bad { color: #c62f35; }
.callback__status.is-ok { color: #12805c; }
.callback__alt { font-size: 14px; color: var(--ink-60); }
.callback__alt a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.callback__close {
  position: absolute; right: 20px; top: 20px; width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(12, 34, 54, .12);
  background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer;
}
.callback__close svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  /* phones: a sheet from the bottom */
  .callback { width: 100vw; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .callback__form { padding: 24px 16px max(24px, env(safe-area-inset-bottom)); }
  .callback h2 { font-size: 24px; }
}

/* ---------- review letters (paper preview beside the quote; main.js shows it if the scan exists) ---------- */
.quote { position: relative; }
.paper.paper--letter {
  left: auto; right: 2%; top: 4px; margin: 0; width: clamp(150px, 13vw, 210px); aspect-ratio: 210 / 297; --rot: 3deg;
}
.paper--letter[hidden] { display: none; }
@media (min-width: 961px) { .quote:has(.paper--letter:not([hidden])) blockquote { max-width: min(1040px, calc(100% - 300px)); } }
@media (max-width: 960px) { .paper.paper--letter { position: relative; right: auto; top: auto; width: 150px; margin-top: 8px; } }
@media (max-width: 760px) { .paper.paper--letter { display: none; } }   /* phones: the quote alone (Figma 165:47145) */

/* ---------- «Про компанію» (Figma 85:1159, option 04): heading and lead on top, a proof row
   with the one call to action as its fourth column, then the film as a cinematic strip that
   runs to the bottom edge. Built to get the button clicked. ---------- */
.about { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding: 0; }
.about__inner { padding: var(--frame-top) var(--gutter) 0; display: flex; flex-direction: column; gap: 40px; }
.about__head { display: block; }
.about__head .section-head h2 { font-size: clamp(36px, 2.75vw, 52px); line-height: 1.05; letter-spacing: -.03em; font-weight: 400; }
.about__lead { font-weight: 300; font-size: clamp(18px, 1.15vw, 22px); line-height: 1.4; letter-spacing: -.01em; color: var(--blue); }
.about__row { display: block; }   /* three paragraphs, no CTA: the form under them is the action */
.about__proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.about__proof > div { padding-top: 20px; border-top: 1px solid rgba(12, 34, 54, .18); }
.about__proof dt { font-weight: 300; font-size: clamp(36px, 2.9vw, 56px); line-height: 1; letter-spacing: -.04em; color: var(--blue); white-space: nowrap; }
.about__proof dd { margin-top: 10px; font-size: 15px; line-height: 1.5; color: rgba(12, 34, 54, .72); }
/* the company's own two paragraphs, set as the proof row */
.about__points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.about__points p { padding-top: 20px; border-top: 1px solid rgba(12, 34, 54, .18); font-size: 17px; line-height: 1.55; color: rgba(12, 34, 54, .8); }
.about__quote { padding-top: 8px; }
.about__cta { padding-top: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.btn--xl { font-size: 18px; padding: 8px 8px 8px 30px; gap: 18px; box-shadow: 0 16px 34px rgba(10, 111, 214, .32); }
.btn--xl i { width: 48px; height: 48px; }
.btn--xl:hover { box-shadow: 0 22px 44px rgba(10, 111, 214, .42); }
/* once, when the block arrives: the arrow points the way */
.about__cta.is-in .btn--xl i { animation: ctaNudge 1.4s 1s var(--ease-out) 2; }
@keyframes ctaNudge { 0%, 100% { transform: none; } 30% { transform: translateX(5px) rotate(45deg); } 60% { transform: none; } }
.about__hint { font-size: 14px; line-height: 1.55; color: rgba(12, 34, 54, .72); }
.about__hint a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
/* the film: a full-bleed strip from under the row to the bottom edge */
.about__video {
  position: relative; flex: 1 1 auto; min-height: clamp(240px, 36vh, 520px); margin-top: 48px;
  overflow: hidden; container-type: size;
  /* the film's own thumbnail, framed like the film, shows until the player runs */
  background: var(--poster, none) 50% 62% / cover no-repeat, linear-gradient(180deg, #c9ddee, #bcd3e7);
}
.about__video iframe {
  /* cover, framed a little low (62 %): the trucks drive in the lower half of most shots */
  position: absolute; left: 50%; top: 62%; border: 0; pointer-events: none;
  width: max(100cqw, 100cqh * 16 / 9); height: max(100cqh, 100cqw * 9 / 16);
  transform: translate(-50%, -62%) scale(1.04);      /* trims YouTube's 1-px edges only */
  opacity: 0; transition: opacity 1.4s var(--ease-out);
}
/* a clear layer over the player: no tap, click or hover ever reaches YouTube, so its title bar,
   controls and pause overlay never show */
.about__video::after { content: ""; position: absolute; inset: 0; z-index: 1; }
/* the film comes in only once it really plays (no YouTube chrome, no black box) */
.about__video.is-playing iframe { opacity: 1; }
@media (max-width: 1100px) {
  .about__head, .about__row { grid-template-columns: 1fr; row-gap: 24px; }
  .about__lead { max-width: 640px; }
}
@media (max-width: 760px) {
  .about__inner { padding: var(--frame-top) 16px 0; gap: 28px; }
  .about__proof { grid-template-columns: 1fr; gap: 0; }
  .about__points { grid-template-columns: 1fr; gap: 18px; }
  .about__proof > div { padding: 14px 0; display: flex; align-items: baseline; gap: 16px; }
  .about__proof dt { font-size: 34px; min-width: 132px; }
  .about__proof dd { margin-top: 0; }
  .about__cta { padding-top: 0; }
  .btn--xl { font-size: 16px; white-space: normal; line-height: 1.2; max-width: 100%; padding-left: 22px; }
  /* phones: the film opens the block, right under the reviews */
  /* it also takes the screen's spare height, so the form's button ends 16 px above the bottom
     (the block is one screen tall); never shorter than 16:9 */
  .about__video { flex: 1 0 auto; aspect-ratio: auto; min-height: 56.25vw; margin-top: 0; order: -1; }
  /* the box is taller than 16:9 here: the film covers it from its height (container units
     came out against the stretched box's height) */
  .about__video iframe { width: auto; height: 100%; aspect-ratio: 16 / 9; }
  .about__inner { padding: 28px 16px 16px; }
  /* one phone screen (owner, 2026-10-30): the first point goes; on short screens the second too */
  .about__points p:first-child { display: none; }
}
@media (max-width: 760px) and (max-height: 800px) {
  .about__points p:nth-child(2) { display: none; }
  .about__inner { padding-top: 16px; gap: 16px; }
  .about__points { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .about__cta.is-in .btn--xl i { animation: none; } }
.nowrap { white-space: nowrap; }

/* ---------- lite (weak devices, see index.html head / main.js): no background blur anywhere; the
   glass gets a little more opaque so the text keeps its contrast without it ---------- */
html.lite *, html.lite *::backdrop { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.lite .nav__pill, html.lite .lang--nav .lang__btn { background: rgba(255, 255, 255, .78); }
html.lite .nav.is-on-blue .nav__pill, html.lite .nav.is-on-blue .lang--nav .lang__btn { background: rgba(255, 255, 255, .2); }
html.lite .qform { background: rgba(255, 255, 255, .9); }
html.lite .pcard { background: rgba(255, 255, 255, .78); }
html.lite .bcard { background: rgba(255, 255, 255, .7); }

/* document papers float gently while idle: a compositor animation (was a JS loop that never stopped) */
@keyframes paperFloat { 0%, 100% { translate: 0 -6px; } 50% { translate: 0 6px; } }
.paper { animation: paperFloat 8.8s ease-in-out infinite; }
html.lite .paper { animation: none; }
@media (prefers-reduced-motion: reduce) { .paper { animation: none; } }

/* ---------- key screens fit any window height (owner 2026-11-03: «cover ALL the cases") ----------
   Last in the file so it wins. No height steps: every gap, padding, type size and picture follows
   the window height continuously (anchored on 587 / 730 / 950 / 1080 px tall), reaching the Figma
   values on tall screens. Each key screen fits one screen, so the pager keeps paging. Below 700 px
   tall two things also switch off (see the block after this one). */
@media (min-width: 761px) {
  /* section headings */
  .why .section-head h2, .reviews .section-head h2 { font-size: min(var(--h2), 5.4vh); }
  .why .section-head { gap: clamp(10px, 1.5vh, 14px); }
  /* «Чому ми?»: a bento row is what the frame leaves after the heading and the gaps */
  .why {
    --why-g: clamp(14px, 5vh - 15px, 47px); --bento-g: clamp(10px, 2.6vh - 5px, 24px); --bp: clamp(16px, 3.2vh - 4px, 31px);
    --head: calc(23px + clamp(10px, 1.5vh, 14px) + min(var(--h2), 5.4vh) * 1.05);
    --why-pb: clamp(20px, 4vh - 4px, var(--frame-bottom));
    --row: calc((100svh - var(--frame-top) - var(--why-pb) - var(--head) - var(--why-g) - var(--bento-g)) / 2);
    --vis-h: clamp(110px, calc(var(--row) - 2 * var(--bp)), 299px);
  }
  /* «Страхування»: the million and the policy by height; the copy starts under the policy */
  .insurance { --pw: min(225px, 23vh); }
  .insurance__million { width: min(88vw, 1267px, calc(17.5vh * 1267 / 169)); }
  .insurance .paper:not(.paper--letter) { width: var(--pw); margin-left: calc(var(--pw) / -2); }
  .insurance__copy {
    margin-top: calc(var(--pw) * 309 / 225 + clamp(25px, 6vh - 20px, 45px) - min(17.5vh, 11.74vw, 169px));
    gap: clamp(16px, 2.4vh, 22px);
  }
  .insurance__copy h2 { font-size: clamp(28px, min(3.3vw, 5vh), 48px); }
  .insurance__copy p { font-size: clamp(15px, .8vh + 9px, 17px); }
  .insurance .brand { margin-top: clamp(16px, 7vh - 26px, 60px); }
  /* «Відгуки» */
  .reviews__viewport { margin-top: calc(clamp(24px, 9vh - 30px, 104px) - var(--rv-top)); }
  .quote { gap: clamp(16px, 3.2vh - 6px, 32px); }
  .quote blockquote { font-size: clamp(15px, min(1.95vw, 2.6vh), 28px); }
  .dots { margin-top: clamp(20px, 4vh - 6px, 42px); }
  .paper.paper--letter { width: min(clamp(150px, 13vw, 210px), 22vh); }
  /* «Про компанію»: the film strip takes what the height leaves */
  .about__inner { gap: clamp(22px, 4vh - 4px, 40px); }
  .about__head .section-head h2 { font-size: min(clamp(36px, 2.75vw, 52px), 5.4vh); }
  .about__points p { font-size: clamp(15px, .8vh + 9px, 17px); padding-top: clamp(14px, 2vh, 20px); }
  .about__video { min-height: clamp(110px, 52vh - 190px, 520px); margin-top: clamp(20px, 5vh - 10px, 48px); }
}
@media (min-width: 961px) {
  .quote:has(.paper--letter:not([hidden])) blockquote { max-width: min(1040px, calc(100% - min(clamp(150px, 13vw, 210px), 22vh) - 90px)); }
}
/* the bento in its 12-column form: side pictures sized to the row, the tall cards' pictures fill
   what the row leaves above their text (scaled, centred, never stretched) */
@media (min-width: 1181px) {
  .why { padding-bottom: var(--why-pb); }
  .why__inner { gap: var(--why-g); }
  .bento { gap: var(--bento-g); }
  .bcard { padding: var(--bp); }
  /* the text keeps at least 400 px: on narrower windows the picture gives way, not the text */
  .bcard--h { grid-template-columns: minmax(0, 1fr) min(54%, calc(var(--vis-h) * 417 / 296), calc(100% - 432px)); }
  .bcard--v { gap: clamp(14px, 2.6vh - 3px, 24px); }
  .bcard--v .bvis {
    aspect-ratio: auto; flex: 1 1 0; min-height: 0; container-type: size;
    --u: min(calc(100cqw / 562), calc(100cqh / 151));
    --ox: calc((100cqw - 562 * var(--u)) / 2); --oy: calc((100cqh - 151 * var(--u)) / 2);
    /* its panel is drawn by ::before, so the panel can leave together with the picture (below) */
    background: none; border-color: transparent;
  }
  .bcard--v .bvis::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit;
    background: rgba(255, 255, 255, .45); border: 1px solid rgba(255, 255, 255, .85);
  }
  /* the text decides the row; the picture takes what is left and steps out under 72 px */
  @container (max-height: 72px) { .bcard--v .bvis::before, .bcard--v .bvis > * { visibility: hidden; } }
  .bcard__text { gap: clamp(8px, 1.2vh, 12px); }
  .bcard h3 { font-size: clamp(19px, min(1.6vh + 10px, 1.1vw + 7px), 26px); }
  .bcard p { font-size: clamp(13.5px, min(.6vh + 10.5px, .5vw + 7.6px), 16px); }
}
/* under 700 px tall (1366x657, 1280x587) there is no room for everything: «Чому ми?» drops the
   pictures above the text in its tall cards and the 02/03 numbers (text centred in every card),
   reviews drop the decorative quote mark, the policy and the logo shrink a step further */
@media (min-width: 1181px) and (max-height: 700px) {
  .bcard--v .bvis, .bcard__num { display: none; }
  .bcard--v { justify-content: center; }
  .bcard--v .bcard__text { margin-top: 0; }
  .bcard--h { align-items: center; }
  .bcard--h .bcard__text { align-self: center; }
  .bcard p { line-height: 1.45; }
}
@media (min-width: 761px) and (max-height: 700px) {
  .quote__mark { display: none; }
  .quote blockquote { line-height: 1.45; }
  .insurance { --pw: min(225px, 20vh); }
  .insurance__copy p { line-height: 1.55; }
  .insurance .brand { zoom: .74; }
}

/* Readability floor (2026-11-09, checked at the 10 most common desktop sizes + 3 phones):
   running text stays within ~45-75 characters per line and card text never drops below 15 px */
.quote blockquote { width: min(100%, 39em); }
@media (min-width: 1181px) {
  .bcard p { font-size: clamp(15px, min(.6vh + 10.5px, .5vw + 7.6px), 16px); }
}

/* phone code cleared with Backspace: the button shows a muted «+» until a code is typed or picked */
.qf__code.is-empty .qf__code-val { color: rgba(12, 34, 54, .45); }

/* ---------- phone contact buttons (owner, 2026-11-16): four layouts behind ?cta=a|b|c|d ---------- */
.hero-cta, .cta-bar, .nav-cta { display: none; }
@media (max-width: 760px) {
  .hcta { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 12px; border-radius: 14px;
    font: 600 15px/1 var(--font); white-space: nowrap; color: #fff; }
  .hcta img { width: 20px; height: 20px; flex: none; }
  .hcta--call { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .55); }
  .hcta--viber { background: #6a52e0; }   /* Viber's violet, darkened to 5.4:1 for white text */
  /* a: two buttons under the form */
  :root[data-cta="a"] .hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  /* b: two quiet links under the form */
  :root[data-cta="b"] .hero-cta { display: flex; justify-content: center; gap: 22px; margin-top: -6px; }
  :root[data-cta="b"] .hero-cta .hcta { height: 36px; padding: 0; background: none; border: 0; font-size: 14px;
    text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 4px; }
  :root[data-cta="b"] .hero-cta .hcta img { width: 18px; height: 18px; }
  /* c: a bar on every screen, at the bottom */
  :root[data-cta="c"] .cta-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px max(10px, env(safe-area-inset-bottom)); background: rgba(234, 242, 249, .94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 -8px 24px rgba(12, 34, 54, .12); }
  :root[data-cta="c"] .cta-bar .hcta--call { background: var(--blue); border: 0; }
  :root[data-cta="c"] body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  :root[data-cta="c"] .hero-ui__bottom { bottom: calc(24px + 68px + env(safe-area-inset-bottom)); }
  :root[data-cta="c"]:has(.psheet[open], .callback[open], .qform.is-sheet) .cta-bar { display: none; }
  /* d: two round icons in the header, next to the menu */
  :root[data-cta="d"] .nav-cta { display: flex; gap: 8px; margin-left: auto; margin-right: 8px; }
  .nav-cta a { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; }
  .nav-cta .hcta--call { background: var(--blue); }
}
