/* =========================================================
   Úsměv+ · sdílené styly
   ========================================================= */
:root {
  --sun: #F5C200;
  --sun-soft: #FFE27A;
  --amber: #C47F00;
  --amber-text: #9A6400; /* tmavší varianta pro malý text kvůli kontrastu AA */
  --ink: #1F1A14;
  --ink-soft: #5C5447;
  --cream: #FFF8E1;
  --paper: #FFFDF6;
  --line: #EADFC2;
  --coral: #FF7A59;
  --night: #1B2440;
  --night-2: #2B3760;
  --ok: #3A9D5D;
  --sky: #E3ECFF;

  --r: 18px;
  --r-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(196, 127, 0, .25);
  --shadow-lg: 0 22px 48px -18px rgba(196, 127, 0, .38);
  --bar-h: 56px;
  --wrap: 1180px;

  --f-head: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --f-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Fraunces", Georgia, serif;
  --f-hand: "Caveat", "Comic Sans MS", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--amber-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

h1, h2 { font-family: var(--f-head); line-height: 1.05; margin: 0 0 .5em; }
h1 { font-weight: 800; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.01em; color: var(--ink); }
h3 { font-family: var(--f-text); font-weight: 700; font-size: 1.15rem; line-height: 1.3; margin: 0 0 .4em; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-text); margin-bottom: .6em; display: block; }
.amber { color: var(--amber); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--cream { background: var(--cream); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--f-text); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn--primary { background: var(--sun); color: var(--ink); box-shadow: var(--shadow); }
.btn--primary:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-lg); background: #FFCB0A; }
.btn--primary:active { transform: translateY(0); box-shadow: var(--shadow); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { color: var(--ink); background: rgba(31, 26, 20, .06); transform: translateY(-2px); }
.btn--secondary:active { transform: translateY(0); }
.btn--light { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn--light:hover { background: rgba(255, 248, 225, .1); color: #fff; }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Karty a štítky ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px; box-shadow: var(--shadow);
}
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-sm); font-size: .78rem; font-weight: 700; line-height: 1.4; }
.tag--coral { background: var(--coral); color: var(--ink); }
.tag--sun { background: var(--sun); color: var(--ink); }
.tag--line { background: var(--cream); border: 1px solid var(--line); color: var(--ink-soft); }
.icon-bubble { width: 56px; height: 56px; border-radius: 16px; background: var(--sun-soft); display: grid; place-items: center; margin-bottom: 18px; color: var(--ink); }
.icon-bubble svg { width: 28px; height: 28px; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.stars { color: var(--sun); letter-spacing: 2px; font-size: 1.05rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .95rem; background: var(--sun-soft); color: var(--ink); flex: none; }

/* motiv tabletky / kapsle */
.capsule { display: inline-block; width: 56px; height: 22px; border-radius: 999px; background: linear-gradient(90deg, var(--sun) 50%, var(--cream) 50%); box-shadow: inset 0 -3px 0 rgba(0,0,0,.08), 0 6px 14px -6px rgba(196,127,0,.5); border: 1px solid rgba(196,127,0,.25); }
.capsule-divider { display: flex; align-items: center; gap: 16px; justify-content: center; padding: 8px 0; }
.capsule-divider::before, .capsule-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; max-width: 240px; }

/* ---------- Projektová lišta ---------- */
.projectbar {
  position: sticky; top: 0; z-index: 100; height: var(--bar-h);
  background: var(--ink); color: var(--cream);
  font-family: var(--f-text); font-size: .875rem;
}
.projectbar__in { height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 16px; }
.projectbar__brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-weight: 600; white-space: nowrap; flex: none; }
.projectbar__brand img { width: 28px; height: 28px; }
.projectbar__brand span b { font-family: var(--f-head); font-weight: 800; }
.projectbar__brand:hover { color: #fff; }
.pnav { margin-left: auto; display: flex; align-items: stretch; height: 100%; }
.pnav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; height: 100%; }
.pnav li { position: relative; display: flex; }
.pnav a, .pnav__toggle {
  display: flex; align-items: center; gap: 6px; padding: 0 9px; height: 100%;
  color: rgba(255, 248, 225, .7); text-decoration: none; font-weight: 500; white-space: nowrap;
  background: none; border: 0; border-bottom: 3px solid transparent; border-top: 3px solid transparent; font-size: .84rem;
}
.pnav a:hover, .pnav__toggle:hover, .pnav a[aria-current="page"], .pnav__toggle.is-current { color: #fff; }
.pnav a[aria-current="page"], .pnav__toggle.is-current { border-bottom-color: var(--sun); }
.tasknum {
  display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 999px;
  background: var(--sun); color: var(--ink); font-size: 10px; font-weight: 800; line-height: 1;
}
.pnav__toggle svg { width: 12px; height: 12px; transition: transform .2s; }
.pnav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.pnav__drop {
  position: absolute; top: 100%; left: 0; min-width: 190px; list-style: none; margin: 0; padding: 8px;
  background: var(--ink); border-radius: 0 0 12px 12px; box-shadow: 0 18px 30px -12px rgba(0,0,0,.5);
  display: none; flex-direction: column;
}
.pnav__drop.is-open { display: flex; }
.pnav__drop a { height: auto; padding: 10px 12px; border: 0; border-radius: 8px; }
.pnav__drop a:hover, .pnav__drop a[aria-current="page"] { background: rgba(255,248,225,.08); color: #fff; }
.pnav__drop a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--sun); }
.projectbar__menu { display: none; margin-left: auto; align-items: center; gap: 8px; background: var(--sun); color: var(--ink); border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: .9rem; }
.projectbar__menu svg { width: 18px; height: 18px; }

