/* Общие стили */
html,
body {
  height: 100%
}

body {
  --nav-offset: 0px;
}

.fab-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 0;
}

body.nav-fixed {
  padding-top: var(--nav-offset);
  transition: padding-top .2s ease;
}

img {
  max-width: 100%;
  height: auto;
}

/* Навигация */
.logo-img {
  height: auto;
  width: auto;
  max-height: 95px;
}


.hero-logo {
  height: auto;
  width: auto;
  max-height: 95px;
}

.navbar.navbar-shrink .hero-logo {
  max-height: 55px;
}

.navbar .logo-img {
  transition: max-height .2s ease
}

.navbar.navbar-shrink .logo-img {
  max-height: 55px
}

.navbar {
  transition: padding .2s ease
}

.navbar-mb-95 {
  margin-bottom: 95px;
}


.content-mt-95 {
  margin-top: 95px;
}



.navbar.navbar-shrink {
  padding-top: .25rem;
  padding-bottom: .25rem
}

.nav-separated .nav-item+.nav-item {
  border-left: 1px solid #dee2e6
}

@media (max-width:991.98px) {
  .nav-separated .nav-item+.nav-item {
    border-left: 0
  }
}

.driver-chat-modal .driver-chat-messages {
  max-height: 420px;
  overflow-y: auto;
  background: #f8f9fa;
  border-radius: .5rem;
  padding: 1rem;
}

.driver-chat-message {
  display: flex;
  flex-direction: column;
  margin-bottom: .75rem;
}

.driver-chat-message:last-child {
  margin-bottom: 0;
}

.driver-chat-bubble {
  max-width: 100%;
  padding: .5rem .75rem;
  border-radius: .75rem;
  word-break: break-word;
  box-shadow: 0 .1rem .2rem rgba(0, 0, 0, .08);
}

.driver-chat-in .driver-chat-bubble {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #dee2e6;
}

.driver-chat-out .driver-chat-bubble {
  align-self: flex-end;
  background: #0d6efd;
  color: #fff;
}

.driver-chat-meta {
  font-size: .75rem;
  color: #6c757d;
  margin-top: .25rem;
}

.driver-chat-in .driver-chat-meta {
  align-self: flex-start;
}

.driver-chat-out .driver-chat-meta {
  align-self: flex-end;
}


.driver-chat-footer {
  gap: 0.75rem;
}

.driver-chat-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
}

.driver-chat-input {
  flex: 1 1 auto;
  min-height: 5.5rem;
  resize: vertical;
}

.driver-chat-buttons {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  align-self: stretch;
}

.driver-chat-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  min-width: 3rem;
  height: 3rem;
  padding: 0;
}

.driver-chat-button .bi {
  font-size: 1.25rem;
}

.driver-chat-actions-toggle {
  transition: box-shadow 0.15s ease;
}

.driver-chat-actions {
  position: relative;
}

.driver-chat-actions-menu {
  padding: 0.5rem 0;
  min-width: 16rem;
  width: 20rem;
  max-width: calc(100vw - 5rem);
}

.driver-chat-error {
  min-height: 1.25rem;
}

.dropdown-item.driver-chat-action {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  white-space: normal;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background-color 0.15s ease;
}

.dropdown-item.driver-chat-action:hover,
.dropdown-item.driver-chat-action:focus {
  background-color: #f1f3f5;
  color: inherit;
}

.driver-chat-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e7f1ff;
  color: #0d6efd;
  font-size: 1rem;
}

.driver-chat-action-body {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  text-align: left;
  flex: 1 1 auto;
}

.driver-chat-action-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #212529;
}

.driver-chat-action-text {
  font-size: 0.8125rem;
  color: #6c757d;
  font-weight: 400;
}

@media (max-width: 575.98px) {
  .driver-chat-controls {
    gap: 0.5rem;
  }

  .driver-chat-input {
    min-height: 4.5rem;
  }

  .driver-chat-button {
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
  }

  .dropdown-item.driver-chat-action {
    padding: 0.5rem 0.75rem;
  }

  .driver-chat-action-icon {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.9rem;
  }
}

.driver-status-wrap {
  gap: 0.5rem;
}

.driver-status-btn {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0;
}

