:root {
  --bg: #050505;
  --paper: #f3eee3;
  --ink: #f3eee3;
  --dim: #827b71;
  --muted: #575249;
  --line: #2b2824;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Courier Prime', monospace;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}

.screen {
  display: none;
  position: relative;
  z-index: 1;
  width: 100%;
}

.screen.active {
  display: block;
}

.page {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.lang-switch {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 18px;
}

.lang-btn {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 7px 10px;
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  cursor: pointer;
  text-transform: uppercase;
}

.lang-btn.active {
  color: var(--ink);
  border-color: #6c655c;
}

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.stamp {
  margin-top: 8px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(84px, 23vw, 190px);
  line-height: 0.88;
  letter-spacing: -2px;
  color: var(--ink);
}

.tm {
  font-size: 0.16em;
  vertical-align: super;
  opacity: 0.45;
  letter-spacing: 0;
}

.divider {
  width: 1px;
  height: 44px;
  background: var(--dim);
  margin: 26px auto 34px;
  opacity: 0.85;
}

.claims {
  font-size: clamp(16px, 4.8vw, 20px);
  line-height: 2;
  max-width: 100%;
}

.negation {
  color: #6c665d;
  text-decoration: line-through;
  text-decoration-color: #4d463f;
  text-decoration-thickness: 1px;
}

.price-block {
  margin-top: 56px;
  width: 100%;
}

.price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 16vw, 92px);
  letter-spacing: 2px;
  line-height: 0.95;
}

.price-sub {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
}

.buy-note,
.success-sub,
.loading-text {
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #7a7368;
}

.btn-buy,
.btn-cert,
.btn-confirm,
.btn-cancel,
.btn-email {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn-buy:hover,
.btn-cert:hover,
.btn-confirm:hover,
.btn-cancel:hover,
.btn-email:hover {
  transform: scale(1.02);
}

.btn-buy {
  display: block;
  width: 100%;
  margin: 32px auto 0;
  padding: 18px 22px;
  background: var(--paper);
  color: var(--bg);
  border: none;
  font-family: 'Courier Prime', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-cert {
  width: 100%;
  margin-top: 22px;
  padding: 18px 22px;
  background: transparent;
  color: var(--ink);
  border: 1px solid #3a3631;
  font-family: 'Courier Prime', monospace;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-cert-sub {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.6;
  color: #7a7368;
  letter-spacing: 1px;
}

.counter-block {
  margin-top: 54px;
  width: 100%;
  text-align: center;
  padding-top: 6px;
}

.counter-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(46px, 10vw, 72px);
  letter-spacing: 2px;
  line-height: 1;
  color: var(--ink);
}

.counter-copy {
  margin-top: 14px;
  color: #92897d;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.email-block {
  margin-top: 60px;
  width: 100%;
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}

.email-title {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.email-sub {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--dim);
}

.email-form {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.email-input {
  width: 100%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: center;
  font-family: 'Courier Prime', monospace;
  font-size: 16px;
  padding: 16px 14px;
  outline: none;
}

.email-input::placeholder {
  color: #615c55;
}

.btn-email {
  width: 100%;
  padding: 16px 18px;
  background: var(--paper);
  color: var(--bg);
  border: none;
  font-family: 'Courier Prime', monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  cursor: pointer;
}

.email-note,
.email-feedback {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.6;
  color: #7a7368;
}

.meta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.legal {
  font-size: 10px;
  line-height: 1.6;
  color: #6a645b;
  text-align: left;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.6px;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 100;
  padding: 18px;
  overflow-y: auto;
}

.modal-overlay.active {
  display: block;
}

.modal-wrap {
  min-height: calc(100svh - 36px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  width: min(100%, 560px);
  background: #070707;
  border: 1px solid var(--line);
  padding: 28px 18px;
  text-align: center;
}

.modal h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(46px, 11vw, 72px);
  line-height: 0.95;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.modal p {
  color: var(--dim);
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 24px;
}

.modal input[type="text"] {
  width: 100%;
  border: none;
  border-bottom: 1px solid #d8d2c8;
  background: transparent;
  color: var(--ink);
  text-align: center;
  font-family: 'Courier Prime', monospace;
  font-size: 20px;
  padding: 12px 0;
  outline: none;
  margin-bottom: 28px;
}

.modal input[type="text"]::placeholder {
  color: #615c55;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  margin-bottom: 28px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.checkbox-box {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 1px solid #d8d2c8;
  border-radius: 6px;
  position: relative;
  margin-top: 2px;
  flex-shrink: 0;
  background: transparent;
}

.checkbox-box.checked::after {
  content: "✓";
  position: absolute;
  left: 4px;
  top: -1px;
  font-size: 18px;
  line-height: 1;
  color: var(--paper);
  font-family: Arial, sans-serif;
  font-weight: bold;
}

.check-label span {
  color: var(--dim);
  font-size: 13px;
  line-height: 1.8;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn-confirm,
.btn-cancel {
  width: 100%;
  padding: 16px 18px;
  font-family: 'Courier Prime', monospace;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  cursor: pointer;
}

.btn-confirm {
  background: var(--paper);
  color: var(--bg);
  border: none;
  font-weight: 700;
}

.btn-cancel {
  background: transparent;
  color: var(--dim);
  border: 1px solid var(--line);
}

.loading-screen {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.loading-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 16vw, 132px);
  line-height: 0.92;
  letter-spacing: 2px;
}

.success-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.success-title {
  margin-top: 42px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(74px, 18vw, 150px);
  line-height: 0.92;
}

.success-body {
  margin-top: 42px;
  color: #92897d;
  font-size: clamp(16px, 4.8vw, 20px);
  line-height: 2.15;
  max-width: 100%;
}

.success-body strong {
  color: var(--ink);
  font-weight: 400;
}

.text-page {
  min-height: 100svh;
  padding-top: 40px;
  padding-bottom: 40px;
}

.terms-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(44px, 10vw, 58px);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.terms-updated {
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 34px;
}

.terms-body {
  font-size: 13px;
  color: #9a9388;
  line-height: 2;
}

.terms-body h3 {
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 28px 0 8px;
}

.terms-body ul {
  list-style: none;
  padding-left: 0;
}

.terms-body li::before {
  content: "— ";
  color: #5e5851;
}

.btn-back {
  margin-top: 32px;
  background: none;
  border: none;
  color: var(--dim);
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
}

@media (min-width: 768px) {
  .page {
    padding: 40px 28px 46px;
  }

  .hero,
  .success-page {
    justify-content: center;
  }

  .stamp {
    margin-top: 0;
  }

  .divider {
    height: 56px;
    margin: 34px auto;
  }

  .meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
  }

  .legal {
    max-width: 70%;
  }

  .footer-links {
    justify-content: flex-end;
    min-width: 180px;
  }

  .modal {
    padding: 38px 28px;
  }

  .modal-actions {
    flex-direction: row;
  }

  .btn-confirm,
  .btn-cancel {
    width: 100%;
  }

  .email-form {
    flex-direction: row;
  }

  .email-input {
    flex: 1;
    text-align: left;
  }

  .btn-email {
    width: auto;
    min-width: 180px;
  }
}
