/* ТК ОРДА · UX-полировка v1 · 2026-11-24
   Подключается последним стилем на всех страницах выпуска.
   Только точечные исправления поверх выпуска reg-live-20261117, без смены дизайна. */

:root { --polish-ease-out: cubic-bezier(.23, 1, .32, 1); }

/* 1. Отклик кнопок на нажатие: короткое сжатие вместо сдвига на 1px */
:is(.button, .header-cta, a[data-ui-action], button[data-ui-action]) {
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  :is(.button, .header-cta, a[data-ui-action], button[data-ui-action]) {
    transition-property: background-color, border-color, color, box-shadow, transform;
    transition-duration: .16s;
    transition-timing-function: var(--polish-ease-out);
  }
  :is(.button, .header-cta, a[data-ui-action], button[data-ui-action]):active:not(:disabled):not([aria-disabled="true"]) {
    transform: scale(.97);
  }
}
:is(a, button, summary, label, input, select, textarea) { touch-action: manipulation; }

/* 2. Календарь: прошедшие дни и прошлые месяцы недоступны */
.quote-cal-day[aria-disabled="true"],
[data-month][aria-disabled="true"] {
  opacity: .32;
  pointer-events: none;
}

/* 3. Поле даты: без подчеркивания текста при наведении (2026-11-25: решение владельца;
   отклик — рамка поля, как у остальных полей, раздел 18.3) */
[data-quote-calendar]:hover span { text-decoration: none; }

/* 4. Крестик очистки в поиске города — фирменный вместо системного синего */
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  cursor: pointer;
  background-color: var(--text-muted, #486253);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 5l10 10M15 5L5 15' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 5l10 10M15 5L5 15' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* 5. Поле с ошибкой: без отдельного розового прямоугольника под текстом внутри рамки */
.ow-form .ow-field.is-invalid :is(input, textarea)[aria-invalid="true"] { background-color: transparent !important; }

/* 6. Форма на первом экране, телефон: высота по содержимому.
   Без пустого места на шаге «Маршрут» и без прокрутки внутри формы на шаге «Груз». */
@media (max-width: 760px) {
  body[data-hero-form-variant] #request.hero-form-rail .ow-form .ow-stage:not([hidden]) {
    height: auto;
    flex: none;
    overflow: visible;
  }
}

/* 7. Длинные тексты на ПК: строка 65–75 знаков вместо ~90 */
@media (min-width: 1024px) {
  .ip-prose { max-width: 44rem; }
}

/* 8. Подвал: подписи читаемым размером */
.orda-footer-bottom :is(small, a) { font-size: 13px; }

/* 9. Мелкие ссылки: зона нажатия 44px без сдвига вёрстки */
:is(.ip-breadcrumbs a, main a[href^="tel:"], main a[href^="mailto:"], .ip-contact a[data-carrier-partner],
    .ip-link, .proof-history, .company-story-link, .ip-cargo-limits > summary) {
  padding-block: 10px;
  margin-block: -10px;
}

/* ===================== Дизайн, v2 · 2026-11-24 ===================== */

