/* =========================================================
   JIKA – Olomoucké dobrovolnické centrum
   Barvy vychází z loga: zelená · žlutá · červená · fialová
   ========================================================= */

:root {
  --cream: #fbf6ee;
  --cream-2: #f5ecdf;
  --paper: #ffffff;
  --ink: #1f1a2e;
  --ink-2: #4b4559;
  --ink-3: #736c80;
  --line: #e9dfd0;

  --green: #3a9b48;
  --green-ink: #22672d;
  --green-50: #e6f4e7;
  --yellow: #f4c21c;
  --yellow-ink: #7a5a00;
  --yellow-50: #fff4cc;
  --red: #e0503a;
  --red-ink: #b2321f;
  --red-50: #fde6e1;
  --violet: #4f46c8;
  --violet-ink: #3a32a8;
  --violet-50: #ebeafb;

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow-s: 0 1px 2px rgb(31 26 46 / .06), 0 2px 8px rgb(31 26 46 / .05);
  --shadow: 0 2px 4px rgb(31 26 46 / .04), 0 12px 32px rgb(31 26 46 / .09);

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hand: "Caveat", "Segoe Print", cursive;

  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --fs-base: 1.0625rem;
}


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-ink); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--yellow); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 62ch; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--tint { background: var(--cream-2); }
.section--ink { background: var(--ink); color: #f4f0fa; }
.section--ink h2, .section--ink h3 { color: #fff; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Eyebrow / hand accent ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 18px; height: 18px; border-radius: 4px; flex: none;
  background:
    linear-gradient(var(--green), var(--green)) 0 0 / 50% 50% no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) 100% 0 / 50% 50% no-repeat,
    linear-gradient(var(--red), var(--red)) 0 100% / 50% 50% no-repeat,
    linear-gradient(var(--violet), var(--violet)) 100% 100% / 50% 50% no-repeat;
}
.hand {
  font-family: var(--f-hand); font-weight: 600; font-size: 1.18em;
  position: relative; white-space: nowrap; color: var(--red-ink);
  letter-spacing: 0; display: inline-block; line-height: 1;
}
.hand--violet { color: var(--violet); }
.hand--green { color: var(--green-ink); }
.scribble { position: relative; display: inline-block; }
.scribble svg { position: absolute; left: -4%; bottom: -.18em; width: 108%; height: .45em; overflow: visible; }
.scribble path { fill: none; stroke: var(--yellow); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.2s .5s cubic-bezier(.6,.1,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Ručně kreslené ozdůbky v nadpisech ---------- */
.deco { position: relative; display: inline-block; isolation: isolate; }
.deco__svg { position: absolute; overflow: visible; pointer-events: none; }
.deco__svg path { fill: none; stroke: var(--dc, var(--yellow)); stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.6,.1,.2,1) .25s; }
.deco.is-drawn .deco__svg path { stroke-dashoffset: 0; }
/* podtržení */
.deco--line .deco__svg { left: -3%; bottom: -.16em; width: 106%; height: .4em; z-index: -1; }
.deco--line path { vector-effect: non-scaling-stroke; stroke-width: .17em; stroke-dasharray: 2000; stroke-dashoffset: 2000; }
/* zakroužkování */
.deco--circle { padding-inline: .08em; }
.deco--circle .deco__svg { left: -14%; top: -22%; width: 128%; height: 144%; z-index: -1; }
.deco--circle path { vector-effect: non-scaling-stroke; stroke-width: .075em; stroke-dasharray: 2000; stroke-dashoffset: 2000; transition-duration: 1.4s; }
/* jiskřičky */
.deco--spark { margin-right: .5em; }
.deco--spark .deco__svg { width: .72em; height: .72em; left: calc(100% - .04em); top: -.44em; }
.deco--spark path { stroke-width: 3.6; }
.deco--spark .deco__svg path:nth-child(2) { transition-delay: .4s; } .deco--spark .deco__svg path:nth-child(3) { transition-delay: .55s; }
/* srdíčko protkané písmenem */
.deco--heart { padding-inline: 0; }
.deco--heart .deco__svg { width: 1.1em; height: 1.02em; left: 50%; top: 56%; transform: translate(-50%, -50%) rotate(-8deg); }
.deco--heart path { stroke-width: 3; }
.deco--heart .deco__back { z-index: -1; }
.deco--heart .deco__front { z-index: 1; clip-path: polygon(55% 55%, 100% 40%, 100% 100%, 45% 100%); }
.deco--heart .deco__front path { transition-delay: .25s; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--violet); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75em 1.35em; border-radius: 999px;
  font: 700 1rem/1.1 var(--f-body); text-decoration: none; cursor: pointer;
  background: var(--bg); color: var(--fg); border: 2px solid var(--bd);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 1px 0 rgb(0 0 0 / .05);
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 8px 20px rgb(79 70 200 / .25); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: #fff; box-shadow: none; }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn--light:hover { box-shadow: 0 8px 20px rgb(0 0 0 / .25); }
.btn--yellow { --bg: var(--yellow); --fg: var(--ink); }
.btn--yellow:hover { box-shadow: 0 8px 20px rgb(244 194 28 / .4); }
.btn--sm { white-space: nowrap; min-height: 40px; padding: .55em 1.05em; font-size: .9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; color: var(--ink); }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(251 246 238 / .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgb(31 26 46 / .06); }
.header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; max-width: 1400px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 46px; height: 46px; border-radius: 9px; box-shadow: 0 2px 0 rgb(0 0 0 / .08); }
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -.01em; line-height: 1; }
.brand__sub { display: block; font: 500 .75rem/1.2 var(--f-body); color: var(--ink-3); margin-top: 4px; letter-spacing: .01em; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  display: block; padding: 10px 12px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96875rem; white-space: nowrap;
  position: relative;
}
.nav__list a:hover { background: rgb(31 26 46 / .05); }
.nav__list a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--green) 0 25%, var(--yellow) 25% 50%, var(--red) 50% 75%, var(--violet) 75%);
}
.nav__cta { display: flex; gap: 8px; margin-left: 12px; }
.burger { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--ink); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s, background .25s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1480px) {
  .nav__cta .btn--ghost { display: none; }
  .nav__list a { padding: 10px 9px; font-size: .9375rem; }
}
@media (max-width: 1240px) {
  .burger { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 16px;
    background: var(--cream); padding: 16px var(--pad) 28px; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgb(31 26 46 / .12);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .22s ease;
    max-height: calc(100dvh - 120px); overflow: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; }
  .nav__list a { font-size: 1.125rem; padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__list a[aria-current="page"]::after { left: 12px; right: auto; width: 40px; bottom: 6px; }
  .nav__cta { margin: 0; flex-direction: column; }
  .nav__cta .btn--ghost { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 110px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 2rem; }
.hero__note { margin-top: 28px; display: flex; align-items: center; gap: 14px; color: var(--ink-2); font-size: .9375rem; }
.hero__avatars { display: flex; }
.hero__avatars span { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--cream); margin-left: -10px; display: grid; place-items: center; font: 700 .8rem var(--f-body); color: #fff; }
.hero__avatars span:first-child { margin-left: 0; }

.quilt { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; aspect-ratio: 1 / 1.02; }
.quilt__tile { position: relative; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); background: var(--c, var(--green)); }
.quilt__tile img { width: 100%; height: 100%; object-fit: cover; }
.quilt__tile--color { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(16px, 2.4vw, 28px); color: #fff; }
.quilt__tile--color.is-light { color: var(--ink); }
.quilt__tile--color > strong { font-family: var(--f-display); font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1; font-weight: 600; }
.quilt__tile--color > span { font-weight: 600; font-size: .95rem; opacity: .95; }
.quilt__tile:nth-child(1) { transform: rotate(-1.6deg); }
.quilt__tile:nth-child(2) { transform: rotate(1.2deg) translateY(18px); }
.quilt__tile:nth-child(3) { transform: rotate(1.4deg) translateY(-6px); }
.quilt__tile:nth-child(4) { transform: rotate(-1deg) translateY(12px); }
.quilt__sticker {
  position: absolute; right: -6px; top: -18px; z-index: 2;
  background: var(--paper); border-radius: 999px; padding: 10px 16px 10px 12px; box-shadow: var(--shadow);
  font-weight: 700; font-size: .875rem; display: flex; align-items: center; gap: 8px; transform: rotate(3deg);
}
.quilt__sticker i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-50); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgb(58 155 72 / .1); } }

.blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); opacity: .55; }
.blob--1 { width: 520px; height: 520px; right: -140px; top: -160px; background: radial-gradient(circle at 30% 30%, var(--yellow-50), transparent 70%); }
.blob--2 { width: 420px; height: 420px; left: -180px; bottom: -200px; background: radial-gradient(circle at 50% 50%, var(--violet-50), transparent 70%); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .quilt { max-width: 520px; margin-inline: auto; width: 100%; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-radius: var(--radius-l); box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: clamp(22px, 3vw, 36px); position: relative; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__num { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -.02em; display: block; margin-bottom: .3em; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--ink-2); font-size: .975rem; line-height: 1.4; }
.stat::before { content: ""; position: absolute; left: clamp(22px, 3vw, 36px); top: 0; width: 36px; height: 5px; border-radius: 0 0 4px 4px; background: var(--c); }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Section head ---------- */
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.head > div { max-width: 720px; }
.head h2 { margin-bottom: .3em; }
.head p { color: var(--ink-2); margin: 0; font-size: 1.125rem; }
.center { text-align: center; }
.head.center { justify-content: center; }
.head.center > div { margin-inline: auto; }

/* ---------- Cards / areas ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card { background: var(--paper); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 32px); box-shadow: var(--shadow-s); border: 1px solid var(--line); position: relative; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.area { --c: var(--green); --t: var(--green-50); background: var(--paper); border-radius: var(--radius-l); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.area:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.area__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--t); color: var(--c); margin-bottom: 20px; }
.area__icon svg { width: 34px; height: 34px; }
.area__body { padding: clamp(22px, 2.6vw, 30px); flex: 1; display: flex; flex-direction: column; }
.area__body p { color: var(--ink-2); font-size: 1rem; }
.area__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.tag { font-size: .8125rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--t, var(--cream-2)); color: var(--ink); }
.area--green { --c: var(--green-ink); --t: var(--green-50); }
.area--yellow { --c: var(--yellow-ink); --t: var(--yellow-50); }
.area--red { --c: var(--red-ink); --t: var(--red-50); }
.area--violet { --c: var(--violet-ink); --t: var(--violet-50); }
.area__bar { height: 6px; background: var(--c); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; list-style: none; margin: 0; padding: 0; }
.steps::before { content: ""; position: absolute; top: 31px; left: 8%; right: 8%; border-top: 2px dashed rgb(255 255 255 / .25); }
.step { position: relative; }
.step__n { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font: 600 1.75rem var(--f-display); margin-bottom: 20px; background: var(--c); color: var(--ink); position: relative; transform: rotate(-4deg); }
.step:nth-child(even) .step__n { transform: rotate(4deg); }
.step h3 { font-size: 1.25rem; }
.step p { color: #cfc8dd; font-size: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } .steps::before { display: none; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Split / quote ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }

.photo { position: relative; }
.photo img { border-radius: var(--radius-l); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.photo--tall img { aspect-ratio: 4 / 5; }
.photo__frame { position: absolute; inset: 18px -18px -18px 18px; border-radius: var(--radius-l); background: var(--c, var(--yellow)); z-index: -1; }
.photo__caption { position: absolute; left: 20px; bottom: -22px; background: var(--paper); padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow); font-size: .875rem; font-weight: 600; max-width: 80%; }
.photo__caption .hand { display: block; font-size: 1.45rem; color: var(--violet); margin-bottom: 2px; }

.quote { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.25; font-weight: 500; letter-spacing: -.01em; margin: 0 0 24px; text-wrap: balance; }
.quote::before { content: "„"; color: var(--red); }
.quote::after { content: "“"; color: var(--red); }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.checklist li::before { content: ""; width: 28px; height: 28px; border-radius: 9px; background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322672d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* ---------- News ---------- */
.news { background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.news:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news__img { aspect-ratio: 16 / 10; background: var(--t, var(--cream-2)); position: relative; overflow: hidden; display: grid; place-items: center; }
.news__img img { width: 100%; height: 100%; object-fit: cover; }
.news__img .glyph { font-family: var(--f-display); font-size: 4.2rem; font-weight: 600; color: var(--c, var(--ink)); opacity: .85; }
.news__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news__meta { display: flex; gap: 10px; align-items: center; font-size: .8125rem; color: var(--ink-3); margin-bottom: 10px; font-weight: 600; }
.news__meta .tag { font-size: .75rem; }
.news h3 { font-size: 1.25rem; margin-bottom: .45em; }
.news p { color: var(--ink-2); font-size: .98rem; }
.news details { margin-top: auto; }
.news summary { cursor: pointer; font-weight: 700; color: var(--violet-ink); list-style: none; display: inline-flex; gap: .4em; align-items: center; }
.news summary::-webkit-details-marker { display: none; }
.news summary::after { content: "↓"; transition: transform .2s; }
.news details[open] summary::after { transform: rotate(180deg); }
.news details > div { padding-top: 12px; font-size: .98rem; color: var(--ink-2); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 8px 16px; font: 600 .9375rem var(--f-body); cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Award band ---------- */
.award { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(24px, 4vw, 48px); align-items: center; background: linear-gradient(135deg, #2b2342, var(--ink)); color: #fff; border-radius: var(--radius-l); padding: clamp(28px, 4vw, 56px); position: relative; overflow: hidden; }
.award::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgb(244 194 28 / .35), transparent 70%); }
.award__spark { width: 96px; height: 96px; border-radius: 28px; background: var(--yellow); display: grid; place-items: center; color: var(--ink); transform: rotate(-6deg); }
.award__spark svg { width: 52px; height: 52px; }
.award h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .25em; }
.award p { color: #d6cfe4; margin: 0; }
@media (max-width: 800px) { .award { grid-template-columns: 1fr; } }

/* ---------- Partners ---------- */
.partners { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.partner { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 12px 22px; font-weight: 700; color: var(--ink-2); font-size: .9375rem; }

/* ---------- CTA band ---------- */
.cta { position: relative; border-radius: var(--radius-l); padding: clamp(36px, 6vw, 80px); overflow: hidden; background: var(--violet); color: #fff; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; isolation: isolate; }
.cta h2 { color: #fff; }
.cta p { color: #e1defa; font-size: 1.125rem; }
.cta__deco { position: absolute; inset: 0; z-index: -1; }
.cta__deco i { position: absolute; border-radius: 28px; opacity: .95; }
.cta__deco i:nth-child(1) { width: 180px; height: 180px; right: 8%; top: -50px; background: var(--yellow); transform: rotate(14deg); }
.cta__deco i:nth-child(2) { width: 120px; height: 120px; right: 26%; bottom: -40px; background: var(--red); transform: rotate(-12deg); }
.cta__deco i:nth-child(3) { width: 90px; height: 90px; right: 4%; bottom: 22%; background: var(--green); transform: rotate(8deg); }
.cta .btn-row { justify-content: flex-end; position: relative; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } .cta .btn-row { justify-content: flex-start; } .cta__deco i:nth-child(1) { opacity: .35; } }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); max-width: 18ch; }
.page-hero .lead { margin-bottom: 0; }
.crumbs { font-size: .875rem; color: var(--ink-3); margin-bottom: 20px; }
.crumbs a { color: var(--ink-3); }
.page-hero__squares { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%) rotate(8deg); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: clamp(120px, 18vw, 220px); opacity: .95; }
.page-hero__squares i { aspect-ratio: 1; border-radius: 22%; }
.page-hero__squares i:nth-child(1) { background: var(--green); }
.page-hero__squares i:nth-child(2) { background: var(--yellow); }
.page-hero__squares i:nth-child(3) { background: var(--red); }
.page-hero__squares i:nth-child(4) { background: var(--violet); }
@media (max-width: 860px) { .page-hero__squares { display: none; } }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--red); }

/* ---------- Accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; font: 600 1.2rem/1.3 var(--f-display); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); font: 500 1.4rem var(--f-body); transition: transform .25s, background .2s; }
.acc details[open] summary::after { transform: rotate(45deg); background: var(--yellow); }
.acc .acc__body { padding: 0 4px 24px; color: var(--ink-2); }
.acc .acc__body ul, .acc .acc__body ol { padding-left: 1.2em; margin: 0; }
.acc .acc__body li { margin-bottom: .5em; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 70px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 70px 1fr; gap: 28px; padding-bottom: 28px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 63px; top: 8px; width: 16px; height: 16px; border-radius: 5px; background: var(--c, var(--green)); box-shadow: 0 0 0 5px var(--cream); transform: rotate(45deg); }
.section--paper .timeline li::before { box-shadow: 0 0 0 5px var(--paper); }
.timeline__year { font: 600 1.25rem/1.3 var(--f-display); }
.timeline__body { padding-left: 14px; }
.timeline__body h3 { font-size: 1.15rem; margin-bottom: .25em; }
.timeline__body p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.timeline__body .winner { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; font-weight: 700; font-size: .9375rem; background: var(--yellow-50); padding: 4px 12px; border-radius: 999px; }

/* ---------- Documents ---------- */
.docs { display: grid; gap: 10px; }
.doc { display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.doc:hover { border-color: var(--ink); transform: translateX(4px); box-shadow: var(--shadow-s); color: var(--ink); }
.doc__type { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font: 800 .72rem var(--f-body); letter-spacing: .04em; background: var(--t); color: var(--c); }
.doc__type--pdf { --t: var(--red-50); --c: var(--red-ink); }
.doc__type--doc { --t: var(--violet-50); --c: var(--violet-ink); }
.doc__type--web { --t: var(--green-50); --c: var(--green-ink); }
.doc__type--img { --t: var(--yellow-50); --c: var(--yellow-ink); }
.doc__name { font-weight: 700; line-height: 1.3; }
.doc__desc { display: block; font-weight: 500; font-size: .875rem; color: var(--ink-3); margin-top: 2px; }
.doc__go { color: var(--ink-3); font-size: 1.25rem; }
.doc-group { scroll-margin-top: 110px; }
.doc-group + .doc-group { margin-top: 56px; }
.doc-group h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); display: flex; align-items: center; gap: 14px; }
.doc-group h2 .count { font: 700 .875rem var(--f-body); background: var(--cream-2); border-radius: 999px; padding: 4px 12px; color: var(--ink-2); }
.years { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.year { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: .15s; }
.year:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.year strong { font: 600 1.35rem var(--f-display); }
.year span { font-size: .8125rem; color: var(--ink-3); font-weight: 600; }
.year:hover span { color: #cfc8dd; }
.year--new { border-color: var(--yellow); background: var(--yellow-50); }

.side-nav { position: sticky; top: 100px; display: grid; gap: 4px; }
.side-nav a { padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; }
.side-nav a:hover { background: var(--paper); color: var(--ink); }
.layout-side { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .layout-side { grid-template-columns: 1fr; } .side-nav { position: static; display: flex; flex-wrap: wrap; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 8px; font-size: .9375rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; min-height: 50px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-50); }
.field fieldset { border: 0; padding: 0; margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; font-weight: 600; font-size: .9375rem; transition: .15s; user-select: none; }
.pill input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--violet); flex: none; }
.form__ok { display: none; padding: 20px 22px; border-radius: 14px; background: var(--green-50); color: var(--green-ink); font-weight: 600; }
.form.is-sent .form__ok { display: block; }
.form.is-sent .form__fields { display: none; }
.form__err { display: none; padding: 14px 18px; border-radius: 14px; background: var(--red-50); color: var(--red-ink); font-weight: 600; font-size: .9375rem; }
.form.has-error .form__err { display: block; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
button[disabled] { opacity: .7; cursor: wait; }

.contact-card { display: grid; gap: 20px; }
.contact-line { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.contact-line .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--t); color: var(--c); }
.contact-line .ic svg { width: 22px; height: 22px; }
.contact-line small { display: block; color: var(--ink-3); font-weight: 600; font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-line a, .contact-line strong { font-weight: 700; font-size: 1.0625rem; color: var(--ink); text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }
.map { border: 0; width: 100%; height: 100%; min-height: 360px; border-radius: var(--radius-l); filter: saturate(.85); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c9c2d8; padding-top: clamp(56px, 7vw, 88px); margin-top: 0; position: relative; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--green) 0 25%, var(--yellow) 25% 50%, var(--red) 50% 75%, var(--violet) 75%); }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { color: #fff; font-family: var(--f-body); font-size: .8125rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer .brand { color: #fff; margin-bottom: 18px; }
.footer .brand__sub { color: #a9a1bb; }
.footer__claim { font-family: var(--f-hand); font-size: 1.8rem; color: var(--yellow); line-height: 1.1; margin: 0 0 14px; }
.footer__bottom { margin-top: 56px; padding-block: 24px; border-top: 1px solid rgb(255 255 255 / .1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .875rem; color: #a9a1bb; }
.social { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .2); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-weight: 700; font-size: .9375rem; }
.badge i { width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--green)); }
.notice { border-left: 5px solid var(--yellow); background: var(--yellow-50); padding: 16px 20px; border-radius: 0 12px 12px 0; color: var(--ink); }
.muted { color: var(--ink-3); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-l { margin-top: clamp(32px, 4vw, 56px); }
.person { display: flex; gap: 16px; align-items: center; }
.person__avatar { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font: 600 1.4rem var(--f-display); color: #fff; background: var(--c); flex: none; }
.person h3 { font-size: 1.15rem; margin: 0; }
.person p { margin: 0; color: var(--ink-3); font-size: .9375rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; } .reveal[data-d="2"] { transition-delay: .16s; } .reveal[data-d="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .scribble path, .deco__svg path { stroke-dashoffset: 0 !important; }
}

@media print {
  .header, .footer, .cta, .btn { display: none !important; }
  body { background: #fff; }
}

/* ---------- Archiv článků ---------- */
.archive { display: grid; gap: clamp(18px, 2.4vw, 28px); max-width: 980px; margin-inline: auto; }
.post { display: grid; grid-template-columns: 260px 1fr; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-s); border: 1px solid var(--line); scroll-margin-top: 100px; }
.post[hidden] { display: none; }
.post__img { background: var(--t, var(--yellow-50)); min-height: 200px; position: relative; }
.post__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post__img .glyph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--c, var(--yellow-ink)); }
.post__img .glyph svg { width: 56px; height: 56px; opacity: .7; }
.post__body { padding: clamp(20px, 2.6vw, 30px); display: grid; gap: 10px; align-content: start; }
.post__body h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 0; }
.post__body > p { margin: 0; color: var(--ink-2, #4a4458); }
.post details { margin-top: 4px; }
.post summary { cursor: pointer; font-weight: 700; color: var(--violet-ink); list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.post summary::-webkit-details-marker { display: none; }
.post summary::after { content: "↓"; transition: transform .2s; }
.post details[open] summary::after { transform: rotate(180deg); }
.post details[open] summary .more { display: none; }
.post summary .less { display: none; }
.post details[open] summary .less { display: inline; }
.post__full { margin-top: 14px; }
.post:has(details[open]) .post__body > p { display: none; }
.post__full figure { margin: 18px 0; }
.post__full figure img { margin: 0 0 6px; }
.post__full figcaption { font-size: .875rem; color: var(--ink-3); }
.post__full img { border-radius: 14px; margin: 12px 0; max-height: 520px; width: auto; max-width: 100%; height: auto; }
.post__full .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.post__full .gallery img { margin: 0; width: 100%; height: 150px; object-fit: cover; }
@media (max-width: 720px) {
  .post { grid-template-columns: 1fr; }
  .post__img { min-height: 180px; }
}

/* ---------- Facebook: poslední příspěvky ---------- */
.fbfeed { background: var(--paper); border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; width: 100%; max-width: 520px; justify-self: center; position: relative; }
.fbfeed::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--green) 0 25%, var(--yellow) 0 50%, var(--red) 0 75%, var(--violet) 0); z-index: 1; }
.fbfeed__bar { display: flex; align-items: center; gap: 8px; padding: 16px 18px 12px; font-weight: 700; font-size: .875rem; color: var(--ink-2); }
.fbfeed__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgb(58 155 72 / .5); animation: fbpulse 2s infinite; }
@keyframes fbpulse { 70% { box-shadow: 0 0 0 9px rgb(58 155 72 / 0); } 100% { box-shadow: 0 0 0 0 rgb(58 155 72 / 0); } }
.fbfeed__frame { position: relative; min-height: 640px; padding: 0 10px 10px; display: grid; }
.fbfeed__frame > * { grid-area: 1 / 1; }
.fbfeed__frame iframe { position: relative; z-index: 1; border: 0; width: 100%; height: 640px; border-radius: 14px; background: transparent; }
.fbfeed__fallback { display: grid; place-items: center; align-content: center; gap: 12px; padding: 130px 24px 24px; text-align: center; color: var(--violet-ink); font-weight: 700; border-radius: 14px; background: var(--violet-50); }
.fbfeed__fallback svg { width: 40px; height: 40px; }
.fbfeed__more { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 14px; border-top: 1px solid var(--line); font-weight: 700; color: var(--violet-ink); text-decoration: none; }
.fbfeed__more:hover { background: var(--violet-50); }
.fbfeed__more svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .fbfeed__dot { animation: none; } }

