.route-calculator {
  --route-bg: #f6f8fc;
  --route-surface: rgba(255, 255, 255, 0.92);
  --route-surface-strong: #ffffff;
  --route-ink: #101827;
  --route-muted: #647084;
  --route-line: rgba(204, 216, 235, 0.88);
  --route-blue: #183869;
  --route-blue-soft: #e9f1fb;
  --route-yellow: #f7b928;
  --route-yellow-strong: #f2a900;
  --route-yellow-soft: #fff5d8;
  --route-shadow-sm: 0 12px 30px rgba(20, 43, 88, 0.08);
  --route-shadow-md: 0 24px 62px rgba(20, 43, 88, 0.13);
  --route-shadow-yellow: 0 18px 42px rgba(247, 185, 40, 0.24);
  position: relative;
  overflow: hidden;
  padding-block: clamp(28px, 3vw, 48px);
  background:
    radial-gradient(circle at 12% 8%, rgba(247, 185, 40, 0.16), transparent 30%),
    linear-gradient(180deg, #f7f9fd 0%, #eef4fb 52%, #f7f9fd 100%);
}

.route-calculator::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  block-size: 1px;
  background: linear-gradient(90deg, transparent, rgba(199, 216, 242, 0.95), transparent);
}

.route-calculator-shell {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--container-wide));
}

.route-calculator-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: center;
  max-inline-size: 1120px;
  margin-block-end: clamp(18px, 2.2vw, 30px);
}

.route-calculator-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 38px;
  padding-inline: 16px;
  border: 1px solid rgba(247, 185, 40, 0.34);
  border-radius: 999px;
  background: rgba(255, 247, 223, 0.78);
  color: #8a6100;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.route-calculator-head h2 {
  margin: 0;
  color: var(--route-ink);
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.06;
  letter-spacing: 0;
  text-align: left;
}

.route-calculator-head p {
  max-inline-size: 880px;
  margin: 8px 0 0;
  color: var(--route-muted);
  font-size: clamp(15px, 1.12vw, 17px);
  line-height: 1.45;
}

.route-calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(380px, 0.72fr);
  gap: clamp(18px, 2.2vw, 30px);
  align-items: start;
}

.route-map-card,
.route-panel {
  min-width: 0;
  border: 1px solid rgba(204, 216, 235, 0.82);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 252, 255, 0.9));
  box-shadow: var(--route-shadow-md);
}

.route-map-card {
  display: grid;
  gap: 18px;
  padding: clamp(14px, 1.6vw, 22px);
}

.route-map-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: clamp(4px, 1vw, 10px);
}

.route-map-topline div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.route-map-topline span {
  color: var(--route-muted);
  font-size: 13px;
  font-weight: 700;
}

.route-map-topline strong {
  color: var(--route-ink);
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-map-focus,
.route-map-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(210, 221, 239, 0.9);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--route-shadow-sm);
  color: var(--route-blue);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.route-map-focus {
  position: relative;
  flex: 0 0 auto;
  inline-size: 46px;
  block-size: 46px;
  border-radius: 16px;
}

.route-map-focus::after {
  content: attr(data-tooltip);
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 10px);
  min-inline-size: max-content;
  padding: 8px 11px;
  border: 1px solid rgba(215, 225, 242, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--route-ink);
  box-shadow: 0 14px 34px rgba(20, 43, 88, 0.14);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.route-map-focus:hover::after,
.route-map-focus:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.route-map-focus svg {
  inline-size: 22px;
  block-size: 22px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-map-focus:hover,
.route-map-controls button:hover {
  transform: translateY(-2px);
  border-color: rgba(247, 185, 40, 0.72);
  box-shadow: 0 18px 38px rgba(20, 43, 88, 0.13);
  background: #ffffff;
}

.route-map-frame {
  position: relative;
  block-size: clamp(390px, 54vh, 610px);
  max-block-size: calc(100vh - 280px);
  min-block-size: 390px;
  overflow: hidden;
  border-radius: 28px;
  background: #edf3ea;
  isolation: isolate;
}

.route-map,
.route-map-fallback,
.route-map-frame::after {
  position: absolute;
  inset: 0;
}

.route-map {
  z-index: 1;
  cursor: crosshair;
}

.route-map.is-ready + .route-map-fallback {
  opacity: 0;
}

.route-map-frame::after {
  content: "";
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at 56% 44%, transparent 0 34%, rgba(255, 255, 255, 0.18) 58%, rgba(255, 255, 255, 0.34) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.1));
  mix-blend-mode: screen;
}

