/* === Primary button === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-xl);
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: var(--on-primary);
  font-family: var(--font-display);
  font-size: var(--text-body-lg);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(228, 54, 99, 0.3);
  color: var(--on-primary);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary--lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1.125rem;
}

/* === Secondary button === */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-xl);
  background: transparent;
  color: var(--on-surface);
  font-family: var(--font-display);
  font-size: var(--text-body-lg);
  font-weight: 500;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(228, 54, 99, 0.1);
  border-color: rgba(228, 54, 99, 0.3);
  color: var(--on-surface-bright);
}

/* === Card === */
.card {
  background: linear-gradient(145deg, rgba(42, 41, 41, 0.6), rgba(26, 26, 26, 0.8));
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow:
    var(--neon-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.card:hover {
  box-shadow:
    var(--neon-shadow-strong),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.08);
}

.card--glass {
  background: linear-gradient(145deg, rgba(38, 38, 38, 0.7), rgba(20, 20, 20, 0.5));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.card--elevated {
  transform: scale(1);
}

.card--elevated:hover {
  transform: translateY(-4px);
}

/* === Badge / Chip === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem var(--space-lg);
  background: var(--tertiary-container);
  color: var(--on-tertiary);
  font-family: var(--font-label);
  font-size: var(--text-body-md);
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge--primary {
  background: var(--primary-dim);
  color: var(--primary);
}

/* === Tabs === */
.tabs__nav {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.tabs__btn {
  padding: 0.75rem 2rem;
  font-family: var(--font-label);
  font-size: var(--text-body-lg);
  font-weight: 600;
  color: var(--on-surface-variant);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.tabs__btn:hover {
  color: var(--on-surface-bright);
  border-color: rgba(228, 54, 99, 0.3);
}

.tabs__btn--active {
  background: var(--primary-dim);
  color: var(--primary);
  border-color: rgba(228, 54, 99, 0.3);
}

/* === Glass panel === */
.glass-panel {
  background: linear-gradient(145deg, rgba(42, 41, 41, 0.5), rgba(20, 20, 20, 0.6));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow:
    var(--neon-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* === HUD stat === */
.hud-stat {
  text-align: center;
}

.hud-stat__number {
  font-family: var(--font-display);
  font-size: var(--text-display-sm);
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 20px rgba(228, 54, 99, 0.3);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.hud-stat__label {
  font-family: var(--font-label);
  font-size: var(--text-label-md);
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* === Divider === */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  margin: var(--space-lg) 0;
}

/* === Check list === */
.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.check-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--on-surface);
  line-height: 1.5;
}

.check-list__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.check-list__icon--check {
  color: var(--primary);
}

.check-list__icon--cross {
  color: var(--on-surface-variant);
  opacity: 0.5;
}

/* === Preorder modal === */
.preorder-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.9rem, 3vh, var(--space-xl));
  pointer-events: none;
  overflow: hidden;
}

.preorder-modal[hidden] {
  display: none;
}

.preorder-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(228, 54, 99, 0.14), transparent 42%),
    rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 120ms var(--ease-out);
}

.preorder-modal__dialog {
  position: relative;
  width: min(100%, 54rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  border-radius: calc(var(--radius-xl) + 0.2rem);
  padding: clamp(1.5rem, 2vw, 2.4rem);
  background: linear-gradient(155deg, rgba(42, 41, 41, 0.92), rgba(14, 14, 14, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(228, 54, 99, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
  will-change: opacity, transform;
}

@supports selector(:has(*)) {
  .preorder-modal__dialog:has(.preorder-modal__state--success) {
    width: min(100%, 38rem);
    padding: clamp(1.35rem, 2.4vw, 1.75rem);
  }
}

.preorder-modal.is-visible {
  pointer-events: auto;
}

.preorder-modal.is-visible .preorder-modal__backdrop {
  opacity: 1;
}

.preorder-modal.is-visible .preorder-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.preorder-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--on-surface);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.preorder-modal__close:hover {
  background: rgba(228, 54, 99, 0.1);
  border-color: rgba(228, 54, 99, 0.24);
  color: var(--on-surface-bright);
  transform: translateY(-1px);
}

.preorder-modal__close:focus-visible {
  outline: none;
  border-color: rgba(228, 54, 99, 0.36);
  box-shadow: 0 0 0 4px rgba(228, 54, 99, 0.12);
}

.preorder-modal__state h3 {
  font-size: clamp(1.65rem, 2.6vw, 2.3rem);
  font-weight: 700;
  margin-top: var(--space-sm);
  line-height: 0.96;
}

.preorder-modal__state > p {
  margin-top: var(--space-sm);
  max-width: 40ch;
  color: var(--on-surface-variant);
  line-height: 1.55;
}

.preorder-modal__state--success {
  display: flex;
  justify-content: center;
  padding-top: 0.7rem;
}

.preorder-modal__success-shell {
  position: relative;
  width: min(100%, 32rem);
  display: grid;
  justify-items: center;
  gap: 1.4rem;
  padding: clamp(0.75rem, 1.8vw, 1rem) clamp(0.3rem, 1vw, 0.45rem) 0;
  border-radius: 0;
  overflow: visible;
  text-align: center;
  background: none;
  border: 0;
  box-shadow: none;
}

.preorder-modal__success-shell::before {
  content: "";
  position: absolute;
  top: -2.2rem;
  left: 50%;
  width: min(100%, 24rem);
  height: 13rem;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(228, 54, 99, 0.2) 0%, rgba(228, 54, 99, 0.08) 36%, transparent 72%);
  transform: translateX(-50%);
  filter: blur(18px);
  opacity: 0.9;
  pointer-events: none;
}

.preorder-modal__success-shell::after {
  content: "";
  position: absolute;
  right: -1.75rem;
  bottom: -1rem;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 54, 99, 0.16) 0%, rgba(228, 54, 99, 0.04) 48%, transparent 72%);
  filter: blur(10px);
  pointer-events: none;
  opacity: 0.75;
}

.preorder-modal__success-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  width: 100%;
}