/* ---------- Telefony a tablety: doladění ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; }
.pill { position: relative; }
.contact-line > div { min-width: 0; overflow-wrap: anywhere; }
.contact-line a { display: inline-block; padding-block: 6px; }
.link-arrow { padding-block: 8px; }
.post summary { padding-block: 8px; }
.consent input { width: 24px; height: 24px; margin-top: 0; }
input, select, textarea { font-size: max(16px, 1rem); } /* iOS při psaní nezoomuje */
.header .wrap { padding-top: env(safe-area-inset-top, 0); }
.footer { padding-bottom: env(safe-area-inset-bottom, 0); }
a, button, summary, label { -webkit-tap-highlight-color: rgb(79 70 200 / .15); }
@media (max-width: 1240px) {
  .nav__list a, .nav__cta .btn { min-height: 48px; }
}
@media (max-width: 760px) {
  .wrap { padding-inline: max(var(--pad), env(safe-area-inset-left, 0)); }
  .btn-row { gap: 10px; }
  .btn-row .btn { flex: 1 1 auto; justify-content: center; }
  .fbfeed__frame { min-height: 560px; }
  .fbfeed__frame iframe { height: 560px; }
  .map { min-height: 300px; }
}
@media (max-width: 380px) {
  :root { --pad: 16px; }
  .header .wrap { gap: 10px; }
  .brand { gap: 8px; min-width: 0; }
  .brand img { width: 40px; height: 40px; }
  .brand__sub { font-size: .6875rem; white-space: normal; max-width: 21ch; }
  h1 { font-size: clamp(1.9rem, 9vw, 2.3rem); }
  .pill span { padding: 8px 13px; }
}
@media (max-width: 600px) {
  .photo { margin-right: 12px; }
  .photo__frame { inset: 12px -12px -12px 12px; }
}
@media (max-width: 1240px) { body.menu-open { overflow: hidden; } }

