*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #FFFFFF;
  --bg-soft: #F7F7F7;
  --line: #E5E5E5;
  --text: #1A1A1A;
  --text-muted: #555555;
  --text-faint: #888888;

  --red: #C2185B;
  --red-dark: #A61951;

  --magenta-1: #6A1B5C;
  --magenta-2: #8B1858;
  --magenta-3: #B71C5C;
  --magenta-4: #D81B60;
  --hot-pink: #E91E63;
  --yellow: #FFD749;
  --green: #00A651;

  --violet-1: #15092a;
  --violet-2: #1a0f2e;
  --violet-3: #221538;
  --violet-4: #2a1a4a;
  --violet-light: #a78bfa;
  --violet-mid: #6e54d1;

  --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
}

html { -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Onest', 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; transition: color 0.15s; }


/* ============ CONTENT ============ */
.content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.section {
  margin-bottom: 48px;
  padding: 32px 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.section:last-of-type { margin-bottom: 0; }

.section__h2 {
  font-family: 'Onest', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.section p { margin-bottom: 12px; color: var(--text-muted); }
.section p:last-child { margin-bottom: 0; }

/* ============ CAT TILES (плашки машин из kazan.css) ============ */
/* Блоки «Какие машины подбираем» и «Маршруты грузоперевозок» — без общей карточки-рамки, чтобы плитки шли во всю ширину */
#machines,
#routes {
  background: transparent;
  border: none;
  padding: 0;
}
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 6px;
}
.cat-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 22px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  background: var(--bg-soft);
  color: var(--text);
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: inherit; }
.cat-tile h3 {
  font-family: 'Manrope', 'Onest', sans-serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  position: relative;
  z-index: 2;
}
.cat-tile h3 small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-top: 6px;
  opacity: 0.75;
  letter-spacing: 0;
}
.cat-tile p {
  margin-top: auto;
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.45;
  position: relative;
  z-index: 2;
  color: inherit !important;
  opacity: 0.88;
}
.cat-tile.t-magenta { background: linear-gradient(135deg, var(--magenta-1) 0%, var(--magenta-4) 100%); color: #fff; }
.cat-tile.t-pink    { background: linear-gradient(135deg, var(--magenta-3) 0%, var(--hot-pink) 100%); color: #fff; }
.cat-tile.t-dark    { background: linear-gradient(135deg, #1A1A1A 0%, #333 100%); color: #fff; }
.cat-tile.t-green   { background: linear-gradient(135deg, var(--green) 0%, #34C759 100%); color: #fff; }
.cat-tile.t-rose    { background: linear-gradient(135deg, #FFE0EE 0%, #FFD0E4 100%); color: var(--text); }
.cat-tile.t-cream   { background: linear-gradient(135deg, #F5EFE6 0%, #ECE0CC 100%); color: var(--text); }
.cat-tile.t-blue    { background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%); color: #fff; }

/* ============ ROUTES (популярные маршруты с ценами) ============ */
.routes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 7px;
  margin-top: 6px;
}
.route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 13px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  transition: border-color 0.15s, background 0.15s;
}
.route:hover { border-color: var(--red); background: #fff; }
a.route { text-decoration: none; color: inherit; }
.routes-group { margin: 18px 0 7px; font-size: 14px; font-weight: 800; color: var(--text); }
.routes-group:first-of-type { margin-top: 12px; }
.route-from-to {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.route-cities {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
  color: var(--text);
}
.route-meta {
  font-size: 10.5px;
  color: var(--text-faint);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.01em;
}
.route-price {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--magenta-3);
  white-space: nowrap;
}
.route-price small { display: none; }
.routes-note {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 14px;
}


/* ============ LEGAL (privacy) ============ */
.legal { max-width: 860px; margin: 0 auto; }
.legal h2.section__h2 { margin-top: 28px; font-size: 20px; }
.legal h2.section__h2:first-child { margin-top: 0; }
.legal-list { margin: 0 0 12px 22px; }
.legal-list li { color: var(--text-muted); margin-bottom: 8px; line-height: 1.6; }
.legal a { color: var(--red); text-decoration: underline; }
.legal a:hover { color: var(--red-dark); }

/* ============ EMAIL ============ */
.section--contact {
  background: linear-gradient(135deg, #fff 0%, #fdf2f7 100%);
  border-color: rgba(194, 24, 91, 0.18);
}
.email-link {
  display: inline-block;
  margin-top: 6px;
  padding: 14px 22px;
  background: var(--red);
  color: #fff !important;
  font-weight: 700;
  font-size: 18px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 20px -4px rgba(194, 24, 91, 0.38);
  transition: background 0.15s, transform 0.15s;
}
.email-link:hover { background: var(--red-dark); transform: translateY(-1px); }

/* ============ RESPONSIVE: плитки и общий моб. ============ */
@media (max-width: 900px) {
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .content { padding: 36px 16px 56px; }
  .section { padding: 22px 20px; margin-bottom: 28px; border-radius: 14px; }
  .section__h2 { font-size: 22px; }
  .cat-tiles { grid-template-columns: 1fr; gap: 10px; }
  .cat-tile { aspect-ratio: auto; padding: 20px; }
  .cat-tile h3 { font-size: 18px; }
  .email-link { font-size: 16px; padding: 12px 18px; }
  .routes-bar { flex-wrap: wrap; }
}

/* ============ СПИСОК НАПРАВЛЕНИЙ ============ */
.routes-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 18px 0 7px;
}
.routes-bar .routes-group { margin: 0; }
.routes-toggle {
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--red); background: none; border: none; cursor: pointer; padding: 4px 0;
}
.routes-toggle:hover { color: var(--red-dark); text-decoration: underline; }
.routes--collapsed .route:not(.is-pop) { display: none; }
.routes-empty { font-size: 14px; color: var(--text-muted); padding: 16px 0 2px; }

/* ============ ВИТРИНА «ПОПУЛЯРНЫЕ НАПРАВЛЕНИЯ» (карточки с фото) ============ */
.featured__title { font-size: 20px; font-weight: 800; color: var(--text); margin: 4px 0 16px; }
.featured {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.fcard {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s, transform .15s;
}
.fcard:hover { box-shadow: 0 10px 28px -10px rgba(20,9,42,0.22); transform: translateY(-2px); }
.fcard__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #ececf2; }
.fcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.fcard:hover .fcard__img img { transform: scale(1.03); }
.fcard__desc { display: block; margin: 6px 0 2px; font-size: 13px; line-height: 1.4; color: #55506a; }
/* плашки на фото — слева внизу, минимальный зазор */
.fcard__badges { position: absolute; left: 8px; bottom: 8px; top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; z-index: 2; }
.fbadge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; line-height: 1; padding: 4px 7px; border-radius: 6px; color: #fff; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,0.22); }
.fbadge svg { width: 12px; height: 12px; flex: 0 0 auto; }
.fbadge--hit { background: #C2185B; }
.fbadge--pop { background: #6e54d1; }
.fbadge--choice { background: #1a8a4a; }
.fbadge--fast { background: #1a6da8; }
.fbadge--far { background: rgba(20,10,30,0.72); }
.fbadge--geo { background: #2f3b52; }
.fbadge--deal { background: #e07b00; }
/* сердечко «в избранное» — без круга, контур поверх фото */
.fcard__fav { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: none; background: none; padding: 0; cursor: pointer; z-index: 2; transition: transform .15s; }
.fcard__fav:hover { transform: scale(1.12); }
.fcard__fav svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5)); }
.fcard__fav.is-fav svg { fill: none; stroke: #C2185B; stroke-width: 2.2; }
.fcard__body { padding: 9px 11px 11px; display: flex; flex-direction: column; gap: 2px; }
.fcard__route { font-weight: 700; font-size: 14.5px; color: var(--text); line-height: 1.2; }
.fcard__meta { font-size: 12px; color: var(--text-muted); }
.fcard__facts { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 5px; }
.fcard__fact { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); }
.fcard__fact svg { width: 14px; height: 14px; color: var(--red); flex: 0 0 auto; }
.fcard__price { position: relative; margin-top: 6px; padding-right: 24px; font-weight: 800; font-size: 16px; color: var(--red); line-height: 1.15; }
.fcard__price small { display: block; font-weight: 500; font-size: 10.5px; color: var(--text-muted); margin-top: 1px; }
.fcard__price::after { content: "•••"; position: absolute; right: 0; top: 2px; font-size: 13px; font-weight: 700; letter-spacing: 1px; line-height: 1; color: var(--text-muted); }
@media (max-width: 1100px) { .featured { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .featured { grid-template-columns: 1fr 1fr; gap: 12px; } .fcard__route { font-size: 14px; } .fcard__body { padding: 10px 12px 12px; } }


/* ===== ПОДВАЛ В СВЕТЛОМ WB-СТИЛЕ (только главная) ===== */
/* полоска преимуществ над подвалом */
.footer-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid #e6e6ec;
}
.footer-feature {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ff-icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid #ececf2;
  color: #C2185B;
}
.ff-icon svg { width: 24px; height: 24px; }
.ff-text { display: flex; flex-direction: column; line-height: 1.25; }
.ff-text b { font-size: 14.5px; font-weight: 700; color: #1c1c28; }
.ff-text small { font-size: 12px; color: #9a9aa6; margin-top: 2px; }
@media (max-width: 900px) {
  .footer-features { grid-template-columns: 1fr 1fr; gap: 18px 24px; }
}
@media (max-width: 480px) {
  .footer-features { grid-template-columns: 1fr; gap: 14px; }
}

.footer {
  background: #f5f5f8;
  color: #5a5a68;
  padding: 48px 0 24px;
  position: relative;
  border-top: 1px solid #e6e6ec;
  font-size: 13px;
  line-height: 1.55;
}
.footer .wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}
.footer .logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #1c1c28;
  text-decoration: none;
}
.footer .logo:hover { color: #1c1c28; text-decoration: none; }
.footer .logo-mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #C2185B 0%, #880E4F 100%);
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px -3px rgba(135, 20, 63, 0.35);
  position: relative;
  overflow: hidden;
}
.footer .logo-mark::after {
  content: "";
  position: absolute;
  top: -10px; right: -10px;
  width: 20px; height: 20px;
  background: #FFD749;
  border-radius: 50%;
  opacity: 0.95;
}
.footer .logo-mark svg { width: 22px; height: 22px; color: #fff; position: relative; z-index: 1; }
.footer .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-family: 'Manrope', 'Onest', sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.025em;
  color: #1c1c28;
}
.footer .logo-text small {
  font-family: 'Onest', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0;
  color: #9a9aa6;
  margin-top: 3px;
}
.footer-brand p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #6f6f7d;
  margin: 16px 0;
  max-width: 320px;
}
.footer-pay { display: flex; gap: 8px; align-items: center; }
.pay-logo {
  background: #fff;
  border: 1px solid #e6e6ec;
  border-radius: 6px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
}
.pay-logo img { height: 16px; display: block; }
.footer-col h3 {
  font-size: 14px;
  font-weight: 700;
  color: #1c1c28;
  letter-spacing: 0;
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 13.5px;
  color: #6f6f7d;
  text-decoration: none;
  transition: color .15s ease;
}
.footer-col a:hover { color: #C2185B; }
.footer-col a b { color: #1c1c28 !important; font-size: 15px; }
.footer .footer-requisites {
  padding-top: 32px;
  border-top: 1px solid #e6e6ec;
  font-size: 11.5px;
  color: #9a9aa6;
  line-height: 1.6;
}
.footer .footer-requisites p { margin: 0 0 4px; }
.footer .footer-requisites b { color: #5a5a68; }
.footer .footer-disclaimer {
  padding-top: 16px;
  font-size: 11px;
  color: #a8a8b2;
  line-height: 1.55;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  margin-top: 14px;
  border-top: 1px solid #e6e6ec;
  font-size: 12px;
  color: #9a9aa6;
}
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: span 3; }
}
@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 540px) {
  .footer-top > :nth-child(3),
  .footer-top > :nth-child(4) { display: none; }
  .hidden-mobile { display: none !important; }
  /* уже боковые поля подвала на телефоне — как в шапке */
  .footer .wrap { padding-left: 16px; padding-right: 16px; }
  /* «Контакты» прижимаем к правому краю (это 5-й блок) */
  .footer-top > :nth-child(5) { text-align: right; }
  /* убираем лишний воздух над дисклеймером (реквизиты на телефоне скрыты) */
  .footer-top { padding-bottom: 14px; }
  .footer .footer-disclaimer { padding-top: 6px; }
}

/* ============ LIVE-BAR (живой счётчик вплотную к шапке) ============ */
.livebar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.livebar__inner {
  max-width: 1440px; margin: 0 auto;
  padding: 11px 24px;
  display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap;
}
.livebar__stats {
  display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap;
  flex: 1 1 auto;
}
.live-stat {
  display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap; font-size: 13px; color: var(--text-muted);
}
.live-stat b { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.live-stat-icon { display: inline-flex; color: var(--red); }
.live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #16a34a; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(22,163,74,0.55);
  animation: liveDotPulse 1.9s infinite;
}
@keyframes liveDotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(22,163,74,0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}
.live-divider { width: 1px; height: 18px; background: var(--line); flex-shrink: 0; }
@media (max-width: 900px) {
  .live-divider { display: none; }
  .livebar { gap: 8px 14px; }
}
@media (max-width: 600px) {
  .livebar__inner { padding: 12px 16px; }
  .live-stat { font-size: 12.5px; }
}

/* ============ WB-СТИЛЬ ШАПКА (только главная: класс .wb-header) ============ */
.wb-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--magenta-3) 0%, var(--violet-mid) 100%);
}
.wb-header__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 24px 16px;
}
/* верхняя строка ссылок */
.wb-toplinks {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 14px;
}
.wb-toplinks a {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  transition: opacity .15s;
}
.wb-toplinks a:hover { opacity: 0.7; }
.wb-toplinks__phone {
  margin-left: auto;
  font-family: 'Onest', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #fff !important;
}
/* основная строка */
.wb-bar {
  display: flex;
  align-items: center;
  gap: 18px;
}
.wb-logo {
  font-family: 'Onest', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.wb-logo span { color: inherit; }
.wb-catalog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: none;
  border-radius: 12px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  cursor: pointer;
  transition: background .15s;
}
.wb-catalog:hover { background: rgba(255,255,255,0.30); }
.wb-catalog svg { width: 22px; height: 22px; }
/* поиск по центру */
.wb-search {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  height: 48px;
  background: #fff;
  border-radius: 12px;
  padding: 0 6px 0 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}
.wb-search input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}
.wb-search input::placeholder { color: #9a9a9a; }
.wb-search__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  transition: background .15s;
}
.wb-search__btn:hover { background: rgba(194,24,91,0.08); }
.wb-search__btn svg { width: 22px; height: 22px; }
/* иконки справа */
.wb-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 0 0 auto;
}
.wb-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s;
}
.wb-action:hover { opacity: 0.75; }
.wb-action svg { width: 24px; height: 24px; }
.wb-fav-count {
  position: absolute;
  top: -5px;
  right: 4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.wb-fav-count[hidden] { display: none; }
/* телефон-в-баре и перенос строки — только для мобильной версии */
.wb-barphone, .wb-break, .wb-mfav { display: none; }

/* планшеты */
@media (max-width: 900px) {
  .wb-toplinks { gap: 16px; margin-bottom: 12px; }
  .wb-toplinks a:not(.wb-toplinks__phone) { display: none; }
  .wb-catalog { display: none; }
  .wb-header__inner { padding: 10px 16px 14px; }
  .wb-bar { gap: 12px; }
  .wb-action span { display: none; }
  .wb-search { min-width: 0; }
  .wb-search input { min-width: 0; }
}
/* телефоны (iPhone 12 и уже): строка 1 — лого + телефон, строка 2 — бургер + поиск */
@media (max-width: 560px) {
  .wb-toplinks { display: none; }
  .wb-bar { flex-wrap: wrap; column-gap: 12px; row-gap: 0; align-items: center; }
  .wb-logo { font-size: 20px; }
  .wb-barphone {
    display: inline-block;
    margin-left: auto;
    font-family: 'Onest', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
  }
  .wb-break { display: block; flex: 0 0 100%; height: 0; margin: 0 0 12px; }
  .wb-catalog { display: inline-flex; width: 44px; height: 44px; }
  .wb-search { flex: 1 1 auto; height: 44px; min-width: 0; }
  .wb-search input { min-width: 0; font-size: 16px; }
  .wb-actions { display: none; }
  /* сердечко «Избранное» справа от поиска */
  .wb-mfav { display: inline-flex; align-items: center; justify-content: center; position: relative; flex: 0 0 auto; width: 44px; height: 44px; color: #fff; }
  .wb-mfav svg { width: 26px; height: 26px; }
  /* на мобиле скрываем заголовок и описание блока маршрутов (на ПК остаются) */
  .routes-intro { display: none; }
  /* убираем лишний воздух сверху, раз заголовок скрыт */
  .content { padding-top: 8px; }
  #routes { padding-top: 12px; }
  #routes .routes-bar { margin-top: 0; }
  /* витрина впритык к краям экрана (как WB), текст — с отступом */
  .content { padding-left: 0; padding-right: 0; }
  #routes { padding-left: 0; padding-right: 0; border-radius: 0; border-left: none; border-right: none; }
  .featured { gap: 2px; margin-bottom: 16px; }
  .fcard { border-radius: 0; }
  .fbadge { font-size: 10px; padding: 3px 6px; }
  #routes .featured__title,
  #routes .routes-bar,
  #routes #routesGrid,
  #routes .routes-note,
  #routes .routes-empty { padding-left: 12px; padding-right: 12px; }
  /* сдвигаем только заголовок блока машин, карточки под ним не трогаем */
  #machines .section__h2 { margin-left: 12px; }
}

/* ============ TEAM CAROUSEL («Работа в Автотрейдинге») — ручное листание ============ */
#team { margin: 44px 0 8px; }
#team .section__h2 { margin-left: 12px; }
.team-sub { color: var(--text-muted); margin: 0 12px 18px; }
.team-rows { display: flex; flex-direction: column; gap: 14px; }
.team-carousel { position: relative; }
.team-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  padding: 2px;
  margin: -2px;
}
.team-track::-webkit-scrollbar { display: none; }
.team-track.dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.team-slide {
  flex: 0 0 auto;
  width: 300px;
  height: 200px;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-md);
  scroll-snap-align: start;
}
.team-slide img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.team-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.94); box-shadow: var(--shadow-md);
  color: var(--text); font-size: 24px; line-height: 1; padding-bottom: 3px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s, background 0.2s;
}
.team-carousel:hover .team-nav { opacity: 1; }
.team-nav:hover { background: #fff; }
.team-nav--prev { left: 8px; }
.team-nav--next { right: 8px; }
@media (hover: none) { .team-nav { display: none; } }
.team-slide--half { width: 150px; }
.team-slide--half img { object-position: center; }
@media (max-width: 540px) {
  .team-slide { width: 220px; height: 150px; }
  .team-slide--half { width: 110px; }
}

/* ============ БЛОК СТАТЕЙ НА ГЛАВНОЙ («Полезное о грузоперевозках», стиль РБК) ============ */
#news { background: transparent; border: none; padding: 0; }
.news-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin:0 12px 2px; }
.news-all { color:var(--red); text-decoration:none; font-weight:600; font-size:14px; white-space:nowrap; }
.news-all:hover { text-decoration:underline; }
.news-grid { display:grid; grid-template-columns:0.8fr 1fr; gap:24px; margin-top:14px; align-items:start; }
.news-lead { display:block; text-decoration:none; color:inherit; }
.news-lead__ph { display:block; border-radius:14px; overflow:hidden; height:180px; background:var(--bg-soft); box-shadow:var(--shadow-md); }
.news-lead__ph img { width:100%; height:100%; object-fit:cover; display:block; }
.news-lead__t { display:block; font-family:'Onest',sans-serif; font-weight:800; font-size:23px; line-height:1.24; letter-spacing:-0.01em; color:var(--text); margin:13px 0 5px; }
.news-lead:hover .news-lead__t { color:var(--red); }
.news-lead__m { color:var(--text-faint); font-size:13px; }
.news-lead__m b { color:var(--red); font-weight:600; }
.news-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; align-self:start; }
.news-list li { border-bottom:1px solid var(--line); }
.news-list li:first-child { border-top:1px solid var(--line); }
.news-list a { display:block; padding:13px 4px 13px 20px; position:relative; color:var(--text); text-decoration:none; font-size:16px; line-height:1.35; }
.news-list a::before { content:"•"; position:absolute; left:4px; top:13px; color:var(--red); }
.news-list a:hover { color:var(--red); }
.news-list .news-list__m { color:var(--text-faint); font-size:12px; }
@media (max-width:760px){ .news-grid{ grid-template-columns:1fr; gap:16px; } .news-lead__t{ font-size:20px; } }

/* умный поиск: выпадающие подсказки (главная) */
.wb-search{ position:relative; }
.wb-ac{ position:absolute; top:calc(100% + 8px); left:0; right:0; background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:0 14px 36px rgba(0,0,0,.16); overflow-y:auto; z-index:400; display:none; max-height:72vh; }
.wb-ac.open{ display:block; }
.wb-ac__i{ display:flex; justify-content:space-between; align-items:center; gap:12px; padding:11px 16px; text-decoration:none; color:var(--text); border-bottom:1px solid #f0f0f0; }
.wb-ac__i:last-child{ border-bottom:none; }
.wb-ac__i:hover, .wb-ac__i.active{ background:#fdf2f7; }
.wb-ac__c{ font-weight:600; font-size:15px; }
.wb-ac__m{ color:var(--text-faint); font-size:13px; white-space:nowrap; }
@media (max-width:560px){ .wb-ac__m{ display:none; } }
