:root {
  color-scheme: light;
  --bg: #f3f5f2;
  --surface: #ffffff;
  --surface-soft: #f9fbf8;
  --ink: #17201c;
  --muted: #66736d;
  --line: #dce4df;
  --brand: #0f8f69;
  --brand-strong: #087454;
  --accent: #e8ad2f;
  --danger: #b7352d;
  --blue: #315c91;
  --shadow: 0 12px 28px rgba(22, 31, 27, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(15, 143, 105, 0.08), rgba(15, 143, 105, 0) 220px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 14px 28px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: -16px -14px 14px;
  padding: 14px;
  background: rgba(243, 245, 242, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 228, 223, 0.8);
}

.home-topbar {
  grid-template-columns: 1fr auto;
}

.topbar-title {
  min-width: 0;
}

.eyebrow,
.intro-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 25px;
  line-height: 1.1;
}

h2 {
  margin-bottom: 14px;
  font-size: 18px;
  line-height: 1.2;
}

.back-link,
.language-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(22, 31, 27, 0.06);
}

.back-link {
  font-size: 30px;
  line-height: 1;
}

.intro-panel {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.intro-panel h2 {
  max-width: 360px;
  margin-bottom: 8px;
  font-size: 24px;
}

.intro-panel p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.4;
}

.home-grid {
  display: grid;
  gap: 12px;
}

.role-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  min-height: 130px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.role-card strong {
  align-self: end;
  font-size: 21px;
}

.role-card small {
  grid-column: 2;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.role-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: #e7f4ef;
  color: var(--brand-strong);
  font-weight: 800;
}

.role-card-master .role-icon {
  background: #eef2f8;
  color: var(--blue);
  font-size: 13px;
}

.panel {
  margin-bottom: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel.compact {
  padding-bottom: 12px;
}

.form-panel {
  border-color: rgba(15, 143, 105, 0.24);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-head.inline h2 {
  margin-bottom: 0;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.category-search {
  margin: 0 0 12px;
}

.category-search input {
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: #f0edf8;
  padding-left: 44px;
  color: #261831;
  font-size: 15px;
}

.category-search {
  position: relative;
}

.category-search::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 16px;
  z-index: 1;
  width: 13px;
  height: 13px;
  border: 2px solid #9278bd;
  border-radius: 50%;
}

.category-search::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 29px;
  z-index: 1;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: #9278bd;
  transform: rotate(45deg);
}

.category-list {
  display: grid;
  margin: 0 -15px -15px;
  border-top: 1px solid #efedf2;
}

.category-list-collapsed {
  display: none;
}

.category-picker-button + .category-list {
  margin-top: 9px;
}

.category-picker-button {
  display: grid;
  grid-template-columns: 1fr 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #ebe6f4;
  border-radius: 8px;
  background: #ffffff;
  color: #211628;
  text-align: left;
  font-weight: 800;
}

.category-picker-button.open {
  border-color: #a58ad0;
  background: #fbf8ff;
}

.category-picker-button.open .category-chevron {
  transform: rotate(135deg);
}

.category-picker-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-screen {
  position: fixed;
  inset: 0;
  z-index: 60;
  width: min(100%, 520px);
  margin: 0 auto;
  background: #ffffff;
  color: #161316;
  overflow-y: auto;
}

.category-screen-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 14px;
  border-bottom: 1px solid #efedf2;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
}

.category-screen-header strong {
  text-align: center;
  font-size: 18px;
}

.category-back-button {
  background: transparent;
  box-shadow: none;
}

.category-screen-body {
  padding: 13px 14px 34px;
}

.category-screen-list {
  margin: 0 -14px;
}

.task-search-screen {
  position: fixed;
  inset: 0;
  z-index: 70;
  width: min(100%, 520px);
  margin: 0 auto;
  background: #ffffff;
  color: #171317;
  overflow-y: auto;
}

.task-search-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
}

.task-search-back {
  width: 34px;
  height: 34px;
  background: transparent;
  box-shadow: none;
  color: #8d73b7;
}

.task-search-field {
  display: block;
  margin: 0;
}

.task-search-field input {
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f0edf8;
  color: #261831;
  padding: 0 16px;
  font-size: 14px;
}

.task-search-tabs {
  position: sticky;
  top: 54px;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #ece9f2;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
}

.task-search-tabs button {
  height: 42px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #9d98a4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.task-search-tabs button.active {
  border-bottom-color: #f4c400;
  color: #171317;
}

.task-search-results {
  display: grid;
}

.task-search-row {
  display: grid;
  grid-template-columns: 1fr 18px;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid #efedf2;
  background: #ffffff;
  color: #171317;
  text-align: left;
}

.task-search-row span {
  min-width: 0;
  font-size: 13px;
  line-height: 1.25;
}

.task-search-row i {
  width: 9px;
  height: 9px;
  border-top: 2px solid #c9c4ce;
  border-right: 2px solid #c9c4ce;
  transform: rotate(45deg);
}

