/* =========================================================
   Фітнес-адвэнт #formananova
   Стыль — як у пастара для сацсетак: фуксія + крэмавы +
   вугальна-цёмны, тоўсты курсіў, акенцы-дзверы ў форме аркі.
   ========================================================= */

:root {
  --bg: #FBF5EC;
  --bg-alt: #F5EBDD;
  --surface: #FFFDF9;
  --surface-2: #F7F0E6;
  --ink: #1E1A1B;
  --muted: #675E60;
  --line: #E8DDD0;

  --pink: #FD1A74;          /* ружовы з пастара: вялікі тэкст, лініі, акцэнты */
  --pink-ui: #DE1066;       /* заліўкі з дробным белым тэкстам (кантраст ≥ 4.5) */
  --pink-strong: #C20D59;   /* hover */
  --pink-soft: #FDE3EE;
  --accent: #C40C5B;        /* ружовы дробны тэкст на светлым фоне */
  --sand: #F3E8DA;

  --cream: #FDEFD2;         /* крэмавы з пастара */
  --cream-muted: #D9CDBE;
  --charcoal: #1C1819;
  --charcoal-2: #2A2425;
  --charcoal-deep: #120F10;
  --coral: #FF7A59;         /* цёплае святло заходу, як на фота */

  --on-dark: var(--cream);
  --on-dark-muted: var(--cream-muted);
  --link: #C40C5B;

  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 10px;
  --arch: 999px 999px 10px 10px;   /* форма «дзвярэй» адвэнта */
  --shadow: 0 1px 2px rgba(30, 26, 27, .06), 0 10px 30px -12px rgba(30, 26, 27, .2);
  --shadow-lg: 0 24px 60px -20px rgba(12, 8, 10, .55);

  --font-display: 'Montserrat', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --topbar-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141112;
    --bg-alt: #1A1617;
    --surface: #221D1E;
    --surface-2: #2A2425;
    --ink: #F7EDDF;
    --muted: #B6ABA6;
    --line: #3A3234;
    --pink-strong: #F0247A;
    --pink-soft: #3A1627;
    --accent: #FF5CA3;
    --sand: #2A2321;
    --link: #FF7AB6;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:has(dialog[open]) { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
/* Польская і англійская версіі: старонка схаваная, пакуль app.js не падставіць пераклад */
html.i18n-pending body { visibility: hidden; }

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
  border-radius: 6px;
}
[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--pink-ui); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: max(16px, min(4vw, 32px));
  padding-inline: clamp(16px, 4vw, 32px);
}

