:root {
  color-scheme: light;
  --accent: #007AFF;
  --accent-press: #0062D6;
  --on-accent: #fff;
  --accent-soft: rgba(0, 122, 255, .10);

  --bg: #F2F2F7;
  --surface: #FFFFFF;
  --fill: rgba(120, 120, 128, .12);
  --fill-2: rgba(120, 120, 128, .08);
  --label: #000;
  --label-2: rgba(60, 60, 67, .68);
  --label-3: rgba(60, 60, 67, .36);
  --sep: rgba(60, 60, 67, .14);

  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .82);
  --glass-edge: rgba(255, 255, 255, .75);
  --glass-shadow: 0 10px 30px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .04);

  --success: #34C759;
  --danger: #FF3B30;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Vazirmatn", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --accent: #0A84FF;
  --accent-press: #409CFF;
  --accent-soft: rgba(10, 132, 255, .18);

  --bg: #000;
  --surface: #1C1C1E;
  --fill: rgba(120, 120, 128, .24);
  --fill-2: rgba(120, 120, 128, .16);
  --label: #fff;
  --label-2: rgba(235, 235, 245, .62);
  --label-3: rgba(235, 235, 245, .30);
  --sep: rgba(84, 84, 88, .55);

  --glass: rgba(44, 44, 46, .58);
  --glass-strong: rgba(36, 36, 38, .82);
  --glass-edge: rgba(255, 255, 255, .14);
  --glass-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .4);
  --card-shadow: none;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vmax 40vmax at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(50vmax 40vmax at 0% 30%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 2px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: min(1080px, 100% - 40px);
  margin-inline: auto;
}

.ico {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}


.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, .35);
}


html.nav-scrolling body {
  pointer-events: none;
}

html.nav-scrolling .glass {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: var(--glass-strong);
}

html.nav-scrolling *,
html.nav-scrolling *::before,
html.nav-scrolling *::after {
  animation-play-state: paused !important;
}


.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, opacity .2s;
}

.btn:hover {
  background: var(--accent-press);
}

.btn:active {
  transform: scale(.96);
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.btn-lg {
  height: 52px;
  padding: 0 30px;
  font-size: 16px;
}

.btn-ghost {
  background: var(--fill);
  color: var(--accent);
}

.btn-ghost:hover {
  background: var(--fill);
  filter: brightness(.96);
}

.btn[disabled] {
  opacity: .5;
  pointer-events: none;
}


.bar-shell {
  position: sticky;
  top: 12px;
  z-index: 50;
  padding-inline: 12px;
}

.bar {
  width: min(1080px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  padding-inline: 9px;
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}

.brand-mark .ico {
  width: 30px;
  height: 30px;
  fill: currentColor;
  stroke: none;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-weight: 700;
  font-size: 16px;
}

.brand-name small {
  font-weight: 500;
  font-size: 11.5px;
  color: var(--label-2);
}

.nav {
  display: none;
  margin-inline: auto;
  gap: 4px;
}

.nav a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--label-2);
  transition: background-color .2s, color .2s;
}

.nav a:hover {
  color: var(--label);
}

.nav a.on {
  background: var(--fill);
  color: var(--label);
}

.bar-end {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}


.seg {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  height: 36px;
  padding: 3px;
  border-radius: 999px;
  background: var(--fill);
  border: 0;
  cursor: pointer;
}

.seg::before {
  content: "";
  position: absolute;
  inset-block: 3px;
  inset-inline-start: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .14);
  transition: transform .35s var(--ease);
}

:root[data-theme="dark"] .seg::before {
  transform: translateX(-100%);
  background: #636366;
}

.seg span {
  position: relative;
  width: 36px;
  display: grid;
  place-items: center;
  color: var(--label-2);
  transition: color .2s;
}

.seg .ico {
  width: 18px;
  height: 18px;
}

:root[data-theme="light"] .seg span:first-child,
:root[data-theme="dark"] .seg span:last-child {
  color: var(--label);
}


.tabbar {
  position: fixed;
  z-index: 50;
  inset-inline: 16px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  max-width: 420px;
  margin-inline: auto;
  height: 64px;
  padding: 6px;
  border-radius: 999px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: minmax(0, 1fr);
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 2px;
}

.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--label-2);
  transition: background-color .2s, color .2s;
}

.tabbar a .ico {
  width: 20px;
  height: 20px;
}

