/* ==========================================================================
   Červený kotlík – landing page
   Built 1:1 from Figma "Červený kotlík – landing":
   Desktop 1440 / Mobil 390 – počas zbierky + po zbierke.
   Desktop layout ≥ 1024 px, mobile layout < 1024 px.
   ========================================================================== */

:root {
  /* Figma variables (color/*) */
  --red: #ef3e42;
  --red-hero: #e20613;          /* hero headline red (unbound colour in Figma) */
  --navy: #002056;
  --navy-muted: #4a5c80;
  --yellow: #fff200;
  --gold: #af8c46;
  --gray-light: #ebebeb;
  --cream: #faf6f0;             /* section background */
  --white: #ffffff;

  /* Figma variables (radius/*) */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-full: 999px;

  --f-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-inter: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Figma Hand is not a web font: Kalam is the closest Google substitute.
     Calibrated against the Figma renders: Figma Hand Bold ≈ Kalam 400 and
     Figma Hand Regular ≈ Kalam 300, at 1.3× the size with +0.03em tracking
     (same cap height and line length). */
  --f-hand: "Kalam", "Segoe Print", "Bradley Hand", cursive;
  --hand: 1.3;
  --hand-ls: 0.03em;

  /* horizontal page gutters */
  --px: max(48px, calc((100% - 1120px) / 2));
  --px-footer: max(48px, calc((100% - 1280px) / 2));
}

@media (max-width: 1023.98px) {
  :root {
    --px: max(16px, calc((100% - 600px) / 2));
    --px-footer: var(--px);
  }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 27px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  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: 10;
  background: var(--navy); color: var(--white);
  padding: 12px 20px; border-radius: var(--r-full);
  font: 700 17px/24px var(--f-sans); text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--white); }

/* icon colours (sprite symbols use currentColor) */
.ic-red { color: var(--red); }
.ic-gold { color: var(--gold); }
.ic-navy { color: var(--navy); }
.ic-muted { color: var(--navy-muted); }
.ic-white { color: var(--white); }

/* breakpoint helpers */
@media (max-width: 1023.98px) { .d-only { display: none !important; } }
@media (min-width: 1024px)    { .m-only { display: none !important; } }
/* manual line breaks from the 390 px frame – phones only */
.br-xs { display: none; }
@media (max-width: 430px) { .br-xs { display: inline; } }

/* ---------- typography (Figma text styles) ---------- */
.t-overline {
  font: 700 15px/20px var(--f-sans);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy-muted);
}
.t-h2 { font: 700 40px/48px var(--f-sans); letter-spacing: -0.5px; color: var(--navy); }
.t-h2m { font: 700 28px/36px var(--f-sans); letter-spacing: -0.3px; color: var(--navy); }
.t-h3 { font: 700 22px/30px var(--f-sans); color: var(--navy); }
.t-body-l { font: 400 19px/30px var(--f-sans); }
.t-body { font: 400 17px/27px var(--f-sans); }
.t-body-b { font: 700 17px/27px var(--f-sans); }
.t-muted { color: var(--navy-muted); }

@media (max-width: 1023.98px) {
  .t-h2 { font-size: 28px; line-height: 36px; letter-spacing: -0.3px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--r-full);
  font: 700 18px/24px var(--f-sans);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn--l { min-height: 56px; padding: 12px 32px; }
.btn--m { min-height: 48px; padding: 12px 24px; }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: #d9353a; }
.btn--secondary { background: var(--white); color: var(--navy); border: 2px solid var(--navy); }
.btn--secondary.btn--m { padding: 0 24px; height: 48px; }
.btn--secondary:hover { background: var(--cream); }
.btn--block { width: 100%; }

/* pill with icon (share buttons, copy button) */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 20px;
  border: 2px solid var(--navy);
  border-radius: var(--r-full);
  background: var(--white);
  color: var(--navy);
  font: 700 18px/24px var(--f-sans);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.pill:hover { background: var(--cream); }
.pill svg { flex: none; }
.pill--sm { height: 48px; }
.pill__idle { display: inline-flex; align-items: center; gap: 8px; }
.pill .pill__done { display: none; }
.pill.is-done { background: var(--navy); color: var(--white); }
.pill.is-done .pill__idle { display: none; }
.pill.is-done .pill__done { display: inline-flex; align-items: center; gap: 8px; }

/* ==========================================================================
   Mobile header (Hlavička / Zariadenie=Mobil)
   ========================================================================== */
.mhead {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--white);
  border-bottom: 1px solid var(--cream);
}
/* Armáda spásy logo in the slots of the Figma "Logo rámik" placeholder (44 / 52 px tall) */
.mhead__logo { width: auto; height: 44px; }
.footer__logo { width: auto; height: 52px; }

