/* Transvia — международная логистика. Bento-сетка, плоский корпоративный стиль. */
:root {
  --ink: #071428;
  --navy: #102a57;
  --cyan: #19c6de;
  --ice: #eef3f9;
  --paper: #f7f9fc;
  --muted: #5b6b82;
  --line: #d5deea;
  --white: #fff;
  --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'IBM Plex Sans', system-ui, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.65; }
h1,h2,h3 { font-family: 'Space Grotesk', sans-serif; margin: 0; line-height: 1.12; letter-spacing: -.03em; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
.wrap { width: min(1220px, calc(100% - 40px)); margin-inline: auto; }
.band { padding: clamp(56px, 8vw, 112px) 0; }
.band--navy { background: var(--navy); color: var(--white); }
.band--ice { background: var(--ice); }
.kicker { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--cyan); }
.lead { color: var(--muted); max-width: 58ch; margin-top: 14px; }
.cta { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; background: var(--cyan); color: var(--ink); text-decoration: none; font-weight: 700; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.cta:hover { filter: brightness(1.08); }
.cta--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.cta--line { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }

.topbar { position: sticky; top: 0; z-index: 40; background: rgba(247,249,252,.92); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.topbar.is-pinned { border-color: var(--line); }
.topbar__row { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 22px; }
.logo__mark { width: 34px; height: 34px; background: var(--navy); clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%); display: grid; place-items: center; color: var(--cyan); font-size: 14px; }
.menu__list { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.menu__link { display: block; padding: 8px 14px; text-decoration: none; font-weight: 600; font-size: 15px; }
.menu__link.is-on { color: var(--navy); box-shadow: inset 0 -2px 0 var(--cyan); }
.topbar__tel { font-weight: 700; text-decoration: none; }
.switch { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--white); cursor: pointer; position: relative; }
.switch i, .switch::before, .switch::after { content: ''; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); }
.switch::before { top: 14px; }
.switch i { top: 20px; display: block; }
.switch::after { bottom: 14px; }
.switch.is-on::before { transform: translateY(6px) rotate(45deg); }
.switch.is-on i { opacity: 0; }
.switch.is-on::after { transform: translateY(-6px) rotate(-45deg); }