.tabbar a.on {
  background: var(--fill);
  color: var(--accent);
}

body {
  padding-bottom: 88px;
}


.hero {
  padding-block: 56px 40px;
}

.hero-in {
  display: grid;
  gap: 48px;
  align-items: center;
}

h1 {
  font-size: clamp(2.3rem, 7.4vw, 4rem);
  line-height: 1.22;
  font-weight: 800;
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

.lead {
  margin-top: 18px;
  max-width: 34em;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--label-2);
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.points {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
}

.points .ico {
  width: 16px;
  height: 16px;
  color: var(--success);
  stroke-width: 2.6;
}


.hero-art {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
}

.w {
  position: absolute;
  width: min(340px, 86%);
  border-radius: 34px;
}

.w-back2 {
  height: 250px;
  transform: translateY(-62px) scale(.84);
  opacity: .5;
}

.w-back1 {
  height: 260px;
  transform: translateY(-32px) scale(.92);
  opacity: .8;
}

.w-front {
  position: relative;
  padding: 22px;
  animation: float 7s ease-in-out infinite;
}

html.modal-open *,
html.modal-open *::before,
html.modal-open *::after {
  animation-play-state: paused;
}

html.modal-open dialog.order,
html.modal-open dialog.order * {
  animation-play-state: running;
}

@keyframes float {
  50% {
    transform: translateY(-6px);
  }
}

.w-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.w-head b {
  display: block;
  font-size: 17px;
  line-height: 1.3;
}

.w-head small {
  color: var(--label-2);
  font-size: 12.5px;
}

.tile {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--accent-soft);
  color: var(--accent);
}

.w-list {
  margin-top: 18px;
  display: grid;
  gap: 2px;
  border-radius: 20px;
  background: var(--fill-2);
  padding: 4px 14px;
}

.w-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 14.5px;
  font-weight: 500;
}

.w-list li+li {
  border-top: 1px solid var(--sep);
}

.w-list .dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--success);
  color: #fff;
  flex: none;
}

.w-list .dot .ico {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

.w-list .dot.wait {
  background: transparent;
  border: 2.5px solid var(--fill);
  border-top-color: var(--accent);
  animation: spin 1.1s linear infinite;
}

.w-list small {
  margin-inline-start: auto;
  color: var(--label-2);
  font-size: 12px;
  font-weight: 500;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


.section {
  padding-block: 56px;
}

.sec-head {
  margin-bottom: 28px;
}

.sec-head h2 {
  font-size: clamp(1.7rem, 4.6vw, 2.4rem);
  line-height: 1.3;
  font-weight: 800;
}

.sec-head p {
  margin-top: 6px;
  color: var(--label-2);
}


.grid {
  display: grid;
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .10);
  }
}

.card-media {
  margin: -22px -22px 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: rgba(120, 120, 128, .12);
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card-top .tile {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.card-top h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}

.en {
  display: block;
  font-size: 12.5px;
  color: var(--label-2);
  font-family: -apple-system, "SF Pro Text", system-ui, sans-serif;
}

.desc {
  color: var(--label-2);
  font-size: 15px;
}

.needs {
  border-radius: 18px;
  background: var(--fill-2);
  padding: 12px 16px 6px;
}

.needs-title {
  display: block;
  margin-bottom: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--label-2);
}

.needs li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14.5px;
}

.needs li+li {
  border-top: 1px solid var(--sep);
}

.needs li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.card-foot {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price small {
  display: block;
  font-size: 12px;
  color: var(--label-2);
  line-height: 1.4;
}

.price strong {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
}

.price em {
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  color: var(--label-2);
}

.price .from {
  font-size: 13px;
  font-weight: 500;
  color: var(--label-2);
}


.steps {
  display: grid;
  gap: 12px;
  counter-reset: s;
}

.steps li {
  padding: 22px;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
}

.steps h3 {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
}

.steps p {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--label-2);
}


.faq {
  max-width: 760px;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.faq details+details {
  border-top: 1px solid var(--sep);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.6;
  transition: background-color .2s;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  background: var(--fill-2);
}

.faq summary::after {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  margin-inline-end: 4px;
  border: solid var(--label-3);
  border-width: 0 0 2.5px 2.5px;
  border-radius: 1px;
  transform: rotate(-45deg);
  transition: transform .3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(135deg) translate(-2px, -2px);
}

.faq details p {
  padding: 0 22px 20px;
  color: var(--label-2);
  font-size: 15px;
}


.foot {
  padding-block: 40px 24px;
}

.foot-in {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--sep);
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--fill);
  font-size: 14.5px;
  font-weight: 500;
  transition: background-color .2s;
}

