/*!****************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/(public)/(web)/web.css ***!
  \****************************************************************************************************************************************************************************************************************************************************************************/
/*
 * Mezi4stěny – Brutalist/Street Minimal Design
 * Ported from static M4S site to Next.js
 */

:root {
  --m4s-black: #1a1a1a;
  --m4s-white: #fafafa;
  --m4s-gray: #666;
  --m4s-light-gray: #e8e8e8;
  --m4s-accent: #e63946;
  --m4s-accent-hover: #c92a35;
  --m4s-text: #2a2a2a;
  --m4s-bg: #f5f5f5;
  --m4s-content-width: 120ch;
  --m4s-wide-width: 1600px;
  --m4s-header-h: 96px;
  --m4s-header-h-mobile: 72px;
}

/* Base */
.web-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--m4s-bg);
  color: var(--m4s-text);
  font-family: 'Space Grotesk', var(--font-display), -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.web-main {
  flex: 1;
}

.web-wrapper h1, .web-wrapper h2, .web-wrapper h3, .web-wrapper h4 {
  line-height: 1.2;
  font-weight: 700;
}

.web-wrapper a {
  color: var(--m4s-accent);
  text-decoration: none;
  transition: border-color 0.2s;
}

.web-wrapper a:hover {
  text-decoration: underline;
}

/* Container */
.m4s-container {
  max-width: var(--m4s-wide-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

@media (min-width: 1200px) {
  .m4s-container {
    padding: 0 4rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   M4S Grid System — orphan-safe
   ─────────────────────────────────────────────────────────────────
   Pravidlo: pro N položek nikdy nepoužít takový počet sloupců C, kde
   (N mod C) == 1. Poslední řádek nesmí být osamocená karta.

   Použití: <div class="m4s-grid m4s-grid--n6">…</div>

   Pro dynamický (DB-driven) počet: .m4s-grid--dyn s max-width capem.
   Pro sekce s odsazením shora: přidej .m4s-grid--spaced (mt: 3.5rem).
   ═══════════════════════════════════════════════════════════════════ */

.m4s-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  width: 100%;
}

.m4s-grid--spaced { margin-top: 3.5rem; }
.m4s-grid--gap-sm { gap: 1.25rem; }
.m4s-grid--gap-lg { gap: 2.5rem; }

/* N=2: 1 → 2 */
@media (min-width: 600px) {
  .m4s-grid--n2 { grid-template-columns: repeat(2, 1fr); }
}

/* N=3: 1 → 3 (skip 2 = 2+1 sirotek) */
@media (min-width: 900px) {
  .m4s-grid--n3 { grid-template-columns: repeat(3, 1fr); }
}

/* N=4: 1 → 2 → 4 */
@media (min-width: 600px) {
  .m4s-grid--n4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .m4s-grid--n4 { grid-template-columns: repeat(4, 1fr); }
}

/* N=5: 1 → 3 (3+2 ✓; 2 a 4 by daly sirotka) */
@media (min-width: 900px) {
  .m4s-grid--n5 { grid-template-columns: repeat(3, 1fr); }
}

/* N=6: 1 → 2 → 3 */
@media (min-width: 600px) {
  .m4s-grid--n6 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .m4s-grid--n6 { grid-template-columns: repeat(3, 1fr); }
}

/* N=7: 1 → 4 (4+3 ✓; 2,3 by daly sirotka) */
@media (min-width: 1100px) {
  .m4s-grid--n7 { grid-template-columns: repeat(4, 1fr); }
}

/* N=8: 1 → 2 → 4 */
@media (min-width: 600px) {
  .m4s-grid--n8 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .m4s-grid--n8 { grid-template-columns: repeat(4, 1fr); }
}

/* N=9: 1 → 3 */
@media (min-width: 900px) {
  .m4s-grid--n9 { grid-template-columns: repeat(3, 1fr); }
}

/* N=10: 1 → 2 → 5 (3,4 by daly sirotka) */
@media (min-width: 600px) {
  .m4s-grid--n10 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1300px) {
  .m4s-grid--n10 { grid-template-columns: repeat(5, 1fr); }
}

/* N=11: 1 → 3 (3+3+3+2 ✓) */
@media (min-width: 900px) {
  .m4s-grid--n11 { grid-template-columns: repeat(3, 1fr); }
}

/* N=12: 1 → 2 → 3 → 4 */
@media (min-width: 600px) {
  .m4s-grid--n12 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .m4s-grid--n12 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .m4s-grid--n12 { grid-template-columns: repeat(4, 1fr); }
}

/* Dynamický počet (DB obsah) — cap na 3 sloupce via max-width */
.m4s-grid--dyn {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Širší varianta dyn (shop/katalog) — cap na ~4 sloupce */
.m4s-grid--dyn-wide {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

/* Header */
.m4s-header {
  background: var(--m4s-white);
  color: var(--m4s-text);
  padding: 2rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--m4s-light-gray);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.m4s-header.scrolled {
  background: var(--m4s-black);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.m4s-header.scrolled .m4s-nav-link,
.m4s-header.scrolled .m4s-logo {
  color: var(--m4s-white);
}

.m4s-header.scrolled .m4s-nav-link:hover {
  color: var(--m4s-accent);
}

.m4s-header.scrolled .m4s-social-link {
  color: var(--m4s-white);
}

.m4s-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.m4s-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--m4s-text);
  text-decoration: none !important;
}

.m4s-logo:hover {
  opacity: 0.8;
}

.m4s-logo img {
  height: 64px;
  width: auto;
  display: block;
}

/* Pomoc button */
.m4s-pomoc-btn {
  background: var(--m4s-white);
  color: var(--m4s-dark) !important;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.2s;
  border: 2px solid black;
  white-space: nowrap;
}

.m4s-pomoc-btn:hover {
  border-color: var(--m4s-accent);
  background: var(--m4s-accent) !important;
  color: white !important;
}

/* Nav desktop */
.m4s-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.m4s-social-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-right: 0.5rem;
}

.m4s-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
  color: var(--m4s-text);
  text-decoration: none !important;
  transition: color 0.2s, transform 0.2s;
}

.m4s-social-link:hover {
  color: var(--m4s-accent);
  transform: translateY(-2px);
}

a.m4s-nav-link {
  color: var(--m4s-text);
  font-weight: 500;
  text-decoration: none !important;
  transition: color 0.2s;
}

a.m4s-nav-link:hover {
  color: var(--m4s-accent);
}

/* Poskytujeme dropdown */
.m4s-nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.m4s-nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  color: var(--m4s-text);
  font-weight: 500;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.m4s-header.scrolled .m4s-nav-dropdown-toggle {
  color: var(--m4s-white);
}

.m4s-nav-dropdown-toggle:hover {
  color: var(--m4s-accent);
}

.m4s-nav-dropdown-caret {
  transition: transform 0.18s ease;
}

.m4s-nav-dropdown:hover .m4s-nav-dropdown-caret,
.m4s-nav-dropdown:focus-within .m4s-nav-dropdown-caret {
  transform: rotate(180deg);
}

.m4s-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #fff;
  border: 1px solid var(--m4s-light-gray);
  min-width: 220px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  z-index: 110;
  padding: 0.5rem 0;
  border-radius: 10px;
}

.m4s-nav-dropdown:hover .m4s-nav-dropdown-menu,
.m4s-nav-dropdown:focus-within .m4s-nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.m4s-nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: var(--m4s-text) !important;
  font-weight: 500;
  text-decoration: none !important;
  white-space: nowrap;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.m4s-nav-dropdown-menu a:hover {
  background: var(--m4s-light-gray);
  color: var(--m4s-accent) !important;
}

.m4s-header.scrolled .m4s-nav-dropdown-menu {
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.08);
}