.small { font-size: .875rem; }
.muted { color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Кнопкі ---------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border: 0; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1rem; line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn-primary { --btn-bg: var(--pink-ui); --btn-fg: #fff; }
.btn-primary:hover { --btn-bg: var(--pink-strong); }
/* .btn-gold — галоўная кнопка на цёмным фоне (назва засталася з першай версіі) */
.btn-gold { --btn-bg: var(--pink-ui); --btn-fg: #fff; box-shadow: 0 10px 24px -10px rgba(253, 26, 116, .7); }
.btn-gold:hover { --btn-bg: var(--pink-strong); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--cream); box-shadow: inset 0 0 0 2px rgba(253, 239, 210, .45); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--cream); }
.btn-quiet { --btn-bg: var(--surface-2); --btn-fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-danger { --btn-bg: transparent; --btn-fg: var(--accent); box-shadow: inset 0 0 0 1px currentColor; }
.btn-danger.is-armed { --btn-bg: var(--pink-ui); --btn-fg: #fff; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Верхняя панэль ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(24, 20, 21, .9);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  color: var(--cream);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.topbar-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: var(--topbar-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  color: var(--cream); text-decoration: none; white-space: nowrap;
  font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.05rem;
}
.brand-mark {
  display: grid; place-items: center; padding-top: 5px;
  width: 30px; height: 36px; border-radius: var(--arch);
  background: var(--pink); color: var(--cream);
  font-size: .78rem; font-weight: 900;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--cream); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover { background: rgba(255, 255, 255, .08); }
.nav a.nav-cta {
  background: var(--pink-ui); color: #fff; margin-left: 6px; padding-inline: 18px;
  font-family: var(--font-display); font-style: italic; font-weight: 800;
}
.nav a.nav-cta:hover { background: var(--pink-strong); }

/* Пераключальнік мовы: на шырокім экране стаіць пасля меню, на вузкім — перад кнопкай меню */
.lang {
  order: 2; flex: none;
  display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}
.lang a {
  display: grid; place-items: center; min-width: 34px; min-height: 30px; padding: 0 8px; border-radius: 999px;
  color: var(--cream-muted); text-decoration: none;
  font-size: .76rem; font-weight: 800; letter-spacing: .05em; line-height: 1;
}
.lang a:hover { color: var(--cream); background: rgba(255, 255, 255, .08); }
.lang a[aria-current="true"] { background: var(--cream); color: var(--charcoal); }

.menu-btn {
  display: none;
  width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .08); cursor: pointer;
  place-items: center;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--cream);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-btn { display: grid; flex: none; }
  .topbar-inner { gap: 10px; }
  .lang { order: 0; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 8px clamp(16px, 4vw, 32px) 16px;
    background: var(--charcoal);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 400px) {
  .brand { gap: 8px; font-size: .95rem; }
  .lang a { min-width: 30px; padding: 0 6px; }
}
@media (max-width: 350px) {
  .brand-name { display: none; }
}

/* ---------- Герой (як пастар) ----------
   Каб паставіць фота, як на пастары: пакладзіце яго ў img/hero.jpg
   і раскаментуйце радок --hero-photo ніжэй. Цёмная засцілка злева
   застанецца, каб тэкст чытаўся. */
.hero {
  /* --hero-photo: url('../img/hero.jpg'); */
  position: relative; overflow: hidden;
  background-color: var(--charcoal);
  background-image:
    linear-gradient(90deg, rgba(18, 15, 16, .9) 0%, rgba(18, 15, 16, .6) 50%, rgba(18, 15, 16, .15) 100%),
    radial-gradient(ellipse at 92% 108%, rgba(255, 122, 89, .32), transparent 55%),
    radial-gradient(ellipse at 70% 0%, rgba(253, 26, 116, .14), transparent 50%),
    var(--hero-photo, none);
  background-size: cover;
  background-position: center;
  color: var(--cream);
  padding-block: clamp(36px, 7vw, 84px) clamp(28px, 5vw, 56px);
}
.hero-grid {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 4vw, 56px); align-items: center;
}
.hero-tag {
  display: inline-block; margin: 0 0 clamp(14px, 2vw, 22px); padding-bottom: 8px;
  border-bottom: 4px solid var(--pink);
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem); line-height: 1.1; color: var(--cream);
}
.hero-title {
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: .92; letter-spacing: -.02em; text-transform: uppercase;
  color: var(--cream);
}
.hero-title span { display: block; }
.hero-title-accent { color: var(--pink); }
.hero-sub {
  margin: clamp(12px, 2vw, 20px) 0 clamp(16px, 2.4vw, 24px);
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: clamp(1.35rem, 3.4vw, 2.2rem); color: var(--cream);
}
.date-pill {
  display: inline-flex; align-items: center; gap: clamp(10px, 1.6vw, 16px);
  margin: 0 0 clamp(22px, 3vw, 32px); padding: 10px clamp(20px, 3vw, 30px) 10px clamp(14px, 2vw, 20px);
  border-radius: 999px; background: var(--pink); color: var(--cream);
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: clamp(1.2rem, 2.8vw, 1.75rem); line-height: 1;
  box-shadow: 0 14px 30px -14px rgba(253, 26, 116, .8);
}
.date-pill svg { width: 1.3em; height: 1.3em; flex: none; }
.date-pill-sep { width: 2px; align-self: stretch; margin-block: 2px; background: rgba(253, 239, 210, .7); border-radius: 2px; }

