:root {
  --blue: #1f35b8;
  --blue-dark: #1b237a;
  --cyan: #12a5d6;
  --text: #1a2038;
  --muted: #5d6583;
  --line: #e3e7f1;
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --block: #e9eef9;
  --error: #c62f3c;
  --ok: #1d8a4e;
  --radius: 14px;
  --header-h: 92px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header { transition: box-shadow .25s; }
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; transition: height .25s; }
.header__logo { display: block; }
.header__logo img { width: 230px; transition: width .25s; }
/* After scrolling the header gets slimmer so it doesn't eat the screen */
.header--compact { box-shadow: 0 4px 20px rgba(26, 32, 56, .06); }
.header--compact .header__inner { height: 64px; }
.header--compact .header__logo img { width: 165px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; white-space: nowrap; }
.nav a:hover { color: var(--blue); }
.lang { position: relative; }
.lang__current {
  display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; font-weight: 700; color: var(--blue-dark);
}
.lang__current:hover, .lang__current[aria-expanded="true"] { border-color: var(--blue); }
.lang__current svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang__arrow { font-size: 11px; color: var(--muted); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px; list-style: none;
  min-width: 180px; background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(26, 32, 56, .16);
}
.lang__menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; cursor: pointer;
  padding: 8px 10px; border-radius: 8px; font: inherit; font-size: 15px; color: var(--text); text-align: left;
}
.lang__menu button:hover { background: var(--bg-soft); }
.lang__menu button[aria-current="true"] { background: var(--bg-soft); color: var(--blue); font-weight: 700; }
.lang__code { width: 22px; font-size: 12px; font-weight: 700; color: var(--muted); }

/* Sections */
.section { padding: 72px 0; scroll-margin-top: var(--header-h); }
.section__title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.2; margin: 0 0 12px; color: var(--blue-dark); }
.section__lead { color: var(--muted); margin: 0 0 32px; font-size: 1.1rem; }

/* Cooperation */
.coop .section__title { text-align: center; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 44px; }
.coop .section__title::after {
  content: ""; display: block; width: 72px; height: 4px; margin: 18px auto 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.coop__choice { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.coop__card {
  position: relative; border: 1px solid var(--line); padding: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; text-align: left; font: inherit; color: var(--text);
  background: #fff; display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.coop__card:hover, .coop__card.is-active {
  border-color: var(--blue); box-shadow: 0 14px 40px rgba(31, 53, 184, .12); transform: translateY(-2px);
}
.coop__card:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.coop__art { display: block; background: var(--bg-soft); padding: 28px 24px 12px; transition: background .2s; }
.coop__card:hover .coop__art, .coop__card.is-active .coop__art { background: #eaeefb; }
.coop__card-body { display: flex; flex-direction: column; gap: 8px; padding: 24px 32px 32px; flex: 1; }
.coop__card-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; color: var(--cyan); }
.coop__card-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.15; color: var(--blue-dark); }
.coop__card-text { color: var(--muted); max-width: 460px; }
.coop__card-cta { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--blue); }