.driver-status-btn i {
  font-size: 1.1rem;
  line-height: 1;
}

.driver-description-col {
  max-width: 240px;
}

@media (max-width: 575.98px) {
  /* На мобильных скрываем колонку с описанием, чтобы избежать горизонтального скролла */
  .driver-description-col {
    display: none;
  }
}

tr.driver-row {
  cursor: pointer;
}

/* Управляем скроллом карты в модалке редактирования водителя */
.driver-edit-modal .driver-edit-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.driver-edit-map-touch-scroll {
  touch-action: pan-y !important;
}


.driver-edit-modal .driver-edit-map-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 auto;
}

.driver-edit-modal .driver-route-controls {
  margin-bottom: 0.25rem;
}

.driver-edit-modal .driver-route-controls .btn {
  white-space: nowrap;
}

.driver-edit-modal .driver-route-slider {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.driver-edit-modal .driver-route-slider-labels {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
}

.driver-edit-modal .driver-route-slider-total {
  margin-left: 0.25rem;
  font-weight: 500;
  white-space: nowrap;
}

.driver-edit-modal .driver-edit-map-wrap {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  flex: 1 1 auto;
  position: relative;
}

.driver-edit-modal .driver-edit-map-controls {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 401;
  display: none;
}

.driver-edit-modal .driver-edit-map-controls .btn {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
}

.driver-edit-modal .driver-edit-map {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
}

.driver-edit-modal .driver-edit-map-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  border: 1px dashed var(--bs-border-color);
  border-radius: 0.75rem;
  color: var(--bs-secondary-color);
  background-color: rgba(255, 255, 255, 0.9);
}

.driver-edit-modal .driver-route-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.driver-edit-modal .driver-route-arrow svg {
  width: 18px;
  height: 18px;
  transform-origin: 50% 50%;
  fill: #0d6efd;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.35));
}

@media (max-width: 576px) {
  .driver-edit-modal .driver-edit-map-wrap {
    min-height: 50vh;
  }
}

/* Карта и события деклараций */

/* Tab content контейнер - flex для правильной высоты */
#declModal .tab-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

/* Вкладка Карта */
#declTabMap {
  display: none;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  flex: 1 1 auto;
}

#declTabMap.show,
#declTabMap.active {
  display: flex !important;
}

#declMap {
  flex: 1 1 60%;
  width: 100%;
  min-height: 200px;
  min-width: 0;
}

#declEventsWrap {
  flex: 0 1 40%;
  max-height: 200px;
  overflow-y: auto;
  border-top: 1px solid #dee2e6;
}

/* Вкладка События */
#declTabEvents {
  display: none;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  flex: 1 1 auto;
}

#declTabEvents.show,
#declTabEvents.active {
  display: flex !important;
}

#declEventsList {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}

@media (max-width: 576px) {
  #declMap {
    min-height: 40vh;
    flex: 1 1 50%;
  }
  #declEventsWrap {
    flex: 0 1 50%;
    max-height: none;
  }
}

#declEvents.timeline {
  position: relative;
  padding: 1rem 0
}

#declEvents.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #dee2e6
}

.decl-problem {
  background: #f8d7da;
  /* Подсветка проблемной декларации */
}

.timeline-event {
  position: relative;
  width: 50%;
  padding: 0 1rem 1rem;
  box-sizing: border-box;
  cursor: pointer
}

.timeline-event.left {
  margin-left: 0;
  text-align: right
}

.timeline-event.right {
  margin-left: 50%
}

.timeline-event .content {
  background: #fff;
  border-radius: .25rem;
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
  padding: .5rem .75rem
}

.timeline-event.left::before,
.timeline-event.right::before {
  content: "";
  position: absolute;
  top: 1rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff
}

.timeline-event.left::before {
  right: -6px
}

.timeline-event.right::before {
  left: -6px
}

.timeline-event.start::before {
  background: #198754;
  /* Точка начала движения */
}

.timeline-event.stop::before {
  background: #ffc107;
  /* Остановка */
}

.timeline-event.move::before {
  background: #0d6efd;
  /* Движение */
}

.timeline-event.end::before {
  background: #dc3545;
  /* Завершение */
}

.timeline-event.enter_poland::before {
  background: #0dcaf0;
  /* Въезд в Польшу */
}