.hero-points { list-style: none; margin: 0 0 clamp(20px, 3vw, 28px); padding: 0; display: grid; gap: 14px; }
.hero-points li { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 14px; }
.hero-points svg { width: 44px; height: 44px; color: var(--cream); }
.hero-points span {
  padding-left: 14px; border-left: 3px solid var(--pink);
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: clamp(1rem, 1.8vw, 1.15rem); line-height: 1.25; color: var(--cream);
  max-width: 16em;
}

.hero-status {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  margin: 0 0 22px; padding: 12px 18px;
  border-radius: 14px; background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.hero-status:empty { display: none; }
.hero-status strong { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.05rem; color: #fff; }
.hero-status span { color: var(--cream-muted); font-size: .95rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { color: var(--cream); }
.doors { display: block; width: 100%; max-width: 400px; margin-inline: auto; height: auto; }
.doors-bow { stroke: var(--pink); stroke-width: 6; }

.hero-tagline {
  margin: clamp(32px, 5vw, 52px) 0 0; padding-top: clamp(18px, 2.4vw, 24px);
  border-top: 1px solid rgba(253, 239, 210, .14);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.4rem); color: var(--cream);
}
/* кропка пераносіцца разам са словам, каб не заставацца ў канцы радка */
.hero-tagline > span { display: inline-flex; align-items: center; gap: 16px; white-space: nowrap; }
.tag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); flex: none; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2.3rem, 13.5vw, 5rem); }
  .hero-art { order: -1; position: absolute; top: 18px; right: 12px; width: clamp(96px, 26vw, 170px); opacity: .9; }
  .hero-copy { position: relative; }
}

/* ---------- Секцыі ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head-row {
  max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px;
}
.eyebrow {
  display: inline-block; margin: 0 0 14px; padding-bottom: 6px;
  border-bottom: 3px solid var(--pink);
  font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1rem; line-height: 1.2;
  color: var(--accent);
}
.section h2 {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: -.01em;
}
.section-lead { margin-top: 16px; font-size: clamp(1rem, 1.7vw, 1.125rem); color: var(--muted); }
.section-lead + .section-lead { margin-top: 10px; }
.h3 {
  font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  margin: 0 0 16px;
}

/* Факты */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.6vw, 18px);
  margin-bottom: clamp(36px, 5vw, 56px);
}
.fact {
  background: var(--surface); border-radius: var(--radius); padding: clamp(16px, 2.2vw, 24px);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 6px;
}
.fact-num {
  font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  line-height: 1; color: var(--pink); letter-spacing: -.02em;
}
.fact-text { color: var(--muted); font-size: .95rem; line-height: 1.4; }
.fact-text strong { display: block; color: var(--ink); font-size: 1rem; }
.fact-accent { background: var(--charcoal); }
.fact-accent .fact-num { color: var(--pink); }
.fact-accent .fact-text { color: var(--cream-muted); }
.fact-accent .fact-text strong { color: var(--cream); }

@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); } }

.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.activity-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.activity-list li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600;
}
.activity-list .emoji {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--pink-soft); font-size: 1.05rem;
}

.callout {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--charcoal); color: var(--cream-muted);
  border-radius: var(--radius); padding: clamp(18px, 2.4vw, 26px);
  border-left: 4px solid var(--pink);
}
.callout strong { color: var(--cream); }
.callout-icon { font-size: 1.8rem; line-height: 1; }

