* {
  box-sizing: border-box;
}

:root {
  --bg: #0d0d0d;
  --card: #111;
  --panel: #222;
  --panel-2: #262626;
  --border: #3c3c3c;
  --accent: #ff6a18;
  --accent-2: #ff873d;
  --text: #f6f6f6;
  --muted: #c9c9c9;
  --shadow: rgba(255, 106, 24, 0.28);
}

html,
body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 106, 24, .22), transparent 38%),
    linear-gradient(180deg, #211004 0%, #0b0b0b 28%, #080808 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.app {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 16px 16px calc(26px + env(safe-area-inset-bottom));
}

.card {
  border: 1px solid #262626;
  border-radius: 30px;
  background: rgba(17, 17, 17, .96);
  box-shadow: 0 18px 55px rgba(0,0,0,.45);
}

.hero {
  padding: 36px 24px 28px;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 106, 24, .45);
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(255, 106, 24, .08);
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

h1 {
  margin: 20px 0 8px;
  font-size: clamp(38px, 10vw, 64px);
  line-height: .95;
  font-weight: 950;
  letter-spacing: .02em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 28px;
  color: var(--accent);
  font-size: clamp(27px, 8vw, 42px);
  line-height: 1.08;
  font-weight: 900;
}

.lead {
  max-width: 520px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.48;
}

.chips {
  display: grid;
  gap: 14px;
  margin: 0 0 30px;
}

.chips span,
.payment-method,
.email-field,
.tariff {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  color: #ededed;
}

.chips span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 13px 16px;
  font-size: 18px;
}

.pay-box {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.tariffs {
  display: grid;
  gap: 16px;
}

.tariff {
  display: grid;
  gap: 16px;
  min-height: 144px;
  padding: 28px 18px;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

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

.tariff-title {
  color: #d9d9d9;
  font-size: 25px;
  font-weight: 800;
}

.tariff-price {
  color: var(--accent-2);
  font-size: 25px;
  font-weight: 950;
}

.tariff.active,
.payment-method.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255,106,24,.34), 0 0 20px var(--shadow);
}

.payment-method {
  min-height: 80px;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.email-field {
  min-height: 80px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 0 24px;
  text-align: left;
}

.email-field span {
  color: #bdbdbd;
  font-size: 22px;
}

.email-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 22px;
}

.email-field input::placeholder {
  color: #d6d6d6;
}

.pay-button {
  min-height: 98px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(180deg, #ff7b1f 0%, #ff5e12 100%);
  color: #fff;
  font-size: 25px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(255, 106, 24, .25);
}

.hint {
  margin: -4px 4px 20px;
  color: #9f9f9f;
  font-size: 14px;
  line-height: 1.45;
}

.contacts {
  margin-top: 26px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  text-align: left;
  color: #d7d7d7;
  font-size: 19px;
  line-height: 1.45;
}

.contacts p {
  margin: 6px 0;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  margin: 30px auto 24px;
}

.footer-nav button {
  border: 0;
  background: transparent;
  color: #ffa36d;
  font-size: 18px;
  cursor: pointer;
}

.bot-name {
  color: #aaa;
  font-size: 19px;
}

.modal {
  width: min(92vw, 560px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #161616;
  color: var(--text);
}

.modal::backdrop {
  background: rgba(0,0,0,.7);
}

.modal-inner {
  position: relative;
  max-height: 80vh;
  overflow: auto;
  padding: 28px 22px;
}

.modal h3 {
  margin: 0 44px 16px 0;
  color: var(--accent-2);
  font-size: 25px;
}

.modal p,
.modal li {
  color: #d7d7d7;
  font-size: 16px;
  line-height: 1.55;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #2a2a2a;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 420px) {
  .app {
    padding: 14px 12px calc(18px + env(safe-area-inset-bottom));
  }

  .hero {
    padding: 28px 20px 24px;
    border-radius: 24px;
  }

  .lead {
    font-size: 19px;
  }

  .chips span,
  .payment-method,
  .email-field {
    min-height: 64px;
  }

  .tariff {
    min-height: 126px;
  }

  .pay-button {
    min-height: 84px;
  }
}