@media (max-width: 1240px) { .projectbar__brand .pb-sub { display: none; } }
@media (max-width: 1079px) {
  .pnav { display: none; }
  .projectbar__menu { display: inline-flex; }
  .projectbar__brand .pb-sub { display: inline; }
}

/* mobilní panel */
.mpanel {
  position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--cream);
  overflow-y: auto; padding: 0 20px 40px; display: none;
}
.mpanel.is-open { display: block; animation: mpanelIn .25s ease; }
@keyframes mpanelIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.mpanel__top { height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--ink); }
.mpanel__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,248,225,.25); background: none; color: var(--cream); display: grid; place-items: center; }
.mpanel__close svg { width: 22px; height: 22px; }
.mpanel ul { list-style: none; margin: 8px 0 0; padding: 0; }
.mpanel li { border-bottom: 1px solid rgba(255,248,225,.1); }
.mpanel a.mlink { display: grid; grid-template-columns: 30px 1fr; gap: 4px 12px; padding: 14px 0; color: var(--cream); text-decoration: none; }
.mpanel a.mlink .tasknum { margin-top: 9px; width: 22px; height: 22px; font-size: 11px; }
.mpanel a.mlink strong { font-family: var(--f-head); font-weight: 700; font-size: 1.6rem; line-height: 1.2; }
.mpanel a.mlink small { grid-column: 2; color: rgba(255,248,225,.65); font-size: .88rem; line-height: 1.4; }
.mpanel a.mlink[aria-current="page"] strong { color: var(--sun); }
.mpanel .msub { padding: 0 0 12px 42px; margin: 0; }
.mpanel .msub li { border: 0; }
.mpanel .msub a { display: block; padding: 8px 0; color: rgba(255,248,225,.85); text-decoration: none; font-size: 1.1rem; font-weight: 600; }
.mpanel .msub a[aria-current="page"] { color: var(--sun); }

/* ---------- Štítek úkolu ---------- */
.taskstrip { background: var(--cream); border-bottom: 1px solid var(--line); font-size: .875rem; color: var(--ink); }
.taskstrip__in { max-width: 1440px; margin: 0 auto; padding: 9px 16px; display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.taskstrip__label { display: flex; align-items: center; gap: 8px; }
.taskstrip__label b { font-weight: 700; }
.taskstrip__nav { margin-left: auto; display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.taskstrip__nav a { color: var(--amber-text); text-decoration: none; font-weight: 600; }
.taskstrip__nav a:hover { text-decoration: underline; }
.taskstrip__nav span { color: var(--line); }
.taskstrip__close { width: 30px; height: 30px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: var(--ink-soft); flex: none; }
.taskstrip__close:hover { background: rgba(0,0,0,.06); }
.taskstrip__close svg { width: 16px; height: 16px; }
.taskstrip.is-hidden { display: none; }
@media (max-width: 600px) {
  .taskstrip__in { position: relative; padding-right: 44px; gap: 4px 12px; font-size: .82rem; }
  .taskstrip__nav { margin-left: 26px; width: auto; }
  .taskstrip__close { position: absolute; top: 6px; right: 8px; }
}

/* ---------- Patička projektu ---------- */
.projectfoot { background: var(--ink); color: rgba(255,248,225,.75); font-size: .85rem; padding: 28px 0; }
.projectfoot .wrap { display: flex; gap: 12px 32px; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
.projectfoot p { margin: 0; max-width: 62ch; }
.projectfoot strong { color: var(--cream); font-weight: 600; }
.projectfoot a { color: var(--sun); }

/* ---------- Hlavička e-shopu ---------- */
.shophead { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.shophead__in { max-width: var(--wrap); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 24px; }
.shophead__logo { display: flex; align-items: center; flex: none; }
.shophead__logo img { height: 40px; width: auto; }
.shopnav { margin-left: auto; }
.shopnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.shopnav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.shopnav a:hover { background: var(--cream); }
.shopnav a[aria-current="page"] { background: var(--sun-soft); }
.cartbtn { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); flex: none; }
.cartbtn svg { width: 22px; height: 22px; }
.cartbtn__count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--coral); color: var(--ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--paper); }
.cartbtn.is-bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.18); } }
.shopburger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; place-items: center; }
.shopburger svg { width: 22px; height: 22px; }
@media (max-width: 860px) {
  .shopburger { display: grid; }
  .shopnav { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); display: none; margin: 0; box-shadow: 0 20px 30px -20px rgba(0,0,0,.25); }
  .shopnav.is-open { display: block; }
  .shopnav ul { flex-direction: column; padding: 8px 12px 16px; }
  .shopnav a { padding: 12px 14px; border-radius: 12px; }
  .cartbtn { margin-left: auto; }
}

