/* ==========================================================================
   PartyStyl s.r.o. — catering na klíč
   Sdílený design systém (shodný s PartyRozvoz / PartySklad)
   ========================================================================== */

:root {
  --bg: #f4f8fa;
  --paper: #ffffff;
  --surface-2: #e9eff3;
  --ink: #223640;
  --ink-soft: #5c7480;
  --ink-faint: #93a7b1;
  --line: #dbe5ea;
  --blue: #0090cc;
  --blue-dark: #006189;
  --blue-soft: #e6f5fc;
  --slate: #304650;
  --slate-deep: #223640;
  --gold: #b4671a;
  --gold-soft: #fdf4e7;
  --ok: #128a5e;
  --warn: #b4671a;
  --danger: #c0392b;
  --ok-soft: #e8f7f0;
  --maxw: 1200px;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(34, 54, 64, .04), 0 8px 26px rgba(34, 54, 64, .07);
  --shadow-lg: 0 4px 8px rgba(34, 54, 64, .06), 0 24px 60px rgba(34, 54, 64, .16);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0 0 .45em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.14rem; font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue-dark); }
img { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }

.eyebrow {
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 14px;
}

.lede { font-size: 1.13rem; color: var(--ink-soft); }

/* --- Tlačítka ------------------------------------------------------------ */