.task-search-empty {
  margin: 0;
  padding: 26px 16px;
  color: #77717d;
  text-align: center;
}

.category-row {
  display: grid;
  grid-template-columns: 42px 1fr 22px;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 10px 15px;
  border: 0;
  border-bottom: 1px solid #efedf2;
  background: #ffffff;
  color: #161316;
  text-align: left;
}

.category-row.active {
  background: #f6fffb;
}

.category-service-row {
  grid-template-columns: 1fr 22px;
  padding-left: 18px;
}

.category-row strong {
  font-size: 16px;
  line-height: 1.25;
}

.category-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f1fbfa;
  color: #6bc6c4;
}

.category-chevron {
  width: 10px;
  height: 10px;
  border-top: 2px solid #c9c4ce;
  border-right: 2px solid #c9c4ce;
  transform: rotate(45deg);
}

.category-icon::before,
.category-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.category-icon-plumber {
  background: #eefbf7;
  color: #43b591;
}

.category-icon-plumber::before {
  width: 20px;
  height: 6px;
  border: 3px solid currentColor;
  border-left: 0;
  border-radius: 999px;
  transform: rotate(-38deg);
}

.category-icon-plumber::after {
  width: 8px;
  height: 14px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: translate(5px, 3px) rotate(-38deg);
}

.category-icon-electrician {
  background: #fff8df;
  color: #d9aa20;
}

.category-icon-electrician::before {
  width: 14px;
  height: 20px;
  clip-path: polygon(50% 0, 100% 0, 66% 42%, 100% 42%, 35% 100%, 48% 55%, 10% 55%);
  background: currentColor;
}

.category-icon-appliance_repair {
  background: #eff6ff;
  color: #6c94c8;
}

.category-icon-appliance_repair::before {
  width: 18px;
  height: 20px;
  border: 3px solid currentColor;
  border-radius: 5px;
}

.category-icon-appliance_repair::after {
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  bottom: 7px;
}

.category-icon-handyman {
  background: #f7f0ff;
  color: #9a79c8;
}

.category-icon-handyman::before {
  width: 22px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-35deg);
}

.category-icon-handyman::after {
  width: 9px;
  height: 14px;
  border-radius: 3px;
  background: currentColor;
  transform: translate(6px, 5px) rotate(-35deg);
}

.category-button {
  min-height: 56px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  text-align: left;
  font-weight: 700;
}

.category-button.active {
  border-color: var(--brand);
  background: #edf8f4;
  color: var(--brand-strong);
  outline: 2px solid rgba(15, 143, 105, 0.16);
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  outline: none;
}

input,
select {
  height: 48px;
  padding: 0 12px;
}

textarea {
  min-height: 112px;
  resize: vertical;
  padding: 12px;
  line-height: 1.35;
}

input::placeholder,
textarea::placeholder {
  color: #9aa49f;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 143, 105, 0.14);
}

.budget-row {
  display: grid;
  gap: 8px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.checkbox-line input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
}

.primary-button,
.secondary-button,
.small-button {
  border-radius: 8px;
  font-weight: 800;
}

.primary-button,
.secondary-button {
  width: 100%;
  min-height: 48px;
  border: 0;
}

.primary-button {
  background: var(--brand);
  color: white;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #eef5f1;
  color: var(--ink);
}

.small-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #eef5f1;
  color: var(--ink);
  font-size: 13px;
}

.balance-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #18231f;
  color: white;
  box-shadow: var(--shadow);
}

.balance-strip span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.balance-strip strong {
  color: var(--accent);
  font-size: 26px;
}

.balance-strip small {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
}

.orders-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.order-item {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.order-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.order-item p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.38;
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.order-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #e8efeb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.respond-button {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: white;
  color: var(--brand-strong);
  font-weight: 800;
}

.respond-button:disabled {
  border-color: var(--line);
  color: var(--muted);
}

.qr-wrap {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-bottom: 14px;
}

.qr-wrap img {
  width: 168px;
  height: 168px;
  border: 10px solid white;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(23, 33, 29, 0.1);
}

.qr-wrap p {
  margin-bottom: 0;
  color: var(--muted);
  text-align: center;
  line-height: 1.35;
}

.upload-form {
  display: grid;
  gap: 10px;
}

.admin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 10;
  width: min(calc(100% - 32px), 488px);
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 460px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .budget-row {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
}

.mobile-app {
  position: relative;
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  background: #ffffff;
  overflow-x: hidden;
}

.market-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #fff9e8;
  color: #261831;
  font-size: 30px;
  font-weight: 700;
}

.market-header .language-button {
  border: 0;
  box-shadow: none;
  background: #fff9e8;
  color: #261831;
  font-size: 15px;
}

.market-header-simple {
  grid-template-columns: 44px 1fr 44px;
}

.header-chat-title {
  display: none;
  min-width: 0;
  font-size: 20px;
  line-height: 1.1;
  text-align: center;
}