.m4s-header.scrolled .m4s-nav-dropdown-menu a {
  color: var(--m4s-white) !important;
}

.m4s-header.scrolled .m4s-nav-dropdown-menu a:hover {
  background: rgba(230, 57, 70, 0.15);
  color: var(--m4s-accent) !important;
}

/* "Nové" badge — used on dropdown triggers & mobile list items */
.m4s-nav-badge-new {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 900;
  background: #22c55e;
  color: #fff;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  vertical-align: middle;
  margin-left: 0.4rem;
  box-shadow: 0 1px 3px rgba(34, 197, 94, 0.35);
}

.m4s-cta-header {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--m4s-accent);
  color: var(--m4s-white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s;
  box-shadow: 0 0 15px rgba(230,57,70,0.4);
}

.m4s-cta-icon {
  display: inline-block;
  flex-shrink: 0;
}

.m4s-cta-header:hover {
  background: var(--m4s-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(230,57,70,0.6), 0 0 25px rgba(230,57,70,0.5);
}

/* Hamburger */
.m4s-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 9998;
}

.m4s-hamburger {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--m4s-text);
  border-radius: 2px;
  position: relative;
  transition: background 0.3s;
}

.m4s-hamburger::before,
.m4s-hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 28px;
  height: 3px;
  background: var(--m4s-text);
  border-radius: 2px;
  transition: transform 0.3s, top 0.3s;
}

.m4s-hamburger::before { top: -8px; }
.m4s-hamburger::after { top: 8px; }

.m4s-menu-toggle.active .m4s-hamburger { background: transparent; }
.m4s-menu-toggle.active .m4s-hamburger::before { top: 0; transform: rotate(45deg); background: var(--m4s-accent); }
.m4s-menu-toggle.active .m4s-hamburger::after { top: 0; transform: rotate(-45deg); background: var(--m4s-accent); }

.m4s-header.scrolled .m4s-hamburger,
.m4s-header.scrolled .m4s-hamburger::before,
.m4s-header.scrolled .m4s-hamburger::after {
  background: var(--m4s-white);
}

.m4s-header.scrolled .m4s-menu-toggle.active .m4s-hamburger { background: transparent; }

/* Mobile nav */
.m4s-mobile-nav {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.82) 100%),
    var(--m4s-black) url('/web/hero-bg.webp') center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 7rem 1.5rem 3rem;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
  z-index: 9998;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.m4s-mobile-nav.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.m4s-mobile-nav-logo {
  position: absolute;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.m4s-mobile-nav-logo img {
  height: 48px;
  width: auto;
}

.m4s-mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 22rem;
}