/* Illustrations */
.art { display: block; width: 100%; max-width: 340px; height: 200px; margin: 0 auto; overflow: hidden; }
.art--truck { max-width: 460px; }
.art--truck .road { stroke: #fff; stroke-width: 2; stroke-dasharray: 16 18; }
.art--truck .speed line { stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; opacity: 0; }
/* trailer */
.art--truck .box-inside { fill: #dfe5f5; }
.art--truck .load .pal { fill: #c9975a; }
.art--truck .load .crate { fill: #e2b878; stroke: #a87b40; stroke-width: 1.2; }
.art--truck .load .crate-line { stroke: #c79a5c; stroke-width: 1.2; }
.art--truck .curtain { fill: #2f4bd6; }
.art--truck .fold { stroke: rgba(255, 255, 255, .13); stroke-width: 3; }
.art--truck .strap { stroke: var(--blue-dark); stroke-width: 1.4; opacity: .55; }
.art--truck .buckle { fill: #c6cde0; }
.art--truck .curtain-panel { transform-box: fill-box; transform-origin: right center; }
.art--truck .rail, .art--truck .post { fill: var(--blue-dark); }
.art--truck .sill { fill: #c6cde0; }
.art--truck .chassis, .art--truck .fifth { fill: #2a2f45; }
.art--truck .guard { fill: #9aa3bf; }
/* tractor */
.art--truck .cab { fill: var(--blue); }
.art--truck .cab-low { fill: var(--blue-dark); }
.art--truck .glass, .art--truck .windshield { fill: #cfe8f7; }
.art--truck .visor, .art--truck .mirror { fill: #2a2f45; }
.art--truck .mirror { stroke: #2a2f45; stroke-width: 1.2; }
.art--truck .door { fill: none; stroke: rgba(0, 0, 0, .22); stroke-width: 1.2; }
.art--truck .handle { fill: #c6cde0; }
.art--truck .grille { stroke: #9aa3bf; stroke-width: 1.5; }
.art--truck .light { fill: #ffd34d; }
.art--truck .step { fill: #9aa3bf; }
.art--truck .skirt { fill: #2a2f45; }
.art--truck .tank { fill: #c6cde0; }
.art--truck .arch { fill: none; stroke: #2a2f45; stroke-width: 4; }
.art--truck .wheel .tire { fill: #1f2333; }
.art--truck .wheel .rim { fill: #c6cde0; }
.art--truck .wheel .lugs { stroke: #6f7891; stroke-width: 1.6; stroke-linecap: round; }
.art--truck .wheel .hub { fill: #6f7891; }
.art--truck .wheel { transform-box: fill-box; transform-origin: center; }
.art .ground { stroke: #d5dbeb; stroke-width: 3; stroke-linecap: round; }

.art--pallet .board { fill: #c9975a; }
.art--pallet .block { fill: #a8763f; }
.art--pallet .box rect { fill: #e2b878; stroke: #a87b40; stroke-width: 2; }
.art--pallet .box .tape { stroke: #f3dcb0; stroke-width: 7; }
.art--pallet .box .flap { stroke: #c79a5c; stroke-width: 1.5; }
.art--pallet .wrap rect { fill: rgba(150, 200, 240, .28); stroke: rgba(31, 53, 184, .35); stroke-width: 1.5; }
.art--pallet .wrap path { stroke: rgba(255, 255, 255, .7); stroke-width: 2; }
.art--pallet .wrap { transform-box: fill-box; transform-origin: bottom; }
.art--pallet .label rect { fill: #fff; stroke: var(--blue); stroke-width: 1.5; }
.art--pallet .label path { stroke: var(--blue); stroke-width: 2; }
.art--pallet .label { transform-box: fill-box; transform-origin: center; }


/* Hover (desktop) or in view (touch): play the animations */
.coop__card:is(:hover, :focus-visible, .is-active) .box {
  animation: box-drop .55s cubic-bezier(.3, .8, .4, 1) both;
  animation-delay: calc(var(--d) * .13s);
}
.coop__card:is(:hover, :focus-visible, .is-active) .wrap { animation: wrap-up .6s ease-out 1.1s both; }
.coop__card:is(:hover, :focus-visible, .is-active) .label { animation: label-pop .35s cubic-bezier(.3, 1.6, .5, 1) 1.75s both; }

/* Truck story: drives in → curtain opens → pallets are loaded → curtain closes */
.coop__card:is(:hover, :focus-visible, .is-active) .rig { animation: drive-in 1.1s cubic-bezier(.2, .7, .3, 1) both; }
.coop__card:is(:hover, :focus-visible, .is-active) .wheel { animation: wheel-spin .37s linear 3; }
.coop__card:is(:hover, :focus-visible, .is-active) .road { animation: road-move .37s linear 3; }
.coop__card:is(:hover, :focus-visible, .is-active) .speed line { animation: speed .5s ease-out 2; }
.coop__card:is(:hover, :focus-visible, .is-active) .speed line:nth-child(2) { animation-delay: .12s; }
.coop__card:is(:hover, :focus-visible, .is-active) .speed line:nth-child(3) { animation-delay: .24s; }
.coop__card:is(:hover, :focus-visible, .is-active) .curtain-panel { animation: curtain 2.1s ease-in-out 1.15s both; }
.coop__card:is(:hover, :focus-visible, .is-active) .load {
  animation: load-in .35s cubic-bezier(.3, .8, .4, 1) both;
  animation-delay: calc(1.65s + var(--d) * .14s);
}
@keyframes drive-in { from { transform: translateX(-320px); } to { transform: none; } }
@keyframes curtain {
  0% { transform: none; }
  20%, 78% { transform: scaleX(.1); }
  100% { transform: none; }
}
@keyframes load-in { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes box-drop {
  0% { transform: translateY(-170px); opacity: 0; }
  20% { opacity: 1; }
  70% { transform: translateY(3px); }
  85% { transform: translateY(-2px); }
  100% { transform: none; }
}
@keyframes wrap-up { from { transform: scaleY(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes label-pop { from { transform: scale(0); } to { transform: none; } }
@keyframes wheel-spin { to { transform: rotate(360deg); } }
@keyframes road-move { to { stroke-dashoffset: 34; } }
@keyframes speed {
  0% { opacity: 0; transform: translateX(14px); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .art * { animation: none !important; }
  .coop__card { transition: none; }
}

.coop__panel {
  background: var(--bg); padding: 0;
  animation: fadeIn .25s ease-out;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.back {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; cursor: pointer;
  padding: 8px 16px; font: inherit; font-weight: 600; color: var(--blue);
}
.back:hover { border-color: var(--blue); }
.coop__panel .form { margin-top: 18px; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 18px; }
.form { counter-reset: step; }
.form fieldset, .form > label:not(.check):not(.hp) {
  border: 0; margin: 0; padding: 20px 22px 22px; background: var(--block); border-radius: 12px; min-width: 0;
}
.form legend {
  float: left; width: 100%; padding: 0; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--blue-dark);
}
.form legend + * { clear: both; }
.form legend::before {
  counter-increment: step; content: counter(step);
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center; font-size: 13px; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
.span-2 { grid-column: span 2; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form input:not([type="checkbox"]), .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--text); background: #fff;
  border: 1px solid transparent; border-radius: 10px; padding: 10px 12px; width: 100%;
}
.form input:not([type="checkbox"]):hover, .form select:hover, .form textarea:hover { border-color: #c9d1ea; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; background: #fff; }
.form .invalid { border-color: var(--error) !important; background: #fff6f7 !important; }
.checks__label { margin: 16px 0 8px; font-size: 14px; font-weight: 600; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 12px; }
.form label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; flex: none; }
.consent.invalid span { color: var(--error); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  align-self: flex-start; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--blue); color: #fff; font: inherit; font-weight: 700; padding: 14px 32px;
}
.btn:hover { background: var(--blue-dark); }
.btn:disabled { opacity: .6; cursor: progress; }
.form__status { margin: 0; font-weight: 600; min-height: 1.6em; }
.form__status.ok { color: var(--ok); }
.form__status.error { color: var(--error); }

/* About */
.about { background: var(--bg-soft); }
.about p { margin: 0 0 14px; }
.about__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; }
.about__kicker {
  margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan);
}
.about__statement {
  margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.15; font-weight: 800; color: var(--blue-dark);
}
.about__statement .accent {
  /* extra bottom room so letters like "y", "g", "р" are not clipped by background-clip */
  display: block; padding-bottom: .15em; margin-bottom: -.15em;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about__text { color: var(--muted); font-size: 1.05rem; }
.about__text p:last-child { margin-bottom: 0; color: var(--text); font-weight: 600; }

.stats { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats li { background: #fff; border-radius: var(--radius); padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 4px; }
.stats strong {
  font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; font-weight: 800; color: var(--blue);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.stats li > span { color: var(--text); font-weight: 600; font-size: 15px; }
.stats small { color: var(--muted); font-size: 13px; }


/* Contacts */
.contacts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 12px; }
.contacts h3 { margin: 0 0 6px; font-size: 1rem; color: var(--muted); font-weight: 600; }
.contacts p { margin: 0 0 18px; }
.contacts__email { font-size: 1.4rem; font-weight: 700; text-decoration: none; }
.contacts__email:hover { text-decoration: underline; }

/* Footer */
.footer { background: var(--blue-dark); color: #c9cff0; padding: 24px 0; font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 20px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Legal page */
.legal { padding: 48px 0 72px; }
.legal .container { max-width: 820px; }
.legal h1 { color: var(--blue-dark); margin: 0 0 4px; }
.legal h2 { color: var(--blue-dark); margin: 32px 0 8px; font-size: 1.25rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal table { border-collapse: collapse; width: 100%; font-size: 14px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-soft); }

/* Responsive */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .about__intro { grid-template-columns: 1fr; gap: 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contacts__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  :root { --header-h: 108px; }
  .header__inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 8px 16px; }
  .header__logo img, .header--compact .header__logo img { width: 160px; }
  .header--compact .header__inner { height: auto; }
  .lang { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0; gap: 12px; justify-content: space-between; font-size: 15px; }
  .section { padding: 48px 0; }
  .coop__choice { grid-template-columns: 1fr; }
  .coop__card-body { padding: 20px 20px 24px; }
  .art { height: 160px; }
  .coop__panel { padding: 0; }
  .form fieldset, .form > label:not(.check):not(.hp) { padding: 16px 14px 18px; }
  .grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .stats li { padding: 18px 16px; }
  .contacts__grid { grid-template-columns: 1fr; gap: 8px; }
  .btn { align-self: stretch; }
}

/* Required-field marker */
.form label:has(> [required]) > span:first-child::after { content: " *"; color: var(--error); }

/* Place autocomplete */
.place { position: relative; }
.suggest {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin: 4px 0 0; padding: 6px; list-style: none;
  background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(26, 32, 56, .16);
  max-height: 320px; overflow-y: auto;
}
.suggest li {
  display: flex; align-items: baseline; gap: 8px; padding: 8px 10px; border-radius: 8px;
  cursor: pointer; font-weight: 400; font-size: 15px;
}
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--bg-soft); }
.suggest .code { font-weight: 700; color: var(--blue-dark); font-variant-numeric: tabular-nums; }
.suggest .country { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.source { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.source a { color: inherit; }

/* Carrier directions */
.hint { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.regions__grid { columns: 2; column-gap: 10px; }
.region {
  break-inside: avoid; margin-bottom: 10px;
  background: #fff; border-radius: 10px; padding: 10px 12px; transition: background .15s;
}
.region.is-selected { background: #d6e0fb; }
.region__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.form .region__head label.check { font-weight: 600; }
.region__count { font-size: 13px; color: var(--blue); font-variant-numeric: tabular-nums; }
.region__list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 12px;
  margin-top: 10px; padding: 10px 0 0 26px; border-top: 1px solid rgba(31, 53, 184, .1);
}
.form .region__list label.check { font-size: 14px; }
.regions.invalid .region { background: #fff6f7; }
@media (max-width: 680px) {
  .regions__grid { columns: 1; }
}
.form [data-required-group] > legend::after { content: " *"; color: var(--error); }

/* Number + unit (expected rate) */
.input-unit { display: flex; gap: 6px; }
.input-unit input { flex: 1; min-width: 0; }
.form .input-unit select { width: auto; flex: none; }

/* Headings, slogans and numbers are not text to edit or copy: no I-beam cursor, no accidental selection */
h1, h2, h3, legend, .section__title, .about__kicker, .about__statement, .coop__card, .stats, .hint,
.form label > span:first-child, .checks__label, .region__head {
  -webkit-user-select: none; user-select: none; cursor: default;
}
.coop__card { cursor: pointer; }
.form label.check, .form label.check span { cursor: pointer; }