.menu-button {
  position: relative;
  gap: 4px;
  background: transparent;
}

.menu-button span {
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: #8264b1;
}

.menu-button::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 9px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #f4a400;
}

.search-field {
  display: block;
  margin: 0;
}

.search-field input {
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: #f0edf8;
  color: #261831;
  font-size: 16px;
}

.screen-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.screen-title span {
  color: #71706f;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.screen-title strong {
  font-size: 23px;
  line-height: 1.1;
}

.market-main {
  padding: 0 18px 118px;
}

.tabs {
  position: sticky;
  top: 70px;
  z-index: 15;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 6px -18px 16px;
  border-bottom: 1px solid #ece9f2;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.tab-button {
  height: 54px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #a09aa8;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tab-button.active {
  border-bottom-color: #f4c400;
  color: #161316;
}

.balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #ebe6f4;
  border-radius: 8px;
  background: #fbfafc;
}

.balance-card span {
  display: block;
  margin-bottom: 3px;
  color: #77717d;
  font-size: 13px;
  font-weight: 700;
}

.balance-card strong span {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.balance-card strong {
  color: #178b5f;
  font-size: 24px;
}

.balance-card button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #d8f7c3;
  color: #1f5d2e;
  font-weight: 800;
}

.task-feed {
  display: grid;
  gap: 0;
  margin: 0 -18px;
}

#ordersList {
  display: grid;
}

.feed-task {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 2px;
  padding: 22px 18px;
  border-bottom: 1px solid #efedf1;
  background: #ffffff;
}

.task-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #f0fbfb;
  display: grid;
  place-items: center;
}

.task-icon span {
  width: 22px;
  height: 22px;
  border: 3px solid #77c5cb;
  border-radius: 7px;
  position: relative;
}

.task-icon span::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: -9px;
  height: 3px;
  border-radius: 999px;
  background: #77c5cb;
}

.task-body h3 {
  margin: 0 0 7px;
  font-size: 21px;
  line-height: 1.18;
}

.task-address,
.task-time {
  margin: 0;
  color: #8b878f;
  font-size: 15px;
  line-height: 1.35;
}

.task-time {
  font-weight: 700;
}

.task-price {
  display: block;
  margin: 18px 0 12px;
  color: #111111;
  font-size: 21px;
}

.task-status {
  display: inline-flex;
  width: max-content;
  margin-bottom: 12px;
  padding: 9px 13px;
  border-radius: 999px;
  background: #dfffd4;
  color: #556057;
  font-weight: 800;
}

.feed-task .respond-button {
  min-height: 42px;
  border-color: #8d73b7;
  color: #6c5592;
}

.feed-promo {
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: none;
}

.promo-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 8px;
  background: #f5f0ff;
}

.promo-card.bordered {
  border: 2px solid #8d73b7;
  background: #ffffff;
}

.promo-card h1,
.promo-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
}

.promo-card p {
  margin: 0 0 14px;
  color: #343037;
  font-size: 17px;
  line-height: 1.42;
}

.promo-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid #9a81c5;
  border-radius: 50%;
  color: #8d73b7;
  font-weight: 900;
}

.outline-button {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 2px solid #8d73b7;
  border-radius: 999px;
  background: transparent;
  color: #7a609f;
  font-weight: 800;
}

.recommendation-empty {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 22px 0 44px;
}

.empty-illustration {
  width: min(270px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #e4cafb 0 58%, transparent 59%);
  position: relative;
}

.tool-orbit span {
  position: absolute;
  width: 44px;
  height: 12px;
  border-radius: 999px;
  background: #7ce0de;
}

.tool-orbit span:nth-child(1) {
  left: 46px;
  top: 80px;
  transform: rotate(48deg);
}

.tool-orbit span:nth-child(2) {
  right: 50px;
  top: 70px;
  background: #8d73b7;
}

.tool-orbit span:nth-child(3) {
  left: 78px;
  bottom: 70px;
  background: #8d73b7;
  transform: rotate(-35deg);
}

.tool-orbit span:nth-child(4) {
  right: 82px;
  bottom: 92px;
  width: 70px;
  height: 86px;
  border-radius: 50% 50% 40% 40%;
  background: #e99973;
  transform: rotate(-18deg);
}

.empty-copy {
  max-width: 360px;
  color: #666269;
  font-size: 20px;
  line-height: 1.45;
  text-align: center;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(0, 0, 0, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.side-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: min(86vw, 430px);
  background: #2d1247;
  color: #ffffff;
  transform: translateX(-100%);
  transition: transform 0.24s ease;
}

.side-drawer.open {
  transform: translateX(0);
}

.drawer-profile {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: center;
  padding: 56px 22px 34px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f4c400, #50c878);
  color: #2d1247;
  font-size: 34px;
  font-weight: 900;
}

.drawer-profile strong {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
}

.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: #94ea67;
  font-size: 17px;
}

.balance-pill b {
  font-size: 20px;
}

.plus-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #79d83b;
  color: #2d1247;
  font-size: 26px;
  font-weight: 900;
}

