:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #667085;
  --muted-light: #8a94a6;
  --blue: #2f5bff;
  --blue-hover: #244be0;
  --blue-soft: #edf2ff;
  --border: #d9e2f1;
  --border-light: #e8edf5;
  --input-bg: #f7f9fd;
  --shadow: 0 24px 70px rgba(30, 64, 175, 0.10);
  --radius-main: 28px;
  --radius-md: 14px;
  --radius-sm: 10px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  border: 0;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}
.page {
  width: 100%;
}
.header {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 42px;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 35px rgba(20, 44, 90, 0.06);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo__icon {
  width: 30px;
  height: 30px;
  background: var(--blue);
  color: #fff;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 8px 22px rgba(47, 91, 255, 0.22);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}
.nav a {
  transition: color 0.2s ease;
}
.nav a:hover {
  color: var(--blue);
}
.hero {
  width: 100%;
  margin: 0 auto;
  @background: var(--card);
  padding: 44px 18px 34px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 8%, rgba(47, 91, 255, 0.16), transparent 35%),
    linear-gradient(180deg, rgba(47, 91, 255, 0.04), transparent);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  text-align: center;
}
.hero__icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  background: var(--blue);
  color: #fff;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 38px;
  box-shadow: 0 18px 45px rgba(47, 91, 255, 0.25);
}
.hero__title {
  font-size: 29px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}
.hero__subtitle {
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
  margin-bottom: 24px;
}
.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #f3f6fb;
  border: 1px solid #e5ebf3;
  border-radius: var(--radius-md);
  padding: 6px;
  margin-bottom: 18px;
}
.tabs__btn {
  height: 42px;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
}
.tabs__btn:hover {
  color: var(--blue);
}
.tabs__btn.is-active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(47, 91, 255, 0.22);
}
.order-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.form-section {
  display: none;
  flex-direction: column;
  gap: 14px;
}
.form-section.is-active {
  display: flex;
}
.field {
  position: relative;
  display: block;
}
.field__icon {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: var(--blue);
  font-size: 16px;
  z-index: 2;
  pointer-events: none;
}
.input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  border-radius: var(--radius-sm);
  padding: 0 16px 0 44px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: 0.2s ease;
}
.input::placeholder {
  color: #9aa4b5;
}
.input:focus {
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(47, 91, 255, 0.10);
}
.packs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pack {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: 0.2s ease;
  user-select: none;
}
.pack:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(47, 91, 255, 0.08);
}
.pack.is-hidden {
  display: none;
}
.pack input,
.gift input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  margin-right: 12px;
  position: relative;
  flex: 0 0 auto;
  transition: 0.2s ease;
}
.pack input:checked + .radio,
.gift input:checked + .gift__body .gift__radio {
  border-color: var(--blue);
}
.pack input:checked + .radio::after,
.gift input:checked + .gift__body .gift__radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--blue);
}
.pack input:checked ~ .pack__name,
.pack input:checked ~ .pack__price {
  color: var(--blue);
}
.pack__name {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 800;
  color: #26334d;
  transition: 0.2s ease;
}
.pack__name span {
  color: #ffb020;
  margin-right: 6px;
}
.pack__price {
  margin-left: auto;
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
  transition: 0.2s ease;
  white-space: nowrap;
}
.gifts-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  margin-bottom: -4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(47, 91, 255, 0.45) transparent;
}
.gifts-scroll::-webkit-scrollbar {
  height: 6px;
}
.gifts-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.gifts-scroll::-webkit-scrollbar-thumb {
  background: rgba(47, 91, 255, 0.35);
  border-radius: 20px;
}
.gifts {
  display: flex;
  gap: 12px;
  min-width: max-content;
}
.gift {
  width: 140px;
  flex: 0 0 140px;
  cursor: pointer;
  user-select: none;
  position: relative;
}
.gift__body {
  height: 150px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: 0.2s ease;
  position: relative;
}
.gift:hover .gift__body,
.gift input:checked + .gift__body {
  border-color: var(--blue);
  box-shadow: 0 10px 28px rgba(47, 91, 255, 0.10);
}
.gift input:checked + .gift__body {
  background: linear-gradient(180deg, #ffffff, #f7f9ff);
}
.gift__radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  position: absolute;
  top: 12px;
  left: 12px;
  transition: 0.2s ease;
}
.gift__img {
  font-size: 58px;
  line-height: 1;
  margin-top: 14px;
}
.gift__price {
  min-width: 86px;
  height: 34px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 900;
  font-size: 14px;
}

