@font-face {
  font-family: Archivo;
  src: url('/assets/Archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC;
}
@font-face {
  font-family: Archivo;
  src: url('/assets/Archivo-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF;
}

:root {
  --red: #fc1925;
  --red-dark: #b2121b;
  --ink: #141414;
  --muted: #66645f;
  --cream: #eeebdf;
  --cream-light: #f8f5ed;
  --paper: #fff;
  --line: #ded9cc;
  --green: #267442;
  --shadow: 0 18px 45px rgba(20, 20, 20, .09);
  --font: Archivo, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--font); }
button, textarea, select, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); background: var(--paper);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; }
.brand img { width: 152px; height: auto; }
.brand span { padding-left: 16px; border-left: 1px solid var(--line); color: var(--muted);
  font-size: 13px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.topbar-note { color: var(--muted); font-size: 13px; }

.page { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 64px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  gap: 52px; align-items: end; padding: 18px 0 42px; }
.eyebrow { margin-bottom: 12px; color: var(--red); font-size: 12px; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase; }
h1 { max-width: 780px; margin: 0 0 16px; font-size: clamp(36px, 5vw, 62px); line-height: .98;
  letter-spacing: -.045em; }
.hero-copy p { max-width: 700px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.steps { display: flex; justify-content: space-between; gap: 8px; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; flex: 1; display: grid; grid-template-columns: 32px 1fr; align-items: center;
  gap: 8px; color: #99958c; font-size: 12px; }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 15px; left: 40px;
  width: calc(100% - 39px); height: 1px; background: #cbc5b7; }
.steps span { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid #c9c3b6; border-radius: 50%; background: var(--cream); font-weight: 750; }
.steps b { position: relative; z-index: 1; width: max-content; padding-right: 6px; background: var(--cream); }
.steps li.active, .steps li.done { color: var(--ink); }
.steps li.active span { border-color: var(--red); background: var(--red); color: #fff; }
.steps li.done span { border-color: var(--ink); background: var(--ink); color: #fff; }

.panel { padding: 30px 34px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper);
  box-shadow: var(--shadow); }
.panel-heading, .compare-heading { display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; margin-bottom: 28px; }
.panel-heading > div, .compare-heading > div { display: grid; grid-template-columns: 42px 1fr; align-items: center; }
.section-number { color: var(--red); font-size: 12px; font-weight: 850; letter-spacing: .1em; }
h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.025em; }
.compare-heading { margin: 48px 0 20px; align-items: center; }
.compare-heading p { grid-column: 2; max-width: 700px; margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.time-badge { padding: 7px 12px; border-radius: 999px; background: var(--cream-light); color: var(--muted);
  font-size: 12px; }
.field-label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 750; }
.field-label span, .rating-question span { color: var(--red); }
textarea, select, input[type='text'] { width: 100%; border: 1px solid #cfc9bc; border-radius: 12px;
  background: #fff; color: var(--ink); outline: none; transition: border .15s, box-shadow .15s; }
textarea { min-height: 120px; padding: 16px 18px; line-height: 1.6; resize: vertical; }
select, input[type='text'] { height: 48px; padding: 0 14px; }
textarea:focus, select:focus, input[type='text']:focus { border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(252, 25, 37, .1); }
.input-panel > textarea { min-height: 250px; font-family: var(--font); font-size: 15px; }
.field-meta { display: flex; justify-content: space-between; gap: 18px; margin-top: 8px; color: var(--muted);
  font-size: 12px; }

.consent-box { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--cream-light); }
.check-row { display: grid; grid-template-columns: 24px 1fr; gap: 12px; cursor: pointer;
  font-size: 13px; line-height: 1.55; }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-mark { position: relative; width: 22px; height: 22px; margin-top: 1px; border: 1px solid #aaa497;
  border-radius: 6px; background: #fff; }
.check-row input:checked + .check-mark { border-color: var(--red); background: var(--red); }
.check-row input:checked + .check-mark::after { content: ''; position: absolute; left: 6px; top: 2px;
  width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check-row input:focus-visible + .check-mark { box-shadow: 0 0 0 3px rgba(252, 25, 37, .18); }
details { color: var(--muted); font-size: 12px; }
.consent-box details { margin: 12px 0 0 36px; }
summary { width: max-content; max-width: 100%; cursor: pointer; color: var(--ink); font-weight: 700; }
details p { max-width: 850px; margin: 8px 0 0; line-height: 1.55; }

.action-row { display: flex; align-items: center; gap: 20px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 48px;
  padding: 0 22px; border: 0; border-radius: 999px; font-weight: 750; transition: .15s ease; }
.button.primary { color: #fff; background-color: var(--red);
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 2px,
    rgba(255,255,255,.2) 2px, rgba(255,255,255,.2) 10px); }
.button.primary:hover { background-color: var(--red-dark); transform: translateY(-1px); }
.button.primary i { font-size: 21px; font-style: normal; }
.button.ghost { min-height: 42px; border: 1px solid #bbb5a8; background: transparent; color: var(--ink); }
.button.ghost:hover { border-color: var(--ink); background: rgba(255,255,255,.55); }
.button.small { min-height: 38px; padding: 0 16px; font-size: 12px; }
.button.danger { min-height: 44px; border: 1px solid var(--red); background: transparent; color: var(--red-dark); }
.button:disabled { cursor: not-allowed; opacity: .5; transform: none !important; }
.security-note { color: var(--muted); font-size: 12px; }
.security-note i { margin-right: 6px; color: var(--green); font-size: 8px; }

.notice { margin-bottom: 18px; padding: 14px 17px; border: 1px solid #e4c767; border-left: 4px solid #d9a900;
  border-radius: 10px; background: #fff6d8; font-size: 13px; line-height: 1.45; }
.notice.error { border-color: #e2aaa6; border-left-color: var(--red); background: #fff0ef; color: #81171c; }
.notice.success { border-color: #b6d9c0; border-left-color: var(--green); background: #eff8f1; color: #1f6037; }

.original-box { margin-bottom: 18px; padding: 20px 24px; border: 1px dashed #bdb6a8; border-radius: 14px;
  background: rgba(255,255,255,.45); }
.original-title { margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 750;
  letter-spacing: .08em; text-transform: uppercase; }
.variants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.variant-card { overflow: hidden; display: flex; flex-direction: column; min-height: 500px; border: 1px solid var(--line);
  border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }
.variant-head { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line);
  font-size: 14px; font-weight: 800; }
.variant-label { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff; }
.result-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.7; }
.variant-card > .result-text { flex: 1; padding: 24px 26px; }
.rating-block { padding: 20px 24px; border-top: 1px solid var(--line); background: var(--cream-light); }
.rating-question { margin-bottom: 8px; font-size: 13px; font-weight: 750; }
.stars { display: flex; gap: 3px; }
.star { width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: #c6c0b3;
  font-size: 30px; line-height: 1; transition: color .12s, transform .12s; }
.star:hover, .star.selected { color: #e4a800; transform: translateY(-1px); }
.star:focus-visible { border-radius: 6px; outline: 2px solid var(--red); outline-offset: 1px; }
.stars-label { min-height: 18px; color: var(--muted); font-size: 11px; }

.feedback-panel { margin-top: 18px; }
.feedback-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; }
.feedback-grid textarea { min-height: 100px; }
.feedback-grid select { background: #fff; }

.thanks-panel { max-width: 860px; margin: 24px auto 0; text-align: center; }
.success-mark { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 22px;
  border-radius: 50%; background: var(--green); color: #fff; font-size: 30px; font-weight: 800; }
.thanks-panel > p { color: var(--muted); }
.removal-card { display: grid; grid-template-columns: 1fr auto; gap: 12px 18px; align-items: center;
  margin: 26px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--cream-light); text-align: left; }
.removal-card > div { grid-column: 1 / -1; }
.removal-card b, .removal-card span { display: block; }
.removal-card span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.removal-card code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.withdraw-section { margin-top: 26px; padding: 0 10px; }
.withdraw-section details { border-top: 1px solid #d2ccbf; padding-top: 18px; }
.withdraw-form { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: end;
  max-width: 760px; margin-top: 16px; }
.withdraw-form label { grid-column: 1 / -1; }

footer { display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px max(24px, calc((100vw - 1180px) / 2)); border-top: 1px solid #d3cec1;
  color: var(--muted); font-size: 11px; }
footer img { width: 110px; opacity: .7; }

.busy { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px;
  background: rgba(238, 235, 223, .86); backdrop-filter: blur(3px); }
.busy-card { min-width: 300px; padding: 28px; border: 1px solid var(--line); border-radius: 18px;
  background: #fff; box-shadow: var(--shadow); text-align: center; }
.busy-card b, .busy-card span { display: block; }
.busy-card span { margin-top: 7px; color: var(--muted); font-size: 12px; }
.spinner { width: 42px; height: 42px; margin: 0 auto 18px; border: 4px solid #eee9dd;
  border-top-color: var(--red); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 840px) {
  .topbar-note { display: none; }
  .page { width: calc(100% - 24px); max-width: 720px; padding-top: 22px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
  .steps { max-width: 520px; }
  .variants, .feedback-grid { grid-template-columns: 1fr; }
  .variant-card { min-height: 0; }
  .variant-card > .result-text { min-height: 260px; }
  .panel { padding: 24px 20px; }
}

@media (max-width: 560px) {
  .topbar { height: 68px; padding: 0 16px; }
  .brand img { width: 125px; }
  .brand span { padding-left: 10px; font-size: 10px; }
  h1 { font-size: 38px; }
  .steps b { display: none; }
  .steps li { display: block; }
  .steps li:not(:last-child)::after { left: 32px; width: calc(100% - 30px); }
  .panel-heading, .compare-heading { display: block; }
  .time-badge, .compare-heading > .button { display: inline-flex; margin-top: 16px; }
  .field-meta, .action-row, footer { align-items: flex-start; flex-direction: column; }
  .button.primary { width: 100%; }
  .removal-card, .withdraw-form { grid-template-columns: 1fr; }
  .removal-card .button { justify-self: start; }
  footer { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important;
    transition-duration: .01ms !important; }
}
