:root {
  --ink: #231942;
  --paper: #fff8e1;
  --card: #ffffff;
  --sun: #ffc933;
  --tomato: #ff5d5d;
  --teal: #1fc8b3;
  --violet: #7b5cff;
  --pink: #ff8fb1;
  --sky: #3a86ff;
  --shadow: 6px 6px 0 var(--ink);
  --radius: 20px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  background-image: radial-gradient(rgba(35, 25, 66, .08) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.05; margin: 0; }
p { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 4px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

/* ─── шапка ─── */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  background: var(--sun);
  border-bottom: 4px solid var(--ink);
}
.logo {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--card); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font-weight: 900; text-decoration: none; transform: rotate(-6deg);
  transition: transform .15s;
}
.logo:hover { transform: rotate(6deg) scale(1.08); }
.top nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 6px; }
.top nav a {
  padding: 4px 12px; border-radius: 999px; text-decoration: none;
  font-weight: 800; font-size: .95rem;
}
.top nav a:hover { background: var(--ink); color: var(--sun); }

/* ─── кнопки ─── */
.btn {
  display: inline-block; cursor: pointer;
  font: inherit; font-weight: 800; text-decoration: none; text-align: center;
  padding: 12px 22px; border-radius: 14px;
  color: var(--ink); background: var(--card);
  border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-red { background: var(--tomato); color: #fff; }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-ghost:hover { box-shadow: 3px 3px 0 var(--ink); }

/* ─── hero ─── */
.hero {
  position: relative; isolation: isolate;
  display: grid; gap: 28px; align-items: center;
  padding: 48px 16px 56px;
  max-width: none;
  background:
    radial-gradient(circle at 85% 20%, var(--pink) 0 90px, transparent 91px),
    radial-gradient(circle at 8% 90%, var(--teal) 0 70px, transparent 71px),
    var(--sun);
  border-bottom: 4px solid var(--ink);
  overflow: hidden;
}
.hero-text, .hero-art { width: 100%; max-width: 560px; margin-inline: auto; }

.sticker {
  display: inline-block; margin-bottom: 18px; padding: 6px 14px;
  background: var(--card); border: 3px solid var(--ink); border-radius: 10px;
  font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em;
  box-shadow: 3px 3px 0 var(--ink); transform: rotate(-3deg);
}
h1 {
  font-size: clamp(3.4rem, 14vw, 7rem); font-weight: 900;
  text-transform: uppercase; letter-spacing: -.03em;
}
.h-vasya { display: inline-block; color: var(--card); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink); transform: rotate(-2deg); }
.h-pupkin { display: block; color: var(--tomato); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink); }
.lede { margin: 22px 0 26px; font-size: 1.15rem; font-weight: 600; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.float { position: absolute; z-index: -1; font-size: 2.4rem; opacity: .9; animation: bob 5s ease-in-out infinite; user-select: none; }
.f1 { top: 14%; left: 4%; }
.f2 { top: 8%; right: 10%; animation-delay: -1.5s; }
.f3 { bottom: 5%; left: 3%; animation-delay: -3s; }
.f4 { bottom: 18%; right: 4%; animation-delay: -2s; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(8deg); } }

.hero-art { position: relative; display: grid; justify-items: center; padding-top: 70px; }

.bubble {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: min(92%, 300px);
  padding: 10px 16px; text-align: center; font-weight: 800; font-size: .98rem; line-height: 1.3;
  background: var(--card); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink);
}
.bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -14px; width: 20px; height: 20px;
  background: var(--card); border: solid var(--ink); border-width: 0 3px 3px 0;
  transform: translateX(-50%) rotate(45deg) skew(10deg, 10deg);
}
.bubble.pop { animation: pop .3s ease-out; }
@keyframes pop { 0% { transform: translateX(-50%) scale(.85); } 60% { transform: translateX(-50%) scale(1.06); } 100% { transform: translateX(-50%) scale(1); } }