/* ==========================================================================
   Desktop hero (Plagát A4 – A), absolutely positioned 1440 × 644 canvas,
   scaled with the viewport between 1024 and 1440 px.
   ========================================================================== */
.dhero { background: var(--cream); overflow: hidden; }
.dhero__canvas {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  container-type: inline-size;
}
.dhero__stage {
  --u: calc(100cqw / 1440);
  position: relative;
  height: calc(644 * var(--u));
}
.dhero .abs {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  margin: 0;
}
.dhero__logo { width: calc(108 * var(--u)); height: calc(127 * var(--u)); }
.dhero__logo img { width: calc(109 * var(--u)); height: 100%; max-width: none; }

.dhero__title { position: static; margin: 0; font-weight: 700; }
.dhero__nadej {
  font: 700 calc(140 * var(--u)) / 0.88 var(--f-inter);
  letter-spacing: -0.045em;
  color: var(--navy);
  white-space: nowrap;
}
.dhero__adresu {
  width: calc(602 * var(--u));
  font: 700 calc(100 * var(--u)) / 1.18 var(--f-inter);
  letter-spacing: -0.045em;
  color: var(--red-hero);
  white-space: nowrap;
}
.dhero__marker {
  width: calc(613.55 * var(--u));
  height: calc(93.43 * var(--u));
  background: var(--white);
  transform-origin: 0 0;
  transform: rotate(-4.84deg);
}
.dhero__script {
  width: calc(590 * var(--u));
  font: 400 calc(48 * var(--hand) * var(--u)) / calc(56.64 * var(--u)) var(--f-hand);
  letter-spacing: var(--hand-ls);
  color: var(--red-hero);
  white-space: nowrap;
}
.dhero__script--po {
  /* "aj tieto" runs wider in Kalam than in Figma Hand: 1.22× without tracking */
  font: 300 calc(70 * 1.22 * var(--u)) / calc(82.6 * var(--u)) var(--f-hand);
  letter-spacing: 0;
  white-space: nowrap;
}
.dhero__script--po b {
  font: 700 calc(70 * var(--u)) / 1.18 var(--f-inter);
  letter-spacing: -0.045em;
  color: var(--navy);
}

/* collection status (Stav zbierky – desktop, Inter) */
.dstatus {
  width: calc(440 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(12 * var(--u));
  font-family: var(--f-inter);
}
.dstatus__sum {
  width: 100%;
  text-align: center;
  font: 700 calc(20 * var(--u)) / calc(27 * var(--u)) var(--f-inter);
  color: var(--red);
}
.dstatus__bar {
  width: 100%;
  height: calc(10 * var(--u));
  border-radius: calc(5 * var(--u));
  background: var(--navy);
  overflow: hidden;
}
.dstatus__date {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--u));
  font: 400 calc(20 * var(--u)) / calc(27 * var(--u)) var(--f-inter);
  color: var(--navy);
  white-space: nowrap;
}
.dstatus__date svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); flex: none; }
.dstatus__date strong { font-weight: 800; }

.progress__fill {
  display: block;
  height: 100%;
  width: var(--pct, 42.8%);
  background: var(--gold);
  border-radius: inherit;
}

.dhero__glow {
  width: calc(480 * var(--u));
  height: calc(360 * var(--u));
  border-radius: 50%;
  background: #e2d3ba;
  opacity: .75;
  filter: blur(calc(50 * var(--u)));
}
.dhero__snow { width: calc(486 * var(--u)); height: calc(594 * var(--u)); }
.dhero__snow i { background: var(--navy-muted); }

.dhero__kettle {
  width: calc(222.25 * var(--u));
  height: calc(304.25 * var(--u));
  transform-origin: 0 0;
  transform: rotate(13.12deg);
}
.dhero__kettle img { width: 100%; height: 100%; object-fit: contain; }

.dhero__arrow { height: auto; }
.dhero__arrow--kettle { width: calc(108 * var(--u)); }
.dhero__arrow--qr { width: calc(154 * var(--u)); }
.dhero__arrow--qr-top { width: calc(130 * var(--u)); }

