:root {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #27364a;
  background: #e9eff5;
  font-synthesis: none;
  font-weight: 400
}

* {
  box-sizing: border-box
}

body {
  margin: 0
}

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

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent
}

button,
a {
  cursor: pointer
}

button {
  border: 0;
  background: transparent;
  color: inherit
}

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

.phone {
  max-width: 520px;
  min-height: 100dvh;
  margin: auto;
  background: #f4f7fb;
  box-shadow: 0 4px 60px #18376312
}

header {
  position: sticky;
  top: 0;
  background: #f8fbffed;
  backdrop-filter: blur(16px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 5;
  border-bottom: 1px solid #e5edf6
}

h1 {
  font-size: 19px;
  margin: 0;
  font-weight: 650;
  letter-spacing: 1px
}

header img {
  width: 24px
}

#back {
  font-size: 32px;
  width: 24px
}

.mode {
  font-size: 11px;
  letter-spacing: .6px;
  text-align: center;
  padding: 8px;
  background: #e9f2ff;
  color: #3973b9
}

main {
  padding: 20px 20px 110px;
  min-height: 80dvh
}

h2 {
  font-size: 24px;
  line-height: 1.4;
  margin: 4px 0 6px
}

h3 {
  font-size: 17px;
  margin: 0 0 16px
}

p {
  line-height: 1.7;
  margin: 8px 0
}

.muted,
small {
  color: #7c899c;
  font-size: 13px
}

.lead {
  margin-bottom: 24px
}

.card {
  background: white;
  border: 1px solid #eaf0f7;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px #214b7805
}

.card h3 {
  margin-bottom: 12px
}

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

.wrap {
  flex-wrap: wrap
}

.gap {
  gap: 10px
}

.stack {
  display: grid;
  gap: 12px
}

.badge {
  display: inline-block;
  font-size: 11px;
  color: #2674dc;
  background: #edf5ff;
  padding: 5px 10px;
  border-radius: 20px;
  white-space: nowrap
}

.green {
  color: #17896b;
  background: #e8f7f0
}

.red {
  color: #ca6557;
  background: #fff0eb
}

.price {
  font-size: 27px;
  font-weight: 700;
  color: #2388ed
}

.price small {
  font-size: 12px;
  font-weight: 400
}

.primary,
.secondary,
.danger {
  border-radius: 12px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  min-height: 44px
}