.drawer-nav {
  display: grid;
}

.drawer-nav a,
.drawer-nav button {
  min-height: 58px;
  padding: 14px 22px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
  color: #ffffff;
  text-align: left;
  font-size: 22px;
}

.drawer-nav a {
  min-height: 98px;
}

.drawer-nav a strong,
.drawer-nav a span {
  display: block;
}

.drawer-nav a strong {
  margin-bottom: 6px;
  font-size: 22px;
}

.drawer-nav a span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.drawer-nav .active {
  background: rgba(255, 255, 255, 0.1);
}

.floating-filter {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: #9b7bd6;
  color: #ffffff;
  box-shadow: 0 16px 35px rgba(69, 41, 113, 0.3);
  transform: translateX(-50%);
}

.floating-filter span,
.floating-filter span::before,
.floating-filter span::after {
  display: block;
  width: 4px;
  height: 24px;
  border-radius: 999px;
  background: #ffffff;
}

.floating-filter span {
  position: relative;
}

.floating-filter span::before,
.floating-filter span::after {
  content: "";
  position: absolute;
  top: 0;
}

.floating-filter span::before {
  left: -10px;
}

.floating-filter span::after {
  right: -10px;
}

.floating-filter b {
  font-size: 20px;
}

.feed-empty {
  padding: 28px 18px;
  color: #77717d;
  text-align: center;
}

.profile-panel,
.topup-panel {
  margin-top: 18px;
}

.customer-profile-panel {
  margin: 0 18px 118px;
}

.customer-profile-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.4;
}

.nav-section {
  scroll-margin-top: 92px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(100%, 520px);
  min-height: 74px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid #ebe7ef;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 -10px 28px rgba(36, 24, 45, 0.08);
  transform: translateX(-50%);
}

.bottom-nav button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #83788d;
}

.bottom-nav button.active {
  background: #fff7d7;
  color: #211628;
}

.bottom-nav b {
  max-width: 100%;
  font-size: 11px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-icon {
  position: relative;
  display: block;
  width: 23px;
  height: 23px;
}

.nav-orders::before,
.nav-catalog::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 3px solid currentColor;
  border-radius: 6px;
}

.nav-orders::after,
.nav-catalog::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 1px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.nav-responses::before,
.nav-responses::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 10px;
  border: 3px solid currentColor;
  border-radius: 8px;
}

.nav-responses::before {
  left: 2px;
  top: 4px;
}

.nav-responses::after {
  right: 2px;
  bottom: 3px;
}

.nav-balance::before {
  content: "";
  position: absolute;
  inset: 5px 2px;
  border: 3px solid currentColor;
  border-radius: 6px;
}

.nav-balance::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.nav-profile::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 9px;
  height: 9px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.nav-profile::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 2px;
  height: 9px;
  border: 3px solid currentColor;
  border-radius: 12px 12px 4px 4px;
}

.nav-create::before,
.nav-create::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: currentColor;
}

.nav-create::before {
  left: 10px;
  top: 3px;
  width: 4px;
  height: 17px;
}

.nav-create::after {
  left: 3px;
  top: 10px;
  width: 17px;
  height: 4px;
}

.nav-chat::before {
  content: "";
  position: absolute;
  inset: 4px 2px 6px;
  border: 3px solid currentColor;
  border-radius: 9px;
}

.nav-chat::after {
  content: "";
  position: absolute;
  left: 7px;
  bottom: 2px;
  width: 8px;
  height: 8px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: skew(-18deg);
}

.chat-panel {
  margin: 0;
}