.m4s-mobile-nav-links > li {
  display: flex;
  justify-content: center;
}

.m4s-mobile-nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  color: var(--m4s-white);
  text-decoration: none !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.85rem 1rem;
  width: 100%;
  text-align: center;
  border-radius: 8px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.m4s-mobile-nav-links a:hover,
.m4s-mobile-nav-links a:focus-visible {
  background: rgba(255,255,255,0.08);
  color: var(--m4s-accent);
}

.m4s-mobile-nav-links a:active {
  transform: scale(0.98);
}

.m4s-mobile-nav-links li.m4s-social-links {
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 0 1.25rem;
  margin: 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 0.5rem;
}

.m4s-mobile-nav-links li.m4s-social-links .m4s-social-link {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.2rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--m4s-white);
}

.m4s-mobile-nav-links li.m4s-social-links .m4s-social-link:hover {
  background: rgba(230,57,70,0.18);
  color: var(--m4s-accent);
  transform: translateY(-2px);
}

.m4s-mobile-nav-links .m4s-pomoc-btn,
.m4s-mobile-nav-links .m4s-cta-header {
  margin: 0.75rem auto 0;
  width: auto;
  min-width: 14rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  border-top: none !important;
  border-radius: 999px;
}

.m4s-mobile-nav-links .m4s-cta-header {
  font-size: 1.05rem;
  background: var(--m4s-accent);
  color: var(--m4s-white) !important;
}

.m4s-mobile-nav-links .m4s-brick-stack {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
}

/* Lock the hamburger on top of the mobile menu overlay */
.m4s-menu-toggle { z-index: 9999; position: relative; }

/* When menu is open, raise header so its sticky stacking context doesn't
   trap the fixed mobile nav below page content */
body:has(.m4s-mobile-nav.active) .m4s-header { z-index: 9998; }

@media (max-width: 1290px) {
  .m4s-menu-toggle { display: block; }
  .m4s-nav { display: none; }
}

@media (max-width: 768px) {
  .m4s-logo img { height: 40px; }
  .m4s-header { padding: 1rem 0; }
}

/* Hero fullpage */
.hero-fullpage {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('/web/hero-bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-fullpage::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 160px;
  background: linear-gradient(to bottom, rgba(245,245,245,0) 0%, rgba(245,245,245,0.65) 55%, var(--m4s-bg) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(26,26,26,0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  color: var(--m4s-white);
  padding: 2rem;
  width: 100%;
}

.hero-text {
  text-align: left;
  flex: 1 1 50%;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  font-weight: 800;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 1.4rem;
  color: rgba(255,255,255,0.95);
  margin: 0 0 2.5rem;
  max-width: 45ch;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .hero-text { text-align: center; flex: none; }
  .hero-content p { margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
  .hero-fullpage {
    background-attachment: scroll;
    min-height: calc(100svh - var(--m4s-header-h-mobile));
    padding-top: 1rem;
  }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content p { font-size: 1.1rem; }
}

@media (min-width: 769px) and (max-width: 1290px) {
  .hero-fullpage {
    min-height: calc(100vh - var(--m4s-header-h));
  }
}

/* Magnetic Button */
.btn-magnetic {
  position: relative;
  display: inline-block;
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--m4s-accent) !important;
  color: var(--m4s-white) !important;
  border: none !important;
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  will-change: transform;
  box-shadow: 0 8px 25px rgba(230,57,70,0.4), 0 0 30px rgba(230,57,70,0.3);
  text-decoration: none !important;
}

.btn-magnetic:hover {
  background: var(--m4s-accent-hover) !important;
  box-shadow: 0 12px 35px rgba(230,57,70,0.6), 0 0 45px rgba(230,57,70,0.5);
}

@media (max-width: 768px) {
  .btn-magnetic { padding: 1rem 2rem; font-size: 1.1rem; }
}

/* Donate Widget */
/* ── DonateWidget ─────────────────────────────────────────────
   Modern card: header → info → slider → price → CTA
   Tokens scoped to the widget so hero layout stays untouched. */
.donate-widget {
  --dw-primary: #e63946;
  --dw-primary-hover: #c92a37;
  --dw-dark: #141417;
  --dw-text: #1f2024;
  --dw-muted: #6b7079;
  --dw-border: #e7e8ec;
  --dw-tint-slider: #faf5f6;
  --dw-pad: 1.75rem;

  flex: 0 0 auto;
  width: 400px;
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  color: var(--dw-text);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 48px -16px rgba(20, 20, 23, 0.28), 0 4px 14px -6px rgba(20, 20, 23, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  position: relative;
}

.donate-header {
  background: var(--dw-dark);
  color: #fff;
  text-align: center;
  padding: 1.15rem var(--dw-pad) 1rem;
}

.donate-header-icon {
  width: 1.4em;
  height: 1.4em;
  flex-shrink: 0;
}

.donate-header-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.donate-widget-container {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: stretch;
  width: 400px;
  max-width: 100%;
}

.donate-widget-container .donate-widget {
  width: 100%;
}

.donate-widget-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  padding: 0 0.5rem;
  margin: 0;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

/* Wish */
.donate-wish {
  padding: var(--dw-pad);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: #fff;
}

.donate-wish-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dw-text);
  letter-spacing: 0.01em;
}

.donate-wish-textarea {
  width: 100%;
  min-height: 110px;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--dw-border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--dw-text);
  background: #fdfdfd;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}
.donate-wish-textarea::-moz-placeholder {
  color: var(--dw-muted);
  opacity: 0.85;
}
.donate-wish-textarea::placeholder {
  color: var(--dw-muted);
  opacity: 0.85;
}
.donate-wish-textarea:focus {
  outline: none;
  border-color: var(--dw-primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
  background: #fff;
}

.donate-wish-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 0.75rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.donate-wish-count {
  color: var(--dw-muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  margin-left: auto;
}

/* Inline privacy opt-out v wish-footeru */
.donate-wish-privacy {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--dw-muted);
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  line-height: 1.3;
}

.donate-wish-privacy input[type="checkbox"] {
  width: 0.95rem;
  height: 0.95rem;
  accent-color: var(--dw-primary);
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

.donate-wish-privacy a {
  color: var(--dw-primary);
  font-weight: 600;
  text-decoration: none;
}
.donate-wish-privacy a:hover { text-decoration: underline; }

/* Slider */
.donate-slider-section {
  background: var(--dw-tint-slider);
  padding: 1.5rem var(--dw-pad) 1.25rem;
  border-top: 1px solid var(--dw-border);
  border-bottom: 1px solid var(--dw-border);
}

.donate-slider {
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--dw-primary) 0%,
    var(--dw-primary) var(--donate-fill, 40%),
    #e8d5d8 var(--donate-fill, 40%),
    #e8d5d8 100%
  );
  outline: none;
  cursor: pointer;
  margin: 0;
}
.donate-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--dw-primary);
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(230, 57, 70, 0.5), 0 0 0 1px rgba(230, 57, 70, 0.3);
  cursor: pointer;
  -webkit-transition: transform 0.15s ease;
  transition: transform 0.15s ease;
}
.donate-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.donate-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--dw-primary);
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(230, 57, 70, 0.5), 0 0 0 1px rgba(230, 57, 70, 0.3);
  cursor: pointer;
}
.donate-slider:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.25);
}