/* Крокі */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 20px);
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  background: var(--surface); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 24px);
  box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 40px; height: 48px; padding-top: 6px; border-radius: var(--arch); margin-bottom: 14px;
  background: var(--pink-ui); color: #fff;
  font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 1.15rem;
}
.steps h3 { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.tag-inline { font-weight: 800; color: var(--accent); white-space: nowrap; }
@media (prefers-color-scheme: dark) { .tag-inline { color: var(--link); } }

/* Палі формы */
.field { margin-bottom: 18px; }
.field > label, .field > .label, .field legend {
  display: block; margin-bottom: 8px; font-weight: 700; font-size: .95rem; padding: 0;
}
fieldset.field { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.opt { color: var(--muted); font-weight: 500; }
.field input[type="number"],
.field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--bg);
  font-size: 1rem; /* 16px — каб iOS не павялічваў старонку */
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 72px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pink) 22%, transparent);
}
.hint { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.hint.is-warn { color: var(--accent); font-weight: 600; }
.field-error { margin: 6px 0 0; color: var(--accent); font-size: .875rem; font-weight: 600; }

/* ---------- Каляндар: кожны дзень — дзверцы адвэнта ---------- */
.cal-today { margin: 0; color: var(--muted); font-weight: 600; }
.banner {
  margin-bottom: 20px; padding: 14px 18px; border-radius: 14px;
  background: var(--pink-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pink) 30%, transparent);
  font-weight: 600;
}
.banner a { font-weight: 800; }

.cal-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: clamp(16px, 3vw, 28px); align-items: start; }
@media (max-width: 920px) { .cal-layout { grid-template-columns: 1fr; } }

.cal-card, .progress-card {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: clamp(12px, 2.6vw, 28px);
}
.cal-weekdays, .cal-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(4px, 1.1vw, 10px);
}
.cal-weekdays { margin-bottom: 8px; }
.cal-weekdays span {
  text-align: center; font-size: clamp(.68rem, 1.8vw, .8rem); font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.cal-weekdays span:nth-child(n+6) { color: var(--accent); }

.day {
  position: relative; overflow: hidden;
  aspect-ratio: 1 / 1.14;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: clamp(7px, 1.6vw, 14px) clamp(3px, .8vw, 8px) clamp(4px, 1vw, 9px);
  border: 0;
  border-radius: 50% 50% clamp(6px, 1.2vw, 12px) clamp(6px, 1.2vw, 12px) / 40% 40% clamp(6px, 1.2vw, 12px) clamp(6px, 1.2vw, 12px);
  background: var(--surface-2); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer; text-align: center;
  background-size: cover; background-position: center;
  transition: transform .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.day:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line), 0 8px 18px -10px rgba(0, 0, 0, .35); }
.day-num {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(.82rem, 2.4vw, 1.2rem); line-height: 1;
}
.day-bottom {
  position: relative; z-index: 1; width: 100%;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2px;
}
.day-icons { font-size: clamp(.72rem, 2.3vw, 1.1rem); line-height: 1; letter-spacing: -.1em; }
.day-min { font-size: clamp(.6rem, 1.5vw, .78rem); font-weight: 800; line-height: 1; opacity: .9; }
/* Маркер задання — «ручка» дзвярэй */
.day-gift {
  position: absolute; z-index: 1; top: 50%; right: clamp(3px, .9vw, 9px); transform: translateY(-50%);
  width: clamp(13px, 2.4vw, 20px); height: clamp(13px, 2.4vw, 20px);
  display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); color: var(--bg);
}
.day-gift svg { width: 62%; height: 62%; }
.day.task-done .day-gift { background: var(--pink-ui); color: #fff; }
.day.is-active.task-done .day-gift { background: #fff; color: var(--pink-ui); }

.day.is-future { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); opacity: .8; }
.day.is-future .day-gift { background: color-mix(in srgb, var(--ink) 35%, transparent); }
.day.is-partial { background: var(--pink-soft); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--pink) 45%, transparent); }
.day.is-active { background-color: var(--pink-ui); color: #fff; box-shadow: none; }
.day.has-photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 15, 17, .55) 0%, rgba(20, 15, 17, .1) 45%, rgba(20, 15, 17, .7) 100%);
}
.day.has-photo { color: #fff; }
.day.is-active.has-photo { box-shadow: inset 0 0 0 3px var(--pink); }
.day.is-today, .day.is-today.is-active { box-shadow: 0 0 0 3px var(--ink); }
.day-blank { aspect-ratio: 1 / 1.14; }

@media (max-width: 520px) {
  .day-min { display: none; }
  .day-bottom { justify-content: center; }
}

.legend {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .85rem; color: var(--muted);
}
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 13px; height: 16px; border-radius: 7px 7px 3px 3px; display: inline-block; }
.lg-active { background: var(--pink-ui); }
.lg-partial { background: var(--pink-soft); box-shadow: inset 0 0 0 1.5px var(--pink); }
.lg-task { width: 12px; height: 12px; background: var(--ink); border-radius: 50%; }
.lg-today { box-shadow: inset 0 0 0 3px var(--ink); }

