:root {
  --bg: #f1f3f7;
  --topbar: #e1e4e9;
  --surface: #ffffff;
  --hero-surface: #f4f5f5;
  --pill-bg: #f4f5f5;
  --text: #1a1a1a;
  --muted: #9a9a9a;
  --primary: #eaa30a;
  --primary-on: #ffffff;
  --link: #2329a6;
  --headline-blue: #2329a6;
  --error: #fe1100;
  --radius: 16px;
  --shell-pad: clamp(16px, 5vw, 120px);
  /* Checkout / shipment wizard: wider content than generic .shell (1200px) */
  --checkout-max: 1200px;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

a {
    color: var(--link);
}

.search-widget__combo .search-widget__field--error:first-child {
    border-radius: 16px 0 0 16px;
}
.search-widget__combo .search-widget__field--error:last-child {
    border-radius: 0;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page--login {
  background: var(--bg);
  gap: 43px;
}

.topbar {
  background: var(--topbar);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 120px;
}

.topbar--mobile {
  display: none;
  height: auto;
  min-height: 60px;
  padding: 12px 27px;
  justify-content: center;
  box-sizing: border-box;
}

.topbar-mobile__inner {
  position: relative;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
}

.mob-logo-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.mob-logo-wrap a {
  pointer-events: auto;
}

.mob-logo-wrap__logo {
  display: block;
  height: 22px;
  width: auto;
}

.mob-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--link);
  cursor: pointer;
  flex-shrink: 0;
}

/* —— Login (1334:46310) —— */
.login-main {
  flex: 1 0 auto;
  display: flex;
  justify-content: center;
  padding: 0 var(--shell-pad);
}

.login-card {
  width: 505px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.login-title {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.login-form, .reset-password-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login2-body .login-form .acct-otp__box {
    background: #fff;
}

.login-actions {
  margin-top: 8px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.login-submit {
  width: 100%;
}

.login-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
}

.login-link:hover {
  text-decoration: underline;
}

.login-footnote {
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 16px;
}

.login2-card {
  gap: 24px;
}

.login2-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login2-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.login2-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.login2-subtitle {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

.login2-rules {
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

.login2-rules p {
  margin: 0 0 6px;
}

.login2-rules ul {
  margin: 0;
  padding-left: 24px;
}

.login2-rules li {
  margin: 0;
}

.login2-resend {
  margin: 0;
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  font-size: 16px;
}

.login2-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--link);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  justify-content: center;
}

.login2-back img {
  width: 24px;
  height: 24px;
  display: block;
}

.login-bottombar {
  margin-top: auto;
  padding: 32px 0;
  border-top-left-radius: 100px;
  border-top-right-radius: 100px;
}

.login-bottombar__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 120px;
  height: 119px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.login-bottombar__copy {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

.login-bottombar__nav {
  display: flex;
  gap: 16px;
}

.login-bottombar__link {
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
}

.login-bottombar__link:hover {
  color: var(--link);
}

.mob-icon-btn--link {
  text-decoration: none;
}

.mob-menu-icon {
  display: block;
}

/* Mobile bottom sheet menu (762:802) */
.mobmenu[hidden] {
  display: none !important;
}

.mobmenu {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.mobmenu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(1px);
}

.mobmenu__sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 60px;
  background: var(--surface);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  padding: 8px 0 32px;
  box-shadow: -1px -0.5px 2px rgba(0, 0, 0, 0.1), 1px 1.5px 1px rgba(0, 0, 0, 0.1);
}

.mobmenu__handle {
  width: 74px;
  height: 4px;
  border-radius: 16px;
  background: #eeeeee;
  margin: 0 auto 19px;
}

.mobmenu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 27px 6px;
}

.mobmenu__close {
  width: 24px;
  height: 24px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(26, 26, 26, 0.55);
}

.mobmenu__close img {
  width: 24px;
  height: 24px;
  display: block;
}

.mobmenu__list {
  list-style: none;
  margin: 0;
  padding: 0 27px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobmenu__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
  line-height: 1.1;
}

.mobmenu__link:hover {
  background: rgba(238, 238, 238, 0.7);
}

.mobmenu__ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}