.primary {
  background: linear-gradient(120deg, #3ab6f1, #2679eb);
  color: #fff
}

.secondary {
  border: 1px solid #d9e6f5;
  color: #3979c0;
  background: #f6faff
}

.danger {
  background: #fff1ed;
  color: #bf6558
}

.full {
  width: 100%
}

button:disabled {
  opacity: .55;
  cursor: wait
}

label {
  font-size: 13px;
  display: block;
  margin-bottom: 16px;
  color: #66778b
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #dce5ef;
  border-radius: 10px;
  padding: 12px;
  margin-top: 8px;
  color: #27364a;
  background: #fafcff;
  outline: none
}

input:focus,
select:focus,
textarea:focus {
  border-color: #4f9cf0;
  box-shadow: 0 0 0 3px #2684eb12
}

textarea {
  min-height: 90px;
  resize: vertical
}

input[type=checkbox] {
  width: auto;
  margin: 0 6px 0 0
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 20px 0
}

.fact span {
  display: block;
  font-size: 11px;
  color: #8393a4;
  margin-bottom: 5px
}

.fact strong {
  font-size: 15px;
  font-weight: 500
}

.hero {
  background: linear-gradient(145deg, #3c95ef, #2679e6);
  border: 0;
  color: white;
  padding-bottom: 26px;
  overflow: hidden
}

.hero .muted {
  color: #dbeaff
}

.hero .badge {
  background: #ffffff25;
  color: white
}

.car-stage {
  position: relative;
  height: 270px;
  margin: 0 auto 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(ellipse, #a6d3ff90, transparent 68%)
}

.car-stage img {
  height: 250px;
  filter: drop-shadow(10px 16px 20px #07397d40);
  transform: rotate(0deg)
}

.plate {
  font-size: 23px;
  letter-spacing: 3px;
  font-weight: 650;
  text-align: center
}

.voltage {
  text-align: center;
  font-size: 12px;
  color: #e0eeff;
  margin-top: 8px
}

.controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 18px
}

.controls button {
  padding: 15px 8px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e7eef7;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 9px;
  font-size: 12px
}

.controls img {
  width: 29px;
  height: 29px;
  object-fit: contain
}

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

.quick a {
  display: block;
  background: #ecf5ff;
  border: 1px solid #dcecff;
  border-radius: 14px;
  padding: 18px;
  font-size: 14px
}

.tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin: 18px -20px;
  padding: 0 20px 7px;
  scrollbar-width: none
}

.tabs button {
  border-radius: 20px;
  background: white;
  border: 1px solid #e6edf6;
  white-space: nowrap;
  padding: 9px 16px;
  font-size: 12px
}

.tabs button.active {
  background: #2e88ee;
  color: white;
  border-color: #2e88ee
}

.catalog-image {
  height: 155px;
  background: linear-gradient(130deg, #f4faff, #e9f1fc);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px
}

.catalog-image img {
  height: 130px;
  transform: rotate(90deg);
  max-width: 100%
}

.order-title {
  font-size: 11px;
  color: #8896a8;
  word-break: break-all
}

.divider {
  height: 1px;
  background: #eef2f8;
  margin: 15px 0
}

.menu a,
.menu button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 17px 0;
  border-bottom: 1px solid #f0f3f8;
  font-size: 14px
}

.menu a:last-child {
  border: 0
}

.empty {
  text-align: center;
  padding: 46px 20px;
  color: #8796a8
}

.empty img {
  width: 110px;
  display: block;
  margin: 0 auto 20px
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #d9edff
}

.profile {
  padding: 25px 20px
}

.profile h2 {
  font-size: 21px
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  margin-top: 24px;
  gap: 12px
}

.stats strong {
  display: block;
  font-size: 23px;
  color: #257be1
}

.stats span {
  font-size: 11px;
  color: #8795a5
}

.contract {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 2.1
}

.amount-row {
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  margin: 12px 0
}

.notification {
  font-size: 13px;
  line-height: 1.8;
  background: #f0f7ff;
  border-left: 3px solid #4697ee;
  padding: 12px;
  border-radius: 0 10px 10px 0;
  margin: 16px 0
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0
}

.check-row input {
  width: auto
}

nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 520px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
  background: #ffffffed;
  backdrop-filter: blur(16px);
  border-top: 1px solid #e5edf7;
  z-index: 5
}

nav a {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  color: #8492a6
}

nav a.active {
  color: #277fea
}

nav img {
  width: 24px;
  height: 24px;
  object-fit: contain
}

#toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  background: #21334aeb;
  box-shadow: 0 8px 30px #0002;
  color: white;
  padding: 14px 22px;
  border-radius: 12px;
  max-width: 90vw;
  font-size: 13px;
  line-height: 1.7
}

.error {
  color: #bc594d;
  background: #fff4ee;
  padding: 12px;
  border-radius: 12px;
  margin: 12px 0
}

.loading {
  color: #8294aa;
  padding: 60px 0;
  text-align: center
}

.preview-image {
  max-width: 100%;
  border-radius: 10px
}

.file-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0
}

.file-list img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px
}

.text-link {
  font-size: 13px;
  color: #277bdc
}

.right {
  text-align: right
}

footer {
  font-size: 11px;
  color: #9aa6b6;
  text-align: center;
  margin: 28px 0 8px
}

.controls img {
  filter: brightness(0) saturate(100%);
  opacity: .7
}

dialog {
  border: 0;
  border-radius: 22px;
  padding: 28px;
  width: min(420px, 90vw);
  box-shadow: 0 24px 80px #1236
}

dialog::backdrop {
  background: #14283d88
}

dialog .contract {
  max-height: 50dvh;
  overflow: auto;
  margin: 22px 0
}