.route-map-fallback {
  z-index: 0;
  overflow: hidden;
  opacity: 1;
  cursor: crosshair;
  background:
    linear-gradient(32deg, rgba(236, 242, 230, 0.9), rgba(255, 250, 238, 0.88)),
    radial-gradient(circle at 20% 18%, rgba(146, 200, 144, 0.34), transparent 28%),
    radial-gradient(circle at 78% 70%, rgba(147, 191, 222, 0.26), transparent 26%);
  transition: opacity 420ms ease;
}

.route-map-grid {
  position: absolute;
  inset: -12%;
  opacity: 0.62;
  background:
    linear-gradient(72deg, transparent 0 46%, rgba(245, 183, 42, 0.28) 47% 48%, transparent 49%),
    linear-gradient(118deg, transparent 0 42%, rgba(245, 183, 42, 0.2) 43% 44%, transparent 45%),
    linear-gradient(0deg, transparent 0 48%, rgba(145, 178, 206, 0.18) 49% 50%, transparent 51%),
    linear-gradient(90deg, transparent 0 48%, rgba(145, 178, 206, 0.16) 49% 50%, transparent 51%);
  background-size: 280px 210px, 240px 220px, 92px 92px, 92px 92px;
  transform: rotate(-3deg) scale(1.08);
}