.contacts a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.contacts svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.copy {
  font-size: 13px;
  color: var(--label-2);
}


.reviews {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}

.review {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.review-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  background: var(--accent);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review:nth-child(1) .avatar {
  background: linear-gradient(135deg, #0A84FF, #5AC8FA);
}

.review:nth-child(2) .avatar {
  background: linear-gradient(135deg, #BF5AF2, #FF6482);
}

.review:nth-child(3) .avatar {
  background: linear-gradient(135deg, #30D158, #64D2FF);
}

.review h3 {
  font-size: 16.5px;
  line-height: 1.4;
  font-weight: 700;
}

.review .tag {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.7;
}

.review p {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--label-2);
}


dialog.order {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--label);
  width: min(520px, 100%);
  max-width: none;
  max-height: none;
  margin: auto;
  overflow: visible;
}

dialog.order::backdrop {
  background: rgba(0, 0, 0, .45);
}

dialog.order[open] {
  animation: sheet-in .42s var(--ease);
}

dialog.order[open]::backdrop {
  animation: fade .3s ease;
}

dialog.order.closing {
  animation: sheet-out .14s ease-out forwards;
  will-change: transform, opacity;
  pointer-events: none;
}

dialog.order.closing::backdrop {
  animation: fade .14s linear reverse forwards;
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(40px) scale(.97);
  }
}

@keyframes sheet-out {
  to {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.sheet {
  display: flex;
  flex-direction: column;
  max-height: min(92dvh, 780px);
  overflow: hidden;
  border-radius: 34px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .3);
}

#order-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.order-head,
.order-foot,
.order-sum,
.progress {
  flex: none;
}

#order-form[hidden] {
  display: none;
}

.grab {
  display: none;
  width: 38px;
  height: 5px;
  border-radius: 3px;
  background: var(--label-3);
  margin: 8px auto 0;
}

.order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 8px;
}

.order-head h2 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
}

.x {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--fill);
  color: var(--label-2);
  transition: transform .2s var(--ease);
}

.x:active {
  transform: scale(.9);
}

.x .ico {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}

.progress {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px 24px 0;
}

.progress li {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--label-3);
}

.progress li::before {
  content: "";
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--fill);
  margin-bottom: 6px;
  transition: background-color .3s;
}

.progress li.on,
.progress li.done {
  color: var(--label);
}

.progress li.on::before,
.progress li.done::before {
  background: var(--accent);
}

.order-sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 24px 0;
  padding: 14px 18px;
  border-radius: 20px;
  background: var(--accent-soft);
}

.order-sum span {
  font-size: 14px;
  color: var(--label-2);
  font-weight: 500;
}

.order-sum strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--label);
}

.order-sum em {
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
}

.order-body {
  padding: 18px 24px 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
  display: grid;
  gap: 18px;
  align-content: start;
}

.order-body[hidden] {
  display: none;
}

.field {
  display: grid;
  gap: 8px;
}

.field>label,
.label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--label-2);
}

.field input[type="text"],
.field input[type="url"],
.field input[type="email"],
.field input[type="password"] {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid transparent;
  border-radius: 16px;
  background: var(--fill);
  font-size: 16px;
  outline: none;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}

.field input::placeholder {
  color: var(--label-3);
}

.field input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 59, 48, .14);
}

.hint {
  font-size: 12.5px;
  color: var(--label-2);
}

.codes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.codes input {
  text-align: center;
  padding: 0 8px !important;
  font-size: 15px !important;
}


.variants {
  display: grid;
  gap: 8px;
}

.variant {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  position: relative;
  border-radius: 16px;
  background: var(--fill-2);
  border: 1.5px solid transparent;
  transition: background-color .2s, border-color .2s;
}

.variant input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.variant span {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}

.variant b {
  font-size: 14.5px;
  font-weight: 700;
}

.variant em {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--label-2);
}

.variant::after {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: none;
  border: 2px solid var(--label-3);
  transition: background-color .2s, border-color .2s;
}