.timeline-event.exit_poland::before {
  background: #6f42c1;
  /* Выезд из Польши */
}

.event-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .9rem
}

.event-title {
  font-weight: 500
}

.event-meta {
  margin-left: 1rem;
  white-space: nowrap
}

.event-times small {
  font-size: .8rem
}

.otp-input {
  letter-spacing: .8rem;
  text-align: center;
  font-weight: 600;
}

@media (max-width:575.98px) {
  .otp-input {
    letter-spacing: .5rem;
  }
}

.card-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: .5rem;
  display: block
}

@media (max-width:575.98px) {
  .card-icon {
    width: 2rem;
    height: 2rem
  }

  /* Навигация: фиксированная панель на мобильных */
  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030
  }


  body {
    /* padding-top: 95px; */

  }
}


/* Блок героя */
.rmpd-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  contain: paint;
  /* локализуем перерисовки */
  background: radial-gradient(1200px 600px at 10% 0%, rgba(99, 102, 241, .12), transparent 60%),
    radial-gradient(900px 500px at 100% 40%, rgba(16, 185, 129, .12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .82));
  backdrop-filter: blur(2px);
}

/* Динамічний фон */
.rmpd-hero__bg {
  will-change: auto;   /* не форсить слои */
  contain: paint;
  /* display: none; */
  /* position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(35% 30% at 20% 25%, rgba(99, 102, 241, .35), transparent 60%),
        radial-gradient(30% 28% at 80% 20%, rgba(16, 185, 129, .35), transparent 62%),
        radial-gradient(36% 26% at 60% 80%, rgba(236, 72, 153, .28), transparent 65%);
    background-repeat: no-repeat;
    filter: blur(40px) saturate(110%);
    transform: scale(1.2);
    transform-origin: center;
    aspect-ratio: 2 / 1; */
  /* animation: rmpd-drift 18s ease-in-out infinite alternate; */
}

@keyframes rmpd-drift {
  0% {
    transform: translate3d(-1%, -1%, 0) scale(1.00);
  }

  50% {
    transform: translate3d(1%, 0.5%, 0) scale(1.04);
  }

  100% {
    transform: translate3d(0.5%, 1%, 0) scale(1.02);
  }
}

/* Layout: текст + картинка */
.rmpd-hero__wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 992px) {
  .rmpd-hero__wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Кнопки */
.rmpd-btn {
  border-radius: 14px;
  padding: 12px 22px;
  transition: transform .2s ease, box-shadow .25s ease;
}

.rmpd-btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, .25);
}

.rmpd-btn.btn-outline-primary:hover {
  transform: translateY(-2px);
  background: #eff6ff;
  box-shadow: 0 8px 16px rgba(29, 78, 216, .15);
}

/* Пульс кнопки демо */
.rmpd-btn--demo {
  position: relative;
  animation: rmpd-attract 3s infinite;
}

@keyframes rmpd-attract {

  0%,
  84%,
  100% {
    transform: none;
  }

  90% {
    transform: scale(1.02);
    box-shadow: 0 0 14px rgba(29, 78, 216, .35);
  }
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-radius: 50%;
  background: #1d4ed8;
  animation: rmpd-dotpulse 12s infinite;
}

@keyframes rmpd-dotpulse {

  0%,
  84%,
  100% {
    transform: scale(1);
    opacity: .6;
  }

  88% {
    transform: scale(1.4);
    opacity: 1;
  }
}

/* Картинка */
/* 1) Колонка с картинкой — по размеру содержимого */
.rmpd-hero__wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  /* <-- текст растягивается, медиа — по контенту */
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

/* 2) Контейнер под картинку не навязывает размеры */
.rmpd-hero__media {
  display: inline-block;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
  max-width: 100%;
  /* защита на узких экранах */
}

.mockup-wrap {
  aspect-ratio: 271/500;
}

/* 3) Гасим поведение .img-fluid (width:100%) только для этой картинки */
.rmpd-hero__media .rmpd-media-img {
  width: auto !important;
  /* переопределяем .img-fluid */
  height: auto !important;
  /* сохраняем пропорции */
  max-height: 500px;
  /* ваше ключевое ограничение */
  max-width: 100%;
  /* не шире контейнера */
  border-radius: 20px;
  display: block;
  margin: 0;
  /* уберём лишние отступы от .mb-4, если нужно */
  transition: transform .4s ease;
}