/* Статыстыка */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat {
  background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat-num { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(1.6rem, 4vw, 2rem); line-height: 1; color: var(--accent); }
.stat-label { font-size: .85rem; color: var(--muted); line-height: 1.3; }
@media (prefers-color-scheme: dark) { .stat-num { color: var(--link); } }

.draw-progress { margin-top: 22px; }
.draw-head { display: flex; justify-content: space-between; font-weight: 700; font-size: .95rem; margin-bottom: 10px; }
.bar {
  position: relative; height: 14px; border-radius: 999px; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 26px;
}
.bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--coral));
  transition: width .5s ease;
}
.bar-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.bar-mark span {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px;
  font-size: .72rem; font-weight: 800; color: var(--ink);
}
.draw-text { font-size: .95rem; color: var(--muted); }
.draw-text strong { color: var(--ink); }

/* Які від актыўнасці пераважае: радкі па змяншэнні, адна лінія — адзін від.
   Усе лініі аднаго колеру: даўжыня паказвае колькасць дзён, першы радок — лідар. */
.mix { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.mix-head { font: 700 .95rem/1.3 var(--font-body); margin: 0 0 12px; }
.mix-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mix-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 12px; }
.mix-name { display: flex; align-items: baseline; gap: 8px; font-size: .9rem; font-weight: 600; line-height: 1.3; }
.mix-row:first-child .mix-name { font-weight: 800; }
.mix-val { font-size: .85rem; font-weight: 700; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mix-row:first-child .mix-val { color: var(--ink); }
.mix-bar { grid-column: 1 / -1; height: 6px; }
.mix-bar span { display: block; height: 100%; min-width: 6px; border-radius: 0 4px 4px 0; background: var(--pink-ui); }
.mix-empty { margin: 0; font-size: .9rem; color: var(--muted); }
@media (prefers-color-scheme: dark) { .mix-bar span { background: var(--pink); } }

.tools { margin-top: 22px; display: grid; gap: 12px; }
.backup { border-top: 1px solid var(--line); padding-top: 12px; }
.backup summary { cursor: pointer; font-weight: 700; font-size: .95rem; color: var(--muted); padding: 6px 0; }
.backup p { margin: 8px 0 12px; }

/* ---------- Заданні ---------- */
.tasks-meta { font-weight: 700; margin-bottom: 18px; }
.task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(12px, 2vw, 18px); }
.task {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); text-align: left; border: 0; width: 100%;
  cursor: pointer; transition: transform .15s ease;
}
.task:hover { transform: translateY(-2px); }
.task-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.task-no {
  font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: .85rem;
  color: var(--accent); background: var(--pink-soft); padding: 4px 10px; border-radius: 999px;
}
.task-date { font-size: .85rem; font-weight: 700; color: var(--muted); }
.task-title { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.task-excerpt {
  color: var(--muted); font-size: .92rem; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.task-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--accent); }
@media (prefers-color-scheme: dark) { .task-foot { color: var(--link); } }
.task.is-done { box-shadow: var(--shadow), inset 0 0 0 2px var(--pink); }
.task.is-done .task-foot { color: inherit; }
.check-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--pink-ui); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: .8rem;
}
.check-pill svg { width: 14px; height: 14px; }