button, .btn {
  font-family: var(--sans);
  font-size: .93rem;
  font-weight: 600;
  border: 1px solid var(--blue);
  border-radius: 999px;
  padding: 13px 26px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.2;
  transition: background .18s, border-color .18s, color .18s, transform .06s;
}
button:hover, .btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
button:active, .btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--blue-dark); border-color: var(--line); }
.btn-ghost:hover { background: var(--blue-soft); color: var(--blue-dark); border-color: var(--blue); }
.btn-onslate { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-onslate:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* --- Lišta se sesterskými značkami ---------------------------------------- */

.brandbar {
  background: var(--slate-deep);
  color: #b7cbd6;
  font-size: .84rem;
}
.brandbar .wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  flex-wrap: wrap;
}
.brandbar-label {
  font-size: .69rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #7f97a3;
  font-weight: 600;
  margin-right: 6px;
}
.brandbar a {
  color: #dde7ec;
  text-decoration: none;
  padding: 5px 13px;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.brandbar a:hover { background: rgba(255,255,255,.12); color: #fff; }
.brandbar a.here { background: var(--blue); color: #fff; }
.brandbar a.here:hover { background: var(--blue); }
.brandbar .sep { color: #4c6875; }

/* --- Hlavička ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 248, 250, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 74px; }
.logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.1;
}
.logo span { color: var(--blue); }
.logo small {
  display: block;
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-header nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: .93rem;
  padding: 9px 14px;
  border-radius: 999px;
  transition: background .18s, color .18s;
}
.site-header nav a:hover { background: var(--blue-soft); color: var(--blue-dark); }
.site-header nav a.active { color: var(--blue-dark); font-weight: 600; }
.site-header nav a.tel { font-weight: 600; }
.site-header nav a.btn { color: #fff; font-weight: 600; }
.site-header nav a.btn:hover { color: #fff; }

.nav-toggle { display: none; }

/* --- Hero ----------------------------------------------------------------- */

.hero { padding: 60px 0 20px; }
.hero-grid { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
.hero h1 { margin-bottom: .3em; }
.hero .lede { max-width: 48ch; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hero-collage figure { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.hero-collage figure:first-child { grid-column: 1 / -1; aspect-ratio: 16/10; box-shadow: 0 20px 50px rgba(34,54,64,.16); }
.hero-collage figure:not(:first-child) { aspect-ratio: 4/3; box-shadow: var(--shadow); }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; display: block; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.stat b {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  display: block;
  line-height: 1.1;
}
.stat span { font-size: .79rem; color: var(--ink-faint); line-height: 1.4; display: block; }

/* --- Sekce ---------------------------------------------------------------- */

.section { padding: 84px 0; }
.section-sm { padding: 58px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}
.section-head > div { min-width: 0; }
.section-head h2 { margin-bottom: 0; }
.section-head p { color: var(--ink-soft); margin: 0; max-width: 44ch; }
.band-soft { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band { background: var(--slate); color: #dde7ec; }
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: #7fc7e8; }
.band p, .band .section-head p { color: #a8bfc9; }

/* --- Mřížky --------------------------------------------------------------- */

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

/* --- Karty služeb --------------------------------------------------------- */

.svc {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px 28px;
  transition: box-shadow .28s, transform .28s, border-color .28s;
}
.band-soft .svc { background: var(--bg); }
.svc:hover { box-shadow: 0 16px 40px rgba(34,54,64,.13); transform: translateY(-3px); border-color: var(--blue); }
.svc .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.svc .ico svg { width: 22px; height: 22px; }
.svc h3 { margin-bottom: 6px; }
.svc p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* --- Karty s fotkou (příležitosti) ---------------------------------------- */

.occ {
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  display: block;
  text-decoration: none;
  color: #fff;
  background: var(--surface-2);
  box-shadow: var(--shadow);
  transition: box-shadow .28s, transform .28s;
}
.occ:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.occ img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.occ:hover img { transform: scale(1.06); }
.occ .occ-body {
  position: absolute; inset: auto 0 0 0;
  padding: 22px 22px 20px;
  background: linear-gradient(to top, rgba(24,40,48,.92) 12%, rgba(24,40,48,.55) 55%, rgba(24,40,48,0) 100%);
}
.occ h3 { color: #fff; margin: 0 0 3px; font-size: 1.1rem; }
.occ p { font-size: .85rem; color: #cfdde4; margin: 0; }

/* --- Kroky ---------------------------------------------------------------- */

.steps { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.step .n {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 500;
  color: #6c94a8;
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}
.step h3 { font-size: 1.07rem; margin-bottom: 6px; }
.step p { font-size: .92rem; margin: 0; }

/* --- Galerie -------------------------------------------------------------- */

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.gallery button {
  padding: 0; border: 0; background: var(--surface-2);
  border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 1;
  cursor: zoom-in; display: block;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.gallery button:hover img { transform: scale(1.07); }

.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(20, 34, 41, .92);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 88vh; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.lightbox .lb-close {
  position: absolute; top: 18px; right: 18px;
  background: rgba(255,255,255,.14); border: 0; color: #fff;
  width: 42px; height: 42px; border-radius: 999px; font-size: 1.2rem; padding: 0;
}
.lightbox .lb-close:hover { background: rgba(255,255,255,.28); }
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.14); border: 0; color: #fff;
  width: 46px; height: 46px; border-radius: 999px; font-size: 1.3rem; padding: 0;
}
.lightbox .lb-nav:hover { background: rgba(255,255,255,.28); }
.lightbox .lb-prev { left: 18px; }
.lightbox .lb-next { right: 18px; }

/* --- Reference ------------------------------------------------------------ */

.quotes { columns: 3 300px; column-gap: 22px; }
.quote {
  break-inside: avoid;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 26px 22px;
  margin: 0 0 22px;
  box-shadow: var(--shadow);
}
.band-soft .quote { background: var(--bg); }
.quote p { font-size: .95rem; color: var(--ink); margin: 0 0 16px; }
.quote .mark { font-family: var(--serif); font-size: 2.6rem; line-height: .6; color: var(--blue); display: block; margin-bottom: 12px; }
.quote footer { font-size: .84rem; color: var(--ink-faint); border-top: 1px dashed var(--line); padding-top: 12px; }
.quote footer b { display: block; color: var(--ink); font-size: .9rem; font-weight: 600; }

/* --- Rodina značek -------------------------------------------------------- */

.family { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.fam {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 28px;
  display: flex; flex-direction: column;
  transition: box-shadow .28s, transform .28s, border-color .28s;
}
.fam:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.fam.primary { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--shadow); }
.fam .tag {
  align-self: flex-start;
  font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-soft);
  margin-bottom: 16px;
}
.fam.primary .tag { background: var(--blue); color: #fff; }
.fam h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; margin-bottom: 8px; }
.fam h3 span { color: var(--blue); }
.fam p { font-size: .93rem; color: var(--ink-soft); flex: 1; margin-bottom: 20px; }
.fam ul { list-style: none; margin: 0 0 22px; padding: 0; font-size: .89rem; color: var(--ink-soft); }
.fam ul li { padding-left: 22px; position: relative; margin-bottom: 5px; }
.fam ul li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 6px; height: 6px; border-radius: 999px; background: var(--blue);
}

/* --- Seznamy s odrážkou --------------------------------------------------- */

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 9px; color: var(--ink-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .45em;
  width: 15px; height: 9px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.band .ticks li { color: #a8bfc9; }
.band .ticks li::before { border-color: #7fc7e8; }

/* --- Info boxy ------------------------------------------------------------ */

.info {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 26px 24px;
}
.info h3 { margin-bottom: 12px; }
.info dl { margin: 0; font-size: .93rem; }
.info dt { font-weight: 600; color: var(--ink); margin-top: 12px; }
.info dt:first-child { margin-top: 0; }
.info dd { margin: 0 0 2px; color: var(--ink-soft); }

/* --- FAQ ------------------------------------------------------------------ */

.faq { max-width: 760px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  font-weight: 600;
  position: relative;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--blue); line-height: 1;
  transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--blue-dark); }
.faq .faq-body { padding: 0 40px 20px 0; color: var(--ink-soft); font-size: .95rem; }

/* --- Formulář ------------------------------------------------------------- */

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px 30px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.field label .req { color: var(--blue); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.field-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.form-note { font-size: .82rem; color: var(--ink-faint); margin-top: 14px; }
.hp { position: absolute; left: -9999px; }

.form-ok {
  background: var(--ok-soft);
  border: 1px solid #b7e3ce;
  color: #0d6b49;
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: .92rem;
  margin-bottom: 18px;
}

/* --- CTA pruh ------------------------------------------------------------- */

.cta-band {
  background: var(--slate);
  color: #dde7ec;
  border-radius: var(--r);
  padding: 44px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { color: #a8bfc9; margin: 0; max-width: 46ch; }
.cta-band .btn { flex: 0 0 auto; }

/* --- Patička -------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 58px 0 34px;
  font-size: .92rem;
  color: var(--ink-soft);
}
.footer-grid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.site-footer h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 11px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--blue-dark); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 5px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .84rem;
  color: var(--ink-faint);
  display: flex; gap: 8px 18px; flex-wrap: wrap;
}

/* --- Mapa ----------------------------------------------------------------- */

.map {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 100%;
  min-height: 340px;
  background: var(--surface-2);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; min-height: 340px; }

/* --- Utility -------------------------------------------------------------- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* --- Responzivita --------------------------------------------------------- */

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .split-wide { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
}

@media (max-width: 899px) {
  .section { padding: 62px 0; }
  .hero { padding: 40px 0 10px; }
  .cta-band { padding: 34px 28px; }
  .split, .split-wide { display: block; }
  .split > * + *, .split-wide > * + * { margin-top: 34px; }
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
    width: 44px; height: 44px;
    padding: 0;
    border-radius: 12px;
  }
  .nav-toggle svg { width: 20px; height: 20px; }
  .site-header nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 20px;
    margin-left: 0;
    display: none;
  }
  .site-header nav.open { display: flex; }
  .site-header nav a { padding: 12px 14px; font-size: 1rem; }
  .site-header nav a.btn { margin-top: 8px; justify-content: center; }
  .brandbar .wrap { font-size: .8rem; padding-top: 6px; padding-bottom: 6px; }
  .brandbar-label { width: 100%; margin-bottom: 2px; }
  .brandbar .sep { display: none; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 20px 18px; }
  .quotes { columns: 1; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .form-card { padding: 24px 20px; }
  .cta-band { padding: 28px 22px; }
}

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

/* ==========================================================================
   Plánovač akce
   ========================================================================== */

.planner { padding: 40px 0 90px; }

.planner-grid { display: grid; gap: 34px; align-items: start; }
@media (min-width: 1000px) {
  .planner-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 44px; }
  .planner-aside { position: sticky; top: 96px; }
}

/* --- Ukazatel kroků ------------------------------------------------------- */

.psteps {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
  flex-wrap: wrap;
}
.psteps li { flex: 1 1 130px; }
.psteps button {
  width: 100%;
  background: transparent;
  border: 0;
  border-top: 3px solid var(--line);
  border-radius: 0;
  padding: 12px 4px 0;
  text-align: left;
  color: var(--ink-faint);
  font-size: .82rem;
  font-weight: 600;
  display: block;
  transition: border-color .2s, color .2s;
}
.psteps button:hover { background: transparent; color: var(--ink-soft); border-top-color: var(--ink-faint); }
.psteps button .num {
  display: block;
  font-family: var(--serif);
  font-size: .95rem;
  color: inherit;
  margin-bottom: 1px;
}
.psteps li.done button { border-top-color: var(--blue-dark); color: var(--ink-soft); }
.psteps li.current button { border-top-color: var(--blue); color: var(--blue-dark); }

/* --- Kroky ---------------------------------------------------------------- */

.pstep { display: none; }
.pstep.active { display: block; animation: pstep-in .35s cubic-bezier(.2,.8,.2,1); }
@keyframes pstep-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pstep > h2 { margin-bottom: .3em; }
.pstep > .lede { margin-bottom: 30px; max-width: 60ch; }

.pblock { margin-bottom: 34px; }
.pblock > h3 {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

/* --- Chipsy (výběr) ------------------------------------------------------- */

.chipset { display: flex; flex-wrap: wrap; gap: 9px; }
.chipset label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
  user-select: none;
}
.chipset label:hover { border-color: var(--blue); color: var(--blue-dark); }
.chipset input { position: absolute; opacity: 0; width: 0; height: 0; }
.chipset input:checked + span,
.chipset label:has(input:checked) { background: var(--blue); border-color: var(--blue); color: #fff; }
.chipset label:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--blue-soft); }

/* --- Karty bloků programu -------------------------------------------------- */

.modules { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.mod {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 20px 18px;
  transition: border-color .2s, box-shadow .2s;
}
.mod.on { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.mod-head { display: flex; align-items: flex-start; gap: 13px; cursor: pointer; }
.mod-head input { position: absolute; opacity: 0; width: 0; height: 0; }
.mod-box {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border: 2px solid var(--line);
  border-radius: 7px;
  margin-top: 2px;
  position: relative;
  transition: background .18s, border-color .18s;
}
.mod.on .mod-box { background: var(--blue); border-color: var(--blue); }
.mod-box::after {
  content: "";
  position: absolute; left: 5px; top: 5px;
  width: 8px; height: 4px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform .18s;
}
.mod.on .mod-box::after { transform: rotate(-45deg) scale(1); }
.mod-head h4 { margin: 0 0 2px; font-size: 1rem; font-weight: 600; font-family: var(--sans); }
.mod-head p { margin: 0; font-size: .86rem; color: var(--ink-soft); }
.mod-opts { display: none; margin: 15px 0 0 35px; }
.mod.on .mod-opts { display: block; }
.mod-opts .chipset label { padding: 7px 14px; font-size: .84rem; background: var(--bg); }

/* --- Položky jídla --------------------------------------------------------- */

.foodgroup { margin-bottom: 40px; }
.foodgroup-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 14px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.foodgroup-head h3 { margin: 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; text-transform: none; letter-spacing: -.015em; color: var(--ink); }
.foodgroup-head span { font-size: .84rem; color: var(--ink-faint); }

.pitems { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.pitem {
  display: flex;
  gap: 13px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px;
  transition: border-color .2s, box-shadow .2s;
}
.pitem.picked { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.pitem-img {
  flex: 0 0 auto; width: 72px; height: 72px;
  border-radius: 9px; overflow: hidden;
  background: linear-gradient(160deg, var(--blue-soft), var(--surface-2));
}
.pitem-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pitem-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pitem-body h4 {
  margin: 0 0 2px; font-family: var(--sans);
  font-size: .89rem; font-weight: 600; line-height: 1.3;
}
.pitem-body em { font-style: normal; font-size: .78rem; color: var(--ink-faint); display: block; margin-bottom: 8px; }
.pitem-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; }

.qty { display: inline-flex; align-items: center; gap: 2px; }
.qty button {
  width: 30px; height: 30px; padding: 0;
  border-radius: 9px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.05rem; font-weight: 600;
  line-height: 1;
}
.qty button:hover { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-dark); }
.qty output {
  min-width: 34px; text-align: center;
  font-size: .92rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.pitem-note { font-size: .76rem; color: var(--ink-faint); }

.foodsearch { margin-bottom: 26px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.foodsearch input {
  flex: 1 1 240px;
  font-family: var(--sans); font-size: .93rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 11px 18px;
}
.foodsearch input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }

.pempty {
  background: var(--gold-soft);
  border: 1px solid #f0dcbe;
  color: #7c4a11;
  border-radius: var(--r-sm);
  padding: 16px 18px;
  font-size: .92rem;
}

/* --- Souhrn (sticky panel) -------------------------------------------------- */

.summary {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
}
.summary h3 {
  font-family: var(--sans); font-size: .76rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 14px;
}
.summary dl { margin: 0 0 16px; font-size: .89rem; }
.summary dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.summary dl > div:last-child { border-bottom: 0; }
.summary dt { color: var(--ink-faint); flex: 0 0 auto; }
.summary dd { margin: 0; text-align: right; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.summary .modlist { list-style: none; margin: 0 0 16px; padding: 0; font-size: .86rem; }
.summary .modlist li { padding-left: 18px; position: relative; margin-bottom: 4px; color: var(--ink-soft); }
.summary .modlist li::before {
  content: ""; position: absolute; left: 2px; top: .58em;
  width: 6px; height: 6px; border-radius: 999px; background: var(--blue);
}

.meter { margin-bottom: 16px; }
.meter-top { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-faint); margin-bottom: 6px; }
.meter-track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter-fill { height: 100%; width: 0; background: var(--blue); border-radius: 999px; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.meter-fill.full { background: var(--ok); }
.meter-fill.over { background: var(--gold); }
.meter-note { font-size: .78rem; color: var(--ink-faint); margin-top: 6px; }

.pnav { display: flex; gap: 10px; margin-top: 18px; }
.pnav .btn { flex: 1; }
.summary-reset {
  background: transparent; border: 0; color: var(--ink-faint);
  font-size: .78rem; font-weight: 500; padding: 10px 0 0; width: 100%;
}
.summary-reset:hover { background: transparent; color: var(--danger, #c0392b); text-decoration: underline; }

/* --- Rekapitulace v posledním kroku ----------------------------------------- */

.recap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 26px 24px;
  margin-bottom: 28px;
}
.recap h3 { margin-bottom: 14px; }
.recap-sec { margin-bottom: 20px; }
.recap-sec:last-child { margin-bottom: 0; }
.recap-sec h4 {
  font-family: var(--sans); font-size: .76rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
  margin: 0 0 8px;
}
.recap-sec ul { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.recap-sec li { padding: 5px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 14px; }
.recap-sec li:last-child { border-bottom: 0; }
.recap-sec li span:last-child { color: var(--ink-faint); flex: 0 0 auto; }
.recap-sec p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

@media (max-width: 999px) {
  .planner-aside { order: -1; }
  .summary { padding: 18px; }
  .psteps li { flex: 1 1 92px; }
  .psteps button { font-size: .72rem; }
}
@media (max-width: 560px) {
  .pitems { grid-template-columns: 1fr; }
  .modules { grid-template-columns: 1fr; }
}

.pitem-img { display: flex; align-items: center; justify-content: center; color: #8bacbd; }
.pitem-znacka { width: 26px; height: 26px; }

/* ==========================================================================
   Feed akcí
   ========================================================================== */

.feed { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.udalost {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .28s, transform .28s;
}
.udalost:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.udalost-foto {
  aspect-ratio: 3/2;
  background: linear-gradient(160deg, var(--blue-soft), var(--surface-2));
  overflow: hidden;
  position: relative;
}
.udalost-foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.udalost:hover .udalost-foto img { transform: scale(1.05); }
.udalost-pocet {
  position: absolute; bottom: 11px; right: 11px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(6px);
  color: var(--ink); font-size: .74rem; font-weight: 600;
  padding: 4px 11px; border-radius: 999px;
}
.udalost-telo { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.udalost-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 10px;
}
.udalost-meta .typ { color: var(--blue); }
.udalost-telo h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin: 0 0 8px; letter-spacing: -.015em; }
.udalost-telo p { font-size: .92rem; color: var(--ink-soft); margin: 0 0 16px; flex: 1; }
.udalost-spod {
  display: flex; gap: 8px 16px; flex-wrap: wrap;
  padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: .84rem; color: var(--ink-faint);
}
.udalost-spod b { color: var(--ink); font-weight: 600; }

.znacka-ukazka {
  background: var(--gold-soft); color: var(--gold);
  padding: 3px 9px; border-radius: 999px;
  font-size: .66rem; letter-spacing: .1em;
}

/* --- Detail akce ---------------------------------------------------------- */

.udalost-detail { max-width: 820px; }
.udalost-detail .zpet {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .88rem; font-weight: 600; text-decoration: none;
  color: var(--ink-soft); margin-bottom: 26px;
}
.udalost-detail .zpet:hover { color: var(--blue-dark); }
.udalost-detail h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: .35em; }
.udalost-detail .perex { font-size: 1.13rem; color: var(--ink-soft); margin-bottom: 26px; }
.udalost-detail .fakta {
  display: flex; gap: 30px; flex-wrap: wrap;
  padding: 18px 0; margin-bottom: 32px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.udalost-detail .fakta div span { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.udalost-detail .fakta div b { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.udalost-detail .text { font-size: 1rem; color: var(--ink); margin-bottom: 34px; }
.udalost-detail .text p { margin-bottom: 1.1em; }

.feed-prazdno {
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--r);
  padding: 44px 30px;
  text-align: center;
  color: var(--ink-soft);
}
.feed-prazdno h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 8px; color: var(--ink); }

.filtry { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 30px; }
.filtry button {
  background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft);
  border-radius: 999px; padding: 9px 17px; font-size: .89rem; font-weight: 500;
}
.filtry button:hover { background: var(--paper); border-color: var(--blue); color: var(--blue-dark); }
.filtry button.aktivni { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ==========================================================================
   Administrace
   ========================================================================== */

.sprava-hlavicka {
  background: var(--slate-deep);
  color: #dde7ec;
  position: sticky; top: 0; z-index: 40;
}
.sprava-hlavicka .wrap { display: flex; align-items: center; gap: 16px; min-height: 66px; flex-wrap: wrap; }
.sprava-hlavicka .logo { color: #fff; }
.sprava-hlavicka .logo small { color: #7f97a3; }
.sprava-hlavicka .zalozky { display: flex; gap: 6px; margin-left: 20px; }
.sprava-hlavicka .zalozky button {
  background: transparent; border: 1px solid transparent; color: #b7cbd6;
  padding: 8px 16px; font-size: .9rem;
}
.sprava-hlavicka .zalozky button:hover { background: rgba(255,255,255,.12); color: #fff; }
.sprava-hlavicka .zalozky button.aktivni { background: var(--blue); border-color: var(--blue); color: #fff; }
.sprava-hlavicka .vpravo { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sprava-stav { font-size: .82rem; color: #7f97a3; }
.sprava-stav.zmeny { color: #ffd18a; }
.sprava-stav.ok { color: #7fe0b4; }

.prihlaseni { max-width: 380px; margin: 90px auto; }
.prihlaseni .form-card { text-align: left; }
.prihlaseni h1 { font-size: 1.9rem; margin-bottom: .3em; }

.sprava-panel { padding: 34px 0 90px; }
.sprava-panel[hidden] { display: none; }

.zaznam {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 16px;
  overflow: hidden;
}
.zaznam.nepublikovano { border-style: dashed; background: var(--bg); }
.zaznam-hlava {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; cursor: pointer;
}
.zaznam-hlava:hover { background: var(--blue-soft); }
.zaznam-nahled {
  width: 54px; height: 42px; border-radius: 8px; flex: 0 0 auto;
  background: linear-gradient(160deg, var(--blue-soft), var(--surface-2));
  overflow: hidden;
}
.zaznam-nahled img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zaznam-titul { flex: 1; min-width: 0; }
.zaznam-titul b { display: block; font-size: .98rem; font-weight: 600; }
.zaznam-titul span { font-size: .82rem; color: var(--ink-faint); }
.zaznam-znacka {
  font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; flex: 0 0 auto;
}
.zaznam-znacka.zive { background: var(--ok-soft); color: var(--ok); }
.zaznam-znacka.koncept { background: var(--surface-2); color: var(--ink-soft); }
.zaznam-telo { display: none; padding: 4px 18px 22px; border-top: 1px solid var(--line); }
.zaznam.otevreno .zaznam-telo { display: block; }

.fotky-rada { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.fotka {
  position: relative; width: 96px; height: 74px;
  border-radius: 10px; overflow: hidden;
  background: linear-gradient(160deg, var(--blue-soft), var(--surface-2));
  border: 1px solid var(--line);
}
.fotka img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fotka button {
  position: absolute; top: 3px; right: 3px;
  width: 22px; height: 22px; padding: 0; border-radius: 999px;
  background: rgba(20,34,41,.78); border: 0; color: #fff; font-size: .82rem; line-height: 1;
}
.fotka button:hover { background: var(--danger, #c0392b); }
.fotka-pridat {
  width: 96px; height: 74px; border-radius: 10px;
  border: 1px dashed var(--line); background: var(--bg); color: var(--ink-soft);
  font-size: .8rem; font-weight: 600; padding: 0;
}
.fotka-pridat:hover { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark); }

.prepinac { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: .9rem; font-weight: 500; }
.prepinac input { width: 18px; height: 18px; accent-color: var(--blue); }

.radek-akci { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.btn-nebezpeci { background: transparent; border-color: var(--line); color: var(--danger, #c0392b); }
.btn-nebezpeci:hover { background: #fdf3f2; border-color: var(--danger, #c0392b); color: var(--danger, #c0392b); }

.sprava-napoveda {
  background: var(--blue-soft);
  border: 1px solid #bfe6f7;
  border-radius: var(--r-sm);
  padding: 15px 18px;
  font-size: .89rem;
  color: var(--blue-dark);
  margin-bottom: 24px;
}

.blok-radek {
  display: grid; gap: 14px; align-items: start;
  grid-template-columns: 1fr 110px 130px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 16px 18px; margin-bottom: 12px;
}
.blok-radek.skryty { opacity: .55; }
.blok-radek .field { margin-bottom: 10px; }
.blok-radek .field:last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .blok-radek { grid-template-columns: 1fr; }
  .sprava-hlavicka .zalozky { margin-left: 0; width: 100%; }
}

/* ==========================================================================
   Kalendář obsazenosti
   ========================================================================== */

.kalendar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 20px 22px;
  max-width: 460px;
}
.kal-hlava {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.kal-hlava b {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  text-transform: capitalize;
}
.kal-hlava button {
  width: 34px; height: 34px; padding: 0; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink);
  font-size: 1rem; line-height: 1;
}
.kal-hlava button:hover:not(:disabled) { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-dark); }
.kal-hlava button:disabled { opacity: .35; cursor: default; }

.kal-mrizka { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.kal-denvtydnu {
  text-align: center; font-size: .68rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint); padding-bottom: 6px;
}
.kal-den {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--bg);
  color: var(--ink);
  font-size: .92rem;
  font-weight: 500;
  padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  position: relative;
}
.kal-den .tecka { width: 6px; height: 6px; border-radius: 999px; background: transparent; }
.kal-den.prazdny { background: transparent; cursor: default; }
.kal-den.mimo { background: transparent; color: var(--ink-faint); opacity: .4; cursor: not-allowed; }
.kal-den.mimo:hover { background: transparent; }
.kal-den.volno .tecka { background: var(--ok); }
.kal-den.castecne .tecka { background: var(--warn); }
.kal-den.obsazeno { color: var(--ink-faint); text-decoration: line-through; }
.kal-den.obsazeno .tecka { background: var(--danger); }
.kal-den:not(.mimo):not(.prazdny):hover { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-dark); }
.kal-den.vybrano { background: var(--blue); border-color: var(--blue); color: #fff; }
.kal-den.vybrano .tecka { background: #fff; }
.kal-den.dnes::after {
  content: ""; position: absolute; inset: auto 0 4px 0; margin: 0 auto;
  width: 14px; height: 2px; border-radius: 2px; background: var(--ink-faint);
}
.kal-den.vybrano.dnes::after { background: rgba(255,255,255,.8); }

/* --- Kalendář v administraci ------------------------------------------------
   Tady si termíny odklikáváte vy, ne zákazník. Políčka jsou proto větší
   a stav je v nich napsaný slovem, ať je na jeden pohled vidět, co kde je.
   Zákaznický kalendář výš zůstává decentní, s tečkami — ten se needituje.   */

#a-kal-mrizka { gap: 7px; }
#a-kal-mrizka .kal-denvtydnu { display: none; }   /* zkratka dne je v každém políčku */

#a-kal-mrizka .kal-den {
  aspect-ratio: auto;
  min-height: 74px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 9px 3px 8px;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
#a-kal-mrizka .kal-dow {
  font-size: .68rem; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-faint); line-height: 1;
}
#a-kal-mrizka .kal-cislo { font-size: 1.24rem; font-weight: 600; line-height: 1.15; }
#a-kal-mrizka .kal-stitek { font-size: .66rem; font-weight: 600; letter-spacing: .03em; line-height: 1.1; }

#a-kal-mrizka .kal-den.prazdny { border: 0; background: transparent; pointer-events: none; }

#a-kal-mrizka .kal-den.volno { border-color: #b6e2ce; background: #f4fbf8; }
#a-kal-mrizka .kal-den.volno .kal-stitek { color: var(--ok); }
#a-kal-mrizka .kal-den.castecne { border-color: #f0d9b6; background: #fefaf4; }
#a-kal-mrizka .kal-den.castecne .kal-stitek { color: var(--warn); }
#a-kal-mrizka .kal-den.obsazeno {
  background: var(--surface-2); color: var(--ink-faint);
  border-color: transparent; text-decoration: none;
}
#a-kal-mrizka .kal-den.obsazeno .kal-stitek { color: var(--ink-faint); }
#a-kal-mrizka .kal-den.obsazeno .kal-cislo { text-decoration: line-through; }
#a-kal-mrizka .kal-den.zavreno { background: transparent; color: #c3d0d7; border-color: transparent; }
#a-kal-mrizka .kal-den.zavreno .kal-dow,
#a-kal-mrizka .kal-den.zavreno .kal-stitek { color: #cfdae0; }

#a-kal-mrizka .kal-den:hover {
  border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark);
}
#a-kal-mrizka .kal-den.vybrano,
#a-kal-mrizka .kal-den.vybrano:hover {
  background: var(--blue); border-color: var(--blue); color: #fff;
}
#a-kal-mrizka .kal-den.vybrano .kal-dow,
#a-kal-mrizka .kal-den.vybrano .kal-stitek { color: rgba(255,255,255,.85); }
#a-kal-mrizka .kal-den.dnes::after { display: none; }
#a-kal-mrizka .kal-den.dnes .kal-cislo { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 520px) {
  #a-kal-mrizka { gap: 5px; }
  #a-kal-mrizka .kal-den { min-height: 62px; padding: 7px 1px 6px; }
  #a-kal-mrizka .kal-cislo { font-size: 1.05rem; }
  #a-kal-mrizka .kal-stitek { font-size: .6rem; }
}
}

.kal-legenda {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: .82rem; color: var(--ink-soft);
}
.kal-legenda span { display: inline-flex; align-items: center; gap: 7px; }
.kal-legenda i { width: 8px; height: 8px; border-radius: 999px; display: block; }
.kal-legenda .l-volno { background: var(--ok); }
.kal-legenda .l-castecne { background: var(--warn, #b4671a); }
.kal-legenda .l-obsazeno { background: var(--danger, #c0392b); }

.termin-vysledek {
  border-radius: var(--r-sm);
  padding: 16px 18px;
  font-size: .95rem;
  margin-top: 20px;
  border: 1px solid transparent;
}
.termin-vysledek b { display: block; font-size: 1.02rem; margin-bottom: 3px; }
.termin-vysledek.volno { background: var(--ok-soft); border-color: #b7e3ce; color: #0d6b49; }
.termin-vysledek.castecne { background: var(--gold-soft); border-color: #f0dcbe; color: #7c4a11; }
.termin-vysledek.obsazeno { background: #fdf3f2; border-color: #f2cfca; color: #8e2a1e; }
.termin-vysledek.nic { background: var(--surface-2); border-color: var(--line); color: var(--ink-soft); }

/* --- Volba rozsahu poptávky ------------------------------------------------ */

.volba { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.volba-karta {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 28px;
  text-align: left;
  display: flex; flex-direction: column; align-items: stretch;
  color: var(--ink);
  transition: box-shadow .28s, transform .28s, border-color .2s;
}
.volba-karta:hover { background: var(--paper); box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--blue); color: var(--ink); }
.volba-karta.vybrana { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--shadow); }
.volba-karta .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue-soft); color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.volba-karta .ico svg { width: 22px; height: 22px; }
.volba-karta h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin: 0 0 8px; letter-spacing: -.015em; }
.volba-karta > p { font-size: .93rem; color: var(--ink-soft); margin: 0 0 18px; }
.volba-karta ul { list-style: none; margin: 0 0 22px; padding: 0; font-size: .88rem; color: var(--ink-soft); flex: 1; }
.volba-karta ul li { padding-left: 22px; position: relative; margin-bottom: 5px; }
.volba-karta ul li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 6px; height: 6px; border-radius: 999px; background: var(--blue);
}
.volba-karta .vzit { font-size: .82rem; font-weight: 600; color: var(--blue-dark); }

/* --- Editor seznamů voleb v administraci ---------------------------------- */

.volby-skupina {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px 20px;
  margin-bottom: 16px;
}
.volby-skupina h3 { margin-bottom: 4px; }
.volby-skupina > p { font-size: .89rem; color: var(--ink-soft); margin: 0 0 16px; }

.volba-radek { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.volba-radek input {
  flex: 1;
  font-family: var(--sans); font-size: .93rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 10px 13px;
}
.volba-radek input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.volba-radek input[type="number"] { flex: 0 0 120px; }
.volba-radek button {
  flex: 0 0 auto;
  width: 34px; height: 34px; padding: 0; border-radius: 9px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink-soft);
  font-size: .9rem; line-height: 1;
}
.volba-radek button:hover:not(:disabled) { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-dark); }
.volba-radek button:disabled { opacity: .3; cursor: default; }
.volba-radek button.smazat:hover { background: #fdf3f2; border-color: var(--danger, #c0392b); color: var(--danger, #c0392b); }
.volba-pevna {
  display: flex; align-items: center; gap: 8px;
  font-size: .89rem; color: var(--ink-faint);
  padding: 10px 13px; margin-bottom: 8px;
  border: 1px dashed var(--line); border-radius: var(--r-sm);
}
.volby-skupina .btn { margin-top: 6px; }

/* ==========================================================================
   Představení typu akce ve vyskakovacím okně
   ========================================================================== */

.typ-karta { cursor: pointer; position: relative; padding-bottom: 52px; }
.typ-karta:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.typ-vic {
  position: absolute; left: 24px; bottom: 22px;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .84rem; font-weight: 600; color: var(--blue-dark);
}
.typ-vic svg { width: 15px; height: 15px; transition: transform .2s; }
.typ-karta:hover .typ-vic svg { transform: translateX(3px); }

/* --- Okno ----------------------------------------------------------------- */

.modal {
  position: fixed; inset: 0; z-index: 90;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal.otevreno { display: flex; }
.modal-zaves {
  position: absolute; inset: 0;
  background: rgba(20, 34, 41, .6);
  backdrop-filter: blur(3px);
  animation: zaves-in .25s ease;
}
@keyframes zaves-in { from { opacity: 0 } to { opacity: 1 } }

.modal-okno {
  position: relative;
  display: flex;                 /* aby šlo tělo omezit a rolovat */
  flex-direction: column;
  width: 100%;
  max-width: 880px;
  max-height: 88vh;
  background: var(--slate);
  color: #dde7ec;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: okno-in .32s cubic-bezier(.2, .8, .2, 1);
}
@keyframes okno-in { from { opacity: 0; transform: translateY(14px) scale(.985) } to { opacity: 1; transform: none } }

.modal-telo {
  padding: 44px 44px 40px;
  overflow-y: auto;
  min-height: 0;                 /* bez tohohle by se obsah jen oříznul */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
@media (max-width: 560px) { .modal-telo { padding: 28px 22px 26px; } }

.modal-zavrit {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  width: 44px; height: 44px; padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff; font-size: 1.05rem; line-height: 1;
}
.modal-zavrit:hover { background: rgba(255, 255, 255, .28); border-color: #fff; color: #fff; }

.modal-telo h3 {
  font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 600; color: #fff; letter-spacing: -.015em; margin: 0 0 .55em;
  padding-right: 52px;
}
.modal-telo .uvod { font-size: 1.05rem; color: #cfdde4; margin-bottom: 28px; }
.modal-telo p { color: #a8bfc9; }

.typ-prubeh { list-style: none; margin: 0; padding: 0; counter-reset: krok; }
.typ-prubeh > li { position: relative; padding-left: 44px; padding-bottom: 20px; counter-increment: krok; }
.typ-prubeh > li::before {
  content: counter(krok, decimal-leading-zero);
  position: absolute; left: 0; top: -1px;
  font-family: var(--serif); font-size: 1.02rem; font-weight: 600; color: #7fc7e8;
}
.typ-prubeh > li::after {
  content: ""; position: absolute; left: 11px; top: 22px; bottom: 2px;
  width: 1px; background: rgba(255, 255, 255, .16);
}
.typ-prubeh > li:last-child { padding-bottom: 0; }
.typ-prubeh > li:last-child::after { display: none; }
.typ-prubeh b { display: block; color: #fff; font-size: .97rem; font-weight: 600; margin-bottom: 2px; }
.typ-prubeh span { font-size: .92rem; color: #a8bfc9; }

.typ-box {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-sm);
  padding: 22px 24px;
  margin-bottom: 20px;
}
.typ-box h4 {
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #7fc7e8; margin: 0 0 14px;
}
.typ-box p { font-size: .93rem; margin: 0; }
.typ-box .ticks li { font-size: .93rem; margin-bottom: 8px; color: #a8bfc9; }
.typ-box .ticks li:last-child { margin-bottom: 0; }
.typ-box .ticks li::before { border-color: #7fc7e8; }

.typ-hlavni { margin: 0 0 30px; }
.typ-hlavni li { font-size: 1.04rem; color: #dde7ec; margin-bottom: 13px; padding-left: 32px; }
.typ-hlavni li:last-child { margin-bottom: 0; }
.typ-hlavni li::before { border-color: #7fc7e8; width: 17px; height: 10px; top: .5em; }

.typ-fotky { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 26px; }
.typ-fotky figure { margin: 0; border-radius: var(--r-sm); overflow: hidden; background: rgba(255,255,255,.08); aspect-ratio: 4/3; }
.typ-fotky img { width: 100%; height: 100%; object-fit: cover; display: block; }

.modal-telo .hero-actions { margin-top: 4px; }

/* --- Vystředěný úvod sekce ------------------------------------------------- */

.section-intro {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-intro .eyebrow { margin-bottom: 14px; }
.section-intro h2 { margin-bottom: .4em; }
.section-intro p {
  color: var(--ink-soft);
  font-size: 1.13rem;
  margin: 0 auto;
  max-width: 58ch;
}
.section-intro::after {
  content: "";
  display: block;
  width: 54px; height: 2px;
  margin: 30px auto 0;
  border-radius: 2px;
  background: var(--blue);
  opacity: .5;
}
@media (max-width: 560px) {
  .section-intro { margin-bottom: 34px; }
  .section-intro p { font-size: 1.04rem; }
  .section-intro::after { margin-top: 24px; }
}

/* --- Zarovnání textu v hero ------------------------------------------------ */

/* nadpis vystředěný nad textem, který zůstává zarovnaný vlevo */
.hero h1 { text-align: center; }
.hero .ticks li { color: var(--ink); }

.hero-moto {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--blue-dark);
  letter-spacing: -.01em;
  margin: 0 0 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* --- Poptávka: kompaktnější první obrazovka -------------------------------- */

.planner { padding: 30px 0 80px; }
.planner h1 { font-size: clamp(2rem, 3.2vw, 2.5rem); }
.psteps { margin-bottom: 24px; }

/* kalendář a odpověď vedle sebe, ať se termín vejde bez rolování */
.termin-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 780px) {
  .termin-grid { grid-template-columns: minmax(0, 396px) 1fr; }
}
.termin-grid .kalendar { max-width: none; padding: 16px 16px 18px; }
.termin-grid .kal-legenda { margin-top: 12px; padding-top: 12px; }
.termin-grid .termin-vysledek { margin-top: 0; }
.termin-grid .prepinac { margin: 18px 0 0; }
.termin-grid .hero-actions { margin-top: 18px; }
.termin-grid .form-note { margin-top: 16px; max-width: 44ch; }

/* na mobilu patří souhrn až za obsah kroku, ne před něj */
@media (max-width: 999px) {
  .planner-aside { order: 0; }
}

/* --- Typ akce s odkazem na podrobnosti ------------------------------------- */

.chip-par { display: inline-flex; align-items: center; gap: 4px; }
.chip-info {
  width: 26px; height: 26px; padding: 0;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-faint);
  font-family: var(--serif);
  font-size: .85rem; font-weight: 600; font-style: italic;
  line-height: 1;
  flex: 0 0 auto;
}
.chip-info:hover { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-dark); }
.chip-info:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* --- Nepovinný čas u bloku programu ---------------------------------------- */

.mod-cas { margin-top: 12px; }
.mod-cas label {
  display: block;
  font-size: .78rem; font-weight: 600; color: var(--ink-faint);
  margin-bottom: 5px;
}
.mod-cas label em { font-style: normal; font-weight: 500; opacity: .75; }
.mod-cas input {
  width: 100%; max-width: 240px;
  font-family: var(--sans); font-size: .88rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 8px 12px;
}
.mod-cas input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }

/* --- Světlá varianta okna (výběr jídla) ------------------------------------ */

.modal-okno.svetle { background: var(--bg); color: var(--ink); }
.modal-okno.svetle .modal-telo h3 { color: var(--ink); }
.modal-okno.svetle .modal-telo .uvod { color: var(--ink-soft); font-size: .98rem; margin-bottom: 22px; }
.modal-okno.svetle .modal-telo .uvod b { color: var(--ink); }
.modal-okno.svetle .modal-zavrit {
  background: var(--paper); border-color: var(--line); color: var(--ink);
}
.modal-okno.svetle .modal-zavrit:hover { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-dark); }
.modal-okno.svetle .foodsearch { margin-bottom: 20px; }

/* tlačítko pro výběr jídla v kartě bloku */
.mod-jidlo { margin-top: 14px; }

/* vnořený výčet uvnitř kroku časové osy */
.krok-body { list-style: none; margin: 6px 0 0; padding: 0; }
.krok-body li {
  position: relative; padding-left: 15px;
  font-size: .9rem; color: #a8bfc9; margin-bottom: 3px;
}
.krok-body li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; border-radius: 999px; background: #7fc7e8; opacity: .7;
}