.rmpd-hero__media:hover .rmpd-media-img {
  transform: scale(1.02);
}

/* Мобилка: складываем в одну колонку, медиа центрируем */
@media (max-width: 992px) {
  .rmpd-hero__wrap {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    /* центрируем картинку */
  }
}

/* Dark mode */
:root[data-bs-theme="dark"] .rmpd-hero {
  background: radial-gradient(1200px 600px at 10% 0%, rgba(99, 102, 241, .12), transparent 60%),
    radial-gradient(900px 500px at 100% 40%, rgba(16, 185, 129, .12), transparent 60%),
    linear-gradient(180deg, rgba(2, 6, 23, .88), rgba(2, 6, 23, .88));
}

:root[data-bs-theme="dark"] .rmpd-hero .lead {
  color: #cbd5e1;
}


/* ===== Центральная колонка ===== */
.container--narrow {
  width: min(70vw, 980px);
  margin-inline: auto;
  text-align: center;
}

/* ===== why-rmpd section ===== */
#why-rmpd {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  /* фон с мягкими градиентами как продолжение hero */
  background:
    radial-gradient(70% 50% at 12% 25%, rgba(99, 102, 241, .10), transparent 60%),
    radial-gradient(65% 55% at 88% 70%, rgba(236, 72, 153, .10), transparent 60%),
    radial-gradient(60% 50% at 85% 20%, rgba(16, 185, 129, .08), transparent 60%);
}

/* ===== Типографика ===== */
.why-title {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.12;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.why-lead {
  max-width: 62ch;
  /* оптимальная длина строки */
  margin: 0.35rem auto;
  color: #334155;
  /* slate-700 */
  font-size: clamp(16px, 1.35vw, 18px);
}

.why-service {
  margin-top: 28px;
}

.why-subtitle {
  font-size: clamp(22px, 2.2vw, 28px);
  margin-bottom: 8px;
}

.why-text {
  max-width: 62ch;
  margin: 0 auto 12px;
  color: #475569;
  /* slate-600 */
}

/* ===== Список ===== */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 12px auto 0;
  text-align: left;
  max-width: 56ch;
}

.feature-list li {
  position: relative;
  padding-left: 1.35rem;
  margin: .4rem 0;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
  /* основной */
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
  /* мягкое свечение */
}

/* ===== Кнопка ===== */
.container--narrow>.btn {
  padding: 10px 20px;
  border-radius: 12px;
  transition: transform .2s ease, box-shadow .25s ease, background-color .2s ease;
}

.container--narrow>.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, .18);
}

/* ===== Боковые рельсы ===== */
@media (min-width: 1200px) {

  #why-rmpd::before,
  #why-rmpd::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    pointer-events: none;
    background: linear-gradient(180deg,
        rgba(2, 6, 23, 0) 0%,
        rgba(2, 6, 23, .10) 15%,
        rgba(2, 6, 23, .16) 50%,
        rgba(2, 6, 23, .10) 85%,
        rgba(2, 6, 23, 0) 100%);
    opacity: .8;
    z-index: 0;
  }

  #why-rmpd::before {
    left: calc((100vw - min(70vw, 980px)) / 2);
  }

  #why-rmpd::after {
    right: calc((100vw - min(70vw, 980px)) / 2);
  }
}

/* ===== Адаптив ===== */
@media (max-width: 1199.98px) {
  .container--narrow {
    width: min(84vw, 980px);
  }

  #why-rmpd::before,
  #why-rmpd::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .container--narrow {
    width: min(92vw, 980px);
  }

  .feature-list {
    max-width: 64ch;
  }
}















/* Заголовок секции */
.services-title {
  text-align: center;
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: clamp(14px, 2vw, 18px);
  letter-spacing: -0.01em;
}

/* Горизонтальный скролл со snap на мобиле */
.services-row {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 991.98px) {
  .services-row>[class*="col-"] {
    scroll-snap-align: start;
    /* фикс ширины карточек для приятного свайпа */
    flex: 0 0 auto;
  }
}