.vasya-btn {
  position: relative; padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
  width: min(300px, 70vw); -webkit-tap-highlight-color: transparent;
  animation: idle 3.6s ease-in-out infinite; transform-origin: 50% 100%;
}
.vasya-btn svg { display: block; width: 100%; height: auto; overflow: visible; }
.vasya-btn:hover { filter: drop-shadow(0 0 0 transparent) brightness(1.03); }
.vasya-btn.hit { animation: hit .32s ease-out; }
@keyframes idle { 50% { transform: rotate(1.6deg) translateY(-4px); } }
@keyframes hit {
  0% { transform: scale(1); } 30% { transform: scale(.92, 1.06) rotate(-4deg); }
  65% { transform: scale(1.06, .95) rotate(3deg); } 100% { transform: scale(1); }
}
.vasya-btn .open { display: none; }
.vasya-btn.wow .open { display: block; }
.vasya-btn.wow .smile { display: none; }
.pupil { transition: transform .06s linear; }

.plus {
  position: absolute; pointer-events: none; z-index: 5;
  font-weight: 900; color: var(--ink); text-shadow: 2px 2px 0 #fff;
  animation: rise .9s ease-out forwards;
}
@keyframes rise { to { transform: translateY(-70px); opacity: 0; } }

.score {
  display: flex; flex-direction: column; align-items: center; margin-top: 14px; padding: 8px 20px;
  background: var(--card); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink);
}
.score-num { font-weight: 800; font-size: 1.1rem; }
.score-num b { font-size: 1.5rem; }
.score-lvl { font-size: .85rem; font-weight: 700; color: var(--violet); }