.chat-search-field {
  position: absolute;
  inset: 7px 12px 7px 56px;
  z-index: 1;
  display: block;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.chat-search-field input {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f0edf8;
  color: #261831;
  padding: 0 48px 0 15px;
  font-size: 14px;
}

.chat-search-button {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: #fff9e8;
  color: #8d73b7;
}

.market-header.chat-mode > .icon-button {
  position: relative;
  z-index: 4;
}

.chat-search-button span {
  position: relative;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.chat-search-button span::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -3px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
}

.market-header .chat-search-field,
.market-header .chat-search-button {
  display: none;
}

.market-header.chat-mode {
  grid-template-columns: 38px 1fr 38px;
}

.market-header.chat-mode .header-order-search {
  display: none;
}

.market-header.chat-mode .header-chat-title {
  display: block;
  grid-column: 2;
}

.market-header.chat-mode .chat-search-button {
  display: grid;
  grid-column: 3;
}

.market-header.chat-mode.search-open .header-chat-title {
  opacity: 0;
}

.market-header.chat-mode.search-open .chat-search-field {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chat-layout {
  display: grid;
  gap: 12px;
}

.chat-list {
  display: grid;
  gap: 8px;
}

.chat-row {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  text-align: left;
}

.chat-row.active {
  border-color: var(--brand);
  background: #edf8f4;
}

.chat-row strong {
  font-size: 15px;
}

.chat-row span,
.chat-row small,
.chat-empty {
  color: var(--muted);
}

.chat-window {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #ebe7ef;
  border-radius: 8px;
  background: #fbfafc;
}

.chat-messages {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 180px;
  max-height: 320px;
  overflow: auto;
  padding: 8px;
  border-radius: 8px;
  background: #ffffff;
}

.chat-bubble {
  width: fit-content;
  max-width: 82%;
  padding: 9px 11px;
  border-radius: 12px 12px 12px 4px;
  background: #f0edf8;
  color: var(--ink);
}

.chat-bubble.mine {
  justify-self: end;
  border-radius: 12px 12px 4px 12px;
  background: #dfffd4;
}

.chat-bubble p {
  margin: 0 0 4px;
  line-height: 1.35;
}

.chat-bubble time {
  display: block;
  color: #7b7385;
  font-size: 10px;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.chat-form input {
  height: 44px;
}

.chat-form button {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 800;
}

/* Compact mobile density */
.market-header {
  grid-template-columns: 38px 1fr 38px;
  gap: 8px;
  padding: 8px 12px 7px;
}

.icon-button,
.market-header .language-button {
  width: 36px;
  height: 36px;
  font-size: 22px;
}

.menu-button span {
  width: 21px;
  height: 2px;
}

.search-field input,
.category-search input {
  height: 38px;
  font-size: 14px;
}

.screen-title {
  gap: 1px;
}

.screen-title span {
  font-size: 10px;
}

.screen-title strong {
  font-size: 19px;
}

.market-main {
  padding: 0 12px 88px;
}

.panel {
  margin-bottom: 9px;
  padding: 11px;
  box-shadow: 0 8px 18px rgba(22, 31, 27, 0.055);
}

h2 {
  margin-bottom: 10px;
  font-size: 16px;
}

.promo-card {
  grid-template-columns: 30px 1fr;
  gap: 9px;
  margin-bottom: 9px;
  padding: 11px;
}

.promo-card h1,
.promo-card h2 {
  margin-bottom: 5px;
  font-size: 17px;
}

.promo-card p {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.35;
}

.promo-icon {
  width: 26px;
  height: 26px;
  font-size: 12px;
}

.category-search {
  margin-bottom: 9px;
}

.category-search input {
  padding-left: 38px;
}

.category-search::before {
  left: 15px;
  top: 11px;
  width: 12px;
  height: 12px;
}

.category-search::after {
  left: 26px;
  top: 23px;
}

.category-list {
  margin: 0 -11px -11px;
}

.category-row {
  grid-template-columns: 34px 1fr 16px;
  gap: 9px;
  min-height: 52px;
  padding: 7px 11px;
}

.category-row strong {
  font-size: 14px;
}

.category-icon {
  width: 28px;
  height: 28px;
}

.category-icon-svg::before,
.category-icon-svg::after {
  display: none;
}

.category-icon-svg svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-icon-svg svg.icon-fill {
  fill: currentColor;
  stroke: none;
}

.category-row.active .category-icon-svg {
  box-shadow: inset 0 0 0 1px rgba(38, 24, 49, 0.04);
}

label {
  gap: 4px;
  margin-bottom: 9px;
  font-size: 12px;
}

input,
select {
  height: 40px;
  padding: 0 10px;
}

textarea {
  min-height: 82px;
  padding: 10px;
}

.checkbox-line {
  min-height: 40px;
  padding: 0 10px;
}

.primary-button,
.secondary-button {
  min-height: 40px;
}

.small-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.tabs {
  top: 51px;
  margin: 3px -12px 9px;
}

.tab-button {
  height: 40px;
  font-size: 12px;
}

.balance-card {
  margin-bottom: 9px;
  padding: 9px 11px;
}

.balance-card strong {
  font-size: 19px;
}

.balance-card button {
  min-height: 36px;
  padding: 0 12px;
}

.task-feed {
  margin: 0 -12px;
}

.feed-task {
  grid-template-columns: 48px 1fr;
  padding: 12px;
}

.task-icon {
  width: 34px;
  height: 34px;
}

.task-body h3 {
  font-size: 17px;
}

.task-address,
.task-time {
  font-size: 13px;
}

.task-price {
  margin: 10px 0 7px;
  font-size: 17px;
}

.task-status {
  margin-bottom: 7px;
  padding: 6px 9px;
  font-size: 12px;
}

.orders-list {
  gap: 8px;
  margin-top: 10px;
}

.order-item {
  padding: 10px;
}

.qr-wrap img {
  width: 132px;
  height: 132px;
  border-width: 7px;
}

.chat-window {
  padding: 9px;
}

.chat-messages {
  min-height: 128px;
  max-height: 230px;
  padding: 6px;
}

.chat-form input,
.chat-form button {
  height: 40px;
  min-height: 40px;
}

.bottom-nav {
  min-height: 58px;
  padding: 5px 7px calc(5px + env(safe-area-inset-bottom));
}

.bottom-nav button {
  min-height: 46px;
  gap: 3px;
}

.bottom-nav b {
  font-size: 9px;
}

.nav-icon {
  width: 19px;
  height: 19px;
}

.customer-profile-panel {
  margin: 0 12px 88px;
}

/* Full catalog icon set */
.category-icon-courier {
  background: #f2f6ff;
  color: #7e8fc7;
}

.category-icon-courier::before {
  width: 12px;
  height: 12px;
  border: 3px solid currentColor;
  border-radius: 50%;
  top: 5px;
}

.category-icon-courier::after {
  width: 18px;
  height: 12px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(-25deg);
  bottom: 4px;
}

.category-icon-repair_building,
.category-icon-handyman {
  background: #fbf3ff;
  color: #ac83c9;
}

.category-icon-repair_building::before,
.category-icon-handyman::before {
  width: 21px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-18deg);
}

.category-icon-repair_building::after,
.category-icon-handyman::after {
  width: 8px;
  height: 13px;
  border-radius: 3px;
  background: currentColor;
  transform: translate(6px, 5px) rotate(-18deg);
}

.category-icon-cargo {
  background: #effbf9;
  color: #67c7ba;
}

.category-icon-cargo::before {
  width: 21px;
  height: 13px;
  border: 3px solid currentColor;
  border-radius: 4px;
}

.category-icon-cargo::after {
  width: 20px;
  height: 4px;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
  bottom: 5px;
}

.category-icon-cleaning_home {
  background: #f4fff1;
  color: #82c96f;
}

.category-icon-cleaning_home::before {
  width: 13px;
  height: 16px;
  border: 3px solid currentColor;
  border-radius: 4px 4px 7px 7px;
}

.category-icon-cleaning_home::after {
  width: 9px;
  height: 8px;
  border-left: 3px solid currentColor;
  border-top: 3px solid currentColor;
  top: 6px;
}

.category-icon-virtual_assistant {
  background: #eefcff;
  color: #73becb;
}

.category-icon-virtual_assistant::before {
  width: 19px;
  height: 15px;
  border: 3px solid currentColor;
  border-radius: 4px;
}

.category-icon-virtual_assistant::after {
  width: 14px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  bottom: 5px;
}

.category-icon-computer_help {
  background: #f3f4ff;
  color: #8794ca;
}

.category-icon-computer_help::before {
  width: 18px;
  height: 13px;
  border: 3px solid currentColor;
  border-radius: 4px;
}

.category-icon-computer_help::after {
  width: 13px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  bottom: 5px;
  transform: rotate(-35deg);
}

.category-icon-events_promo {
  background: #fff6f1;
  color: #d69b83;
}

.category-icon-events_promo::before {
  width: 16px;
  height: 16px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.category-icon-events_promo::after {
  width: 3px;
  height: 10px;
  background: currentColor;
  transform: rotate(45deg);
}

.category-icon-design {
  background: #fff2f2;
  color: #d98686;
}

.category-icon-design::before {
  width: 18px;
  height: 13px;
  border: 3px solid currentColor;
  border-radius: 3px;
}

.category-icon-design::after {
  width: 12px;
  height: 3px;
  background: currentColor;
  bottom: 5px;
  transform: rotate(-35deg);
}

.category-icon-software_dev {
  background: #faf2ff;
  color: #ad8bd2;
}

.category-icon-software_dev::before {
  width: 18px;
  height: 14px;
  border-top: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
}

.category-icon-software_dev::after {
  width: 9px;
  height: 9px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
}

.category-icon-photo_video_audio {
  background: #f2f4ff;
  color: #8d98c8;
}

.category-icon-photo_video_audio::before {
  width: 19px;
  height: 15px;
  border: 3px solid currentColor;
  border-radius: 5px;
}

.category-icon-photo_video_audio::after {
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.category-icon-appliance_install_repair {
  background: #edf8ff;
  color: #6dadcf;
}

.category-icon-appliance_install_repair::before {
  width: 15px;
  height: 21px;
  border: 3px solid currentColor;
  border-radius: 4px;
}

.category-icon-appliance_install_repair::after {
  width: 6px;
  height: 6px;
  border: 2px solid currentColor;
  border-radius: 50%;
  bottom: 6px;
}

.category-icon-digital_repair {
  background: #eff8ff;
  color: #78accf;
}

.category-icon-digital_repair::before {
  width: 13px;
  height: 21px;
  border: 3px solid currentColor;
  border-radius: 4px;
}

.category-icon-digital_repair::after {
  width: 12px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-45deg);
}

.category-icon-beauty_health {
  background: #fff9e4;
  color: #d8b543;
}

.category-icon-beauty_health::before {
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: currentColor;
  left: 9px;
}

.category-icon-beauty_health::after {
  width: 12px;
  height: 12px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  right: 6px;
  bottom: 5px;
}

.category-icon-legal_accounting {
  background: #fff4e8;
  color: #cf9965;
}

.category-icon-legal_accounting::before {
  width: 19px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  top: 9px;
}

.category-icon-legal_accounting::after {
  width: 17px;
  height: 13px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  bottom: 6px;
}

.category-icon-tutoring {
  background: #f8f0ff;
  color: #b681c4;
}

.category-icon-tutoring::before {
  width: 18px;
  height: 15px;
  border: 3px solid currentColor;
  border-radius: 3px 3px 8px 3px;
}

.category-icon-tutoring::after {
  width: 2px;
  height: 15px;
  background: currentColor;
}

.category-icon-transport_repair {
  background: #fff1f3;
  color: #d77b82;
}

.category-icon-transport_repair::before {
  width: 21px;
  height: 10px;
  border: 3px solid currentColor;
  border-radius: 8px 8px 4px 4px;
}

.category-icon-transport_repair::after {
  width: 19px;
  height: 4px;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
  bottom: 6px;
}

.category-row.category-service-row {
  grid-template-columns: minmax(0, 1fr) 16px;
  gap: 9px;
  min-height: 48px;
  padding: 9px 14px 9px 18px;
}

.category-row.category-service-row strong {
  grid-column: 1;
  min-width: 0;
}

.category-row.category-service-row .category-chevron {
  grid-column: 2;
  justify-self: end;
}

.legacy-order-form {
  display: none;
}

body.order-flow-open .bottom-nav {
  display: none;
}

.order-flow-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  width: min(100%, 520px);
  margin: 0 auto;
  background: #ffffff;
  color: #272330;
}

.order-flow-header {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 10px 14px 8px;
  border-bottom: 1px solid #f0edf3;
  background: #ffffff;
}

.order-flow-header strong {
  min-width: 0;
  overflow: hidden;
  font-size: 19px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-flow-back,
.order-flow-cancel {
  border: 0;
  background: transparent;
  color: #8f73bd;
}

.order-flow-back {
  width: 44px;
  height: 44px;
  font-size: 43px;
  line-height: 1;
}

.order-flow-cancel {
  min-width: 68px;
  min-height: 40px;
  padding: 0 4px;
  font-size: 17px;
  text-align: right;
}

.order-flow-progress {
  height: 4px;
  background: #e6f4de;
}

.order-flow-progress span {
  display: block;
  width: 33.33%;
  height: 100%;
  background: #56bf2b;
  transition: width 0.2s ease;
}

.order-flow-body {
  min-height: 0;
  overflow-y: auto;
  padding: 30px 20px 136px;
}

.order-flow-step h2 {
  margin: 0 0 34px;
  color: #25232d;
  font-size: 27px;
  line-height: 1.12;
  text-align: center;
}

.line-field,
.compact-field {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  color: #8f8a96;
  font-size: 14px;
  font-weight: 600;
}

.line-field input,
.compact-field input {
  height: 50px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #e8e5eb;
  border-radius: 0;
  background: transparent;
  color: #272330;
  font-size: 22px;
  font-weight: 500;
}

.line-field input::placeholder,
.compact-field input::placeholder,
.address-row input::placeholder {
  color: #aaa5b0;
}

.line-field input:focus,
.compact-field input:focus,
.address-row input:focus {
  border-color: #8f73bd;
  box-shadow: none;
}

.order-help-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-top: min(34vh, 280px);
  padding: 18px 18px 16px;
  border: 1px solid #ebe8ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(33, 25, 43, 0.16);
}

.order-help-card strong {
  display: block;
  margin-bottom: 7px;
  color: #272330;
  font-size: 19px;
  line-height: 1.24;
}

.order-help-card p {
  margin: 0;
  color: #8b8690;
  font-size: 15px;
  line-height: 1.32;
}

.order-avatars {
  position: relative;
  width: 72px;
  height: 44px;
}

.order-avatars span {
  position: absolute;
  top: 0;
  display: block;
  width: 44px;
  height: 44px;
  border: 3px solid #fff;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, #ffd7c7 0 21%, transparent 22%),
    radial-gradient(circle at 50% 30%, #5d322e 0 20%, transparent 21%),
    linear-gradient(135deg, #7b84ff 50%, #ff7a4f 51%);
}

.order-avatars span:nth-child(1) {
  left: 0;
  z-index: 3;
}

.order-avatars span:nth-child(2) {
  left: 17px;
  z-index: 2;
  filter: saturate(0.9);
}

.order-avatars span:nth-child(3) {
  left: 34px;
  z-index: 1;
  filter: saturate(0.75);
}

.city-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: -10px 0 18px;
}

.city-choice button {
  min-height: 40px;
  border: 1px solid #e6e2eb;
  border-radius: 8px;
  background: #fbfafc;
  color: #756d7d;
  font-weight: 800;
}

.city-choice button.active {
  border-color: #56bf2b;
  background: #eef9e9;
  color: #358a20;
}

.address-row {
  display: grid;
  grid-template-columns: 48px 1fr 22px;
  align-items: center;
  gap: 8px;
  min-height: 76px;
  margin: 0;
  border-bottom: 1px solid #eeeaf1;
}

.address-pin,
.map-pin {
  display: grid;
  place-items: center;
  width: 32px;
  height: 38px;
  color: #56bf2b;
  font-weight: 800;
}

.address-pin {
  border: 2px solid currentColor;
  border-radius: 18px 18px 18px 4px;
  transform: rotate(-45deg);
}

.address-pin {
  line-height: 1;
}

.address-pin b,
.map-pin b {
  display: block;
  transform: rotate(45deg);
}

.address-row input {
  height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #272330;
  font-size: 21px;
}

.address-row i {
  width: 16px;
  height: 16px;
  border-top: 3px solid #d3cfd7;
  border-right: 3px solid #d3cfd7;
  transform: rotate(45deg);
}

.add-address-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-bottom: 1px solid #eeeaf1;
  background: transparent;
  color: #8f73bd;
  font-size: 18px;
}

.add-address-button span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-weight: 700;
}

.add-address-button b {
  font-weight: 500;
}

.return-toggle {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 68px;
  margin: 0;
  border-bottom: 1px solid #eeeaf1;
  color: #272330;
  font-size: 20px;
  font-weight: 500;
}

.return-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.return-toggle i {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #d6d1dc;
  transition: background 0.18s ease;
}

.return-toggle i::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f9f8fb;
  box-shadow: 0 4px 10px rgba(34, 28, 43, 0.2);
  transition: transform 0.18s ease;
}