.route-map-loader {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 22px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-block-size: 44px;
  padding-inline: 16px;
  border: 1px solid rgba(222, 230, 242, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--route-shadow-sm);
  color: var(--route-blue);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.route-map-loader.is-hidden {
  opacity: 0;
  transform: translate(-50%, -8px);
  pointer-events: none;
}

.route-map-loader span {
  inline-size: 14px;
  block-size: 14px;
  border: 2px solid rgba(247, 185, 40, 0.24);
  border-block-start-color: var(--route-yellow);
  border-radius: 50%;
  animation: routeSpin 860ms linear infinite;
}

.route-map-loader strong {
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.route-map-controls {
  position: absolute;
  inset-inline-start: 24px;
  inset-block-start: 50%;
  z-index: 5;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
}

.route-map-controls button {
  inline-size: 48px;
  block-size: 48px;
  border-radius: 16px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.route-stat-grid {
  position: absolute;
  inset-inline: 28px;
  inset-block-end: 28px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.route-stat-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  min-width: 0;
  min-block-size: 76px;
  padding: 13px 15px;
  border: 1px solid rgba(222, 230, 242, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(20, 43, 88, 0.12);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.route-stat-icon {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 42px;
  block-size: 42px;
  border-radius: 14px;
  background: rgba(255, 246, 218, 0.95);
  color: #a36d00;
}

.route-stat-icon svg {
  inline-size: 24px;
  block-size: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-stat-card span:not(.route-stat-icon) {
  color: var(--route-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.route-stat-card strong {
  color: var(--route-ink);
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.1;
}

.route-map-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(204, 216, 235, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
}

.route-map-benefits div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px 18px;
}

.route-map-benefits div + div {
  border-inline-start: 1px solid rgba(204, 216, 235, 0.72);
}

.route-map-benefits strong {
  color: var(--route-ink);
  font-size: 15px;
  line-height: 1.2;
}

.route-map-benefits span {
  color: var(--route-muted);
  font-size: 13px;
  line-height: 1.35;
}

.route-panel {
  position: sticky;
  inset-block-start: 96px;
  display: grid;
  gap: 10px;
  padding: clamp(12px, 1.2vw, 18px);
}

.route-panel-section,
.route-price-card {
  min-width: 0;
  border: 1px solid rgba(214, 224, 240, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 30px rgba(20, 43, 88, 0.06);
}

.route-panel-section {
  padding: clamp(13px, 1.1vw, 17px);
}

.route-panel-section:first-child {
  padding: clamp(11px, 0.9vw, 14px);
}

.route-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-end: 10px;
}

.route-panel-section:first-child .route-panel-title {
  margin-block-end: 7px;
}

.route-panel-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 30px;
  block-size: 30px;
  border-radius: 10px;
  background: var(--route-yellow-soft);
  color: #9a6500;
  font-size: 14px;
  font-weight: 900;
}

.route-panel-title h3 {
  margin: 0;
  color: var(--route-ink);
  font-size: 18px;
  line-height: 1.2;
}

.route-panel-section-collapsible .route-panel-title {
  margin-block-end: 0;
  flex-wrap: wrap;
}

.route-panel-choice {
  min-width: 0;
  max-inline-size: min(44%, 210px);
  margin-inline-start: auto;
  padding: 7px 10px;
  overflow: hidden;
  border: 1px solid rgba(247, 185, 40, 0.48);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 249, 232, 0.98), rgba(255, 237, 179, 0.74));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  color: #8a6100;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-section-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 34px;
  block-size: 34px;
  border: 1px solid rgba(208, 220, 238, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #8a6100;
  cursor: pointer;
  transition: transform 170ms ease, border-color 170ms ease, background-color 170ms ease, box-shadow 170ms ease;
}

.route-section-toggle:hover,
.route-section-toggle:focus-visible {
  border-color: rgba(247, 185, 40, 0.9);
  background: rgba(255, 247, 223, 0.98);
  box-shadow: 0 10px 24px rgba(247, 185, 40, 0.14);
}

.route-section-toggle svg {
  inline-size: 18px;
  block-size: 18px;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 170ms ease;
}

.route-panel-section-collapsible:not(.is-collapsed) .route-section-toggle svg {
  transform: rotate(180deg);
}

.route-collapsible-body {
  margin-block-start: 12px;
}

.route-panel-section-collapsible.is-collapsed .route-collapsible-body {
  display: none;
}

.route-address-list {
  display: grid;
  gap: 10px;
}

.route-panel-section:first-child .route-address-list {
  gap: 7px;
}

.route-address-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.route-panel-section:first-child .route-address-field {
  gap: 4px;
}

.route-address-field label {
  color: var(--route-muted);
  font-size: 13px;
  font-weight: 700;
}

.route-panel-section:first-child .route-address-field label {
  font-size: 12px;
}

.route-address-control {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-block-size: 58px;
  padding: 8px 10px 8px 12px;
  border: 1px solid rgba(208, 220, 238, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(20, 43, 88, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.route-panel-section:first-child .route-address-control {
  min-block-size: 48px;
  padding: 6px 8px 6px 10px;
  border-radius: 16px;
}

.route-address-control:focus-within {
  border-color: rgba(247, 185, 40, 0.84);
  box-shadow: 0 0 0 4px rgba(247, 185, 40, 0.16), 0 14px 34px rgba(20, 43, 88, 0.1);
}

.route-address-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 34px;
  block-size: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd66b, var(--route-yellow));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.route-panel-section:first-child .route-address-label {
  inline-size: 30px;
  block-size: 30px;
  font-size: 13px;
}

.route-address-control input {
  min-width: 0;
  inline-size: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--route-ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
}

.route-address-control input::placeholder {
  color: #9ba6b8;
}

.route-address-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 34px;
  block-size: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(230, 237, 248, 0.74);
  color: #6a7485;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.route-panel-section:first-child .route-address-remove {
  inline-size: 30px;
  block-size: 30px;
}

.route-address-remove:hover {
  transform: scale(1.04);
  background: rgba(255, 239, 196, 0.95);
  color: #8a6100;
}

.route-add-address {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  inline-size: 100%;
  min-block-size: 48px;
  margin-block-start: 12px;
  border: 1px dashed rgba(247, 185, 40, 0.72);
  border-radius: 16px;
  background: rgba(255, 248, 228, 0.72);
  color: #8a6100;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.route-panel-section:first-child .route-add-address {
  min-block-size: 42px;
  margin-block-start: 9px;
  border-radius: 14px;
  font-size: 15px;
}

.route-add-address:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 169, 0, 0.95);
  background: rgba(255, 244, 211, 0.96);
}

.route-add-address span {
  font-size: 22px;
  line-height: 1;
}

.route-vehicle-list {
  display: grid;
  gap: 10px;
  max-block-size: clamp(320px, 36vh, 356px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 4px 2px 2px;
  scrollbar-color: rgba(247, 185, 40, 0.62) rgba(232, 239, 249, 0.9);
  scrollbar-width: thin;
}

.route-vehicle-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-block-size: 78px;
  padding: 9px 10px;
  border: 1px solid rgba(208, 220, 238, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.route-vehicle-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(20, 43, 88, 0.1);
}

.route-vehicle-card.is-active {
  border-color: rgba(247, 185, 40, 0.96);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 231, 0.9));
  box-shadow: 0 0 0 4px rgba(247, 185, 40, 0.12), var(--route-shadow-yellow);
}

.route-vehicle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 58px;
  block-size: 58px;
  border: 1px solid rgba(223, 231, 244, 0.96);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(245, 249, 255, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.82), 0 10px 22px rgba(20, 43, 88, 0.08);
  color: var(--route-blue);
}

.route-vehicle-icon svg {
  inline-size: 34px;
  block-size: 34px;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-vehicle-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.route-vehicle-main strong {
  color: var(--route-ink);
  font-size: 16px;
  line-height: 1.15;
}

.route-vehicle-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--route-muted);
  font-size: 12px;
  font-weight: 700;
}

.route-vehicle-price {
  display: grid;
  justify-items: end;
  gap: 4px;
  white-space: nowrap;
}

.route-vehicle-price strong {
  color: #d99400;
  font-size: 18px;
  line-height: 1.1;
}

.route-vehicle-price span {
  color: var(--route-muted);
  font-size: 12px;
  font-weight: 700;
}

.route-loader-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.route-loader-chip {
  flex: 1 1 auto;
  min-inline-size: max-content;
  min-block-size: 44px;
  padding-inline: 14px;
  border: 1px solid rgba(208, 220, 238, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #4b5870;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.route-loader-chip:hover,
.route-loader-chip.is-active {
  transform: translateY(-1px);
  border-color: rgba(247, 185, 40, 0.9);
  background: rgba(255, 247, 223, 0.96);
  box-shadow: 0 12px 26px rgba(247, 185, 40, 0.14);
  color: #8a6100;
}

.route-price-card {
  display: grid;
  gap: 12px;
  padding: clamp(15px, 1.35vw, 20px);
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 10%, rgba(247, 185, 40, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 255, 0.92));
}

.route-price-label {
  color: var(--route-muted);
  font-size: 13px;
  font-weight: 800;
}

.route-price {
  color: #d99400;
  font-size: clamp(36px, 3.2vw, 50px);
  line-height: 0.98;
  letter-spacing: 0;
  transition: opacity 160ms ease, transform 160ms ease;
}

.route-price.is-updating {
  opacity: 0.62;
  transform: translateY(-3px);
}

.route-price-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-price-meta span {
  display: inline-flex;
  align-items: center;
  min-block-size: 30px;
  padding-inline: 10px;
  border-radius: 999px;
  background: rgba(239, 244, 252, 0.9);
  color: #4f5f78;
  font-size: 12px;
  font-weight: 800;
}

.route-cost-breakdown {
  display: grid;
  gap: 8px;
  padding-block: 4px;
}

.route-cost-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--route-muted);
  font-size: 13px;
  line-height: 1.3;
}