.dhero__cta-label {
  font: 900 calc(30 * var(--u)) / calc(24 * var(--u)) var(--f-inter);
  color: var(--red);
  white-space: nowrap;
  text-decoration: none;
}
.dhero__qr { display: block; width: calc(220 * var(--u)); height: calc(264 * var(--u)); }
.dhero__qr img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Snow (shared). Flakes sit at their Figma positions at t = 0.
   ========================================================================== */
.snow { position: absolute; pointer-events: none; }
.snow i {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--s) * var(--u));
  height: calc(var(--s) * var(--u));
  border-radius: 50%;
  opacity: var(--o);
}

/* ==========================================================================
   Mobile hero (Hero – kotlík / Hero – plný kotlík)
   ========================================================================== */
.mhero {
  background: var(--navy);
  color: var(--white);
  padding: 40px var(--px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  text-align: center;
}
.mhero__content { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.mhero__text { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.mhero .t-overline { color: var(--gold); }
.mhero__h1 {
  font: 800 34px/42px var(--f-inter);
  letter-spacing: -0.5px;
  color: var(--cream);
}
.mhero__h1 .big { display: block; font-size: 55px; line-height: 42px; margin-bottom: 8px; }
.mhero__script { font: 300 calc(29px * var(--hand)) / 30px var(--f-hand); letter-spacing: var(--hand-ls); color: var(--white); }
.mhero__visual { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mhero__note { width: 100%; opacity: .85; }
.mhero .btn--primary { width: 100%; }

/* po zbierke */
.mhero--po { padding-top: 48px; padding-bottom: 48px; }
.mhero--po .mhero__content { gap: 24px; }
.mhero__h1--po { font: 800 34px/42px var(--f-sans); letter-spacing: -0.5px; color: var(--white); }
.mhero__h1--po em { font-style: normal; color: var(--yellow); }

/* kettle illustration (Kotlík – ilustrácia) */
.kettle-ill { --u: 1px; position: relative; flex: none; }
.kettle-ill--filling { width: 184px; height: 225px; }
.kettle-ill--full { width: 244.8px; height: 299.2px; }
.kettle-ill > * { position: absolute; }
.kettle-ill__glow { border-radius: 50%; }
.kettle-ill--filling .kettle-ill__glow {
  left: 13.6px; top: 115.6px; width: 217.6px; height: 163.2px;
  background: var(--yellow); opacity: .18; filter: blur(20.4px);
}
.kettle-ill--full .kettle-ill__glow {
  left: 13.6px; top: 115.6px; width: 217.6px; height: 163.2px;
  background: var(--yellow); opacity: .40; filter: blur(20.4px);
}
.kettle-ill--full .kettle-ill__glow--gold {
  left: 40.8px; top: 149.6px; width: 163.2px; height: 108.8px;
  background: var(--gold); opacity: .50; filter: blur(13.6px);
}
.kettle-ill__img { object-fit: contain; }
.kettle-ill--filling .kettle-ill__img { left: 17.38px; top: 12.27px; width: 149.24px; height: 204.55px; }
.kettle-ill--full .kettle-ill__img { left: 23.12px; top: 16.32px; width: 198.56px; height: 272px; }
.kettle-ill .snow { left: 0; top: 0; width: 244.8px; height: 299.2px; }
.kettle-ill .snow i { background: var(--white); }

/* collection status – mobile (Montserrat) */
.mstatus { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mstatus__sum { width: 100%; font: 700 17px/27px var(--f-sans); }
.mstatus__bar { width: 100%; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.mstatus__date { display: flex; align-items: center; gap: 8px; font: 400 17px/27px var(--f-sans); white-space: nowrap; }
.mstatus__date svg { flex: none; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: 96px var(--px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  background: var(--white);
}
.section--cream { background: var(--cream); }
.section__head {
  width: 800px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.section__intro-bold { font-weight: 700; }

@media (max-width: 1023.98px) {
  .section { padding: 56px var(--px); gap: 24px; align-items: stretch; }
  .section__head { width: auto; align-items: stretch; text-align: left; }
}

/* ---------- Na čo idú peniaze ---------- */
.help-grid { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.help-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 24px rgba(0, 32, 86, .08);
}
.help-card__line { width: 48px; height: 2px; background: var(--gold); flex: none; }
.help-card__sum { font: 700 17px/27px var(--f-sans); }
.help-card__sum strong { font-weight: 800; font-size: 22px; line-height: 0; color: var(--red); }

@media (min-width: 1024px) {
  .help-card { min-height: 363px; } /* cards are FIXED 363 px in Figma */
}
@media (max-width: 1023.98px) {
  .help-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Štatistiky ---------- */
.stats { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat__line { width: 40px; height: 3px; background: var(--gold); }
.stat__num { font: 800 56px/60px var(--f-sans); letter-spacing: -1px; color: var(--navy); }
.stat--red .stat__num { color: var(--red); }

@media (max-width: 1023.98px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stats--po { row-gap: 24px; }
  .stat__num { font-size: 40px; line-height: 44px; letter-spacing: -0.5px; }
}

/* ---------- Rozdelenie peňazí ---------- */
.split {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  background: var(--white);
  border-radius: var(--r-lg);
}
.split__body { display: flex; flex-direction: column; gap: 16px; }
.split__bar { display: flex; gap: 3px; height: 36px; }
.split__seg { flex: var(--p) 1 0; min-width: 0; }
.split__seg:first-child { border-radius: 8px 0 0 8px; }
.split__seg:last-child { border-radius: 0 8px 8px 0; }
.split__legend { display: flex; flex-wrap: wrap; gap: 32px; }
.split__legend li { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.split__legend li::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: 4px;
  background: var(--c);
  box-shadow: var(--ring, none);
  flex: none;
}
.c-red { --c: var(--red); background: var(--red); }
.c-navy { --c: var(--navy); background: var(--navy); }
.c-gold { --c: var(--gold); background: var(--gold); }
.c-gray { --c: var(--gray-light); background: var(--gray-light); }
.split__legend .c-red, .split__legend .c-navy, .split__legend .c-gold, .split__legend .c-gray { background: none; }
.split__legend .c-gray { --ring: inset 0 0 0 1px var(--navy-muted); }

@media (max-width: 1023.98px) {
  .split { padding: 20px; gap: 16px; border-radius: var(--r-md); }
  .split__bar { height: 28px; }
  .split__legend { flex-direction: column; gap: 8px; }
}

/* ---------- photo placeholders (Fotka – zástupná) ---------- */
.ph-grid { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ph {
  height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  background: rgba(0, 32, 86, .08);
  border-radius: var(--r-md);
  color: var(--navy-muted);
  text-align: center;
  overflow: hidden;
}
.ph svg { flex: none; }

@media (max-width: 1023.98px) {
  .ph-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .ph-grid .ph { height: 160px; }
  .ph-grid .ph:first-child { grid-column: 1 / -1; height: 220px; }
}

/* ---------- Príbeh ---------- */
.story { width: 100%; display: flex; align-items: center; gap: 80px; }
.story__img { flex: 0 1 690px; min-width: 0; }
.story__img img { width: 100%; height: auto; aspect-ratio: 690 / 388; object-fit: cover; }
.story__quote {
  flex: 1 0 350px;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.story__mark {
  height: 60px;
  font: 800 88px/60px var(--f-sans);
  letter-spacing: -1px;
  color: var(--red);
}
.story__text { font: 500 28px/42px var(--f-sans); color: var(--navy); }
.story__author { font: 700 17px/27px var(--f-sans); color: var(--navy-muted); }

@media (max-width: 1023.98px) {
  .story { flex-direction: column; align-items: stretch; gap: 24px; }
  .story__img { flex: none; }
  .story__img img { height: 260px; aspect-ratio: auto; border-radius: var(--r-md); }
  .story__quote { flex: none; min-height: 0; }
  .story__text { font-size: 22px; line-height: 34px; }
}

/* ---------- Kto za zbierkou stojí ---------- */
.section--team { gap: 68px; padding-bottom: 73px; }
.team { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.person { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.person__portrait {
  width: 200px;
  height: 200px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  border-radius: 50%;
  background: rgba(0, 32, 86, .08);
  box-shadow: 0 0 0 3px var(--gold);
  color: var(--navy-muted);
  text-align: center;
  white-space: nowrap;
}
.person__text { width: 100%; }
.person__text--inter { font: 400 17px/30px var(--f-inter); }
.person__faith {
  width: 100%;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
  font: 400 calc(17px * var(--hand)) / 27px var(--f-hand);
  letter-spacing: var(--hand-ls);
  color: var(--red);
}
.person__mail {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 17px/27px var(--f-sans);
  color: var(--navy);
  text-decoration: none;
}
.person__mail:hover span { text-decoration: underline; }
.team-logo { width: 109px; height: 127px; }
.team-about {
  width: 800px;
  max-width: 100%;
  text-align: center;
  font: 400 calc(25px * var(--hand)) / 60px var(--f-hand);
  letter-spacing: 0.06em; /* matches Figma's line break after "ktorá od" */
  color: var(--navy);
}

@media (max-width: 1023.98px) {
  .section--team { gap: 24px; padding-bottom: 56px; }
  .team { grid-template-columns: 1fr; gap: 48px; }
  .person__text--inter { font: 400 17px/27px var(--f-sans); }
  .person__faith { font: 400 17px/27px var(--f-sans); letter-spacing: normal; color: var(--navy); }
  .team-about { width: auto; text-align: left; font: 500 19px/30px var(--f-sans); letter-spacing: normal; }
}

/* ---------- Daruj ---------- */
.donate {
  width: 1040px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 48px;
  background: var(--white);
  border: 3px solid var(--red);
  border-radius: var(--r-lg);
  box-shadow: 0 12px 32px rgba(239, 62, 66, .12);
}
.toggle {
  width: 520px;
  max-width: 100%;
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--gray-light);
  border-radius: var(--r-full);
}
.toggle__opt {
  flex: 1 1 0;
  height: 52px;
  border: 0;
  border-radius: 26px;
  background: transparent;
  color: var(--navy);
  font: 700 18px/24px var(--f-sans);
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.toggle__opt[aria-selected="true"] { background: var(--navy); color: var(--white); }

.card-pay { width: 640px; max-width: 100%; display: flex; flex-direction: column; gap: 20px; }
.card-pay fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.card-pay legend { padding: 0; float: left; width: 100%; }
.card-pay legend + * { clear: both; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.amount {
  position: relative;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 2px solid var(--navy);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--navy);
  font: 800 24px/30px var(--f-sans);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.amount input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.amount:has(input:checked) { background: var(--navy); color: var(--white); }
.amount:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 3px; }
.amount--custom { font-size: 18px; padding: 0 8px; }
.amount__input {
  display: none;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: 800 24px/30px var(--f-sans);
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}
.amount__input::-webkit-outer-spin-button, .amount__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount__input::placeholder { color: rgba(255, 255, 255, .6); }
.amount--custom:has(input:checked) .amount__label { display: none; }
.amount--custom:has(input:checked) .amount__input { display: block; }

.transfer { width: 100%; display: flex; align-items: center; gap: 48px; }
.qr { width: 300px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.qr__box {
  position: relative;
  width: 292px;
  height: 292px;
  padding: 24px;
  border: 2px solid var(--gray-light);
  border-radius: var(--r-md);
  background: var(--white);
  overflow: hidden;
}
.qr__box img { width: 240px; height: 240px; }
.qr__tag {
  position: absolute;
  left: 95px; top: 134px;
  width: 98px;
  font: 700 11px/20px var(--f-sans);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.qr__caption { width: 100%; text-align: center; }
.iban {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border: 2px solid var(--gray-light);
  border-radius: var(--r-md);
  background: var(--white);
}
.iban__num { font: 700 24px/32px var(--f-sans); letter-spacing: 1px; color: var(--navy); }
.iban__data {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 2px solid var(--gray-light);
}
.iban__data div { display: flex; flex-direction: column; gap: 2px; }
.iban__data dt { color: var(--navy-muted); }
.iban__data dd { font-weight: 700; }

@media (max-width: 1023.98px) {
  .donate { padding: 24px 16px; align-items: stretch; }
  .toggle { width: 100%; }
  .card-pay { width: 100%; }
  .amounts { grid-template-columns: repeat(2, calc((100% - 28px) / 2)); } /* 146 px at 390 */
  .transfer { flex-direction: column; align-items: stretch; gap: 24px; }
  .transfer .iban { order: -1; }
  .qr { width: 100%; }
}

/* ---------- Chcem pomôcť inak ---------- */
.other-grid { width: 1040px; max-width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.other-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  border-radius: var(--r-md);
}
.other-card .btn { margin-top: 0; }

@media (max-width: 1023.98px) {
  .other-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Kde nás nájdete ---------- */
.places { width: 100%; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.place { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--gray-light); }
.place svg { flex: none; }
.place__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

@media (max-width: 1023.98px) {
  .places { grid-template-columns: 1fr; }
}

/* ---------- Pošli ďalej ---------- */
.share { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

@media (max-width: 1023.98px) {
  .share { justify-content: flex-start; gap: 12px; }
}

/* ---------- Newsletter ---------- */
.nl { width: 560px; max-width: 100%; display: flex; flex-direction: column; gap: 16px; }
.nl__form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1.5px solid var(--navy-muted);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--navy);
  font: 400 17px/27px var(--f-sans);
}
.field__input::placeholder { color: var(--navy-muted); opacity: 1; }
.field__input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.field__error { display: none; align-items: center; gap: 8px; font: 700 17px/27px var(--f-sans); }
.field__error svg { flex: none; }
.is-invalid .field__input { border: 2px solid var(--red); padding: 0 15.5px; box-shadow: none; }
.is-invalid .field__error { display: flex; }

.consent { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; }
.consent__box {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 0;
  border: 2px solid var(--navy);
  border-radius: 4px;
  background: var(--white);
}
.consent input:checked + .consent__box { background: var(--navy); }
.consent input:checked + .consent__box::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 12px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent input:focus-visible + .consent__box { outline: 3px solid var(--navy); outline-offset: 3px; }
.consent__text { flex: 1; min-width: 0; }
.consent__text a { font-weight: 700; }
.consent-error { display: none; align-items: center; gap: 8px; font: 700 17px/27px var(--f-sans); margin-top: -8px; }
.is-consent-missing .consent__box { border-color: var(--red); }
.is-consent-missing .consent-error { display: flex; }

.nl__done {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border: 2px solid var(--navy);
  border-radius: var(--r-md);
  background: var(--white);
}
.nl__done svg { flex: none; }

/* ==========================================================================
   Footer (Pätička)
   ========================================================================== */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 72px var(--px-footer) 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.footer .t-h2 { color: var(--white); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.footer__col--logo { gap: 16px; }
.footer__col .t-overline { color: var(--white); opacity: .85; }
.footer__link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 17px/27px var(--f-sans);
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.footer__link svg { flex: none; }
.footer__line { height: 1px; background: var(--gold); }
.footer__legal { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.footer__legal p { opacity: .9; }
.footer__legal a { font: 700 17px/27px var(--f-sans); text-underline-offset: 2px; text-decoration-thickness: 1px; white-space: nowrap; }

@media (max-width: 1023.98px) {
  .footer { padding: 48px var(--px-footer) 40px; }
  .footer__cols { grid-template-columns: 1fr; gap: 32px; }
  .footer__legal { flex-direction: column; gap: 12px; }
}

/* ==========================================================================
   Motion (Figma: "Animácie – špecifikácia").
   Everything is off under prefers-reduced-motion (spec item 7).
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* 2. Hojdanie: ±2° around the hanging point, 4 s period, ease-in-out */
  .sway {
    transform-origin: 50% 2%;
    animation: sway 2s ease-in-out -1s infinite alternate;
  }
  /* 4. Sneh: flakes fall 8–14 s with a gentle sideways drift */
  .snow i {
    --from: calc((-1 * var(--y) - 12) * var(--u));
    --to: calc((var(--h, 594) - var(--y) + 12) * var(--u));
    animation:
      snow-fall var(--d) linear var(--dl) infinite,
      snow-drift 3.4s ease-in-out calc(var(--dl) / 3) infinite alternate;
  }
  .kettle-ill .snow i { --h: 299.2; }
  /* 5. Po zbierke: no sway, the glow pulses (opacity 0.3 → 0.45, 3 s) */
  .kettle-ill--full .kettle-ill__glow:not(.kettle-ill__glow--gold) {
    animation: glow-pulse 1.5s ease-in-out infinite alternate;
  }
}

@keyframes sway {
  from { rotate: -2deg; }
  to   { rotate: 2deg; }
}
@keyframes snow-fall {
  0%   { transform: translateY(var(--from)); opacity: 0; }
  6%   { opacity: var(--o); }
  94%  { opacity: var(--o); }
  100% { transform: translateY(var(--to)); opacity: 0; }
}
@keyframes snow-drift {
  from { translate: calc(var(--dx) * -0.5px) 0; }
  to   { translate: calc(var(--dx) * 0.5px) 0; }
}
@keyframes glow-pulse {
  from { opacity: .30; }
  to   { opacity: .45; }
}

.dhero__back {
  display: inline-flex;
  align-items: center;
  min-height: calc(44 * var(--u));
  padding: 0 calc(14 * var(--u));
  border-radius: var(--r-full);
  background: var(--white);
  border: 2px solid var(--navy);
  color: var(--navy);
  font: 700 calc(15 * var(--u)) / 1 var(--f-sans);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.dhero__back:hover {
  background: var(--navy);
  color: var(--white);
}

.mhead__left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mhead__back {
  font: 700 13px/1.2 var(--f-sans);
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}