:root {
  --bg: #f7f7f4;
  --ink: #111111;
  --muted: #333330;
  --line: #cfcfc8;
  --paper: #ffffff;
  --ask: #111111;
  --askbg: #ecece6;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.2rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 1.5rem;
}

/* ONE HEADER - Always visible, never duplicate */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #111;
  color: #fff;
  padding: 0.75rem 1rem;
  padding-top: max(0.75rem, env(safe-area-inset-top));
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem 1rem;
  max-width: none;
  margin: 0;
  width: 100%;
}

.header-sale {
  font-weight: 800;
  font-size: clamp(1.5rem, 5.2vw, 2.25rem);
  line-height: 1.15;
  text-align: center;
  justify-self: center;
  grid-column: 2;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem 1.1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  font-weight: 650;
  justify-self: start;
  grid-column: 1;
}

.header-nav a {
  color: #fff;
  text-decoration: none;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.header-nav a[aria-current="page"] {
  font-weight: 750;
  text-decoration: underline;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-self: end;
  grid-column: 3;
}

.header-login {
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.header-start {
  padding: 0.5rem 0.9rem;
  background: #fff;
  color: #111;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

#langBtn {
  min-height: 44px;
  min-width: 48px;
  padding: 0 0.7rem;
  border: 1.5px solid #fff;
  background: transparent;
  color: #fff;
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

#langBtn:focus,
.header-start:focus,
.header-login:focus {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* MAIN CONTENT COLUMN - Centered, clickable */
.wrap {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0.75rem 1.25rem 3.5rem;
  position: relative;
  z-index: 50;
}

/* COMPETITOR ADS - Fixed at viewport edges, BEHIND main content */
.comp-ads {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 5;
}

.comp-ad {
  position: fixed;
  width: 17rem;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid #d4d4ce;
  border-radius: 12px;
  padding: 0.95rem 1rem;
  font-size: 0.98rem;
  line-height: 1.35;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  opacity: 0.82;
}

.comp-ad-left-1 {
  top: 10rem;
  left: max(0.5rem, calc(((100vw - 36rem) / 2 - 17rem) / 2));
  transform: rotate(-7deg);
}

.comp-ad-left-2 {
  top: 20rem;
  left: max(0.5rem, calc(((100vw - 36rem) / 2 - 17rem) / 2));
  transform: rotate(-9deg);
}

.comp-ad-left-3 {
  top: 30rem;
  left: max(0.5rem, calc(((100vw - 36rem) / 2 - 17rem) / 2));
  transform: rotate(-6deg);
}

.comp-ad-right-1 {
  top: 10rem;
  right: max(0.5rem, calc(((100vw - 36rem) / 2 - 17rem) / 2));
  transform: rotate(7deg);
}

.comp-ad-right-2 {
  top: 20rem;
  right: max(0.5rem, calc(((100vw - 36rem) / 2 - 17rem) / 2));
  transform: rotate(9deg);
}

.comp-ad strong {
  display: block;
  font-weight: 750;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: #111;
}

.comp-ad .old-price {
  text-decoration: line-through;
  color: #888;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.comp-ad .our-price {
  font-weight: 800;
  color: #111;
  font-size: 1.25rem;
}

/* Hide ads on narrow screens where they'd cover the form */
@media (max-width: 999px) {
  .comp-ads {
    display: none;
  }
}

/* Typography */
h1 {
  font-size: 2.35rem;
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.025em;
  margin: 0 0 0.85rem;
}

h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
}

p {
  margin: 0 0 0.85rem;
}

.lead {
  margin-bottom: 1.75rem;
}

.muted {
  color: var(--muted);
}

section {
  margin: 0 0 2.15rem;
}

/* Form elements */
.field {
  margin: 0 0 1.05rem;
}

label.lbl {
  display: block;
  font-weight: 650;
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
  width: 100%;
  min-height: 58px;
  font: inherit;
  font-size: 1.15rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid #bdbdb6;
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
}

input:focus,
textarea:focus,
.btn:focus {
  outline: 3px solid #111;
  outline-offset: 2px;
}

textarea {
  min-height: 5.5rem;
  resize: vertical;
}

::placeholder {
  color: #3a3a38;
  opacity: 1;
}

.choices {
  display: grid;
  gap: 0.5rem;
}

.choice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  min-height: 52px;
  background: var(--paper);
  border: 1.5px solid #bdbdb6;
  border-radius: 12px;
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: #111;
  border-width: 2px;
  padding: calc(0.75rem - 0.5px) calc(0.85rem - 0.5px);
}

.choice input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #111;
}

.choice b {
  font-weight: 750;
  font-size: 1.22rem;
}

.choice em {
  font-style: normal;
  font-weight: 650;
  font-size: 0.98rem;
  white-space: nowrap;
}

.ask {
  background: var(--askbg);
  color: var(--ask);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  font-weight: 650;
}

.btn {
  display: block;
  width: 100%;
  min-height: 52px;
  margin: 0 0 0.65rem;
  padding: 0.7rem 1rem;
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.btn-ghost {
  background: #fff;
  color: #111;
  border: 1.5px solid #111;
}

.fine {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0.35rem 0 0;
}

.err {
  color: #111;
  background: var(--askbg);
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin: 0 0 0.85rem;
}

.agree {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.35;
}

.agree input {
  width: auto;
  min-height: 22px;
  margin-top: 0.2rem;
}

.agree a {
  font-weight: 700;
  color: inherit;
}

/* Step list */
ol.easy {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

ol.easy li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.7rem;
  align-items: start;
  margin: 0 0 0.95rem;
}

ol.easy b {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1.5px solid #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
}

ol.easy span {
  padding-top: 0.15rem;
}

/* Trust section */
.trust-strip {
  margin: 0 0 2.15rem;
  padding: 1rem 1.15rem;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
}

/* Responsive */
@media (max-width: 640px) {
  /* Shrink header to a thin strip */
  .header {
    padding: 0.4rem 0.75rem;
    padding-top: max(0.4rem, env(safe-area-inset-top));
  }
  
  .header-inner {
    gap: 0.5rem 0.65rem;
  }
  
  .header-sale {
    font-size: 0.95rem;
    line-height: 1.2;
  }
  
  .header-nav {
    font-size: 0.8rem;
    gap: 0.4rem 0.7rem;
  }
  
  .header-nav a {
    min-height: 32px;
  }
  
  .header-start {
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
    min-height: 36px;
  }

  .header-login {
    font-size: 0.85rem;
    min-height: 36px;
  }
  
  #langBtn {
    min-height: 36px;
    min-width: 40px;
    padding: 0 0.5rem;
    font-size: 0.85rem;
  }
}