/* ─── біжучий рядок ─── */
.marquee { background: var(--ink); color: var(--sun); overflow: hidden; border-bottom: 4px solid var(--ink); }
.marquee-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee-track span { padding: 10px 0; font-weight: 800; letter-spacing: .05em; white-space: nowrap; padding-right: 2rem; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ─── секції ─── */
.block { padding: 64px 16px; max-width: 1040px; margin-inline: auto; }
.block.tint { max-width: none; background: #e4f9f5; border-block: 4px solid var(--ink); }
.block.tint > * { max-width: 1008px; margin-inline: auto; }
.block h2 {
  font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em;
  display: inline-block; padding: 2px 12px; background: var(--sun); border: 3px solid var(--ink);
  border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); transform: rotate(-1.5deg);
}
.block > .sub, .block.tint > .sub { margin-top: 18px; margin-bottom: 30px; font-weight: 700; font-size: 1.1rem; }
.block.tint > h2 { display: block; width: fit-content; }
.center { text-align: center; margin-top: 26px; }

/* ─── анкета ─── */
.paper {
  max-width: 760px; margin-inline: auto; padding: 24px 20px 26px;
  background: #fffef7; border: 3px solid var(--ink); border-radius: 8px; box-shadow: var(--shadow);
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(58, 134, 255, .15) 31px 32px);
  transform: rotate(.4deg);
}
.paper-head { display: grid; gap: 2px; margin-bottom: 18px; position: relative; padding-right: 110px; }
.paper-head small { opacity: .7; }
.stamp {
  position: absolute; top: -6px; right: 0; padding: 4px 10px;
  color: var(--tomato); border: 4px solid var(--tomato); border-radius: 8px;
  font-weight: 900; letter-spacing: .1em; transform: rotate(10deg); opacity: .85;
}
.fields { display: grid; gap: 14px 18px; }
.fields label { display: grid; gap: 3px; font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.fields input {
  width: 100%; font: inherit; font-size: 1.05rem; font-weight: 600; text-transform: none; letter-spacing: 0;
  color: var(--ink); background: #fff; padding: 8px 12px; border: 3px dashed var(--ink); border-radius: 10px;
}
.fields input::placeholder { color: rgba(35, 25, 66, .4); font-style: italic; }
.fields input.typing { border-style: solid; background: #fff9d6; }
.paper-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.signature {
  margin-left: auto; padding-inline: 8px; font-family: "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive;
  font-size: 1.7rem; color: var(--sky); transform: rotate(-5deg); opacity: 0; transition: opacity .4s;
}
.signature.on { opacity: 1; }

/* ─── картки ─── */
.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  padding: 22px 20px; background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .15s;
}
.card:nth-child(odd) { transform: rotate(-.8deg); }
.card:nth-child(even) { transform: rotate(.8deg); }
.card:hover { transform: rotate(0) translateY(-6px); }
.ico {
  display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 12px;
  font-size: 1.9rem; border: 3px solid var(--ink); border-radius: 16px; background: var(--sun);
}
.c2 .ico { background: var(--teal); } .c3 .ico { background: var(--pink); }
.c4 .ico { background: var(--sky); } .c5 .ico { background: var(--violet); } .c6 .ico { background: var(--tomato); }
.card h3 { margin-bottom: 8px; font-size: 1.35rem; }
.card p { font-weight: 600; }

.stats { display: grid; gap: 20px; margin-top: 44px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.stat { padding: 18px; background: var(--sun); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat b { display: block; font-size: clamp(2.2rem, 8vw, 3.2rem); line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; font-weight: 700; }

/* ─── таймлайн ─── */
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; max-width: 760px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 6px; background: var(--ink); border-radius: 3px; }
.timeline li { position: relative; margin-bottom: 26px; padding: 14px 18px; background: var(--card); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); }
.timeline li::before {
  content: ""; position: absolute; left: -31px; top: 20px; width: 22px; height: 22px;
  background: var(--tomato); border: 4px solid var(--ink); border-radius: 50%;
}
.timeline li.now { background: var(--sun); }
.timeline li.now::before { background: var(--teal); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.35); } }
.timeline time { display: inline-block; margin-bottom: 4px; padding: 0 10px; font-weight: 900; color: #fff; background: var(--violet); border-radius: 8px; }
.timeline p { font-weight: 600; }

/* ─── цитати ─── */
.quote {
  position: relative; max-width: 760px; margin: 0 auto; padding: 38px 28px 26px;
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
}
.quote::before {
  content: "“"; position: absolute; top: -26px; left: 18px; font-size: 6rem; line-height: 1; font-weight: 900;
  color: var(--tomato); text-shadow: 3px 3px 0 var(--ink);
}
.quote blockquote { margin: 0; font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 800; line-height: 1.25; min-height: 2.5em; }
.quote figcaption { margin-top: 14px; font-weight: 700; opacity: .75; }
.quote.swap blockquote { animation: swap .35s ease-out; }
@keyframes swap { from { opacity: 0; transform: translateY(12px) rotate(-1deg); } }

/* ─── анекдоти ─── */
.block.tint.warm { background: #fff0c2; }
.block.tint + .block.tint { border-top: 0; }

.jokes-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: 34px; }
.laugh-meter { display: grid; gap: 2px; font-weight: 800; }
.laugh-meter b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.laugh-meter small { font-size: .9rem; font-weight: 700; color: var(--violet); }

.jokes { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.joke {
  display: flex; flex-direction: column; padding: 22px 20px 20px;
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .15s;
}
.joke:nth-child(odd) { transform: rotate(-.6deg); }
.joke:nth-child(even) { transform: rotate(.6deg); }
.joke:hover { transform: rotate(0) translateY(-5px); }

.joke-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.joke-head h3 { font-size: 1.35rem; }
.rank {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  font-size: 1.3rem; font-weight: 900; background: var(--sun);
  border: 3px solid var(--ink); border-radius: 50%; box-shadow: 3px 3px 0 var(--ink);
}
.joke:nth-child(1) .rank { background: #ffd700; }
.joke:nth-child(2) .rank { background: #d9dee7; }
.joke:nth-child(3) .rank { background: #e8a46b; }

.setup p { font-weight: 600; }
.setup p + p { margin-top: 6px; }

.joke details { flex: 1 1 auto; margin-top: 16px; }
.joke summary {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none;
  padding: 6px 16px; font-weight: 800; list-style: none;
  background: var(--sun); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.joke summary::-webkit-details-marker { display: none; }
.joke summary::before { content: "👀"; }
.joke summary::after { content: "▾"; transition: transform .2s; }
.joke summary:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.joke details[open] summary::before { content: "🙈"; }
.joke details[open] summary::after { transform: rotate(180deg); }
.punch {
  margin-top: 14px; padding: 12px 14px; font-weight: 800;
  background: #ffe3ec; border: 3px dashed var(--ink); border-radius: 12px;
  animation: swap .35s ease-out;
}

.laugh { align-self: flex-start; margin-top: 16px; padding: 8px 16px; box-shadow: none; }
.laugh:hover { box-shadow: 3px 3px 0 var(--ink); }
.laugh[aria-pressed="true"] { background: var(--teal); box-shadow: 3px 3px 0 var(--ink); }

/* ─── вася-метр ─── */
.meter { max-width: 640px; margin-inline: auto; padding: 22px 20px; background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.meter label { display: block; margin-bottom: 8px; font-weight: 800; }
.meter-row { display: flex; flex-wrap: wrap; gap: 12px; }
.meter-row input {
  flex: 1 1 200px; min-width: 0; font: inherit; font-weight: 700; color: var(--ink);
  padding: 10px 14px; border: 3px solid var(--ink); border-radius: 14px; background: #fffef7;
}
.gauge { height: 34px; margin-top: 20px; background: #fff; border: 3px solid var(--ink); border-radius: 999px; overflow: hidden; }
.gauge-fill {
  width: 0; height: 100%; border-radius: 999px 0 0 999px;
  background: repeating-linear-gradient(-45deg, var(--tomato) 0 14px, #ff8f8f 14px 28px);
  border-right: 3px solid var(--ink); transition: width 1s cubic-bezier(.2, 1.2, .4, 1);
}
@media (prefers-reduced-motion: reduce) { .gauge-fill { transition: none; } }
.verdict { margin-top: 16px; font-weight: 800; font-size: 1.15rem; min-height: 3.2em; }
.fine { max-width: 640px; margin: 14px auto 0; font-size: .85rem; opacity: .7; }

/* ─── лічильник і гостьова книга ─── */
[hidden] { display: none !important; }
.block.tint.violet { background: #ece6ff; }

.counter {
  display: grid; justify-items: center; gap: 14px; padding: 24px 16px 22px; text-align: center;
  color: var(--paper); background: var(--ink); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--violet);
}
.counter-title { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .9rem; color: var(--sun); }
.odo { display: flex; gap: 6px; }
.odo .d {
  position: relative; display: grid; place-items: center;
  width: clamp(34px, 11vw, 56px); height: clamp(50px, 15vw, 78px);
  font: 900 clamp(1.9rem, 7vw, 3.1rem)/1 ui-monospace, "SF Mono", "DejaVu Sans Mono", Menlo, monospace;
  font-variant-numeric: tabular-nums; color: var(--ink);
  background: linear-gradient(#fffef7 0 50%, #f0e6c4 50% 100%);
  border: 3px solid var(--sun); border-radius: 10px;
}
.odo .d::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(35, 25, 66, .28); }
.counter-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 0; padding: 0; list-style: none; }
.counter-meta li { padding: 4px 14px; font-weight: 700; background: rgba(255, 255, 255, .12); border-radius: 999px; }
.counter-meta b { color: var(--sun); font-variant-numeric: tabular-nums; }
.counter-note { font-weight: 700; color: var(--pink); }

.gb { display: grid; gap: 30px; margin-top: 34px; }
.gb-form {
  display: grid; gap: 8px; padding: 22px 20px;
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
}
.gb-form h3 { margin-bottom: 4px; font-size: 1.5rem; }
.gb-form label, .moods legend { font-weight: 800; }
.gb-form input[type="text"], .gb-form textarea {
  width: 100%; font: inherit; font-weight: 700; color: var(--ink);
  padding: 10px 14px; border: 3px solid var(--ink); border-radius: 14px; background: #fffef7;
}
.gb-form textarea { resize: vertical; min-height: 7em; line-height: 1.4; }
.gb-count { margin-top: -4px; text-align: right; font-size: .85rem; font-weight: 700; opacity: .65; }
.moods { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; padding: 0; border: 0; min-width: 0; }
.moods legend { padding: 0; margin-bottom: 6px; }
.mood { position: relative; }
.mood input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mood span {
  display: grid; place-items: center; width: 46px; height: 46px; font-size: 1.5rem; cursor: pointer;
  background: #fff; border: 3px solid var(--ink); border-radius: 14px; transition: transform .12s, background .12s, box-shadow .12s;
}
.mood input:checked + span { background: var(--sun); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.mood input:focus-visible + span { outline: 4px solid var(--violet); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gb-form .btn { justify-self: start; margin-top: 4px; }
.gb-form .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 var(--ink); }
.gb-status { min-height: 1.5em; font-weight: 800; }
.gb-status.ok { color: #0b7a6a; }
.gb-status.err { color: #c0182b; }
.gb-form .fine { margin: 0; max-width: none; }

.gb-total { margin-bottom: 18px; font-weight: 800; font-size: 1.1rem; }
.gb-total b { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.gb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.note {
  padding: 14px 18px 14px; background: var(--c, #fff3a8);
  border: 3px solid var(--ink); border-radius: 6px 18px 18px 18px; box-shadow: 4px 4px 0 var(--ink);
}
.note:nth-child(odd) { transform: rotate(-.5deg); }
.note:nth-child(even) { transform: rotate(.5deg); }
.note.n0 { --c: #fff3a8; } .note.n1 { --c: #ffd9e6; } .note.n2 { --c: #d6f6f1; }
.note.n3 { --c: #dfe7ff; } .note.n4 { --c: #ffe3c2; }
.note.fresh { animation: pop2 .5s ease-out; }
@keyframes pop2 { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
.note-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.mood-ico { font-size: 1.5rem; line-height: 1; }
.who { font-size: 1.1rem; font-weight: 900; overflow-wrap: anywhere; }
.note time { margin-left: auto; font-size: .85rem; font-weight: 700; opacity: .75; }
.msg { margin-top: 6px; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.gb-empty { padding: 18px; font-weight: 700; text-align: center; background: var(--card); border: 3px dashed var(--ink); border-radius: var(--radius); }
.gb-wall .center { margin-top: 22px; }

/* ─── підвал ─── */
.foot { padding: 34px 16px 44px; text-align: center; color: var(--paper); background: var(--ink); border-top: 4px solid var(--ink); }
.foot p { font-weight: 700; }
.foot-sub { margin-top: 8px; font-weight: 500 !important; opacity: .8; font-size: .95rem; }
.hint { display: inline-block; margin-top: 4px; opacity: .55; font-size: .8rem; }

/* ─── конфеті ─── */
.confetti { position: fixed; top: -40px; z-index: 100; pointer-events: none; font-size: 1.8rem; }

/* ─── широкі екрани ─── */
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.15fr 1fr; padding: 72px max(24px, calc((100vw - 1040px) / 2)) 84px; }
  .hero-text, .hero-art { margin-inline: 0; max-width: none; }
  .fields { grid-template-columns: 1fr 1fr; }
  .fields label:nth-child(3) { grid-column: 1 / -1; }
  .gb { grid-template-columns: minmax(300px, 380px) 1fr; align-items: start; gap: 36px; }
}
@media (max-width: 520px) {
  .f1 { display: none; }
  .top nav { gap: 2px; }
  .top nav a { padding: 3px 7px; font-size: .8rem; }
  .paper-head { padding-right: 0; padding-top: 34px; }
  .stamp { top: -10px; }
  .signature { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