.task.is-locked {
  cursor: default; background: transparent;
  box-shadow: inset 0 0 0 2px var(--line);
  background-image: repeating-linear-gradient(-45deg, transparent 0 14px, color-mix(in srgb, var(--line) 45%, transparent) 14px 15px);
}
.task.is-locked:hover { transform: none; }
.task.is-locked .task-no { background: var(--surface-2); color: var(--muted); }
.lock-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; }
.lock-line svg { width: 22px; height: 22px; flex: none; }
.task.is-next { box-shadow: inset 0 0 0 2px var(--pink); }

/* ---------- Падарункі ---------- */
.prize-grid {
  list-style: none; margin: 0 0 clamp(40px, 6vw, 64px); padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.8vw, 18px);
}
@media (max-width: 760px) { .prize-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prize {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--shadow); font-weight: 600; line-height: 1.4;
}
.prize-icon {
  flex: none; display: grid; place-items: center; min-width: 48px; height: 56px; padding: 6px 6px 0; border-radius: var(--arch); letter-spacing: -.12em;
  background: var(--pink-soft); font-size: 1.5rem; white-space: nowrap;
}

/* Падарунак з фота — шырокая цёмная картка, фота ў форме аркі-акна */
.prize-feature {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(220px, 340px) 1fr; align-items: center;
  gap: clamp(18px, 4vw, 48px);
  padding: clamp(12px, 2vw, 18px) clamp(12px, 3vw, 40px) clamp(12px, 2vw, 18px) clamp(12px, 2vw, 18px);
  background:
    radial-gradient(ellipse at 100% 100%, rgba(255, 122, 89, .2), transparent 55%),
    var(--charcoal);
  color: var(--cream);
}
.prize-img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: var(--arch); background: var(--charcoal-2);
}
.prize-feature-body { display: flex; align-items: center; gap: 18px; }
.prize-feature .prize-icon { background: rgba(253, 26, 116, .18); }
.prize-feature .prize-text {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: clamp(1.25rem, 2.8vw, 2rem); line-height: 1.2; color: var(--cream);
}
@media (max-width: 640px) {
  .prize-feature { grid-template-columns: 1fr; padding: 12px 12px 20px; }
  .prize-img { aspect-ratio: 1 / 1; }
  .prize-feature-body { padding-inline: 6px; }
}

/* Астатнія падарункі — карткі з фота ў форме дзверцаў адвэнта */
.prize-card {
  flex-direction: column; align-items: stretch; gap: 12px;
  padding: clamp(8px, 1.2vw, 12px) clamp(8px, 1.2vw, 12px) clamp(14px, 2vw, 18px);
}
.prize-media {
  position: relative; display: grid;
  grid-template-rows: minmax(0, 1fr); /* выява займае вышыню аркі, а не сваю натуральную */
  aspect-ratio: 1 / 1.05; border-radius: var(--arch); overflow: hidden;
  background: var(--surface-2);
}
.prize-media img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; display: block; }
/* два фота — двое дзверцаў з ружовай шчылінай */
.prize-media.is-split { grid-template-columns: 1fr 1fr; gap: 3px; background: var(--pink); }
/* лагатып — цалкам, без абрэзкі, на фоне свайго колеру; іконка не патрэбна */
.prize-media.is-contain { background: var(--media-bg, var(--surface-2)); box-shadow: inset 0 0 0 1px var(--line); }
.prize-media.is-contain img { object-fit: contain; padding: 12% 12% 6%; }
.prize-media.is-contain .prize-icon { display: none; }
.prize-card .prize-icon {
  position: absolute; right: 10px; bottom: 10px;
  min-width: 42px; height: 48px; font-size: 1.25rem;
  background: var(--surface); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .45);
}
.prize-card .prize-text { padding-inline: clamp(2px, .6vw, 6px); font-size: clamp(.9rem, 1.6vw, 1.02rem); line-height: 1.35; overflow-wrap: anywhere; }
.prize-text strong { font-weight: 800; }
/* «Паштоўка»-сертыфікат паверх фота */
.prize-voucher {
  position: absolute; z-index: 2; left: 7%; bottom: 6%; width: 36%;
  transform: rotate(-7deg); transform-origin: 0 100%;
  border-radius: 4px; box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .55);
  transition: transform .2s ease;
}
.prize-voucher:hover, .prize-voucher:focus-visible { transform: rotate(-2deg) scale(1.08); }
.prize-media .prize-voucher img { width: 100%; height: auto; aspect-ratio: 720 / 999; object-fit: cover; border-radius: 4px; }
.prize-note { display: block; margin-top: 6px; font-size: .85em; font-weight: 500; color: var(--muted); }
/* асобныя праекты — асобныя «пілюлі» */
.prize-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.prize-chips a {
  display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px;
  background: var(--pink-soft); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pink) 30%, transparent);
  font-weight: 700; font-size: .85em; line-height: 1.2; text-decoration: none; overflow-wrap: normal;
}
.prize-chips a:hover { background: var(--pink-ui); color: #fff; }
@media (max-width: 520px) {
  .prize-card .prize-icon { right: 6px; bottom: 6px; min-width: 34px; height: 40px; font-size: 1rem; }
}

.timeline {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 20px);
}
.timeline li {
  position: relative; background: var(--surface-2); border-radius: var(--radius); padding: 20px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.tl-date {
  display: inline-block; margin-bottom: 10px;
  font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1rem;
  color: #fff; background: var(--pink-ui); padding: 6px 14px; border-radius: 999px;
}
.timeline li:last-child .tl-date { background: var(--ink); color: var(--bg); }
.timeline p { color: var(--muted); }
.timeline strong { color: var(--ink); }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; } }

