:root {
  --bg: #071422;
  --text: #f5f7fb;
  --muted: #b7c4d6;
  --line: rgba(255, 255, 255, 0.16);
  --blue: #2f6bff;
  --green: #0d7036;
  --amber: #8a5300;
  --glass: rgba(255, 255, 255, 0.06);
  --max: 430px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Manrope, "Segoe UI", sans-serif;
  background:
    radial-gradient(90% 28% at 50% -8%, rgba(86, 140, 220, 0.22), transparent 55%),
    var(--bg);
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

p,
h1,
h2,
h3,
ul,
ol {
  margin: 0;
}

.page {
  position: relative;
  isolation: isolate;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 28px 20px 96px;
  overflow: clip;
}

.page > * {
  animation: rise 0.7s ease both;
}

.page > *:nth-child(2) {
  animation-delay: 0.05s;
}

.page > *:nth-child(3) {
  animation-delay: 0.1s;
}

.page > *:nth-child(4) {
  animation-delay: 0.16s;
}

.page > *:nth-child(5) {
  animation-delay: 0.22s;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 16px;
}

.wordmark {
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero {
  margin-top: 36px;
}

h1,
h2 {
  font-weight: 800;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(34px, 9vw, 42px);
  line-height: 1.02;
}

h2 {
  font-size: 26px;
  line-height: 1.15;
}

.lead,
.note,
.caption,
.sheet p,
.steps-list p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.lead {
  margin-top: 14px;
  max-width: 34ch;
}

.perks {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 22px 0 22px;
  padding: 0;
}

.perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: var(--glass);
  font-weight: 700;
}

.perk-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #ffb36b;
  background: rgba(255, 179, 107, 0.12);
}

.perk-icon svg {
  width: 22px;
  height: 22px;
}

.cta {
  display: block;
  width: 100%;
  padding: 17px 18px;
  border: 0;
  border-radius: 12px;
  color: #1a1208;
  background: linear-gradient(180deg, #ffc14a 0%, #ff8a1a 100%);
  box-shadow:
    0 0 0 1px rgba(255, 214, 120, 0.45),
    0 10px 28px rgba(255, 122, 26, 0.48);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.cta:hover {
  background: linear-gradient(180deg, #ffd06a 0%, #ff941f 100%);
}

.cta:active {
  background: linear-gradient(180deg, #ffb03a 0%, #f07810 100%);
  box-shadow: 0 6px 16px rgba(255, 122, 26, 0.4);
}

.steps {
  margin-top: 52px;
}

.steps-list {
  list-style: none;
  margin-top: 20px;
  padding: 0;
}

.steps-list li {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  padding-bottom: 22px;
}

.steps-list li:last-child {
  padding-bottom: 0;
}

.steps-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 36px;
  bottom: 0;
  left: 17px;
  width: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  font-weight: 800;
}

.steps-list p {
  padding-top: 6px;
  color: var(--text);
  font-weight: 600;
}

.preview {
  margin-top: 48px;
}

.glass {
  padding: 16px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.phone {
  padding: 8px;
  border-radius: 32px;
  background: #111318;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.screen {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #f3f5f8;
  color: #171b22;
  font-size: 12px;
}

.island {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 78px;
  height: 16px;
  border-radius: 20px;
  background: #111318;
  transform: translateX(-50%);
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 14px 10px;
}

.app-top h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.app-tools {
  display: flex;
  gap: 8px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #4b5563;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn-add {
  border-radius: 50%;
  color: white;
  background: var(--blue);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 10px;
}

.chip {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  color: #5d6772;
  background: white;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.chip.is-active {
  color: white;
  background: var(--blue);
}

.orders {
  margin: 0 10px;
  padding: 4px 0;
  border-radius: 16px;
  background: white;
}

.order {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px 8px;
}

.order[hidden] {
  display: none;
}

.order + .order {
  border-top: 1px solid #eef1f5;
}

.thumb {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f2f3f7;
}

.thumb svg {
  width: 36px;
  height: 36px;
}

.order-name {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.track {
  margin-top: 2px;
  color: #8b95a1;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.status {
  max-width: 72px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
}

.status-transit {
  color: var(--blue);
}

.status-delivered {
  color: var(--green);
}

.status-waiting {
  color: var(--amber);
}

.orders-empty {
  padding: 18px 12px;
  color: #6b7280;
  text-align: center;
}

.map-wrap {
  margin: 10px;
  overflow: hidden;
  border-radius: 14px;
}

.map {
  width: 100%;
  height: auto;
}

.route {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: draw 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.35s forwards;
}

.more {
  margin: 0 10px 12px;
  padding: 11px 8px;
  border-radius: 12px;
  color: #5c6772;
  background: #eceff3;
  font-weight: 700;
  text-align: center;
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 4px 10px;
  border-top: 1px solid #e6ebf1;
  background: white;
}

.tab {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: #9aa3af;
  font-size: 9px;
  font-weight: 700;
}

.tab svg {
  width: 18px;
  height: 18px;
}

.tab.is-current {
  color: var(--blue);
}

.caption {
  margin-top: 16px;
  text-align: center;
}

.partners {
  margin-top: 52px;
}

.carriers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 18px 0 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border-radius: 12px;
  background: white;
}

.carrier {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 4px;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.carrier + .carrier {
  border-left: 1px solid #eceff3;
}

.carrier-dhl {
  color: #d40511;
  background: #ffcc00;
  font-style: italic;
  font-size: 18px;
}

.carrier-fedex {
  font-size: 14px;
  font-style: italic;
}

.fed {
  color: #4d148c;
}

.ex {
  color: #ff6600;
}

.carrier-cdek {
  color: #00a650;
  font-size: 14px;
  font-style: italic;
  letter-spacing: -0.06em;
}

.carrier-ems {
  font-size: 16px;
  font-style: italic;
}

.ems-e {
  color: #f47b20;
}

.ems-ms {
  color: #3aaa35;
}

.note {
  margin: 14px 0 22px;
  text-align: center;
}

.partners .cta {
  box-shadow:
    0 0 0 3px rgba(7, 20, 34, 0.35),
    0 10px 28px rgba(255, 122, 26, 0.55);
}

.glow {
  position: absolute;
  right: -20%;
  bottom: -120px;
  left: -20%;
  z-index: -1;
  height: 340px;
  background: radial-gradient(ellipse at center, rgba(255, 154, 69, 0.95) 0%, rgba(224, 106, 34, 0.55) 38%, transparent 72%);
  filter: blur(6px);
  pointer-events: none;
}

.sheet-root[hidden] {
  display: none;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(4, 10, 18, 0.62);
}

.sheet {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 21;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 10px 20px calc(22px + env(safe-area-inset-bottom));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: #101820;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.35);
  animation: sheet-in 0.28s ease;
}

.sheet-handle {
  display: block;
  width: 42px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
}

.sheet h2 {
  font-size: 24px;
}

.sheet p {
  margin-top: 6px;
}

.store {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #111;
  text-decoration: none;
  background: white;
}

.store small {
  display: block;
  color: #667085;
  font-size: 11px;
}

.store strong {
  font-size: 16px;
}

.store-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
}

.store-mark svg {
  width: 26px;
  height: 26px;
}

.sheet-close {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.sheet-open {
  overflow: hidden;
}

:focus-visible {
  outline: 2px solid #ffb36b;
  outline-offset: 3px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes sheet-in {
  from {
    transform: translateY(16px);
  }
  to {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .page > *,
  .route,
  .sheet {
    animation: none;
  }

  .route {
    stroke-dashoffset: 0;
  }
}