.return-toggle input:checked + i {
  background: #56bf2b;
}

.return-toggle input:checked + i::before {
  transform: translateX(20px);
}

.map-preview {
  position: relative;
  height: 270px;
  margin: 0 -20px;
  overflow: hidden;
  background:
    linear-gradient(30deg, transparent 46%, rgba(72, 105, 138, 0.1) 47% 49%, transparent 50%),
    linear-gradient(120deg, transparent 44%, rgba(72, 105, 138, 0.1) 45% 47%, transparent 48%),
    linear-gradient(0deg, rgba(232, 238, 244, 0.85), rgba(244, 247, 249, 0.86));
}

.map-road {
  position: absolute;
  border-radius: 999px;
  background: #9ab0c7;
  box-shadow: 0 0 0 10px rgba(154, 176, 199, 0.26);
}

.main-road {
  left: 44%;
  top: -40px;
  width: 18px;
  height: 380px;
  transform: rotate(-34deg);
}

.side-road {
  left: 18%;
  top: 118px;
  width: 420px;
  height: 16px;
  transform: rotate(28deg);
}

.map-pin {
  position: absolute;
  z-index: 2;
  width: 46px;
  height: 52px;
  border-radius: 26px 26px 26px 7px;
  background: #56bf2b;
  color: #ffffff;
  font-size: 24px;
  box-shadow: 0 8px 16px rgba(47, 103, 31, 0.28);
  transform: rotate(-45deg);
}