.preorder-modal__success-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(228, 54, 99, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 24px rgba(228, 54, 99, 0.12);
}

.preorder-modal__success-copy h3 {
  margin-top: 0;
  max-width: none;
  font-size: clamp(2.3rem, 4.9vw, 3.3rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.preorder-modal__success-lead {
  margin-top: 0;
  max-width: 27rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(1.02rem, 1.55vw, 1.14rem);
  line-height: 1.55;
  text-wrap: balance;
}

.preorder-modal__success-sidebar {
  display: flex;
  position: relative;
  z-index: 1;
  justify-content: center;
  width: 100%;
}

.preorder-modal__success-sidebar::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.9rem);
  width: min(100%, 5rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transform: translateX(-50%);
}

.preorder-modal__state--form {
  display: grid;
  gap: clamp(1.2rem, 2vw, 1.6rem);
}

.preorder-modal__errors {
  margin-top: var(--space-lg);
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(228, 54, 99, 0.28);
  background: rgba(228, 54, 99, 0.1);
}

.preorder-modal__errors strong {
  display: block;
  color: var(--on-surface-bright);
  font-family: var(--font-display);
  font-size: 1rem;
}

.preorder-modal__errors ul {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  margin-top: var(--space-sm);
}

.preorder-modal__errors li {
  color: rgba(255, 220, 228, 0.95);
  line-height: 1.45;
}

.preorder-form {
  margin-top: 0;
}

.preorder-form__body {
  display: block;
}

.preorder-form__selection {
  display: grid;
  gap: 0.95rem;
  padding: 0.9rem;
  border-radius: calc(var(--radius-xl) - 0.1rem);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(228, 54, 99, 0.06)),
    rgba(17, 17, 17, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 32px rgba(0, 0, 0, 0.16);
}

.preorder-form__selection-header h4,
.preorder-form__details-header h4 {
  margin-top: 0.35rem;
  color: var(--on-surface-bright);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.preorder-form__selection-header p,
.preorder-form__details-header p {
  margin-top: 0.25rem;
  color: var(--on-surface-variant);
  font-size: 0.92rem;
  line-height: 1.45;
}

.preorder-form__details {
  display: grid;
  gap: 1rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.preorder-form__details-header {
  display: grid;
  gap: 0.4rem;
  max-width: 34rem;
}

.preorder-form__details-header h4 {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.68);
}

.preorder-form__selected-offer {
  display: grid;
  gap: 0.24rem;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.15rem;
  padding: 0.58rem 0.78rem;
  border-radius: calc(var(--radius-md) - 0.05rem);
  border: 1px solid rgba(228, 54, 99, 0.42);
  background:
    linear-gradient(135deg, rgba(228, 54, 99, 0.2), rgba(255, 255, 255, 0.045)),
    rgba(228, 54, 99, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(228, 54, 99, 0.14);
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-label);
  font-weight: 760;
  line-height: 1.35;
}

.preorder-form__selected-offer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.34rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.preorder-form__selected-offer-meta span + span::before {
  content: "•";
  margin-right: 0.42rem;
  color: rgba(255, 118, 153, 0.9);
}

.preorder-form__selected-offer strong {
  color: var(--on-surface-bright);
  font-size: 1.34rem;
  font-weight: 900;
  line-height: 1.12;
}

@media (min-width: 768px) {
  .preorder-form__selected-offer {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
  }

  .preorder-form__selected-offer-meta {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .preorder-form__selected-offer strong {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
  }

  .preorder-form__selected-offer strong::before {
    content: "•";
    margin-right: 0.5rem;
    color: rgba(255, 118, 153, 0.9);
    font-size: 0.9rem;
  }
}

.preorder-form__choice-group {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.preorder-form__choice-group legend {
  padding: 0;
  color: var(--on-surface-bright);
  font-family: var(--font-label);
  font-size: var(--text-label-md);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preorder-form__choice-grid {
  display: grid;
  gap: 0.65rem;
}

.preorder-form__choice-grid--subjects,
.preorder-form__choice-grid--tiers {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preorder-form__choice {
  position: relative;
}

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

.preorder-form__choice-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 100%;
  padding: 0.72rem 0.82rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.preorder-form__choice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(228, 54, 99, 0.2);
  background: rgba(255, 255, 255, 0.045);
}

.preorder-form__choice-input:focus-visible + .preorder-form__choice-card {
  box-shadow: 0 0 0 4px rgba(228, 54, 99, 0.12);
}

.preorder-form__choice-input:checked + .preorder-form__choice-card {
  border-color: rgba(228, 54, 99, 0.34);
  background:
    linear-gradient(145deg, rgba(228, 54, 99, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    0 12px 28px rgba(228, 54, 99, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.preorder-form__choice-card--subject {
  min-height: 4.15rem;
}

.preorder-form__choice-card--tier {
  min-height: 4.45rem;
}

.preorder-form__choice-title {
  color: var(--on-surface-bright);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
}

.preorder-form__choice-meta {
  color: var(--on-surface-variant);
  font-family: var(--font-label);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.preorder-form__choice-input:checked + .preorder-form__choice-card .preorder-form__choice-meta {
  color: rgba(255, 255, 255, 0.82);
}

.preorder-form__group-error {
  color: rgba(255, 220, 228, 0.95);
  font-size: 0.82rem;
  line-height: 1.45;
}

.preorder-form__selection-note {
  color: var(--on-surface-variant);
  font-size: 0.8rem;
  line-height: 1.45;
}

.preorder-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.preorder-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.preorder-form__field label,
.preorder-form__consent label {
  font-family: var(--font-label);
  font-size: var(--text-label-md);
  font-weight: 700;
  color: var(--on-surface-bright);
  letter-spacing: 0.04em;
}

.preorder-form__field input {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--on-surface-bright);
  font-family: var(--font-body);
  font-size: 0.96rem;
  transition: border-color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.preorder-form__field input::placeholder {
  color: rgba(173, 170, 170, 0.6);
}

.preorder-form__field input:hover {
  background: rgba(255, 255, 255, 0.05);
}

.preorder-form__field input:focus {
  outline: none;
  border-color: rgba(228, 54, 99, 0.38);
  box-shadow: 0 0 0 4px rgba(228, 54, 99, 0.1);
}

.preorder-form__field input.is-invalid,
.preorder-form__consent.is-invalid {
  border-color: rgba(228, 54, 99, 0.32);
}

.preorder-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.preorder-form__consent input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.preorder-form__consent label {
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
}

.preorder-form__consent a {
  color: var(--secondary);
}

.preorder-modal__actions {
  display: flex;
  justify-content: flex-start;
  position: relative;
  z-index: 3;
  margin-top: 0.15rem;
}

.preorder-modal__actions--success {
  margin-top: 0;
  justify-content: center;
  width: 100%;
}

.preorder-modal__actions--success .preorder-modal__submit {
  width: min(100%, 23rem);
  min-width: 0;
  min-height: 4.5rem;
  padding: 1rem 1.75rem;
  border-radius: calc(var(--radius-lg) + 0.15rem);
  font-size: 1.18rem;
  font-weight: 700;
  box-shadow:
    0 22px 44px rgba(228, 54, 99, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.preorder-modal__submit--telegram {
  gap: 0.8rem;
}

.preorder-modal__submit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12) 42%, rgba(255, 255, 255, 0.08) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.16);
}

.preorder-modal__submit-icon svg {
  width: 1.02rem;
  height: 1.02rem;
  flex-shrink: 0;
}

.preorder-modal__submit {
  min-width: 16rem;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.privacy-policy__card {
  display: grid;
  gap: var(--space-lg);
}

.privacy-policy__card h3 {
  font-size: var(--text-headline-md);
  margin-bottom: calc(var(--space-xs) * -1);
}

.privacy-policy__card p {
  max-width: none;
  line-height: 1.7;
}

@media (max-width: 1023px) {
  .preorder-modal__dialog {
    width: min(100%, 46rem);
  }

  .preorder-modal__state--success {
    width: 100%;
  }

  .preorder-modal__success-shell {
    width: min(100%, 30rem);
    padding-top: 0.5rem;
  }

  .preorder-modal__success-sidebar {
    justify-content: center;
  }

  .preorder-form__body {
    display: block;
  }

  .preorder-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
  }
}

@media (max-width: 767px) {
  .badge {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    line-height: 1.2;
    white-space: normal;
    justify-content: center;
    text-align: center;
  }

  .preorder-modal {
    padding: 0.75rem;
  }

  .preorder-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - 1.5rem);
    padding: 1.25rem;
  }

  .preorder-modal__close {
    top: 0.8rem;
    right: 0.8rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .preorder-modal__state--success {
    padding-top: 0.4rem;
  }

  .preorder-modal__success-shell {
    width: 100%;
    gap: 1.05rem;
    padding: 0.45rem 0 0;
  }

  .preorder-modal__success-copy {
    gap: 0.85rem;
  }

  .preorder-modal__success-copy h3 {
    font-size: clamp(2rem, 10.2vw, 2.7rem);
    white-space: nowrap;
  }

  .preorder-modal__actions--success .preorder-modal__submit {
    width: 100%;
    min-height: 4.1rem;
    font-size: 1.08rem;
  }

  .preorder-form__choice-grid--subjects,
  .preorder-form__choice-grid--tiers {
    grid-template-columns: 1fr;
  }

  .preorder-form__grid {
    grid-template-columns: 1fr;
  }

  .preorder-modal__submit {
    width: 100%;
    min-width: 0;
  }
}