.stage { padding: 48px 0 72px; }
.stage__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: end; }
.stage__title { font-size: clamp(36px, 5.4vw, 68px); margin: 16px 0; }
.stage__title span { color: var(--navy); background: linear-gradient(90deg, var(--cyan), transparent 80%); -webkit-background-clip: text; }
.stage__text { font-size: 18px; color: var(--muted); max-width: 46ch; }
.stage__row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.stage__shot { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.bento { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.tile { background: var(--white); border: 1px solid var(--line); padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.tile--wide { grid-column: 1 / 2; grid-row: 1 / 3; }
.tile img { width: 100%; height: 160px; object-fit: cover; }
.tile--wide img { height: 100%; min-height: 280px; }
.tile__body { padding: 20px 22px 24px; }
.tile__name { font-size: 20px; margin-bottom: 8px; }
.tile__text { color: var(--muted); font-size: 15px; margin: 0; }

.pulse { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pulse__cell { background: rgba(255,255,255,.06); padding: 26px; border: 1px solid rgba(255,255,255,.12); }
.pulse__num { font-family: 'Space Grotesk', sans-serif; font-size: 38px; color: var(--cyan); }
.pulse__cap { color: rgba(255,255,255,.7); font-size: 14px; margin-top: 6px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 8px; width: 14px; height: 14px; background: var(--cyan); }

.lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.lane { background: var(--white); border: 1px solid var(--line); padding: 28px; }
.lane__code { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }
.lane__name { font-size: 22px; margin: 10px 0; }
.lane__text { color: var(--muted); font-size: 15px; }

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.quote { background: var(--white); border-left: 4px solid var(--cyan); padding: 24px 26px; }
.quote p { font-size: 16px; }
.quote strong { display: block; margin-top: 12px; font-size: 14px; }

.strip { display: flex; justify-content: space-between; gap: 24px; align-items: center; background: var(--ink); color: var(--white); padding: 40px 44px; }
.strip h2 { font-size: clamp(24px, 3vw, 34px); max-width: 18ch; }

.page-hero { padding: 64px 0 36px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 56px); max-width: 18ch; }

.matrix { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 36px; }
.matrix article { display: grid; grid-template-columns: 200px 1fr; background: var(--white); border: 1px solid var(--line); }
.matrix img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; }
.matrix div { padding: 24px; }
.matrix h3 { margin-bottom: 8px; }

.steps { counter-reset: n; display: grid; gap: 0; margin-top: 28px; }
.steps li { list-style: none; display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps { padding: 0; }
.steps li::before { counter-increment: n; content: counter(n, decimal-leading-zero); font-family: 'Space Grotesk', sans-serif; font-size: 28px; color: var(--cyan); }

.ask { display: grid; gap: 8px; margin-top: 28px; }
.ask__item { background: var(--white); border: 1px solid var(--line); }
.ask__btn { width: 100%; text-align: left; background: 0; border: 0; font: inherit; font-weight: 700; padding: 18px 50px 18px 20px; cursor: pointer; position: relative; }
.ask__btn::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--cyan); font-size: 22px; }
.ask__item.is-open .ask__btn::after { transform: translateY(-50%) rotate(45deg); }
.ask__panel { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.ask__panel p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

.pins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.pin { background: var(--ice); padding: 24px; }
.pin strong { display: block; font-size: 18px; margin: 8px 0; }
.pin a { font-weight: 700; text-decoration: none; color: var(--navy); }

.sheet { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; }
.sheet__form { display: grid; gap: 14px; }
.cell { display: grid; gap: 6px; }
.cell label { font-size: 13px; font-weight: 700; }
.cell input, .cell textarea, .cell select { font: inherit; padding: 12px 14px; border: 1px solid var(--line); background: var(--white); }
.cell input:focus, .cell textarea:focus { outline: 2px solid var(--cyan); border-color: transparent; }
.cell textarea { min-height: 120px; resize: vertical; }
.cell.is-bad input, .cell.is-bad textarea { border-color: #c0392b; }
.cell__err { display: none; color: #c0392b; font-size: 13px; }
.cell.is-bad .cell__err { display: block; }
.cell--tick { grid-template-columns: auto 1fr; align-items: start; }
.cell--tick input { margin-top: 4px; }
.note { display: none; padding: 12px 14px; background: #d9f6fb; font-weight: 700; }
.note.is-on { display: block; }

.legal { max-width: 76ch; }
.legal h2 { font-size: 26px; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 18px; }

.colophon { background: var(--ink); color: rgba(255,255,255,.72); padding: 56px 0 28px; }
.colophon__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
.colophon h3 { color: var(--white); font-size: 16px; margin-bottom: 12px; }
.colophon ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.colophon a { text-decoration: none; }
.colophon a:hover { color: var(--cyan); }
.colophon__bar { margin-top: 36px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }

.toast { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 80; background: var(--navy); color: var(--white); padding: 20px 24px; display: none; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; opacity: 0; transform: translateY(16px); transition: .4s var(--ease); }
.toast.is-shown { display: flex; }
.toast.is-visible { opacity: 1; transform: none; }
.toast p { margin: 0; font-size: 14px; max-width: 70ch; }
.toast a { color: var(--cyan); }
.toast__btns { display: flex; gap: 10px; }

.rise { opacity: 0; transform: translateY(22px); transition: .65s var(--ease); }
.rise.is-in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .stage__grid, .split, .sheet, .matrix article { grid-template-columns: 1fr; }
  .bento, .pulse, .lanes, .pins, .quotes { grid-template-columns: 1fr 1fr; }
  .tile--wide { grid-column: auto; grid-row: auto; }
  .colophon__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .switch { display: block; }
  .topbar__tel { display: none; }
  .menu { position: fixed; inset: 72px 0 auto; background: var(--white); border-bottom: 1px solid var(--line); padding: 16px; transform: translateY(-120%); transition: .35s var(--ease); }
  .menu.is-open { transform: none; }
  .menu__list { flex-direction: column; }
  .bento, .pulse, .lanes, .pins, .quotes, .colophon__grid { grid-template-columns: 1fr; }
  .strip { flex-direction: column; align-items: flex-start; }
}
