/* Logistic Technology — базовые стили */

:root {
  --brand: #0b2f5e;
  --brand-2: #14477f;
  --brand-ink: #08243f;
  --accent: #e8611a;
  --accent-dark: #c94f10;
  --ink: #16202b;
  --ink-2: #47576b;
  /* Был #7b8a9c: контраст 3.52 к белому и 3.31 к светлой секции — ниже
     нормы 4.5, а этим цветом набраны сроки на карточках, подписи и сноски.
     #616f80 даёт 5.13 и 4.82, то есть проходит на обоих фонах сайта. */
  --muted: #616f80;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --radius: 14px;
  --radius-s: 9px;
  --shadow: 0 1px 2px rgba(11, 47, 94, .06), 0 8px 24px rgba(11, 47, 94, .07);
  --shadow-hover: 0 2px 6px rgba(11, 47, 94, .1), 0 16px 40px rgba(11, 47, 94, .13);
  --wrap: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Браузерное правило [hidden] { display: none } живёт в таблице стилей
   браузера, поэтому его перебивает ЛЮБОЕ авторское `display` — хоть
   `.field { display: block }`. Скрипт ставит hidden, элемент остаётся на
   экране, и на нём висят подписи от прошлой позиции. Наступали дважды:
   окно чата и поля калькулятора. Закрываем один раз и для всего сайта. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--brand-ink); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 40px, 820px); }

.skip {
  position: absolute; left: -9999px;
  background: var(--brand); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------------------------------------------------------------- шапка */

.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.6) blur(8px);
  border-bottom: 1px solid var(--line);
}
/* Шапка была мелковата рядом с крупным логотипом: меню шло 15.5px, телефон
   17px, языки 13px. Пунктов стало пять вместо восьми, место освободилось —
   подняли на ступень и добавили высоты, чтобы строка не выглядела сдавленной. */
.hdr__in { display: flex; align-items: center; gap: 26px; min-height: 76px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--brand-ink); }
.logo__mark { width: 46px; height: 46px; flex: none; display: block; }
.logo__text { font-size: 1.16rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.logo__text b { color: var(--accent); font-weight: 700; }

.nav { display: flex; gap: 26px; margin-inline: auto; }
/* Шапка читалась тускло: пункты меню шли серым --ink-2 при весе 500, а
   переключатель языков давал контраст 3.52 к белому — ниже нормы 4.5 для
   мелкого текста. Меню переведено на основной тёмный цвет, языки — на --ink-2
   (контраст 7.39). Активный язык остаётся белым на синем. */
.nav a { color: var(--brand-ink); font-size: 1.06rem; font-weight: 600; padding: 6px 0; }
.nav a:hover { color: var(--accent); }

.hdr__side { display: flex; align-items: center; gap: 16px; }
.hdr__phone { font-size: 1.12rem; font-weight: 700; color: var(--brand-ink); white-space: nowrap; }
.hdr__phone:hover { color: var(--accent); }

/* Переключатель языков. Разметка одна, поведение два: на широком экране это
   строка из трёх кнопок, на телефоне — свёрнутый список. Кнопку и раскрытие
   включает медиазапрос ниже, здесь описан разложенный вид. */
.langs { position: relative; display: flex; gap: 2px; }
.langs__cur { display: none; }
.langs__list { display: flex; gap: 2px; }
.langs__list a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 9px; font-size: .88rem; font-weight: 600; color: var(--ink-2);
  border-radius: 6px; text-transform: uppercase; white-space: nowrap;
}
.langs__list a:hover { background: var(--bg-alt); }
.langs__list a.is-active { background: var(--brand); color: #fff; }
.langs__flag { width: 20px; height: 20px; flex: none; border-radius: 4px; display: block; }
/* Полное имя языка нужно только в раскрытом списке на телефоне */
.langs__name { display: none; }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: #fff; border-radius: var(--radius-s); cursor: pointer; padding: 0;
  flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.burger span { width: 18px; height: 2px; background: var(--brand-ink); border-radius: 2px; transition: .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------------- кнопки */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius-s);
  font-weight: 600; font-size: 1rem; border: 1px solid transparent;
  cursor: pointer; transition: .16s; text-align: center;
}
/* Главная кнопка сайта: белый на #e8611a давал 3.41 — ниже нормы 4.5 для
   текста этого размера. #c94f10 даёт 4.56 при том же оттенке, наведение
   уходит ещё на ступень темнее. */
.btn--primary { background: var(--accent-dark); color: #fff; box-shadow: 0 6px 18px rgba(201, 79, 16, .28); }
.btn--primary:hover { background: #a8420d; color: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--wide { width: 100%; }

/* ---------------------------------------------------------------- герой */

.hero {
  background: linear-gradient(150deg, var(--brand-ink) 0%, var(--brand) 55%, var(--brand-2) 100%);
  color: #fff; padding: clamp(56px, 8vw, 104px) 0;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 400px at 88% 12%, rgba(232, 97, 26, .28), transparent 65%);
  pointer-events: none;
}
.hero__in { position: relative; z-index: 1; }
.hero__text { max-width: 760px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: clamp(1.02rem, .95rem + .4vw, 1.22rem); color: rgba(255, 255, 255, .9); max-width: 66ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__note { margin-top: 16px; font-size: .92rem; color: rgba(255, 255, 255, .68); }

/* ---------------------------------------------------------------- секции */

.sec { padding: clamp(44px, 5.5vw, 76px) 0; }
.sec--alt { background: var(--bg-alt); }
.sec--head { padding-bottom: clamp(24px, 3vw, 40px); }
.sec__title { text-align: center; }
.sec__lead { text-align: center; color: var(--ink-2); max-width: 68ch; margin: 0 auto 36px; }
.lead { font-size: 1.08rem; color: var(--ink-2); }
.tagline { font-size: 1.1rem; color: var(--accent); font-weight: 600; margin-bottom: .4em; }
.note { font-size: .93rem; color: var(--muted); }
.muted { color: var(--muted); }
.todo { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 14px; }

/* ---------------------------------------------------------------- карточки */

.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); }
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(246px, 1fr)); }

.card {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow); transition: .18s; color: inherit;
}
a.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: #cfe0f2; }
a.card:hover h3 { color: var(--accent); }
.card h3 { margin-bottom: .35em; transition: .18s; }
.card p { color: var(--ink-2); font-size: .96rem; margin-bottom: 0; }
.card--plain { box-shadow: none; background: #fff; }
.card--dir h3 { font-size: 1.3rem; }
.card__meta { display: block; margin-top: 14px; font-size: .87rem; color: var(--muted); }

.ico { width: 34px; height: 34px; color: var(--accent); margin-bottom: 14px; }

/* ---------------------------------------------------------------- этапы */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  counter-reset: s;
}
.step { position: relative; padding-top: 46px; }
.step__n {
  position: absolute; top: 0; left: 0;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .95rem;
}
.step p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* ---------------------------------------------------------------- крошки */

.crumbs { border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 12px 0; font-size: .87rem; }
.crumbs li + li::before { content: "/"; color: var(--muted); margin-right: 8px; }
.crumbs a { color: var(--ink-2); }
.crumbs span { color: var(--muted); }

/* ---------------------------------------------------------------- таблица */