.payment-methods {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  margin-bottom: -4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(47, 91, 255, 0.45) transparent;
}
.payment-methods::-webkit-scrollbar {
  height: 6px;
}
.payment-methods::-webkit-scrollbar-track {
  background: transparent;
}
.payment-methods::-webkit-scrollbar-thumb {
  background: rgba(47, 91, 255, 0.35);
  border-radius: 20px;
}
.payment-method {
  width: 130px;
  flex: 0 0 130px;
  cursor: pointer;
  user-select: none;
  position: relative;
}
.payment-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.payment-method__body {
  height: 112px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  transition: 0.2s ease;
  position: relative;
}
.payment-method:hover .payment-method__body,
.payment-method input:checked + .payment-method__body {
  border-color: var(--blue);
  box-shadow: 0 10px 28px rgba(47, 91, 255, 0.10);
}
.payment-method input:checked + .payment-method__body {
  background: linear-gradient(180deg, #ffffff, #f7f9ff);
}
.payment-method__radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  position: absolute;
  top: 12px;
  left: 12px;
  transition: 0.2s ease;
}
.payment-method input:checked + .payment-method__body .payment-method__radio {
  border-color: var(--blue);
}
.payment-method input:checked + .payment-method__body .payment-method__radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--blue);
}
.payment-method__icon {
  font-size: 28px;
  line-height: 1;
}
.payment-method__title {
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
}
.payment-method input:checked + .payment-method__body .payment-method__title {
  color: var(--blue);
}

.secondary-btn,
.pay-btn,
.more-btn {
  width: 100%;
  height: 52px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}
.secondary-btn {
  background: var(--blue);
  color: #fff;
}
.secondary-btn:hover {
  background: var(--blue-hover);
}
.more-btn {
  background: var(--blue-soft);
  color: var(--blue);
  border: 1px solid #dbe5ff;
}
.pay-btn--card {
  background: var(--blue);
  color: #ffffff;
}
.pay-btn:hover {
  transform: translateY(-1px);
}
.terms {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted-light);
  text-align: center;
}
.terms a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 640px) {
  .hero {
    padding: 32px 14px 28px;
  }
  .hero__inner {
    max-width: 100%;
  }
  .hero__icon {
    width: 62px;
    height: 62px;
    font-size: 34px;
    border-radius: 20px;
  }
  .hero__title {
    font-size: 24px;
  }
  .hero__subtitle {
    font-size: 14px;
  }
  .tabs {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar {
    display: none;
  }
  .tabs__btn {
    flex: 0 0 auto;
    padding: 0 15px;
  }
  .gift {
    width: 132px;
    flex-basis: 132px;
  }
  .gift__body {
    height: 142px;
  }
  .gift__img {
    font-size: 52px;
  }
  .payment-method {
    width: 122px;
    flex-basis: 122px;
  }
  
  .payment-method__body {
    height: 104px;
  }
  .input,
  .secondary-btn,
  .pay-btn {
    height: 50px;
  }
}



.stars-custom-field {
  width: 100%;
  height: 50px;
  border-radius: 13px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  align-items: center;
  transition: .2s ease;
}

.stars-custom-field__icon {
  width: 50px;
  height: 100%;
  display: grid;
  place-items: center;
  color: #ffbd2e;
  font-size: 30px;
  flex: 0 0 auto;
}

.stars-custom-field__input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  padding: 0 120px 0 0;
}

.stars-custom-field__input::placeholder {
  color: #9aa4b5;
  font-size: 14px;
  font-weight: 500;
}

.stars-custom-field.is-active .stars-custom-field__input::placeholder {
  color: rgba(255,255,255,.65);
}

.stars-custom-field__input::-webkit-outer-spin-button,
.stars-custom-field__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stars-custom-field__price {
  display: none;
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: #96a4b4;
  white-space: nowrap;
}

.stars-custom-field__clear {
  display: none;
  right: 14px;
  width: 22px;
  height: 22px;
  font-size: 30px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 10px;
  background: transparent;
  color: #96a4b4;
  line-height: 1;
  cursor: pointer;
}
.stars-custom-field__clear svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.stars-custom-field__clear {
  display: none;
}