/* 10. Внутренние страницы: тёмная обложка, крупный H1, фото наезжает на обложку */
body.inner-page .ip-hero {
  background: var(--brand-deep, #173726);
  color: var(--paper, #fff);
  padding-top: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(48px, 6vw, 88px);
}
body.inner-page .ip-hero h1,
body[data-design-system].inner-page .ip-hero h1[data-ui-type] {
  color: var(--paper, #fff);
  font-size: clamp(38px, 5.4vw, 76px) !important;
  line-height: 1.04 !important;
  text-wrap: balance;
  margin-top: clamp(24px, 4vw, 56px);
  hyphens: auto;
  overflow-wrap: break-word;
}
body.inner-page .ip-hero .ip-lead { color: var(--on-dark-muted, #e5f0e8); }
body.inner-page .ip-hero .ip-breadcrumbs,
body.inner-page .ip-hero .ip-breadcrumbs :is(a, span) { color: var(--on-dark-muted, #e5f0e8); }
body.inner-page .ip-hero .ip-breadcrumbs a { text-decoration-color: color-mix(in srgb, var(--on-dark-muted, #e5f0e8) 45%, transparent); }
body.inner-page .ip-hero .ip-breadcrumbs a:focus-visible { outline-color: var(--paper, #fff); }
body.inner-page .ip-hero > a[data-ui-action] { margin-top: 24px; }

@media (min-width: 1024px) {
  body.inner-page .ip-hero:has(> .ip-lead) {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 64px;
    align-items: end;
  }
  body.inner-page .ip-hero:has(> .ip-lead) > :not(h1, .ip-lead) { grid-column: 1 / -1; }
  body.inner-page .ip-hero:has(> .ip-lead) > .ip-lead {
    font-size: 20px;
    line-height: 1.5;
    margin: 0 0 .35em;
    max-width: 30em;
  }
}

/* первый раздел после обложки не прилипает к ней */
body.inner-page .ip-hero + .ip-section { padding-top: clamp(40px, 5vw, 72px); }

/* фото под обложкой: верхняя часть заходит на тёмный фон */
body.inner-page .ip-hero:has(+ .ip-photo) { padding-bottom: clamp(120px, 14vw, 200px); }
body.inner-page .ip-hero + .ip-photo { margin-top: clamp(-160px, -11vw, -88px); position: relative; }
body.inner-page .ip-hero + .ip-photo img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius-card, 6px);
}
@media (max-width: 767px) {
  body.inner-page .ip-hero + .ip-photo img { aspect-ratio: 4 / 3; }
}

/* 11. Разделы «заголовок + текст» на ПК: две колонки вместо пустой правой половины */
@media (min-width: 1024px) {
  body.inner-page .ip-section:has(> h2:first-child + .ip-prose:last-child) {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 64px;
    align-items: start;
  }
  body.inner-page .ip-section:has(> h2:first-child + .ip-prose:last-child) > h2 {
    margin: 0;
    font-size: clamp(32px, 2.6vw, 40px);
    line-height: 1.12;
    text-wrap: balance;
    position: sticky;
    top: calc(var(--header-height, 72px) + 24px);
  }
  body.inner-page .ip-section:has(> h2:first-child + .ip-prose:last-child) > .ip-prose > :first-child { margin-top: 0; }
}

/* 12. Финальный блок «Рассчитать доставку»: фото людей и фуры как визуальный магнит */
.ip-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.ip-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  background: url("assets/company-yard-document-check-v2.webp") 30% 40% / cover no-repeat;
}
.ip-cta::after {
  content: "";
  position: absolute;
  z-index: -1;
}
@media (min-width: 1024px) {
  .ip-cta {
    display: grid;
    grid-template-columns: minmax(0, 34rem);
    align-content: center;
    justify-items: start;
    row-gap: 32px;
    min-height: 420px;
  }
  .ip-cta h2 { font-size: clamp(36px, 3.2vw, 48px); line-height: 1.08; }
  .ip-cta::before { inset: 0 0 0 46%; }
  .ip-cta::after {
    inset: 0 0 0 46%;
    background: linear-gradient(90deg, var(--brand-deep, #173726) 0%, color-mix(in srgb, var(--brand-deep, #173726) 55%, transparent) 22%, transparent 48%);
  }
}
@media (max-width: 1023px) {
  .ip-cta { padding-top: 0 !important; flex-direction: column; align-items: stretch; }
  .ip-cta::before { position: relative; display: block; order: -1; z-index: 0; inset: auto; height: clamp(200px, 52vw, 320px); margin-inline: calc(-1 * var(--page-gutter, 16px)); margin-bottom: 8px; background-position: 30% 35%; }
  .ip-cta::after {
    inset: 0 0 auto 0;
    height: clamp(200px, 52vw, 320px);
    z-index: 0;
    background: linear-gradient(180deg, transparent 55%, var(--brand-deep, #173726) 100%);
  }
  .ip-cta > * { position: relative; z-index: 1; }
}

/* 13. Главная: цифры компании как графика */
.proof-band .proof-card > strong,
html body.presentation-ready .proof-band .proof-card > strong {
  font-size: clamp(44px, 4.6vw, 68px);
  line-height: 1;
  letter-spacing: 0;
  color: var(--brand-deep, #173726);
  font-variant-numeric: tabular-nums;
}

/* 14. Главная: плитки грузов — иконка крупнее и в фирменном цвете */
#cargo .cargo-tile-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--paper, #fff);
  color: var(--brand-accent, #276541);
}
#cargo .cargo-tile-icon svg { width: 32px; height: 32px; stroke-width: 1.4; }
@media (min-width: 1024px) {
  #cargo .cargo-tile-icon { width: 80px; height: 80px; }
  #cargo .cargo-tile-icon svg { width: 38px; height: 38px; }
}

/* 15. Наведение мышью: фото услуг слегка приближаются, плитки грузов темнеют */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .service-card .service-photo-image { transition: transform .7s var(--polish-ease-out); }
  .service-card:hover .service-photo-image { transform: scale(1.035); }
  .cargo-tile .cargo-face-front { transition: background-color .2s ease; }
  .cargo-tile:hover .cargo-face-front { background-color: var(--surface-raised, #e4eee4); }
}

/* 16. Телефон: фильтр услуг в одну строку с прокруткой */
@media (max-width: 760px) {
  #services .taskbar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  #services .taskbar::-webkit-scrollbar { display: none; }
  #services .taskbar > * { flex: none; scroll-snap-align: start; white-space: nowrap; }
}

/* 17. Телефон, первый экран: фото плавно выходит из тёмного фона, без резкой границы */
@media (max-width: 760px) {
  .hero .hero-media img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 160px);
    mask-image: linear-gradient(to bottom, transparent 0, #000 160px);
  }
}

/* ============================================================
   18. ФОРМЫ РАСЧЕТА — крупно и просто, в стиле сайта
   (первый экран, форма перед подвалом, всплывающее окно B11)
   Только внешний вид: разметка, отправка и проверки не менялись. Откат — удалить раздел 18.
   По дизайн-системе: скругление 6px, поля 68/76px, фокус — зеленая рамка без кольца.
   :not(#f) — усиление приоритета, чтобы перекрыть старые стили формы без !important.
   ============================================================ */

/* Размеры: меняются здесь */
html body :is(#request, #quote-details, #request-modal):not(#f) {
  --f-h: 68px;          /* высота поля */
  --f-btn: 64px;        /* высота кнопок внизу */
  --f-gap: 14px;        /* расстояние между полями */
  --f-value: 18px;      /* размер текста в поле */
}
@media (min-width: 761px) {
  html body #quote-details:not(#f) { --f-h: 76px; --f-btn: 76px; --f-gap: 16px; --f-value: 20px; }
  html body #request-modal:not([data-orda-mobile]):not(#f) { --f-btn: 64px; }
}

/* 18.1 Шаги: подписаны, крупные, полоска показывает, где вы */
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form :is(.ow-step-nav, .ow-popup-steps) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
  border: 0;
}
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form :is(.ow-step-nav, .ow-popup-steps) button {
  position: relative;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 52px;
  padding: 15px 0 4px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: color var(--ui-fast) ease;
}
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form :is(.ow-step-nav, .ow-popup-steps) button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  transition: background-color var(--ui-fast) ease;
}
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form :is(.ow-step-nav, .ow-popup-steps) button > span:first-child {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  margin: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form :is(.ow-step-nav, .ow-popup-steps) button[aria-current="step"] { color: var(--text-main); font-weight: 600; }
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form :is(.ow-step-nav, .ow-popup-steps) button.is-complete { color: var(--brand-accent); }
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form :is(.ow-step-nav, .ow-popup-steps) button:is([aria-current="step"], .is-complete)::before { background: var(--brand-accent); }
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form :is(.ow-step-nav, .ow-popup-steps) button:is([aria-current="step"], .is-complete) > span:first-child {
  background: var(--brand-accent);
  color: var(--on-dark);
}
/* пройденный шаг: галочка вместо цифры */
/* пройденный шаг: галочка вместо цифры. Иконка — фон самого кружка, поэтому стоит точно по центру
   (контур галочки в SVG тоже отцентрован: 6–18 по ширине, 8–16 по высоте) */
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form :is(.ow-step-nav, .ow-popup-steps) button.is-complete:not([aria-current="step"]) > span:first-child {
  font-size: 0;
  color: transparent;
  background: var(--brand-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.2l3.6 3.6 7.4-7.6'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
@media (hover: hover) {
  html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form :is(.ow-step-nav, .ow-popup-steps) button:not([aria-current="step"]):hover { color: var(--brand-accent); }
}
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form :is(.ow-step-nav, .ow-popup-steps) button:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
  border-radius: 2px;
}

/* телефон: шаги чуть компактнее, чтобы три подписи не слипались */
@media (max-width: 760px) {
  html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form :is(.ow-step-nav, .ow-popup-steps) { gap: 8px; margin-bottom: 20px; }
  html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form :is(.ow-step-nav, .ow-popup-steps) button { gap: 6px; font-size: 14px; }
  html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form :is(.ow-step-nav, .ow-popup-steps) button > span:first-child { flex-basis: 22px; width: 22px; height: 22px; font-size: 12px; }
}

/* 18.2 Вопрос шага — заголовок карточки */
/* на первом экране вопрос виден; в других формах он скрыт для экранных дикторов — его не трогаем.
   !important — старые размеры заданы с !important */
html body[data-hero-form-variant] #request.hero-form-rail:not(#f) .ow-form:not(.is-subpage) .ow-stage > h2 {
  margin: 0 0 18px !important;
  color: var(--text-main);
  font-size: 22px !important;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-stage > .ow-hint:not(:empty) {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.45;
}
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-inputs { gap: var(--f-gap); }

/* 18.3 Поля: белые, четкая рамка, крупный текст */
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form :is(.ow-city-field, .ow-date-field, label.ow-field:not(.ow-cargo), .ow-select > button) {
  box-sizing: border-box;
  min-height: var(--f-h);
  height: auto;
}
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form :is(.ow-city-field, .ow-date-field, label.ow-field, .ow-select > button) {
  border: 1px solid var(--line-control);
  border-radius: var(--radius-control);
  background-color: var(--paper);
  transition: border-color var(--ui-fast) ease, box-shadow var(--ui-fast) ease, background-color var(--ui-fast) ease;
}
@media (hover: hover) {
  /* 2026-11-25: наведение заметнее — зеленая рамка и легкий зеленый фон (фокус — рамка 2px, без фона) */
  html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form :is(.ow-city-field, .ow-date-field, label.ow-field, .ow-select > button):hover { border-color: var(--brand-hover); }
  html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form :is(.ow-city-field, .ow-date-field, label.ow-field:not(.ow-cargo), .ow-select > button):hover:not(:focus-within, :focus-visible, [aria-expanded="true"]) { background-color: color-mix(in srgb, var(--surface) 55%, var(--paper)); }
}
/* фокус: зеленая рамка 2px, без внешнего кольца (правило дизайн-системы) */
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form :is(.ow-city-field, label.ow-field):focus-within,
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form :is(.ow-date-field, .ow-select > button):is(:focus-visible, [aria-expanded="true"]) {
  border-color: var(--brand-accent);
  box-shadow: inset 0 0 0 1px var(--brand-accent) !important; /* старое правило задает тень с !important */
  outline: none;
}
/* подпись над значением */
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-city-field > label,
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-date-field > small,
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form label.ow-field > span,
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-service-label,
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .omc-city-caption {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
}
/* значение */
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form :is(.ow-city-field input, label.ow-field input, label.ow-field textarea),
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-date-field > span,
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-service-display > span:last-child,
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .omc-city-value {
  color: var(--text-main);
  font-size: var(--f-value);
  font-weight: 400;
  line-height: 1.3;
}
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form :is(input, textarea)::placeholder {
  color: var(--text-muted);
  font-size: var(--f-value);
  opacity: .75;
}
/* телефон: город выбирается кнопкой во все поле — пусть берет цвет поля */
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-city-field > .omc-city-field { min-height: var(--f-h); border-radius: inherit; background: transparent; }

/* 18.4 «Кузов», «Параметры груза», «Дополнительные сведения» — как поля, вся строка нажимается */
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form :is(.ow-vehicle, .ow-cargo-option)::before { display: none; }
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-cargo-option {
  box-sizing: border-box;
  min-height: var(--f-h);
  padding: 12px 16px;
  border: 1px solid var(--line-control);
  border-radius: var(--radius-control);
  background: var(--paper);
  transition: border-color var(--ui-fast) ease, background-color var(--ui-fast) ease;
}
@media (hover: hover) {
  html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-cargo-option:hover { border-color: var(--field-hover); background: var(--field-background); }
}
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-cargo-option[aria-expanded="true"] { border-color: var(--brand-accent); }
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-cargo-option strong { color: var(--text-main); font-size: 17px; font-weight: 500; }
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-cargo-option small { color: var(--text-muted); font-size: 14px; }
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-cargo-option-action { color: var(--brand-accent); font-weight: 500; }
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-cargo-option:focus-visible { outline: 2px solid var(--focus-color); outline-offset: 2px; }

/* 18.5 Кузов: все варианты сразу видны чипсами, выбор в одно нажатие.
   Кнопка-раскрывашка «Кузов» скрыта, список показан всегда (JS по-прежнему ставит ему hidden — перекрываем) */
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-vehicle > [data-cargo-vehicle-toggle] { display: none !important; }
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-vehicle-picker,
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-vehicle-picker[hidden] {
  display: block !important;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-vehicle-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  overflow: visible;
}
/* подпись группы — как подписи в полях */
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-vehicle-choices::before {
  content: "Кузов";
  flex: 0 0 100%;
  margin-bottom: 2px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.25;
}
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-vehicle-choice {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--line-control);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--text-main);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  width: auto;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
  transition: border-color var(--ui-fast) ease, background-color var(--ui-fast) ease, color var(--ui-fast) ease;
}
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-vehicle-choice::after { display: none; } /* кружок-радиокнопка не нужен: выбранный чипс залит */
@media (hover: hover) {
  html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-vehicle-choice:not([aria-checked="true"]):hover { border-color: var(--brand-accent); color: var(--brand-accent); }
}
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-vehicle-choice[aria-checked="true"] {
  border-color: var(--brand-accent);
  background: var(--brand-accent);
  color: var(--on-dark);
  font-weight: 500;
  box-shadow: none;
}
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-vehicle-choice:focus-visible { outline: 2px solid var(--focus-color); outline-offset: 2px; }
/* объем «92 м³» внутри чипса — того же цвета, что и название, чуть светлее */
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-vehicle-choice-label * { color: inherit; opacity: .72; }
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-vehicle { display: block; margin-top: 0; grid-column: 1 / -1; }
/* шаг «Груз»: порядок как в разметке — описание, услуга, кузов, параметры (старые стили задавали ряды вручную) */
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form [data-cargo-step] .ow-inputs > * { grid-row: auto; }
/* в широких формах «Параметры груза» тоже во всю ширину — под кузовом, а не сбоку */
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-inputs > .ow-cargo-option { grid-column: 1 / -1; }

/* 18.5а Города на ПК: нажимается все поле, а не только строка текста.
   Поле ввода растянуто на всю рамку, подпись лежит поверх и не мешает нажатию */
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-city-field:not(:has(> .omc-city-field:not([hidden]))) {
  position: relative;
  display: block;
  padding: 0;
}
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-city-field:not(:has(> .omc-city-field:not([hidden]))) > label {
  position: absolute !important; /* подпись помечена sr-only, старые правила задают ей место с !important */
  z-index: 1;
  inset: 12px 56px auto 16px !important;
  width: auto !important;
  height: auto !important;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
}
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-city-field:not(:has(> .omc-city-field:not([hidden]))) > input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: calc(var(--f-h) - 2px);
  margin: 0;
  padding: 26px 56px 0 16px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: text;
}
/* крестик «очистить» и стрелка — ровно по центру по высоте, крестик 44×44 */
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-city-field .quote-city-clear {
  top: calc(50% - 22px);
  right: 6px;
  z-index: 2;
  transform: none;
}
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-city-field::after,
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-city-field > .omc-city-field::after {
  top: calc(50% - 6px);
  pointer-events: none;
}
/* подсказки городов: строки по 44px, видно наведение */
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-city-list [role="option"] {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 16px;
  cursor: pointer;
}
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-city-list [role="option"]:is(:hover, [aria-selected="true"], .is-active) {
  background: var(--surface);
  color: var(--brand-deep);
}

/* 18.6 Маршрут на шаге «Контакты» */
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .quote-route-check:not([hidden]) { border-radius: var(--radius-control); }

/* 18.7 Ошибки: рамка и понятный текст под полем */
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .is-invalid:is(.ow-city-field, label.ow-field) {
  border-color: var(--status-error-border);
  background-color: var(--status-error-surface);
}
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .is-invalid:is(.ow-city-field, label.ow-field):focus-within {
  border-color: var(--status-error);
  box-shadow: inset 0 0 0 1px var(--status-error) !important;
}
/* текст ошибки — под полем, а не внутри рамки: рамка и розовый фон остаются только у самого поля */
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form :is(.ow-city-field, label.ow-field) { position: relative; }
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form :is(.ow-city-field, label.ow-field).is-invalid { margin-bottom: 34px; }
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form :is(.ow-city-field, label.ow-field) > .ow-error:not(:empty) {
  position: absolute;
  top: calc(100% + 5px);
  left: 2px;
  right: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--status-error);
  font-size: 14px;
  line-height: 1.3;
}
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-error:not(:empty) { color: var(--status-error); font-size: 14px; }
/* первый экран: раньше ошибки полей были скрыты и одна подсказка показывалась у кнопки.
   Теперь ошибка видна под своим полем; общая строка у кнопки прячется, пока есть ошибки в полях
   (сообщения сервера она показывает по-прежнему). !important — скрытие задано с !important */
html body #request.hero-form-rail:not(#f) .ow-form :is(.ow-city-field, label.ow-field) > .ow-error:not(:empty) {
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
}
html body #request.hero-form-rail:not(#f) .ow-form:has(.is-invalid) .hero-form-feedback { display: none; }

/* 18.8 Кнопки внизу: большие, «Назад» — такой же высоты */
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-footer { align-items: center; gap: 12px; }
html body :is(#request, #quote-details):not(#f) .ow-form .ow-footer { border-top: 0; }
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-footer .ow-next {
  min-height: var(--f-btn) !important; /* старые 48px заданы с !important */
  border-radius: var(--radius-control);
  font-size: 17px !important;
}
html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-footer .ow-back:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--f-btn);
  padding: 0 22px;
  border: 1px solid var(--line-control);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--text-main);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none !important; /* старое пунктирное подчеркивание задано с !important */
}
@media (hover: hover) {
  html body :is(#request, #quote-details, #request-modal):not(#f) .ow-form .ow-footer .ow-back:hover { border-color: var(--brand-accent); color: var(--brand-accent); }
}
/* пустая строка для сообщений не занимает место */
html body[data-hero-form-variant] #request.hero-form-rail:not(#f) .ow-footer .hero-form-feedback:empty { height: 0; padding: 0; }

/* 18.9 Первый экран, ПК: карточка шире и просторнее, высота по содержимому.
   Если шаг не помещается в первый экран — прокрутка внутри карточки, а не наезд на следующий блок */
@media (min-width: 761px) {
  html body[data-hero-form-variant] #request.hero-form-rail:not(#f) { width: clamp(390px, 31vw, 560px); }
  html body[data-hero-form-variant] #request.hero-form-rail:not(#f) .ow-inline-shell {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: 100%;
    min-height: 0;
    padding: 32px;
    border-radius: var(--radius-card);
    box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--brand-deep) 80%, transparent);
  }
  html body[data-hero-form-variant] #request.hero-form-rail:not(#f) .hero-quote-title { margin-bottom: 16px; }
  /* компактнее по вертикали, чтобы шаг «Груз» помещался в первый экран без прокрутки внутри карточки */
  html body[data-hero-form-variant] #request.hero-form-rail:not(#f) .ow-form .ow-step-nav { margin-bottom: 18px; }
  html body[data-hero-form-variant] #request.hero-form-rail:not(#f) .ow-form .ow-stage > .ow-hint { margin: 0; }
  html body[data-hero-form-variant] #request.hero-form-rail:not(#f) .ow-form .ow-field.ow-cargo { min-height: 92px; }
  html body[data-hero-form-variant] #request.hero-form-rail:not(#f) .ow-form .ow-field.ow-cargo textarea { min-height: 48px; }
  html body[data-hero-form-variant] #request.hero-form-rail:not(#f) .ow-form { flex: 0 1 auto; height: auto; min-height: 0; }
  html body[data-hero-form-variant] #request.hero-form-rail:not(#f) .ow-form .ow-stage:not([hidden]) {
    flex: 0 1 auto;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
    overscroll-behavior: contain;
  }
  html body[data-hero-form-variant] #request.hero-form-rail:not(#f) .ow-form .ow-footer { margin-top: 22px; padding-top: 0; }
}

/* 18.10 Форма перед подвалом, ПК: больше воздуха внутри панели */
@media (min-width: 761px) {
  html body #quote-details:not(#f) .ow-inline-shell { padding: 40px; border-radius: var(--radius-card); }
  html body #quote-details:not(#f) .ow-form .ow-footer { margin-top: 24px; }
  html body #quote-details:not(#f) .ow-form .ow-footer .ow-next { min-width: 300px; }
}

/* 18.11 Всплывающее окно, ПК: высота по содержимому, просторные поля.
   !important — прежняя фиксированная высота 640px задана с !important */
html body #request-modal.ow-dialog[open][data-desktop-wizard]:not([data-orda-mobile]):not(#f) { height: auto !important; }
html body #request-modal[open]:not([data-orda-mobile]):not(#f) .ow-popup-steps { padding-top: 16px; margin-bottom: 0; }
html body #request-modal[open]:not([data-orda-mobile]):not(#f) .ow-form .ow-stage:not([hidden]) { min-height: 0; padding: 28px 40px 32px; }
html body #request-modal[open]:not([data-orda-mobile]):not(#f) .ow-form .ow-footer {
  padding: 16px 40px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

/* 18.12б ПК, окно расчета: список городов может выходить за нижний край окна (до края экрана).
   Содержимое шага по-прежнему обрезает и прокручивает сама форма */
html body #request-modal[open][data-desktop-wizard]:not([data-orda-mobile]):not(#f) { overflow: visible; }

/* 18.12в ПК, окно расчета: единая сетка 40 px слева и справа, одинаковые поля.
   !important — старые правила окна задают эти размеры с !important */
@media (min-width: 761px) {
  html body #request-modal[open]:not([data-orda-mobile]):not(#f) {
    --m-side: 40px;
  }
  /* шапка: заголовок с того же края, что и поля; крестик на таком же расстоянии справа и по центру строки */
  html body #request-modal[open]:not([data-orda-mobile]):not(#f) .ow-topline {
    min-height: 72px;
    padding: 0 76px 0 var(--m-side) !important;
    align-items: center;
  }
  html body #request-modal[open]:not([data-orda-mobile]):not(#f) .ow-dialog-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
  }
  html body #request-modal[open]:not([data-orda-mobile]):not(#f) > .ow-close {
    top: 14px !important;
    right: calc(var(--m-side) - 12px) !important;
  }
  html body #request-modal[open]:not([data-orda-mobile]):not(#f) .ow-popup-steps {
    margin: 0 var(--m-side) !important;
    padding: 4px 0 0 !important;
  }
  html body #request-modal[open]:not([data-orda-mobile]):not(#f) .ow-form .ow-stage:not([hidden]) {
    padding: 28px var(--m-side) 36px !important;
  }
  html body #request-modal[open]:not([data-orda-mobile]):not(#f) .ow-form .ow-stage > h2 {
    margin: 0 0 20px !important;
    font-size: 24px !important;
    line-height: 1.25 !important;
  }
  html body #request-modal[open]:not([data-orda-mobile]):not(#f) .ow-form .ow-stage > .ow-hint:not(:empty) {
    margin: -12px 0 20px !important;
  }
  html body #request-modal[open]:not([data-orda-mobile]):not(#f) .ow-form .ow-footer {
    padding: 16px var(--m-side) !important;
  }
  /* поля городов той же высоты, что и поле даты; текст не заходит под иконку справа */
  html body #request-modal[open]:not([data-orda-mobile]):not(#f) .ow-form .ow-city-field {
    height: var(--f-h) !important;
    min-height: var(--f-h) !important;
    padding: 0 !important;
  }
  html body #request-modal[open]:not([data-orda-mobile]):not(#f) .ow-form .ow-city-field > input {
    height: calc(var(--f-h) - 2px) !important;
    padding: 26px 52px 0 16px !important;
  }
  /* дата — ровно в одну колонку сетки, подпись и значение на том же отступе, что у городов */
  html body #request-modal[open]:not([data-orda-mobile]):not(#f) .ow-form .ow-date-field {
    grid-column: 1 / 2 !important;
    width: 100% !important;
    max-width: none !important;
    height: var(--f-h) !important;
    padding: 0 16px !important;
  }
}

