:root {
  --bg: #fff8f9;
  --bg-2: #fdeef2;
  --card: #ffffff;
  --ink: #2a1d22;
  --muted: #7d6870;
  --line: #f1dde3;
  --rose: #d9577f;
  --rose-ink: #b23c63;
  --rose-soft: #fbe3ea;
  --ok: #2f8a5b;
  --err: #b4233c;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(190, 90, 120, 0.10), 0 2px 6px rgba(190, 90, 120, 0.06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 85% -10%, var(--bg-2), transparent 60%), var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--rose-ink); }
[hidden] { display: none !important; }

.top { display: flex; align-items: center; gap: 10px; max-width: 1080px; margin: 0 auto; padding: 18px 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(from 200deg, #f6b8c9, var(--rose), #f3a6bd, #fbe3ea, #f6b8c9); box-shadow: inset 0 0 0 5px #fff; }
.badge { font-size: 12px; color: var(--rose-ink); background: var(--rose-soft); padding: 2px 10px; border-radius: 999px; }

main { max-width: 1080px; margin: 0 auto; padding: 0 16px 40px; }

.hero { text-align: center; padding: 28px 0 26px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; margin: 0 0 12px; letter-spacing: -0.03em; font-weight: 700; }
.lead { margin: 0 auto 24px; color: var(--muted); font-size: clamp(17px, 2.4vw, 20px); max-width: 560px; }
.steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.steps li { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; font-size: 14px; }
.steps b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--rose-soft); color: var(--rose-ink); font-size: 13px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 20px; }
h2 { font-size: 19px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--rose); color: #fff; font-size: 14px; }

.grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 860px) { .grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.col { min-width: 0; }

.drop { position: relative; display: grid; place-items: center; min-height: 320px; border: 2px dashed #efc3d0; border-radius: 16px; background: linear-gradient(180deg, #fffafb, #fff3f6); cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s; }
.drop:hover, .drop.drag { border-color: var(--rose); background: #fff0f4; }
.drop-small { min-height: 220px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img { width: 100%; height: 100%; max-height: 460px; object-fit: contain; background: #fff; }
.drop-empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 24px; pointer-events: none; }
.drop-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--rose-soft); color: var(--rose); font-size: 30px; font-weight: 300; }
.drop-title { font-weight: 600; }
.drop-hint { color: var(--muted); font-size: 14px; max-width: 300px; }
.link-btn { margin-top: 10px; background: none; border: 0; padding: 4px 0; color: var(--rose-ink); font: inherit; text-decoration: underline; cursor: pointer; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-2); border-radius: 14px; padding: 4px; margin-bottom: 16px; }
.tabs button { border: 0; background: transparent; padding: 10px 8px; border-radius: 10px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(190, 90, 120, .12); }

.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); }
.chip:hover { border-color: #e9a9bc; }
.chip[aria-pressed="true"] { background: var(--rose); color: #fff; border-color: var(--rose); }

.field-label { display: block; font-weight: 600; font-size: 14px; margin: 6px 0 6px; }
textarea { width: 100%; resize: vertical; min-height: 64px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; color: var(--ink); background: #fffdfd; }
textarea:focus, .chip:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible + span { outline: 3px solid #f4b6c8; outline-offset: 2px; }
.counter { text-align: right; color: var(--muted); font-size: 12px; margin-top: 4px; }

.consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--rose); flex: none; }

.primary, .secondary { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 14px; font: inherit; font-weight: 650; font-size: 17px; cursor: pointer; text-decoration: none; border: 0; }
.primary { width: 100%; color: #fff; background: linear-gradient(135deg, #e76c93, var(--rose) 55%, #c94873); box-shadow: 0 8px 20px rgba(217, 87, 127, .30); }
.primary:hover { filter: brightness(1.04); }
.primary:disabled { background: #e8c7d1; box-shadow: none; cursor: not-allowed; }
.secondary { color: var(--rose-ink); background: var(--rose-soft); }
.quota { margin: 10px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.error { margin: 12px 0 0; color: var(--err); background: #fdecef; border: 1px solid #f6c6cf; border-radius: 12px; padding: 10px 14px; font-size: 14px; }

.progress { display: flex; gap: 18px; align-items: center; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--rose-soft); border-top-color: var(--rose); animation: spin 1s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-body { flex: 1; min-width: 0; }
.progress-title { margin: 0 0 8px; font-weight: 650; }
.progress-hint { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.bar { height: 8px; border-radius: 999px; background: var(--rose-soft); overflow: hidden; }
.bar-fill { height: 100%; width: 4%; border-radius: inherit; background: linear-gradient(90deg, #f29ab5, var(--rose)); transition: width .8s ease; }

.compare { position: relative; overflow: hidden; border-radius: 16px; background: #f6eef1; user-select: none; touch-action: pan-y; max-width: 720px; margin: 0 auto; }
.compare > img { width: 100%; height: auto; }
.compare-before { position: absolute; inset: 0; overflow: hidden; }
.compare-before img { width: 100%; height: 100%; object-fit: cover; }
.compare-handle { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; box-shadow: 0 0 8px rgba(0,0,0,.25); }
.compare-handle span { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.compare-handle span::before, .compare-handle span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent; }
.compare-handle span::before { left: 6px; border-right-color: var(--rose); }
.compare-handle span::after { right: 6px; border-left-color: var(--rose); }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.tag { position: absolute; top: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.85); font-size: 13px; font-weight: 600; pointer-events: none; }
.tag-left { left: 12px; }
.tag-right { right: 12px; }

.side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px auto 0; max-width: 720px; }
.side figure { margin: 0; }
.side img { width: 100%; border-radius: 12px; aspect-ratio: 3 / 4; object-fit: cover; background: #f6eef1; }
.side figcaption { text-align: center; color: var(--muted); font-size: 13px; margin-top: 6px; }

.actions { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 720px; margin: 20px auto 0; }
@media (min-width: 600px) { .actions { grid-template-columns: 1fr 1fr; } }
.note { max-width: 720px; margin: 14px auto 0; color: var(--muted); font-size: 13px; text-align: center; }

.foot { max-width: 1080px; margin: 0 auto; padding: 10px 16px 40px; color: var(--muted); font-size: 14px; text-align: center; }
.provider { font-size: 12px; }

.doc { max-width: 760px; }
.doc h1 { font-size: 32px; letter-spacing: -0.02em; margin: 10px 0 18px; }
.doc h2 { margin-top: 22px; }
.doc li { margin-bottom: 6px; }

.drop.loading { opacity: .55; pointer-events: none; }
.limit-note { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: #7a5560; background: #fff1f4; border-radius: 10px; padding: 8px 12px; }