.stars-custom-field.has-value .stars-custom-field__clear {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stars-custom-field__price {
  display: none;
}

.stars-custom-field.is-active .stars-custom-field__price {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stars-packs.is-custom .pack input:checked + .radio {
  border-color: #cbd5e1;
}

.stars-packs.is-custom .pack input:checked + .radio::after {
  display: none;
}

.stars-packs.is-custom .pack input:checked ~ .pack__name,
.stars-packs.is-custom .pack input:checked ~ .pack__price {
  color: inherit;
}

.tg-search {
  position: relative;
  width: 100%;
  height: 50px;
  color: #9aa4b5;
}
.tg-search__input {
  width: 100%;
  height: 100%;
  border: 1px solid var(--border);
  outline: none;
  background: var(--input-bg);
  color: var(--text);
  font-size: 14px;
  padding: 0 48px;
  border-radius: var(--radius-sm);
  transition: 0.2s ease;
}
.tg-search__input:focus {
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(47, 91, 255, 0.10);
}
.tg-search__input::placeholder {
  color: #9aa4b5;
}

.tg-search__input::-webkit-search-cancel-button {
  display: none;
}

.tg-search__icon,
.tg-search__photo,
.tg-search__clear,
.tg-search__loader {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tg-search__icon--search {
  left: 16px;
  width: 20px;
  height: 20px;
}

.tg-search__icon--error {
  left: 15px;
  width: 22px;
  height: 22px;
  display: none;
  border-radius: 50%;
  background: #e25b5b;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.tg-search__icon svg,
.tg-search__clear svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.tg-search__photo {
  left: 12px;
  width: 28px;
  height: 28px;
  display: none;
  overflow: hidden;
  border-radius: 50%;
}

.tg-search__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tg-search__clear {
  right: 14px;
  width: 22px;
  height: 22px;
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: #96a4b4;
  cursor: pointer;
}

.tg-search__loader {
  right: 14px;
  width: 22px;
  height: 22px;
  display: none;
}

.tg-search__loader svg {
  width: 100%;
  height: 100%;
  animation: tg-spin .8s linear infinite;
}

.tg-search__loader circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 42;
  stroke-dashoffset: 14;
}

.tg-search.has-value .tg-search__clear {
  display: flex;
}

.tg-search.is-loading .tg-search__clear {
  display: none;
}

.tg-search.is-loading .tg-search__loader {
  display: flex;
}

.tg-search.is-found .tg-search__icon--search,
.tg-search.is-error .tg-search__icon--search {
  display: none;
}

.tg-search.is-found .tg-search__photo {
  display: flex;
}

.tg-search.is-error .tg-search__icon--error {
  display: flex;
}

.tg-search.is-found .tg-search__input {
  font-weight: 700;
}

@keyframes tg-spin {
  to {
    transform: rotate(360deg);
  }
}


.order-form.is-hidden,
.terms.is-hidden,
.tabs.is-hidden,
.hero__icon.is-hidden,
.hero__title.is-hidden,
.hero__subtitle.is-hidden {
  display: none;
}

.order-screen {
  display: none;
  text-align: left;
}

.order-screen.is-active {
  display: block;
}

.order-screen__top {
  text-align: center;
  margin-bottom: 22px;
}

.order-screen__icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 24px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 34px;
}

.order-screen__title {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 8px;
}

.order-screen__subtitle {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.order-progress {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 26px 0 24px;
}

.order-progress__line,
.order-progress__line-active {
  position: absolute;
  left: 34px;
  right: 34px;
  top: 18px;
  height: 3px;
  border-radius: 10px;
}

.order-progress__line {
  background: #d9e2f1;
}

.order-progress__line-active {
  width: 0;
  right: auto;
  background: var(--blue);
  transition: 0.25s ease;
}

.order-progress__step {
  width: 86px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.order-progress__dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #cbd5e1;
  color: #98a2b3;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  transition: 0.2s ease;
}

.order-progress__title {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--muted);
}

.order-progress__step.is-active .order-progress__dot {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 0 5px rgba(47, 91, 255, 0.10);
}

.order-progress__step.is-active .order-progress__title {
  color: var(--blue);
}

.order-progress__step.is-done .order-progress__dot {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.order-progress__step.is-done .order-progress__dot::before {
  content: "✓";
}

.order-progress__step.is-done .order-progress__dot {
  font-size: 0;
}

.order-progress[data-order-progress="payment"] .order-progress__line-active {
  width: 0;
}

.order-progress[data-order-progress="processing"] .order-progress__line-active {
  width: calc(50% - 34px);
}

.order-progress[data-order-progress="completed"] .order-progress__line-active {
  width: calc(100% - 68px);
}

.order-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.order-detail {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-detail span {
  color: var(--muted);
  font-size: 13px;
}

.order-detail b {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crypto-payment {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  margin-bottom: 14px;
}

.crypto-payment__title {
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 12px;
}

.crypto-payment__box {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px;
  border-radius: 12px;
  background: var(--input-bg);
  border: 1px solid var(--border);
}

.crypto-payment__box + .crypto-payment__box {
  margin-top: 10px;
}

.crypto-payment__box span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.crypto-payment__value {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crypto-payment__value b {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  word-break: break-all;
}

.crypto-payment__value button {
  height: 32px;
  padding: 0 10px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.crypto-payment__note,
.external-payment__note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.external-payment {
  margin-bottom: 14px;
}

.order-cancel {
  width: 100%;
  height: 50px;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.order-cancel:hover {
  color: var(--blue);
  background: var(--blue-soft);
}