/* 18.12а Телефон: окно расчета во весь экран (размер считает mobile-form-layout-v1.js по видимой области) */
html body #request-modal[data-orda-mobile][open]:not(#f) {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
html body #request-modal[data-orda-mobile]:not(#f) .ow-footer { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
html body #request-modal[data-orda-mobile]:not(#f) .ow-topline { padding-top: env(safe-area-inset-top, 0px); }

/* 18.12 Телефон, всплывающее окно: шаги не прилипают к шапке */
html body #request-modal[data-orda-mobile]:not(#f) .ow-popup-steps { padding-top: 12px; margin-bottom: 16px; }

/* ============================================================
   19. Телефон: нижняя панель быстрых действий (mobile-action-bar-v1.js)
   «Рассчитать доставку» + звонок + Telegram + MAX. Только до 760 px.
   ============================================================ */
.orda-mbar { display: none; }
@media (max-width: 760px) {
  .orda-mbar {
    position: fixed;
    z-index: 900; /* под шапкой (1000) и окнами */
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 -10px 30px -18px color-mix(in srgb, var(--brand-deep) 55%, transparent);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform var(--ui-enter) var(--polish-ease-out), visibility 0s linear var(--ui-enter);
  }
  .orda-mbar.is-shown {
    transform: none;
    visibility: visible;
    transition: transform var(--ui-enter) var(--polish-ease-out), visibility 0s;
  }
  /* не мешает, когда открыто окно расчета, шторка выбора, календарь или клавиатура */
  html:has(dialog[open]) .orda-mbar.is-shown,
  html:has(:popover-open) .orda-mbar.is-shown,
  html:has(input:focus, textarea:focus, select:focus) .orda-mbar.is-shown {
    transform: translateY(110%);
    visibility: hidden;
  }
  .orda-mbar-cta {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 52px;
    padding: 0 12px;
    border-radius: var(--radius-control);
    background: var(--action-bg);
    color: var(--on-dark);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
  }
  .orda-mbar-cta:active { background: var(--action-active); }
  .orda-mbar-cta { white-space: nowrap; }
  .orda-mbar-more { margin-left: .28em; } /* внутри flex пробел перед словом схлопывается */
  @media (max-width: 399px) { .orda-mbar-more { display: none; } } /* узкий экран: «Рассчитать», как в шапке */
  .orda-mbar-icon {
    display: grid;
    flex: 0 0 52px;
    place-items: center;
    width: 52px;
    min-height: 52px;
    border: 1px solid var(--line-control);
    border-radius: var(--radius-control);
    background: var(--paper);
    color: var(--brand-deep);
    text-decoration: none;
  }
  .orda-mbar-icon:active { background: var(--surface); }
  .orda-mbar-icon img { display: block; width: 26px; height: 26px; }
  .orda-mbar :is(.orda-mbar-cta, .orda-mbar-icon):focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
  }
  /* место под панелью внизу страницы, чтобы она не закрывала подвал */
  html.has-orda-mbar body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  /* круглый консультант на главной: его каналы теперь в панели, два элемента в углу перекрывали бы друг друга */
  html.has-orda-mbar .orda-consult { display: none; }
}