.donate-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.9rem;
  font-size: 0.68rem;
  color: var(--dw-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.donate-slider-labels span { flex: 1 1 0; text-align: center; }
.donate-slider-labels span:first-child { text-align: left; }
.donate-slider-labels span:last-child  { text-align: right; }

/* Price */
.donate-price {
  background: #fff;
  padding: 1.5rem var(--dw-pad);
  text-align: center;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dw-text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.donate-price-currency {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--dw-muted);
  margin-left: 0.35rem;
  vertical-align: top;
  position: relative;
  top: 0.3rem;
}

/* CTA */
.donate-main-btn {
  border: 0;
  margin: 0;
  padding: 1.35rem var(--dw-pad);
  background: var(--dw-primary);
  color: #fff;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: background 0.2s ease, transform 0.1s ease;
  width: 100%;
  border-radius: 0;
}
.donate-main-btn:hover:not(:disabled) { background: var(--dw-primary-hover); }
.donate-main-btn:active:not(:disabled) { transform: translateY(1px); }
.donate-main-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.donate-heart { flex-shrink: 0; }

/* Spinner */
.donate-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: donate-spin 0.6s linear infinite;
}
@keyframes donate-spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  .donate-widget { max-width: 100%; --dw-pad: 1.4rem; }
  .donate-price { font-size: 2.5rem; }
  .donate-bricks-count { font-size: 1.8rem; }
  .donate-logo-mark { width: 58px; height: 58px; }
  .donate-logo-mark svg { width: 34px; height: 34px; }
}

/* Spinner */
.donate-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: donate-spin 0.6s linear infinite;
}

@keyframes donate-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
  .donate-widget { max-width: 100%; }
}

/* Too-low modal */
.donate-toolow-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.donate-toolow-modal {
  background: white;
  color: var(--m4s-text);
  border-radius: 16px;
  padding: 2rem;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.donate-toolow-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.donate-toolow-modal h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--m4s-accent);
}