/* Карточка-«чип»: градиентный кант + лёгкое стекло */
.service-card {
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(255, 255, 255, .82), rgba(255, 255, 255, .82)) padding-box,
    linear-gradient(135deg, rgba(99, 102, 241, .35), rgba(16, 185, 129, .25), rgba(236, 72, 153, .25)) border-box;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(2, 6, 23, .06);
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease;
  overflow: hidden;
  min-height: 100%;
}

.service-card .card-body {
  padding: clamp(16px, 3.2vw, 24px);
}

/* Иконка в круге */
.service-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 2px auto 10px;
  border-radius: 50%;
  background: radial-gradient(80% 80% at 30% 20%, rgba(99, 102, 241, .15), transparent 70%),
    #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}

.service-icon img {
  display: block;
  max-width: 34px;
  max-height: 34px;
}

/* Текст */
.service-card .card-title {
  margin: 8px 0 6px;
  font-size: clamp(16px, 1.6vw, 18px);
}

.service-card .card-text {
  color: #475569;
  font-size: clamp(14px, 1.4vw, 16px);
  margin: 0 auto;
  max-width: 46ch;
}

/* Hover/focus эффект */
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(2, 6, 23, .10);
}

/* Акцентная плитка (вторая) — мягкое свечение */
.service-card--accent::after {
  content: "";
  position: absolute;
  inset: -25% -15% auto -15%;
  height: 60%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(37, 99, 235, .12), transparent 70%);
  pointer-events: none;
}

/* Бейдж */
.service-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #1d4ed8;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(29, 78, 216, .25);
}

/* Тёмная тема (если используете data-bs-theme="dark") */
:root[data-bs-theme="dark"] .service-card {
  background:
    linear-gradient(rgba(2, 6, 23, .72), rgba(2, 6, 23, .72)) padding-box,
    linear-gradient(135deg, rgba(99, 102, 241, .35), rgba(16, 185, 129, .28), rgba(236, 72, 153, .28)) border-box;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}

:root[data-bs-theme="dark"] .service-card .card-text {
  color: #cbd5e1;
}


























/* ===== Values (Ценности) ===== */
#values.values {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.values-title {
  text-align: center;
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: clamp(12px, 2vw, 18px);
  letter-spacing: -0.01em;
}

.values-row {
  /* на очень широких экранах – соберём взгляд к центру */
  max-width: min(76vw, 1120px);
  margin-inline: auto;
}

@media (min-width: 1200px) {
  .values-row {
    justify-content: center;
    --bs-gutter-x: clamp(20px, 2.4vw, 32px);
    --bs-gutter-y: clamp(20px, 2.4vw, 32px);
  }

  .values-row>[class*="col-"] {
    flex: 0 1 clamp(240px, 18vw, 280px);
    width: clamp(240px, 18vw, 280px);
    max-width: clamp(240px, 18vw, 280px);
  }
}

/* карточка-тайл без “картонного” фона */
.value-card {
  position: relative;
  border: 0;
  background: rgba(255, 255, 255, .68);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(2, 6, 23, .06);
  padding: clamp(16px, 3vw, 22px);
  transition: transform .18s ease, box-shadow .25s ease;
}

/* тонкий градиентный кант по периметру */
.value-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99, 102, 241, .32), rgba(16, 185, 129, .24), rgba(236, 72, 153, .24));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.value-card:hover,
.value-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(2, 6, 23, .10);
}

/* круглая иконка в “микро-стекле” */
.value-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 2px auto 10px;
  border-radius: 50%;
  background:
    radial-gradient(80% 80% at 30% 20%, rgba(99, 102, 241, .15), transparent 70%),
    #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}

.value-icon img {
  display: block;
  max-width: 34px;
  max-height: 34px;
}

/* типографика */
.value-title {
  margin: 8px 0 2px;
  font-size: clamp(16px, 1.6vw, 18px);
}

.value-subtitle {
  margin-bottom: 8px;
  font-size: clamp(13px, 1.2vw, 14px);
}

.value-text {
  color: #475569;
  /* slate-600 */
  font-size: clamp(14px, 1.4vw, 16px);
  margin: 0 auto;
  max-width: 50ch;
}