/* ============================================================
   20. Телефон, «Что нужно перевезти?»: видно край следующей карточки + подсказка-палец
   ============================================================ */
@media (max-width: 760px) {
  /* следующая карточка выглядывает на 72 px вместо 24 — сразу понятно, что ряд листается */
  #cargo { --cargo-mobile-peek: 72px; }
  #cargo .cargo-mosaic-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
  }
  #cargo .cargo-mosaic-heading::after {
    content: "";
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin-bottom: 4px;
    background-color: var(--brand-accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 14a8 8 0 0 1-8 8'/%3E%3Cpath d='M18 11v-1a2 2 0 0 0-4 0'/%3E%3Cpath d='M14 10V9a2 2 0 0 0-4 0v1'/%3E%3Cpath d='M10 9.5V4a2 2 0 0 0-4 0v10'/%3E%3Cpath d='M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 14a8 8 0 0 1-8 8'/%3E%3Cpath d='M18 11v-1a2 2 0 0 0-4 0'/%3E%3Cpath d='M14 10V9a2 2 0 0 0-4 0v1'/%3E%3Cpath d='M10 9.5V4a2 2 0 0 0-4 0v10'/%3E%3Cpath d='M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: orda-swipe-hint 1.8s ease-in-out infinite;
    transition: opacity var(--ui-enter) ease;
  }
  /* пролистали — подсказка больше не нужна (класс ставит cargo-cards-v5.js) */
  #cargo.is-swiped .cargo-mosaic-heading::after { opacity: 0; animation: none; }
}
@keyframes orda-swipe-hint {
  0%, 100% { transform: translateX(6px) rotate(0deg); }
  50% { transform: translateX(-14px) rotate(-8deg); }
}
@media (prefers-reduced-motion: reduce) {
  #cargo .cargo-mosaic-heading::after { animation: none; }
}