.route-cost-row strong {
  color: var(--route-ink);
  white-space: nowrap;
}

.route-price-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(247, 185, 40, 0.26);
  border-radius: 16px;
  background: rgba(255, 248, 228, 0.64);
}

.route-price-note span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 22px;
  block-size: 22px;
  border-radius: 50%;
  background: var(--route-yellow);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.route-price-note p,
.route-offer-note {
  margin: 0;
  color: #697789;
  font-size: 12px;
  line-height: 1.45;
}

.route-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-block-size: 58px;
  inline-size: 100%;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffd56c, var(--route-yellow));
  box-shadow: 0 20px 44px rgba(247, 185, 40, 0.28);
  color: #251b00;
  font: inherit;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.route-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(247, 185, 40, 0.34);
  filter: saturate(1.04);
}

.route-cta svg {
  inline-size: 22px;
  block-size: 22px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ymaps-2-1-79-suggest,
.ymaps-2-1-79-search__suggest {
  overflow: hidden;
  border-radius: 16px !important;
  box-shadow: 0 20px 50px rgba(20, 43, 88, 0.16) !important;
}

@keyframes routeSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 1600px) {
  .route-calculator-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(430px, 0.68fr);
  }
}

@media (max-width: 1280px) {
  .route-calculator-grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(360px, 0.78fr);
  }

  .route-map-frame {
    block-size: clamp(410px, 56vh, 560px);
    min-block-size: 390px;
  }

  .route-vehicle-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .route-vehicle-price {
    grid-column: 2;
    justify-items: start;
  }
}