.tablewrap { overflow-x: auto; margin-bottom: 20px; -webkit-overflow-scrolling: touch; }
/* Таблица в тексте. Класс называется datatable, а не rates: под .rates ниже
   живёт виджет курсов валют с display:grid, и таблица под тем же именем
   переставала быть таблицей — шапка уезжала отдельным блоком влево. */
.datatable { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.datatable th, .datatable td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .96rem; }
.datatable th { background: var(--brand); color: #fff; font-weight: 600; white-space: nowrap; }
.datatable tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------------- вопросы */

.faq { display: grid; gap: 10px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); }
.faq__item summary {
  cursor: pointer; padding: 17px 48px 17px 20px; font-weight: 600;
  color: var(--brand-ink); position: relative; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--accent); font-weight: 400; line-height: 1;
}
.faq__item[open] summary::after { content: "−"; }
.faq__a { padding: 0 20px 18px; color: var(--ink-2); }
.faq__a p { margin: 0; }

/* ---------------------------------------------------------------- форма */

.sec--form { background: var(--bg-alt); }
.formbox {
  display: grid; gap: 34px; grid-template-columns: minmax(280px, .85fr) minmax(320px, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow);
}
.formbox__text p { color: var(--ink-2); }
.formbox__contacts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.formbox__contacts a { font-weight: 600; }

.form__row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: .87rem; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .98rem;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: #fff; color: var(--ink); transition: .15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(20, 71, 127, .12);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:invalid:not(:placeholder-shown) { border-color: #d9534f; }

/* Ловушка для спам-ботов — скрыта от людей, но не от автозаполнения ботов */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.form__msg { margin: 12px 0 0; font-size: .95rem; font-weight: 600; min-height: 1.4em; }
.form__msg.is-ok { color: #1a7f4b; }
.form__msg.is-err { color: #c0392b; }
.form__msg.is-pending { color: var(--muted); font-weight: 500; }

/* ---------------------------------------------------------------- калькулятор */

.calc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow);
}
.calc .field small {
  display: block; margin-top: 5px; font-size: .82rem; color: var(--muted);
}
.calc select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .98rem;
  border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff;
}
.calc select:focus {
  outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(20, 71, 127, .12);
}

.check { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 14px; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.check b { display: block; font-weight: 600; font-size: .95rem; }
.check small { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }

/* поиск по ТН ВЭД с выпадающими подсказками */
.field--search { position: relative; margin-bottom: 14px; }
.field--search > label {
  display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px;
}
.field--search input {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .98rem;
  border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff;
}
.field--search input:focus {
  outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(20, 71, 127, .12);
}
.field--search small { display: block; margin-top: 5px; font-size: .82rem; color: var(--muted); }

.calc__ac {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% - 18px);
  margin: 0; padding: 6px; list-style: none; max-height: 340px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s);
  box-shadow: 0 18px 40px rgba(11, 31, 59, .18);
}
/* Заголовок списка держим на псевдоэлементе: обычный <li> сдвинул бы
   нумерацию, по которой стрелки и мышь находят выбранную строку */
.calc__ac[data-label]::before {
  content: attr(data-label);
  display: block; padding: 6px 11px 4px;
  font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.calc__ac li {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 12px;
  padding: 9px 11px; border-radius: 8px; cursor: pointer;
}
.calc__ac li.ac__clear {
  display: block; margin-top: 2px; border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px; padding-top: 10px;
  font-size: .84rem; color: var(--muted);
}
.calc__ac li.ac__clear:hover { color: var(--ink); }
.calc__ac li:hover, .calc__ac li.is-hi { background: var(--bg-alt); }
.calc__ac b {
  font-variant-numeric: tabular-nums; color: var(--brand-2); font-size: .92rem;
}
.calc__ac span {
  font-size: .9rem; color: var(--ink); overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.calc__ac i {
  grid-column: 1 / -1; font-style: normal; font-size: .82rem; color: var(--muted);
}

.calc__picked {
  margin-bottom: 16px; padding: 14px 16px; border-radius: var(--radius-s);
  background: linear-gradient(135deg, #0b1f3b, #14477f); color: #fff;
}
.calc__picked-code {
  font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.05rem;
  letter-spacing: .02em;
}
.calc__picked-name { font-size: .9rem; opacity: .85; margin-top: 3px; }
.calc__picked-rate {
  margin-top: 8px; display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); font-size: .88rem; font-weight: 600;
}

/* ------------------------------------------------------------ онлайн-чат */

.chat { position: fixed; right: 18px; bottom: 18px; z-index: 60; }
.chat__fab {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 13px 20px; border: none; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-2), #0b1f3b); color: #fff;
  font: inherit; font-size: .95rem; font-weight: 600;
  box-shadow: 0 10px 28px rgba(11, 31, 59, .32);
  transition: transform .16s, box-shadow .16s;
}
.chat__fab:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(11, 31, 59, .4); }
.chat__fab-ico { font-size: 1.15rem; line-height: 1; }
.chat.is-open .chat__fab-txt { display: none; }

.chat__box {
  position: absolute; right: 0; bottom: 60px; width: min(360px, calc(100vw - 36px));
  display: flex; flex-direction: column; max-height: min(560px, calc(100vh - 130px));
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(11, 31, 59, .26); overflow: hidden;
}
.chat__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; color: #fff;
  background: linear-gradient(135deg, #0b1f3b, var(--brand-2));
}
.chat__x {
  background: none; border: none; color: #fff; font-size: 1.5rem; line-height: 1;
  cursor: pointer; padding: 0 4px; opacity: .85;
}
.chat__x:hover { opacity: 1; }