/* ============================================================
   21. Вакансии и страницы водителей — в общей сетке сайта и с той же тёмной обложкой,
   что у остальных внутренних страниц (раньше: белая шапка, H1 54 px, колонка по центру)
   ============================================================ */
body.inner-page main > .driver-vacancy {
  box-sizing: border-box;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 var(--gutter) clamp(48px, 6vw, 96px) !important;
}
/* текст — читаемой колонкой до 820 px, от той же левой линии, что логотип и заголовки */
body.inner-page main > .driver-vacancy > :not(.driver-trail, .driver-intro) { max-width: 820px; }
body.inner-page main > .driver-vacancy > .driver-intro > :not(h1, .driver-pay, .driver-employer) { max-width: 820px; }

/* тёмная обложка во всю ширину: крошки + заголовок (+ зарплата и работодатель у вакансии) */
body.inner-page .driver-vacancy > .driver-trail,
body.inner-page .driver-vacancy:not(.vacancy-directory) > .driver-intro,
body.inner-page .driver-vacancy.vacancy-directory > .driver-intro > h1 {
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  background: var(--brand-deep);
  color: var(--paper);
}
body.inner-page .driver-vacancy > .driver-trail {
  margin-top: 0;
  padding-top: clamp(32px, 5vw, 64px);
  color: var(--on-dark-muted);
}
body.inner-page .driver-vacancy > .driver-trail :is(a, span) { color: var(--on-dark-muted); }
body.inner-page .driver-vacancy > .driver-intro {
  border-bottom: 0;
  padding-bottom: 0;
}
body.inner-page .driver-vacancy:not(.vacancy-directory) > .driver-intro {
  padding-bottom: clamp(48px, 6vw, 88px);
}
body.inner-page .driver-vacancy .driver-intro h1 {
  margin-top: 0;
  padding-top: clamp(24px, 4vw, 56px);
  color: var(--paper) !important;
  font-size: clamp(38px, 5.4vw, 76px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
body.inner-page .driver-vacancy.vacancy-directory > .driver-intro > h1 {
  padding-bottom: clamp(48px, 6vw, 88px);
  margin-bottom: clamp(32px, 4vw, 56px);
}
body.inner-page .driver-vacancy:not(.vacancy-directory) .driver-intro .driver-pay {
  margin-top: 20px;
  color: var(--paper);
  font-size: clamp(22px, 2vw, 28px);
}
body.inner-page .driver-vacancy .driver-intro .driver-pay * { color: inherit; }
body.inner-page .driver-vacancy:not(.vacancy-directory) .driver-intro .driver-employer,
body.inner-page .driver-vacancy:not(.vacancy-directory) .driver-intro .driver-employer * { color: var(--on-dark-muted); }
/* первый блок после обложки не прилипает к ней */
body.inner-page .driver-vacancy:not(.vacancy-directory) > .driver-intro + * { margin-top: clamp(40px, 5vw, 72px); }

/* ============================================================
   22. Телефон: всё, что нажимают пальцем, — не меньше 44 px по высоте
   (найдено проверкой: ссылки подвала 16 px, «хлебные крошки» 32 px, текстовые кнопки 36 px)
   ============================================================ */
@media (max-width: 760px) {
  .orda-footer-nav ul { gap: 0 !important; row-gap: 0 !important; }
  .orda-footer-nav li { margin: 0; }
  .orda-footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  :is(.ip-breadcrumbs, .driver-trail) a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 0;
    margin-block: -6px;
  }
  html body main a.link:not(p a, li a):not(#f),
  html body footer a:not(:has(img, svg)) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  /* заголовки новостей в списке: вся строка заголовка — зона нажатия */
  html body main :is(h2, h3) > a { display: inline-block; padding-block: 6px; }
}
/* 21а. крошки и обложка — один сплошной тёмный блок, без белой полосы между ними */
body.inner-page .driver-vacancy > .driver-trail { margin-bottom: 0 !important; }
body.inner-page .driver-vacancy > .driver-intro { margin-top: 0 !important; }
/* 21б. список вакансий: текст пунктов на той же левой линии, что и абзацы под ним */
body.inner-page .vacancy-choices a { padding-inline: 0 !important; }

/* ============================================================
   23. Главная, вычитка по блокам
   ============================================================ */
/* 23.1 «Берем на себя контроль рейса»: заголовки карточек в ряду на одной линии.
   Раньше текст прижимался к низу, и короткий заголовок оказывался ниже длинного */
#company .company-care-card .company-care-copy {
  justify-content: flex-start !important;
  margin-top: clamp(32px, 3vw, 48px) !important;
  flex: 0 0 auto;
}
@media (max-width: 760px) {
  #company .company-care-card .company-care-copy { margin-top: 20px !important; }
  #company .company-care-card { min-height: 0 !important; gap: 0 !important; row-gap: 0 !important; }
  #company .company-care-card .company-care-icon { margin-bottom: 0 !important; }
}
/* 23.2 «Этапы доставки» на телефоне: карточка шага по содержимому, без пустоты над заголовком
   (на ПК высота нужна для прокрутки-истории со сценой слева — там без изменений) */
@media (max-width: 760px) {
  #process .story-steps > article {
    min-height: 0 !important;
    justify-content: flex-start !important;
  }
  #process .story-steps > article .step-visual { margin-bottom: 0 !important; }
  #process .story-steps > article .step-copy { margin-top: 20px; }
}