.variant:has(input:checked) {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.variant:has(input:checked)::after {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.variant:has(input:focus-visible) {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: -3px;
}


.pay-card {
  border-radius: 22px;
  padding: 18px;
  background: var(--fill-2);
  display: grid;
  gap: 14px;
}

.pay-note {
  font-size: 14px;
  color: var(--label-2);
}

.pay-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 8px 8px 16px;
  border-radius: 16px;
  background: var(--surface);
}

.pay-number strong {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--label-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  appearance: none;
  border: 0;
  cursor: pointer;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--label);
  font-weight: 600;
  font-size: 14px;
  transition: transform .2s var(--ease), background-color .2s, color .2s;
}

.chip:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.chip:active {
  transform: scale(.94);
}

.chip .ico {
  width: 16px;
  height: 16px;
}

.pay-meta div {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
}

.pay-meta dt {
  color: var(--label-2);
}

.pay-meta dd {
  font-weight: 600;
}

.drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1.5px dashed var(--label-3);
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}

.drop:hover,
.drop.over {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.drop-icon {
  width: 46px;
  height: 46px;
  padding: 12px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.drop img {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
}

.drop.has img {
  display: block;
}

.drop.has .drop-icon {
  display: none;
}

.drop-text strong {
  display: block;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-all;
}

.drop-text small {
  font-size: 12.5px;
  color: var(--label-2);
}

.order-error {
  margin: 14px 24px 0;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 59, 48, .12);
  color: var(--danger);
  font-size: 14px;
  font-weight: 500;
}

.order-error[hidden] {
  display: none;
}

.order-foot {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
  padding: 18px 24px calc(22px + env(safe-area-inset-bottom, 0px));
}

.order-foot .btn {
  width: 100%;
}

.order-done {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: 44px 28px calc(30px + env(safe-area-inset-bottom, 0px));
}

.order-done[hidden] {
  display: none;
}

.done-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--success);
  color: #fff;
  margin-bottom: 6px;
  animation: pop .55s var(--ease);
}

.done-icon .ico {
  width: 38px;
  height: 38px;
  stroke-width: 3;
}

@keyframes pop {
  from {
    transform: scale(.4);
    opacity: 0;
  }
}

.order-done h2 {
  font-size: 24px;
  font-weight: 800;
}

.order-done p {
  color: var(--label-2);
  font-size: 15px;
  max-width: 32em;
}

.done-code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--fill);
  font-size: 14px;
}

.done-code strong {
  font-size: 16px;
  letter-spacing: .06em;
}


.toast {
  position: fixed;
  z-index: 200;
  inset-inline: 0;
  margin-inline: auto;
  width: max-content;
  max-width: calc(100% - 32px);
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(16px) scale(.96);
  pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease);
}

.toast.on {
  opacity: 1;
  transform: none;
}

.trust {
  display: flex;
  align-items: center;
}

.trust a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  padding: 6px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  transition: transform .2s var(--ease);
}

.trust a:hover {
  transform: translateY(-2px);
}

.trust img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 639px) {
  dialog.order {
    margin: auto 0 0;
  }

  .sheet {
    border-radius: 34px 34px 0 0;
  }

  .grab {
    display: block;
  }

  .order-head {
    padding-top: 14px;
  }

  .bar .btn {
    display: none;
  }
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .foot-in {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 860px) {
  body {
    padding-bottom: 0;
  }

  .tabbar {
    display: none;
  }

  .nav {
    display: flex;
  }

  .toast {
    bottom: 32px;
  }

  .hero {
    padding-block: 84px 56px;
  }

  .hero-in {
    grid-template-columns: 1.1fr .9fr;
    gap: 32px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {

  .glass,
  .sheet {
    background: var(--glass-strong);
  }
}
/* masonry layout (see masonry() in JS) */
.masonry {
  grid-auto-rows: 1px;
  row-gap: 0;
  align-items: start;
}

.masonry>* {
  align-self: start;
}

/* support buttons on the order-success screen */
.done-support {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  margin-bottom: 8px;
}

.order-done .done-support p {
  font-size: 13.5px;
}

.done-support-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.sup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  border-radius: 16px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform .2s var(--ease), filter .2s;
}

.sup:hover {
  filter: brightness(1.06);
}

.sup:active {
  transform: scale(.97);
}

.sup svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: none;
}

.sup-tg {
  background: #229ED9;
}

.sup-dc {
  background: #5865F2;
}