.chat__log {
  flex: 1; overflow-y: auto; padding: 14px 16px; display: flex;
  flex-direction: column; gap: 10px; background: var(--bg-alt); min-height: 140px;
}
.chat__msg { max-width: 85%; }
.chat__msg b { display: block; font-size: .74rem; color: var(--muted); margin-bottom: 2px; }
.chat__msg p {
  margin: 0; padding: 9px 13px; border-radius: 14px; font-size: .92rem; line-height: 1.45;
  background: #fff; border: 1px solid var(--line);
}
.chat__msg.is-me { align-self: flex-end; }
.chat__msg.is-me p { background: var(--brand-2); color: #fff; border-color: transparent; }
.chat__msg.is-note { align-self: center; max-width: 100%; }
.chat__msg.is-note p {
  background: transparent; border: none; color: var(--muted); font-size: .82rem; padding: 2px 0;
}

.chat__form { padding: 12px 14px; border-top: 1px solid var(--line); background: #fff; }
.chat__name {
  width: 100%; margin-bottom: 8px; padding: 8px 11px; font: inherit; font-size: .88rem;
  border: 1px solid var(--line); border-radius: var(--radius-s);
}
.chat__row { display: flex; gap: 8px; align-items: flex-end; }
.chat__row textarea {
  flex: 1; resize: none; padding: 10px 12px; font: inherit; font-size: .92rem;
  border: 1px solid var(--line); border-radius: var(--radius-s); max-height: 110px;
}
.chat__row textarea:focus, .chat__name:focus {
  outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(20, 71, 127, .12);
}
.chat__send { padding: 10px 16px; font-size: .9rem; white-space: nowrap; }

@media (max-width: 520px) {
  .chat { right: 12px; bottom: 12px; }
  .chat__fab-txt { display: none; }
  .chat__fab { padding: 14px; }
}

/* ---------------------------------------------------------- курсы валют */

.rates {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.rates__loading { color: var(--muted); font-size: .9rem; padding: 10px 0; }
.rates__item {
  display: grid; gap: 4px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s);
  box-shadow: var(--shadow);
}
.rates__ccy {
  font-weight: 700; font-size: .95rem; color: var(--brand-2);
  display: flex; align-items: baseline; gap: 8px;
}
.rates__ccy span { font-weight: 400; font-size: .8rem; color: var(--muted); }
.rates__val {
  font-size: 1.32rem; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--brand-ink); display: flex; align-items: baseline; gap: 9px;
}
.rates__val i { font-style: normal; font-size: .82rem; font-weight: 600; color: var(--muted); }
.rates__val i.is-up { color: #1f8a4c; }
.rates__val i.is-down { color: #c0392b; }
.rates__spark { width: 100%; height: 28px; margin-top: 2px; }

/* ---------------------------------------------------------------- блог */

.cards--posts { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card--post {
  display: flex; flex-direction: column; gap: 9px; padding: 24px 26px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  border-top: 3px solid var(--brand-2); transition: transform .16s, box-shadow .16s;
}
.card--post:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(11,31,59,.14); }
.card--post time { font-size: .82rem; color: var(--muted); }
.card--post h2, .card--post h3 { font-size: 1.12rem; margin: 0; color: var(--brand-ink); }
.card--post p { font-size: .93rem; color: var(--muted); margin: 0; }
.card__more { margin-top: auto; padding-top: 6px; font-size: .9rem; font-weight: 600; color: var(--brand-2); }

/* Обложка в карточке выходит за паддинги — иначе она читается как вставленная
   в текст иллюстрация, а не как верх карточки. Соотношение задано жёстко,
   чтобы карточки в ряду не прыгали по высоте, пока грузятся картинки. */
.card__cover {
  display: block; width: calc(100% + 52px); margin: -24px -26px 4px;
  aspect-ratio: 1200 / 630; object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.post__date { display: block; font-size: .88rem; opacity: .8; margin-bottom: 10px; }
.post__cover {
  display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630;
  object-fit: cover; border-radius: var(--radius); margin: 0 0 6px;
  box-shadow: var(--shadow);
}
.post__cta { margin-top: 30px; }

/* текст статьи: шире межстрочный, заметные подзаголовки, читаемые таблицы */
.prose h2 { font-size: 1.42rem; margin: 34px 0 12px; color: var(--brand-ink); }
.prose p, .prose li { font-size: 1.02rem; line-height: 1.72; }
.prose ul { padding-left: 22px; margin: 14px 0; }
.prose li { margin-bottom: 7px; }
.prose table { margin: 20px 0; }
.prose b { color: var(--brand-ink); }

/* Поля в две колонки: форма перестаёт быть длинной лентой на десктопе */
.calc__grid {
  display: grid; gap: 0 18px; grid-template-columns: repeat(2, minmax(0, 1fr));
}
.calc__grid > .field { margin-bottom: 14px; }
@media (max-width: 620px) { .calc__grid { grid-template-columns: 1fr; } }

/* Акциз нужен единицам, поэтому убран под раскрывающийся заголовок */
.calc__more { margin: 4px 0 18px; }
.calc__more summary {
  cursor: pointer; font-size: .92rem; font-weight: 600; color: var(--brand-2);
  padding: 9px 0; list-style: none; user-select: none;
}
.calc__more summary::-webkit-details-marker { display: none; }
.calc__more summary::before { content: '+ '; font-weight: 700; }
.calc__more[open] summary::before { content: '− '; }
.calc__more[open] summary { margin-bottom: 10px; }

/* требования к документам по выбранному коду */
.docs {
  margin-top: 22px; padding: clamp(20px, 3vw, 30px);
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
}
.docs__title { font-size: 1.15rem; margin: 0 0 14px; }
.docs__list { margin: 0 0 18px; padding-left: 20px; }
.docs__list li { font-size: .94rem; margin-bottom: 5px; }
.docs__item {
  display: grid; gap: 3px; padding: 13px 15px; margin-bottom: 10px;
  background: #fff; border-left: 3px solid var(--brand-2); border-radius: var(--radius-s);
}
.docs__item b { font-size: .96rem; color: var(--brand-ink); }
.docs__item span { font-size: .92rem; }
.docs__item i, .docs__item em {
  font-style: normal; font-size: .82rem; color: var(--muted);
}
.docs__item em { color: var(--brand-2); font-weight: 600; }
/* Род документа — значком у названия, как код платежа в расчёте */
.docs__kind {
  justify-self: start; text-decoration: none; padding: 1px 8px; border-radius: 5px;
  background: var(--bg-alt); color: var(--ink-2); font-size: .74rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
/* Обязательное сейчас выделяем оранжевой полосой — как прежние флаги */
.docs__item.is-now { border-left-color: #e8912a; background: #fff9f2; }
.docs__item.is-now .docs__kind { background: #fdead2; color: #a55a11; }
.docs__flag {
  margin: 10px 0 0; padding: 11px 14px; border-radius: var(--radius-s);
  background: #fff5e6; border-left: 3px solid #e8912a; font-size: .88rem;
}

.calc__result { margin-top: 28px; }
.calc__table td { font-size: 1rem; }
.calc__table td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc__total td { background: var(--bg-alt); font-size: 1.08rem; }
.calc__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn--ghost-dark { border-color: var(--line); color: var(--brand-ink); background: #fff; }
.btn--ghost-dark:hover { border-color: var(--brand-2); color: var(--brand-2); }

.linklist { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 11px; }
.linklist a { font-weight: 500; }

.disclaimer {
  font-size: .89rem; color: var(--ink-2); background: var(--bg-alt);
  border-left: 3px solid var(--accent); padding: 16px 20px; border-radius: 0 var(--radius-s) var(--radius-s) 0;
  margin: 0;
}

/* ---------------------------------------------------------------- контакты */

/* Карточки контактов описаны ниже, в одном месте. */

/* ---------------------------------------------------------------- текст */

.prose h2 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; color: var(--ink-2); }
.prose li { margin-bottom: .5em; }

/* ---------------------------------------------------------------- мессенджеры */

.messengers { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
/* Текст на кнопках мессенджеров тёмный, а не белый. Белый на фирменном
   голубом Telegram давал 3.02, на зелёном WhatsApp — 1.98; оба ниже нормы.
   Затемнять сами цвета не стали — они узнаваемые. Тёмный текст на тех же
   фонах даёт 5.22 и 7.93, то есть фирменные цвета остаются как были. */
.msg {
  display: inline-flex; align-items: center; padding: 9px 18px;
  border-radius: 999px; font-size: .9rem; font-weight: 600;
}
a.msg, .ft a.msg { color: var(--brand-ink); }
.msg--tg { background: #229ed9; }
a.msg--tg:hover, .ft a.msg--tg:hover { background: #4fb6e4; color: var(--brand-ink); }
.msg--wa { background: #25d366; }
a.msg--wa:hover, .ft a.msg--wa:hover { background: #4fdd8a; color: var(--brand-ink); }

/* ---------------------------------------------------------------- подвал */

.ft { background: var(--brand-ink); color: rgba(255, 255, 255, .72); padding: 56px 0 26px; font-size: .94rem; }
.ft__grid { display: grid; gap: 34px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.ft h3 { color: #fff; font-size: .84rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 1em; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ft a { color: rgba(255, 255, 255, .74); }
.ft a:hover { color: var(--accent); }
.ft .logo { color: #fff; margin-bottom: 14px; }
.ft .logo__text { color: #fff; }
.ft__contacts li { display: grid; gap: 2px; }
.ft__contacts span { font-size: .82rem; color: rgba(255, 255, 255, .45); }
.ft__bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .86rem; color: rgba(255, 255, 255, .5);
}

/* ---------------------------------------------------------------- адаптив */

@media (max-width: 1040px) {
  .ft__grid { grid-template-columns: 1fr 1fr; }
}

/* Меню сворачивается в бургер раньше, чем перестраивается остальная вёрстка.
   Порог подобран замером, а не на глаз: при шести пунктах строка помещается
   с запасом от 1100 пикселей, при восьми не помещалась и на полутора тысячах
   — «О компании» переносилось на вторую строку, а телефон с переключателем
   языков выезжал за правый край. */
@media (max-width: 1100px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px; margin: 0;
    transform: translateY(-140%); transition: transform .22s ease; z-index: 40;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .nav a:last-child { border-bottom: 0; }
}

@media (max-width: 860px) {
  .hdr__phone { display: none; }
  .formbox { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .form__row { grid-template-columns: 1fr; }
  .ft__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
}

/* Шапка на телефоне.
   Раньше здесь стояли три языковые кнопки в строку, и места на название
   компании не оставалось — слово с логотипа приходилось убирать совсем.
   Свернули языки в один пункт, освободившееся место отдали названию: оно
   встаёт в две строки рядом со знаком и занимает около 70 пикселей вместо
   135 одной строкой. Всё, кроме логотипа, прижато вправо. */
@media (max-width: 700px) {
  .hdr__in { gap: 10px; }
  .hdr__side { margin-left: auto; gap: 10px; }

  .logo__mark { width: 42px; height: 42px; }
  /* Название в одну строку: в две оно было узким, и между ним и кнопкой
     языка простаивало шестьдесят пикселей. Одной строкой оно занимает место
     целиком, а кегль подобран замером под самый узкий распространённый
     экран — 375 пикселей. */
  .logo__text {
    display: block; line-height: 1.15;
    letter-spacing: -.02em; white-space: nowrap;
    /* Кегль растёт вместе с экраном, иначе на 414 и 430 между названием и
       кнопкой языка опять открывалась пустота: место прибавляется быстрее,
       чем занимает надпись фиксированного размера. 16 пикселей при 375,
       19 при 430, дальше упор в 20. */
    font-size: clamp(1rem, -4.4px + 5.45vw, 1.25rem);
  }

  .langs__cur {
    display: inline-flex; align-items: center; gap: 6px;
    height: 38px; padding: 0 9px; cursor: pointer;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s);
    font: inherit; font-size: .84rem; font-weight: 700; color: var(--brand-ink);
  }
  .langs__caret {
    width: 0; height: 0; border: 4px solid transparent;
    border-top-color: var(--ink-2); margin-top: 3px; transition: transform .18s;
  }
  .langs.is-open .langs__caret { transform: rotate(180deg); margin-top: -3px; }

  .langs__list {
    display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 45;
    flex-direction: column; gap: 0; min-width: 178px; padding: 6px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s);
    box-shadow: 0 14px 32px rgba(11, 31, 59, .16);
  }
  .langs.is-open .langs__list { display: flex; }
  .langs__list a { padding: 10px 10px; border-radius: 8px; text-transform: none; font-size: .95rem; }
  .langs__code { display: none; }
  .langs__name { display: inline; }
}

/* Узкие экраны: одна строка ещё помещается, но уже без запаса. Порог именно
   365, а не 400: при 400 под сужение попадали обычные 375, где полный кегль
   помещается с зазором 16 пикселей. */
@media (max-width: 365px) {
  .logo__mark { width: 38px; height: 38px; }
  .logo__text { font-size: .95rem; }
  .hdr__in { gap: 8px; }
}

/* Уже 356 пикселей одна строка не влезает: 38 знак + 129 название + 79 языки
   + 42 бургер + отступы дают 312 при доступных 280, и страницу тянуло вбок.
   Здесь название снова складывается в две строки — там оно шириной 82. */
@media (max-width: 355px) {
  .logo__text { display: flex; flex-direction: column; line-height: 1.12; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Компания в цифрах */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: var(--brand); color: #fff; border-radius: 14px; padding: 26px 22px; text-align: center; }
.stat__n { display: block; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 800; color: #fff; }
.stat__n b { color: var(--accent); font-weight: 800; }
.stat__l { display: block; margin-top: 6px; color: rgba(255, 255, 255, .82); font-size: .95rem; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Галерея отгрузок */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery__item { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 14px rgba(11, 47, 94, .10); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.gallery__item:hover img { transform: scale(1.04); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Карта направлений */
.rmap svg { width: 100%; height: auto; display: block; }
.rmap__route { fill: none; stroke: var(--brand-2); stroke-width: 2.5; stroke-dasharray: 7 7; opacity: .55; }
.rmap__dot { fill: var(--brand); }
.rmap__hub { fill: var(--accent); }
.rmap__hub-ring { fill: none; stroke: var(--accent); stroke-width: 2; opacity: .45; }
.rmap__name { font: 700 22px/1 system-ui, sans-serif; fill: var(--ink); }
.rmap__modes { font: 500 15px/1 system-ui, sans-serif; fill: var(--muted); }
.rmap__hubname { font: 800 24px/1 system-ui, sans-serif; fill: var(--accent-dark); }
.rmap__note { text-align: center; color: var(--muted); margin-top: 6px; }

/* Сравнение транспорта */
.cmp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cmp__card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 22px; }
.cmp__days { font-size: 1.5rem; font-weight: 800; color: var(--brand); margin: 6px 0 2px; }
.cmp__days small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.cmp__cost { letter-spacing: 2px; font-weight: 700; margin-bottom: 10px; }
.cmp__cost b { color: var(--accent); }
.cmp__cost span { color: var(--line); }
.cmp__card p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 900px) { .cmp { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================ цветовой слой */

/* Плотнее ритм секций */
.sec { padding: clamp(34px, 4.2vw, 58px) 0; }
.sec__lead { margin-bottom: 26px; }

/* Первый экран: живое фото под фирменным градиентом */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url(/assets/img/photos/f7-1200.webp) center 35%/cover no-repeat;
  opacity: .18; mix-blend-mode: luminosity;
}
.hero { background: linear-gradient(150deg, #061c38 0%, var(--brand) 52%, #1b5799 100%); }
.hero::after {
  background:
    /* тень под текстом: без неё поднятая яркость фото съедает белый заголовок */
    linear-gradient(90deg, rgba(6, 28, 56, .88) 0%, rgba(6, 28, 56, .55) 42%, rgba(6, 28, 56, 0) 72%),
    radial-gradient(900px 420px at 88% 10%, rgba(232, 97, 26, .30), transparent 65%),
    radial-gradient(500px 300px at 8% 95%, rgba(232, 97, 26, .14), transparent 70%);
}

/* Иконки в цветных чипах */
.card .ico {
  width: 54px; height: 54px; padding: 13px; border-radius: 14px;
  background: linear-gradient(135deg, #ffe9db, #ffd7bd);
  box-shadow: inset 0 0 0 1px rgba(232, 97, 26, .18);
}

/* Карточки направлений: фирменный градиент и флаги */
.card--dir {
  background: linear-gradient(148deg, var(--brand) 0%, var(--brand-2) 78%, #1c5da5 100%);
  border: none; position: relative; overflow: hidden;
}
.card--dir::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px;
  border-radius: 50%; background: rgba(232, 97, 26, .18);
}
.card--dir h3 { color: #fff; }
.card--dir p { color: rgba(255, 255, 255, .82); }
a.card--dir:hover { box-shadow: 0 14px 30px rgba(11, 47, 94, .35); }
a.card--dir:hover h3 { color: #ffc7a3; }
.card__flag { font-size: 2rem; line-height: 1; display: block; margin-bottom: 12px; }

/* Преимущества: оранжевый кант */
.card--plain { border-left: 4px solid var(--accent); }

/* Этапы: оранжевые номера и соединительная линия */
.step__n { background: var(--accent); box-shadow: 0 4px 12px rgba(232, 97, 26, .35); }

/* Форма: тёмная секция, белая карточка выделяется */
.sec--form { background: linear-gradient(150deg, #061c38, var(--brand) 70%); }
.sec--form .formbox { border: none; }

/* Карта направлений: тёмная панель */
.sec--map { padding-top: clamp(30px, 3.5vw, 48px); }
.sec--map .sec__title { margin-bottom: 24px; }
.rmap {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .05) 1px, transparent 1.6px),
    linear-gradient(150deg, #061c38 0%, var(--brand) 55%, #123f74 100%);
  background-size: 26px 26px, cover;
  border-radius: 20px; padding: clamp(18px, 3vw, 40px) clamp(10px, 2vw, 30px) 18px;
  box-shadow: 0 18px 44px rgba(6, 28, 56, .35);
}
.rmap__route { stroke: rgba(255, 255, 255, .45); stroke-width: 2.4; stroke-dasharray: 7 9; animation: rmapflow 26s linear infinite; }
@keyframes rmapflow { to { stroke-dashoffset: -640; } }
.rmap__dot { fill: #ffb27d; }
.rmap__flag { font-size: 26px; }
.rmap__name { font: 700 22px/1 system-ui, sans-serif; fill: #fff; }
.rmap__modes { font: 500 15px/1 system-ui, sans-serif; fill: rgba(255, 255, 255, .62); }
.rmap__hub { fill: var(--accent); }
.rmap__hub-ring { fill: none; stroke: rgba(255, 178, 125, .8); stroke-width: 2; }
.rmap__hub-glow { fill: rgba(232, 97, 26, .25); animation: rmappulse 2.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes rmappulse { 0% { transform: scale(.6); opacity: .9; } 70% { transform: scale(1.25); opacity: 0; } 100% { opacity: 0; } }
.rmap__hubname { font: 800 24px/1 system-ui, sans-serif; fill: #ffb27d; }
.rmap__note { color: rgba(255, 255, 255, .65); padding-bottom: 6px; margin: 4px 0 0; }

/* Сравнение транспорта: цветные верхние канты */
.cmp__card { border-top: 4px solid var(--accent); box-shadow: var(--shadow); border-left: 1px solid var(--line); }
.cmp__card:nth-child(2) { border-top-color: var(--brand-2); }
.cmp__card:nth-child(3) { border-top-color: #7c58d6; }
.cmp__card:nth-child(4) { border-top-color: #0e8f83; }
.cmp__card .ico { width: 48px; height: 48px; padding: 11px; border-radius: 12px; background: linear-gradient(135deg, #ffe9db, #ffd7bd); }

/* Галерея: чуть теснее к тексту */
.gallery { gap: 12px; }

/* SVG-флаги */
.card__flag { width: 36px; height: 36px; display: block; margin-bottom: 12px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }

/* Фон первого экрана — реальное фото фуры.
   Фура на снимке стоит в правом нижнем углу, а кадр показывался от 35% высоты
   — то есть ровно горы, без машины. Плюс режим luminosity обесцвечивал её до
   пятна. Сдвигаем кадр вправо и вниз, снимаем режим наложения и поднимаем
   непрозрачность; текст держится за счёт затемнения слева, которое добавлено
   в ::after — там, где он и лежит. */
.hero::before {
  background-image: url(/assets/img/photos/hero-road.webp);
  /* Фура едет прямо на снимке, а не наклеена поверх: 3D-модель на фотопейзаже
     читалась как аппликация. Кадр отражён по горизонтали ещё при сборке
     картинки, поэтому машина идёт в правой половине — там, где нет текста. */
  background-position: center 62%;
  background-size: cover;
  mix-blend-mode: normal;
  opacity: .42;
  /* Очень медленный наезд: движение чувствуется, но не тянет на себя
     внимание и ничего не срезает по краям. */
  transform-origin: 72% 70%;
  animation: heroDrive 50s ease-in-out infinite alternate;
}

@keyframes heroDrive {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}

/* Кому анимация мешает — тому её не показываем */
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}
}

/* Карточки перевозок с фирменным транспортом */
.card--mode { padding-top: 0; overflow: hidden; }
.card__pic {
  display: block; margin: 0 -24px 16px; padding: 18px 16px 10px;
  background: linear-gradient(160deg, #eef4fb 0%, #dfeaf7 100%);
  border-bottom: 1px solid var(--line);
}
.card__pic img { width: 100%; height: 110px; object-fit: contain; display: block; }
a.card--mode:hover .card__pic img { transform: translateX(4px); transition: transform .3s; }

/* Фото в карточке услуги: выходит за паддинги на всю ширину карточки, как у
   карточек транспорта выше. Отдельный класс, не card__pic — там тёмная
   подложка под вырезанные рендеры, а тут кадр перекрывает её целиком. */
.card--photo { padding-top: 0; overflow: hidden; }
.card__photo { display: block; margin: 0 -24px 14px; }  /* боковой паддинг карточки — 24px */
.card__photo img {
  display: block; width: 100%; height: 132px; object-fit: cover;
  transition: transform .35s ease;
}
a.card--photo:hover .card__photo img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  a.card--photo:hover .card__photo img { transform: none; }
}

/* Шапка страницы транспорта */
.modehead { background: linear-gradient(160deg, #eef4fb 0%, #e2ecf8 100%); border-bottom: 1px solid var(--line); }
.modehead__in { display: grid; grid-template-columns: 1fr minmax(280px, 46%); gap: 30px; align-items: center; }
.modehead__pic { width: 100%; height: auto; }
@media (max-width: 860px) {
  .modehead__in { grid-template-columns: 1fr; }
  .modehead__pic { max-width: 420px; }
}

/* Тёмная подложка под фирменный транспорт — белые машины должны читаться */
.card__pic {
  background: linear-gradient(160deg, var(--brand-ink) 0%, var(--brand) 60%, var(--brand-2) 100%);
  border-bottom: none; position: relative;
}
.card__pic::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 160px at 75% 20%, rgba(232, 97, 26, .30), transparent 70%);
}
.card__pic img { position: relative; z-index: 1; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); }
.modehead { background: linear-gradient(160deg, var(--brand-ink) 0%, var(--brand) 62%, var(--brand-2) 100%); border-bottom: none; }
.modehead h1, .modehead .lead { color: #fff; }
.modehead .lead b { color: #ffc7a3; }
.modehead .tagline { color: #ffb27d; }
.modehead__pic { filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .40)); }

/* ======================================================= второй слой красоты */

/* «Почему выбирают нас» — тёмная секция с фото на фоне */
.sec--why {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(150deg, #061c38 0%, var(--brand) 60%, #123f74 100%);
}
.sec--why::before {
  content: ""; position: absolute; inset: 0;
  background: url(/assets/img/photos/f2-1200.webp) center/cover no-repeat;
  opacity: .13; mix-blend-mode: luminosity;
}
.sec--why::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 320px at 85% 8%, rgba(232, 97, 26, .22), transparent 68%);
}
.sec--why .wrap { position: relative; z-index: 1; }
.sec--why .sec__title { color: #fff; }
.sec--why .card--plain {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-left: 4px solid var(--accent); backdrop-filter: blur(3px);
}
.sec--why .card--plain h3 { color: #fff; }
.sec--why .card--plain p { color: rgba(255, 255, 255, .78); }

/* «Как мы работаем» — соединительная линия между шагами */
.sec--steps { background: var(--bg-alt); }
.steps { counter-reset: s; position: relative; }
.step::before {
  content: ""; position: absolute; top: 17px; left: 34px; right: -20px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px);
  opacity: .45;
}
.step:last-child::before { display: none; }
@media (max-width: 760px) { .step::before { display: none; } }

/* Плавное появление секций при прокрутке. Только в браузерах, умеющих
   привязывать анимацию к прокрутке: иначе блоки рискуют остаться невидимыми. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sec, .rmap, .formbox {
      animation: rise .55s cubic-bezier(.2, .7, .3, 1) both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }
    @keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  }
}

/* Заголовки секций с оранжевым подчёркиванием */
.sec__title { position: relative; padding-bottom: 14px; }
.sec__title::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 56px; height: 3px; border-radius: 2px; background: var(--accent);
}

/* Галерея: подпись при наведении */
.gallery__item { position: relative; }
.gallery__item::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(6, 28, 56, .55));
  opacity: 0; transition: opacity .3s;
}
.gallery__item:hover::after { opacity: 1; }

/* Флаги внутри SVG-карты */
.rmap__flag { overflow: visible; }

/* Пометка «необязательно» у полей формы: снимает страх длинной анкеты */
.field__opt {
  font-style: normal; font-weight: 400; font-size: .78rem;
  color: var(--muted); text-transform: lowercase;
}
/* Что будет после отправки — прямо над кнопкой, где решение и принимается */
.form__promise {
  margin: 4px 0 14px; font-size: .9rem; color: var(--ink-2);
  padding-left: 14px; border-left: 3px solid var(--accent);
}

/* ======================================================== «О компании» */

/* Текст и кадр рядом. Фотография чуть выше колонки текста и выступает вверх —
   иначе два прямоугольника встык читаются как таблица, а не как разворот. */
.about__in { display: grid; gap: clamp(26px, 4vw, 54px); align-items: start; }
.about__text { display: flex; flex-direction: column; gap: 16px; }
.about__lead {
  font-size: clamp(1.14rem, 1rem + .7vw, 1.42rem);
  line-height: 1.45; color: var(--brand-ink); font-weight: 500;
}
.about__text p { margin: 0; color: var(--ink-2); }
.about__pic { margin: 0; }
.about__pic img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover;
}
.about__pic figcaption {
  margin-top: 10px; font-size: .85rem; color: var(--muted); line-height: 1.45;
}

@media (min-width: 900px) {
  .about__in { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .about__pic { margin-top: 6px; }
}

/* Три принципа. Карточка — фотография сверху, текст под ней; на широком
   экране три в ряд, дальше сами переносятся. */
.pillars { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.pillar__pic { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pillar__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.pillar__body h3 { margin: 0; font-size: 1.08rem; }
.pillar__body p { margin: 0; color: var(--ink-2); font-size: .96rem; }

/* ===================================== шапки внутренних страниц: фон и цвет */

.sec--head {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(150deg, #061c38 0%, var(--brand) 58%, #14477f 100%);
  padding: clamp(30px, 4vw, 52px) 0 clamp(28px, 3.6vw, 46px);
}
.sec--head::before {
  content: ""; position: absolute; inset: 0;
  background: url(/assets/img/photos/hero-1920.webp) center 40%/cover no-repeat;
  opacity: .16; mix-blend-mode: luminosity;
}
.sec--head::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(720px 320px at 88% 0%, rgba(232, 97, 26, .30), transparent 66%);
}
.sec--head > .wrap { position: relative; z-index: 1; }
.sec--head h1 { color: #fff; }
.sec--head .lead { color: rgba(255, 255, 255, .88); }
.sec--head .lead b { color: #ffc7a3; }
.sec--head .tagline { color: #ffb27d; }
.sec--head .note, .sec--head .muted { color: rgba(255, 255, 255, .68); }
.sec--head .btn--primary { box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }

/* Крошки над тёмной шапкой */
.crumbs { background: #071f3c; border-bottom: none; }
.crumbs a { color: rgba(255, 255, 255, .72); }
.crumbs a:hover { color: var(--accent); }
.crumbs span, .crumbs li + li::before { color: rgba(255, 255, 255, .45); }

/* Шапка страницы транспорта.
   Здесь стоял background: none — он снимал тёмную подложку, и белый заголовок
   оставался на одной фотографии. На светлых кадрах (горы у морской страницы)
   текст переставал читаться совсем. Подложку вернули, фото приглушено сильнее
   обычного, чтобы контейнер и фура на картинке всё же были видны. */
/* Кадр виден, но остаётся фоном: при .12 он читался как серый шум, при .20
   уже узнаётся — порт, состав, перрон — и заголовок держит контраст выше 7. */
.modehead::before { opacity: .20; }

/* Шапка страницы направления: крупный флаг */
.dirhead__in { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.dirhead__flag {
  width: clamp(96px, 12vw, 168px); height: auto; border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .38);
}
@media (max-width: 760px) { .dirhead__in { grid-template-columns: 1fr; } .dirhead__flag { width: 96px; } }

/* Карточки контактов.
   Раньше их стили стояли в двух местах файла и второй набор молча перебивал
   первый — отсюда разнобой в отступах и рамках. Теперь один блок.
   Карточка — колонка: заголовок, значения, а подпись прижата к низу
   через margin-top:auto, поэтому нижняя граница текста идёт по одной линии
   независимо от того, две строки в адресе или три. */
.contacts { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contacts__item {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius); padding: 22px 22px 20px; box-shadow: var(--shadow);
}
.contacts__item h3 {
  color: var(--brand); font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; margin: 0 0 14px;
}
.contacts__item p { margin: 0 0 6px; font-size: 1.06rem; font-weight: 600; line-height: 1.45; }
.contacts__item p:last-of-type { margin-bottom: 0; }
.contacts__item a { color: var(--brand-2); }
.contacts__item a:hover { color: var(--accent); }
.contacts__item .muted {
  padding-top: 12px;
  font-weight: 400; font-size: .88rem; line-height: 1.4;
}

/* Пересечение «транспорт + страна»: машина и флаг рядом */
.modehead__pair { position: relative; }
.modehead__flag {
  position: absolute; right: 4px; bottom: -6px; width: clamp(56px, 6vw, 88px); height: auto;
  border-radius: 10px; box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
}

/* Пояснение, что ставка взята с уровня товарной позиции */
.calc__picked-note { margin-top: 6px; font-size: .85rem; color: var(--muted); }

/* Сумма прописью под таможенной стоимостью: подсказка, а не второе поле,
   поэтому тем же кеглем, что и хинт, но курсивом и чуть темнее */
.calc .field small.field__words {
  margin-top: 3px; font-style: italic; color: var(--brand-ink);
}

/* Ставка акциза, подставленная по коду. Отбивка слева как у предупреждений,
   но зелёная: это не проблема, а посчитанное за пользователя. */
.calc__auto {
  margin: 0 0 18px; padding: 12px 14px; border-radius: var(--radius-s);
  background: #eef7f0; border-left: 3px solid #1f8a4c;
}
.calc__auto b { display: block; font-size: .84rem; text-transform: uppercase; letter-spacing: .03em; color: #1f8a4c; }
.calc__auto span { display: block; margin-top: 3px; font-weight: 600; }
.calc__auto small { display: block; margin-top: 5px; font-size: .84rem; color: var(--muted); }

/* Разбор расчёта. Каждая строка — одно действие: выражение слева, результат
   справа. У ставки «не менее» строк две, и видно, какая из них сработала. */
.how { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.how__title {
  margin: 0; padding: 12px 16px; background: var(--bg-alt);
  font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
}
.how__group { padding: 12px 16px; border-top: 1px solid var(--line); }
.how__label { font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.how__line {
  display: flex; align-items: baseline; gap: 10px;
  padding: 4px 0; font-size: .95rem;
}
.how__expr { flex: 1 1 auto; font-variant-numeric: tabular-nums; }
.how__val { flex: 0 0 auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.how__badge {
  flex: 0 0 auto; font-style: normal; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .03em; padding: 2px 7px; border-radius: 20px;
}
/* Применённая сумма набрана обычным цветом, отброшенная — приглушена и
   зачёркнута: так видно, что она посчитана, но в платёж не пошла */
.how__line.is-applied .how__val { font-weight: 700; }
.how__line.is-applied .how__badge { background: #e4f2e8; color: #1f8a4c; }
.how__line.is-skipped { color: var(--muted); }
.how__line.is-skipped .how__val { text-decoration: line-through; }
.how__line.is-skipped .how__badge { background: var(--bg-alt); color: var(--muted); }
.how__line.is-step { color: var(--muted); font-size: .88rem; }
.how__note { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }

@media (max-width: 560px) {
  .how__line { flex-wrap: wrap; }
  .how__expr { flex: 1 1 100%; }
  .how__val { margin-left: auto; }
}

.expdocs__group { margin-bottom: 22px; }
.expdocs__group h3 { margin-bottom: 8px; color: var(--brand-2); }
.expdocs__list { margin: 0; padding-left: 20px; color: var(--ink-2); }
.expdocs__list li { margin-bottom: 6px; }

/* Недействующий код — предупреждение, а не подсказка: отбивка красная */
.calc__auto--old { background: #fdecec; border-left-color: #c0392b; }
.calc__auto--old b { color: #a5342a; }
/* Коды идут строками, а не рядом кнопок: у каждого своё название и своя
   ставка, и выбирать надо по ним, а не по последней цифре номера */
.oldcode__codes { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.oldcode__btn {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline;
  gap: 3px 12px; width: 100%; text-align: left; font: inherit;
  padding: 9px 13px; border: 1px solid #e0b4ae; border-radius: var(--radius-s);
  background: #fff; color: #a5342a; cursor: pointer; transition: .15s;
}
.oldcode__btn b { font-weight: 600; font-variant-numeric: tabular-nums; }
.oldcode__btn span { font-size: .88rem; font-weight: 400; line-height: 1.35; color: #6b625f; }
.oldcode__btn i { font-style: normal; font-weight: 600; white-space: nowrap; }
.oldcode__btn:hover { background: #a5342a; color: #fff; border-color: #a5342a; }
.oldcode__btn:hover span { color: rgba(255, 255, 255, .82); }
/* На узком экране название переносим под код, а ставку оставляем справа от
   него. Места в ячейках распределяем руками: при автоматической расстановке
   название занимает всю строку, и ставка уходит на третью строку слева. */
@media (max-width: 560px) {
  .oldcode__btn { grid-template-columns: auto 1fr; }
  .oldcode__btn b { grid-column: 1; grid-row: 1; }
  .oldcode__btn i { grid-column: 2; grid-row: 1; text-align: right; }
  .oldcode__btn span { grid-column: 1 / -1; grid-row: 2; }
}
.oldcode__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Карточка сертификата происхождения — синяя, а не зелёная: это не
   посчитанное за пользователя, а требование к пакету документов */
.calc__auto--cert { background: #eef3fa; border-left-color: var(--brand-2); }
.calc__auto--cert b { color: var(--brand-2); }
.calc__auto--cert small { margin-top: 6px; }

/* Таблица сборов за въезд фур. У части стран ставка одна, у части — ступенями
   по грузоподъёмности или сроку, поэтому вторая колонка бывает списком. */
.rfees { overflow-x: auto; margin-bottom: 18px; }
.rfees table { min-width: 460px; }
.rfees__val { text-align: right; white-space: nowrap; }
.rfees__one { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.rfees__val small { display: block; font-size: .82rem; color: var(--muted); font-weight: 400; }
.rfees__tiers { list-style: none; margin: 0; padding: 0; }
.rfees__tiers li { display: flex; justify-content: flex-end; gap: 14px; padding: 2px 0; }
.rfees__tiers span { color: var(--ink-2); font-size: .9rem; font-weight: 400; }
.rfees__tiers b { font-variant-numeric: tabular-nums; min-width: 62px; text-align: right; }
.rfees__notes { margin: 0 0 14px; padding-left: 20px; color: var(--ink-2); font-size: .93rem; }
.rfees__notes li { margin-bottom: 6px; }

.rfees__extra { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.rfees__extra h3 { margin-bottom: 12px; }

/* Маркировка, которая уже действует, — не предупреждение, а требование:
   отбивка красная, а не жёлтая, как у будущих сроков */
.docs__flag.is-now { background: #fdecec; border-left-color: #c0392b; }

/* Курс под суммой сбора — правым краем, как и сама сумма */
.calc__table td small {
  display: block; margin-top: 2px; font-size: .78rem; font-weight: 400;
  color: var(--muted); white-space: normal;
}

/* Строка платежа: код графы 47 — значком, под названием правовая основа.
   Код набран моноширинными цифрами, чтобы 10/20/27/29 стояли столбиком. */
.pay__code {
  display: inline-block; min-width: 26px; margin-right: 8px; padding: 1px 5px;
  border-radius: 5px; background: var(--bg-alt); color: var(--muted);
  font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums;
  text-align: center; vertical-align: 2px;
}
.pay__name { font-weight: 500; }

/* ---- Сворачиваемые разделы ---- */
.fold { border-top: 1px solid var(--line); }
.fold:last-of-type { border-bottom: 1px solid var(--line); }
.fold__head {
  display: flex; align-items: baseline; gap: 4px 14px; flex-wrap: wrap;
  padding: 18px 40px 18px 0; position: relative; cursor: pointer;
  list-style: none;   /* убираем стандартный треугольник */
}
.fold__head::-webkit-details-marker { display: none; }
.fold__head:hover .fold__title { color: var(--brand-2); }
.fold__head:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fold__title { margin: 0; font-size: 1.22rem; transition: color .15s; }
.fold__lead { font-size: .92rem; color: var(--muted); }
/* Знак раскрытия рисуем сами: у нативного маркера не задать положение */
.fold__head::after {
  content: ''; position: absolute; right: 8px; top: 26px;
  width: 10px; height: 10px; border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted); transform: rotate(45deg);
  transition: transform .18s;
}
.fold[open] > .fold__head::after { transform: rotate(-135deg); top: 30px; }
.fold__body { padding-bottom: 22px; }
.fold__body > :first-child { margin-top: 0; }
.fold--prose .fold__body > :last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .fold__head::after { transition: none; }
}

/* Валюта стоит вплотную к сумме: это одно значение, а не два поля.
   Селектор с .field — иначе подпись поля (.field > span) перебивает своим
   display: block, и валюта уезжает под сумму. */
.field > span.field__pair { display: flex; gap: 8px; margin-bottom: 0; }
.field__pair input { flex: 1 1 auto; min-width: 0; }
.field__pair select { flex: 0 0 auto; width: auto; font-variant-numeric: tabular-nums; }
.field__fx { display: block; margin-top: 4px; color: var(--brand-2); }
.pay__act { color: var(--muted); }
.calc__total td .pay__code { background: #fff; }

/* Пункты пропуска и порты на странице пары «транспорт × направление».
   Это перечень, а не последовательность: из западного Китая фура идёт
   через Иркештам, из восточного — через Хоргос, и никогда через оба.
   Поэтому метки, а не цепочка со стрелками — стрелка обещала бы порядок,
   которого на маршруте нет. */
.route__cap {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin: 0 0 10px;
}
.route__via { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; }
.route__via li {
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-alt); font-weight: 600; font-size: .95rem; color: var(--brand-ink);
}
.route p { margin: 0; color: var(--ink-2); line-height: 1.72; }

/* Таблицы в статьях. Раньше у <table> внутри .prose был только отступ —
   разметка без рамок и без внутренних полей читалась как слипшийся текст.
   Обёртку .tablewrap ставит сборка: на узком экране таблица прокручивается
   внутри себя, а не растягивает страницу по горизонтали. */
.prose table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.prose th, .prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-alt); color: var(--brand-ink); font-weight: 600; white-space: nowrap; }
.prose td:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.prose tr:last-child td { border-bottom: none; }

/* Значения занимают всё место между заголовком и подписью и стоят в нём по
   центру. Через margin:auto это не выходило: у подписи тоже стоял auto, они
   делили остаток неравномерно, и телефон с адресом висели на разной высоте.
   Явное центрирование внутри растянутого блока даёт одинаковую картину при
   любом числе строк. */
.contacts__val {
  flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center;
}
.contacts__val p:last-child { margin-bottom: 0; }



}


/* Свой кадр на каждую страницу транспорта.
   Кадры сгенерированы под регион: очередь фур на степном переходе, состав с
   контейнерами в предгорьях, грузовой борт на перроне, контейнерный терминал.
   Непрозрачность та же, что у общей шапки, — фон остаётся фоном. */
.modehead--avto::before { background-image: url(/assets/img/photos/bg-avto.webp); }
.modehead--jd::before   { background-image: url(/assets/img/photos/bg-jd.webp); }
.modehead--avia::before { background-image: url(/assets/img/photos/bg-avia.webp); }
.modehead--more::before { background-image: url(/assets/img/photos/bg-more.webp); }

/* ------------------------------------------------------- отслеживание груза */

.track { display: flex; gap: 10px; max-width: 560px; }
.track input {
  flex: 1; min-width: 0; padding: 13px 16px; font: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  text-transform: uppercase; letter-spacing: .06em;
}
.track input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(20, 71, 127, .12); }
.track__out { margin-top: 28px; }
.track__err { color: var(--accent-dark); font-weight: 600; }
.track__route { margin: 0 0 2px; font-size: 1.08rem; }
.track__big { margin: 0 0 10px; font-size: 1.55rem; font-weight: 700; line-height: 1.25; color: var(--brand-ink); }
.track__big--done { color: #1f7a3d; }
.track__alert {
  margin: 0 0 16px; padding: 12px 16px; border-left: 4px solid #e8a13a;
  background: #fdf6e7; border-radius: 0 var(--radius-s) var(--radius-s) 0;
}
.track__upd { margin: 0 0 4px; font-size: .84rem; color: var(--muted); }

/* Шкала: линия сквозь точки, пройденное — синим, текущий этап — оранжевым */
.tsteps { list-style: none; display: flex; margin: 24px 0 8px; padding: 0; }
.tsteps__i { flex: 1; position: relative; text-align: center; }
.tsteps__i::before {
  content: ""; position: absolute; top: 7px; left: -50%; right: 50%;
  height: 3px; background: var(--line);
}
.tsteps__i:first-child::before { display: none; }
.tsteps__dot {
  position: relative; z-index: 1; display: inline-block; width: 17px; height: 17px;
  border-radius: 50%; background: #fff; border: 3px solid var(--line);
}
.tsteps__i.is-done::before, .tsteps__i.is-now::before { background: var(--brand-2); }
.tsteps__i.is-done .tsteps__dot { border-color: var(--brand-2); background: var(--brand-2); }
.tsteps__i.is-now .tsteps__dot {
  border-color: var(--accent); background: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 97, 26, .18);
}
.tsteps__name { display: block; margin-top: 6px; padding: 0 3px; font-size: .78rem; line-height: 1.25; color: var(--muted); }
.tsteps__date { display: block; font-size: .72rem; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.tsteps__i.is-done .tsteps__name { color: var(--ink-2); }
.tsteps__i.is-now .tsteps__name { color: var(--brand-ink); font-weight: 700; }

.tlog { list-style: none; margin: 26px 0 0; padding: 0; max-width: 560px; }
.tlog li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tlog time { flex: none; padding-top: 1px; font-variant-numeric: tabular-nums; font-size: .92rem; color: var(--muted); }
.track__follow { margin-top: 26px; }
.track__follow small { display: inline-block; margin-top: 8px; color: var(--muted); }
.track__ask { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }

/* На телефоне семь подписей в строку не помещаются — шкала ложится столбиком */
@media (max-width: 640px) {
  .track { flex-direction: column; }
  .tsteps { display: block; }
  .tsteps__i { display: flex; align-items: center; gap: 12px; padding: 5px 0; text-align: left; }
  .tsteps__i::before { display: none; }
  .tsteps__dot { flex: none; }
  .tsteps__name { margin-top: 0; padding: 0; font-size: .95rem; }
}

/* ------------------------------------------------------------------ печать */
/* На бумагу нужен расчёт, а не сайт: шапка, подвал, форма ввода и плавающая
   кнопка чата на листе только мешают. Ссылки печатаем с адресом — распечатку
   передают дальше, и по ней должно быть понятно, откуда она. */
@media print {
  .hdr, .ft, .burger, .chat__fab, .messengers, .form, .calc > .field,
  .calc__grid, .calc__more, .calc button, .calc__cta, .js-share-hint,
  .calc__ac, .breadcrumbs, .skip, .sec--head::before { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .sec { padding: 0 !important; }
  .wrap, .wrap--narrow { max-width: none; padding: 0; }
  .calc__result { break-inside: avoid; }
  .datatable { box-shadow: none; border: 1px solid #999; }
  .datatable th { background: #eee !important; color: #000 !important; }
  .how { break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