/* ============================================================
   24. ОТКЛИК НА ДЕЙСТВИЯ (2026-11-25): у всего нажимаемого есть реакция —
   наведение мышью, нажатие пальцем, фокус с клавиатуры (обводка — в выпуске).
   Появление блоков при прокрутке на внутренних страницах — page-motion-v1.js.
   ============================================================ */

/* 24.1 Смена цвета у ссылок и кнопок плавная, а не рывком.
   :where() — нулевой вес: где у элемента уже своя анимация, остается она */
@media (prefers-reduced-motion: no-preference) {
  :where(a, button, summary, [role="button"]) {
    transition: color .18s ease, background-color .18s ease, border-color .18s ease,
                text-decoration-color .18s ease, opacity .18s ease, box-shadow .18s ease;
  }
  #questions .faq-list summary { transition: color .18s ease !important; }
}

@media (hover: hover) and (pointer: fine) {
  /* 24.2 Логотип в шапке и подвале */
  :is(.ogh-brand, .orda-footer-logo):hover { opacity: .78; }

  /* 24.3 Телефон в шапке */
  .orda-global-header a[href^="tel:"]:hover { color: var(--ogh-hover, var(--brand-accent)); }

  /* 24.4 Хлебные крошки: на темной обложке — белеют, на светлом фоне — зеленеют */
  .ip-breadcrumbs a:hover,
  .driver-trail a:hover { color: var(--brand-accent); text-decoration-color: currentColor; }
  body.inner-page .ip-hero .ip-breadcrumbs a:hover { color: var(--paper, #fff); }

  /* 24.5 Ссылки внутри текста: подчеркивание темнеет и становится жирнее */
  :is(.ip-prose, .ip-section, .driver-vacancy, .vacancy-directory-contact) a:not([class]):hover {
    color: var(--brand-hover);
    text-decoration-thickness: 2px;
  }

  /* 24.6 Вопросы-ответы: строка вопроса зеленеет, плюс крупнее */
  .ip-details summary:hover { color: var(--brand-accent); }
  :is(.ip-details, #questions .faq-list details) summary:hover::after { transform: scale(1.25); }

  /* 24.7 Стрелки карты географии */
  #geography .map-pan button:not(:disabled):hover { color: var(--brand-accent); border-bottom-color: var(--brand-accent); }

  /* 24.8 Карточки документов: кроме рамки — легкий подъем */
  .ip-document:hover { box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--brand-deep) 45%, transparent); }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  /* 24.9 Стрелка «→» в ссылках «Все услуги», «История компании», «Подробнее» убегает вправо */
  :is(.ogh-all-services, .proof-history, .company-story-link) span[aria-hidden="true"] {
    display: inline-block;
    transition: transform .25s var(--polish-ease-out);
  }
  :is(.ogh-all-services, .proof-history, .company-story-link):hover span[aria-hidden="true"] { transform: translateX(4px); }

  html body .ip-document { transition: border-color .2s ease, box-shadow .25s ease, transform .25s var(--polish-ease-out); }
  .ip-document:hover { transform: translateY(-2px); }
}

/* 24.10 Плюс у вопроса плавно поворачивается в минус при открытии */
@media (prefers-reduced-motion: no-preference) {
  :is(.ip-details, #questions .faq-list details) summary::after {
    display: inline-block;
    transition: transform .2s var(--polish-ease-out), color .18s ease;
  }
  :is(.ip-details, #questions .faq-list details)[open] summary::after { animation: orda-marker-turn .28s var(--polish-ease-out); }
}
@keyframes orda-marker-turn { from { transform: rotate(-90deg); } to { transform: rotate(0); } }

/* 24.11 Телефон: отклик на касание. Кнопки уже сжимаются (раздел 1);
   ссылки, вопросы и карточки на мгновение бледнеют, как в приложениях */
@media (hover: none) {
  :is(a, summary, [role="button"], button):not(.button, .header-cta, [data-ui-action], .orda-mbar-cta, .orda-mbar-icon, .btn):active {
    opacity: .62;
    transition-duration: 0s;
  }
  :is(.service-card, .cargo-tile, .orda-task-card, .ip-document, .work-choice):active { opacity: 1; }
  @media (prefers-reduced-motion: no-preference) {
    :is(.service-card, .ip-document, .work-choice) { transition: transform .16s var(--polish-ease-out); }
    :is(.service-card, .ip-document, .work-choice):active { transform: scale(.985); }
    .btn:active:not(:disabled) { transform: scale(.97); }
  }
}

/* 24.12 Первый экран внутренних страниц: крошки, заголовок и подзаголовок выезжают при открытии.
   Анимация CSS, поэтому видна сразу при загрузке (скрипт появлений не трогает то, что уже на экране) */
@media (prefers-reduced-motion: no-preference) {
  body.inner-page :is(.ip-hero, .driver-intro) > * {
    animation: orda-hero-in .85s cubic-bezier(.16, 1, .3, 1) both;
  }
  body.inner-page :is(.ip-hero, .driver-intro) > :nth-child(2) { animation-delay: .1s; }
  body.inner-page :is(.ip-hero, .driver-intro) > :nth-child(3) { animation-delay: .22s; }
  body.inner-page :is(.ip-hero, .driver-intro) > :nth-child(n+4) { animation-delay: .32s; }
  body.inner-page .ip-photo > img { animation: orda-photo-in 1.1s cubic-bezier(.16, 1, .3, 1) .2s both; }
}
@keyframes orda-hero-in { from { opacity: 0; translate: 0 36px; } }
@keyframes orda-photo-in { from { opacity: 0; scale: 1.06; } }

/* 24.13 Поля остальных форм (анкета водителя и др.): рамка зеленеет при наведении */
@media (hover: hover) and (pointer: fine) {
  body[data-design-system] :is(input:not([type=checkbox], [type=radio], [type=range], [type=hidden]), textarea, select):hover:not(:focus, :disabled) {
    border-color: var(--brand-hover);
  }
}

/* 19.5 Телефон: пока внизу видна панель с «Рассчитать доставку», такая же кнопка в шапке прячется */
@media (max-width: 760px) {
  .orda-global-header .ogh-cta { transition: opacity .2s ease, visibility .2s, translate .25s var(--polish-ease-out); }
  html.orda-mbar-on .orda-global-header .ogh-cta {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    translate: 0 -6px;
  }
}

/* 19.6 Телефон: плашка cookie поднимается над нижней панелью, иначе панель закрывает ее кнопки
   («Принять», «Только необходимые») и согласие на аналитику с телефона дать нельзя. 85 px = панель 73 + отступ 12 */
@media (max-width: 760px) {
  .omc-panel { transition: bottom var(--ui-enter) var(--polish-ease-out); }
  html.orda-mbar-on .omc-panel { bottom: calc(85px + env(safe-area-inset-bottom, 0px)); }
}

/* 25. Карточка «Новое направление: Москва — Красноярск» на первом экране главной (27.11.2026).
   Небольшая светлая карточка под подзаголовком; вся карточка — кнопка, открывает окно короткой заявки (25.1).
   Убрать: удалить button.route-note из index.html. */
.hero .route-note{
  display:grid;justify-items:start;gap:8px;width:min(100%,460px);margin:clamp(24px,3vw,36px) 0 0;padding:20px 22px;
  border:1px solid color-mix(in srgb,var(--ds-inverse-ink) 70%,transparent);border-radius:8px;
  background:color-mix(in srgb,var(--ds-inverse-ink) 90%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  font:inherit;text-align:left;color:var(--ink);cursor:pointer;
  box-shadow:0 12px 32px color-mix(in srgb,var(--brand-deep) 28%,transparent);
  transition:transform .25s ease,box-shadow .25s ease,background-color .25s ease;
}
.hero .route-note:hover{transform:translateY(-2px);background:var(--ds-inverse-ink);box-shadow:0 16px 40px color-mix(in srgb,var(--brand-deep) 34%,transparent)}
.hero .route-note:focus-visible{outline:2px solid var(--ds-focus-inverse);outline-offset:3px}
.rn-tag{padding:6px 10px;border-radius:4px;background:var(--surface);color:var(--brand-accent);font-size:12px;line-height:1;font-weight:700;
  letter-spacing:.06em;text-transform:uppercase}
.rn-title{margin-top:4px;font-size:clamp(19px,1.6vw,22px);line-height:1.3;font-weight:600;letter-spacing:-.01em}
.rn-arrow{margin:0 .3em;color:var(--brand-accent)}
.rn-note{font-size:15px;line-height:1.35;color:var(--text-muted,var(--ink));opacity:.8}
.rn-link{display:inline-flex;align-items:center;gap:8px;margin-top:6px;font-size:17px;font-weight:600;color:var(--brand-accent)}
.rn-link span{transition:transform .2s ease}
.hero .route-note:hover .rn-link span{transform:translateX(4px)}
@media (min-width:761px) and (max-width:1279px){.hero .route-note{width:min(100%,calc(100vw - 524px))}}
@media (max-width:760px){.hero .route-note{width:100%;padding:16px 18px}.rn-title{font-size:18px}}
@media (prefers-reduced-motion:reduce){.hero .route-note,.rn-link span{transition:none}}
.ro-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* 25.1 Окно короткой заявки по баннеру: телефон, ИНН, имя. Без шагов калькулятора. */
.ro-dialog{width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid var(--surface-raised);
  border-top:4px solid var(--brand-accent);border-radius:4px;background:var(--ds-inverse-ink);color:var(--ink);overflow:auto}
.ro-dialog::backdrop{background:color-mix(in srgb,var(--brand-deep) 62%,transparent)}
.ro-form{position:relative;display:grid;gap:12px;padding:24px 24px 20px;font:inherit}
.ro-close{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:4px;
  background:transparent;color:var(--ink);cursor:pointer}
.ro-close:hover{background:var(--surface)}
.ro-form-tag{margin:0;padding-right:44px;font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--brand-accent)}
.ro-form-route{margin:0;font-size:clamp(24px,6vw,30px);line-height:1.1;font-weight:500;letter-spacing:-.02em}
.ro-form-route span[aria-hidden]{color:var(--brand-accent)}
.ro-form-facts{display:flex;flex-wrap:wrap;gap:4px 20px;margin:0;padding:10px 0;border-top:1px solid var(--surface-raised);border-bottom:1px solid var(--surface-raised);font-size:15px}
.ro-form-facts b{font-size:18px;font-weight:600}
.ro-form-lead{margin:0;font-size:15px;line-height:1.4}
.ro-fields{display:grid;gap:10px}
.ro-field{display:grid;gap:4px;font-size:14px;font-weight:500}
.ro-field input{width:100%;min-height:52px;padding:0 14px;border:1px solid var(--surface-raised);border-radius:4px;background:var(--ds-inverse-ink);
  color:var(--ink);font:inherit;font-size:17px;font-weight:400}
.ro-field input:hover{border-color:var(--brand-logo)}
.ro-field input:focus-visible{outline:2px solid var(--brand-accent);outline-offset:1px;border-color:var(--brand-accent)}
.ro-field input[aria-invalid="true"]{border-color:var(--ds-error)}
.ro-error{min-height:0;font-size:13px;font-weight:400;color:var(--ds-error)}
.ro-error:empty{display:none}
.ro-form .ow-footer.ro-footer{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:4px 0 0;padding:0;border:0;position:static;background:none}
.ro-footer .ogw-controls{display:grid;gap:8px}
.ro-form .ogw-review{display:none}
.ro-fallback{margin:0;font-size:14px}
.ro-submit{min-height:54px;padding:0 18px;border:0;border-radius:4px;background:var(--brand-accent);color:var(--ds-inverse-ink,#fff);
  font:inherit;font-size:17px;font-weight:600;cursor:pointer}
.ro-submit:hover{background:var(--brand-hover)}
.ro-submit:disabled{opacity:.6;cursor:progress}
@media (max-width:760px){.ro-form{padding:20px 16px 16px}}
