:root {
  color-scheme: light;
  --blue: #0f67f5;
  --blue-deep: #0945bd;
  --red: #ff263d;
  --green: #23c55e;
  --orange: #ff981f;
  --ink: #151b2d;
  --muted: #6b7280;
  --line: #e5e7eb;
  --panel: #ffffff;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html,
body {
  touch-action: manipulation;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #eef4ff;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(100%, 402px);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 28px;
  background: linear-gradient(180deg, #0d63ee 0%, #1f78ff 244px, #f4f8ff 468px, #eef4ff 100%);
}

.hero {
  position: relative;
  min-height: 128px;
  padding: 20px 18px 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -50px -58px auto auto;
  width: 172px;
  height: 172px;
  background: rgba(255, 255, 255, 0.14);
  transform: rotate(24deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 344px;
}

.hero h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 20px;
  line-height: 1.08;
  font-weight: 900;
  white-space: nowrap;
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 16px;
  font-weight: 650;
}

.quota-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: #b91c1c;
  font-size: 18px;
  line-height: 1.12;
  font-weight: 900;
  white-space: nowrap;
}

.hero-visual {
  position: absolute;
  right: 7px;
  top: 34px;
  width: 164px;
  height: 132px;
  transform: scale(0.58) rotate(-4deg);
  transform-origin: top right;
}

.cap {
  position: absolute;
  right: 8px;
  top: 0;
  width: 110px;
  height: 52px;
  background: #17213b;
  clip-path: polygon(50% 0, 100% 24%, 50% 48%, 0 24%);
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.28));
}

.cap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 24px;
  width: 54px;
  height: 4px;
  background: #ffb21d;
  transform: rotate(18deg);
  border-radius: 99px;
}

.book {
  position: absolute;
  right: 26px;
  width: 98px;
  height: 34px;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 -7px 0 rgba(21, 27, 45, 0.1), 0 8px 16px rgba(2, 34, 94, 0.24);
}

.book-blue {
  top: 48px;
  border: 4px solid #0da2ff;
}

.book-orange {
  top: 79px;
  border: 4px solid #ff8f17;
}

.scroll {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58px;
  height: 28px;
  background: #fff8ec;
  border: 5px solid #ffefe0;
  border-radius: 999px;
  box-shadow: 12px 12px 0 #f23f31;
}

.countdown-band {
  padding: 0 16px 12px;
  color: #fff;
  text-align: center;
}

.count-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 800;
}

.count-title::before,
.count-title::after {
  content: "";
  width: 42px;
  height: 2px;
  background: rgba(255, 255, 255, 0.34);
}

.count-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
}

.count-grid div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.count-grid strong {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 25px;
  line-height: 1;
}

.count-grid span {
  font-size: 13px;
  font-weight: 800;
}

.pay-panel,
.support {
  margin: 0 12px;
  background: var(--panel);
  box-shadow: 0 22px 48px rgba(31, 88, 162, 0.18);
}

.pay-panel {
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.price-row {
  display: grid;
  grid-template-columns: 0.88fr 1.05fr 66px;
  align-items: center;
  gap: 6px;
  padding: 16px 16px 14px;
  background: linear-gradient(180deg, #fff, #f7f8fb);
}

.original span,
.current span {
  display: block;
  color: #727784;
  font-size: 14px;
  font-weight: 700;
}

.original strong {
  position: relative;
  display: inline-block;
  margin-top: 6px;
  color: #777b85;
  font-size: 26px;
  font-weight: 900;
}

.original strong::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -10px;
  top: 52%;
  height: 3px;
  background: #ef2d34;
  transform: rotate(-6deg);
}

.current {
  border-left: 1px solid var(--line);
  padding-left: 10px;
}

.current span {
  color: var(--red);
}

.current strong {
  color: var(--red);
  font-size: 46px;
  line-height: 1;
  font-weight: 950;
}

.save-badge {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 50% 18%, #ff6972 0 18%, var(--red) 19% 100%);
  text-align: center;
}

.save-badge span {
  font-size: 13px;
  font-weight: 850;
}

.save-badge strong {
  color: #ffe752;
  font-size: 17px;
}

.consult-form {
  display: grid;
  gap: 14px;
  padding: 22px 16px 22px;
}

.field-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.field-name {
  font-size: 15px;
  font-weight: 750;
  white-space: nowrap;
}

select,
input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
  font-size: 16px;
}

.choice-row {
  align-items: center;
}

.choice-group {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.choice-group.two-cols {
  display: flex;
}

.choice-group label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-height: 32px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.choice-group input {
  width: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--blue);
}

select:focus,
input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(15, 103, 245, 0.12);
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  padding-right: 42px;
}

.input-wrap em {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-style: normal;
  font-weight: 800;
}

.refund-confirm,
.safe-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
}

.safe-pay {
  color: var(--green);
  font-weight: 800;
}

.refund-confirm {
  align-items: flex-start;
  justify-content: flex-start;
  max-width: 318px;
  margin: 0 auto;
  cursor: pointer;
}

.refund-confirm input {
  flex: 0 0 18px;
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.refund-confirm span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pay-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(100%, 278px);
  min-height: 58px;
  margin: 6px auto 0;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #ff4150, #ed1230);
  box-shadow: 0 16px 28px rgba(239, 18, 48, 0.24);
  font-size: 23px;
  font-weight: 900;
  cursor: pointer;
}

.pay-button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.pay-button strong {
  font-size: 22px;
}

.safe-pay {
  font-size: 13px;
}

.message {
  min-height: 24px;
  margin: 0;
  text-align: center;
  color: var(--blue-deep);
  font-weight: 750;
}

.message.error {
  color: #d91f35;
}

.support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 18px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 16px 16px;
}

.support h2 {
  margin: 0 0 9px;
  font-size: 23px;
}

.support h2 span {
  color: var(--blue);
}

.support p {
  margin: 4px 0;
  color: var(--ink);
  font-size: 14px;
}

.service-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 42px;
  border: 2px solid var(--blue);
  border-radius: 8px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 850;
  font-size: 15px;
}

@media (max-width: 620px) {
  .support {
    display: grid;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 24px;
  }

  .price-row {
    grid-template-columns: 1fr 1.1fr;
  }

  .save-badge {
    grid-column: 2;
    justify-self: end;
    margin-top: -8px;
  }

  .field-row {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .field-row select,
  .field-row input,
  .input-wrap,
  .choice-group {
    grid-column: auto;
  }

  .support {
    display: grid;
  }

  .service-button {
    width: 148px;
  }
}