/* ---------- Fotopříběhy: velká fotka našikmo + karta s textem ---------- */
.story { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; position: relative; }
.story__media { position: relative; grid-column: 1 / 2; grid-row: 1; z-index: 0; }
.story__media::before { content: ""; position: absolute; inset: 6% -4% -5% 5%; border-radius: 48px; background: var(--c, var(--yellow)); transform: rotate(3deg); z-index: -1; opacity: .9; }
.story__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 44px; transform: rotate(-2.5deg); box-shadow: 0 24px 60px rgb(31 26 46 / .18); border: 8px solid var(--paper); }
.story__tag { position: absolute; left: 4%; bottom: -14px; z-index: 2; background: var(--paper); padding: 6px 16px 4px; border-radius: 999px; box-shadow: var(--shadow); font: 600 1.35rem/1.2 var(--f-hand); color: var(--ink); transform: rotate(-4deg); }
.story__card { grid-column: 2 / 3; grid-row: 1; margin-left: -18%; position: relative; z-index: 1; background: var(--paper); border-radius: var(--radius-l); padding: clamp(26px, 3.4vw, 44px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.story__card h2, .story__card h3 { margin-top: 0; }
.story__card p:last-child { margin-bottom: 0; }
.story--rev { grid-template-columns: 1fr 1.25fr; }
.story--rev .story__media { grid-column: 2 / 3; }
.story--rev .story__media img { transform: rotate(2.5deg); }
.story--rev .story__media::before { transform: rotate(-3deg); inset: 6% 5% -5% -4%; }
.story--rev .story__tag { left: auto; right: 4%; transform: rotate(3deg); }
.story--rev .story__card { grid-column: 1 / 2; margin-left: 0; margin-right: -18%; }
.story + .story { margin-top: clamp(64px, 8vw, 110px); }
@media (max-width: 860px) {
  .story, .story--rev { grid-template-columns: 1fr; }
  .story__media, .story--rev .story__media { grid-column: 1; grid-row: 1; margin-inline: 4px 14px; }
  .story__card, .story--rev .story__card { grid-column: 1; grid-row: 2; margin: -40px 10px 0; }
  .story__media img { border-radius: 32px; border-width: 6px; }
  .story__media::before { border-radius: 36px; }
  .story__tag { bottom: auto; top: -12px; }
}

/* ---------- Fotogalerie „Z naší práce“: polaroidy našikmo ---------- */
.snaps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 30px); align-items: start; }
.snap { margin: 0; background: var(--paper); padding: 10px 10px 12px; border-radius: 26px; box-shadow: 0 12px 34px rgb(31 26 46 / .12); transform: rotate(var(--r, -2deg)); transition: transform .3s ease, box-shadow .3s ease; }
.snap:nth-child(4n+2) { --r: 1.8deg; margin-top: 26px; }
.snap:nth-child(4n+3) { --r: -1.2deg; }
.snap:nth-child(4n+4) { --r: 2.6deg; margin-top: 18px; }
.snap:hover { transform: rotate(0) translateY(-6px) scale(1.02); box-shadow: 0 20px 44px rgb(31 26 46 / .18); }
.snap img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; }
.snap--tall img { aspect-ratio: 4 / 5; }
.snap figcaption { font: 600 1.3rem/1.15 var(--f-hand); color: var(--ink); padding: 10px 6px 0; text-align: center; }
.snap figcaption small { display: block; font: 500 .8125rem/1.35 var(--f-body); color: var(--ink-3); margin-top: 4px; }
@media (max-width: 1000px) { .snaps { grid-template-columns: repeat(3, 1fr); } .snap:nth-child(n) { margin-top: 0; } }
@media (max-width: 700px) { .snaps { grid-template-columns: repeat(2, 1fr); gap: 16px; } .snap figcaption { font-size: 1.1rem; } }
@media (prefers-reduced-motion: reduce) { .snap:hover { transform: rotate(var(--r, -2deg)); } }

.story--small { grid-template-columns: minmax(0, 420px) 1fr; justify-content: center; }
.story--small .story__media img { aspect-ratio: auto; object-fit: contain; background: #fff; }
.story--small .story__card { margin-left: -8%; }
@media (max-width: 860px) { .story--small { grid-template-columns: 1fr; } .story--small .story__media { max-width: 420px; justify-self: center; } .story--small .story__card { margin: -40px 10px 0; } }
.person h3 + p { margin-bottom: 6px; }
.cert { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 6px 12px; border-radius: 999px; background: var(--green-50); color: var(--green-ink); font-weight: 700; font-size: .8125rem; text-decoration: none; line-height: 1.25; }
.cert svg { width: 16px; height: 16px; flex: none; }
.cert:hover { background: var(--green); color: #fff; }
.nowrap { white-space: nowrap; }