.topbar__inner {
  width: 1198px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.topbar--home {
  background: #DFEDF4;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand__homelink {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.brand__logo {
  width: 158.715px;
  height: 32.006px;
  display: block;
}

.brand__divider {
  width: 1px;
  height: 31.177px;
  display: block;
}

.brand__tagline {
  margin: 0;
  font-weight: 600;
  font-size: 12.666px;
  letter-spacing: -0.1267px;
  line-height: 0.95;
  white-space: normal;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topnav__link {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
}

.content {
  flex: 1 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 43px;
}

.card {
  width: 505px;
  max-width: calc(100% - 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.title {
  margin: 0;
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fineprint {
  margin: 0;
  text-align: center;
  color: rgba(20, 20, 20, 0.5);
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
}

.fineprint__link {
  color: var(--primary);
  text-decoration: none;
}

.signin {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.signin__text {
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
}

.signin__link {
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  color: var(--link);
  text-decoration: none;
}

.bottombar {
  flex: 0 0 auto;
  padding: 32px 120px;
  border-top-left-radius: 100px;
  border-top-right-radius: 100px;
  overflow: hidden;
}

.bottombar__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.bottombar__copyright {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.bottomnav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.bottomnav__link {
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Home landing (619:1317) ——— */

.page--home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar--home {
  height: auto;
  min-height: 62px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-flag {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* —— Шапка главной: флаг + валюта + вход одной капсулой —— */

.home-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
}

.home-actions__flag {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.home-actions__currency {
  position: relative;
  display: flex;
}

.home-actions__currency-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.08);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.home-actions__currency-btn:hover {
  background: rgba(26, 26, 26, 0.14);
}

.ab-menu.home-actions__menu {
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  background: var(--surface);
  min-width: 0;
  width: max-content;
}

.ab-menu__item.home-actions__menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 15px;
}

.home-actions__menu-item:hover {
  background: var(--bg);
}

.home-actions__menu-item--active {
  font-weight: 700;
}

.home-actions__menu-sym {
  width: 12px;
  text-align: center;
  font-weight: 700;
}

.home-actions__signin {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  height: 40px;
  padding: 0 64px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.home-actions__signin:hover {
  background: #f7f8f9;
}

.home-actions__signin img {
  display: block;
  width: 16px;
  height: 20px;
  flex-shrink: 0;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 38px;
  padding: 8px 24px 8px 20px;
  border: none;
  border-radius: 10px;
  background: var(--pill-bg);
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.pill-btn--link {
  text-decoration: none;
  color: inherit;
}

.pill-btn__icon {
  flex-shrink: 0;
}

.home-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 100%;
}

.hero {
  position: relative;
  padding: 100px 0 200px;
  background: linear-gradient(180deg, #DFEDF4 0%, var(--hero-surface) 100%);
  overflow: hidden;
}

.hero__bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.hero__decor {
  position: absolute;
  left: 50%;
  top: 120px;
  transform: translate(-50%, -50%);
  width: min(1464px, 100%);
  max-width: 1464px;
  height: auto;
  opacity: 0.45;
  object-fit: contain;
}

.hero__line {
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
  object-fit: fill;
  opacity: 0.4;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 0;
}

.footer-home .shell {
  max-width: 100%;
}

.shell--narrow {
  max-width: 640px;
}

.hero__title {
  margin: 0 auto 52px;
  max-width: 1200px;
  text-align: center;
  font-weight: 800;
  font-size: clamp(26px, 4.2vw, 48px);
  line-height: 1.08;
  color: var(--headline-blue);
  overflow-wrap: break-word;
  hyphens: auto;
}

.hero__title-line {
  display: block;
}

.hero__title-highlight {
  color: var(--primary);
}

.hero__rest {
  color: var(--headline-blue);
}

.search-widget {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}

.search-widget__combo {
  flex: 1 1 min(620px, 100%);
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  min-height: 72px;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  background: var(--surface);
  min-width: 0;
  max-width: 100%;
}

.search-widget__field {
  flex: 1 1 140px;
  position: relative;
  padding: 0 18px;
  border-right: 1px solid var(--primary);
  margin: 0;
  min-width: 0;
  align-self: stretch;
}

.search-widget__field:last-of-type {
  /*border-right: none;*/
}

.search-widget__field--select {
  padding-right: 44px;
}

.search-widget__input,
.search-widget__select {
  width: 100%;
  height: 100%;
  margin: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  color: var(--text);
  outline: none;
  padding: 22px 0 6px;
  box-sizing: border-box;
}

.search-widget__field--select .search-widget__select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.search-widget__float {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 22px;
  font-weight: 400;
  color: var(--muted);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 36px);
  transition:
    top 0.15s ease,
    transform 0.15s ease,
    font-size 0.15s ease,
    line-height 0.15s ease;
}

.search-widget__input:focus + .search-widget__float,
.search-widget__input:not(:placeholder-shown) + .search-widget__float,
.search-widget__select:focus + .search-widget__float,
.search-widget__select:valid + .search-widget__float {
  top: 12px;
  transform: translateY(0);
  font-size: 14px;
  line-height: 19px;
}

.search-widget__chev {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.search-widget__chev img {
  width: 12px;
  height: 8px;
  display: block;
}

/* layout-only override when ui-swap-btn lives inside the search combo */
.search-widget__swap {
  margin: 0 -16px;
  align-self: center;
}

.search-widget > .ui-btn {
  flex: 0 0 200px;
  align-self: stretch;
}

.band {
  padding: 0;
}

.band--muted {
  background: #f4f5f5;
}

.section-title {
  margin: 0 0 36px;
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.15;
  color: var(--headline-blue);
}

.section-title--center {
  text-align: center;
}

.section-title--accent {
  color: #eaa30a;
}

/* —— Universal slider (Today on LogiRates и т.п.) —— */

.ui-slider {
  position: relative;
}

.ui-slider__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 0 8px;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.ui-slider__track::-webkit-scrollbar {
  display: none;
}

.ui-slider__track:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.ui-slider__track--dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}

.ui-slider__track > * {
  scroll-snap-align: start;
}

.ui-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
  z-index: 2;
}

.ui-slider__arrow:hover {
  transform: translateY(-50%) scale(1.05);
}

.ui-slider__arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

.ui-slider__arrow--prev {
  left: -20px;
}

.ui-slider__arrow--prev img {
  transform: rotate(180deg);
}

.ui-slider__arrow--next {
  right: -20px;
}

.ui-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.ui-slider__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.2);
  cursor: pointer;
  transition:
    width 0.2s ease,
    background-color 0.2s ease;
}

.ui-slider__dot--active {
  width: 24px;
  border-radius: 999px;
  background: var(--primary);
}

/* —— Today on LogiRates: карточки предложений —— */

.deal-card {
  flex: 0 0 300px;
  max-width: 85vw;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.deal-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.deal-card__logo {
  flex-shrink: 0;
  width: 52px;
  height: 47px;
  object-fit: contain;
}

.deal-card__titles {
  min-width: 0;
}

.deal-card__name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

.deal-card__lead {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.deal-card__more {
  align-self: flex-start;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--link);
  cursor: pointer;
}

.deal-card__more:hover {
  text-decoration: underline;
}

.deal-card__facts,
.deal-card__details,
.deal-card__tags {
  list-style: none;
  margin: 0;
  padding: 0;
}

.deal-card__facts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.deal-fact {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
}

.deal-fact img {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  object-fit: contain;
  opacity: 0.75;
}

.deal-fact__arrow {
  color: var(--muted);
}

.deal-card__details {
  padding-top: 10px;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
  font-size: 13px;
  color: var(--text);
}

.deal-card__details li {
  margin-bottom: 6px;
}

.deal-card__details li:last-child {
  margin-bottom: 0;
}

.deal-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.deal-tag {
  padding: 4px 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  background: var(--pill-bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.deal-tag--more {
  border-style: dashed;
  color: var(--muted);
}

.deal-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
}

.deal-card__cta {
  flex: 1 1 auto;
  padding-inline: 20px;
}

.deal-card__price {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}

@media (max-width: 980px) {
  .ui-slider__arrow {
    display: none;
  }
}

/* —— Today on LogiRates: модалка предложения —— */

.deal-dialog {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  width: min(720px, calc(100dvw - 32px));
  max-width: 720px;
  margin: 60px auto;
  max-height: calc(100dvh - 80px);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 48px rgba(26, 26, 26, 0.18);
  overflow: auto;
  /* Плавный выход из top-layer (Chrome 117+, Safari 17.4+, FF 125+). */
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    overlay 0.18s ease allow-discrete,
    display 0.18s ease allow-discrete;
}

.deal-dialog[open] {
  opacity: 1;
  transform: translateY(0);
}

@starting-style {
  .deal-dialog[open] {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.deal-dialog::backdrop {
  background: rgba(26, 26, 26, 0);
  transition:
    background 0.18s ease,
    overlay 0.18s ease allow-discrete,
    display 0.18s ease allow-discrete;
}

.deal-dialog[open]::backdrop {
  background: rgba(26, 26, 26, 0.45);
}

@starting-style {
  .deal-dialog[open]::backdrop {
    background: rgba(26, 26, 26, 0);
  }
}

.deal-dialog__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.deal-dialog__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.deal-dialog__logo {
  flex-shrink: 0;
  width: 52px;
  height: 47px;
  object-fit: contain;
}

.deal-dialog__titles {
  min-width: 0;
  flex: 1 1 auto;
}

.deal-dialog__name {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.deal-dialog__lead {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.deal-dialog__x {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.deal-dialog__x:hover {
  color: var(--text);
}

.deal-dialog__facts,
.deal-dialog__tags {
  list-style: none;
  margin: 0;
  padding: 0;
}

.deal-dialog__facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deal-dialog__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.deal-dialog__text {
  font-size: 15px;
  line-height: 1.55;
  color: #404040;
}

.deal-dialog__text p {
  margin: 0 0 14px;
}

.deal-dialog__text p:last-child {
  margin-bottom: 0;
}

.deal-dialog__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}

.deal-dialog__price {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.deal-dialog__cta {
  min-width: 200px;
}

@media (max-width: 640px) {
  .deal-dialog {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 16px 16px 0 0;
    max-height: min(92dvh, 960px);
    transform: translateY(8px);
  }

  .deal-dialog[open] {
    transform: translateY(0);
  }

  @starting-style {
    .deal-dialog[open] {
      transform: translateY(8px);
    }
  }

  .deal-dialog__foot {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .deal-dialog__cta {
    width: 100%;
  }
}

/* —— Convenient for everyone: иконки на пунктирной волне —— */

.features {
  background: var(--bg);
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  position: relative;
  /* Волна проходит за иконками; ширина по контенту, высота по картинке. */
  background-image: url('./assets/mainpage/backround_stroke.svg');
  background-repeat: no-repeat;
  background-position: left -40px;
  background-size: 100% auto;
}

.feature-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Ступенчатое смещение по волне: 1-я и 3-я выше, 2-я и 4-я ниже. */
.feature-card:nth-child(1) {
  margin-top: 0;
}

.feature-card:nth-child(2) {
  margin-top: 0;
}

.feature-card:nth-child(3) {
  margin-top: 0;
}

.feature-card:nth-child(4) {
  margin-top: 0;
}

.feature-card__ico {
  display: block;
  width: 100px;
  height: 102px;
  margin-bottom: 20px;
  object-fit: contain;
}

.feature-card__text {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 22px;
  color: var(--link);
  max-width: 15em;
}

/* Шаги: на десктопе сетка 3 колонки, на мобильных — слайдер (см. медиазапрос). */
.steps-row .ui-slider__track {
  display: grid;
  grid-template-columns: repeat(3, 277px);
  justify-content: center;
  gap: 10px;
  overflow: visible;
  padding: 0;
  cursor: auto;
}

/* Слайдер только на мобильных: на десктопе прячем стрелки и точки. */
.ui-slider--mobile > .ui-slider__arrow,
.ui-slider--mobile > .ui-slider__dots {
  display: none;
}

.step-card {
  display: flex;
  width: 100%;
  max-width: 277px;
  min-height: 409px;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  background: #fff8e9;
  border-radius: 8px;
  padding: 26px 0 24px;
  justify-self: center;
}

.step-card--cool {
  background: #f4f4ff;
}

.step-card__badge {
  margin: 0;
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  color: rgba(26, 26, 26, 0.5);
}

.step-card__image {
  display: block;
  width: 100%;
  margin: 4px auto 10px;
  object-fit: contain;
  object-position: center;
}

.step-card__title {
  margin: 0;
  text-align: center;
  font-size: 18px;
  line-height: 20px;
  font-weight: 700;
  color: var(--link);
}

.audience-section {
  background: #f4f5f5;
}

.audience-section .section-title {
  margin-bottom: 26px;
}

.audience-slider .ui-slider__track {
  gap: 20px;
  padding-bottom: 12px;
}

.audience-slider .ui-slider__arrow {
  display: none;
}

.audience-card {
  position: relative;
  flex: 0 0 min(586px, calc(100vw - 48px));
  aspect-ratio: 778 / 490;
  overflow: hidden;
  border-radius: 8px;
  background-image: linear-gradient(90deg, rgba(9, 13, 91, 0.98) 0%, rgba(9, 13, 91, 0.9) 37%, rgba(9, 13, 91, 0.16) 63%, rgba(9, 13, 91, 0) 100%), var(--audience-image);
  background-position: center;
  background-size: cover;
  color: #fff;
  scroll-snap-align: start;
}

.audience-card__body {
  width: min(74%, 372px);
  height: 100%;
  padding: 36px 30px;
}

.audience-card__ttl {
  margin: 0 0 22px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.18;
}

.audience-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.audience-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.18;
  color: rgba(255, 255, 255, 0.94);
}

.audience-list__ico {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 8px;
}

.api-band {
  background: #f4f5f5;
}

.api-band__shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 133px;
  max-width: 575px;
  overflow: hidden;
  border-radius: 8px;
  padding: 20px 24px;
  background-image: url('./assets/mainpage/api.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.api-band__content {
  position: relative;
  z-index: 1;
  max-width: 320px;
}

.api-band__title {
  margin: 0 0 16px;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  color: var(--link);
}

.api-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.api-band__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 18px;
  border-radius: 8px;
  background: rgba(234, 163, 10, 0.08);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.api-band__btn--primary {
  background: var(--primary);
  color: var(--primary-on);
}

.api-band__icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 104px;
  height: 104px;
  flex: 0 0 auto;
}

.api-band__icon-base {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 10px;
}

.api-band__icon-box {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 42px;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
}

.footer-home {
  background: #f4f5f5;
  padding-top: 0;
}

.footer-home-panel {
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  padding: 38px 24px 52px;
  background-color: var(--surface);
  background-image: url('./assets/mainpage/background-footer-home.svg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.footer-home-panel__inner {
  margin: 0 auto;
}

.footer-home .section-title {
  margin-bottom: 14px;
}

.footer-home .lead .section-title {
  font-size: 24px;
  line-height: 1.18;
}

.faq-band {
  padding-top: 36px;
}

.lead-intro {
  text-align: center;
  margin: 0 auto 26px;
  max-width: 560px;
  font-size: 19px;
  font-weight: 400;
  line-height: 23px;
  color: rgba(26, 26, 26, 0.45);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 450px;
  max-width: 100%;
  margin: 0 auto;
}

.lead-form .ui-field {
  min-width: 0;
}

.lead-form .ui-field__inner {
  height: 52px;
  padding: 0 20px;
  background: #f4f4f4;
  border-radius: 8px;
}

.lead-form .ui-field__input {
  font-size: 17px;
  line-height: 22px;
}

.lead-form .ui-field__inner--float .ui-field__input {
  padding: 20px 0 4px;
}

.lead-form .ui-field__float {
  font-size: 17px;
  line-height: 22px;
  color: rgba(26, 26, 26, 0.38);
}

.lead-form .ui-field__inner--float .ui-field__input:focus + .ui-field__float,
.lead-form .ui-field__inner--float .ui-field__input:not(:placeholder-shown) + .ui-field__float {
  top: 6px;
  font-size: 13px;
  line-height: 15px;
}

.lead-form .ui-field__support--error {
  margin-top: 4px;
  font-size: 12px;
  line-height: 15px;
}

.lead-consent {
  margin: -2px auto 0;
  max-width: 420px;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  line-height: 15px;
  color: rgba(26, 26, 26, 0.42);
}

.lead-consent a {
  color: var(--primary);
  text-decoration: none;
}

.lead-form .ui-btn {
  height: 52px;
  min-height: 52px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
}

.lead-success {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(26, 143, 74, 0.18);
  border-radius: 8px;
  background: rgba(26, 143, 74, 0.08);
  color: #1a8f4a;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}

.faq {
  margin: 0;
}

.faq__item {
  border: 1px solid rgba(26, 26, 26, 0.1);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--surface);
}

.faq__toggle {
  width: 100%;
  text-align: left;
  padding: 14px 40px 14px 16px;
  border: none;
  background: var(--pill-bg);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.faq__toggle::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq__item--open .faq__toggle::after {
  transform: translateY(-20%) rotate(225deg);
}

.faq__item dd {
  margin: 0;
  padding: 12px 16px 18px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(26, 26, 26, 0.75);
  border-top: 1px solid rgba(26, 26, 26, 0.06);
}

.site-footer {
  flex-shrink: 0;
  padding: 40px 0 32px;
  background: var(--surface);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px 32px;
  align-items: start;
}

.site-footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col__ttl {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
}

.footer-col__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col__links a {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 14px;
  color: rgba(26, 26, 26, 0.7);
  text-decoration: none;
}

.footer-col__links a:hover {
  color: var(--link);
}

.footer-email {
  font-size: 16px;
  font-weight: 600;
  color: var(--link);
}

.footer-hours {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(26, 26, 26, 0.65);
}

.site-footer__copy {
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  font-size: 14px;
  color: rgba(26, 26, 26, 0.55);
}

.site-footer--home {
  padding: 0 0 42px;
  background: var(--surface);
}

.site-footer--home .site-footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 270px) 1fr;
  gap: 84px;
  align-items: start;
  padding-top: 22px;
  border-top: 1px solid rgba(26, 26, 26, 0.14);
}

.site-footer--home .site-footer__contact {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer__socials {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.site-footer__social {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--link);
}

.site-footer__social svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.site-footer--home .footer-email,
.site-footer--home .footer-phone {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--link);
  text-decoration: none;
}

.site-footer--home .footer-hours {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  color: var(--link);
}

.site-footer--home .footer-address {
  margin: auto 0 0;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(26, 26, 26, 0.48);
}

.site-footer--home .site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 78px;
}

.site-footer--home .footer-col__ttl {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

.site-footer--home .footer-col__links a {
  margin-bottom: 13px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  color: rgba(26, 26, 26, 0.56);
}

.site-footer--home .site-footer__copy {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(26, 26, 26, 0.48);
}

@media (max-width: 980px) {
  .topbar--desktop {
    display: none;
  }

  .topbar--mobile {
    display: flex;
  }

  .topbar--mobile.topbar {
    padding: 12px 27px;
    height: auto;
    min-height: 60px;
  }

  .topbar__inner {
    width: 100%;
  }

  .topnav {
    display: none;
  }

  .btn-muted {
      background: var(--muted);
  }

  .btn--surface {
    padding: 8px 20px;
  }

  .bottombar {
    display: none;
  }

  .content {
    flex: 1 0 auto;
    padding: 64px 27px 48px;
    align-items: stretch;
  }

  .card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    gap: 36px;
  }

  .title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
    max-width: 20rem;
  }

  .signin {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .signin__text,
  .signin__link {
    line-height: 1.3;
  }

  .page--home .hero {
    padding: 56px 0 40px;
  }

  .page--home .shell {
    padding-inline: 20px;
  }

  .page--home .hero__line {
    display: none;
  }

  .page--home .hero__decor {
    opacity: 0.22;
    top: 96px;
  }

  .search-widget__combo {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    flex-basis: auto;
    width: 100%;
  }

  .search-widget__field {
    flex: none;
    border-right: none;
    border-bottom: 1px solid rgba(234, 163, 10, 0.45);
    min-height: 64px;
  }

  .search-widget__field:last-of-type {
    border-bottom: none;
  }

  .search-widget__swap {
    margin: -16px auto;
    align-self: center;
  }

  .search-widget > .ui-btn {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }

  /* Мобильная версия блока: сетка 2×2, волна убирается. */
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 16px;
    background-image: none;
  }

  .feature-card:nth-child(1),
  .feature-card:nth-child(2),
  .feature-card:nth-child(3),
  .feature-card:nth-child(4) {
    margin-top: 0;
  }

  .feature-card__ico {
    width: 72px;
    height: 74px;
    margin-bottom: 12px;
  }

  .feature-card__text {
    font-size: 15px;
    line-height: 19px;
  }

  /* Шаги превращаются в слайдер: одна карточка на экран. */
  .steps-row .ui-slider__track {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    scroll-padding-inline: 0;
    padding: 4px 0 8px;
    cursor: grab;
  }

  .steps-row .step-card {
    flex: 0 0 min(277px, calc(100vw - 40px));
    max-width: 277px;
    scroll-snap-align: start;
  }

  .ui-slider--mobile > .ui-slider__dots {
    display: flex;
  }

  .audience-slider .ui-slider__track {
    gap: 16px;
  }

  .audience-card {
    flex-basis: min(340px, 86vw);
    min-height: 300px;
    aspect-ratio: 778 / 490;
  }

  .audience-card__body {
    width: 76%;
    padding: 22px 18px;
  }

  .audience-card__ttl {
    margin-bottom: 16px;
    font-size: 20px;
  }

  .audience-list {
    gap: 10px;
  }

  .audience-list li {
    gap: 8px;
    font-size: 12px;
  }

  .audience-list__ico {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .api-band__shell {
    align-items: center;
    min-height: 133px;
    padding: 18px 16px;
    background-position: center;
  }

  .api-band__content {
    max-width: calc(100% - 112px);
  }

  .api-band__title {
    font-size: 16px;
  }

  .api-band__actions {
    gap: 10px;
  }

  .api-band__btn {
    min-height: 32px;
    padding: 0 12px;
    font-size: 11px;
  }

  .api-band__icon {
    width: 96px;
    height: 96px;
    margin-right: 0;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer--home .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-inline: 20px;
  }

  .site-footer--home .site-footer__contact {
    min-height: auto;
  }

  .site-footer--home .footer-address {
    margin-top: 24px;
  }

  .site-footer--home .site-footer__cols {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .site-footer--home .site-footer__copy {
    position: static;
    margin-top: 8px;
  }

  .topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .login-title {
    font-size: 28px;
  }

  .login-bottombar__inner {
    padding: 0 27px;
    height: auto;
    min-height: 90px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .login-bottombar {
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
  }
}

@media (min-width: 981px) {
  .topbar--mobile {
    display: none;
  }

  .topbar--desktop {
    display: flex;
  }
}

/* —— Tariff / rates page (619:1965) —— */
.page--tariff {
  background: var(--bg);
}
.tariff-context.delivery-form-from-to,
.tariff-context.dash-context {
    background: var(--topbar);
    padding: 0;
}
.tariff-context {
  background: var(--hero-surface);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tariff-context__shell {
    margin: 0 auto;
    max-width: 1200px;
    padding: 12px 0 16px;
}

.tariff-searchline {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.tariff-searchline__combo {
  flex: 1 1 min(520px, 100%);
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  min-height: 56px;
}

.tariff-sl {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0px;
  padding: 7px 14px;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  cursor: text;
}

.tariff-sl:last-of-type {
  border-right: none;
}

.tariff-sl--dim {
  flex: 1 1 200px;
  cursor: pointer;
}

.tariff-sl--select {
  cursor: pointer;
}

.tariff-sl__lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tariff-sl__val {
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  width: 100%;
  padding: 0;
  min-width: 0;
}

.tariff-sl__val:focus {
  outline: none;
}

.tariff-sl:focus-within {
  box-shadow: inset 0 0 0 2px rgba(234, 163, 10, 0.35);
}

.tariff-sl__val--noborder {
  display: inline;
}

.tariff-sl__dimrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tariff-sl--select .tariff-sl__dimrow {
  position: relative;
}

.tariff-sl__sel {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  width: 100%;
  padding: 0 30px 0 0;
  margin: 0;
  cursor: pointer;
  outline: none;
}

.tariff-sl__chev {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.tariff-sl__sel:focus {
  outline: none;
}

.tariff-sl--select:focus-within {
  box-shadow: inset 0 0 0 2px rgba(234, 163, 10, 0.35);
}

.tariff-searchline__swap {
  flex: 0 0 auto;
  align-self: center;
  margin: 0 -4px;
}

.tariff-find {
  flex: 0 0 auto;
  min-width: 120px;
}

.tariff-main {
  flex: 1;
  padding: 20px var(--shell-pad) 48px;
}

.tariff-main__shell {
  max-width: 1198px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.tariff-filters {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 14px 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.filter-panel + .filter-panel {
  margin-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 12px;
}

.filter-panel__hdr {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}

.filter-panel__caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--muted);
  flex-shrink: 0;
  transition: transform 0.15s ease;
  transform-origin: 50% 35%;
}

.filter-panel__hdr[aria-expanded='false'] .filter-panel__caret {
  transform: rotate(-90deg);
}

.filter-panel__body[hidden] {
  display: none !important;
}

.filter-panel__body {
  padding: 4px 0 8px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  cursor: pointer;
  position: relative;
}

.filter-row input {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  appearance: none;
}

.filter-row__hint {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
}

.chk {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid #c5c8ce;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  pointer-events: none;
}

.filter-row input:focus-visible + .chk {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.filter-row input:checked + .chk {
  border-color: var(--link);
  background: var(--link);
}

.chk__mark {
  display: block;
  width: 6px;
  height: 10px;
  margin-top: -2px;
  border: solid var(--surface);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}

.filter-row input:checked + .chk .chk__mark {
  opacity: 1;
}

.filter-expand {
  margin-top: 6px;
  padding: 0;
  border: none;
  background: none;
  color: var(--link);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

.filter-switch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.filter-switch__input {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  appearance: none;
}

.filter-switch__ui {
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #d0d3d8;
  position: relative;
  transition: background 0.15s;
  pointer-events: none;
}

.filter-switch__ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s;
}

.filter-switch:has(.filter-switch__input:focus-visible) .filter-switch__ui {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.filter-switch:has(.filter-switch__input:checked) .filter-switch__ui {
  background: var(--link);
}

.filter-switch:has(.filter-switch__input:checked) .filter-switch__ui::after {
  transform: translateX(20px);
}

.tariff-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.tariff-toolchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--surface);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.tariff-toolchip--date {
  position: relative;
  overflow: hidden;
}

.tariff-toolchip--date .tariff-date-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  padding: 0;
  border: none;
  font-size: 16px;
}

.tariff-toolchip--date img {
  pointer-events: none;
}

.tariff-toolchip__text {
  font-weight: 600;
  pointer-events: none;
}

.tariff-sort__field {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.tariff-sort__control {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: auto;
  min-width: min(248px, 100%);
}

.tariff-sort__sel {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 10px 40px 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--surface);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  color: var(--text);
  margin: 0;
}

.tariff-sort__sel:focus {
  outline: 2px solid rgba(35, 41, 166, 0.35);
  outline-offset: 1px;
}

.tariff-sort__chev {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.tariff-sort__lbl {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  align-self: flex-end;
}

.tariff-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rate-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.rate-card--best {
  border-color: #eaa30a;
  box-shadow: 0 0 0 1px rgba(234, 163, 10, 0.25);
}

.rate-card--fast {
  border-color: #0097c4;
  box-shadow: 0 0 0 1px rgba(0, 151, 196, 0.2);
}

.rate-card--cheap {
  border-color: #d4bb83;
  box-shadow: 0 0 0 1px rgba(212, 187, 131, 0.35);
}

.rate-card__ribbon {
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rate-card__ribbon--best {
  background: linear-gradient(90deg, #f5a623 0%, #eaa30a 100%);
  color: var(--primary-on);
}

.rate-card__ribbon--fast {
  background: linear-gradient(90deg, #00a8d8 0%, #0097c4 100%);
  color: #fff;
}

.rate-card__ribbon--cheap {
  background: linear-gradient(90deg, #e8d5a0 0%, #d4bb83 100%);
  color: #3d3318;
}

.rate-card__body {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(200px, 1.2fr) auto;
  grid-template-areas:
    'brand mid right'
    'tags tags right'
    'more more more';
  gap: 12px 20px;
  align-items: start;
  padding: 16px 18px 14px;
}

.rate-card__brand {
  grid-area: brand;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.rate-card__logo {
  display: block;
  flex-shrink: 0;
}

.rate-card__titles {
  min-width: 0;
}

.rate-card__name {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.rate-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pill-bg);
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.rate-card__lead {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.rate-card__mid {
  grid-area: mid;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  padding-left: 18px;
  min-width: 0;
}

.rate-line {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.4;
}

.rate-line:last-of-type {
  margin-bottom: 0;
}

.rate-line a {
  color: var(--link);
  font-weight: 600;
}

.rate-ico {
  display: inline-block;
  width: 1.25em;
  margin-right: 4px;
  opacity: 0.75;
}

.rate-expand {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
  font-size: 13px;
  color: var(--text);
}

.rate-expand[hidden] {
  display: none !important;
}

.rate-expand p {
  margin: 0 0 6px;
}

.rate-card__right {
  grid-area: right;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.rate-card__price {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.rate-book {
  padding: 10px 22px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: var(--primary-on);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.rate-book:hover {
  filter: brightness(1.03);
}

.rate-card__tags {
  grid-area: tags;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.rate-card__tags span {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--pill-bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.rate-card__tags .badge-more {
  border-style: dashed;
  color: var(--muted);
}

.rate-more {
  grid-area: more;
  margin-top: 4px;
  padding: 8px 0 0;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  width: 100%;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  color: var(--link);
  cursor: pointer;
  text-align: left;
}

.rate-more:hover,
.rate-more--active {
  text-decoration: underline;
}

.rate-card--details-open .rate-expand:not([hidden]) {
  display: block;
}

@media (max-width: 980px) {
  .tariff-main__shell {
    grid-template-columns: 1fr;
  }

  .tariff-filters {
    order: 0;
  }

  .tariff-results {
    order: 1;
  }

  .rate-card__body {
    grid-template-columns: 1fr;
    grid-template-areas:
      'brand'
      'mid'
      'right'
      'tags'
      'more';
  }

  .rate-card__mid {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 12px;
  }

  .rate-card__right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    width: 100%;
  }

  .tariff-searchline {
    flex-direction: column;
    align-items: stretch;
  }

  .tariff-searchline__combo {
    flex-direction: column;
    border-radius: var(--radius);
  }

  .tariff-sl {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .tariff-sl:last-of-type {
    border-bottom: none;
  }

  .tariff-searchline__swap {
    margin: -22px auto 4px;
  }

  .tariff-find {
    width: 100%;
    min-height: 52px;
  }

  .tariff-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .tariff-sort__field {
    align-items: stretch;
    width: 100%;
  }

  .tariff-sort__control {
    width: 100%;
    min-width: 0;
  }

  .tariff-sort__lbl {
    align-self: flex-start;
  }
}

/* —— Fields showcase (655:1487) —— */
.page--fields {
  background: #d9d9d9;
}

.fields-main {
  flex: 1;
  padding: 40px var(--shell-pad) 64px;
}

.fields-shell {
  max-width: 980px;
  margin: 0 auto;
}

.fields-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.ui-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 150px;
}

.ui-field__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.ui-field__ico {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: block;
}

.ui-field__control {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
}

.ui-field__input,
.ui-field__select {
  width: 100%;
  height: 100%;
  margin: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  line-height: 22px;
  color: var(--text);
  outline: none;
  padding: 4px 0;
  box-sizing: border-box;
}

.ui-field--select .ui-field__select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

/* Float-label layout: reserve 18px on top of the value for the label */
.ui-field__inner--float .ui-field__input,
.ui-field__inner--float .ui-field__select {
  padding: 22px 0 4px;
}

.ui-field__float {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  line-height: 22px;
  color: var(--muted);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition:
    top 0.15s ease,
    transform 0.15s ease,
    font-size 0.15s ease,
    line-height 0.15s ease;
}

/* Float up on focus, when value typed (input), or when a real option is picked (select) */
.ui-field__inner--float .ui-field__input:focus + .ui-field__float,
.ui-field__inner--float .ui-field__input:not(:placeholder-shown) + .ui-field__float,
.ui-field__inner--float .ui-field__select:focus + .ui-field__float,
.ui-field__inner--float .ui-field__select:valid + .ui-field__float {
  top: 5px;
  transform: translateY(0);
  font-size: 14px;
  line-height: 19px;
}

.ui-field__chev {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ui-field__chev img {
  width: 12px;
  height: 8px;
  display: block;
}

/* Suffix next to value (units: lb, in) */
.ui-field__suffix {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
  padding-right: 2px;
}

a.ui-btn {
  text-decoration: none;
}

a.ui-btn--primary {
  color: var(--primary-on);
}

a.ui-btn--secondary {
  color: var(--text);
}

.ui-field__action {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
}

.ui-field__action:hover {
  color: var(--text);
}

.ui-field__action:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 6px;
}

.ui-field__action img {
  display: block;
  max-width: 20px;
  max-height: 20px;
}

.ui-field__support {
  font-size: 14px;
  color: var(--text);
}

.ui-field__support p,
.ui-field__support .ui-field__support-title {
  margin: 0 0 4px;
  font-weight: 600;
}

.ui-field__support ul,
.ui-field__support .ui-field__support-list {
  margin: 0;
  padding-left: 18px;
}

.ui-field__support--error {
  color: var(--error);
}

.ui-field--error .ui-field__inner {
  border-color: var(--error);
}

.ui-field__inner:focus-within {
  box-shadow: 0 0 0 2px rgba(35, 41, 166, 0.25);
}

/* —— Checkbox (655:1634) / Radio (657:141) —— */
.ui-check,
.ui-radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
}

.ui-check .chk {
  border-width: 1px;
  border-color: #d9d9d9;
}

.ui-check__input:checked + .chk {
  background: var(--link);
  border-color: var(--link);
}

.ui-check__input:checked + .chk .chk__mark {
  opacity: 1;
}

.ui-check__input:focus-visible + .chk {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.rdo {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #d9d9d9;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.rdo__dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface);
  opacity: 0;
}

.ui-radio__input:checked + .rdo {
  background: var(--link);
  border-color: var(--link);
}

.ui-radio__input:checked + .rdo .rdo__dot {
  opacity: 1;
}

.ui-radio__input:focus-visible + .rdo {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

@media (max-width: 740px) {
  .fields-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Pagination (932:12839) —— */
.page--pagination {
  background: var(--bg);
}

.pagination-main {
  flex: 1;
  padding: 40px var(--shell-pad) 64px;
}

.pagination-shell {
  max-width: 980px;
  margin: 0 auto;
}

.pagination-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.pagination {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.pagination__btn {
  width: 45px;
  height: 45px;
  padding: 8px 15px;
  border-radius: var(--radius);
  background: #eeeeee;
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  user-select: none;
}

.pagination__btn--active {
  background: var(--primary);
  color: var(--primary-on);
  font-weight: 600;
}

.pagination__btn:focus-visible {
  outline: 2px solid rgba(35, 41, 166, 0.35);
  outline-offset: 2px;
}

.pagination__btn--dots {
  cursor: default;
}

/* —— Buttons (652:1353) —— */
.page--buttons {
  background: #d9d9d9;
}

.buttons-main {
  flex: 1;
  padding: 40px var(--shell-pad) 64px;
}

.buttons-shell {
  max-width: 980px;
  margin: 0 auto;
}

.buttons-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.buttons-card {
  padding: 18px 20px;
  border: 2px dashed rgba(125, 85, 255, 0.5);
  border-radius: 18px;
}

.btn-grid {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 16px 22px;
  align-items: center;
  justify-content: start;
}

.ui-btn {
  border: none;
  border-radius: var(--radius);
  padding: 8px 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
}

.ui-btn--primary {
  background: var(--primary);
  color: var(--primary-on);
  font-weight: 700;
}

.ui-btn--secondary {
  background: #eeeeee;
  color: var(--text);
  font-weight: 600;
}

.ui-btn--l {
  height: 72px;
  font-size: 18px;
  padding-inline: 60px;
}

.ui-btn--m {
  height: 58px;
  font-size: 16px;
  padding-inline: 60px;
}

.ui-btn--s {
  height: 45px;
  font-size: 16px;
  padding-inline: 60px;
}

.ui-btn--icon {
  padding-inline: 15px;
  width: 45px;
  justify-content: center;
}

.ui-btn--m.ui-btn--icon {
  width: 58px;
  padding-inline: 20px;
}

.ui-btn--l.ui-btn--icon {
  width: 72px;
  padding-inline: 25px;
}

.ui-btn--full {
  width: 100%;
  justify-content: center;
}

/* Reusable swap (toggle two adjacent fields) */
.ui-swap-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 6px;
  border: 1px solid #929595;
  border-radius: 50%;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  position: relative;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.12);
  transition:
    background-color 0.15s ease,
    transform 0.2s ease;
}

.ui-swap-btn:hover {
  background: #f5f5f5;
}

.ui-swap-btn:active {
  transform: scale(0.94);
}

.ui-swap-btn:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.ui-swap-btn img,
.ui-swap-btn svg {
  display: block;
  width: 20px;
  height: 20px;
}

.ui-btn__ico {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.ui-btn__ico--dark {
  filter: none;
}

.ui-btn:focus-visible {
  outline: 2px solid rgba(35, 41, 166, 0.35);
  outline-offset: 2px;
}

.btn-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
}

.ui-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--link);
  text-decoration: none;
  font-family: inherit;
  user-select: none;
}

.ui-link-btn--m {
  font-size: 16px;
  font-weight: 600;
}

.ui-link-btn--s {
  font-size: 14px;
  font-weight: 600;
}

.ui-link-btn__ico img,
.ui-link-btn--icon img {
  width: 8px;
  display: block;
  object-fit: contain;
}

.ui-link-btn--icon {
  padding: 0;
}

@media (max-width: 740px) {
  .btn-grid {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .ui-btn {
    width: 100%;
    justify-content: center;
  }
}

/* —— Dashboard (934:22791) —— */
.page--dashboard {
  background: var(--bg);
}

.topbar--dash {
  padding-inline: var(--shell-pad);
}

/* Шапка личного кабинета — серая, как базовая; голубая только на главной */
.topbar--dash,
.page--dashboard .topbar--mobile {
  background: var(--topbar);
}

.dash-topicons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.dash-topicons__btn {
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--link);
}

a.dash-topicons__btn {
  text-decoration: none;
}

.dash-topicons__btn img {
  width: 20px;
  height: 20px;
  display: block;
}
.dash-context {
  /*margin-top: -12px;*/
}

.dash-search__btn {
  height: 58px;
  padding-inline: 60px;
  font-weight: 700;
}

.dash-main {
  flex: 1 0 auto;
  padding: 24px 0 40px;
}

.dash-shell {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.dash-sidebar {
  width: 224px;
  flex: 0 0 224px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-nav {
  background: var(--surface);
  padding: 16px 8px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-nav--bottom {
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}

.dash-nav:not(.dash-nav--bottom) {
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
}

.dash-nav__item {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 5px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  min-width: 0;
}

.dash-nav__item--active {
  background: #dce6fb;
}

.dash-nav__ico {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

.dash-content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dash-title {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
}

.dash-topcards {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.dash-card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  padding: 25px 16px;
}

.dash-track {
  width: min(433px, 100%);
}

.dash-track__row {
  width: 100%;
  display: flex;
  gap: 8px;
  align-items: center;
}

.dash-track__field {
  flex: 1 1 auto;
  min-width: 0;
}

.dash-track__input {
  width: 100%;
  height: 58px;
  border: none;
  outline: none;
  border-radius: 16px;
  background: #eeeeee;
  padding: 8px 16px;
  font: inherit;
  font-size: 16px;
}

.dash-track__input::placeholder {
  color: var(--muted);
}

.dash-track__btn {
  width: 58px;
  height: 58px;
  padding-inline: 20px;
}

.dash-balance {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dash-balance__txt {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  font-size: 18px;
  font-weight: 700;
}

.dash-balance__lbl {
  color: var(--text);
  white-space: nowrap;
}

.dash-balance__val {
  color: var(--muted);
  white-space: nowrap;
}

.dash-balance__btn {
  width: 58px;
  height: 58px;
  padding-inline: 20px;
  flex-shrink: 0;
}

.dash-h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.dash-parcels {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-parcels__hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dash-parcels__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.parcel-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border-radius: 16px;;
}

.parcel-card__top,
.parcel-card__bottom {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
}

.parcel-card__top {
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.parcel-card__bottom {
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.parcel-card__tophead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.parcel-card__top .parcel-card__open {
  width: 18px;
  height: 14px;
  flex-shrink: 0;
}

.parcel-card__top .parcel-card__tophead .parcel-chip {
  max-width: 100%;
}

.parcel-card__id {
  background: #fff;
  padding: 0 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.parcel-card__carrier {
  width: 38px;
  height: 32px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.parcel-card__carrier--narrow {
  width: 27px;
}

.parcel-card__track {
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.parcel-card__route {
  background: #fff;
  padding: 0 16px;
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
}

.parcel-card__routeico {
  width: 19px;
  height: 19px;
  display: block;
}

.parcel-card__meta {
  display: flex;
  gap: 4px;
  font-size: 16px;
  font-weight: 400;
}

.parcel-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  white-space: nowrap;
}

.parcel-chip--orange {
  background: #ffdc8f;
}

.parcel-chip--green {
  background: #bff3b5;
}

.parcel-chip--blue {
  background: #b9cefd;
  color: var(--link);
  font-weight: 600;
}

.dash-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dash-mini {
  background: var(--surface);
  border-radius: 16px;
  padding: 25px 16px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
}

.dash-mini__ttl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
}

.dash-mini__ttl img {
  width: 24px;
  height: 24px;
  display: block;
}

.dash-mini__sub {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 400;
}

.dash-mini__arr {
  width: 10px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
    align-self: center;
}

@media (max-width: 980px) {
    .delivery-form-from-to {
        display: none;
    }
  .dash-context {
    margin-top: 0;
  }

  .dash-shell {
    flex-direction: column;
  }

  .dash-sidebar {
    display: none;
  }

  .dash-topcards {
    flex-direction: column;
  }

  .dash-parcels__grid {
    grid-template-columns: 1fr;
  }

  .dash-links {
    grid-template-columns: 1fr;
  }
}

/* —— Settings (ЛКА 1170:35002 … 1170:35960) —— */
.page--settings .dash-title {
  overflow-wrap: break-word;
}

.settings-wrap {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}

.settings-subnav {
  flex: 0 0 232px;
  width: 232px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-subnav__link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  min-width: 0;
}

.settings-subnav__link:hover {
  background: var(--pill-bg);
}

.settings-subnav__link--active {
  background: #dce6fb;
}

.settings-subnav__link--active:hover {
  background: #dce6fb;
}

.settings-panel {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
}

.settings-card__head {
  margin-bottom: 20px;
}

.settings-card__title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.settings-card__desc {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.45;
  max-width: 62ch;
}

.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.settings-form-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.settings-form-grid .settings-form-grid__full {
  grid-column: 1 / -1;
}

.settings-form .ui-field {
  min-width: 0;
}

.settings-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.settings-checkline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #eeeeee;
}

.settings-checkline:first-of-type {
  padding-top: 4px;
}

.settings-checkline:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.settings-checkline__txt {
  min-width: 0;
}

.settings-checkline__txt strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.settings-checkline__txt span {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
}

.settings-checkline .ui-check {
  flex-shrink: 0;
  margin-top: 2px;
}

.settings-keyblock {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-keyrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--pill-bg);
  border-radius: 12px;
  min-width: 0;
}

.settings-keyrow .settings-checkline__txt {
  flex: 1 1 auto;
  min-width: 0;
}

.settings-keyrow__val {
  flex: 1 1 auto;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-table-wrap {
  overflow-x: auto;
  margin: 0 -8px;
  padding: 0 8px;
}

.settings-table-wrap--after-form {
  margin-top: 16px;
}

.settings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.settings-table th,
.settings-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #eeeeee;
  vertical-align: middle;
}

.settings-table th {
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.settings-table tr:last-child td {
  border-bottom: none;
}

.settings-table__role {
  color: var(--muted);
  font-size: 14px;
}

.settings-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: #bff3b5;
  color: var(--text);
}

.settings-pill--muted {
  background: #eeeeee;
  font-weight: 500;
}

.settings-danger {
  border: 1px solid rgba(254, 17, 0, 0.35);
  background: #fff8f7;
}

.settings-danger .settings-card__title {
  color: var(--error);
}

.settings-dialog {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: 440px;
  width: calc(100vw - 32px);
  background: var(--surface);
  box-shadow: 0 24px 48px rgba(26, 26, 26, 0.12);
}

.settings-dialog::backdrop {
  background: rgba(26, 26, 26, 0.45);
}

.settings-dialog__inner {
  padding: 24px;
}

.settings-dialog__title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
}

.settings-dialog__text {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.settings-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.settings-dialog__actions--stretch {
  justify-content: stretch;
}

.settings-dialog__actions--stretch > .ui-btn {
  flex: 1 1 auto;
  justify-content: center;
}

.settings-mobtabs {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  width: 100%;
  min-width: 0;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.settings-mobtabs__link {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
}

.settings-mobtabs__link--active {
  background: #dce6fb;
  border-color: #c5d6f5;
}

@media (max-width: 980px) {
  .settings-wrap {
    flex-direction: column;
  }

  .settings-subnav {
    display: none;
  }

  .settings-mobtabs {
    display: flex;
  }
}

/* —— Account (1170:34960 · 1170:35410 · 1170:35720 · 1170:35732 · 1261:52857 · 1261:52967 · 1261:53094) —— */
.page--account {
  background: var(--bg);
}

.acct-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 952px;
  min-width: 0;
}

.acct-page-title {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
}

.acct-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.acct-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.acct-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 25px;
  background: var(--surface);
  border-radius: 16px 16px 2px 2px;
  box-sizing: border-box;
}

.acct-card-head__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.acct-card-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px 25px;
  background: var(--surface);
  border-radius: 2px 2px 16px 16px;
  box-sizing: border-box;
}

.acct-headbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 45px;
  padding: 8px 30px;
  border: none;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.acct-headbtn:hover {
  filter: brightness(1.03);
}

.acct-headbtn__ico {
  flex-shrink: 0;
  display: block;
}

.acct-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.acct-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.acct-role-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 16px;
  background: #e1e4e9;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

.acct-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.acct-info-ico {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.acct-info-txt {
  margin: 0;
  flex: 1 1 auto;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
  min-width: 0;
}

.acct-signout-row {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.acct-sec-note {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

.acct-2fa-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.acct-2fa-lbl {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.acct-switch {
  position: relative;
  width: 48px;
  height: 24px;
  flex-shrink: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #cfd3dc;
  cursor: pointer;
  transition: background 0.2s ease;
}

.acct-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
}

.acct-switch--on,
.acct-switch[aria-checked="true"] {
  background: var(--primary);
}

.acct-switch--on::after,
.acct-switch[aria-checked="true"]::after {
  transform: translateX(24px);
}

.acct-2fa-intro {
  margin-top: 0;
}

.ui-field.input-gr .ui-field__inner {
    background: #eee;
}

.acct-dlg-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.acct-dlg-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.acct-2fa-phone-row {
  display: flex;
  gap: 2px;
  align-items: stretch;
  width: 100%;
}

.acct-2fa-phone-field {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 58px;
  padding: 8px 16px;
  border-radius: 16px 2px 2px 16px;
  background: #eee;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  box-sizing: border-box;
}

.acct-2fa-phone-field__lbl {
  font-size: 14px;
  color: var(--muted);
}

.acct-2fa-phone-field__val {
  font-size: 16px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acct-2fa-phone-edit {
  flex-shrink: 0;
  width: 58px;
  min-height: 58px;
  border: none;
  border-radius: 2px 16px 16px 2px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.acct-2fa-phone-edit:hover {
  filter: brightness(1.03);
}

.acct-2fa-code-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.acct-2fa-code-lbl {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.acct-otp {
  display: flex;
  gap: 2px;
  width: 100%;
}

.acct-otp__box {
  flex: 1 1 0;
  min-width: 0;
  height: 58px;
  border: none;
  border-radius: 2px;
  background: #eee;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  box-sizing: border-box;
}

.acct-otp__box:first-child {
  border-radius: 16px 2px 2px 16px;
}

.acct-otp__box:last-child {
  border-radius: 2px 16px 16px 2px;
}

.acct-otp__box:focus {
  outline: 2px solid var(--link);
  outline-offset: 1px;
  z-index: 1;
}

.acct-2fa-resend {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

.acct-2fa-resend__btn {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--link);
  cursor: pointer;
  text-decoration: none;
}

.acct-2fa-resend__btn:hover {
  text-decoration: underline;
}

.acct-dialog .ab-dialog__handle {
  display: none;
}

@media (max-width: 640px) {
  .acct-dialog {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 16px 16px 0 0;
    max-height: min(92dvh, 960px);
    overflow: auto;
    box-sizing: border-box;
  }

  .acct-dialog .ab-dialog__handle {
    display: block;
  }

  .acct-page-title {
    font-size: 24px;
    font-weight: 700;
  }

  .acct-card-head__title {
    font-size: 18px;
  }

  .acct-headbtn {
    min-width: 45px;
    padding: 8px 15px;
  }

  .acct-headbtn__txt {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .acct-headbtn {
    position: relative;
  }
}

.settings-panel--account {
  gap: 16px;
}

.settings-card__head--account {
  margin-bottom: 16px;
}

.settings-account-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.settings-account-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #dce6fb;
  color: var(--link);
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
}

.settings-account-hero__text {
  min-width: 0;
}

.settings-account-name {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  overflow-wrap: break-word;
}

.settings-account-email {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.settings-account-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.settings-pill--verified {
  background: #bff3b5;
}

.settings-account-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.settings-account-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.settings-account-actions--split {
  justify-content: space-between;
}

.settings-account-signout {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--error);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.settings-account-signout:hover {
  color: var(--text);
}

.settings-account-signout:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.settings-account-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.settings-account-rows > li {
  margin: 0;
}

.settings-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 4px 0;
  border: none;
  border-bottom: 1px solid #eeeeee;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  box-sizing: border-box;
}

a.settings-account-row {
  text-decoration: none;
  color: inherit;
}

.settings-account-row:last-child {
  border-bottom: none;
}

.settings-account-row:hover {
  color: var(--link);
}

.settings-account-row:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 8px;
}

.settings-account-row__main {
  min-width: 0;
}

.settings-account-row__main strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.settings-account-row__main span {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.settings-account-row:hover .settings-account-row__main span {
  color: inherit;
  opacity: 0.85;
}

.settings-account-row__ico {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
}

.settings-account-row__ico img {
  width: 19px;
  height: 19px;
  display: block;
}

@media (max-width: 980px) {
  .settings-account-hero {
    flex-direction: column;
    text-align: center;
  }

  .settings-account-meta {
    justify-content: center;
  }

  .settings-account-actions--split {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-account-signout {
    text-align: center;
    order: 2;
  }

  .settings-account-actions--split .ui-btn {
    order: 1;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .settings-panel--account .settings-form-grid {
    grid-template-columns: 1fr;
  }
    .topbar-mobile__inner {
        max-width: 520px;
    }
}

/* —— Send parcel / оформление посылки (934:22920 · 934:22527 · 934:22692 · navbar 934:22639) —— */
.page--shipment {
  background: var(--bg);
}

.topbar__inner--shipment {
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}

.topbar--shipment .shipment-steps {
  order: 3;
  width: 100%;
  justify-content: center;
}

@media (min-width: 981px) {
  .topbar__inner--shipment {
    flex-wrap: nowrap;
  }

  .topbar--shipment .shipment-steps {
    order: 0;
    width: auto;
    flex: 1 1 auto;
    justify-content: center;
    padding-inline: 16px;
  }
}

.shipment-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.shipment-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: var(--pill-bg);
}

.shipment-step + .shipment-step {
  position: relative;
  margin-left: 10px;
}

.shipment-step + .shipment-step::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 8px;
  height: 2px;
  margin-top: -1px;
  background: #cfd3d8;
  border-radius: 1px;
}

.shipment-step--current {
  background: #dce6fb;
  color: var(--link);
}

.shipment-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  background: rgba(35, 41, 166, 0.12);
  color: var(--link);
}

.shipment-step--current .shipment-step__num {
  background: var(--link);
  color: var(--primary-on);
}

.shipment-step__lbl {
  white-space: nowrap;
}

@media (max-width: 520px) {
  .shipment-step__lbl {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .shipment-step {
    padding: 8px 10px;
  }
}

.shipment-lead {
  margin: -8px 0 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 70ch;
}

.shipment-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.shipment-card__head {
  margin-bottom: 20px;
}

.shipment-card__title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.shipment-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 75ch;
}

.shipment-addr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.shipment-addr-col__ttl {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.shipment-addr-col .ui-field {
  margin-bottom: 12px;
}

.shipment-inline2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.shipment-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.shipment-form-grid .ui-field {
  min-width: 0;
}

.shipment-form-grid__full {
  grid-column: 1 / -1;
}

.shipment-extras {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eeeeee;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shipment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 8px;
}

@media (max-width: 980px) {
  .shipment-addr-grid {
    grid-template-columns: 1fr;
  }

  .shipment-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .shipment-actions .ui-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .shipment-form-grid {
    grid-template-columns: 1fr;
  }

  .shipment-inline2 {
    grid-template-columns: 1fr;
  }
}

/* Shipment wizard Figma modals (934:23356 … 934:20964 · 998:13924 · 999:5001 · 999:5102) */
.sp-figma-demos {
  margin: 16px 0 8px;
  padding: 12px 14px;
  background: var(--pill-bg);
  border: 1px dashed #cfd3d8;
  border-radius: 12px;
}

.sp-figma-demos > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.sp-devmodals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sp-devmodals__btn {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #d8dce3;
  background: var(--surface);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.sp-devmodals__btn:hover {
  border-color: var(--link);
  color: var(--link);
}

.sp-step-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.sp-step-tabs__btn {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d8dce3;
  background: var(--surface);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.sp-step-tabs__btn--active {
  background: #dce6fb;
  border-color: #b8c9f0;
  color: var(--link);
}

.sp-step-panel:not(.sp-step-panel--active) {
  display: none;
}

.shipment-dlg-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 16px;
}

.shipment-dlg-banner--warn {
  background: #fff8e6;
  border: 1px solid #f5d48a;
  color: #6a5200;
}

.shipment-dlg-banner--info {
  background: #eef4ff;
  border: 1px solid #c5d6f5;
  color: var(--text);
}

.shipment-dlg-extras {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eeeeee;
}

.shipment-ab-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shipment-ab-row {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #eceef2;
  border-radius: 12px;
  cursor: pointer;
}

.shipment-ab-row:hover {
  border-color: #d0d7e2;
  background: #fafbff;
}

.shipment-ab-row strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.shipment-ab-row span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.settings-dialog.shipment-dlg--book {
  max-width: 520px;
}

.shipment-dlg--book .shipment-ab-row.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.shipment-dlg--book .shipment-ab-row input[type="radio"] + .chk {
  border-radius: 50%;
  margin-top: 4px;
}

.shipment-dlg--book .shipment-ab-row input[type="radio"]:checked + .chk .chk__mark {
  width: 8px;
  height: 8px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  opacity: 1;
  transform: none;
}

.shipment-dlg--book .shipment-ab-row > span:last-of-type {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sp-dlg-errlist {
  margin: 0 0 16px;
  padding-left: 1.25em;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.shipment-extras--split .shipment-extra-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

/* —— Partner matching / подбор партнёров (1324:45000 … 1324:45816) —— */
.page--partner-match {
  background: var(--bg);
}

.shipment-step--done {
  color: var(--text);
  background: #e8f4e8;
}

.shipment-step--done .shipment-step__num {
  background: #bff3b5;
  color: #1a5c1a;
  font-size: 13px;
}

.shipment-step--done .shipment-step__lbl {
  color: var(--text);
}

.pm-routebar .tariff-searchline__combo {
  flex: 1 1 auto;
}

.pm-routebar__arrow {
  display: flex;
  align-items: center;
  padding: 0 4px;
  opacity: 0.75;
}

.tariff-sl__val--readonly {
  display: block;
  padding: 4px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: default;
}

.pm-layout {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.pm-header {
  margin-bottom: 20px;
  text-align: center;
}

.pm-title {
  margin-bottom: 8px;
}

.pm-sub {
  margin: 0 auto;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 500;
}

.pm-sub a {
  color: var(--link);
  font-weight: 600;
}

.pm-devtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.pm-devtabs__btn {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d8dce3;
  background: var(--surface);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.pm-devtabs__btn:hover {
  border-color: var(--link);
  color: var(--link);
}

.pm-devtabs__btn--active {
  background: #dce6fb;
  border-color: #b8c9f0;
  color: var(--link);
}

.pm-devtabs__btn:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.pm-panel:not(.pm-panel--active) {
  display: none;
}

.pm-panel--active {
  display: block;
}

.pm-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 4px 24px rgba(26, 26, 26, 0.06);
}

.pm-card--flush {
  padding: 24px 20px;
}

.pm-card--success {
  border: 1px solid rgba(191, 243, 181, 0.8);
}

.pm-card--error {
  border: 1px solid rgba(254, 17, 0, 0.35);
  background: linear-gradient(180deg, #fff8f7 0%, var(--surface) 48%);
}

.pm-hero {
  text-align: center;
  margin-bottom: 28px;
}

.pm-hero--static {
  margin-bottom: 24px;
}

.pm-ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

.pm-ring-wrap--sm {
  width: 100px;
  height: 100px;
  margin-bottom: 16px;
}

.pm-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.pm-ring--sm {
  transform: rotate(-90deg) scale(0.92);
}

.pm-ring__track {
  stroke: #e8eaef;
}

.pm-ring__arc {
  stroke: var(--primary);
  stroke-dasharray: 0 327;
  transition: stroke-dasharray 0.6s ease;
}

.pm-ring__arc--indeterminate {
  stroke-dasharray: 72 327;
  transform-origin: 60px 60px;
  animation: pm-ring-spin 1.35s ease-in-out infinite;
}

@keyframes pm-ring-spin {
  0% {
    stroke-dashoffset: 0;
    transform: rotate(-90deg);
  }

  50% {
    stroke-dashoffset: -80;
    transform: rotate(90deg);
  }

  100% {
    stroke-dashoffset: -160;
    transform: rotate(270deg);
  }
}

.pm-ring__icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pill-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-ring-wrap--sm .pm-ring__icon {
  width: 40px;
  height: 40px;
}

.pm-card__h {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

.pm-card__lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 500;
}

.pm-pipeline {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pm-pipeline--compact {
  margin-bottom: 20px;
}

.pm-pipeline__row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid #eeeeee;
}

.pm-pipeline__row:last-child {
  border-bottom: none;
}

.pm-pipeline__mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cfd3d8;
  margin-top: 2px;
  background: var(--surface);
}

.pm-pipeline__row--done .pm-pipeline__mark {
  border-color: #7ccf7c;
  background: #bff3b5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%231a5c1a' stroke-width='2' d='M1 5l3 3 7-7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.pm-pipeline__row--active .pm-pipeline__mark {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234, 163, 10, 0.25);
}

.pm-pipeline__mark--pulse {
  animation: pm-pulse 1.4s ease-in-out infinite;
}

@keyframes pm-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(234, 163, 10, 0.35);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(234, 163, 10, 0);
  }
}

.pm-pipeline__txt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  text-align: left;
}

.pm-pipeline__txt strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.pm-pipeline__txt span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}

.pm-pipeline--compact .pm-pipeline__txt span {
  display: none;
}

.pm-pipeline--compact .pm-pipeline__row {
  padding: 12px 0;
}

.pm-skel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pm-skel--dense {
  gap: 10px;
}

.pm-skel--compact {
  gap: 10px;
}

.pm-skel__row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.pm-skel__logo {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(110deg, #eeeeee 0%, #f6f6f6 40%, #eeeeee 80%);
  background-size: 200% 100%;
  animation: pm-shimmer 1.3s ease-in-out infinite;
}

.pm-skel__line {
  flex: 1 1 auto;
  height: 14px;
  border-radius: 8px;
  min-width: 0;
  background: linear-gradient(110deg, #eeeeee 0%, #f6f6f6 40%, #eeeeee 80%);
  background-size: 200% 100%;
  animation: pm-shimmer 1.3s ease-in-out infinite;
}

.pm-skel__line--lg {
  max-width: 100%;
}

.pm-skel__line--md {
  max-width: 70%;
}

.pm-skel__line--sm {
  max-width: 45%;
}

.pm-skel__chip {
  flex-shrink: 0;
  width: 72px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(110deg, #eeeeee 0%, #f6f6f6 40%, #eeeeee 80%);
  background-size: 200% 100%;
  animation: pm-shimmer 1.3s ease-in-out infinite;
}

@keyframes pm-shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

.pm-success-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  width: 72px;
  height: 72px;
}

.pm-error-ico {
  margin: 0 auto 16px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(254, 17, 0, 0.12);
  color: var(--error);
  font-size: 32px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-preview {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pm-preview__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 16px;
  background: var(--pill-bg);
  border-radius: 12px;
}

.pm-preview__badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffdc8f;
  color: var(--text);
}

.pm-preview__badge--muted {
  background: #e8eaef;
  font-weight: 600;
}

.pm-preview__name {
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 600;
  min-width: 0;
}

.pm-preview__price {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.pm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.pm-mobile-caption {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 12px;
}

.pm-mobile-frame {
  max-width: 390px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 24px;
  background: linear-gradient(145deg, #e4e6ea 0%, #d4d7dd 100%);
  box-shadow: 0 12px 40px rgba(26, 26, 26, 0.12);
}

/* Partner selection list + modals (934:20154 · 934:23707 · 934:23765 · 934:21647) */
.pm-layout--results {
  max-width: 920px;
}

.pm-header--page {
  text-align: left;
  margin-bottom: 24px;
}

.pm-sub--page {
  margin: 0;
  max-width: 62ch;
}

.pm-results-surface {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid #e8eaef;
  box-shadow: 0 4px 24px rgba(26, 26, 26, 0.06);
  padding: 18px 22px 22px;
  margin-bottom: 4px;
}

.pm-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #eeeeee;
}

.pm-toolbar .ui-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pm-toolbar__svg {
  flex-shrink: 0;
  opacity: 0.88;
}

.pm-toolbar__back {
  flex-direction: row-reverse;
  gap: 8px;
}

.pm-toolbar__ico--flip {
  transform: scaleX(-1);
}

.pm-toolbar__grow {
  flex: 1 1 120px;
}

.pm-live {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 18px;
  padding: 12px 16px;
  background: #f0faf0;
  border: 1px solid #d0ead2;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.pm-live__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2ecc71;
  flex-shrink: 0;
  animation: pm-live-pulse 2s ease-out infinite;
}

@keyframes pm-live-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.45);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
  }
}

.pm-offers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pm-offer {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid #e4e6ea;
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(26, 26, 26, 0.04);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 12px;
  align-items: stretch;
  padding: 16px 18px;
}

.pm-offer--best {
  border-color: rgba(255, 193, 94, 0.85);
  box-shadow: 0 4px 20px rgba(255, 183, 77, 0.18);
}

.pm-offer--fast {
  border-color: rgba(180, 210, 255, 0.95);
}

.pm-offer__pick {
  display: flex;
  align-items: flex-start;
  padding-top: 6px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.pm-offer__pick input {
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  appearance: none;
}

.pm-offer__pick input:focus-visible + .chk {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.pm-offer__pick input:checked + .chk {
  border-color: var(--link);
  background: var(--link);
}

.pm-offer__pick input:checked + .chk .chk__mark {
  opacity: 1;
}

.pm-offer__body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.pm-offer__brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
  flex: 1 1 240px;
}

.pm-offer__logo {
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: contain;
}

.pm-offer__titles {
  min-width: 0;
}

.pm-offer__badge {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #b06b00;
}

.pm-offer__badge--muted {
  color: var(--muted);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}

.pm-offer--fast .pm-offer__badge:not(.pm-offer__badge--muted) {
  color: var(--link);
}

.pm-offer__name {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

.pm-offer__meta {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.pm-offer__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.pm-offer__price {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.pm-results-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 20px;
}

.pm-dialog {
  border-radius: 16px;
}

.pm-dialog .pm-dlg-fieldset .filter-row input[type="radio"] + .chk {
  border-radius: 50%;
}

.pm-dialog .pm-dlg-fieldset .filter-row input[type="radio"]:checked + .chk .chk__mark {
  width: 8px;
  height: 8px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  opacity: 1;
  transform: none;
}

.pm-results-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  max-width: 44ch;
}

.pm-results-hint__link {
  display: block;
  margin-top: 8px;
  font-weight: 600;
}

.pm-results-hint__link a {
  color: var(--link);
}

.pm-dlg-lead {
  margin-top: -4px;
}

.pm-dialog--filters .settings-dialog__inner {
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 580px);
  padding-bottom: 16px;
}

.pm-dlg-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  margin: 0 -6px;
  padding: 0 6px 8px;
}

.pm-dlg-section-ttl {
  margin: 16px 0 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.pm-dlg-section-ttl:first-child {
  margin-top: 0;
}

.pm-dlg-fieldset {
  display: flex;
  flex-direction: column;
  border: 1px solid #eceef2;
  border-radius: 12px;
  padding: 4px 14px;
  margin-bottom: 4px;
}

.pm-dlg-fieldset .filter-row {
  border-bottom: 1px solid #f0f1f4;
}

.pm-dlg-fieldset .filter-row:last-child {
  border-bottom: none;
}

.pm-dlg-switch {
  margin-top: 12px;
}

.pm-dlg-footer {
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 12px;
  margin-top: 8px;
}

.pm-dlg-footer__spacer {
  flex: 1 1 24px;
}

/* Partner selection mobile (934:21510) */
.page--pm-mobile {
  background: var(--bg);
}

.page--pm-mobile .topbar--desktop {
  display: none !important;
}

.page--pm-mobile .topbar--mobile {
  display: flex !important;
}

.page--home .topbar--mobile {
  background: #DFEDF4;
}

.page--pm-mobile .dash-main.pm-mob-main {
  padding-top: 8px;
  padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
}

.page--pm-mobile .pm-mob-content.dash-content {
  gap: 0;
}

.pm-mob-shell {
  max-width: 432px;
  margin: 0 auto;
  width: 100%;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.pm-mob-steps {
  padding: 10px max(16px, env(safe-area-inset-left, 0px)) 12px max(16px, env(safe-area-inset-right, 0px));
  background: var(--topbar);
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
}

.pm-mob-steps__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 432px;
}

.pm-mob-steps__item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid transparent;
}

.pm-mob-steps__item--done {
  color: #1a5c1a;
  background: #e8f4e8;
  border-color: #c5e6c5;
}

.pm-mob-steps__item--current {
  color: var(--text);
  background: var(--surface);
  border-color: #e0e4ea;
  box-shadow: 0 1px 4px rgba(26, 26, 26, 0.06);
}

.pm-mob-steps__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.08);
}

.pm-mob-steps__item--done .pm-mob-steps__mark {
  background: #bff3b5;
  font-size: 10px;
}

.pm-mob-steps__item--current .pm-mob-steps__mark {
  background: var(--primary);
  color: var(--text);
}

.pm-mob-steps__lbl {
  white-space: nowrap;
}

.pm-mob-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 auto;
  max-width: 432px;
  padding: 12px max(16px, env(safe-area-inset-left, 0px)) 14px max(16px, env(safe-area-inset-right, 0px));
  background: var(--bg);
}

.pm-mob-route__body {
  min-width: 0;
}

.pm-mob-route__line {
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.pm-mob-route__city {
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-mob-route__arr {
  display: flex;
  opacity: 0.65;
}

.pm-mob-route__meta {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.pm-mob-route__edit {
  flex-shrink: 0;
}

.pm-layout--mob {
  max-width: 100%;
}

.page--pm-mobile .pm-header--mob {
  margin-bottom: 14px;
}

.page--pm-mobile .pm-title {
  font-size: 22px;
  line-height: 1.2;
}

.page--pm-mobile .pm-sub--mob {
  font-size: 14px;
  max-width: none;
}

.page--pm-mobile .pm-results-surface {
  padding: 12px 12px 14px;
  border-radius: 14px;
}

.pm-mob-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eeeeee;
}

.pm-mob-toolbar .ui-btn {
  justify-content: center;
}

.pm-mob-toolbar__wide {
  grid-column: 1 / -1;
}

.pm-mob-toolbar__back {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 2px;
}

.pm-live--mob {
  margin: 12px 0 14px;
  font-size: 13px;
  padding: 10px 12px;
}

.pm-offers--mob {
  gap: 10px;
}

.pm-offer--mob {
  padding: 12px 12px;
  gap: 0 10px;
}

.pm-offer--mob .pm-offer__name {
  font-size: 16px;
}

.pm-offer--mob .pm-offer__price {
  font-size: 20px;
}

.pm-mob-footnote {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 500;
  text-align: center;
}

.pm-mob-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px max(16px, env(safe-area-inset-left, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-right, 0px));
  background: var(--surface);
  border-top: 1px solid #e8eaef;
  box-shadow: 0 -10px 36px rgba(26, 26, 26, 0.1);
}

.site-footer--pm-mob {
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

.site-footer--pm-mob .site-footer__grid {
  padding-top: 24px;
}

.site-footer--pm-mob .site-footer__cols {
  gap: 20px;
}

@media (max-width: 640px) {
  .pm-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .pm-toolbar__grow {
    display: none;
  }

  .pm-offer__body {
    flex-direction: column;
    align-items: flex-start;
  }

  .pm-offer__side {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .pm-dlg-footer__spacer {
    display: none;
  }

  .pm-dlg-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .pm-dlg-footer .ui-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 980px) {
  .pm-devtabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .pm-devtabs__btn {
    flex: 0 0 auto;
  }

  .pm-card {
    padding: 24px 18px;
  }
}

/* —— Account modals (1170:35720 · 1170:35741 · 1261:52982 · 1261:53139 · 1261:53596 · 1261:53605) —— */
.account-dialog.account-dialog--wide {
  max-width: 520px;
}

.dialog-width {
    max-width: 520px;
}
.dialog-width.dialog--wide {
    max-width: 640px;
}

.account-dialog.account-dialog--compact {
  max-width: 400px;
}

.account-dialog__toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.account-dialog__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  flex: 1 1 auto;
  min-width: 0;
}

.account-dialog__x {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: -8px -8px 0 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-dialog__x:hover {
  color: var(--text);
  background: var(--pill-bg);
}

.account-dialog__x:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.account-dlg-2fa-panel,
.acct-2fa-panel {
  min-width: 0;
}

.acct-dialog .account-dialog__title {
  font-size: 24px;
  font-weight: 700;
}

.account-dialog__hint {
  margin: 16px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.account-dialog__linklike {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--link);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.account-dialog__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  background: var(--pill-bg);
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--text);
}

.account-sessions {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-sessions__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--pill-bg);
  border-radius: 12px;
  min-width: 0;
}

.account-sessions__meta {
  min-width: 0;
}

.account-sessions__meta strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.account-sessions__meta span {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

/* —— Checkout wizard: Parcel details & Payment (934:20523 · 934:21818 · 934:21297 · 934:22295) —— */
.sp-pd-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.sp-pd-page > .sp-pd-layout,
.sp-pd-page > .sp-pay-page {
  flex: 1 0 auto;
}

.sp-pd-page > .topbar--mobile {
  background: var(--surface);
}

@media (max-width: 980px) {
  .sp-pd-page .sp-pd-topbar--desk {
    display: none;
  }
}

.sp-pd-topbar {
  background: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  padding: 12px 2px;
  flex-shrink: 0;
}

.sp-pd-topbar__inner {
  width: 100%;
  max-width: var(--checkout-max);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}

.sp-pd-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sp-pd-brand__homelink {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.sp-pd-brand__logo {
  height: 32px;
  width: auto;
  display: block;
}

.sp-pd-brand__divider {
  height: 32px;
  width: auto;
}

.sp-pd-brand__tag {
  margin: 0;
  font-size: 12.7px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
}

.sp-pd-topbar__right {
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: 0;
}

.sp-pd-topnav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 1100px) {
  .sp-pd-topnav {
    display: none;
  }
}

.sp-pd-topnav__link {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.sp-pd-topnav__link:hover {
  color: var(--link);
}

.sp-pd-topbar__tools {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.sp-pd-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: var(--radius);
  border: none;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}

.sp-pd-iconbtn:hover {
  background: var(--pill-bg);
}

.sp-pd-iconbtn__txt {
  font-size: 18px;
  font-weight: 700;
}

.sp-pd-stepper {
  max-width: var(--checkout-max);
  margin: 0 auto;
  padding: 20px 0 10px;
  flex-shrink: 0;
}

.sp-pd-stepper__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--checkout-max);
  display: flex;
  gap: 2px;
  min-width: 0;
}

.sp-pd-step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border-radius: 12px 12px 0 0;
  text-align: center;
}

.sp-pd-step--done {
  background: #b9cefd;
  color: var(--link);
}

.sp-pd-step--current {
  background: #8eb7fc;
  color: var(--link);
}

.sp-pd-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(35, 41, 166, 0.15);
}

.sp-pd-step--current .sp-pd-step__num {
  background: var(--link);
  color: #fff;
}

.sp-pd-step--done .sp-pd-step__num {
  background: var(--link);
  color: #fff;
}

.sp-pd-step__lbl {
  line-height: 1.2;
}

.sp-pd-layout {
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--checkout-max);
  margin: 0 auto;
  padding: 24px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(300px, 26%);
  gap: 32px;
  align-items: start;
}

@media (max-width: 980px) {
  .sp-pd-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 16px;
  }
}

.sp-pd-main {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}

.sp-pd-main .ui-field {
  width: 100%;
  min-width: 0;
}

.sp-pd-grid2--fields {
  gap: 14px 18px;
}

.sp-pd-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}

.sp-pd-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sp-pd-seg {
  background: var(--surface);
  padding: 20px 25px;
}

.sp-pd-seg:first-child {
  border-radius: var(--radius) var(--radius) 2px 2px;
}

.sp-pd-seg:last-child {
  border-radius: 2px 2px var(--radius) var(--radius);
}

.sp-pd-seg:only-child {
  border-radius: var(--radius);
}

.sp-pd-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sp-pd-card__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.sp-pd-card__title--solo {
  margin-bottom: 0;
}

.sp-pd-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sp-pd-linkbtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  color: var(--link);
  cursor: pointer;
}

.sp-pd-linkbtn__ico {
  font-size: 18px;
  line-height: 1;
}

.sp-pd-meas-weight {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.sp-pd-meas-weight .ui-field {
  flex: 1 1 220px;
  min-width: 0;
}

.sp-pd-hint-row {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  flex: 0 1 280px;
  min-width: 0;
  font-size: 14px;
  color: var(--text);
}

.sp-pd-hint-row img {
  flex-shrink: 0;
  margin-top: 2px;
}

.sp-pd-dims {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.sp-pd-dims .ui-field {
  flex: 1 1 140px;
  min-width: 0;
}

.sp-pd-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sp-pd-field__lbl {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.sp-pd-field__row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 16px;
  background: #eee;
  border-radius: var(--radius);
}

.sp-pd-input,
.sp-pd-select {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  outline: none;
}

.sp-pd-input::placeholder {
  color: var(--muted);
}

.sp-pd-field__unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
  flex-shrink: 0;
}

.sp-pd-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

.sp-pd-hint--muted {
  color: var(--muted);
}

.sp-pd-hint__ico {
  flex-shrink: 0;
}

.sp-pd-grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 720px) {
  .sp-pd-grid2 {
    grid-template-columns: 1fr;
  }
}

.sp-pd-field--block .sp-pd-field__row {
  width: 100%;
}

.sp-pd-field--mt {
  margin-top: 4px;
}

.sp-pd-manual {
  margin: 0;
}

.sp-pd-manual a {
  font-weight: 600;
  font-size: 16px;
  color: var(--link);
  text-decoration: none;
}

.sp-pd-manual a:hover {
  text-decoration: underline;
}

.sp-pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 45px;
  padding: 8px 24px;
  border: none;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
}

.sp-pd-btn--ghost {
  background: #eee;
  color: var(--text);
}

.sp-pd-btn--accent {
  background: var(--primary);
  color: var(--primary-on);
}

.sp-pd-btn__star {
  font-size: 18px;
  line-height: 1;
}

.sp-pd-prose {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}

.sp-pd-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sp-pd-toggle {
  position: relative;
  width: 48px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #cfd3d8;
  border: none;
  padding: 0;
  cursor: pointer;
}

.sp-pd-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease;
}

.sp-pd-toggle[aria-checked="true"] {
  background: var(--link);
}

.sp-pd-toggle[aria-checked="true"]::after {
  transform: translateX(24px);
}

.sp-pd-proceed {
  align-self: flex-start;
  margin-top: 4px;
}

.sp-pd-aside {
  position: sticky;
  top: 12px;
  min-width: 0;
}

@media (max-width: 980px) {
  .sp-pd-aside {
    position: static;
    order: 3;
  }
}

.sp-pd-sum {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sp-pd-sum__block {
  background: var(--surface);
  padding: 20px 25px;
}

.sp-pd-sum__block:first-child {
  border-radius: var(--radius) var(--radius) 2px 2px;
}

.sp-pd-sum__block:last-child {
  border-radius: 2px 2px var(--radius) var(--radius);
}

.sp-pd-sum__route,
.sp-pd-sum__dims {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.sp-pd-sum__carrier {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sp-pd-sum__logo {
  display: block;
  flex-shrink: 0;
}

.sp-pd-sum__svc {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 600;
}

.sp-pd-sum__info {
  display: inline-flex;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  line-height: 0;
}

.sp-pd-sum__rows {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-pd-sum__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.sp-pd-sum__row dt {
  margin: 0;
  font-weight: 400;
}

.sp-pd-sum__row dd {
  margin: 0;
  font-weight: 600;
}

.sp-pd-sum__row--total {
  font-weight: 700;
}

.sp-pd-sum__row--total dt {
  font-weight: 700;
}

.sp-pd-sum__note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.sp-pd-map {
  display: none;
  position: relative;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(145deg, #dfe6ee, #c5d0e0);
}

@media (max-width: 980px) {
  .sp-pd-map {
    display: block;
  }
}

.sp-pd-map__cap {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.sp-pd-map__search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  font-size: 16px;
  color: var(--muted);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.sp-pd-map__fake {
  margin: 52px 12px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.sp-pd-devtabs {
  margin-bottom: 8px;
}

.sp-pd-footlink {
  text-align: center;
  padding: 16px var(--shell-pad) 32px;
  font-size: 14px;
  color: var(--muted);
}

.sp-pd-footlink--inline {
  text-align: left;
  padding: 0;
  margin: 8px 0 0;
}

.sp-pd-navback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 12px;
  font-size: 14px;
}

.sp-pd-navback__sep {
  color: var(--muted);
  font-weight: 600;
}

.sp-pd-footlink a {
  color: var(--link);
  font-weight: 600;
}

/* Payment step (934:21297) */
.sp-pay-page {
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--checkout-max);
  margin: 0 auto;
  padding: 24px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}
@media (max-width: 1220px) {
    .sp-pd-layout, .sp-pd-stepper,
    .sp-pay-page, .sp-pd-topbar,
    .tariff-context.delivery-form-from-to,
    .tariff-context.dash-context {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.sp-pay-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  align-items: stretch;
}

.sp-pay-seg--grow {
  flex: 1 1 auto;
}

@media (max-width: 900px) {
  .sp-pay-top {
    grid-template-columns: 1fr;
  }
}

.sp-pay-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  min-height: 0;
}

.sp-pay-top .sp-pay-stack {
  height: 100%;
}

.sp-pay-seg {
  background: var(--surface);
  padding: 20px 25px;
}

.sp-pay-seg:first-child {
  border-radius: var(--radius) var(--radius) 2px 2px;
}

.sp-pay-seg:last-child {
  border-radius: 2px 2px var(--radius) var(--radius);
}

.sp-pay-seg:only-child {
  border-radius: var(--radius);
}

.sp-pay-h {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.sp-pay-ab {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.sp-pay-ab__badge {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eee;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  margin-top: 2px;
}
.from-to-white {
    color: #fff;
    background: var(--muted);
}

.sp-pay-ab__txt {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.sp-pay-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  color: var(--link);
  cursor: pointer;
}

.sp-pay-carrier {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sp-pay-carrier img {
  height: 32px;
  width: auto;
}

.sp-pay-spec {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
}

.sp-pay-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sp-pay-tags__add {
  font-weight: 800;
  color: var(--link);
}

.sp-pay-tag {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--radius);
  background: #b9cefd;
  font-size: 16px;
  color: var(--text);
}

.sp-pay-svc-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
}

@media (max-width: 720px) {
  .sp-pay-svc-cols {
    grid-template-columns: 1fr;
  }
}

.sp-pay-svc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
}

.sp-pay-bottom {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sp-pay-bottom__head {
  background: var(--surface);
  padding: 20px 25px;
  border-radius: var(--radius) var(--radius) 2px 2px;
}

.sp-pay-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

@media (max-width: 900px) {
  .sp-pay-split {
    grid-template-columns: 1fr;
  }
}

.sp-pay-split__col {
  background: var(--surface);
  padding: 20px 25px;
}

.sp-pay-split__col:first-child {
  border-radius: 0 0 0 var(--radius);
}

.sp-pay-split__col:last-child {
  border-radius: 0 0 var(--radius) 0;
}

@media (max-width: 900px) {
  .sp-pay-split__col:first-child {
    border-radius: 0;
  }

  .sp-pay-split__col:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
  }
}

.sp-pay-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-pay-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
}

.sp-pay-row--total {
  font-weight: 700;
}

.sp-pay-promo-field {
  width: 100%;
  margin: 0;
}

.sp-pay-split__col--form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sp-pay-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.sp-pay-radio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sp-pay-radio .ui-radio {
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
}

.sp-pay-radio__meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}

.sp-pay-svc-row .ui-check {
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
}

.sp-pay-terms {
  margin-top: 4px;
  align-items: flex-start;
  line-height: 1.35;
}

.sp-pay-terms .ui-check__label a {
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}

.sp-pay-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

@media (max-width: 720px) {
  .sp-pay-actions {
    justify-content: stretch;
  }
}

/* —— Checkout step 1: carrier selection (934:20154 · 934:21510) —— */
.cw-searchwrap {
  background: var(--topbar);
  padding-bottom: 4px;
}

.cw-carrier-shell {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--checkout-max);
  margin: 0 auto;
  padding: 8px 0 40px;
}

.cw-searchrow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: var(--checkout-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad) 16px;
}

.cw-searchrow__fields {
  flex: 1 1 280px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  min-width: 0;
}

.cw-field-pill {
  flex: 1 1 140px;
  min-width: 0;
  min-height: 48px;
  padding: 6px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.cw-field-pill__lbl {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.cw-field-pill__val {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cw-searchrow__swap {
  flex-shrink: 0;
  align-self: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cw-searchrow__go {
  flex-shrink: 0;
  align-self: stretch;
  min-height: 48px;
  padding: 8px 28px;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-on);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 640px) {
  .cw-searchrow__go {
    flex: 1 1 100%;
  }
}

.cw-carrier-desk {
  display: block;
}

.cw-carrier-mob {
  display: none;
  padding-bottom: 24px;
}

@media (max-width: 980px) {
  .cw-carrier-mob {
    display: block;
  }

  .cw-searchrow {
    padding-bottom: 12px;
  }
}

.cw-carrier-grid {
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

@media (max-width: 1100px) {
  .cw-carrier-grid {
    grid-template-columns: min(260px, 32vw) minmax(0, 1fr);
    gap: 20px;
  }
}

.cw-filters-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: var(--radius);
  overflow: hidden;
}

.cw-filters-block {
  background: var(--surface);
  padding: 15px 12px;
}

.cw-filters-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.cw-filters-block__ttl {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.cw-filters-block .filter-row {
  margin-bottom: 10px;
}

.cw-filters-block .filter-row:last-child {
  margin-bottom: 0;
}

.cw-expand {
  margin: 4px 0 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
  cursor: pointer;
}

.cw-filter-search {
  width: 100%;
  margin-top: 8px;
}

.cw-results-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.cw-results-head__grow {
  flex: 1 1 120px;
}

.cw-carrier-grid .pm-layout--results {
  max-width: none;
  margin: 0;
}

.cw-mob-sortbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-left, 0px)) 12px max(16px, env(safe-area-inset-right, 0px));
  max-width: 520px;
  margin: 0 auto;
}

.cw-mob-sortbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--link);
  cursor: pointer;
}

.cw-mob-shell {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-left, 0px)) 0 max(16px, env(safe-area-inset-right, 0px));
}

.cw-mob-shell .pm-results-surface {
  margin-top: 8px;
}

.cw-carrier-mob .pm-offer--mob {
  grid-template-columns: 1fr;
  padding: 14px 14px 16px;
}

.cw-carrier-mob .pm-offer--mob .pm-offer__body {
  width: 100%;
}

.cw-carrier-mob .pm-offer__mob-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.cw-carrier-mob .pm-offer__mob-actions .ui-btn {
  flex: 1 1 auto;
}

.cw-mob-search-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Address book extended (998:13924) */
.abbook-search-field {
  display: block;
  width: 100%;
  margin: 0 0 16px;
}

.abbook-grid {
  /*display: flex;*/
  /*flex-wrap: wrap;*/
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.abbook-card {
  flex: 1 1 260px;
  min-width: 0;
  max-width: 100%;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: #eee;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.abbook-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.abbook-card__name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.abbook-card__row {
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.35;
  color: var(--text);
}

.abbook-card__hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
}

/* —— Shipments list & parcel detail (Figma 963:16352 · 963:17069 · 963:16736 · 963:17328 · 963:16947 · 963:17513) —— */
.parcels-content {
  min-width: 0;
}

.ship-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-bottom: 8px;
}

.ship-head__title {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.ship-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.ship-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 12px;
  border: none;
  border-radius: 16px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  box-shadow: none;
}

.ship-tab:hover {
  filter: brightness(0.98);
}

.ship-tab--active {
  background: #b9cefd;
}

.ship-tab__ico {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--text);
}

.ship-tab__badge {
  position: absolute;
  top: 6px;
  left: 22px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 100px;
  background: #eaa30a;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

.ship-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  margin-top: 8px;
}

.ship-filter {
  flex: 1 1 150px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 8px 16px;
  border-radius: 16px;
  background: #fff;
  border: none;
}

.ship-filter--grow {
  flex: 2 1 220px;
}

.ship-filter__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--text);
}

.ship-filter__input::placeholder {
  color: #9a9a9a;
}

.ship-filter__sel {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: #9a9a9a;
  cursor: pointer;
  appearance: none;
  padding-right: 8px;
}

.ship-filter__ico {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  opacity: 0.75;
}

.ship-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.ship-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ship-card__notice {
  margin: 0 0 2px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #ffdc8f;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
}

.ship-card__top {
  background: #fff;
  border-radius: 16px 16px 2px 2px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ship-card__row1 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ship-card__left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 200px;
}

.ship-card__logo {
  width: 38px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.ship-card__track {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ship-card__track a {
  color: inherit;
  text-decoration: none;
}

.ship-card__track a:hover {
  color: var(--link);
  text-decoration: underline;
}

.ship-card__to {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ship-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  max-width: 100%;
}

.ship-card__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

.ship-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a1a1a;
  flex-shrink: 0;
}

.ship-card__chip {
  max-width: min(100%, 420px);
}

.ship-card__chip--wide {
  max-width: 100%;
  flex: 1 1 200px;
}

.ship-card__route {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.ship-card__route-ico {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.ship-card__bot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  background: #fff;
  border-radius: 2px 2px 16px 16px;
}

.ship-card__eta {
  margin: 0;
  font-size: 16px;
  color: var(--text);
  white-space: nowrap;
}

.ship-card__eta strong {
  font-weight: 600;
}

.ship-card__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.ship-act {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #2329a6;
  cursor: pointer;
  text-decoration: none;
}

.ship-act:hover {
  text-decoration: underline;
}

.ship-act__ico {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.ship-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.ship-pager__btn {
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 16px;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ship-pager__btn--active {
  background: #eaa30a;
  color: #fff;
  font-weight: 600;
}

.ship-pager__btn--idle {
  background: #e1e4e9;
  color: var(--text);
  font-weight: 400;
}

/* Parcel detail (layout from 963:16736) */
.prd-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.prd-bc {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.prd-bc__link {
  color: var(--link);
  text-decoration: none;
}

.prd-bc__link:hover {
  text-decoration: underline;
}

.prd-bc__sep {
  margin: 0 6px;
  color: var(--muted);
}

.prd-bc__current {
  color: var(--text);
}

.prd-toprow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.prd-trackline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.prd-tracknum {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.prd-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  color: var(--text);
}

.prd-iconbtn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.prd-topacts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
}

.prd-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .prd-pair {
    grid-template-columns: 1fr;
  }
}

.prd-panel {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.prd-panel__hd {
  padding: 20px 25px 12px;
}

.prd-panel__hd--split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.prd-panel__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.prd-chip-soft {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 16px;
  background: #e1e4e9;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

.prd-panel__bd {
  padding: 0 25px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prd-ov-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--text);
}

.prd-ov-line__ico {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 1px;
}

.prd-carrier-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.prd-carrier-inline__logo {
  width: 27px;
  height: 32px;
  object-fit: contain;
}

.prd-svc-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.prd-svc-inline:hover {
  color: var(--link);
  text-decoration: underline;
}

.prd-svc-inline__info {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.85;
}

.prd-th-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  padding-left: 20px;
}

.prd-th-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 16px;
  position: relative;
  padding-left: 8px;
}

/* соединительная линия: от низа кружка текущей строки до верха кружка следующей */
.prd-th-row:not(:last-child)::after {
  content: "";
  position: absolute;
  left: -15.5px;
  top: 16px;
  bottom: -21px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #b9cefd 0%, #dce6fb 100%);
}

.prd-th-row::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8fabf5;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #b9cefd;
}

.prd-th-dt {
  display: flex;
  gap: 4px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

.prd-th-status {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.prd-th-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #2329a6;
  cursor: pointer;
}

.prd-th-more:hover {
  text-decoration: underline;
}

.prd-th-more__ico {
  width: 24px;
  height: 24px;
}

.prd-details {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.prd-details__hd {
  padding: 20px 25px 8px;
}

.prd-details__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.prd-details__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border-top: 1px solid #f1f3f7;
}

@media (max-width: 720px) {
  .prd-details__cols {
    grid-template-columns: 1fr;
  }
}

.prd-details__col {
  padding: 20px 25px 24px;
}

.prd-details__col + .prd-details__col {
  border-left: 1px solid #f1f3f7;
}

@media (max-width: 720px) {
  .prd-details__col + .prd-details__col {
    border-left: none;
    border-top: 1px solid #f1f3f7;
  }
}

.prd-details__lbl {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

.prd-details__lbl-ico {
  width: 24px;
  height: 24px;
}

.prd-details__stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prd-details__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--text);
}

.prd-details__row-ico {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.prd-details__rule {
  padding: 16px 25px;
  border-top: 1px solid #f1f3f7;
}

.prd-details__shipped {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--text);
}

.prd-details__svcrow {
  padding: 16px 25px;
  border-top: 1px solid #f1f3f7;
}

.prd-details__tags {
  padding: 12px 25px 16px;
  border-top: 1px solid #f1f3f7;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.prd-details__tag {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 16px;
  background: #e1e4e9;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

.prd-details__parcel {
  padding: 16px 25px;
  border-top: 1px solid #f1f3f7;
}

.prd-details__parcel-t {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 400;
}

.prd-details__parcel-ln {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.prd-paygrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #f1f3f7;
}

@media (max-width: 720px) {
  .prd-paygrid {
    grid-template-columns: 1fr;
  }
}

.prd-paycol {
  padding: 20px 25px 24px;
}

.prd-paycol + .prd-paycol {
  border-left: 1px solid #f1f3f7;
}

@media (max-width: 720px) {
  .prd-paycol + .prd-paycol {
    border-left: none;
    border-top: 1px solid #f1f3f7;
  }
}

.prd-payline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  padding: 6px 0;
}

.prd-payline__lbl {
  color: var(--muted);
  font-weight: 500;
}

.prd-payline__val {
  font-weight: 600;
  color: var(--text);
}

.prd-payline--total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #eeeeee;
  font-weight: 700;
}

.prd-paypal {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

.prd-paypal-sub {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--text);
}

.prd-helpfoot {
  padding: 4px 0 8px;
}

.prd-helplink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #2329a6;
  cursor: pointer;
  text-decoration: none;
}

.prd-helplink:hover {
  text-decoration: underline;
}

.account-dialog--parcel-svc {
  max-width: 560px;
}

.prd-dlg-svc__brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.prd-dlg-svc__sub {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.35;
}

.prd-dlg-svc__list {
  margin: 0 0 16px;
  padding-left: 1.1rem;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}

.prd-dlg-svc__tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-bottom: 8px;
}

.prd-dlg-svc__tbl th,
.prd-dlg-svc__tbl td {
  padding: 10px 0;
  border-bottom: 1px solid #eeeeee;
  text-align: left;
}

.prd-dlg-svc__tbl th {
  font-weight: 500;
  color: var(--muted);
  width: 55%;
}

.prd-dlg-svc__tbl td {
  font-weight: 700;
  text-align: right;
}

.prd-dlg-svc__tbl tr:last-child th,
.prd-dlg-svc__tbl tr:last-child td {
  border-bottom: none;
}

.prd-dlg-svc__note {
  margin-top: 4px !important;
  font-size: 13px !important;
}

.prd-kv {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.prd-kv__row {
  display: grid;
  grid-template-columns: minmax(0, 160px) 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eeeeee;
  font-size: 15px;
}

.prd-kv__row:last-child {
  border-bottom: none;
}

.prd-kv__row dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.prd-kv__row dd {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.prd-banner {
  margin: 0;
  border-radius: var(--radius);
}

.prd-more {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0 22px 16px;
}

.prd-more__sum {
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--link);
  padding: 18px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.prd-more__sum::-webkit-details-marker {
  display: none;
}

.prd-more__sum::after {
  content: "▾";
  font-size: 12px;
  color: var(--muted);
}

.prd-more[open] .prd-more__sum::after {
  content: "▴";
}

.prd-more__body {
  padding-bottom: 6px;
}

/* —— Help center (Figma 963:16615 · 963:17209) —— */
.page--help .dash-main {
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.hel-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.hel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.hel-head__title {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Вкладки — ссылки (у каждой свой URL), поэтому сбрасываем оформление ссылки */
.hel-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: none;
  border-radius: 16px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.hel-tab:hover {
  filter: brightness(0.98);
}

.hel-tab--active {
  background: #b9cefd;
}

.hel-tab__ico {
  flex-shrink: 0;
  display: block;
}

.hel-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 58px;
  padding: 8px 16px;
  border-radius: 16px;
  background: #fff;
  box-sizing: border-box;
}

/* Фокус показываем мягкой рамкой на всём поле, а не чёрным системным outline у input */
.hel-search:focus-within {
  box-shadow: 0 0 0 2px rgba(35, 41, 166, 0.35);
}

.hel-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  outline: none;
}

.hel-search__input::placeholder {
  color: #9a9a9a;
}

.hel-search__ico {
  flex-shrink: 0;
  opacity: 0.85;
}

.hel-panels {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hel-panel--hidden {
  display: none;
}

.hel-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hel-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 100%;
  max-width: 100%;
  filter: drop-shadow(1px 1px 15px rgba(0, 0, 0, 0.03));
}

/* Две карточки в ряд; ширину задаёт контейнер, поэтому в кабинете (колонка уже
   из-за сайдбара) и на /help (полная ширина) используется одна и та же вёрстка */
@media (min-width: 981px) {
  .hel-card {
    flex: 1 1 calc(50% - 8px);
    max-width: calc(50% - 8px);
  }
}

.hel-card__hd {
  background: #fff;
  border-radius: 16px 16px 2px 2px;
  padding: 20px 25px;
}

.hel-card__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.hel-card__bd {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border-radius: 2px 2px 16px 16px;
  padding: 20px 25px;
  flex: 1 1 auto;
}

.hel-linkrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.hel-linkrow:hover .hel-linkrow__txt {
  color: var(--link);
}

.hel-linkrow__txt {
  flex: 1 1 auto;
  min-width: 0;
}

.hel-linkrow__chev {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  object-fit: contain;
  vertical-align: middle;
}

.hel-vmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 4px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #2329a6;
  cursor: pointer;
}

.hel-vmore:hover {
  text-decoration: underline;
}

.hel-vmore__ico {
  width: 24px;
  height: 24px;
  transition: transform 0.18s ease;
}

.hel-vmore__ico--up {
  transform: rotate(180deg);
}

.hel-guides {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hel-guides__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.hel-guides__row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hel-guide {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 25px;
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.03);
}

.hel-guide:hover {
  filter: brightness(0.99);
}

.hel-guide__chev {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.hel-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 25px 16px;
  border-radius: 16px;
  background: #b9cefd;
  text-decoration: none;
  color: var(--text);
}

.hel-cta:hover {
  filter: brightness(0.97);
}

.hel-cta__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.hel-cta__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.hel-cta__sub {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

.hel-cta__chev {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  object-fit: contain;
}

/* CTA работает как кнопка (переключает вкладку), поэтому сбрасываем стили button */
button.hel-cta {
  width: 100%;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.hel-tickets-lead {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 36rem;
}

/* Счётчик непрочитанных ответов поддержки в боковом меню кабинета */
.dash-nav__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

/* —— Статья справки внутри кабинета —— */
.hel-crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.hel-crumbs__link {
  color: var(--link);
  text-decoration: none;
}

.hel-crumbs__link:hover {
  text-decoration: underline;
}

.hel-crumbs__sep {
  color: var(--muted);
}

.hel-crumbs__current {
  color: var(--text);
}

.hel-article {
  padding: 24px;
  border-radius: 16px;
  background: #fff;
}

.hel-article__title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

.hel-article__category {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.hel-article__text {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
}

.hel-article__text:last-child {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .hel-article {
    padding: 16px;
  }

  .hel-article__title {
    font-size: 22px;
  }
}

/* —— Вкладка «Online chat» в кабинете —— */
.hel-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

/* Лента сообщений: фиксированная высота на десктопе, прокрутка внутри */
.hel-chat__scroll {
  flex: 1 1 auto;
  min-height: 240px;
  max-height: 52vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 16px;
  background: #fff;
}

.hel-chat__empty {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
}

/* Предложение включить браузерные уведомления */
.hel-chat__notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 12px;
  background: #dbe6ff;
  font-size: 14px;
  color: var(--text);
}

.hel-chat__notice-btn {
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--link);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.hel-chat__error {
  margin: 0;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fee2e2;
  font-size: 14px;
  color: #991b1b;
}

.hel-chat__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hel-chat__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 78%;
}

/* Входящие — слева, жёлтые; исходящие — справа, голубые */
.hel-chat__row--in {
  align-self: flex-start;
  align-items: flex-start;
}

.hel-chat__row--out {
  align-self: flex-end;
  align-items: flex-end;
}

.hel-chat__bubble {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
}

.hel-chat__bubble--in {
  background: #fde9b6;
}

.hel-chat__bubble--out {
  background: #dbe6ff;
}

.hel-chat__text {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.hel-chat__files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.hel-chat__file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.hel-chat__file-ico {
  flex-shrink: 0;
  opacity: 0.6;
}

.hel-chat__file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
}

a.hel-chat__file-name:hover {
  text-decoration: underline;
}

.hel-chat__meta {
  display: flex;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* —— Поле ввода сообщения —— */
.hel-composer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #fff;
}

.hel-composer__input {
  width: 100%;
  min-height: 24px;
  max-height: 160px;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  resize: none;
  outline: none;
  overflow-y: hidden;
}

.hel-composer__input::placeholder {
  color: var(--muted);
}

.hel-composer__files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hel-composer__file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 220px;
  padding: 6px 10px;
  border: 1px solid #e4e6ea;
  border-radius: 8px;
  font-size: 14px;
}

.hel-composer__file-ico {
  flex-shrink: 0;
  opacity: 0.6;
}

.hel-composer__file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hel-composer__file-remove {
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.hel-composer__file-remove:hover {
  color: var(--text);
}

.hel-composer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hel-composer__tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hel-composer__tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.hel-composer__tool:hover,
.hel-composer__tool--active {
  background: #f2f3f5;
  color: var(--text);
}

/* —— Выпадашки смайликов и форматирования —— */
.hel-composer__popwrap {
  position: relative;
}

.hel-pop {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 20;
  padding: 12px;
  border: 1px solid #e4e6ea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.hel-pop--emoji {
  width: 320px;
  max-height: 260px;
  overflow-y: auto;
}

.hel-pop__group + .hel-pop__group {
  margin-top: 12px;
}

.hel-pop__title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.hel-pop__emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
}

.hel-pop__emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

/* Смайлик подсвечиваем и увеличиваем при наведении — тултип тут не нужен */
.hel-pop__emoji:hover {
  background: #f2f3f5;
  transform: scale(1.15);
}

/* Форматирование — ряд значков, без текстовых кнопок: подпись в тултипе */
.hel-pop--format {
  display: flex;
  gap: 2px;
  padding: 6px;
}

.hel-pop__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
  cursor: pointer;
}

.hel-pop__icon:hover {
  background: #f2f3f5;
}

/* —— Тултипы для значков —— */
[data-tip] {
  position: relative;
}

[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
}

[data-tip]:hover::after,
[data-tip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
}


/* —— Разметка внутри сообщений —— */
.hel-md-code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
}

.hel-md-pre {
  margin: 6px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* Спойлер: текст скрыт до наведения/клика */
.hel-md-spoiler {
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.75);
  color: transparent;
  transition: color 0.15s ease, background 0.15s ease;
}

.hel-md-spoiler:hover,
.hel-md-spoiler:focus {
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
}

.hel-composer__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 132px;
  height: 36px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: var(--primary-on);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.hel-composer__send:disabled {
  opacity: 0.5;
  cursor: default;
}

@media (max-width: 980px) {
  .hel-chat__scroll {
    max-height: none;
    padding: 12px;
  }

  .hel-chat__row {
    max-width: 92%;
  }

  .hel-composer {
    padding: 10px 12px;
  }

  /* На мобильных кнопка отправки — круглая иконка справа от поля */
  .hel-composer__send {
    min-width: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
  }

  .hel-composer__send-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.hel-footer {
  background: #e1e4e9;
  border-radius: 100px 100px 0 0;
  margin-top: 32px;
  padding: 32px clamp(16px, 5vw, 120px) 40px;
}

.hel-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.hel-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 48px;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .hel-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .hel-footer__cols {
    grid-template-columns: 1fr;
  }
}

.hel-footer__ttl {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.hel-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hel-footer__link {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.hel-footer__link:hover {
  text-decoration: underline;
}

.hel-footer__line {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.hel-footer__block + .hel-footer__block {
  margin-top: 20px;
}

.hel-footer__copy {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
}

@media (max-width: 980px) {
  .hel-head__title {
    font-size: 24px;
    font-weight: 700;
  }

  .hel-card__hd {
    padding: 16px;
  }

  .hel-card__title {
    font-size: 18px;
  }

  .hel-card__bd {
    padding: 16px;
  }
}

/* —— Address book (Figma 1028:14801 · 1028:14931 · 1028:17330 · 1028:17540 · 1028:15784 · 1028:15959 · 1034:13927 · 1028:18266) —— */
.page--addrbook .dash-main {
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.ab-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.ab-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.ab-head__title {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.ab-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ab-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: none;
  border-radius: 16px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
}

.ab-tab:hover {
  filter: brightness(0.98);
}

.ab-tab--active {
  background: #b9cefd;
}

.ab-tab__ico {
  flex-shrink: 0;
  display: block;
}

.ab-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.ab-toolbar__filter {
  display: none;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.ab-toolbar__filter:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.ab-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 240px;
  min-height: 58px;
  min-width: 0;
  padding: 8px 16px;
  border-radius: 16px;
  background: #fff;
  box-sizing: border-box;
}

.ab-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--text);
}

.ab-search__input::placeholder {
  color: #9a9a9a;
}

.ab-search__ico {
  flex-shrink: 0;
  opacity: 0.85;
}

.ab-sort {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 1 260px;
  min-width: 0;
}

.ab-sort__lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding-left: 4px;
}

.ab-sort__field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 8px 12px 8px 16px;
  border-radius: 16px;
  background: #fff;
  box-sizing: border-box;
}

.ab-sort__sel {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  appearance: none;
}

.ab-sort__chev {
  flex-shrink: 0;
  display: flex;
  opacity: 0.75;
  transform: rotate(90deg);
}

.ab-add {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 16px;
  background: #eaa30a;
  cursor: pointer;
}

.ab-add:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.ab-add img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

@media (max-width: 700px) {
  .ab-toolbar {
    /*display: grid;*/
    /*grid-template-columns: 58px 1fr 58px;*/
    /*grid-template-rows: auto auto;*/
    gap: 12px;
    align-items: stretch;
  }

  .ab-toolbar__filter {
    display: flex;
    grid-column: 1;
    grid-row: 1;
  }

  .ab-search {
    grid-column: 2 / -1;
    grid-row: 1;
    flex: none;
  }

  .ab-sort {
    grid-column: 1 / 3;
    grid-row: 2;
    flex: none;
  }

  .ab-add {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    align-self: stretch;
  }
}

.ab-panels {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ab-panel--hidden {
  display: none;
}

.ab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 16px;
}

.ab-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  min-width: 0;
}

.ab-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ab-card__name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.ab-fav {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.ab-card__menu-wrap {
  position: relative;
  flex-shrink: 0;
}

.ab-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: -8px -8px 0 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.ab-more:hover {
  color: var(--text);
  background: var(--pill-bg);
}

.ab-menu {
  position: absolute;
  top: calc(100% - 4px);
  right: 0;
  z-index: 20;
  min-width: 200px;
  padding: 6px;
  border-radius: 16px;
  background: #eee;
  box-shadow: 0 12px 32px rgba(26, 26, 26, 0.12);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ab-menu[hidden] {
  display: none !important;
}

.ab-menu__item {
  display: block;
  width: 100%;
  padding: 8px 16px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
}

.ab-menu__item:hover {
  background: rgba(255, 255, 255, 0.6);
}

.ab-menu__item--danger {
  color: #fe1100;
}

.ab-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ab-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text);
}

.ab-row__ico {
  flex-shrink: 0;
  margin-top: 2px;
}

.ab-row--multiline .ab-row__ico {
  margin-top: 3px;
}

.ab-ship-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.ab-ship-meta__dot {
  color: var(--muted);
}

.ab-ship-meta__carr {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 600;
}

.ab-ship-meta__carr img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.ab-link-act {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  font-size: 16px;
  font-weight: 600;
  color: #eaa30a;
  text-decoration: none;
}

.ab-link-act:hover {
  text-decoration: underline;
}

.ab-link-act__ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #eaa30a;
  color: #eaa30a;
  flex-shrink: 0;
}

.ab-pager {
  margin-top: 8px;
}

.ab-dialog.account-dialog--wide {
  max-width: 560px;
}

.ab-dialog__handle {
  display: none;
  width: 40px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: #c9cdd4;
}

.ab-dlg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 16px;
}

.ab-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  padding: 6px 16px;
  border-radius: 16px;
  background: #eee;
  box-sizing: border-box;
}

.ab-field--full {
  grid-column: 1 / -1;
}

.ab-field__lbl {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.ab-field__inp {
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  padding: 0;
  min-height: 22px;
}

.ab-field__inp:focus {
  outline: none;
}

.ab-field:focus-within {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.ab-dialog__actions {
  margin-top: 24px;
}

.ab-seg {
  display: flex;
  margin-top: 8px;
  padding: 0;
  border-radius: 16px;
  background: #eee;
  gap: 4px;
}

.ab-seg__btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 10px;
  border: none;
  border-radius: 12px;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.ab-seg__btn--active {
  background: #b9cefd;
}

@media (max-width: 520px) {
  .ab-dlg-grid {
    grid-template-columns: 1fr;
  }

  .ab-field--full {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .ab-dialog {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 16px 16px 0 0;
    max-height: min(92dvh, 900px);
    overflow: auto;
    box-sizing: border-box;
  }

  .ab-dialog__handle {
    display: block;
  }

  .ab-head__title {
    font-size: 24px;
    font-weight: 700;
  }
}

/* —— Shipping templates (Figma 1058:23972 · 1058:24112 · 1058:24348 · 1058:24072 · 1103:40422 · 1103:40501 · 1058:24260 · 1058:24395) —— */
.page--tmpl .dash-main {
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.tpl-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.tpl-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tpl-page-head__title {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.tpl-add-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 58px;
  max-width: 228px;
  width: 100%;
  padding: 8px 20px;
  border: none;
  border-radius: 16px;
  background: #eaa30a;
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.tpl-add-new:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.tpl-add-new__lbl {
  display: none;
}

@media (min-width: 701px) {
  .tpl-add-new {
    padding-inline: 24px;
  }

  .tpl-add-new__lbl {
    display: inline;
  }
}

.tpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 468px), 1fr));
  gap: 16px;
}

.tpl-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 25px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.03);
  min-width: 0;
}

.tpl-card--simple {
  min-height: 200px;
}

.tpl-card__block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.tpl-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tpl-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.tpl-card__menu-wrap {
  position: relative;
  flex-shrink: 0;
}

.tpl-menu {
  position: absolute;
  top: calc(100% - 4px);
  right: 0;
  z-index: 20;
  min-width: 174px;
  padding: 16px;
  border-radius: 16px;
  background: #eee;
  box-shadow: -1px -0.5px 2px rgba(0, 0, 0, 0.1), 1px 1.5px 1px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tpl-menu[hidden] {
  display: none !important;
}

.tpl-menu__item {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.tpl-menu__item--ico {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tpl-menu__item:hover {
  opacity: 0.88;
}

.tpl-menu__item--danger {
  color: #fe1100;
}

.tpl-menu__trash {
  flex-shrink: 0;
}

.tpl-card__svc {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tpl-card__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.tpl-card__svcname {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.tpl-card__line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

.tpl-card__wico {
  flex-shrink: 0;
  color: var(--muted);
}

.tpl-addr {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
}

.tpl-addr p {
  margin: 0;
}

.tpl-abico {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #9a9a9a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.tpl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.tpl-chip {
  padding: 3px 10px;
  border-radius: 30px;
  background: #eee;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

.tpl-card__cta--full {
  width: 100%;
  justify-content: center;
}

.tpl-card__foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: left;
}

.tpl-partial {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #2329a6;
  cursor: pointer;
}

.tpl-partial:hover {
  text-decoration: underline;
}

.tpl-pager {
  margin-top: 8px;
}

.tpl-dialog.tpl-dialog--pick.account-dialog--wide {
  max-width: 560px;
}

.tpl-dialog.tpl-dialog--editor {
  max-width: min(920px, calc(100vw - 32px));
  width: calc(100vw - 32px);
}

.tpl-dialog__inner--scroll {
  max-height: min(88dvh, 920px);
  overflow: auto;
}

.tpl-pick-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 20px;
}

.tpl-pick-row {
  width: 100%;
  align-items: flex-start;
}

.tpl-pick-row .chk {
  margin-top: 2px;
}

.tpl-pick-row__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.tpl-pick-row__lbl {
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

.tpl-pick-row__val {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.tpl-pick-submit {
  width: 100%;
}

.tpl-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}

.tpl-form__full {
  width: 100%;
}

.tpl-form-grid .tpl-form__span2 {
  grid-column: 1 / -1;
}

.tpl-meas-dims {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

@media (max-width: 720px) {
  .tpl-meas-dims {
    grid-template-columns: 1fr;
  }
}

.tpl-sec {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tpl-sec__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tpl-sec__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.tpl-sec__title--solo {
  margin-bottom: 0;
}

.tpl-sec__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tpl-sec__actions--mob {
  display: none;
}

@media (max-width: 700px) {
  .tpl-sec__actions--desk {
    display: none;
  }

  .tpl-sec__actions--mob {
    display: flex;
  }
}

.tpl-linkico {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
  cursor: pointer;
}

.tpl-linkico:hover {
  text-decoration: underline;
}

.tpl-icobtn {
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 16px;
  background: #eee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tpl-icobtn:hover {
  filter: brightness(0.97);
}

.tpl-star {
  font-size: 18px;
  line-height: 1;
  color: var(--link);
}

.tpl-prot-lbl {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.tpl-info-ico {
  display: inline-block;
  vertical-align: middle;
  margin-left: 2px;
  opacity: 0.85;
}

.tpl-svc-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
}

@media (max-width: 640px) {
  .tpl-svc-cols {
    grid-template-columns: 1fr;
  }
}

.tpl-svc-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tpl-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.tpl-dialog .ab-dialog__handle {
  display: none;
}

@media (max-width: 640px) {
  .tpl-dialog {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 16px 16px 0 0;
    max-height: min(92dvh, 960px);
    overflow: auto;
    box-sizing: border-box;
  }

  .tpl-dialog .ab-dialog__handle {
    display: block;
  }

  .tpl-page-head__title {
    font-size: 24px;
    font-weight: 700;
  }
}

/* —— Bulk shipping (1068:24634 …) —— */
.bulk-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.bulk-card-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 16px;
  overflow: hidden;
  max-width: 100%;
}

.bulk-card {
  background: var(--surface);
  padding: 24px 28px 28px;
  box-sizing: border-box;
}

.bulk-card--hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bulk-page-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.bulk-page-title--wizard {
  margin-bottom: 4px;
}

.bulk-subtitle {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.bulk-recent-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.bulk-rcard {
  flex: 0 0 auto;
  min-width: 200px;
  max-width: 260px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(35, 41, 166, 0.12);
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 8px;
  align-items: center;
  background: #fafbff;
}

.bulk-rcard:hover {
  border-color: var(--link);
}

.bulk-rcard__id {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.bulk-rcard__go {
  font-size: 18px;
  color: var(--link);
}

.bulk-rcard__date {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--muted);
}

.bulk-viewall {
  font-weight: 600;
  font-size: 15px;
  color: var(--link);
  text-decoration: none;
}

.bulk-viewall:hover {
  text-decoration: underline;
}

.bulk-wizard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.bulk-backlink {
  align-self: flex-start;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: var(--link);
  cursor: pointer;
  text-decoration: none;
}

.bulk-backlink:hover {
  text-decoration: underline;
}

.bulk-stepper {
  margin: 8px 0 16px;
}

.bulk-stepper__list {
  list-style: none;
  margin: 0;
  padding: 8px;
  display: flex;
  gap: 2px;
  background: #eceff8;
  border-radius: 18px;
  min-width: 0;
}

.bulk-tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  border: none;
  border-radius: 12px;
  background: var(--surface);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.bulk-tab__ico {
  flex-shrink: 0;
  opacity: 0.75;
}

.bulk-tab__lbl {
  line-height: 1.15;
  text-align: center;
}

.bulk-tab--done {
  background: #dce6fb;
  color: var(--link);
}

.bulk-tab--done .bulk-tab__ico {
  opacity: 1;
}

.bulk-tab--current {
  background: #b9cefd;
  color: var(--link);
}

.bulk-tab--current .bulk-tab__ico {
  opacity: 1;
}

@media (max-width: 720px) {
  .bulk-tab {
    flex-direction: column;
    gap: 4px;
    padding: 8px 4px;
    font-size: 11px;
  }

  .bulk-tab__ico {
    width: 18px;
    height: 18px;
  }
}

.bulk-panels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bulk-panel__card {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px 28px 28px;
  box-sizing: border-box;
}

.bulk-panel__card--table {
  padding-top: 20px;
}

.bulk-panel__card--pay .sp-pay-rows {
  margin-bottom: 16px;
}

.bulk-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.bulk-sec-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.bulk-sec-title--solo {
  margin-bottom: 20px;
}

.bulk-sec-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bulk-addr-h {
  margin: 24px 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.bulk-addr-hint {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--muted);
}

.bulk-link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--link);
  cursor: pointer;
  text-decoration: underline;
}

a.bulk-link {
  text-decoration: underline;
}

.bulk-foot-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bulk-foot-actions--end {
  justify-content: flex-end;
}

.bulk-add-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 720px) {
  .bulk-add-grid {
    grid-template-columns: 1fr;
  }
}

.bulk-add-col {
  background: #f5f7fc;
  padding: 20px 22px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bulk-add-ttl {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.bulk-add-txt {
  margin: 0;
  flex: 1 1 auto;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

.bulk-table-wrap {
  overflow-x: auto;
  margin: 0 -8px;
  padding: 0 8px;
}

.bulk-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}

.bulk-table th {
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  padding: 10px 12px 12px;
  border-bottom: 1px solid rgba(35, 41, 166, 0.1);
}

.bulk-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(35, 41, 166, 0.06);
  vertical-align: middle;
}

.bulk-table__act {
  white-space: nowrap;
  text-align: right;
}

.bulk-table__narrow {
  width: 110px;
}

.bulk-iconact {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #eee;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  margin-left: 4px;
}

.bulk-iconact:hover {
  filter: brightness(0.97);
}

.bulk-q-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: flex-end;
  margin-bottom: 20px;
}

.bulk-q-field {
  flex: 1 1 200px;
  min-width: 180px;
  max-width: 320px;
}

.bulk-q-field--date {
  max-width: 260px;
}

.bulk-ms {
  position: relative;
  flex: 1 1 220px;
  min-width: 200px;
}

.bulk-ms-lbl {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.bulk-ms-trigger {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(35, 41, 166, 0.12);
  background: var(--surface);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.bulk-ms-pop {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(35, 41, 166, 0.1);
}

.bulk-ms-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.bulk-svc-cell {
  position: relative;
  vertical-align: top;
}

.bulk-svc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(35, 41, 166, 0.12);
  background: #f5f7fc;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.bulk-row-open .bulk-svc-btn {
  border-color: var(--link);
  background: #e8f0ff;
}

.bulk-svc-dd {
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(100% + 4px);
  z-index: 25;
  padding: 6px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(35, 41, 166, 0.12);
}

.bulk-svc-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.bulk-svc-opt:hover {
  background: #f0f4ff;
}

.bulk-svc-opt--active {
  background: #dce6fb;
  font-weight: 600;
}

.bulk-co-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 12px;
  align-items: start;
}

@media (max-width: 960px) {
  .bulk-co-grid {
    grid-template-columns: 1fr;
  }
}

.bulk-co-svc-row td {
  padding-top: 0;
  border-bottom: none;
}

.bulk-co-svcs {
  padding: 8px 0 16px 12px;
  border-left: 3px solid #b9cefd;
  margin-left: 4px;
}

.bulk-dlg-h {
  margin: 20px 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.bulk-dlg-form .bulk-dlg-h:first-child {
  margin-top: 0;
}

.bulk-detail-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bulk-detail-dl div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  font-size: 15px;
}

.bulk-detail-dl dt {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
}

.bulk-detail-dl dd {
  margin: 0;
  color: var(--text);
}

@media (max-width: 520px) {
  .bulk-detail-dl div {
    grid-template-columns: 1fr;
  }
}

.bulk-svc-pick {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bulk-svc-pick__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-radius: 10px;
}

.bulk-svc-pick__price {
  margin-left: auto;
  font-weight: 600;
  font-size: 15px;
}

.bulk-wrap .sp-pd-grid2__full {
  grid-column: 1 / -1;
}

.bulk-dialog .ab-dialog__handle {
  display: none;
}

@media (max-width: 640px) {
  .bulk-dialog {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 16px 16px 0 0;
    max-height: min(92dvh, 960px);
    overflow: auto;
    box-sizing: border-box;
  }

  .bulk-dialog .ab-dialog__handle {
    display: block;
  }

  .bulk-page-title {
    font-size: 22px;
  }

  .bulk-card {
    padding: 18px 16px 20px;
  }
}

/* —— Settings · Users / Team (ЛКА 1170:35048, 35180, 35295, modals) —— */
.page--settings-team .dash-content {
  max-width: 100%;
}

.st-lk-head {
  margin-bottom: 20px;
}

.st-lk-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.st-lk-tabs__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: var(--pill-bg);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.st-lk-tabs__pill:hover {
  border-color: rgba(35, 41, 166, 0.12);
}

.st-lk-tabs__pill--active {
  background: #dce6fb;
  color: var(--link);
  border-color: rgba(35, 41, 166, 0.18);
}

.st-team-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px 24px 20px;
  border: 1px solid rgba(35, 41, 166, 0.08);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.st-team-card__intro {
  margin-bottom: 20px;
}

.st-team-card__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.st-team-card__lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 72ch;
}

.st-team-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.st-team-split {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.st-team-split__main.ui-btn {
  border-radius: 12px 0 0 12px;
  padding-left: 16px;
  padding-right: 14px;
  gap: 8px;
}

.st-team-split__chev.ui-btn {
  border-radius: 0 12px 12px 0;
  min-width: 44px;
  padding: 0 10px;
  margin-left: -1px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.st-team-split__ico {
  display: block;
  flex-shrink: 0;
}

.st-team-add-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  min-width: 160px;
  padding: 8px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(35, 41, 166, 0.1);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.14);
}

.st-team-add-pop__item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.st-team-add-pop__item:hover {
  background: var(--pill-bg);
}

.st-team-table-scroll {
  overflow-x: auto;
  margin: 0 -8px;
  padding: 0 8px 4px;
}

.st-team-table {
  width: 100%;
  min-width: 880px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.st-team-table thead th {
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  padding: 10px 12px 12px;
  border-bottom: 1px solid #eceef4;
  vertical-align: middle;
  white-space: nowrap;
}

.st-team-th--check {
  width: 44px;
}

.st-team-th--perm {
  text-align: center;
}

.st-team-th--act {
  width: 52px;
}

.st-team-th__row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.st-team-th__tools {
  display: inline-flex;
  gap: 4px;
}

.st-team-ico-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
}

.st-team-ico-btn:hover {
  background: var(--pill-bg);
  color: var(--text);
}

.st-team-table tbody td {
  padding: 14px 12px;
  vertical-align: middle;
  border-bottom: 1px solid #f0f2f7;
}

.st-team-table tbody tr:nth-child(even) td {
  background: #f9fafc;
}

.st-team-usercell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.st-team-usercell__name {
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.st-team-usercell__name--group {
  font-weight: 700;
}

.st-team-usercell__tag {
  flex-shrink: 0;
}

.st-team-usercell__em {
  font-size: 13px;
  color: var(--muted);
}

.st-team-role {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: #eef2fb;
  font-size: 13px;
  font-weight: 600;
  color: #3d4a8f;
}

.st-team-td-center {
  text-align: center;
}

.st-team-tick {
  display: inline-block;
  vertical-align: middle;
}

.st-team-empty-tick {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #d5d8e0;
  background: var(--surface);
  vertical-align: middle;
}

.st-team-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.st-team-check__box {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #c5c8ce;
  background: var(--surface);
  transition: border-color 0.12s ease, background 0.12s ease;
}

.st-team-check__input:checked + .st-team-check__box {
  border-color: transparent;
  background: transparent url("./assets/figma-team-check.svg") center / 16px 16px no-repeat;
}

.st-team-check__input:focus-visible + .st-team-check__box {
  outline: 2px solid rgba(35, 41, 166, 0.35);
  outline-offset: 2px;
}

.st-team-th--check .st-team-check__box {
  margin-top: 2px;
}

.st-team-td-actions {
  text-align: right;
  width: 52px;
}

.st-team-act {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
}

.st-team-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
}

.st-team-more:hover {
  background: #eef1f8;
  color: var(--text);
}

.st-team-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 35;
  min-width: 200px;
  padding: 8px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(35, 41, 166, 0.1);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
}

.st-team-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.st-team-menu__item img {
  flex-shrink: 0;
  opacity: 0.85;
}

.st-team-menu__item:hover {
  background: var(--pill-bg);
}

.st-team-menu__item--danger {
  color: #c62828;
}

.st-team-menu__item--danger:hover {
  background: #ffebee;
}

.st-dlg-lead {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.st-dlg-fieldset {
  margin: 20px 0 0;
  padding: 0;
  border: none;
}

.st-dlg-legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.st-dlg-form .settings-form-grid {
  margin-top: 4px;
}

.st-team-ms {
  margin-top: 20px;
}

.st-dlg-info {
  padding: 8px 0 16px;
}

.st-dlg-info__line {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.45;
}

.st-dlg-info__line strong {
  display: inline-block;
  min-width: 88px;
  font-weight: 600;
  color: var(--muted);
}

.team-dialog .ab-dialog__handle {
  display: none;
}

@media (max-width: 640px) {
  .st-lk-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    margin: 0 -4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .st-lk-tabs__pill {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .st-team-card {
    padding: 18px 16px 16px;
  }

  .st-team-toolbar {
    justify-content: stretch;
  }

  .st-team-split {
    width: 100%;
  }

  .st-team-split__main.ui-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .team-dialog {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 16px 16px 0 0;
    max-height: min(92dvh, 960px);
    overflow: auto;
    box-sizing: border-box;
  }

  .team-dialog .ab-dialog__handle {
    display: block;
  }
}

.pm-results-surface {
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}
@media (max-width: 980px) {
    .cw-carrier-desk {
        display: block;
        padding: 0 max(16px, env(safe-area-inset-left, 0px)) 0 max(16px, env(safe-area-inset-right, 0px));
    }
    .cw-carrier-grid {
        display: block;
    }
    .cw-filters-stack {
        display: none;
    }


    .pm-offer__body {
        flex-direction: row;
    }
}

@media (max-width: 740px) {
    .pm-offer__body > div {
        flex: 1 1;
    }
    .ab-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    .shell.dash-shell {
        padding:0 16px;
    }
}
@media (max-width: 640px) {
    .tariff-context.dash-context {
        display: none;
    }
    .pm-offer__body {
        flex-direction: column;
        align-items: flex-start;
    }
    .pm-offers .pm-offer_badges {
        left: auto;
        right: 22px;
    }
}

/* ---------- Error pages (403 / 404 / 419 / 429 / 500 / 503) ---------- */
.page--error {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.errpage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* Шапка страниц ошибок сливается с фоном страницы (без белой плашки) */
.topbar--error {
  background: transparent;
  height: auto;
  min-height: 62px;
}

.errpage__main {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 120px 80px;
}

.errpage__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 620px;
}

.errpage__img {
  display: block;
  width: 100%;
  max-width: 424px;
  height: auto;
}

.errpage__title {
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--link);
}

.errpage__text {
  margin: 12px 0 0;
  max-width: 420px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
}

.errpage__footer {
  flex: 0 0 auto;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.errpage__footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.errpage__footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.errpage__footer-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.errpage__footer-link:hover {
  color: var(--link);
}

.errpage__footer-copy {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.errpage__topbar-mobile {
  justify-content: space-between;
}

@media (max-width: 1100px) {
  .errpage__main {
    padding: 32px 27px 60px;
  }

  .errpage__footer-inner {
    padding: 18px 27px;
  }
}

@media (max-width: 760px) {
  .errpage__img {
    max-width: 280px;
  }

  .errpage__title {
    font-size: 24px;
  }

  .errpage__text {
    font-size: 14px;
  }

  .errpage__footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .errpage__footer-right {
    gap: 16px;
  }
}

/* ---------- Content pages (about / pricing / faq / help и т.п.) ---------- */
.page--content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.cpage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow-x: clip;
}

/* Шапка сливается с фоном — как на страницах ошибок */
.topbar--content {
  background: transparent;
  height: auto;
  min-height: 62px;
}

.cpage__topbar-mobile {
  justify-content: space-between;
}

.cpage__main {
  flex: 1 0 auto;
  padding: 32px 120px 64px;
}

.cpage__shell {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cpage__crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.cpage__crumb {
  color: var(--muted);
  text-decoration: none;
}

.cpage__crumb:hover {
  color: var(--link);
}

.cpage__crumb--home {
  display: inline-flex;
  align-items: center;
  color: rgba(26, 26, 26, 0.45);
}

.cpage__crumb--current {
  color: var(--muted);
}

.cpage__crumb-sep {
  color: rgba(26, 26, 26, 0.3);
}

.cpage__title {
  margin: 14px 0 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--headline-blue);
}

.cpage__lead {
  margin: 10px 0 0;
  max-width: 760px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
}

.cpage__card {
  margin-top: 32px;
  padding: 32px 40px;
  min-width: 0;
  background: var(--surface);
  border-radius: var(--radius);
}

/* —— Типографика внутри карточки —— */
.cpage__card > *:first-child {
  margin-top: 0;
}

.cpage__card > *:last-child {
  margin-bottom: 0;
}

.cpage__card p,
.cpage__card li {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(26, 26, 26, 0.78);
}

.cpage__card p {
  margin: 0 0 18px;
}

.cpage__h2 {
  margin: 34px 0 14px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--headline-blue);
}

.cpage__h3 {
  margin: 24px 0 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.cpage__list {
  margin: 0 0 18px;
  padding-left: 20px;
}

.cpage__list li {
  margin-bottom: 8px;
}

.cpage__list--plain {
  list-style: none;
  padding-left: 0;
}

.cpage__list--plain li {
  position: relative;
  padding-left: 20px;
}

.cpage__list--plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* —— Сетка карточек-плиток —— */
.cpage__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin: 0 0 22px;
}

.cpage__tile {
  padding: 20px 22px;
  background: var(--hero-surface);
  border-radius: 12px;
}

.cpage__tile-ttl {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.cpage__tile-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(26, 26, 26, 0.65);
}

.cpage__tile-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-on);
  font-size: 14px;
  font-weight: 700;
}

/* —— Таблица (тарифы, реквизиты, статусы) —— */
.cpage__table-wrap {
  margin: 0 0 22px;
  max-width: 100%;
  overflow-x: auto;
}

.cpage__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.cpage__table th,
.cpage__table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.cpage__table th {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cpage__table td {
  color: rgba(26, 26, 26, 0.78);
}

.cpage__table tr:last-child td {
  border-bottom: 0;
}

/* —— Статус сервиса —— */
.cpage__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.cpage__status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2fb56a;
}

.cpage__status--degraded::before {
  background: var(--primary);
}

.cpage__status--down::before {
  background: var(--error);
}

/* —— FAQ-аккордеон на контентной странице —— */
.cpage__faq {
  margin: 0;
}

.cpage__faq-item {
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.cpage__faq-item:last-child {
  border-bottom: 0;
}

.cpage__faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.cpage__faq-q:hover {
  color: var(--link);
}

.cpage__faq-ico {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.18s ease;
}

.cpage__faq-item--open .cpage__faq-ico {
  transform: rotate(180deg);
}

.cpage__faq-a {
  margin: 0;
  padding: 0 0 18px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(26, 26, 26, 0.7);
}

/* —— Контакты / CTA —— */
.cpage__contact-link {
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}

.cpage__contact-link:hover {
  text-decoration: underline;
}

.cpage__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.cpage__cta-text {
  margin: 0;
  flex: 1 1 260px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(26, 26, 26, 0.7);
}

.cpage__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  padding: 0 32px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-on);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.cpage__btn--ghost {
  background: #eeeeee;
  color: var(--text);
}

/* —— Код (страница API) —— */
.cpage__code {
  margin: 0 0 22px;
  max-width: 100%;
  padding: 18px 20px;
  background: #1f2330;
  border-radius: 12px;
  overflow-x: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #e8ecf5;
}

.cpage__note {
  margin: 0 0 22px;
  padding: 16px 20px;
  border-left: 3px solid var(--primary);
  border-radius: 0 12px 12px 0;
  background: #fdf6e7;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(26, 26, 26, 0.75);
}

/* ---------- Footer help page ---------- */
.help-center {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.help-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 22px;
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 8px;
}

.help-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 45px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  outline: none;
}

.help-search__input::placeholder {
  color: rgba(26, 26, 26, 0.38);
}

.help-search__button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 45px;
  padding: 0 28px;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: var(--primary-on);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.help-search__button svg {
  fill: currentColor;
}

.help-section-title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--headline-blue);
}

.help-faq {
  margin-bottom: 42px;
}

.help-faq__list {
  margin: 0;
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

.help-faq__item {
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.help-faq__item:last-child {
  border-bottom: 0;
}

.help-faq__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.help-faq__toggle svg {
  flex-shrink: 0;
  fill: rgba(26, 26, 26, 0.45);
  transition: transform 0.18s ease;
}

.help-faq__item--open .help-faq__toggle svg {
  transform: rotate(180deg);
}

.help-faq__toggle:hover {
  color: var(--headline-blue);
}

.help-faq__answer {
  margin: 0;
  padding: 0 22px 16px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(26, 26, 26, 0.68);
}

.help-empty {
  margin-bottom: 42px;
  padding: 28px 32px;
  border-radius: 10px;
  background: var(--surface);
  text-align: center;
}

.help-empty__title {
  margin: 0 0 8px;
  color: var(--headline-blue);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.help-empty__text {
  margin: 0;
  color: rgba(26, 26, 26, 0.62);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.help-lead-band {
  margin: 0 calc(50% - 50vw) -64px;
  padding: 0;
  background: #f4f5f5;
}

.help-lead-band .shell {
  max-width: 100%;
}

.help-lead-band .footer-home-panel {
  border-radius: 18px 18px 0 0;
}

@media (max-width: 1100px) {
  .cpage__main {
    padding: 24px 27px 48px;
  }

  .cpage__card {
    padding: 24px 22px;
  }

  .help-lead-band {
    margin-bottom: -48px;
  }
}

@media (max-width: 760px) {
  .cpage__title {
    font-size: 22px;
  }

  .cpage__lead {
    font-size: 15px;
  }

  .cpage__card {
    margin-top: 22px;
    padding: 20px 18px;
  }

  .cpage__h2 {
    font-size: 19px;
  }

  .cpage__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cpage__btn {
    width: 100%;
  }

  .help-center {
    gap: 22px;
  }

  .help-search {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .help-search__input {
    height: 40px;
    padding: 0 8px;
  }

  .help-search__button {
    width: 100%;
  }

  .help-section-title {
    font-size: 22px;
  }
}

/* ---------- Finances: история операций по счёту ---------- */
.fin-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.fin-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

.fin-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.fin-summary__card {
  padding: 18px 22px;
  background: var(--surface);
  border-radius: var(--radius);
}

.fin-summary__label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.fin-summary__value {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

.fin-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fin-toolbar__search {
  flex: 1 1 280px;
  min-width: 0;
}

.fin-toolbar__filter {
  flex: 0 1 200px;
  min-width: 0;
}

.fin-export {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-on);
  text-decoration: none;
}

.fin-export:hover {
  background: #d8960a;
}

/* —— Таблица (десктоп) —— */
.fin-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border-radius: var(--radius);
}

.fin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.fin-table th,
.fin-table td {
  padding: 14px 20px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
  white-space: nowrap;
}

.fin-table th {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.fin-table tbody tr:last-child td {
  border-bottom: 0;
}

.fin-table tbody tr:nth-child(even) {
  background: rgba(241, 243, 247, 0.5);
}

.fin-table__date {
  display: table-cell;
}

.fin-date {
  display: block;
  font-weight: 600;
  color: var(--text);
}

.fin-time {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.fin-table__desc {
  white-space: normal;
  min-width: 260px;
  color: rgba(26, 26, 26, 0.78);
}

.fin-table__num {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.fin-amount--minus {
  color: var(--error);
}

.fin-amount--plus {
  color: #2fb56a;
}

/* —— Чипы типа операции —— */
.fin-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.fin-chip--payment {
  background: rgba(234, 163, 10, 0.16);
  color: #a06d00;
}

.fin-chip--refund {
  background: rgba(234, 163, 10, 0.16);
  color: #a06d00;
}

.fin-chip--label {
  background: rgba(35, 41, 166, 0.12);
  color: var(--link);
}

/* —— Статус оплаты —— */
.fin-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.fin-status--paid {
  background: rgba(47, 181, 106, 0.16);
  color: #1f8a4f;
}

.fin-status--unpaid {
  background: rgba(254, 17, 0, 0.12);
  color: var(--error);
}

/* —— Карточки (мобильная версия) —— */
.fin-cards {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.fin-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 18px;
  background: var(--surface);
  border-radius: var(--radius);
}

.fin-card__top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fin-card__date {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.fin-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(26, 26, 26, 0.78);
}

.fin-card__rows {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fin-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fin-card__row dt {
  font-size: 14px;
  color: rgba(26, 26, 26, 0.6);
}

.fin-card__row dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.fin-empty {
  margin: 0;
  padding: 28px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .fin-table-wrap {
    display: none;
  }

  .fin-cards {
    display: flex;
  }

  .fin-title {
    font-size: 22px;
  }

  .fin-summary {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .fin-summary__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
  }

  .fin-summary__label,
  .fin-summary__value {
    margin: 0;
  }

  .fin-summary__value {
    font-size: 18px;
  }

  .fin-toolbar__search,
  .fin-toolbar__filter {
    flex: 1 1 100%;
  }

  .fin-export {
    width: 100%;
    height: 48px;
    gap: 8px;
  }

  .fin-export::after {
    content: "CSV";
    font-size: 15px;
    font-weight: 700;
  }
}

/* —— Finances: страница чека транзакции —— */
.fin-backlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--link);
  text-decoration: none;
}

.fin-backlink svg {
  fill: currentColor;
}

.fin-backlink:hover {
  text-decoration: underline;
}

.fin-receipt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.fin-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 45px;
  padding: 0 24px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-on);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.fin-download svg {
  fill: currentColor;
}

.fin-download:hover {
  background: #d8960a;
}

.fin-receipt {
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  background: var(--surface);
  border-radius: var(--radius);
}

.fin-receipt__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
}

.fin-receipt__row:last-child {
  border-bottom: 0;
}

.fin-receipt__ico {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--muted);
}

.fin-receipt__ico svg {
  fill: currentColor;
}

.fin-receipt__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: var(--text);
}

.fin-receipt__name {
  font-weight: 600;
}

.fin-receipt__sub {
  font-size: 13px;
  color: var(--muted);
}

.fin-receipt__amount {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Кликабельные строки истории */
.fin-table__row--link {
  cursor: pointer;
}

/* Специфичность выше, чем у полосатой заливки nth-child(even) — иначе серые строки не подсвечиваются */
.fin-table tbody tr.fin-table__row--link:hover {
  background: rgba(234, 163, 10, 0.12);
}

.fin-table__row--link:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: -2px;
}

.fin-table tbody tr.fin-table__row--current {
  background: rgba(234, 163, 10, 0.09);
}

.fin-link {
  color: var(--link);
  text-decoration: none;
}

.fin-link:hover {
  text-decoration: underline;
}

.fin-card--link {
  text-decoration: none;
  color: inherit;
}

.fin-card--link:hover {
  background: #fbfbfc;
}

.fin-card--current {
  outline: 1px solid rgba(234, 163, 10, 0.35);
}

@media (max-width: 900px) {
  .fin-receipt-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .fin-download {
    width: 100%;
    justify-content: center;
  }

  .fin-receipt__row {
    padding: 14px 16px;
  }
}

/* —— Оверлеи модальных окон ——
   Единое определение для всех диалогов. Раньше `.modal-backdrop` дублировался
   в нескольких нескоупленных <style> внутри SFC (Dialog.vue, TemplateDialog.vue,
   BulkShipmentCreate.vue), причём в Dialog.vue — как flex-контейнер с
   `height: 100vh`. Vite подключает CSS страницы при её первом открытии, поэтому
   победитель зависел от порядка навигации: если вариант с `height: 100vh` +
   `align-items: center` подгружался последним, у высоких модалок белый фон
   обрезался по нижней границе экрана, а при скролле уходил в пустоту.
   Здесь фиксируем блочный скролл-контейнер (не flex) — модалка целиком в потоке
   оверлея и растёт вместе с содержимым. */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow-y: auto;
  padding: 40px 16px;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Модалка в обычном потоке оверлея: общий скролл на оверлее, а не внутри модалки.
   `height: auto` перебивает возможные max-height/height от базовых .settings-dialog. */
.modal-backdrop > dialog[open],
.modal-backdrop > .dialog-open {
  position: relative;
  z-index: 10000;
  margin: 0 auto;
  height: auto;
  max-height: none;
}

/* Пока модалка открыта, страница под ней не прокручивается */
body.dialog-backdrop {
  overflow: hidden;
}

/* —— Посылка в составе массовой отправки ——
   Ссылка «part of bulk NNN»: в списке отправлений — рядом с треком,
   на карточке посылки — строкой ниже номера. */
.ship-card__bulk {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.ship-card__bulk:hover {
  color: var(--link);
  text-decoration: underline;
}

/* Номер + кнопка копирования в одной строке, ссылка на bulk — под ними */
.prd-trackline--bulk {
  flex-wrap: wrap;
}

.prd-bulklink {
  flex-basis: 100%;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
}

.prd-bulklink b {
  color: var(--link);
  font-weight: 700;
}

.prd-bulklink:hover b {
  text-decoration: underline;
}

/* —— Мобильный нижний навбар ——
   Отступ под фиксированный футер ЛК (MobileBottomNav). Раньше это правило
   жило в scoped-стилях компонента и компилировалось в `body[data-v-…]`,
   который ни с чем не совпадает, — контент подлезал под навбар. */
@media (max-width: 768px) {
  /* Фолбэк для страниц без .dash-main */
  .has-mobile-nav {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  /* .dash-main задаёт свой нижний паддинг — на нём отступ и делаем,
     а внешний фолбэк тогда не нужен, иначе запас удваивается. */
  .has-mobile-nav:has(.dash-main) {
    padding-bottom: 0;
  }

  /* В ЛК на мобильных вместо большого «десктопного» футера — нижний навбар.
     Прячем только там, где навбар есть: на главной и контентных страницах
     (HomeLayout/ContentLayout, тот же .site-footer) футер должен остаться. */
  .has-mobile-nav .site-footer,
  .has-mobile-nav .hel-footer {
    display: none;
  }

  /* Запас снизу, чтобы последний блок не упирался в навбар при прокрутке.
     Отступа на body мало: контент лежит в .dash-main со своим паддингом. */
  .has-mobile-nav .dash-main {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }
}


/* —— Chrome autofill: убираем сиреневый фон и белую рамку по краям —— */
.ui-field__input:-webkit-autofill,
.ui-field__input:-webkit-autofill:hover,
.ui-field__input:-webkit-autofill:focus,
.ui-field__input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
    -webkit-text-fill-color: var(--text);
    caret-color: var(--text);
    transition: background-color 9999s ease 0s;
}

/* Поля с нестандартным фоном — подгоняем заливку autofill под их фон */
.lead-form .ui-field__input:-webkit-autofill,
.lead-form .ui-field__input:-webkit-autofill:hover,
.lead-form .ui-field__input:-webkit-autofill:focus,
.lead-form .ui-field__input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #f4f4f4 inset;
}

.ui-field.input-gr .ui-field__input:-webkit-autofill,
.ui-field.input-gr .ui-field__input:-webkit-autofill:hover,
.ui-field.input-gr .ui-field__input:-webkit-autofill:focus,
.ui-field.input-gr .ui-field__input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #eee inset;
}
/* Серые поля отправки (sp-pd-card) — заливка autofill под #eee */
.sp-pd-card .ui-field__input:-webkit-autofill,
.sp-pd-card .ui-field__input:-webkit-autofill:hover,
.sp-pd-card .ui-field__input:-webkit-autofill:focus,
.sp-pd-card .ui-field__input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #eee inset;
}

/* Поля с инлайн-серым фоном (проп inputGray) — заливка autofill под #eee */
.ui-field__inner[style*="#eee"] .ui-field__input:-webkit-autofill,
.ui-field__inner[style*="#eee"] .ui-field__input:-webkit-autofill:hover,
.ui-field__inner[style*="#eee"] .ui-field__input:-webkit-autofill:focus,
.ui-field__inner[style*="#eee"] .ui-field__input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #eee inset;
}




/* Address-book dialog fields (.ab-field wrapper = #eee) */
.ab-field__inp:-webkit-autofill,
.ab-field__inp:-webkit-autofill:hover,
.ab-field__inp:-webkit-autofill:focus,
.ab-field__inp:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #eee inset;
    -webkit-text-fill-color: var(--text);
    caret-color: var(--text);
    transition: background-color 9999s ease 0s;
}

/* Legacy send-parcel detail rows (.sp-pd-field__row = #eee) */
.sp-pd-input:-webkit-autofill,
.sp-pd-input:-webkit-autofill:hover,
.sp-pd-input:-webkit-autofill:focus,
.sp-pd-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #eee inset;
    -webkit-text-fill-color: var(--text);
    caret-color: var(--text);
    transition: background-color 9999s ease 0s;
}

/* ---- Optional autofill overrides (low risk, enable if the frame appears) ---- */

/* Dashboard tracking input (.dash-track__input has its own #eeeeee background).
   No autocomplete attribute, so Chrome rarely autofills it; enable only if a
   saved value ever paints a lavender frame here. */
/*
.dash-track__input:-webkit-autofill,
.dash-track__input:-webkit-autofill:hover,
.dash-track__input:-webkit-autofill:focus,
.dash-track__input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #eeeeee inset;
    -webkit-text-fill-color: var(--text);
    caret-color: var(--text);
    transition: background-color 9999s ease 0s;
}
*/

/* 2FA one-time-code boxes (.acct-otp__box = #eee). Single-char maxlength=1 inputs
   with autocomplete="one-time-code"; a browser SMS-autofill can trigger the
   :-webkit-autofill styling. Enable if the OTP boxes show a frame. */
/*
.acct-otp__box:-webkit-autofill,
.acct-otp__box:-webkit-autofill:hover,
.acct-otp__box:-webkit-autofill:focus,
.acct-otp__box:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #eee inset;
    -webkit-text-fill-color: var(--text);
    caret-color: var(--text);
    transition: background-color 9999s ease 0s;
}
*/

/* Same OTP boxes on the login2 screen use a white (#fff) background instead of
   #eee (see .login2-body .login-form .acct-otp__box). Enable together with the
   block above so the fill matches the white surface there. */
/*
.login2-body .login-form .acct-otp__box:-webkit-autofill,
.login2-body .login-form .acct-otp__box:-webkit-autofill:hover,
.login2-body .login-form .acct-otp__box:-webkit-autofill:focus,
.login2-body .login-form .acct-otp__box:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: var(--text);
    caret-color: var(--text);
    transition: background-color 9999s ease 0s;
}
*/