@media (max-width: 1024px) {
  .route-calculator-head,
  .route-calculator-grid {
    grid-template-columns: 1fr;
  }

  .route-panel {
    position: static;
  }

  .route-map-frame {
    block-size: 520px;
    max-block-size: none;
    min-block-size: 500px;
  }

  .route-vehicle-list {
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: initial;
    max-block-size: 356px;
    overflow-x: hidden;
    overflow-y: auto;
    padding-block-end: 6px;
    overscroll-behavior-inline: contain;
    scroll-snap-type: none;
    scrollbar-width: thin;
  }

  .route-vehicle-card {
    scroll-snap-align: none;
  }
}

@media (max-width: 768px) {
  .route-calculator {
    padding-block: 56px;
  }

  .route-calculator-head {
    gap: 14px;
    margin-block-end: 22px;
  }

  .route-calculator-head h2 {
    font-size: 34px;
  }

  .route-map-card,
  .route-panel {
    border-radius: 26px;
  }

  .route-map-frame {
    block-size: 520px;
    min-block-size: 500px;
    border-radius: 22px;
  }

  .route-map-topline {
    align-items: flex-start;
  }

  .route-map-controls {
    inset-inline-start: 14px;
    inset-block-start: 92px;
    transform: none;
  }

  .route-map-controls button {
    inline-size: 42px;
    block-size: 42px;
    border-radius: 14px;
  }

  .route-stat-grid {
    inset-inline: 14px;
    inset-block-end: 14px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .route-stat-card {
    min-block-size: 68px;
    padding: 12px 14px;
    border-radius: 17px;
  }

  .route-stat-icon {
    inline-size: 36px;
    block-size: 36px;
    border-radius: 12px;
  }

  .route-map-benefits {
    grid-template-columns: 1fr;
  }

  .route-map-benefits div + div {
    border-block-start: 1px solid rgba(204, 216, 235, 0.72);
    border-inline-start: 0;
  }
}

@media (max-width: 560px) {
  .route-calculator-shell {
    width: min(calc(100% - 24px), var(--container-wide));
  }

  .route-calculator-head h2 {
    font-size: 30px;
  }

  .route-calculator-head p {
    font-size: 15px;
  }

  .route-map-card,
  .route-panel {
    padding: 12px;
    border-radius: 22px;
  }

  .route-map-frame {
    block-size: 500px;
    min-block-size: 480px;
    border-radius: 18px;
  }

  .route-map-topline strong {
    font-size: 17px;
  }

  .route-panel-section,
  .route-price-card {
    border-radius: 20px;
  }

  .route-panel-choice {
    order: 4;
    flex-basis: 100%;
    max-inline-size: 100%;
    margin-inline-start: 40px;
  }

  .route-address-control {
    min-block-size: 56px;
    border-radius: 16px;
  }

  .route-address-control input {
    font-size: 14px;
  }

  .route-vehicle-list {
    max-block-size: 344px;
  }

  .route-vehicle-card {
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    padding: 10px;
  }

  .route-vehicle-icon {
    inline-size: 54px;
    block-size: 54px;
  }

  .route-vehicle-price {
    grid-column: 2;
    justify-items: start;
  }

  .route-loader-chip {
    flex-basis: calc(50% - 6px);
    min-inline-size: 0;
  }

  .route-price {
    font-size: 42px;
  }
}

@media (max-width: 375px) {
  .route-calculator-shell {
    width: min(calc(100% - 20px), var(--container-wide));
  }

  .route-calculator-head h2 {
    font-size: 28px;
  }

  .route-map-frame {
    block-size: 490px;
    min-block-size: 460px;
  }

  .route-panel-section,
  .route-price-card {
    padding: 14px;
  }

  .route-loader-chip {
    flex-basis: 100%;
  }
}

@media (max-width: 330px) {
  .route-calculator-shell {
    width: min(calc(100% - 16px), var(--container-wide));
  }

  .route-calculator-head h2 {
    font-size: 26px;
  }

  .route-map-card,
  .route-panel {
    padding: 10px;
  }

  .route-map-frame {
    block-size: 470px;
    min-block-size: 440px;
  }

  .route-address-control {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .route-address-remove {
    grid-column: 2;
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-map-loader span {
    animation: none;
  }

  .route-map-focus,
  .route-map-controls button,
  .route-vehicle-card,
  .route-loader-chip,
  .route-cta,
  .route-add-address {
    transition: none;
  }
}