/* ---------- Patička e-shopu ---------- */
.shopfoot { background: #F6EED5; border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: .92rem; }
.shopfoot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.shopfoot h3 { font-size: .95rem; margin-bottom: 12px; }
.shopfoot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.shopfoot a { color: var(--ink); text-decoration: none; }
.shopfoot a:hover { color: var(--amber-text); text-decoration: underline; }
.shopfoot__social { display: flex; gap: 10px; }
.shopfoot__social a { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; }
.shopfoot__social a:hover { background: var(--amber); color: #fff; }
.shopfoot__social svg { width: 20px; height: 20px; }
.shopfoot__disc { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.shopfoot__disc p { margin: 0; }
.dobryden { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-text); font-weight: 600; text-transform: lowercase; letter-spacing: -.01em; color: var(--ink); }
.dobryden svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .shopfoot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .shopfoot__grid { grid-template-columns: 1fr; } }

/* ---------- Toast ---------- */
.toast-host { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: .92rem; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); display: flex; align-items: center; gap: 10px; animation: toastIn .25s ease; }
.toast::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); flex: none; }
.toast.is-out { animation: toastOut .25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .4s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Mini krabička (CSS packshot pro náhledy) ---------- */
.minibox {
  --w: 120px; position: relative; width: var(--w); aspect-ratio: 60 / 100;
  background: var(--sun); border-radius: 4px; overflow: hidden; color: var(--ink);
  box-shadow: 0 0 0 1.5px rgba(150, 100, 0, .38), 14px 18px 30px -14px rgba(90, 60, 0, .45), inset -6px 0 0 rgba(0,0,0,.06);
  display: flex; flex-direction: column; align-items: center; text-align: center; font-family: var(--f-text);
}
.minibox::before { content: ""; position: absolute; left: -10%; right: -10%; top: -28%; height: 52%; background: #FFFDF6; border-radius: 0 0 50% 50% / 0 0 38% 38%; }
/* horní hrana víka, aby krabička nesplývala se světlým pozadím */
.minibox::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5%; min-height: 3px; background: linear-gradient(#E9D9A8, rgba(233, 217, 168, 0)); }
.minibox > * { position: relative; }
.minibox__mark { width: 44%; margin-top: 26%; }
.minibox__name { font-family: var(--f-head); font-weight: 800; font-size: calc(var(--w) * .16); line-height: 1; margin-top: 6%; letter-spacing: -.02em; }
.minibox__name sup { color: var(--amber); font-size: .7em; }
.minibox__slogan { font-size: calc(var(--w) * .058); margin-top: 4%; padding: 0 8%; line-height: 1.25; font-weight: 600; }
.minibox__foot { margin-top: auto; margin-bottom: 8%; font-size: calc(var(--w) * .052); font-weight: 600; opacity: .85; }
.minibox--side { position: absolute; }

/* Placeholder obrázek (CSS kompozice) */
.ph { position: relative; overflow: hidden; border-radius: var(--r); background: var(--cream); }
.ph__img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; z-index: 6; border-radius: inherit; }
.ph--photo .ph__label { display: none; }
.ph__label { position: absolute; left: 12px; bottom: 12px; background: rgba(31,26,20,.72); color: var(--cream); font-size: .7rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; letter-spacing: .02em; z-index: 5; }

/* ---------- Pomocné ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.infobox { display: flex; gap: 14px; padding: 20px 22px; border: 2px solid var(--amber); border-radius: var(--r); background: #fff; }
.infobox .ico { width: 24px; height: 24px; color: var(--amber); margin-top: 2px; }
.infobox p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .projectbar, .taskstrip, .projectfoot, .toast-host, .mpanel { display: none !important; }
}