/* ---------- Дзяліся ---------- */
.section-dark {
  background:
    radial-gradient(ellipse at 100% 100%, rgba(255, 122, 89, .22), transparent 50%),
    radial-gradient(ellipse at 0% 0%, rgba(253, 26, 116, .16), transparent 45%),
    var(--charcoal);
  color: var(--cream);
}
.section-dark .eyebrow { color: var(--cream); }
.section-dark p { color: var(--cream-muted); }
.share { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.share h2 { color: var(--cream); margin-bottom: 14px; }
@media (max-width: 820px) { .share { grid-template-columns: 1fr; } }
.share-box {
  background: rgba(255, 255, 255, .05); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 28px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  display: grid; gap: 14px;
}
.hashtag-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  width: 100%; padding: 16px 20px; border-radius: 16px; border: 2px dashed rgba(253, 239, 210, .45);
  background: transparent; color: var(--cream); cursor: pointer;
  font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(1.15rem, 3.6vw, 1.6rem);
}
.hashtag-btn:hover { border-color: var(--pink); }
.hashtag-hint { font-family: var(--font-body); font-style: normal; font-size: .85rem; font-weight: 700; color: var(--pink); }
.org-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.org-tags:empty { display: none; }
.org-tags a {
  padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--cream); font-weight: 700; font-size: .9rem;
  text-decoration: none;
}
.org-tags a:hover { background: rgba(255, 255, 255, .16); }
.week-shares {
  display: inline-block; margin-top: 8px; padding: 8px 14px; border-radius: 12px;
  background: rgba(253, 26, 116, .2); color: var(--cream) !important; font-weight: 700;
}

/* ---------- Падвал ---------- */
.footer { background: var(--charcoal-deep); color: var(--cream-muted); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: grid; gap: 10px; }
.footer-big { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: clamp(1.1rem, 2.6vw, 1.45rem); color: var(--cream); max-width: 36em; }

