:root {
  --pink: #ff2e88;
  --orange: #ff7a00;
  --yellow: #ffd400;
  --green: #00b86b;
  --blue: #1f6bff;
  --purple: #8a2be2;
  --teal: #00a6b8;
  --red: #e8173c;
  --ink: #14141f;
  --muted: #4a4a5e;
  --card: #ffffff;
  --soft: #fff6e0;
  --radius: 22px;
  --base: 21px;
}
html.big { --base: 25px; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 500 var(--base)/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background: linear-gradient(135deg, var(--pink) 0%, var(--orange) 45%, var(--yellow) 100%) fixed;
}
a { color: var(--blue); font-weight: 700; }
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; max-width: 760px; margin: 0 auto;
}
.brand { color: #fff; text-decoration: none; font-weight: 900; font-size: 1.35em; text-shadow: 0 2px 0 rgba(0,0,0,.18); }
.wave { display: inline-block; animation: wave 2.4s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave { 0%,60%,100% { transform: rotate(0) } 10%,30% { transform: rotate(16deg) } 20% { transform: rotate(-8deg) } }
@media (prefers-reduced-motion: reduce) { .wave { animation: none; } }
.tools { display: flex; gap: 8px; }
.brand { font-size: 1.15em !important; }
.textsize { background: #fff; border: 0; border-radius: 14px; font-weight: 900; padding: 8px 14px; font-size: 18px; cursor: pointer; color: var(--pink); }
.textsize span { font-size: 1.3em; }
main { max-width: 760px; margin: 0 auto; padding: 0 16px 24px; outline: none; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 22px 20px;
  box-shadow: 0 10px 0 rgba(0,0,0,.12); margin: 10px 0 18px;
}
h1 { font-size: 1.45em; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 1.15em; margin: 18px 0 10px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: .9em; }
.step { color: #fff; font-weight: 800; margin: 6px 4px 0; text-shadow: 0 1px 0 rgba(0,0,0,.2); }

.btn {
  display: flex; align-items: center; gap: 14px; width: 100%;
  border: 0; border-radius: 18px; padding: 18px 20px; margin: 10px 0;
  font: inherit; font-weight: 800; text-align: left; color: #fff; cursor: pointer;
  background: var(--blue); box-shadow: 0 6px 0 rgba(0,0,0,.22); min-height: 68px;
  text-decoration: none;
}
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.22); }
.btn:focus-visible, input:focus-visible, textarea:focus-visible { outline: 5px solid var(--purple); outline-offset: 3px; }
.btn .ic { font-size: 1.5em; line-height: 1; }
.btn.big { font-size: 1.15em; min-height: 88px; }
.btn.center { justify-content: center; text-align: center; }
.btn.green { background: var(--green); }
.btn.red { background: var(--red); }
.btn.pink { background: var(--pink); }
.btn.purple { background: var(--purple); }
.btn.teal { background: var(--teal); }
.btn.orange { background: var(--orange); }
.btn.light { background: #f0f0f6; color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: wait; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
.back { background: none; border: 0; color: #fff; font: inherit; font-weight: 800; padding: 6px 2px; cursor: pointer; text-shadow: 0 1px 0 rgba(0,0,0,.2); }

label { display: block; font-weight: 800; margin: 14px 0 6px; }
input[type=text], input[type=tel], input[type=search], textarea {
  width: 100%; font: inherit; padding: 16px; border-radius: 14px;
  border: 3px solid #c9c9d6; background: #fff; color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
.pin { letter-spacing: .4em; text-align: center; font-size: 1.4em; font-weight: 900; }

.area { border: 3px solid #eee; border-radius: 18px; padding: 16px; margin: 10px 0; cursor: pointer; background: #fff; width: 100%; text-align: left; font: inherit; color: inherit; }
.area:hover, .area:focus-visible { border-color: var(--pink); }
.area b { display: block; font-size: 1.05em; }
.people { background: var(--soft); border-radius: 18px; padding: 16px; margin: 12px 0; }
.people div { font-weight: 800; font-size: 1.1em; }
.tag { display: inline-block; background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 2px 10px; font-size: .75em; font-weight: 800; }

.warn { background: #fff0f3; border: 3px solid var(--red); border-radius: 18px; padding: 14px 16px; margin: 14px 0; }
.warn b { color: var(--red); }
.privacy { background: #eef6ff; border: 3px solid var(--blue); border-radius: 18px; padding: 14px 16px; margin: 14px 0; }
.privacy b { color: var(--blue); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; margin: 12px 0; cursor: pointer; }
.check input { width: 34px; height: 34px; flex: none; accent-color: var(--green); }
.error { background: var(--red); color: #fff; border-radius: 14px; padding: 12px 16px; font-weight: 800; margin: 10px 0; }
.ok { background: #e6fff3; border: 3px solid var(--green); border-radius: 18px; padding: 14px 16px; }

.photos { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.photos figure { margin: 0; position: relative; }
.photos img { width: 110px; height: 110px; object-fit: cover; border-radius: 14px; display: block; }
.photos button { position: absolute; top: -8px; right: -8px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: 20px; font-weight: 900; cursor: pointer; }

.letter { white-space: pre-wrap; background: #fafafe; border: 2px dashed #c9c9d6; border-radius: 16px; padding: 16px; font-size: .95em; }
.meta { font-size: .9em; margin: 4px 0; }

.issue { display: block; border-radius: 18px; padding: 14px 16px; margin: 10px 0; background: #fff; border: 3px solid #eee; text-decoration: none; color: var(--ink); }
.issue:hover { border-color: var(--blue); }
.ticks { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.tick { border-radius: 999px; padding: 4px 12px; font-size: .8em; font-weight: 800; background: #eee; color: var(--muted); }
.tick.on { background: var(--green); color: #fff; }
.panel { border-left: 8px solid var(--green); background: #effff7; border-radius: 14px; padding: 14px 16px; margin: 14px 0; white-space: pre-wrap; }
.panel.empty { border-left-color: #bbb; background: #f4f4f8; }
.gallery img { max-width: 100%; border-radius: 14px; margin: 6px 0; }

.spinner { width: 54px; height: 54px; border: 7px solid #eee; border-top-color: var(--pink); border-radius: 50%; animation: spin 0.9s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.foot { text-align: center; color: #fff; padding: 10px 16px 30px; font-size: .8em; font-weight: 700; }
.foot a { color: #fff; }
.langbar {
  background: rgba(255,255,255,.95); border-radius: 18px; padding: 10px 12px; margin: 6px 0 4px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .85em;
  box-shadow: 0 6px 0 rgba(0,0,0,.12);
}
.langbar b { width: 100%; }
.langbar button {
  border: 0; border-radius: 12px; padding: 10px 14px; font: inherit; font-weight: 800; cursor: pointer;
  background: var(--teal); color: #fff; min-height: 46px;
}
.others { margin-top: 14px; font-size: .85em; color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 4px 2px; font: inherit; font-weight: 800; color: var(--blue); text-decoration: underline; cursor: pointer; }
.g-title { font-weight: 900; margin: 18px 0 2px; color: var(--muted); font-size: .9em; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 420px) { .row { flex-direction: column; gap: 0; } }