.donate-toolow-modal p {
  color: var(--m4s-gray);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Navbar brick counter — plain text link jako ostatní nav položky */
.m4s-brick-stack {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none !important;
  color: var(--m4s-text);
  font-weight: 500;
  transition: color 0.2s;
}

.m4s-brick-stack:hover {
  color: var(--m4s-accent);
}

.m4s-header.scrolled .m4s-brick-stack {
  color: var(--m4s-white);
}

.m4s-header.scrolled .m4s-brick-stack:hover {
  color: var(--m4s-accent);
}

.m4s-brick-stack img {
  width: 18px;
  height: 18px;
}

.m4s-brick-stack-count {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* Mobile menu: zachovat jemný rámeček, ať pill splývá s ostatními mobile itemy */
.m4s-mobile-nav-links .m4s-brick-stack {
  padding: 0.5rem 1rem;
  color: var(--m4s-white);
}

.m4s-mobile-nav-links .m4s-brick-stack:hover {
  color: var(--m4s-accent);
}

/* Cards / Brutalist */
.m4s-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
  margin: 4rem 0;
}

@media (min-width: 900px) {
  .m4s-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .m4s-cards { grid-template-columns: 1fr; }
}

.m4s-card {
  background: var(--m4s-white);
  border: none;
  border-left: 4px solid var(--m4s-accent);
  border-radius: 0;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  text-decoration: none !important;
  color: inherit;
  display: block;
}

.m4s-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(230,57,70,0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.m4s-card:hover::before { opacity: 1; }

.m4s-card.is-visible {
  animation: m4s-slideUp 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
  animation-delay: var(--reveal-delay, 0s);
}

@keyframes m4s-slideUp {
  to { opacity: 1; transform: translateY(0); }
}

.m4s-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: -6px 6px 0 rgba(230,57,70,0.15);
  border-left-color: var(--m4s-accent-hover);
}

.m4s-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.9;
}

.m4s-card h3 {
  margin-bottom: 1rem;
  color: var(--m4s-text);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.m4s-card p {
  color: var(--m4s-gray);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 1rem;
}

/* Buttons */
.m4s-btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: transparent;
  color: var(--m4s-accent);
  font-weight: 600;
  border: 2px solid var(--m4s-accent);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  font-size: 0.95rem;
  text-decoration: none !important;
}

.m4s-btn:hover {
  background: var(--m4s-accent);
  color: var(--m4s-white);
  transform: translateX(4px);
}

/* Section variants */
.m4s-section { padding: 4rem 0; }

.m4s-section-title {
  text-align: center;
  margin-bottom: 4rem;
  font-size: 2.5rem;
  font-weight: 700;
}

.m4s-section-dark {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  color: var(--m4s-white);
  padding: 5rem 0;
}