.map-pin-a {
  left: 31%;
  top: 48px;
}

.map-pin-b {
  right: 28%;
  bottom: 54px;
}

.map-preview button {
  position: absolute;
  right: 28px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #a59eb0;
  font-size: 32px;
  box-shadow: 0 8px 18px rgba(38, 31, 48, 0.12);
}

.map-preview button:nth-of-type(1) {
  top: 36px;
}

.map-preview button:nth-of-type(2) {
  top: 104px;
}

.map-preview em {
  position: absolute;
  right: 28px;
  bottom: 34px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(38, 31, 48, 0.12);
}

.map-preview em::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 13px;
  width: 22px;
  height: 30px;
  border-left: 5px solid #a59eb0;
  border-bottom: 5px solid #a59eb0;
  transform: rotate(-42deg) skewY(15deg);
}

.order-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 0 0 18px;
  color: #272330;
  font-size: 16px;
}

.order-checkbox input {
  width: 22px;
  height: 22px;
  accent-color: #56bf2b;
}

.order-flow-footer {
  padding: 12px 20px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 22%);
}

.order-next-button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  background: #56bf2b;
  color: #ffffff;
  font-size: 21px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(72, 166, 36, 0.24);
}

@media (max-width: 380px) {
  .order-flow-body {
    padding: 24px 16px 126px;
  }

  .order-flow-step h2 {
    margin-bottom: 26px;
    font-size: 24px;
  }

  .line-field input,
  .compact-field input,
  .address-row input {
    font-size: 19px;
  }

  .order-help-card {
    margin-top: min(28vh, 220px);
    padding: 15px;
  }
}