/* ---------- Дыялогі ---------- */
.sheet {
  width: min(600px, calc(100% - 32px));
  max-height: min(90vh, 900px);
  max-height: min(90dvh, 900px);
  padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.sheet::backdrop { background: rgba(15, 12, 13, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in .22s ease-out; }
.sheet-inner { display: flex; flex-direction: column; min-height: 0; flex: 1; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.sheet-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px clamp(18px, 3vw, 26px) 14px; border-bottom: 1px solid var(--line);
}
.sheet-sub { margin: 0 0 4px; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.sheet-title { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(1.3rem, 3.6vw, 1.6rem); }
.icon-btn {
  flex: none; width: 40px; height: 40px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--surface-2); font-size: 1rem; font-weight: 700;
}
.sheet-body { padding: 18px clamp(18px, 3vw, 26px); overflow-y: auto; flex: 1; min-height: 0; overscroll-behavior: contain; }
.sheet-foot {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px;
  padding: 14px clamp(18px, 3vw, 26px) calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); background: var(--surface);
}
.sheet-foot .spacer { flex: 1; }

@media (max-width: 600px) {
  .sheet {
    width: 100%; max-width: 100%;
    margin: auto 0 0;
    max-height: 94vh; max-height: 94dvh;
    border-radius: 22px 22px 0 0;
  }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
  .sheet-foot .btn { flex: 1; }
  .sheet-foot .spacer { display: none; }
}

/* Блок задання ў дыялогу */
.task-block {
  background: var(--pink-soft); border-radius: var(--radius); padding: 18px; margin-bottom: 22px;
}
.task-block-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 800; color: var(--accent); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.task-block-head svg { width: 18px; height: 18px; }
.task-block h3 { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; }
.task-block .task-text p { font-size: .98rem; }
.task-locked {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-2); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; font-weight: 700; color: var(--muted);
}
.task-locked svg { width: 24px; height: 24px; flex: none; }
.recipe {
  margin: 12px 0; padding: 14px 16px; border-radius: 12px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.recipe-title { font-weight: 800; margin-bottom: 6px; }
.recipe ul { margin: 0 0 10px; padding-left: 20px; }

.check {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 12px 14px; border-radius: 12px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; margin-top: 12px;
}
.check input { width: 22px; height: 22px; accent-color: var(--pink-ui); flex: none; margin: 0; }

.section-label { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.1rem; margin: 0 0 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip > span {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  min-height: 42px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600; font-size: .93rem; user-select: none;
  transition: background-color .15s ease, color .15s ease;
}
.chip input:checked + span { background: var(--pink-ui); color: #fff; box-shadow: none; }
.chip input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 2px; }

.stepper { display: flex; align-items: stretch; gap: 8px; max-width: 260px; }
.stepper input { text-align: center; font-weight: 800; font-size: 1.15rem !important; }
.stepper button {
  flex: none; width: 48px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 1.4rem; font-weight: 700;
}
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quick button {
  min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--pink-soft); color: var(--ink); font-weight: 700; font-size: .9rem;
}

.photo-box {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.photo-thumb {
  width: 96px; height: 108px; border-radius: var(--arch); object-fit: cover; flex: none;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}
.photo-empty {
  width: 96px; height: 108px; border-radius: var(--arch); flex: none;
  display: grid; place-items: center; font-size: 2rem;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted);
}
.photo-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.future-note {
  text-align: center; padding: 28px 12px; color: var(--muted); font-weight: 600;
}
.future-note .big { display: block; font-size: 2.4rem; margin-bottom: 8px; }

.story-body { display: grid; place-items: center; }
.story-preview { width: 100%; display: grid; place-items: center; min-height: 200px; }
.story-preview img { max-height: 62vh; max-height: 62dvh; width: auto; border-radius: 16px; box-shadow: var(--shadow); }

/* ---------- Тост ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px);
  padding: 14px 20px; border-radius: 14px;
  background: var(--charcoal); color: var(--cream); font-weight: 700; box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--pink);
  animation: toast-in .25s ease-out;
}
.toast.is-error { background: var(--pink-ui); color: #fff; border-left-color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

.demo-badge {
  position: fixed; right: 12px; top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 10px); z-index: 30;
  padding: 6px 12px; border-radius: 999px; background: var(--pink-ui); color: #fff;
  font-size: .8rem; font-weight: 800; box-shadow: var(--shadow);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
