: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: 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-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 {
  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;
  }
}

/* Help box */
#helpToggle {
  padding: 0.4rem 0.8rem;
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
}

#helpBox {
  position: fixed;
  bottom: 0.9rem;
  right: 1rem;
  left: 1rem;
  max-width: 34rem;
  margin-left: auto;
  background: #fff;
  color: #111;
  border: 2px solid #111;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
  z-index: 110;
}

.help-head {
  margin: 0 0 0.6rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.help-log {
  max-height: 10rem;
  overflow: auto;
  margin: 0 0 0.6rem;
}

.help-log:empty {
  display: none;
}

.help-log p {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.help-log .me {
  font-weight: 650;
}

.help-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
}

.help-field {
  position: relative;
}

.help-form input {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid #111;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 1.1rem;
  background: #f7f7f4;
}

.help-hint {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #222;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.help-field.has-text .help-hint {
  display: none;
}

.help-form button {
  min-height: 48px;
  padding: 0 0.9rem;
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.help-form button:disabled {
  opacity: 0.5;
}

/* 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;
  }
  
  #langBtn {
    min-height: 36px;
    min-width: 40px;
    padding: 0 0.5rem;
    font-size: 0.85rem;
  }
  
  /* Move help box to TOP on mobile, under header */
  #helpBox {
    top: calc(3.5rem + env(safe-area-inset-top, 0rem));
    bottom: auto;
    left: 0.5rem;
    right: 0.5rem;
    max-width: none;
    z-index: 105;
  }
  
  body.cookies-off #helpBox {
    top: calc(3.5rem + env(safe-area-inset-top, 0rem));
    bottom: auto;
  }
  
  /* Keep feedback at bottom on mobile with small inset */
  #feedbackBox {
    bottom: max(0.5rem, env(safe-area-inset-bottom));
    left: 0.5rem;
    right: 0.5rem;
    max-width: none;
    font-size: 1.3rem;
    padding: 1.1rem 1.5rem;
    min-height: 64px;
  }
  
  body.cookies-off #feedbackBox {
    bottom: max(0.5rem, env(safe-area-inset-bottom));
  }
  
  /* Adjust body padding for mobile - only bottom for feedback button */
  body {
    padding-bottom: 6rem;
  }
  
  /* Adjust wrap padding to clear the fixed help box at top */
  .wrap {
    padding-top: 8rem;
    padding-bottom: 2rem;
  }
}

/* FEEDBACK BUTTON - opposite side from help, always visible, BIG and centered */
#feedbackBox {
  position: fixed;
  bottom: calc(var(--bottom-bar, 5.25rem) + 0.75rem);
  left: 1rem;
  max-width: 22rem;
  background: #111;
  color: #fff;
  border: 2px solid #111;
  border-radius: 16px;
  padding: 1.35rem 2rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
  z-index: 110;
  text-decoration: none;
  display: block;
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 72px;
}

#feedbackBox:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

#feedbackBox:active {
  transform: translateY(0);
}

body.cookies-off #feedbackBox {
  bottom: 0.9rem;
}

/* Center feedback button in available left space on wider screens */
@media (min-width: 1000px) {
  #feedbackBox {
    left: max(1rem, calc(((100vw - 36rem) / 2 - 22rem) / 2));
  }
}
