@media (min-width: 701px) {
  .active-order-tools {
    position: fixed;
    top: 108px;
    right: 24px;
    z-index: 70;
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
  }

  .active-order-tools .active-order-return {
    position: static;
  }

  .left-site-tools {
    top: 108px;
    left: 24px;
    gap: 8px;
  }

  #siteInfoButton {
    width: 42px;
    height: 42px;
    min-height: 42px;
  }

  .site-tools {
    position: static;
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 6px;
  }

  .site-tools a,
  .site-tools button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid rgba(35, 34, 31, 0.12);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 10px 28px rgba(35, 34, 31, 0.08);
    font-size: 12px;
    font-weight: 800;
  }

  .site-tools button img {
    width: 18px;
    height: 18px;
  }

  .taxi-workspace,
  .taxi-workspace:has([data-view="details"].active) {
    height: 100dvh;
    align-items: start;
    justify-items: center;
    padding: 168px 28px 28px;
  }

  .booking-card,
  .taxi-workspace:has([data-view="details"].active) .booking-card {
    width: min(760px, 100%);
    height: calc(100dvh - 196px);
    max-height: 960px;
    min-height: 0;
    padding: 28px;
    overflow: clip;
  }

  .view[data-view="tariff"].active {
    height: 100%;
    grid-template-rows: minmax(0, 1fr) 210px auto;
    gap: 16px;
  }

  .view[data-view="tariff"] .route-planner {
    height: auto;
    max-height: none;
    min-height: 0;
    padding-right: 4px;
  }

  .view[data-view="tariff"] .tariff-strip {
    height: 210px;
    min-height: 210px;
    margin: 0 -28px;
    padding: 0 28px 8px;
  }

  .view[data-view="tariff"] .tariff-card {
    height: 202px;
    min-height: 202px;
  }

  .tariff-footer {
    grid-template-rows: 48px 70px;
  }

  .details-form {
    height: 100%;
  }

  .view[data-view="waiting"] .waiting-state,
  .view[data-view="assigned"] .assigned-state {
    width: min(620px, 100%);
    min-height: 100%;
    margin-inline: auto;
  }
}

@media (min-width: 1100px) {
  .taxi-workspace,
  .taxi-workspace:has([data-view="details"].active) {
    padding: 168px 48px 36px;
  }

  .booking-card,
  .taxi-workspace:has([data-view="details"].active) .booking-card {
    width: min(1180px, 100%);
    height: min(760px, calc(100dvh - 204px));
    max-height: none;
    padding: 30px;
  }

  .view[data-view="tariff"].active {
    display: grid;
    grid-template-columns: minmax(360px, 0.88fr) minmax(0, 1.12fr);
    grid-template-rows: 300px auto;
    column-gap: 30px;
    row-gap: 18px;
    align-content: center;
  }

  .view[data-view="tariff"] .route-planner {
    grid-column: 1;
    grid-row: 1 / -1;
    padding: 4px 30px 4px 0;
    border-right: 1px solid rgba(35, 34, 31, 0.09);
  }

  .view[data-view="tariff"] .tariff-strip {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: 300px;
    min-height: 300px;
    margin: 0;
    padding: 0 0 8px;
    grid-auto-columns: minmax(360px, 86%);
  }

  .view[data-view="tariff"] .tariff-card {
    height: 292px;
    min-height: 292px;
    grid-template-columns: minmax(190px, 48%) minmax(0, 1fr);
    padding: 24px;
  }

  .view[data-view="tariff"] .tariff-card img {
    height: 160px;
  }

  .view[data-view="tariff"] .tariff-footer {
    grid-column: 2;
    grid-row: 2;
    grid-template-rows: 48px 70px;
  }

  .view[data-view="details"].active {
    height: 100%;
  }

  .view[data-view="details"] .details-form {
    grid-template-columns: minmax(350px, 0.9fr) minmax(430px, 1.1fr);
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    column-gap: 28px;
    row-gap: 14px;
  }

  .view[data-view="details"] .settings-head {
    grid-column: 1 / -1;
  }

  .view[data-view="details"] .settings-tariff {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    align-content: center;
    margin: 0;
  }

  .view[data-view="details"] .settings-car {
    height: min(280px, 34dvh);
  }

  .view[data-view="details"] .settings-options {
    grid-column: 2;
    grid-row: 2;
    min-height: 0;
    margin: 0;
    padding-right: 4px;
    overflow-y: auto;
  }

  .view[data-view="details"] .details-form > .checkout,
  .view[data-view="details"] .details-form > .status {
    grid-column: 1 / -1;
    margin: 0;
  }

  .view[data-view="details"] .details-form > .checkout {
    grid-row: 3;
  }

  .view[data-view="details"] .details-form > .status {
    grid-row: 4;
  }
}

.view[data-view="tariff"] .tariff-card.service-tariff img.tariff-service-icon,
.view[data-view="tariff"] .tariff-card.service-tariff.active img.tariff-service-icon {
  position: absolute;
  top: 13px;
  right: 13px;
  bottom: auto;
  left: auto;
  z-index: 4;
  width: 40px;
  height: 40px;
  padding: 9px;
  border: 1px solid rgba(35, 34, 31, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  object-fit: contain;
  box-shadow: 0 6px 18px rgba(35, 34, 31, 0.08);
  transform: none;
}

.view[data-view="tariff"] .tariff-card.service-tariff > span {
  max-width: calc(100% - 76px);
  line-height: 1.08;
}

.settings-controls .payment-row .payment-choice {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-controls {
  min-height: max-content;
  align-self: start;
}

@media (max-width: 370px) {
  .settings-controls .payment-row .payment-choice span {
    padding-inline: 4px;
    font-size: 11px;
  }
}

@media (max-width: 700px) {
  .road-kings-logo {
    width: calc(100% - 24px);
    font-size: clamp(26px, 7vw, 32px);
  }

  .site-tools {
    position: static;
    display: flex;
  }

  .site-tools button {
    display: grid;
    width: 40px;
    height: 40px;
    min-height: 40px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(35, 34, 31, 0.12);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 10px 28px rgba(35, 34, 31, 0.1);
    font-size: 0;
  }

  .site-tools button img {
    width: 18px;
    height: 18px;
  }
}