.m4s-section-dark h2 { color: var(--m4s-white); }
.m4s-section-dark p { color: #ccc; }

.m4s-section-accent {
  background: linear-gradient(135deg, var(--m4s-accent) 0%, #d63444 100%);
  color: var(--m4s-white);
  padding: 5rem 0;
  text-align: center;
}

/* Content wrapper (for article pages) */
.m4s-content {
  max-width: var(--m4s-content-width);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.m4s-content article h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.m4s-content article h2 {
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.m4s-content article h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.m4s-content article p {
  margin-bottom: 1rem;
  max-width: var(--m4s-content-width);
  line-height: 1.7;
}

.m4s-content article ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.m4s-content article li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.m4s-content article hr {
  border: none;
  border-top: 1px solid var(--m4s-light-gray);
  margin: 2rem 0;
}

.m4s-content article a {
  color: var(--m4s-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.m4s-content article a:hover { opacity: 0.8; }

.privacy-updated {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-bottom: 2rem;
}

/* Material Icons inline */
.material-icons.emoji-icon {
  vertical-align: -0.2em;
  font-size: 1.25em;
  margin-right: 0.2rem;
}

/* Story cards */
.stories-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 6rem 0 4rem;
  text-align: center;
  color: white;
}

.stories-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.stories-hero p {
  font-size: 1.3rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

.story-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit;
}

.story-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.story-image {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.story-image::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.story-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.story-content h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.story-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1rem;
  font-style: italic;
}

.story-excerpt {
  color: #444;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

.story-meta {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
  color: #888;
}

.story-tag {
  background: #f0f0f0;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* Stories (dynamický DB count): cap na 3 sloupce via max-width */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 3rem;
  padding: 4rem 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .stories-hero h1 { font-size: 2rem; }
  .stories-hero p { font-size: 1.1rem; }
  .stories-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* CTA section */
.m4s-cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 4rem 0;
  text-align: center;
  color: white;
}

.m4s-cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.m4s-cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.btn-light-large {
  background: white;
  color: #667eea !important;
  padding: 1rem 3rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none !important;
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-light-large:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Partner grid */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
  color: inherit;
  padding: 1.5rem;
  background: var(--m4s-white);
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 180px;
  max-width: 220px;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.partner-card img {
  height: 60px;
  width: auto;
  max-width: 140px;
  margin-bottom: 0.75rem;
}

.partner-card p {
  font-size: 0.85rem;
  color: var(--m4s-gray);
  margin: 0;
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .partner-grid { gap: 1rem; }
  .partner-card { padding: 1rem; min-width: 140px; flex: 1 1 calc(50% - 0.5rem); }
  .partner-card img { height: 45px; }
  .partner-card p { font-size: 0.75rem; }
}

/* Footer */
.m4s-footer {
  background: var(--m4s-black);
  color: var(--m4s-white);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}

.m4s-footer a {
  color: var(--m4s-white);
  text-decoration: none !important;
}

.m4s-footer a:hover { color: var(--m4s-accent); }

/* Footer: 4 sekce — orphan-safe (1 → 2 → 4) */
.m4s-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-bottom: 2rem;
}

@media (min-width: 600px) {
  .m4s-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .m4s-footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.m4s-footer-section h4 {
  margin-bottom: 1rem;
  color: var(--m4s-accent);
}

.m4s-footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.m4s-footer-section li { margin-bottom: 0.5rem; }

.m4s-footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
  color: var(--m4s-gray);
  font-size: 0.9rem;
}

/* Partner logos: 5 log — orphan-safe (1 → 5; skip 2,3,4 protože N=5) */
.m4s-partner-logos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
  align-items: center;
  justify-items: center;
}

@media (min-width: 720px) {
  .m4s-partner-logos { grid-template-columns: repeat(5, 1fr); }
}

.m4s-partner-logo {
  width: 100%;
  max-width: 140px;
  height: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
  filter: grayscale(0.2);
}

.m4s-partner-logo:hover {
  opacity: 1;
  transform: scale(1.05);
  filter: grayscale(0);
}

@media (max-width: 768px) {
  .m4s-partner-logo { max-width: 100px; }
}

/* Subpage hero */
.m4s-hero {
  background: linear-gradient(135deg, var(--m4s-black) 0%, #2a2a2a 100%);
  color: var(--m4s-white);
  padding: 6rem 0;
  text-align: center;
}

.m4s-hero h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.1;
  font-weight: 800;
}

.m4s-hero p {
  font-size: 1.25rem;
  color: #ccc;
  margin: 0 auto 2rem;
  max-width: 50ch;
}

/* ══════ Cihly page ══════ */

.cihly-hero {
  background: var(--m4s-black);
  color: white;
  padding: 5rem 0 4rem;
}

.cihly-hero-content {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}

.cihly-hero-text {
  flex: 1 1 55%;
}

.cihly-hero-text h1 {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.cihly-hero-text p {
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: 55ch;
}

.cihly-hero-text strong {
  color: var(--m4s-accent);
}

.cihly-hero-rate {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4) !important;
  margin-top: 1rem;
}

.cihly-hero-rate a {
  color: var(--m4s-accent);
  text-decoration: none;
}

.cihly-hero-rate a:hover {
  text-decoration: underline;
}

.cihly-hero-widget {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .cihly-hero-content {
    flex-direction: column;
    align-items: center;
  }
  .cihly-hero-text { text-align: center; }
  .cihly-hero-text p { margin-left: auto; margin-right: auto; }
  .cihly-hero-text h1 { font-size: 1.8rem; }
}

/* KPI row */
.cihly-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cihly-kpi {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1rem;
}

.cihly-kpi-label {
  display: block;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.25rem;
}

.cihly-kpi-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: white;
  font-family: 'Space Grotesk', monospace;
}

@media (max-width: 500px) {
  .cihly-kpi-row { grid-template-columns: 1fr; }
  .cihly-kpi { text-align: center; }
}

/* Feed */
.cihly-feed {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 600px;
  margin: 0 auto;
}

.cihly-feed-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.cihly-feed-item.done { border-left: 3px solid #4ade80; }
.cihly-feed-item.progress { border-left: 3px solid #facc15; }
.cihly-feed-item.received { border-left: 3px solid #60a5fa; }
.cihly-feed-item.cancelled { border-left: 3px solid #888; }

.cihly-feed-status { flex-shrink: 0; padding-top: 0.1rem; }

.cihly-feed-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

.cihly-feed-badge.done { background: rgba(74,222,128,0.15); color: #4ade80; }
.cihly-feed-badge.progress { background: rgba(250,204,21,0.15); color: #facc15; }
.cihly-feed-badge.received { background: rgba(96,165,250,0.15); color: #60a5fa; }
.cihly-feed-badge.cancelled { background: rgba(136,136,136,0.15); color: #888; }

.cihly-feed-body { flex: 1; min-width: 0; }

.cihly-feed-text {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.cihly-feed-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.15rem;
  display: block;
}

/* Bazaar */
.cihly-bazaar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.cihly-bazaar-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid var(--m4s-light-gray);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.cihly-bazaar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.cihly-bazaar-card.society {
  border-left: 3px solid #16a34a;
}

.cihly-bazaar-card.service {
  border-left: 3px solid var(--m4s-accent);
}

.cihly-bazaar-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cihly-bazaar-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.cihly-bazaar-card p {
  font-size: 0.85rem;
  color: var(--m4s-gray);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.cihly-bazaar-price {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--m4s-text);
}

.cihly-bazaar-tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #16a34a;
  background: rgba(22,163,74,0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

/* Steps */
.cihly-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cihly-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.cihly-step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--m4s-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
}

.cihly-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.cihly-step p {
  font-size: 0.9rem;
  color: var(--m4s-gray);
  line-height: 1.6;
}

/* Terms */
.cihly-terms h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

.cihly-terms h3:first-child {
  margin-top: 0;
}

.cihly-terms p {
  color: var(--m4s-gray);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.cihly-terms em {
  color: var(--m4s-text);
}

.cihly-terms-closing {
  margin-top: 2rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--m4s-text) !important;
  font-style: italic;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .m4s-card {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-fullpage {
    background-attachment: scroll !important;
  }

  .story-card:hover,
  .partner-card:hover,
  .m4s-card:hover,
  .btn-light-large:hover,
  .m4s-partner-logo:hover,
  .m4s-social-link:hover,
  .m4s-cta-header:hover,
  .donate-main-btn:hover {
    transform: none !important;
  }
}

/* ══════ Donate "Too Low" Modal (override for standalone) ══════ */

@keyframes donate-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes donate-scale-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ══════ Activity Console ══════ */

.activity-console-section {
  padding: 3rem 0;
  background: var(--m4s-black);
}

.activity-console {
  max-width: 700px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  border: 1px solid #333;
}

.activity-console-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #2a2a2a;
  border-bottom: 1px solid #333;
}

.activity-console-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}

.activity-console-dot--yellow { background: #febc2e; }
.activity-console-dot--green { background: #28c840; }

.activity-console-title {
  margin-left: 8px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.75rem;
  color: #888;
  letter-spacing: 0.02em;
}

.activity-console-body {
  background: #0d1117;
  padding: 1rem 1.25rem;
  min-height: 120px;
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.activity-console-body::-webkit-scrollbar {
  width: 6px;
}

.activity-console-body::-webkit-scrollbar-track {
  background: transparent;
}

.activity-console-body::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

.activity-console-line {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
}

.activity-console-time {
  color: #484f58;
  flex-shrink: 0;
}

.activity-console-author {
  color: #58a6ff;
  font-weight: 600;
  flex-shrink: 0;
}

.activity-console-author::after {
  content: ':';
}

.activity-console-msg {
  color: #c9d1d9;
}

.activity-console-cursor {
  color: #39d353;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  animation: console-blink 1s step-end infinite;
  margin-top: 2px;
}

@keyframes console-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (max-width: 600px) {
  .activity-console-section { padding: 2rem 0; }
  .activity-console { border-radius: 0; border-left: none; border-right: none; }
  .activity-console-body { padding: 0.75rem 1rem; max-height: 260px; }
  .activity-console-line { font-size: 0.72rem; }
}

/* /dary feed — responsive cards */
.dary-list article {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dary-list article:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

@media (max-width: 720px) {
  .dary-list article {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
}

/* Poster gallery (akce/na-ulici) — orphan-safe pro N=3,5,11: 1 → 3 */
.m4s-posters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2.5rem 0 4rem;
}

@media (min-width: 900px) {
  .m4s-posters-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .m4s-posters-grid { gap: 1.5rem; }
}

.m4s-poster {
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: var(--m4s-white);
  border-left: 4px solid var(--m4s-accent);
}

.m4s-poster a {
  display: block;
  line-height: 0;
  background: #111;
}

.m4s-poster img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 2 / 3;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.m4s-poster a:hover img {
  transform: scale(1.03);
  opacity: 0.92;
}

.m4s-poster figcaption {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.m4s-poster figcaption strong {
  font-size: 1.05rem;
  color: var(--m4s-text);
  letter-spacing: 0.01em;
}

.m4s-poster figcaption span {
  font-size: 0.9rem;
  color: var(--m4s-gray);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   DismissableTopBar — generic announcement bar (localStorage TTL)
   Renders in document flow above .m4s-header. When dismissed,
   disappears entirely so hero returns to full height.
   ═══════════════════════════════════════════════════════════════ */
.dismissable-top-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.65rem 2.75rem 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  z-index: 101;
}

.dismissable-top-bar--accent {
  background: var(--m4s-accent);
  color: #fff;
}

.dismissable-top-bar--info {
  background: var(--m4s-black);
  color: #fff;
}

.dismissable-top-bar a.dismissable-top-bar-link,
.dismissable-top-bar .dismissable-top-bar-text {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff !important;
  text-decoration: none !important;
  text-align: center;
  line-height: 1.3;
}

.dismissable-top-bar a.dismissable-top-bar-link:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

.dismissable-top-bar-tag {
  background: #fff;
  color: var(--m4s-accent);
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.dismissable-top-bar-logos {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.25rem;
  flex-shrink: 0;
}

.dismissable-top-bar-logos img {
  display: block;
  height: 22px;
  width: auto;
  background: #fff;
  border-radius: 5px;
  padding: 3px 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.dismissable-top-bar-arrow {
  flex-shrink: 0;
  font-weight: 700;
  margin-left: 0.15rem;
}

.dismissable-top-bar-copy {
  display: inline;
}

.dismissable-top-bar-close {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.5rem;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.dismissable-top-bar-close:hover,
.dismissable-top-bar-close:focus-visible {
  opacity: 1;
  outline: none;
}

@media (max-width: 768px) {
  .dismissable-top-bar {
    font-size: 0.78rem;
    padding: 0.55rem 2.5rem 0.55rem 0.85rem;
    gap: 0.45rem;
    flex-wrap: wrap;
  }
  .dismissable-top-bar-tag {
    font-size: 0.62rem;
    padding: 0.08rem 0.4rem;
  }
  .dismissable-top-bar-logos img {
    height: 18px;
    padding: 2px 4px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   /dary — hero + dvousloupcový widget
   ═══════════════════════════════════════════════════════════════ */

/* Hero pozadí — user dodá dary-hero.webp; fallback: černá */
.dary-hero {
  background-color: var(--m4s-black);
  background-image: url('/web/dary-hero.webp');
}

.dary-hero-text {
  color: var(--m4s-white);
}

.dary-hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.dary-hero-text p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 2rem;
  max-width: 52ch;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.dary-hero-tag {
  display: inline-block;
  background: var(--m4s-accent);
  color: #fff;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.35);
}

.dary-hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.5rem;
  max-width: 520px;
}

.dary-hero-kpi {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left: 3px solid var(--m4s-accent);
  padding: 0.75rem 0.9rem;
  text-align: left;
}

.dary-hero-kpi-value {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.1;
}

.dary-hero-kpi-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.15rem;
  letter-spacing: 0.02em;
}

@media (max-width: 1024px) {
  .dary-hero-kpis {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  .dary-hero-kpis {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    max-width: 320px;
  }
  .dary-hero-kpi {
    padding: 0.6rem 0.85rem;
  }
  .dary-hero-kpi-value {
    font-size: 1.2rem;
  }
}

/* Dvousloupcový widget — „Co potřebujeme" + „Obdržené dary" */
.dary-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

.dary-split-col {
  min-width: 0;
}

.dary-split-title {
  font-size: 1.75rem;
  font-weight: 900;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}

.dary-split-lead {
  color: var(--m4s-gray);
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .dary-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Payables widget — karty konkrétních výdajů */
.payables-widget {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.payables-widget-empty {
  background: var(--m4s-white);
  padding: 2rem;
  text-align: center;
  color: var(--m4s-gray);
  border-radius: 12px;
  line-height: 1.5;
}

.payables-widget-empty-sub {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.payable-card {
  background: var(--m4s-white);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.payable-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.payable-card--funded {
  opacity: 0.75;
}

.payable-card--funded:hover {
  transform: none;
}

.payable-card-head {
  margin-bottom: 0.75rem;
}

.payable-card-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.payable-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--m4s-light-gray);
  color: var(--m4s-text);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.payable-tag--funded {
  background: #dcfce7;
  color: #166534;
}

.payable-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.payable-card-vendor {
  font-size: 0.8rem;
  color: var(--m4s-gray);
  margin: 0.2rem 0 0;
}

.payable-card-desc {
  font-size: 0.9rem;
  color: var(--m4s-text);
  line-height: 1.5;
  margin: 0 0 1rem;
}

.payable-card-progress {
  margin: 0.75rem 0 1rem;
}

.payable-progress-bar {
  height: 8px;
  background: var(--m4s-light-gray);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.payable-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--m4s-accent), #f97068);
  transition: width 0.35s ease;
}

.payable-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--m4s-gray);
}

.payable-progress-meta strong {
  color: var(--m4s-text);
  font-weight: 800;
}

.payable-progress-count {
  font-size: 0.78rem;
}

.payable-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.payable-card-cta {
  background: var(--m4s-accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.payable-card-cta:hover {
  background: var(--m4s-accent-hover);
  transform: translateY(-1px);
}

.payable-card-due {
  font-size: 0.78rem;
  color: var(--m4s-gray);
}

.payable-card-funded-note {
  font-size: 0.88rem;
  color: #166534;
  font-weight: 600;
}

/* Precheck modal pro výběr částky před Stripe checkoutem */
.payable-precheck-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: payable-fade 0.18s ease;
}

@keyframes payable-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.payable-precheck-modal {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.payable-precheck-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: transparent;
  border: 0;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--m4s-gray);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.payable-precheck-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--m4s-accent);
  margin-bottom: 0.3rem;
}

.payable-precheck-head h3 {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
}

.payable-precheck-label {
  display: block;
  font-size: 0.85rem;
  color: var(--m4s-gray);
  margin-bottom: 0.4rem;
}

.payable-precheck-input {
  width: 100%;
  font-size: 1.5rem;
  font-weight: 700;
  border: 1.5px solid var(--m4s-light-gray);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.75rem;
  font-family: inherit;
  box-sizing: border-box;
}

.payable-precheck-input:focus {
  outline: none;
  border-color: var(--m4s-accent);
}

.payable-precheck-presets {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.payable-precheck-preset {
  background: var(--m4s-light-gray);
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.payable-precheck-preset:hover,
.payable-precheck-preset.is-active {
  background: var(--m4s-accent);
  color: #fff;
}

.payable-precheck-fullnote {
  background: var(--m4s-light-gray);
  padding: 0.9rem 1rem;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

.payable-precheck-submit {
  width: 100%;
  background: var(--m4s-accent);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease;
}

.payable-precheck-submit:hover:not(:disabled) {
  background: var(--m4s-accent-hover);
}

.payable-precheck-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Print */
@media print {
  .m4s-header, .m4s-footer, .m4s-cta-header, .dismissable-top-bar { display: none; }
}