/* тёмная тема */
:root[data-bs-theme="dark"] #values.values .value-card {
  background: rgba(2, 6, 23, .62);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}

:root[data-bs-theme="dark"] #values.values .value-card::before {
  background: linear-gradient(135deg, rgba(99, 102, 241, .34), rgba(16, 185, 129, .28), rgba(236, 72, 153, .28));
}

:root[data-bs-theme="dark"] #values.values .value-text {
  color: #cbd5e1;
}

/* адаптив – на планшете центрируем сетку и даём чуть больше воздуха */
@media (max-width: 991.98px) {
  .values-row {
    max-width: min(92vw, 1120px);
  }
}







/* Секция клиентов */
#client.client {
  position: relative;
  isolation: isolate;
  border-bottom: none;
  padding: clamp(16px, 3vw, 28px);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(2, 6, 23, .06);
  transition: transform .18s ease, box-shadow .25s ease, background-color .2s ease;
}

/* компактні картки в один ряд */
.client-stats {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(8px, 1.5vw, 14px) !important;
  flex-wrap: nowrap;
  /* завжди в ряд */
  overflow-x: auto;
  /* якщо не влізають — скрол по осі X */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.client-stat {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 120px;
  /* фіксуємо мінімальну ширину картки */
  min-height: unset;
  /* прибираємо зайву висоту */
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  box-shadow: 0 2px 6px rgba(2, 6, 23, .04);
  transition: transform .15s ease, box-shadow .2s ease;
}

.client-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 6, 23, .08);
}

/* трошки компактніше число та підпис */
.client-number {
  font-size: 1.25rem;
  /* було більше — зменшив для економії вертикалі */
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

.client-label {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 2px;
}

/* необов’язково: стиснути заголовок секції */
#client .client-title {
  margin: 0 0 8px 0;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.2;
}






/* Система оплаты */
.section-pay .payment-system-imgs {
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.section-pay .payment-system-img {
  /* background-color: #fff; */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 6px;
  min-width: 63px;
  max-width: 63px;
  min-height: 63px;
  max-height: 40px;
}

.section-pay .payment-system-img img {
  /* padding: 15px; */
  /* border: 1px solid #07b3ea; */
  border-radius: 5px;
  /* Скругление логотипа платёжной системы */
}
/* News critical highlighting */
.news-article {
  position: relative;
}

.news-article-critical {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 170, 0, 0.4);
  background: linear-gradient(135deg, rgba(255, 248, 230, 0.85), rgba(255, 255, 255, 0.95));
  box-shadow: 0 0.75rem 1.5rem rgba(255, 153, 0, 0.12);
}

.news-critical-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #8a4a00;
  background-color: rgba(255, 196, 77, 0.28);
  border: 1px solid rgba(255, 170, 0, 0.4);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.news-card-critical {
  border-color: rgba(255, 170, 0, 0.6);
  box-shadow: 0 .5rem 1.25rem rgba(255, 153, 0, 0.18);
}

.news-card-critical .card-body {
  background: linear-gradient(135deg, rgba(255, 248, 230, 0.65), rgba(255, 255, 255, 0.9));
}

.news-card-critical .card-title a {
  color: #8a4a00;
}

.news-card-critical .btn-outline-primary {
  border-color: rgba(255, 170, 0, 0.55);
  color: #8a4a00;
}

.news-card-critical .btn-outline-primary:hover,
.news-card-critical .btn-outline-primary:focus {
  background-color: rgba(255, 196, 77, 0.2);
  border-color: rgba(255, 170, 0, 0.8);
  color: #8a4a00;
}

@media (max-width: 575.98px) {
  .news-article-critical {
    padding: 1rem;
  }
}

/* Удерживаем модалку редактирования водителя прокручиваемой на всех экранах */
#driverEditModal .modal-content {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--bs-modal-margin) * 2);
}

#driverEditModal .modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 575.98px) {
  #driverEditModal .modal-dialog {
    margin: 0;
    height: 100%;
  }

  #driverEditModal .modal-content {
    min-height: 100vh;
    height: 100%;
    max-height: none;
  }

  #driverEditModal #driverEditMapWrap {
    height: 45vh;
    max-height: 260px;
    touch-action: pan-y;
  }
}

