/* Řemeslna – vizuální styl prototypu */
/* @font-face: začátek (generuje scripts/fonts.mjs, ručně neupravovat) */
/* Fraunces, Instrument Sans, Caveat: SIL Open Font License 1.1, texty licencí v assets/fonts/OFL-*.txt */
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/caveat-latin-ext-7b0f1a8b79.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/caveat-latin-2b416ea668.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 300 500; font-display: swap; src: url(fonts/fraunces-latin-ext-389c62c3a9.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 300 500; font-display: swap; src: url(fonts/fraunces-latin-326a7ed2df.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(fonts/fraunces-latin-ext-013a968c7d.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(fonts/fraunces-latin-6298a11af0.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/instrument-sans-latin-ext-6cffb109c2.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/instrument-sans-latin-5963fe8e75.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/instrument-sans-latin-ext-6cffb109c2.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/instrument-sans-latin-5963fe8e75.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/instrument-sans-latin-ext-6cffb109c2.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/instrument-sans-latin-5963fe8e75.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* @font-face: konec */
:root {
  --len: #F4EFE6;
  --papir: #FBF8F2;
  --hlina: #2B2A24;
  --hlina-2: #3A3A30;
  --kura: #5E5B50;
  --kura-svetla: #A39E8E;
  --linka: #E2DACB;
  --linka-2: #D5CCBA;
  --mech: #4F5D35;
  --mech-tmavy: #36421F;
  --salvej: #C9D3B8;
  --salvej-2: #A5B38A;
  --salvej-3: #8C9A72;
  --louka: #E6EAD9;
  --terakota: #B8613D;
  --terakota-text: #A4532F;
  --broskev: #EFD5C5;
  --ruzova: #F6E6DC;
  --maslo: #F5EBCB;
  --slunecnice: #E7C46B;
  --salvej-text: #5F6B45;  /* šalvěj pro text: 4,99:1 len, 5,39:1 papír, 4,66:1 louka */
  --linka-pole: #8A8576;   /* okraj polí: 3,48:1 na papíru */
  /* Písma bez cizí služby (Google Fonts posílal IP adresu každého návštěvníka do USA, viz zasady.html#pisma).
     Fraunces, Instrument Sans a Caveat (licence OFL) stáhne jednou k nám `node scripts/fonts.mjs` (assets/fonts/)
     a vloží jejich @font-face na začátek tohoto souboru. Postup v README, oddíl „Písma“.
     Dokud to neproběhne, použije se písmo nainstalované v zařízení, jinak Georgia / systémové bezpatkové. */
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --radius: 26px;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; scroll-padding-bottom: 110px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--len);
  color: var(--hlina);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--mech); }
a:hover { color: var(--mech-tmavy); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--terakota); outline-offset: 3px; border-radius: 6px; }
em { font-style: italic; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Layout */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; }
.section--tight { padding: 64px 0; }
.section--papir { background: var(--papir); border-top: 1px solid var(--linka); border-bottom: 1px solid var(--linka); }
.section--louka { background: var(--louka); }
.section--ruzova { background: var(--ruzova); }
.section--tma { background: var(--hlina); color: var(--len); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split--top { align-items: flex-start; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(16.25rem, 100%), 1fr)); }
.grid--sm { grid-template-columns: repeat(auto-fit, minmax(min(13.125rem, 100%), 1fr)); }
.grid--lg { grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); }
.masonry { column-width: 260px; column-gap: 20px; }
.masonry > * { break-inside: avoid; margin-bottom: 26px; }

/* Typography */
.eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--salvej-text); margin: 0; }
.eyebrow--mech { color: var(--mech); }
.eyebrow--terakota { color: var(--terakota-text); }
.eyebrow--zluta { color: var(--slunecnice); }
/* Eyebrow s daty (obor, místo, datum): věta místo verzálek, v režimu pro starší zůstává */
.eyebrow.eyebrow--meta { font-size: .875rem; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--kura); }
.eyebrow--meta.eyebrow--terakota { color: var(--terakota-text); }
.eyebrow--meta.eyebrow--mech { color: var(--mech); }
.when-line { margin: 0; font-size: 1.0625rem; font-weight: 600; line-height: 1.4; color: var(--terakota-text); }
.eyebrow--line { display: flex; align-items: center; gap: 10px; color: var(--kura); }
.eyebrow--line::before { content: ''; width: 28px; height: 1px; background: var(--salvej-3); }
.display { font-family: var(--serif); font-weight: 300; font-size: clamp(2.875rem, 6.4vw, 5.75rem); line-height: 0.98; letter-spacing: -0.035em; margin: 0; }
.h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.25rem, 4.6vw, 3.75rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.2; margin: 0; }
.h4 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; line-height: 1.25; margin: 0; }
.display em, .h2 em, .h3 em { color: var(--terakota); }
.section--tma .h2 em { color: #E7A98A; }
.display em { white-space: nowrap; }
.card--mech :is(.display, .h2, .h3) em { color: var(--slunecnice); }   /* 4,24:1, dřív terakota 1,63:1 */
.card--tma :is(.h2, .h3) em { color: #E7A98A; }
.card--mech .eyebrow--zluta { color: #F0D58C; }                         /* 4,95:1 pro malé písmo */
.display, .h2, .h3, .h4, .item-title, legend { text-wrap: balance; }
p, li { text-wrap: pretty; }
.lead { font-size: 1.1875rem; color: var(--kura); margin: 0; max-width: 40rem; }
.section--tma .lead { color: #D9D3C4; }
.muted { color: var(--kura); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.8125rem; }
.center { text-align: center; }
p { margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 8px 26px; border-radius: 999px; border: 1px solid transparent; font-weight: 500; text-align: center; line-height: 1.25; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--mech { background: var(--mech); color: var(--papir); }
.btn--mech:hover { background: var(--mech-tmavy); color: var(--papir); }
.btn--tma { background: var(--hlina); color: var(--len); }
.btn--tma:hover { background: #000; color: var(--len); }
.btn--obrys { background: transparent; color: var(--hlina); border-color: var(--hlina); }
.btn--obrys:hover { background: var(--hlina); color: var(--len); }
.btn--zluta { background: var(--slunecnice); color: var(--hlina); font-weight: 600; }
.btn--zluta:hover { background: #DDB44F; color: var(--hlina); }
.btn--terakota { background: var(--terakota-text); color: var(--papir); font-weight: 600; }
.btn--terakota:hover { background: #8A4426; color: var(--papir); }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: 0.9375rem; }
.btn--block { width: 100%; }
/* Neaktivní tlačítko: plné šedé s čitelným textem (--kura na --linka 4,9:1), ne zprůhlednění */
.btn[disabled] { opacity: 1; background: var(--linka); color: var(--kura); border-color: var(--linka-2); cursor: not-allowed; transform: none; }

/* Chips & tags */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--linka-2); background: transparent; font-size: 0.875rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--hlina); color: var(--len); border-color: var(--hlina); }
.section--louka .chip { background: var(--papir); border-color: transparent; }
.section--louka .chip[aria-pressed="true"] { background: var(--hlina); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--louka); color: var(--mech-tmavy); white-space: normal; max-width: 100%; line-height: 1.3; }
.tag--maslo { background: var(--maslo); color: #5A4512; }
.tag--ruzova { background: var(--ruzova); color: #8A4426; }
.tag--tma { background: var(--hlina); color: var(--len); }
.tag--papir { background: var(--papir); border: 1px solid var(--linka-2); color: var(--hlina); }
.tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mech); }

/* Cards */
.card { color: var(--hlina); background: var(--papir); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card--line { border: 1px solid var(--linka); }
.card--len { background: var(--len); }
.card--tma { background: var(--hlina); color: var(--len); }
.card--tma .muted { color: #D9D3C4; }
.card--mech { background: var(--mech); color: var(--len); }
.card--mech .muted { color: #DDE3CF; }
.card--maslo { background: var(--maslo); }
.card--broskev { background: var(--broskev); }
.card-link { text-decoration: none; color: inherit; transition: transform .2s; }
.card-link:hover { color: inherit; transform: translateY(-3px); }

/* Media placeholders */
.media { border-radius: 18px; background: var(--salvej); position: relative; overflow: hidden; }
.media--arch { border-radius: 160px 160px 18px 18px; }
.media--arch-down { border-radius: 18px 18px 150px 150px; }
.media--round { border-radius: 50%; }
.tone-salvej { background: var(--salvej); }
.tone-drevo { background: #D9C4A3; }
.tone-kamen { background: #CFC6B4; }
.tone-voda { background: #D7DDD8; }
.tone-kov { background: #BDB8AC; }
.tone-broskev { background: var(--broskev); }
.tone-maslo { background: var(--maslo); }
.tone-louka { background: #B8CBA9; }
.tone-pisek { background: #E3D2B4; }
.tone-slunce { background: var(--slunecnice); }
.tone-louka-svetla { background: #E9EDE0; }
.tone-maslo-svetla { background: #F3EBD7; }
.tone-seda-svetla { background: #E8E8E1; }
.tone-pisek-svetla { background: #F1E8DB; }
.tone-ruzova-svetla { background: #F3E6DE; }

/* Item cards (věci, sazenice) */
.item-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--hlina); }
.item-card:hover { color: var(--hlina); }
.item-media { position: relative; height: 300px; border-radius: 24px; overflow: hidden; display: flex; align-items: center; justify-content: center; transition: transform .25s; }
.item-card:hover .item-media { transform: translateY(-3px); }
.item-media > svg { width: 78%; height: auto; max-height: 86%; }
.item-media .km { position: absolute; left: 16px; bottom: 16px; display: inline-flex; gap: 6px; align-items: center; max-width: calc(100% - 32px); background: var(--papir); border-radius: 12px; padding: 6px 12px; font-size: 0.875rem; }
.fav { position: absolute; right: 16px; top: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--papir); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; color: var(--hlina); }
.fav svg { width: 24px; height: 24px; }
.fav[aria-pressed="true"] { color: var(--terakota); }
.fav[aria-pressed="true"] svg path { fill: currentColor; }
.item-title { font-family: var(--sans); font-weight: 600; font-size: 1.3125rem; line-height: 1.25; letter-spacing: -0.01em; margin: 0; }
.item-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--kura); font-size: 0.9375rem; }
.item-price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 8px; }
.item-price strong { font-size: 1.875rem; font-weight: 600; letter-spacing: -0.02em; }
.item-price .per { font-size: 1rem; color: var(--kura); }
.item-price .go { font-size: 0.9375rem; color: var(--mech); display: inline-flex; gap: 6px; align-items: center; }
.item-price .go::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--mech); }
.items-grid { display: grid; gap: 32px 28px; grid-template-columns: repeat(auto-fill, minmax(15.625rem, 1fr)); }
.items-grid > .empty { grid-column: 1 / -1; }
@media (max-width: 600px) { .item-media { height: 240px; } }

.media svg.plant { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 78%; width: auto; opacity: .9; }
.h-180 { height: 180px; } .h-220 { height: 220px; } .h-240 { height: 240px; } .h-260 { height: 260px; } .h-280 { height: 280px; } .h-300 { height: 300px; } .h-320 { height: 320px; } .h-340 { height: 340px; } .h-360 { height: 360px; }

/* Avatar */
.avatar { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.375rem; color: var(--hlina); }
.avatar--lg { width: 96px; height: 96px; font-size: 2.375rem; }
.avatar--arch { width: 110px; height: 136px; border-radius: 55px 55px 16px 16px; font-size: 2.75rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(244, 239, 230, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { border-bottom-color: var(--linka); }
.site-header .wrap { display: flex; align-items: center; gap: 16px 32px; min-height: 76px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--hlina); font-family: var(--serif); font-size: 1.6875rem; letter-spacing: -0.02em; }
.logo em { color: var(--terakota); }
.logo:hover { color: var(--hlina); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 24px; flex: 1 1 auto; font-size: 0.9375rem; font-weight: 500; }
.nav a { color: var(--hlina); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--terakota); color: var(--hlina); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--hlina); background: transparent; cursor: pointer; }
.moje-count { display: inline-flex; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--terakota-text); color: var(--papir); font-size: 0.75rem; align-items: center; justify-content: center; }
@media (max-width: 1320px) {
  .nav-toggle { display: inline-flex; align-items: center; margin-left: auto; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; gap: 4px; padding: 8px 0 16px; }
  .nav.is-open { display: flex; }
  .header-actions { flex-basis: 100%; display: none; padding-bottom: 16px; }
  .header-actions.is-open { display: flex; }
}

.proto-bar { background: var(--hlina); color: var(--len); font-size: 0.8125rem; text-align: center; padding: 8px 16px; }
.proto-bar strong { color: var(--slunecnice); font-weight: 600; }
.proto-text { margin: 0; }
/* Na telefonu: jednořádkový proužek „Zkušební provoz · Víc“ a vpravo přepínač pro starší */
.proto-sep, .proto-toggle { display: none; }
.proto-toggle { align-items: center; justify-content: center; flex: 0 0 auto; min-height: 44px; padding: 0 14px; border: 4px solid transparent; border-radius: 999px; background: var(--slunecnice) padding-box; color: var(--hlina); font-size: .875rem; font-weight: 600; line-height: 1.1; white-space: nowrap; cursor: pointer; }
.proto-toggle:hover { background-color: #F0D58C; }

/* Footer */
.site-footer { background: var(--hlina); color: #D9D3C4; padding: 72px 0 40px; }
.site-footer a { color: #D9D3C4; }
.site-footer a:hover { color: var(--len); }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 48px; }
.footer-cols nav { display: flex; flex-direction: column; gap: 10px; }
.footer-cols strong { color: var(--len); font-weight: 500; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid #45433A; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 0.875rem; }

/* Hero */
.hero { padding: 48px 0 88px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-arch { position: relative; width: min(100%, 460px); height: 560px; border-radius: 240px 240px 28px 28px; background: var(--salvej); overflow: hidden; }
.hero-arch .blob1 { position: absolute; left: -60px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; background: #B6C3A1; }
.hero-arch .blob2 { position: absolute; right: -40px; top: 90px; width: 180px; height: 180px; border-radius: 50%; background: #F0E2B6; }
.hero-arch svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.float-card { position: absolute; left: 0; bottom: 48px; background: var(--papir); border-radius: 20px; padding: 14px 18px; box-shadow: 0 18px 40px -24px rgba(43,42,36,.45); display: flex; gap: 12px; align-items: center; max-width: 270px; font-size: 0.875rem; line-height: 1.4; }
.badge-round { position: absolute; right: 4px; top: 36px; width: 118px; height: 118px; border-radius: 50%; background: var(--hlina); color: var(--len); display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.0625rem; line-height: 1.15; transform: rotate(-8deg); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 16px; border-top: 1px solid var(--linka); font-size: 0.875rem; color: var(--kura); }
.hero-stats strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.625rem; color: var(--hlina); }
@media (max-width: 600px) { .hero-arch { height: 420px; } .badge-round { width: 96px; height: 96px; font-size: 0.9375rem; } }

.searchbar { background: var(--papir); border: 1px solid var(--linka); border-radius: 999px; padding: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: 38rem; }
.searchbar label { flex: 1 1 220px; display: flex; align-items: center; gap: 10px; padding: 0 14px; }
.searchbar input { flex: 1; min-height: 44px; border: 0; background: transparent; outline: none; }
.searchbar:focus-within { border-color: var(--mech); }

/* Persona tiles */
.persona { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius); background: var(--papir); border: 1px solid var(--linka); text-decoration: none; color: var(--hlina); transition: transform .2s, border-color .2s; }
.persona:hover { transform: translateY(-3px); border-color: var(--salvej-3); color: var(--hlina); }
.persona--tma { background: var(--hlina); color: var(--len); border-color: var(--hlina); }
.persona--tma:hover { color: var(--len); }
.persona--tma .muted { color: #D9D3C4; }

/* Lists */
.list-row { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--linka); }
.list-row:last-child { border-bottom: 1px solid var(--linka); }
.list-row .grow { flex: 1; min-width: 0; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; }
.ticks .mark { color: var(--mech); flex: 0 0 auto; min-width: 14px; }
.section--tma .ticks .mark, .card--tma .ticks .mark { color: var(--slunecnice); }

/* Table */
.table-wrap { overflow-x: auto; }
.table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 1rem; }
.table th, .table td { padding: 16px 12px 16px 0; text-align: left; border-top: 1px solid var(--linka); vertical-align: baseline; }
.table thead th { border-top: 0; font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--kura); font-weight: 600; padding-bottom: 12px; }
.table tbody th { font-family: var(--serif); font-weight: 400; font-size: 1.3125rem; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 1px solid var(--linka); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-size: 0.875rem; font-weight: 600; }
.input, .select, .textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--linka-pole); border-radius: 16px; background: var(--papir); }
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--mech); box-shadow: 0 0 0 3px rgba(79,93,53,.15); }
.field .error { color: #9B2C1F; font-size: 0.8125rem; min-height: 0; }
.field.has-error .input, .field.has-error .textarea, .field.has-error .select { border-color: #9B2C1F; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--papir); border: 1px solid var(--linka); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--mech); flex: 0 0 auto; }
.check:has(input:checked) { border-color: var(--mech); background: var(--louka); }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(13.75rem, 100%), 1fr)); }
.form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* Calendar & slots */
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; }
.day { border: 0; background: transparent; padding: 8px 0; border-radius: 14px; cursor: pointer; font-size: 0.8125rem; color: var(--kura); line-height: 1.3; min-height: 54px; }
.day strong { display: block; font-size: 1.0625rem; color: var(--hlina); font-weight: 600; }
.day:not([disabled]) { box-shadow: inset 0 0 0 1px var(--linka-2); }
.day:hover:not([disabled]) { background: var(--louka); }
.day[aria-pressed="true"] { background: var(--mech); color: #DDE3CF; }
.day[aria-pressed="true"] strong { color: var(--papir); }
.day[disabled] { color: var(--kura-svetla); cursor: not-allowed; }
.day[disabled] strong { color: var(--kura-svetla); font-weight: 400; text-decoration: line-through; }
.day.in-range { background: var(--louka); }
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cal-nav { display: flex; gap: 6px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linka-2); background: var(--papir); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn[disabled] { opacity: .4; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.875rem, 1fr)); gap: 8px; }
.slot { min-height: 44px; border: 1px solid var(--linka-2); background: var(--papir); border-radius: 12px; cursor: pointer; font-size: 0.9375rem; }
.slot:hover:not([disabled]) { border-color: var(--mech); }
.slot[aria-pressed="true"] { border: 2px solid var(--mech); background: var(--louka); font-weight: 600; }
.slot[disabled] { border-style: dashed; color: var(--kura-svetla); background: transparent; text-decoration: line-through; cursor: not-allowed; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.8125rem; color: var(--kura); }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid var(--linka-2); }

/* Service options */
.option { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--linka); border-radius: 18px; background: var(--papir); cursor: pointer; }
.option input { accent-color: var(--mech); width: 20px; height: 20px; flex: 0 0 auto; }
.option:has(input:checked) { border: 2px solid var(--mech); padding: 13px 15px; }
.option .grow { flex: 1; min-width: 0; }
.option--pul { flex: 1 1 240px; min-width: 0; }
.option-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.nowrap { white-space: nowrap; }

/* Booking panel */
.booking { position: static; }
.summary-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; padding: 8px 0; font-size: 0.9375rem; }
.summary-row > strong { margin-left: auto; text-align: right; }
.summary-row + .summary-row { border-top: 1px solid var(--linka); }

/* Map */
.map { position: relative; border-radius: 24px; background: #DCE2CB; overflow: hidden; min-height: 420px; }
.map .road { position: absolute; background: #EEF0E4; }
.map .park { position: absolute; background: var(--salvej); border-radius: 60% 40% 50% 50%; }
.map .water { position: absolute; background: #B9CCD6; border-radius: 50% 60% 40% 50%; }
.pin { position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 3px solid var(--papir); background: var(--mech); box-shadow: 0 6px 14px -6px rgba(0,0,0,.45); cursor: pointer; padding: 0; }
.pin--ukazkova { background: var(--terakota); }
.pin--sazenice { background: var(--slunecnice); width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.pin[aria-pressed="true"] { transform: scale(1.25); outline: 3px solid var(--hlina); outline-offset: 2px; }
.map-you { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--hlina); border: 3px solid var(--papir); box-shadow: 0 0 0 10px rgba(43,42,36,.12); }
.map-card { position: absolute; left: 16px; right: 16px; bottom: 16px; max-width: 360px; background: var(--papir); border-radius: 18px; padding: 16px 18px; box-shadow: 0 16px 30px -18px rgba(43,42,36,.5); }

/* Plaque */
.plaque { width: min(300px, 100%); height: auto; aspect-ratio: 1 / 1; border-radius: 50%; background: var(--papir); border: 10px solid var(--salvej); box-shadow: 0 30px 60px -36px rgba(43,42,36,.5); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 30px; margin: 0 auto; }
.plaque .name { font-family: var(--serif); font-size: 1.875rem; line-height: 1; letter-spacing: -0.02em; }
.plaque .name em { color: var(--terakota); }
.meter { height: 12px; border-radius: 12px; background: var(--louka); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 12px; background: var(--mech); transition: width .3s; }
.meter--light { background: #4A483E; }
.meter--light > span { background: var(--slunecnice); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13.125rem, 100%), 1fr)); gap: 18px; }
.steps li { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--salvej); }
.steps .num { font-family: var(--serif); font-style: italic; font-size: 2.5rem; color: var(--salvej-3); line-height: 1; }
.steps li.is-last { border-top-color: var(--terakota); }
.steps li.is-last .num { color: var(--terakota); }

/* Quiz */
.quiz-option { min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid #6E6A5C; background: transparent; color: var(--len); cursor: pointer; }
.quiz-option:hover { border-color: var(--slunecnice); }
.quiz-option[aria-pressed="true"] { background: var(--slunecnice); border-color: var(--slunecnice); color: var(--hlina); }
.result { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 20px; background: var(--papir); }
.score { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.25rem; }

/* Modal */
.modal { border: 0; padding: 0; border-radius: 28px; max-width: 520px; width: calc(100% - 32px); background: var(--papir); color: var(--hlina); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
.modal::backdrop { background: rgba(43,42,36,.45); }
.modal-body { padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.modal-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--louka); display: flex; align-items: center; justify-content: center; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--hlina); color: var(--len); padding: 14px 22px; border-radius: 999px; font-size: 0.9375rem; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 50; width: max-content; max-width: calc(100% - 32px); text-align: center; }
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Misc */
.divider { height: 1px; background: var(--linka); border: 0; margin: 0; }
.empty { padding: 40px; text-align: center; color: var(--kura); border: 1px dashed var(--linka-2); border-radius: var(--radius); }
.page-head { padding: 56px 0 40px; }
.breadcrumb { font-size: .9375rem; color: var(--kura); display: flex; gap: 0 8px; flex-wrap: wrap; align-items: center; }
.breadcrumb a { color: var(--kura); display: inline-flex; align-items: center; min-height: 44px; }
.relative { position: relative; overflow: hidden; }
.pill-note { font-size: 0.875rem; color: var(--kura); border-left: 2px solid var(--salvej); padding-left: 14px; }
.big-num { font-family: var(--serif); font-weight: 300; font-size: 3.25rem; line-height: 1; letter-spacing: -0.02em; }
.big-num .small { display: block; margin-top: 6px; font-family: var(--sans); font-size: .9375rem; font-weight: 500; line-height: 1.4; letter-spacing: 0; }
.cta-band { background: var(--salvej); border-radius: 36px; padding: 64px 48px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
@media (max-width: 600px) {
  .cta-band { padding: 32px 20px; gap: 20px; border-radius: 28px; }
  .section { padding: 48px 0; }
  .section--tight { padding: 32px 0; }
  .section:not(.section--papir):not(.section--louka):not(.section--ruzova):not(.section--tma) + .section:not(.section--papir):not(.section--louka):not(.section--ruzova):not(.section--tma) { padding-top: 8px; }
  .stack-lg { gap: 24px; }
  .split { gap: 32px; }
  .card { padding: 20px; }
}
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kv > div { background: var(--papir); border-radius: 16px; padding: 12px; }
.kv span { font-size: .8125rem; color: var(--kura); display: block; }
.kv strong { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.portfolio { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr)); gap: 10px; }
.portfolio .media { height: 140px; }
.qa summary { cursor: pointer; font-family: var(--serif); font-size: 1.25rem; list-style: none; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; font-family: var(--sans); color: var(--terakota); font-size: 1.5rem; line-height: 1; }
.qa[open] summary::after { content: '–'; }
.qa { border-top: 1px solid var(--linka); }
.qa:last-child { border-bottom: 1px solid var(--linka); }
.qa .answer { padding: 0 0 18px; color: var(--kura); }
.hidden { display: none !important; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.w-full { width: 100%; }
.max-30 { max-width: 30rem; } .max-44 { max-width: 44rem; }
.gap-8 { gap: 8px; } .gap-24 { gap: 24px; }
.align-start { align-self: flex-start; }
.flex-1 { flex: 1 1 0; min-width: 0; }
.rating { color: var(--terakota-text); font-weight: 600; }

/* Pomocné třídy místo inline stylů (CSP) */
.row--nowrap { flex-wrap: nowrap; }
.item-media--arch { border-radius: 160px 160px 22px 22px; }
.fig { margin: 0; }
.block { display: block; }
.fieldset-reset { border: 0; margin: 0; padding: 0; min-width: 0; }
.logo--light { color: var(--len); }
.logo--light em { color: #E7A98A; }
.btn--obrys-light { background: transparent; color: var(--len); border-color: var(--len); }
.btn--obrys-light:hover { background: var(--len); color: var(--hlina); }
.portfolio .media { display: flex; align-items: center; justify-content: center; }
.portfolio .media > svg { width: 80%; height: auto; max-height: 86%; }
.tone-papir { background: var(--papir); }
.tone-mech { background: var(--mech); } .tone-terakota { background: var(--terakota); } .tone-hlina { background: var(--hlina); }
.map-wrap { position: relative; }
/* Karta mapy nikdy nepřekrývá mapu ani špendlíky: pod mapou, na plaketě (široká mapa) na desktopu vedle ní */
.map-wrap > .map-card { position: static; max-width: none; margin-top: 12px; box-shadow: none; border: 1px solid var(--linka); }
@media (min-width: 900px) {
  #mapa .map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
  #mapa .map-wrap > .map-card { margin-top: 0; }
}
.map .road-1 { left: -5%; top: 30%; width: 110%; height: 16px; transform: rotate(-8deg); }
.map .road-2 { left: 44%; top: -10%; width: 16px; height: 120%; transform: rotate(12deg); }
.map .road-3 { left: -5%; top: 78%; width: 110%; height: 10px; transform: rotate(4deg); }
.map .park-1 { left: 8%; top: 52%; width: 22%; height: 26%; }
.map .water-1 { right: 6%; top: 8%; width: 18%; height: 22%; }
.map-card:empty { display: none; }
@media (min-width: 900px) { .map { min-height: 520px; } .map-card { left: auto; right: 24px; bottom: 24px; } }
.moje-count[hidden] { display: none; }
.item-media .km svg { width: 14px; height: 14px; flex: 0 0 auto; }
@media (min-width: 1321px) and (max-width: 1600px) {
  .nav { gap: 6px 18px; font-size: 0.90625rem; }
  .header-actions .btn--tma { display: none; }
}
/* Posuvník: větší jezdec a viditelná dráha (na telefonu se nativním 16px jezdcem těžko trefuje) */
.range { width: 100%; min-height: 44px; accent-color: var(--mech); -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: var(--salvej-2); }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--mech); border: 3px solid var(--papir); box-shadow: 0 1px 4px rgba(43,42,36,.35); }
.range::-moz-range-track { height: 8px; border-radius: 8px; background: var(--salvej-2); }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--mech); border: 3px solid var(--papir); }
.range-map { position: relative; height: 220px; border-radius: 20px; background: #DCE2CB; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.range-circle { position: absolute; border-radius: 50%; background: rgba(79,93,53,.18); border: 2px dashed rgba(79,93,53,.6); transition: width .2s, height .2s; }
.range-dot { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--hlina); border: 3px solid var(--papir); }
.range-label { position: absolute; top: calc(50% + 14px); background: var(--papir); font-size: 0.8125rem; padding: 4px 10px; border-radius: 999px; }
.input:disabled { opacity: .5; }

/* ---------- Objevuj (swipe) ---------- */
.deck-wrap { max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.deck { position: relative; height: min(68vh, 600px); min-height: 460px; }
.swipe-card { position: absolute; inset: 0; border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 60px -36px rgba(43,42,36,.55); touch-action: pan-y; user-select: none; cursor: grab; will-change: transform; }
.swipe-card:active { cursor: grabbing; }
.swipe-card:nth-last-child(2) { transform: scale(.96) translateY(14px); }
.swipe-card:nth-last-child(3) { transform: scale(.92) translateY(28px); }
.swipe-art { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 0; }
.swipe-art > svg { width: 82%; max-height: 92%; }
.swipe-info { background: var(--papir); padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; border-radius: 28px 28px 0 0; }
.swipe-info .tag { align-self: flex-start; }
.swipe-title { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
.swipe-why { font-family: var(--serif); font-style: italic; color: var(--kura); font-size: 1.0625rem; }
.stamp { position: absolute; top: 28px; z-index: 3; font-family: var(--sans); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 1.25rem; padding: 8px 16px; border-radius: 12px; border: 3px solid; opacity: 0; pointer-events: none; background: rgba(251,248,242,.85); }
.stamp--like { left: 22px; color: var(--mech); border-color: var(--mech); transform: rotate(-12deg); }
.stamp--nope { right: 22px; color: var(--terakota-text); border-color: var(--terakota-text); transform: rotate(12deg); }
.deck-actions { display: flex; justify-content: center; align-items: center; gap: 18px; }
.deck-btn { width: 68px; height: 68px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 14px 30px -18px rgba(43,42,36,.6); transition: transform .15s; }
.deck-btn:active { transform: scale(.92); }
.deck-btn--nope { background: var(--papir); color: var(--terakota-text); }
.deck-btn--like { background: var(--mech); color: var(--papir); width: 78px; height: 78px; }
.deck-end { position: absolute; inset: 0; border-radius: 32px; background: var(--papir); border: 1px dashed var(--linka-2); display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; text-align: center; padding: 32px; }

/* ---------- Dva světy ---------- */
.worlds { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(18.75rem, 100%), 1fr)); }
.world { position: relative; overflow: hidden; border-radius: 36px; min-height: 460px; padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; text-decoration: none; color: var(--hlina); transition: transform .25s; }
.world:hover { transform: translateY(-4px); color: var(--hlina); }
.world--zahrada { background: var(--salvej); }
.world--remeslo { background: #D9C4A3; }
.world-art { position: absolute; inset: 0 0 auto 0; height: 62%; display: flex; align-items: center; justify-content: center; }
.world-art > svg { width: 70%; max-height: 100%; }
.world .h2 { font-size: clamp(2.375rem, 5vw, 3.5rem); }
.world .go { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--hlina); color: var(--len); font-weight: 500; }
/* Karty světů na úvodu: ilustrace nad textem, nikdy přes nadpis */
.worlds .world { min-height: 0; }
.worlds .world-art { position: static; flex: 0 0 auto; height: 240px; margin: -8px 0 auto; }
.worlds .world-art > svg { width: auto; height: 100%; max-width: 100%; }
.worlds .world .h2 em { color: var(--terakota-text); }   /* 3,5:1 na šalvěji, 3,2:1 na dřevě (dřív 2,8 a 2,6) */
.manifest { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(14.375rem, 100%), 1fr)); }
.manifest .card { gap: 8px; }
.manifest .num { font-family: var(--serif); font-style: italic; font-size: 2.75rem; line-height: 1; color: var(--terakota); }

/* ---------- Spodní lišta na telefonu ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(251,248,242,.97); backdrop-filter: blur(8px); border-top: 1px solid var(--linka); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: .8125rem; font-weight: 600; color: var(--kura); text-decoration: none; min-height: 52px; justify-content: center; }
  .tabbar a[aria-current="page"] { color: var(--mech); }
  .toast { bottom: 92px; }
  .proto-bar { font-size: .8125rem; line-height: 1.4; padding: 6px 12px; }
  .site-header .wrap { column-gap: 12px; }
  .display { font-size: 2.75rem; }
  .h2 { font-size: 2.125rem; }
  .page-head { padding: 24px 0 16px; }
  .hero { padding: 16px 0 32px; }
  .hero-art { display: none; }
  .world { padding: 24px; }
  .worlds .world { padding: 16px 20px 24px; gap: 10px; border-radius: 28px; }
  .worlds .world-art { height: 150px; margin: 0; }
  .worlds .world .h2 { font-size: 1.875rem; line-height: 1.1; }
  .worlds .world .eyebrow { display: none; }
  .section--tma .deck-wrap { display: none; }
  .page-head .item-media[aria-hidden="true"] { display: none; }
  .item-media.h-300, .item-media.h-360 { height: 220px; }
  .item-media--arch.h-360 { border-radius: 110px 110px 18px 18px; }
  .deck { height: calc(100svh - 300px); min-height: 420px; }
  .items-grid { gap: 24px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .items-grid .item-media { height: 170px; border-radius: 18px; }
  .items-grid .item-title { font-size: 1rem; }
  .items-grid .item-price strong { font-size: 1.25rem; }
  .items-grid .item-meta { font-size: 0.8125rem; flex-direction: column; gap: 0; }
  .items-grid .item-price { flex-direction: column; align-items: flex-start; gap: 4px; }
  .items-grid .item-price .btn { min-height: 44px; padding: 0 14px; font-size: .875rem; }
  .items-grid .fav { width: 44px; height: 44px; right: 8px; top: 8px; }
  .items-grid .km { left: 10px; bottom: 10px; max-width: calc(100% - 20px); font-size: .8125rem; padding: 4px 8px; }
  .items-grid .item-meta { align-items: flex-start; }
  .items-grid .small.muted.mt-8 { display: none; }
  .hero-stats { gap: 18px; }
  .site-footer { padding-bottom: 24px; }
}
.deck--preview { height: 480px; min-height: 0; pointer-events: none; }
.deck--preview .swipe-card:first-child { transform: rotate(-6deg) translateX(-18px) scale(.95); }
.page-head .world { min-height: 300px; }
@media (max-width: 760px) { .page-head .world { display: none; } .deck--preview { height: 420px; } }
.swipe-card { color: var(--hlina); }
ol.ticks { counter-reset: none; }
.card--mech .ticks .mark { color: var(--slunecnice); font-family: var(--serif); font-style: italic; min-width: 14px; }

/* Swipe na dotykových zařízeních */
.swipe-card { touch-action: none; -webkit-user-select: none; -webkit-touch-callout: none; transform-origin: 50% 90%; }
.swipe-card svg { pointer-events: none; }
.deck-hint { display: none; }
@media (max-width: 760px) {
  body[data-page="objevuj"] .site-footer { display: none; }
  body[data-page="objevuj"] { padding-bottom: 0; }
  .deck-page { padding: 12px 0 0; }
  .deck-page .deck-wrap { gap: 10px; }
  .deck-intro { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .deck-page .chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 2px; scrollbar-width: none; }
  .deck-page .chip { flex: 0 0 auto; min-height: 44px; }
  /* proužek 34 + hlavička 64 + čipy 48 + tlačítka 72 + lišta 76 + mezery */
  .deck-page .deck { height: calc(100dvh - 350px); min-height: 300px; }
  .deck-page .deck-actions { gap: 22px; }
  .deck-page .deck-btn { width: 60px; height: 60px; }
  .deck-page .deck-btn--like { width: 68px; height: 68px; }
  .deck-page #deck-count { margin-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .swipe-title { font-size: 1.5rem; }
  .swipe-info { padding: 16px 18px 18px; }
}
@media (max-width: 760px) and (max-height: 720px) {
  .swipe-why { display: none; }
  .deck-page .deck { height: calc(100dvh - 330px); min-height: 260px; }
}
.pin--kompost { background: #8A6A45; }
.proj-foot { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; } .proj-foot strong { font-size: 1.25rem; font-weight: 600; }

/* Konfigurátor záhonu */
.bed-summary .card { position: static; }
#bed-preview svg { width: 100%; height: auto; }
.tools { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(11.25rem, 1fr)); }
.tool { background: var(--papir); border: 1px solid var(--linka); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.tool-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--louka); color: var(--mech); display: flex; align-items: center; justify-content: center; }
.howto { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 1.0625rem; }
.howto li::marker { font-family: var(--serif); color: var(--terakota); }

/* Jednoduchý režim: větší písmo přes rem, layout drží skutečnou šířku displeje (žádný zoom) */
.simple-only, .simple-help { display: none; }
html.simple { font-size: 118.75%; }
html.simple .simple-only { display: block; }
html.simple .simple-help { display: block; background: var(--maslo); border-bottom: 1px solid var(--linka); }
.simple-help .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding-top: 10px; padding-bottom: 10px; font-size: 1rem; }
.simple-help a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
html.simple .muted, html.simple .tiny.muted, html.simple .small.muted { color: #3F3D35; }
html.simple :is(.card--tma, .persona--tma) .muted { color: #D9D3C4; }
html.simple .card--mech .muted { color: #DDE3CF; }
html.simple .eyebrow:not(.eyebrow--meta), html.simple .badge-round, html.simple .float-card, html.simple .hero-art, html.simple .stamp, html.simple .simple-hide { display: none !important; }
html.simple .btn { min-height: 56px; font-size: 1.0625rem; padding-top: 10px; padding-bottom: 10px; }
html.simple .site-header .btn { min-height: 44px; padding-top: 0; padding-bottom: 0; font-size: .9375rem; }
html.simple .chip { min-height: 48px; font-size: 1rem; }
html.simple .tiny { font-size: .9375rem; }
html.simple .small { font-size: 1rem; }
html.simple :is(.input, .select, .textarea) { border-width: 2px; }
html.simple .worlds .world-art, html.simple #w-media { display: none; }
@media (max-width: 760px) {
  html.simple .items-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  html.simple .items-grid .item-media { height: 190px; }
  html.simple .items-grid :is(.item-meta, .item-price) { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
  html.simple .kv { grid-template-columns: minmax(0, 1fr); }
  html.simple .kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  html.simple .kv span { font-size: 1rem; }
  html.simple #p-mats .list-row { flex-wrap: wrap; gap: 2px 12px; }
  html.simple #p-mats .list-row > .grow { flex: 1 1 100%; }
  html.simple .list-row:has(> .btn) > .tag { margin-left: 0; }
}
.simple-actions { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.simple-btn { display: flex; align-items: center; min-height: 96px; padding: 20px 24px; border-radius: 24px; background: var(--mech); color: var(--papir); font-size: 1.3125rem; font-weight: 600; text-decoration: none; line-height: 1.3; }
.simple-btn:hover { background: var(--mech-tmavy); color: var(--papir); }
.simple-toggle { white-space: nowrap; }
@media (max-width: 1320px) { .simple-toggle { margin-left: auto; } .nav-toggle { margin-left: 0; } }
@media (max-width: 600px) {
  /* Telefon: hlavička = logo + lupa + Menu v jednom řádku, přepínač pro starší je v horním proužku */
  .site-header .wrap { min-height: 60px; }
  .site-header .simple-toggle { display: none; }
  .nav-toggle { padding: 0 14px; font-size: .9375rem; line-height: 1; }
  .header-search { width: 44px; min-width: 44px; padding: 0; justify-content: center; }
  .proto-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 20px 2px 24px; text-align: left; line-height: 1.3; }
  .proto-text { flex: 1 1 auto; min-width: 0; }
  .proto-long { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .proto-dot { display: none; }
  .proto-sep { display: inline; }
  .proto-toggle { display: inline-flex; }
}
@media (max-width: 480px) {
  .site-header .wrap { gap: 10px; flex-wrap: nowrap; }
  .site-header .wrap:has(.nav.is-open) { flex-wrap: wrap; }
  .logo { font-size: 1.375rem; gap: 6px; }
  .logo svg { width: 24px; height: 28px; }
}
/* Výrazné zaměření celé volby místo čtverečku kolem přepínače */
.option input:focus-visible, .check input:focus-visible { outline: none; }
.option:has(input:focus-visible), .check:has(input:focus-visible) { outline: 3px solid var(--terakota); outline-offset: 2px; }
/* Fotky a nákresy u poptávek */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.gal-item { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.gal-item img, .gal-item svg { width: 100%; height: 240px; object-fit: cover; border-radius: 18px; background: var(--louka); }
.gal-sketch { grid-column: 1 / -1; }
.gal-sketch svg { height: auto; object-fit: contain; box-shadow: 0 14px 30px -22px rgba(43,42,36,.5); transform: rotate(-0.6deg); }
.item-media--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item-media > svg[aria-label="Ručně kreslený nákres zadavatele"] { width: 100%; height: 100%; max-height: none; }
.photo-preview { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-preview img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; }
@media (max-width: 400px) {
  .proto-bar { padding-left: 16px; padding-right: 12px; }
  .site-header .wrap { padding-left: 16px; padding-right: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Účty ---------- */
.auth-box { max-width: 560px; }
.form-msg { padding: 12px 14px; border-radius: 12px; background: #F6E3DA; color: var(--terakota-text, #A4532F); font-size: 0.9375rem; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose h2:not(:first-child) { margin-top: 20px; }   /* nadpis blíž k textu pod sebou než nad sebou (plán č. 34) */
.prose p, .prose li { line-height: 1.6; }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover strong { text-decoration: underline; }
.proto-bar a { color: var(--slunecnice); text-decoration: underline; display: inline-block; padding: 10px 6px; margin: -10px -6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Hledání ---------- */
.search-hit { display: grid; gap: 6px; padding: 16px 18px; border-radius: 18px; background: var(--papir); border: 1px solid var(--linka); }
.search-hit .tag { justify-self: start; }
.search-hit:hover { border-color: var(--mech); }
.search-open, .search-open body { overflow: hidden; overscroll-behavior: none; }
.search-panel { position: fixed; inset: auto; top: calc(var(--search-top, 0px) + min(7vh, 56px)); left: 50%; transform: translateX(-50%); margin: 0; padding: 0; width: min(760px, calc(100% - 32px)); height: min(720px, calc(var(--search-height, 100dvh) - 80px)); max-height: none; max-width: none; border: 1px solid var(--linka); border-radius: 24px; background: var(--papir); color: var(--hlina); box-shadow: 0 24px 80px #1b241b40; overflow: hidden; }
.search-panel[open] { display: flex; flex-direction: column; }
.search-panel::backdrop { background: #24291f66; backdrop-filter: blur(3px); }
.search-panel-head { flex: none; padding: 20px 24px 12px; display: grid; gap: 12px; border-bottom: 1px solid var(--linka); }
.search-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.search-panel-heading h2 { min-width: 0; }
.search-panel .btn, .search-panel .chip { min-height: 44px; }
.search-close { flex-shrink: 0; padding: 8px 12px; }
.search-panel-form { display: flex; gap: 8px; }
.search-panel-form input { flex: 1; min-width: 0; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--linka-pole); border-radius: 12px; font: 16px var(--sans); background: #fff; color: var(--hlina); }
.search-panel-form .btn { padding: 8px 12px; }
.search-panel-filters { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; overscroll-behavior-x: contain; scrollbar-width: thin; }
.search-panel-filters .chip { flex-shrink: 0; white-space: nowrap; }
.search-panel-results { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 24px 24px; scroll-padding: 16px; }
.search-result-group + .search-result-group { margin-top: 24px; }
.search-result-list { display: grid; gap: 8px; margin-top: 10px; }
.search-result { display: flex; align-items: center; gap: 8px; border: 1px solid var(--linka); border-radius: 14px; background: #fff; padding-right: 10px; }
.search-result-link { min-width: 0; flex: 1; display: grid; gap: 4px; padding: 14px; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.search-result-link:hover { color: var(--mech); }
.search-result-link .small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-call { flex-shrink: 0; padding: 10px 12px; font-size: .875rem; }
.search-more { margin-top: 10px; }
.z-search-launch { display: flex; align-items: center; gap: 10px; min-height: 50px; width: 100%; border: 1px solid var(--linka-pole); border-radius: 14px; padding: 12px 16px; background: var(--papir); color: var(--hlina); text-align: left; cursor: pointer; font: 1rem var(--sans); }
.z-search-launch[hidden] { display: none; }
.z-search-launch .muted { margin-left: auto; }
@media (max-width: 600px) {
  .search-panel { top: calc(var(--search-top, 0px) + 8px); width: calc(100% - 16px); height: calc(var(--search-height, 100dvh) - 16px); border-radius: 18px; }
  .search-panel-head { padding: 12px 12px 8px; gap: 8px; }
  .search-panel-heading .h3 { font-size: 1.2rem; }
  .search-panel-head > .small { font-size: .8rem; }
  .search-panel-results { padding: 12px 12px max(16px, env(safe-area-inset-bottom)); }
  .search-result-link { padding: 12px; }
  .z-search-launch .muted { display: none; }
}
@media (max-height: 500px) {
  .search-panel { top: calc(var(--search-top, 0px) + 4px); height: calc(var(--search-height, 100dvh) - 8px); }
  .search-panel-head > p:not([role=status]) { display: none; }
  .search-panel-head { gap: 6px; padding-top: 8px; }
}
.search-hit mark { background: var(--slunecnice); color: var(--hlina); border-radius: 3px; padding: 0 2px; }
.btn--icon { display: inline-flex; align-items: center; gap: 6px; }
.mb-16 { margin-bottom: 16px; }
.btn--icon .search-label { display: none; }
@media (min-width: 1321px) { .site-header .nav { order: 1; } .header-search { order: 2; } .header-actions { order: 3; } }
@media (max-width: 1320px) { .header-search { margin-left: auto; padding: 0 12px; } .header-search + .nav-toggle { margin-left: 0; } }
@media (max-width: 420px) { .site-header .wrap { gap: 10px 8px; } .header-search { min-width: 44px; justify-content: center; } }

/* ---------- Pilotní banner ---------- */
.pilot-banner { background: var(--slunecnice); color: var(--hlina); border-bottom: 1px solid rgba(43,42,36,.12); }
.pilot-banner .wrap { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.pilot-text { margin: 0; flex: 1 1 320px; font-size: 0.9375rem; line-height: 1.45; }
.pilot-left { display: inline-block; margin-left: 4px; padding: 1px 10px; border-radius: 999px; background: var(--papir); font-size: 0.8125rem; font-weight: 600; }
.pilot-more { display: inline-flex; align-items: center; min-height: 44px; padding: 0; color: var(--hlina); font-size: .875rem; font-weight: 500; }
.pilot-short, .pilot-btn-short { display: none; }
.pilot-close { min-width: 44px; min-height: 44px; margin-left: auto; border: 0; background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--hlina); }
@media (max-width: 600px) {
  /* Telefon: banner v jednom řádku – krátký text, „Chci“ a zavřít */
  .pilot-banner .wrap { flex-wrap: nowrap; gap: 6px; padding-top: 4px; padding-bottom: 4px; padding-right: 4px; }
  .pilot-text { flex: 1 1 0; min-width: 0; font-size: .875rem; line-height: 1.3; }
  .pilot-long, .pilot-more, .pilot-btn-long { display: none; }
  .pilot-short, .pilot-btn-short { display: inline; }
  .pilot-banner .btn { flex: 0 0 auto; white-space: nowrap; min-height: 44px; padding: 0 13px; font-size: .875rem; }
  html.simple .pilot-banner .btn { min-height: 44px; padding: 0 13px; font-size: .875rem; }
  .pilot-close { flex: 0 0 40px; min-width: 40px; margin-left: 0; }
}
.btn--obrys-svetle { border: 1px solid rgba(251,248,242,.6); color: var(--papir); background: transparent; }
.btn--obrys-svetle:hover { background: rgba(251,248,242,.12); color: var(--papir); }
@media (max-width: 380px) {
  .site-header .wrap { gap: 8px 6px; }
  .logo { font-size: 1.375rem; gap: 6px; }
  .logo svg { width: 24px; height: 28px; }
  .nav-toggle { padding: 0 12px; }
}
@media (max-width: 349px) {
  /* Nejužší telefony: Menu jen jako ikona (název nese aria-label) */
  .nav-toggle { width: 44px; padding: 0; justify-content: center; }
  .nav-toggle .nav-label { display: none; }
}
@media (max-width: 600px) {
  /* Lišta pro starší na telefonu: vysvětlení jen pro čtečky, odkazy jako velká tlačítka vedle sebe */
  .simple-help .wrap { flex-wrap: nowrap; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .simple-help .wrap > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .simple-help a { flex: 1 1 0; min-width: 0; justify-content: center; text-align: center; min-height: 48px; padding: 4px 8px; border-radius: 14px; background: var(--papir); border: 1px solid var(--linka-2); color: var(--hlina); text-decoration: none; line-height: 1.2; font-size: .875rem; }
}

/* ---------- Typografie na telefonu (≤600 px) ---------- */
@media (max-width: 600px) {
  .display { font-size: 2.5rem; line-height: 1.05; letter-spacing: -0.025em; }
  h1.h2 { font-size: 2rem; line-height: 1.1; }
  .h2 { font-size: 1.75rem; line-height: 1.12; letter-spacing: -0.02em; font-weight: 350; }
  .h3 { font-size: 1.375rem; }
  .h4 { font-size: 1.1875rem; }
  .lead { font-size: 1.125rem; line-height: 1.5; }
  .small { font-size: .9375rem; line-height: 1.5; }
  .tiny { font-size: .875rem; line-height: 1.45; }
  .eyebrow { letter-spacing: .08em; }
  .big-num { font-size: 2.25rem; line-height: 1.1; }
  .items-grid .item-title { font-size: 1.0625rem; }
}

/* ---------- Hlavička detailu jen s drobečkovou navigací ---------- */
@media (max-width: 760px) {
  .page-head:has(> .wrap > .breadcrumb:only-child) { padding: 8px 0 0; }
  .page-head:has(> .wrap > .breadcrumb:only-child) + .section { padding-top: 8px; }
}

/* ---------- Dotyk bez skoků po klepnutí, omezený pohyb ---------- */
@media (hover: none) {
  .btn:hover, .card-link:hover, .world:hover, .persona:hover, .item-card:hover .item-media { transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Komponenty: štítky, formuláře, odkazy, kroky, patička, tabulky (plán č. 9) ---------- */
.km-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section--louka .tag:not([class*="tag--"]) { background: var(--papir); }
.card.row-between { align-items: flex-start; }
.fieldset-reset > legend:not(.sr-only) { padding: 0; margin-bottom: 16px; }
.fieldset-reset.gap-8 > legend:not(.sr-only) { margin-bottom: 8px; }
.input[type="file"] { padding: 8px; font-size: .9375rem; min-width: 0; }
.input[type="file"]::file-selector-button { min-height: 44px; margin-right: 12px; padding: 0 18px; border: 1px solid var(--hlina); border-radius: 999px; background: transparent; color: var(--hlina); font: inherit; font-weight: 500; cursor: pointer; }
.details-more > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--mech); list-style: none; }
.details-more > summary::-webkit-details-marker { display: none; }
.details-more > summary::after { content: '+'; color: var(--terakota-text); font-size: 1.25rem; line-height: 1; }
.details-more[open] > summary::after { content: '–'; }
.steps li > a { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; font-weight: 500; }
.link-tap { display: inline-flex; align-items: center; min-height: 44px; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list a { display: inline-flex; align-items: center; min-height: 44px; }
.link-btn { align-self: flex-start; padding: 8px 0; border: 0; background: none; color: var(--mech); font: inherit; font-size: .9375rem; text-decoration: underline; cursor: pointer; }
.mobile-only { display: none; }
.empty .row { justify-content: center; }
@media (max-width: 760px) {
  .btn.mobile-only { display: flex; }
  .hide-mobile { display: none !important; }
  /* Kroky: číslo vlevo, text vedle (méně výšky než číslo nad textem) */
  .steps { gap: 0; }
  .steps li { position: relative; padding: 14px 0 14px 48px; gap: 4px; border-top-width: 1px; }
  .steps .num { position: absolute; left: 0; top: 12px; font-size: 1.75rem; }
  /* Patička: odkazy ve dvou sloupcích, dotykový cíl ~40 px */
  .site-footer { padding: 48px 0 24px; }
  .footer-top { gap: 28px; }
  .footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; width: 100%; }
  .footer-cols nav { gap: 0; }
  .footer-cols nav a { padding: 10px 0; line-height: 1.3; }
  .footer-cols nav:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .footer-cols nav:last-child strong { grid-column: 1 / -1; }
  .footer-bottom { margin-top: 28px; font-size: .8125rem; }
}
@media (max-width: 600px) {
  /* Hledání v jednom řádku: pole se zúží, tlačítko zůstane vedle */
  .searchbar { flex-wrap: nowrap; padding: 6px; gap: 6px; }
  .searchbar label { flex: 1 1 auto; min-width: 0; padding: 0 6px 0 12px; gap: 8px; }
  .searchbar input { min-width: 0; width: 100%; text-overflow: ellipsis; }
  .searchbar .btn { flex: 0 0 auto; min-height: 44px; padding: 0 18px; }
  /* Tlačítka v kartách a úvodech přes celou šířku */
  .card > .btn.align-start, .card.row-between > .btn { align-self: stretch; }
  .card .row > .btn { flex: 1 1 100%; }
  .page-head :is(.row, .chips) > .btn, .hero .row > .btn { flex: 1 1 100%; }
  .row-between > .btn { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
  .empty { padding: 18px 20px; border-radius: 18px; }
  /* Řádky s akcí (Moje): avatar a text na prvním řádku, štítek a tlačítko na druhém */
  .list-row:has(> .btn) { flex-wrap: wrap; align-items: flex-start; row-gap: 10px; }
  .list-row:has(> .btn) > .grow { flex: 1 1 calc(100% - 70px); }
  .list-row:has(> .btn) > .tag { margin-left: 70px; }
  .list-row:has(> .btn) > .btn { margin-left: auto; }
  /* Tabulka jako bloky pod sebou (opt-in třídou .table--stack) */
  .table.table--stack { min-width: 0; }
  .table--stack, .table--stack tbody { display: block; }
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table--stack tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px; padding: 14px 0; border-top: 1px solid var(--linka); }
  .table--stack tbody tr:not(:has(> :nth-child(3))) { grid-template-columns: minmax(0, 1fr); }
  .table--stack tbody tr:last-child { border-bottom: 1px solid var(--linka); }
  .table.table--stack tbody :is(th, td), .table.table--stack tbody tr:last-child :is(th, td) { padding: 0; border: 0; }
  .table--stack tbody th { font-size: 1.1875rem; line-height: 1.3; }
  .table--stack tbody td:nth-child(n+3) { grid-column: 1 / -1; font-size: .9375rem; }
  .table--stack td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--hlina); }
}
.card--tma .tips-title { color: var(--slunecnice); }

/* ---------- Úvod: manifest a dlaždice jako kompaktní seznam, newsletter, Zavolejte mi (plán č. 12) ---------- */
#zavolejte .field { max-width: 30rem; }
.cta-band > form { flex: 1 1 320px; }
.cta-band .field { flex: 1 1 220px; }
@media (max-width: 760px) {
  .manifest { gap: 0; }
  .manifest .card { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; row-gap: 4px; padding: 16px 0; background: none; border-radius: 0; border-top: 1px solid var(--linka); }
  .manifest .card:last-child { border-bottom: 1px solid var(--linka); }
  .manifest .num { font-size: 1.75rem; grid-row: span 2; }
  .persona-grid { gap: 10px; }
  .persona { position: relative; padding: 14px 44px 14px 18px; gap: 2px; border-radius: 18px; }
  .persona .h4 { font-size: 1.125rem; }
  .persona::after { content: '›'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.625rem; line-height: 1; color: var(--terakota-text); }
  .persona--tma::after { color: var(--slunecnice); }
}
@media (max-width: 600px) { .cta-band .btn { width: 100%; } }

/* ---------- Rozbalovací bloky jen na telefonu (details.fold; JS je na širších displejích drží otevřené) ---------- */
.fold { display: block; }
.fold > summary { list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary > :is(h2, h3, h4, p) { margin: 0; }
.fold-body { margin-top: 12px; }
@media (max-width: 600px) {
  .fold.card { padding-top: 6px; padding-bottom: 6px; }
  .fold[open].card { padding-bottom: 20px; }
  .fold > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; cursor: pointer; }
  .fold > summary::after { content: '+'; flex: 0 0 auto; font-size: 1.5rem; line-height: 1; color: var(--terakota-text); }
  .fold[open] > summary::after { content: '–'; }
  .fold-body { margin-top: 2px; }
}

/* ---------- Zahrada: nabídky na telefonu jen první 4, tipy (plán č. 13) ---------- */
.list-more { display: none; }
@media (max-width: 760px) {
  .page-head [data-render="tips"] { padding: 18px 20px; }
  .page-head [data-render="tips"] .ticks { gap: 6px; }
}
@media (max-width: 600px) {
  body[data-page="zahrada"] #list:not(.is-open) > :nth-child(n+5) { display: none; }
  .list-more { display: flex; }
}

/* ---------- Plaketa: menší plaketa a průběžné skóre na telefonu (plán č. 14) ---------- */
.score-sticky { display: none; }
@media (max-width: 760px) {
  .plaque { width: min(200px, 100%); border-width: 8px; padding: 14px; gap: 4px; box-shadow: 0 18px 30px -24px rgba(43,42,36,.45); }
  .plaque .eyebrow { letter-spacing: .06em; line-height: 1.3; }
  .plaque svg { width: 64px; height: auto; }
  .plaque .name { font-size: 1.5rem; }
  body[data-page="plaketa"] .page-head .split { gap: 28px; }
  .score-sticky { display: block; position: sticky; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 5; margin: 0; padding: 10px 18px; border-radius: 999px; background: var(--hlina); color: var(--len); font-weight: 600; text-align: center; box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); }
}

/* ---------- Záhon: oddělené kroky, viditelný košík, souhrn ceny, ukázky a nářadí na telefonu (plán č. 15) ---------- */
#bed-form { gap: 32px; }
/* Oddělovač pod krokem (horní okraj fieldsetu by protínal legendu) */
#bed-form > fieldset:not(:last-of-type) { padding-bottom: 28px; border-bottom: 1px solid var(--linka); }
.bed-summary .card { background: var(--len); border: 1px solid var(--linka); }
.summary-row--total { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 14px; }
.summary-row--total > strong { margin-left: 0; text-align: left; }
.summary-row--total #sum-total { font-size: 1.625rem; line-height: 1.15; }
.bed-sticky, .bed-more { display: none; }
@media (max-width: 760px) {
  .bed-sticky { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 12px; position: sticky; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 5; min-height: 52px; padding: 10px 16px; border-radius: 16px; background: var(--hlina); color: var(--len); text-decoration: none; box-shadow: 0 10px 24px -12px rgba(43,42,36,.5); }
  .bed-sticky:hover { color: var(--len); }
  .bed-sticky span { font-size: .875rem; }
  .bed-sticky strong { margin-left: auto; font-family: var(--serif); font-size: 1.0625rem; white-space: nowrap; }  /* když se nevejde, celé rozpětí spadne pod popisek */
}
@media (max-width: 600px) {
  .bed-summary .card { padding: 20px 16px; }
  #bed-examples { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  #bed-examples .item-media { height: 140px; }
  #bed-examples .btn { display: flex; width: 100%; }
  #bed-examples:not(.is-open) > .item-card:nth-child(n+4) { display: none; }
  .bed-more { display: flex; }
  .tools { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--linka); }
  .tool { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 0; align-items: start; padding: 12px 0; background: none; border: 0; border-bottom: 1px solid var(--linka); border-radius: 0; }
  .tool-ico { width: 40px; height: 40px; grid-row: 1 / span 3; }
  .tool-ico svg { width: 22px; height: 22px; }
  .tool > :not(.tool-ico) { grid-column: 2; }
  .tool a { display: inline-flex; min-height: 40px; align-items: center; }
  #ready-beds { gap: 10px; }
  #ready-beds .card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 14px 18px; align-items: baseline; }
  #ready-beds .card > :first-child { grid-column: 1 / -1; }
}

/* ---------- Začít s řemeslem: kvíz, sazby jako bloky (plán č. 16) ---------- */
.only-narrow { display: none; }
@media (max-width: 943px) { .only-wide { display: none; } .only-narrow { display: inline; } }  /* .split je pod sebou pod 944 px */
.table .unit-stack { display: none; }
@media (max-width: 600px) {
  .table--stack .unit-stack { display: inline; }
  #quiz .quiz-option { flex: 1 1 100%; text-align: left; }
}

/* ---------- Řemeslo: odkazy pod hlavním tlačítkem (plán č. 17) ---------- */
.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
.link-row > span { color: var(--kura-svetla); }

/* ---------- Řemeslníci: vedlejší filtry sbalené na telefonu, kompaktní karty (plán č. 18) ---------- */
.filters-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--mech); font: inherit; font-weight: 600; cursor: pointer; justify-self: start; }
.filters-toggle::after { content: '+'; color: var(--terakota-text); font-size: 1.25rem; line-height: 1; }
.filters-toggle[aria-expanded="true"]::after { content: '–'; }
@media (max-width: 600px) {
  .js-filters .filters-toggle { display: inline-flex; }
  .js-filters:not(.is-open) .f-extra { display: none; }
}
@media (max-width: 760px) {
  a.card-link > .row--nowrap { gap: 14px; }
  a.card-link > .row--nowrap > .avatar:not(.avatar--lg):not(.avatar--arch) { width: 44px; height: 44px; font-size: 1.125rem; }
}

/* ---------- Profil: hlavička bez přetečení, menší avatar na telefonu, volby služeb, legenda (plán č. 19) ---------- */
#profile-head .row--nowrap > .stack { flex: 1 1 260px; min-width: 0; }
.legend i.tone-papir { border-color: var(--kura-svetla); }
.legend i.is-busy { border-style: dashed; border-color: var(--kura-svetla); background: transparent; }
@media (max-width: 760px) {
  #profile-head .row--nowrap { flex-wrap: wrap; gap: 16px; }
  #profile-head .avatar--arch { width: 72px; height: 88px; font-size: 2rem; border-radius: 36px 36px 12px 12px; }
  #profile-head .btn { align-self: stretch; }
  .booking .card { padding: 16px; }
  .option { align-items: flex-start; gap: 12px; padding: 12px 14px; }
  .option:has(input:checked) { padding: 11px 13px; }
  .option input { margin-top: 3px; }
}

/* ---------- Detail zakázky: kotvy na nabídky, sbalený košík na telefonu (plán č. 21) ---------- */
@media (min-width: 900px) { #p-jump { display: none; } }
.fold--more > summary { color: var(--mech); font-weight: 600; }
@media (min-width: 601px) { .fold--more > summary { display: none; } }
.mats-more > summary { border-top: 1px solid var(--linka); }

/* ---------- Zadat zakázku: rozměry ve 3 sloupcích, tlačítka průvodce (plán č. 22) ---------- */
#wiz-dims .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) {
  #wizard > .row { flex-wrap: nowrap; }
  #wizard > .row > .btn--mech { flex: 1 1 auto; }
}

/* ---------- Půjčit si: počet a řazení v jednom řádku (plán č. 23) ---------- */
.list-head { align-items: center; }
@media (max-width: 760px) {
  .page-head .ticks.small { gap: 6px; }
  .list-head .select { width: auto; min-height: 44px; }
}

/* ---------- Věc: kalendář a hodnoty na telefonu (plán č. 24) ---------- */
@media (max-width: 760px) {
  .days { gap: 4px; }
  .kv strong { font-size: 1.125rem; }
}

/* ---------- Objevuj: popisky tlačítek pro starší, mezera pod balíčkem, kratší popis (plán č. 25) ---------- */
.deck-btn-label { display: none; }
html.simple .deck-btn { width: auto; height: 56px; padding: 0 20px; border-radius: 999px; gap: 8px; }
html.simple .deck-btn-label { display: inline; font-size: 1rem; font-weight: 600; }
html.simple .swipe-why { font-family: var(--sans); font-style: normal; font-size: 1rem; line-height: 1.45; }
/* Pro starší: ✕ Dál a ♥ Uložit vedle sebe, odkaz na detail celou šířkou pod nimi (jinak by se lámal do dvou řádků) */
html.simple .deck-page .deck-actions { flex-wrap: wrap; gap: 12px 28px; }
html.simple #deck-detail { order: 3; flex: 1 0 100%; }
@media (max-width: 760px) {
  .deck-page .deck { margin-bottom: 22px; }
  /* Málo místa (skript fit): ilustrace se skryje, text karty vyplní kartu a neusekne se */
  .deck--tight .swipe-art { display: none; }
  .deck--tight .swipe-info { flex: 1 1 auto; border-radius: 0; }
}
/* Popis karty nejvýš na 3 řádky; na nízkých displejích (≤ 720 px) zůstává skrytý (viz výše). */
@media (max-width: 760px) and (min-height: 721px) {
  .swipe-why { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ---------- Workshop (detail): karta lektora v jednom řádku (plán č. 27) ---------- */
.lector-card { flex-direction: row; align-items: center; gap: 16px; padding: 16px 20px; }
.lector-card .avatar { flex: 0 0 auto; width: 48px; height: 48px; font-size: 1.25rem; }

/* ---------- Brigády: výrazné datum, štítky jako popisky, patička karty (plán č. 28) ---------- */
.job-when { margin: 0; font-size: 1rem; font-weight: 600; color: var(--hlina); }
.job-tags .tag { background: var(--len); border: 0; font-weight: 500; color: var(--kura); }
.job-foot { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.job-foot .tag { align-self: flex-start; }
@media (min-width: 761px) { .job-foot { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- Pro zlaté ruce: výhody, plochý formulář, náhled a tarify na telefonu (plán č. 29) ---------- */
/* Výhody 5–8 jsou v details.fold: na širších displejích otevřené a navazují na mřížku jako jeden celek. */
.adv-more > .fold-body { margin-top: 20px; }
.card--mech .fold--more > summary, .card--mech .fold > summary::after { color: var(--slunecnice); }
@media (max-width: 760px) {
  /* Vnořené karty ve formuláři na telefonu ploché: pole jsou zarovnaná s textem a mají celou šířku */
  #pro-form > .card:not(#p-account):not(#p-saved) { padding: 0; background: none; border: 0; border-radius: 0; }
  #pro-form > :is(#p-account, #p-saved) { padding: 16px; border-radius: 18px; }
  #pro-form button[type="submit"] { align-self: stretch; }
}
@media (max-width: 600px) {
  .adv-more { margin-top: 8px; }
  .adv-more > .fold-body { margin-top: 2px; }
  /* Bezplatné tarify kompaktně: název a „Zdarma“ v jednom řádku, body pod nimi */
  .tier-free { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 20px; }
  .tier-free > * { grid-column: 1 / -1; }
  .tier-free > h3 { grid-column: 1; }
  .tier-free > .big-num { grid-column: 2; font-size: 1.75rem; }
}

/* ---------- Ceník: kompaktní pilot na telefonu, služby partnerů jako řádky (plán č. 30) ---------- */
@media (max-width: 600px) {
  .pilot-card { padding: 22px 20px; gap: 10px; }
  .pilot-card > p:not(.eyebrow) { font-size: .9375rem; }
}
.svc-list { gap: 0; padding-top: 6px; padding-bottom: 6px; }
.svc { color: inherit; text-decoration: none; min-height: 64px; }
.svc:hover { color: inherit; }
.svc:hover strong { text-decoration: underline; }
.svc .block { margin-top: 2px; }
.svc-go { flex: 0 0 auto; font-weight: 600; color: var(--mech); white-space: nowrap; }
.svc-list > .svc:first-child { border-top: 0; }
.svc-list > .svc:last-child { border-bottom: 0; }
@media (min-width: 901px) {
  .svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .svc-list > .svc:nth-child(2) { border-top: 0; }
}

/* ---------- Hledání: bez prázdného místa nad prázdným stavem, úryvky nejvýš na 3 řádky (plán č. 31) ---------- */
#q-types:empty { display: none; }
.search-hit .small { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Kontakt, přihlášení, účet: dvě záložky, formuláře zarovnané s textem na telefonu (plán č. 32) ---------- */
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--len); }
.auth-tabs .chip { width: 100%; min-height: 48px; border: 0; justify-content: center; }
.auth-panel .link-btn { min-height: 44px; margin-top: -6px; }
@media (max-width: 600px) {
  .section--papir .auth-box > .card, .section--papir .card.auth-box { background: transparent; padding: 0; border-radius: 0; }
}
.adv { margin-top: 12px; }   /* odstup mřížky výhod od tlačítka nad ní (karta má gap jen 12 px) */

/* ---------- Dorovnání po revizi (ilustrace bez překryvů, cíle, hlavička) ---------- */
/* Ilustrace v kartě nikdy nepod štítkem vzdálenosti/míst ani pod srdíčkem: obrázek dostane vlastní prostor. */
.item-media:has(> .km) { padding-bottom: 48px; }
.item-media:has(> .fav) { padding-top: 40px; }
.items-grid .item-media:has(> .km) { padding-bottom: 38px; }
.items-grid .item-media:has(> .fav) { padding-top: 34px; }
.item-media--photo:has(> .km), .item-media--photo:has(> .fav) { padding: 0; }
/* Oblouk ořezával srdíčko: na kartách s obloukem je srdíčko dole vpravo. */
.item-media--arch .fav { top: auto; bottom: 12px; right: 12px; }
.item-media--arch:has(> .fav) { padding-top: 0; }
.item-media--arch:has(> .fav) > .km { max-width: calc(100% - 84px); }
/* Logo jako dotykový cíl aspoň 44 px. */
.logo { min-height: 44px; }
/* Hlavička 601–1320 px: přepínač i lupa u sebe vpravo, ne přepínač uprostřed. */
@media (min-width: 601px) and (max-width: 1320px) { .site-header .header-search { margin-left: 0; } }
/* Režim pro starší na telefonu: méně pruhů nahoře (přepínač je v horním proužku, navigace dole). */
@media (max-width: 600px) {
  html.simple .simple-help { display: none; }
  html.simple .section.simple-hide + .section { padding-top: 48px !important; }
  .plaque { width: min(240px, 100%); padding: 22px; }
}
/* Čitelnější rozbalovač na zelené kartě. */
.card--mech .fold--more > summary { color: #F0D58C; }
/* Brigády: hlavní tlačítko se nezalamuje. */
.job-foot .btn { white-space: nowrap; }
/* Průvodce zadáním v režimu pro starší nemá přes celou šířku desktopu. */
html.simple #wizard { max-width: 46rem; }
/* Úvod na telefonu: ilustrace jako nízký pás nad nadpisem (v toku, nikdy přes text). */
@media (max-width: 760px) {
  .hero .split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hero .split > * { min-width: 0; }
  .hero-art { display: flex; order: -1; width: 100%; }
  .hero-arch { height: 170px; width: 100%; border-radius: 999px 999px 22px 22px; }
  .hero-arch .blob1 { width: 200px; height: 200px; left: -40px; bottom: -110px; }
  .hero-arch .blob2 { width: 110px; height: 110px; top: 24px; right: -20px; }
  .hero .float-card, .hero .badge-round { display: none; }
}
/* Závěrečná kontrola: workshopy na telefonu (srdíčko nahoře, štítek celou šířkou), první obrazovka úvodu, tlačítka. */
@media (max-width: 760px) {
  .items-grid .item-media--arch .fav { top: 8px; bottom: auto; right: 8px; }
  .items-grid .item-media--arch:has(> .fav) { padding-top: 34px; }
  .items-grid .item-media--arch:has(> .fav) > .km { max-width: calc(100% - 20px); }
  .items-grid .item-price { line-height: 1.25; }
}
@media (max-width: 600px) {
  .hero-arch { height: 120px; }
  .hero .stack-lg > .lead { order: 1; }
  #zelen .row > .btn { flex: 1 1 100%; padding-left: 16px; padding-right: 16px; }
  html.simple input[type="file"] { font-size: 1rem; }
}
.item-price:has(> .btn) { flex-wrap: wrap; row-gap: 8px; }
.item-price > .btn { flex: 0 0 auto; white-space: nowrap; }
#wizard { scroll-margin-top: 100px; }

/* ---------- Zbytky ze závěrečné kontroly (zarovnání, jednotná tlačítka, sbalení na telefonu) ---------- */
/* Karty ve dvou sloupcích na telefonu: cena a tlačítko dole ve stejné výšce, lichá poslední karta přes celou šířku. */
@media (max-width: 760px) {
  .items-grid > .item-card > div:last-child { display: flex; flex-direction: column; flex: 1 1 auto; }
  .items-grid .item-price, .items-grid .proj-foot { margin-top: auto; }
  .items-grid > .item-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* Záhon: názvy v košíku s normálním řádkováním, pro starší název nad cenou; plovoucí lišta v jednom řádku. */
#bed-lines .grow > strong { display: block; line-height: 1.35; }
@media (max-width: 760px) {
  html.simple #bed-lines .list-row { flex-wrap: wrap; gap: 2px 12px; }
  html.simple #bed-lines .list-row > .grow { flex: 1 1 14rem; min-width: 0; }
  html.simple #bed-lines .list-row > strong { margin-left: auto; }
  html.simple .bed-sticky { padding: 8px 12px; gap: 0 8px; }
  html.simple .bed-sticky span { font-size: .8125rem; line-height: 1.3; }
}
/* Kalkulačka přivýdělku: hodnota vždy vpravo vedle popisku, obě volby stejně vysoké. */
#side-calc .summary-row > span { flex: 1 1 0; min-width: 0; }
#side-calc fieldset.row { align-items: stretch; }
/* Volby služeb v rezervaci: sevřenější řádkování, pro starší cena pod názvem. */
.option-head { line-height: 1.3; }
/* Detail bez hlavičky (jen drobečková navigace): obsah hned pod ní i na desktopu. */
@media (min-width: 761px) {
  .page-head:has(> .wrap > .breadcrumb:only-child) { padding-bottom: 0; }
  .page-head:has(> .wrap > .breadcrumb:only-child) + .section { padding-top: 32px; }
}
/* Galerie poptávky: jediná fotka pod nákresem přes celou šířku. */
.gallery > .gal-sketch + .gal-item:last-child { grid-column: 1 / -1; }
@media (min-width: 761px) { .gallery > .gal-sketch + .gal-item:last-child img { height: auto; aspect-ratio: 16 / 9; } }
/* Objevuj: odstup tlačítek od balíčku i na desktopu; nápověda gest u počítadla jen na telefonu. */
.deck-page .deck { margin-bottom: 22px; }
@media (min-width: 761px) { .deck-count-hint { display: none; } }
/* Brigády: patička karty vždy dole, tlačítka v řádku ve stejné výšce. */
@media (min-width: 761px) { .job-foot { margin-top: auto; } }
/* Pro zlaté ruce: výhody 2 + 2 (pro starší vždy), od 1100 px 4 v řádku; dny v pravidelné mřížce. */
@media (min-width: 601px) { .adv .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { html:not(.simple) .adv .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
#pro-form :is(.pick-days, .pick-times) { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.25rem, 1fr)); max-width: 34rem; }
#pro-form .pick-times { grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); }
#pro-form :is(.pick-days, .pick-times) .check { align-items: center; justify-content: center; gap: 8px; padding: 12px 6px; }
#pro-form :is(.pick-days, .pick-times) .check input { margin-top: 0; }
html.simple #pro-form .svc-edit .form-grid { grid-template-columns: minmax(0, 1fr); }
/* Velká tlačítka pro starší: šipka ukazuje, že jde o odkaz. */
.simple-btn::after { content: '→'; content: '→' / ''; flex: 0 0 auto; margin-left: auto; padding-left: 16px; font-size: 1.5rem; line-height: 1; }
/* Účet, kontakt, zásady: obsah zarovnaný pod nadpisem, ne na středu; neviditelná karta bez odsazení. */
.section--papir .auth-box > .card { background: transparent; padding: 0; border-radius: 0; }
@media (min-width: 601px) {
  .wrap.auth-box { max-width: var(--wrap); }
  .wrap.auth-box > * { max-width: 34rem; }
}
/* Sbalený rozbalovač: obsah bez rozměrů (nové prohlížeče ho jinak skrytě rozvrhnou přes následující obsah). */
.fold:not([open]) > :not(summary) { display: none; }
/* Hledání: příklady v prázdném stavu jako odkazy s dostatečnou plochou pro prst. */
.empty a.q-ex { display: inline-block; line-height: 2.8; padding: 0 2px; margin: 0 -2px; }
@media (max-width: 600px) {
  body[data-page="remeslo"] .split > .stack > .row > .btn { flex: 1 1 100%; }
  html.simple a.card-link > .row--nowrap > .avatar { display: none; }
  html.simple .option-head { flex-direction: column; gap: 2px; }
  .card--mech > .stack > .btn.align-start { align-self: stretch; }
  .empty .row > .btn { flex: 1 1 100%; }
}
/* Ukázky práce na profilu: při dvou sloupcích (do ~480 px) lichá poslední dlaždice přes celou šířku. */
@media (max-width: 480px) { .portfolio > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* Průvodce zadáním pro starší na desktopu: volby 2 × 2, ne 3 + 1. */
html.simple #wizard .grid--sm { grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); }

/* Ceny a tlačítka v kartách mřížky zarovnané dole na všech šířkách. */
.items-grid > .item-card { display: flex; flex-direction: column; }
.items-grid > .item-card > div:last-child { display: flex; flex-direction: column; flex: 1 1 auto; }
.items-grid .item-price, .items-grid .proj-foot { margin-top: auto; }
.proj-foot strong { line-height: 1.25; }
@media (max-width: 600px) { .items-grid .proj-foot strong { font-size: 1.0625rem; } }

/* ---------- Profily zlatých rukou: výběr oborů a okresů, služby, ověření ARES, hodnocení ---------- */
.card--louka { background: var(--louka); }
.pick-chosen:empty { display: none; }
.chip--x { display: inline-flex; align-items: center; gap: 8px; background: var(--louka); border-color: var(--salvej-2); max-width: 100%; text-align: left; }
.chip--x > span { color: var(--terakota-text); font-size: 1.125rem; line-height: 1; }
.pick-other { gap: 8px; }
.pick-other .input { flex: 1 1 auto; min-width: 0; }
.pick-other .btn { flex: 0 0 auto; }
.svc-edit { padding: 20px; gap: 14px; }
.svc-edit .row-between { align-items: center; }
:is([data-svc-rm], [data-reply-toggle]) { min-height: 44px; }
#p-ares:empty { display: none; }
#p-saved:focus { outline: none; }
@media (max-width: 600px) {
  .svc-edit { padding: 16px; }
  #p-ico-actions > .btn { flex: 1 1 100%; }
}

/* ---------- Burza práce: soukromé údaje, místa na nabídky, domluva (kontakty, zprávy, hodnocení) ---------- */
.private-box { background: var(--maslo); border-radius: 18px; padding: 16px; }
.private-box .input { background: var(--papir); }
.offer--won { border-color: var(--salvej-3); background: var(--louka); }
.slots-full { color: var(--terakota-text); font-weight: 600; }
.contact-list { display: grid; gap: 6px; }
.contact-list a { overflow-wrap: anywhere; }
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 26rem; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.msg { align-self: flex-start; max-width: 88%; min-width: 0; background: var(--louka); border-radius: 18px 18px 18px 6px; padding: 10px 14px; }
.msg--mine { align-self: flex-end; background: var(--maslo); border-radius: 18px 18px 6px 18px; }
.msg-body { margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-foot { align-items: center; gap: 12px; }
.stars-pick { display: flex; flex-wrap: wrap; gap: 2px; }
.star-opt { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-size: 1.75rem; line-height: 1; color: var(--linka-pole); cursor: pointer; border-radius: 12px; }
.star-opt.is-on { color: var(--terakota-text); }
.star-opt:has(input:focus-visible) { outline: 3px solid var(--terakota); outline-offset: 2px; }
@media (max-width: 600px) {
  .chat-foot > .btn { flex: 1 1 100%; }
  #p-owner .row > .btn { flex: 1 1 100%; }
}
#offer-form .textarea:disabled, #offer-form .check:has(input:disabled) { opacity: .5; cursor: not-allowed; }

/* ---------- Rezervace termínů: objednání na profilu, detail rezervace, seznamy v účtu ---------- */
/* Cíle programového zaměření (tabindex="-1") bez rámečku; ovládací prvky si rámeček nechávají. */
:is(#bk-step, #bk-done, #terminy, #zpravy, #hodnoceni):focus { outline: none; }
#r-note .msg-body { margin-top: 0; }
#r-who:empty { display: none; }
#terminy .list-row > .tag { flex: 0 0 auto; }
@media (max-width: 600px) {
  :is(#r-state, #bk-step, #bk-done) .row > .btn { flex: 1 1 100%; }
  #r-aside > .card > .btn.align-start { align-self: stretch; }
  #terminy .list-row { flex-wrap: wrap; row-gap: 6px; }
  #terminy .list-row > .grow { flex: 1 1 100%; }
}

/* ---------- Upozornění: zvoneček v hlavičce, seznam upozornění, nastavení e-mailu ---------- */
.header-bell { position: relative; width: 44px; min-width: 44px; padding: 0; justify-content: center; }
.header-bell[hidden], .bell-count[hidden] { display: none; }
.bell-count { position: absolute; top: 2px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--terakota-text); color: var(--papir); font-size: .75rem; font-weight: 600; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px var(--len); pointer-events: none; }
.header-bell:hover .bell-count { box-shadow: 0 0 0 2px var(--hlina); }
/* Dva zvonečky se stejným stavem: do 1320 px v řádku s lupou a Menu (tlačítka účtu jsou schovaná v menu),
   na širších obrazovkách ve skupině s tlačítky Moje a účet, ať se při zalomení hlavičky drží u sebe. */
@media (max-width: 1320px) { .header-bell--wide { display: none !important; } }
@media (min-width: 1321px) { .header-bell--row { display: none !important; } }
/* Pro starší na širokém displeji je logo s přepínačem v prvním řádku samo: přihlášenému tam patří i zvoneček a účet,
   jinak by se se jménem zalomily do třetího řádku. */
@media (min-width: 1601px) { html.simple .site-header .wrap.has-bell > .header-actions { order: 0; margin-left: auto; } }
/* 601–660 px pro starší: s přepínačem i zvonečkem se nevejde nápis Menu, zůstane ikona (název nese aria-label). */
@media (min-width: 601px) and (max-width: 660px) {
  html.simple .site-header .wrap.has-bell .nav-toggle { width: 44px; padding: 0; justify-content: center; }
  html.simple .site-header .wrap.has-bell .nav-label { display: none; }
}
#n-wrap > *, #n-head > * { max-width: 48rem; }
.notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.notif-row { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 14px 16px; border-radius: 18px; background: var(--papir); border: 1px solid var(--linka); color: var(--hlina); text-decoration: none; }
a.notif-row:hover { color: var(--hlina); border-color: var(--mech); }
a.notif-row:hover .notif-title { text-decoration: underline; }
.notif.is-unread .notif-row { background: var(--maslo); border-color: var(--linka-2); }
.notif-dot { flex: 0 0 10px; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; }
.notif.is-unread .notif-dot { background: var(--terakota-text); }
.notif-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.notif-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.notif-title { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.notif:not(.is-unread) .notif-title { font-weight: 500; }
.notif-body { color: var(--kura); overflow-wrap: anywhere; }
.notif-go { flex: 0 0 auto; align-self: center; display: inline-flex; color: var(--kura); }
.notif-read { flex: 0 0 auto; align-self: center; }
.notif-pref { display: flex; flex-direction: column; gap: 2px; }
#upozorneni-email { max-width: 560px; }
#upozorneni-email:focus { outline: none; }
html.simple .notif-body { color: #3F3D35; }
@media (max-width: 600px) {
  .notif-row { padding: 12px 14px; gap: 10px; }
  .notif-row:has(> .notif-read) { flex-wrap: wrap; }
  .notif-row > .notif-read { margin-left: 22px; }
  #n-all { align-self: stretch; max-width: none; }
  #upozorneni-email > .btn.align-start { align-self: stretch; }
}

/* ---------- Sdílení, „Zavolejte mi“ a Správa (admin.html) ---------- */
.share-btn svg { flex: 0 0 auto; }
.footer-admin { opacity: .85; }
.admin-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.admin-tools .field { min-width: min(16rem, 100%); }
.admin-tools > p { flex: 1 1 100%; }
.admin-jump .chip { display: inline-flex; align-items: center; text-decoration: none; color: var(--hlina); background: var(--papir); }
.admin-kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(9.5rem, 100%), 1fr)); }
.admin-kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 18px; background: var(--len); border: 1px solid var(--linka); min-width: 0; }
.admin-kpi-label { font-size: .875rem; font-weight: 600; color: var(--kura); }
.admin-kpi-value { font-family: var(--sans); font-weight: 600; font-size: 1.75rem; line-height: 1.15; overflow-wrap: anywhere; }
.admin-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); align-items: start; }
.admin-card { padding: 22px; }
.admin-plot { margin: 0; min-width: 0; }
.admin-plot-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.admin-plot-total { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
/* Graf: geometrie v SVG (roztažené na šířku), osy a hodnoty v HTML. Čára 2 px, plocha 10 %, mřížka 1 px. */
.a-plot { position: relative; height: 110px; padding-top: 18px; cursor: crosshair; touch-action: pan-y; }
.a-plot--line { height: 170px; }
.a-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.a-ymax { position: absolute; top: 0; left: 0; font-size: .75rem; line-height: 1; color: var(--kura); font-variant-numeric: tabular-nums; }
.a-grid { stroke: var(--linka); stroke-width: 1; }
.a-base { stroke: var(--linka-2); stroke-width: 1; }
.a-line { fill: none; stroke: var(--mech); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.a-area { fill: var(--mech); fill-opacity: .1; }
.a-col { fill: var(--mech); }
.a-cross { position: absolute; top: 18px; bottom: 0; width: 0; border-left: 1px solid var(--hlina); pointer-events: none; }
.a-xlabels { display: flex; justify-content: space-between; gap: 12px; }
.a-readout { min-height: 1.45em; color: var(--hlina); font-variant-numeric: tabular-nums; }
.a-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.a-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.a-bar-label { font-size: .9375rem; min-width: 0; overflow-wrap: anywhere; }
.a-bar-num { font-size: .9375rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.a-bar-num .muted { font-weight: 400; }
.a-bar { grid-column: 1 / -1; display: block; height: 10px; border-radius: 0 4px 4px 0; background: var(--len); overflow: hidden; }
.a-bar-fill { display: block; width: 0; height: 100%; border-radius: 0 4px 4px 0; background: var(--mech); }
.a-step { grid-column: 1 / -1; }
.admin-list { display: flex; flex-direction: column; }
.admin-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--linka); }
.admin-row:last-child { border-bottom: 1px solid var(--linka); }
.admin-row .grow { flex: 1 1 18rem; min-width: 0; overflow-wrap: anywhere; }
.admin-row a.small { display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-msg-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; }
.admin-msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-msg .small { overflow-wrap: anywhere; }
.admin-msg .small a { display: inline-block; padding: 10px 0; }
.admin-table { min-width: 560px; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.admin-table tbody th { font-family: var(--sans); font-size: .9375rem; font-weight: 600; }
.admin-table :is(th, td) { padding: 10px 12px 10px 0; }
html.simple .admin-kpi-value { font-size: 1.875rem; }
@media (max-width: 600px) {
  .admin-actions { flex: 1 1 100%; }
  .admin-actions > .btn { flex: 1 1 100%; }
  .admin-card { padding: 18px; }
  .a-plot--line { height: 140px; }
}
@media (forced-colors: active) {
  .a-bar-fill { background: CanvasText; }
  .a-col { fill: CanvasText; }
  .a-line { stroke: CanvasText; }
}
.admin-row strong > a { display: inline-flex; align-items: center; min-height: 44px; }
#a-multi { grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
#a-funnels { grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr)); }
#a-traffic { display: block; column-width: 20rem; column-gap: 16px; }
#a-traffic > .admin-card { break-inside: avoid; margin-bottom: 16px; }
@media (min-width: 1000px) { .admin-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.hp input { width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }

/* ---------- Zápisník řemeslníka (zapisnik.html; jeden sloupec do 46rem, mobil napřed) ---------- */
.zapisnik-link[hidden] { display: none; }
.z-wrap { max-width: calc(46rem + 48px); }
.z-top { padding: 32px 0 8px; }
.z-body { padding: 8px 0 72px; }
.z-top .eyebrow { margin-bottom: -4px; }
.z-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin: 0 -2px; scroll-snap-type: x proximity; }
.z-tabs::-webkit-scrollbar { display: none; }
.z-tabs .chip { display: inline-flex; align-items: center; flex: 0 0 auto; white-space: nowrap; text-decoration: none; color: var(--hlina); background: var(--papir); scroll-snap-align: start; }
.z-tabs .chip:hover { border-color: var(--hlina); color: var(--hlina); }
.z-tabs .chip[aria-current="page"] { background: var(--hlina); color: var(--len); border-color: var(--hlina); }
html.simple .z-tabs { flex-wrap: wrap; overflow: visible; }
@media (min-width: 761px) { .z-tabs { flex-wrap: wrap; overflow: visible; } }
#z-state:empty { display: none; }
#z-view { display: flex; flex-direction: column; gap: 20px; }
#z-view > .breadcrumb { margin-bottom: -12px; }
.z-title { margin: 0; font-size: clamp(2rem, 4vw, 2.75rem); overflow-wrap: anywhere; }
.z-title:focus { outline: none; }
.z-sub { margin: -8px 0 0; }
.z-sec { margin-top: 12px; }
.z-sec-head { align-items: baseline; }
.z-grow { flex: 1 1 14rem; }
.z-actions { gap: 8px 12px; }
.z-bottom { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--linka); }
.z-big { font-family: var(--serif); font-weight: 400; font-size: 1.625rem; line-height: 1.15; white-space: nowrap; }
.z-pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.z-strong-link { font-weight: 600; font-size: 1.125rem; }
.z-main { min-height: 56px; font-size: 1.0625rem; font-weight: 600; }
html.simple .z-main { min-height: 72px; font-size: 1.25rem; }
.z-link-btn { min-height: 44px; }
.z-count { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; margin-left: 10px; padding: 0 8px; border-radius: 999px; background: var(--louka); font-family: var(--sans); font-size: .875rem; font-weight: 600; vertical-align: middle; }
.z-group-head { display: flex; align-items: center; }
.z-list { display: flex; flex-direction: column; }
.z-row { flex-wrap: wrap; gap: 6px 12px; }
.z-row .grow, .z-row-link { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 12rem; }
.z-row-link { color: inherit; text-decoration: none; min-height: 44px; justify-content: center; }
.z-row-link:hover strong, a.z-row:hover strong { text-decoration: underline; }
.z-row strong { overflow-wrap: anywhere; }
.z-when { font-weight: 600; font-variant-numeric: tabular-nums; font-size: .9375rem; }
.z-agenda-top { display: flex; flex: 1 1 100%; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.list-row.z-row > .tag, .list-row.z-row:has(> .btn) > .tag { margin-left: 0; }
.z-row > .z-call { margin-left: auto; }
.z-amount { white-space: nowrap; margin-left: auto; }
.z-inline-tag { margin-left: 8px; vertical-align: 2px; }
.z-pozor-note { display: inline-flex; align-items: center; gap: 4px; color: var(--terakota-text); font-weight: 600; }
.z-ico { flex: 0 0 auto; }
.z-intro .ticks li { align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.z-intro .ticks .grow { flex: 1 1 12rem; }
.z-intro .is-done { color: var(--kura); }
.z-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.z-two--zip { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.z-two--wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.z-form { gap: 18px; }
.z-label { margin: 0; font-size: .875rem; font-weight: 600; }
.z-picker .z-chosen { align-items: center; padding: 14px 16px; gap: 8px 12px; }
.z-suggest { display: flex; flex-direction: column; gap: 6px; }
.z-suggest:empty { display: none; }
.z-sug { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 52px; padding: 10px 16px; border: 1px solid var(--linka-2); border-radius: 16px; background: var(--papir); text-align: left; cursor: pointer; }
.z-sug:hover, .z-sug:focus-visible { border-color: var(--mech); background: var(--louka); }
.z-newcust { padding: 18px; }
/* Krokovník stavu zakázky */
.z-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; counter-reset: zs; }
.z-steps li { min-width: 0; }
.z-step { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 48px; padding: 6px 4px; border-radius: 14px; border: 1px solid var(--linka-2); background: transparent; font-size: .875rem; font-weight: 600; color: var(--kura); text-align: center; line-height: 1.2; }
@media (max-width: 520px) { .z-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card .row.z-actions > .btn { flex: 1 1 auto; }
.z-steps .is-done .z-step { background: var(--louka); border-color: var(--salvej-2); color: var(--mech-tmavy); cursor: pointer; }
.z-steps .is-done .z-step:hover { border-color: var(--mech); }
.z-steps .is-current .z-step { background: var(--hlina); border-color: var(--hlina); color: var(--len); }
html.simple .z-step { font-size: .9375rem; min-height: 56px; }
.z-next { gap: 14px; }
.z-tags { gap: 8px 12px; }
/* Pozor */
.z-pozor-wrap:empty { display: none; }
.z-pozor { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 2px solid var(--terakota); border-radius: 20px; background: var(--ruzova); color: var(--hlina); }
.z-pozor-head { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--terakota-text); font-size: 1.125rem; }
.z-pozor-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.z-pozor-item { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; width: 100%; min-height: 44px; padding: 0; border: 0; background: transparent; text-align: left; font-weight: 600; overflow-wrap: anywhere; color: inherit; }
button.z-pozor-item { cursor: pointer; }
.z-pozor-item > span { flex: 1 1 12rem; min-width: 0; }
.z-pozor-img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.z-sum-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--terakota-text); cursor: pointer; }
.z-more > summary { cursor: pointer; display: flex; align-items: center; min-height: 44px; color: var(--mech); font-weight: 600; }
.z-more > summary.small { font-weight: 600; }
/* Fotky */
.z-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.z-thumb { position: relative; display: block; padding: 0; border: 1px solid var(--linka); border-radius: 14px; overflow: hidden; background: var(--len); aspect-ratio: 1 / 1; cursor: pointer; }
.z-thumb-img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; border-radius: 12px; }
.z-thumb .z-thumb-img { border-radius: 0; }
.z-thumb-ph { display: flex; align-items: center; justify-content: center; height: 100%; }
.z-thumb-flag { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; background: var(--terakota-text); color: var(--papir); font-size: .75rem; font-weight: 600; }
html.simple .z-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.z-cam { gap: 8px; }
.z-viewer { max-width: 760px; }
.z-viewer-body { padding: 20px; gap: 12px; }
.z-viewer-img { width: 100%; max-height: 62vh; object-fit: contain; border-radius: 16px; background: var(--len); }
/* Na co nezapomenout */
.z-cl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.z-cl-item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.z-cl-item > .check { flex: 1 1 16rem; min-width: 0; }
.z-check { align-items: center; min-height: 52px; }
.z-check input { width: 28px; height: 28px; margin-top: 0; }
.z-check span { overflow-wrap: anywhere; }
.z-check:has(input:checked) span { text-decoration: line-through; color: var(--kura); }
.z-cl-edit { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px dashed var(--linka-2); border-radius: 16px; }
.z-cl-add { padding-top: 8px; }
/* Zápisky */
.z-notes { gap: 10px; }
.z-note { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--papir); border: 1px solid var(--linka); }
.z-note .z-link-btn { align-self: flex-start; margin-top: 4px; }
/* Kalkulace */
.z-items { gap: 12px; }
.z-item { padding: 18px; gap: 12px; }
.z-item-head { align-items: center; gap: 8px; }
.z-item-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; }
.z-line-total { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.z-calc-sum { gap: 4px; }
.z-calc-actions { gap: 12px; }
.z-sticky { display: none; }
@media (max-width: 600px) {
  .z-item-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .z-item-grid > .field:last-child { grid-column: 1 / -1; }
  html.simple .z-item-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .z-top { padding: 16px 0 4px; }
  .z-sticky:not(.hidden) { display: flex; justify-content: space-between; align-items: center; gap: 4px 12px; flex-wrap: wrap; position: sticky; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 5; width: 100%; min-height: 52px; padding: 10px 16px; border: 0; border-radius: 16px; background: var(--hlina); color: var(--len); box-shadow: 0 10px 24px -12px rgba(43,42,36,.5); font: inherit; cursor: pointer; }
  .z-sticky span { font-size: .875rem; }
  .z-sticky strong { margin-left: auto; font-family: var(--serif); font-size: 1.125rem; white-space: nowrap; }
}
@media (max-width: 480px) {
  .z-two, .z-two--zip, .z-two--wide { grid-template-columns: minmax(0, 1fr); }
  .z-amount { margin-left: auto; }
}
/* Import kontaktů */
.z-howto { padding: 18px 20px; gap: 6px; }
.z-ol { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 4px; }
.z-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); gap: 12px 16px; }
.z-import-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.z-import-list .check { align-items: center; }
.z-import-list .check.is-off { opacity: .7; cursor: default; }
.z-gap-2 { gap: 2px; }
/* Tisk (cenová nabídka; faktury a smlouvy používají stejný #z-print) */
.z-print { display: none; }
.z-doc { color: #000; background: #fff; font-family: var(--sans); font-size: 11pt; line-height: 1.45; }
.z-doc h1 { font-family: var(--serif); font-weight: 400; font-size: 22pt; margin: 0 0 4pt; }
.z-doc p { margin: 0 0 4pt; }
.z-doc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12pt; border-bottom: 1pt solid #000; padding-bottom: 6pt; margin-bottom: 12pt; }
.z-doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 18pt; margin-bottom: 12pt; }
.z-doc-label { font-size: 9pt; text-transform: uppercase; letter-spacing: .08em; color: #444; }
.z-doc-table { width: 100%; border-collapse: collapse; margin: 10pt 0; }
.z-doc-table th, .z-doc-table td { padding: 4pt 6pt; border-bottom: .5pt solid #999; text-align: left; vertical-align: top; }
.z-doc-table th:not(:first-child), .z-doc-table td:not(:first-child) { text-align: right; white-space: nowrap; }
.z-doc-sum { text-align: right; margin: 8pt 0 12pt; }
.z-doc-total { font-size: 14pt; font-weight: 600; }
.z-doc-foot { margin-top: 18pt; font-size: 9pt; color: #444; }
@media print {
  html.z-printing body { background: #fff; padding: 0 !important; }
  html.z-printing body > :not(#z-print) { display: none !important; }
  html.z-printing .z-print { display: block; }
  @page { margin: 16mm; }
}
/* Rozbalovací části v zápisníku: „+“ / „–“ na všech šířkách, celý řádek klikací; dlaždice importu bez šipky odkazu */
#z-view .fold > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
#z-view .fold > summary::after { content: '+'; margin-left: auto; padding-left: 12px; flex: 0 0 auto; font-size: 1.5rem; line-height: 1; color: var(--terakota-text); }
#z-view .fold[open] > summary::after { content: '–'; }
#z-view .z-howto::after { content: none; }
/* ---------- Zápisník: faktury, Moje údaje, doklady (zapisnik-faktury/-udaje/-doklady.js, faktura.html) ---------- */
.z-radio { align-items: center; min-height: 56px; }
.z-radio input { margin-top: 0; }
.z-block { display: block; margin-top: 2px; font-weight: 400; }
.z-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.z-fieldset > legend { padding: 0; margin-bottom: 8px; }
.z-iban { margin: -8px 0 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.z-iban:empty { display: none; }
.z-ok { margin: 0; color: var(--mech-tmavy); font-weight: 600; }
.z-late { color: var(--terakota-text); }
.z-ul { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 4px; }
.z-explain { background: var(--papir); padding: 16px 18px; }
.z-soon .ticks li { align-items: flex-start; }
.z-vat label { font-weight: 600; }
.z-meter { display: block; width: 100%; height: 12px; border: 0; border-radius: 999px; background: var(--len); overflow: hidden; -webkit-appearance: none; appearance: none; }
.z-meter::-webkit-progress-bar { background: var(--len); border-radius: 999px; }
.z-meter::-webkit-progress-value { background: var(--mech); border-radius: 999px; }
.z-meter::-moz-progress-bar { background: var(--mech); border-radius: 999px; }
.z-vat-warn { padding: 14px 16px; }
.z-who .z-gap-2 strong { font-size: 1.0625rem; overflow-wrap: anywhere; }
.z-who .z-gap-2 span { overflow-wrap: anywhere; }
/* Plovoucí lišta faktury na mobilu (součet + Vystavit) */
.z-inv-sticky { display: none; }
@media (max-width: 760px) {
  .z-inv-sticky:not(.hidden) { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; position: sticky; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 5; min-height: 56px; padding: 8px 8px 8px 16px; border-radius: 16px; background: var(--hlina); color: var(--len); box-shadow: 0 10px 24px -12px rgba(43,42,36,.5); }
  .z-inv-sticky-sum { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
  .z-inv-sticky-sum span { font-size: .875rem; }
  .z-inv-sticky-sum strong { font-family: var(--serif); font-size: 1.125rem; white-space: nowrap; }
  .z-inv-sticky .btn { margin-left: auto; min-height: 44px; }
}
/* QR platba na celou obrazovku */
.z-qr-big { margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.z-qr-big .inv-qr-svg { width: min(100%, 320px); height: auto; aspect-ratio: 1 / 1; border: 2px solid #000; background: #fff; }
.z-qr-big figcaption { font-family: Arial, Helvetica, sans-serif; font-weight: 700; }
.z-qr-sum { margin: 0; text-align: center; font-size: clamp(2.25rem, 9vw, 3.25rem); overflow-wrap: anywhere; }
/* Doklady a záruky */
.z-doc-row { align-items: center; }
.z-doc-thumb { width: 56px; height: 56px; flex: 0 0 56px; object-fit: cover; border-radius: 12px; border: 1px solid var(--linka); background: var(--len); }
.z-doc-ph { display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: var(--kura); }
.z-page-pdf { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 12px; border: 1px solid var(--linka); background: var(--papir); }
.z-pages-pending { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr)); gap: 12px; }
.z-page-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.z-page-tile .z-thumb-img, .z-page-tile .z-page-pdf { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.z-doc-img { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: 16px; border: 1px solid var(--linka); background: var(--len); }
.z-page-nav { align-items: center; gap: 8px 12px; }
.z-pdf p { display: flex; align-items: center; gap: 12px; margin: 0; }
.z-hash { margin: 0; overflow-wrap: anywhere; }
.z-tap { display: inline-flex; align-items: center; min-height: 44px; }
.z-warr-soon { padding: 18px 20px; }
.z-warr-soon .list-row { border-color: rgba(43,42,36,.15); }
.z-doc-foot { padding-top: 16px; border-top: 1px solid var(--linka); }
html.simple .z-doc-thumb, html.simple .z-page-pdf { width: 64px; height: 64px; flex-basis: 64px; }
/* Faktura (doklad): stejná šablona na obrazovce, v tisku z zápisníku (#z-print) i na faktura.html */
.inv-paper { background: #fff; color: #1d1c18; border: 1px solid var(--linka); border-radius: 20px; padding: 28px; box-shadow: 0 18px 40px -30px rgba(43,42,36,.45); overflow-wrap: anywhere; }
.inv { font-family: var(--sans); font-size: .9375rem; line-height: 1.45; color: #1d1c18; background: #fff; }
.inv p { margin: 0; }
.inv-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; padding-bottom: 10px; margin-bottom: 16px; border-bottom: 2px solid #1d1c18; }
.inv-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.15; }
.inv-stamp { padding: 3px 10px; border: 2px solid #8A4426; border-radius: 6px; color: #8A4426; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.inv-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin-bottom: 16px; }
.inv .inv-label { margin-bottom: 4px; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #5c5a52; }
.inv-name { font-weight: 700; }
.inv .inv-reg { margin-top: 6px; font-size: .8125rem; color: #3d3b35; }
.inv-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 0 0 16px; }
.inv-dl dt { color: #5c5a52; }
.inv-dl dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.inv-items { width: 100%; margin: 0 0 12px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.inv-items th, .inv-items td { padding: 6px 8px; border-bottom: 1px solid #c9c5b8; text-align: right; vertical-align: top; }
.inv-items th { border-bottom: 1.5px solid #1d1c18; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #5c5a52; }
.inv-items th:first-child, .inv-items td:first-child { padding-left: 0; text-align: left; }
.inv-items th:last-child, .inv-items td:last-child { padding-right: 0; white-space: nowrap; }
.inv-sum { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-bottom: 16px; }
.inv-recap { border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
.inv-recap caption { text-align: right; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: #5c5a52; }
.inv-recap th, .inv-recap td { padding: 2px 0 2px 16px; text-align: right; }
.inv-recap th { font-weight: 600; color: #5c5a52; }
.inv-sum-row, .inv-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 4px 16px; }
.inv-total { padding-top: 8px; border-top: 2px solid #1d1c18; font-size: 1.125rem; }
.inv-total strong { font-size: 1.375rem; white-space: nowrap; }
.inv-pay { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; margin-bottom: 16px; padding: 14px 16px; border: 1px solid #c9c5b8; border-radius: 10px; }
.inv-pay .inv-dl { margin: 0; }
.inv-paid { font-weight: 600; }
.inv-qr { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.inv-qr-svg { display: block; width: 150px; height: 150px; border: 1.5pt solid #000; background: #fff; }
.inv-qr figcaption { font-family: Arial, Helvetica, sans-serif; font-size: .8125rem; font-weight: 700; }
.inv-texts { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; font-weight: 600; }
.inv .inv-note { margin-bottom: 12px; }
.inv .inv-cancel { margin-bottom: 12px; padding: 8px 12px; border: 2px solid #8A4426; border-radius: 8px; color: #8A4426; font-weight: 600; }
.inv-foot { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; border-top: 1px solid #c9c5b8; font-size: .8125rem; color: #3d3b35; }
html.simple .inv { font-size: 1rem; }
@media screen and (max-width: 600px) {
  .inv-paper { padding: 18px 16px; border-radius: 16px; }
  .inv-title { font-size: 1.375rem; }
  .inv-parties { grid-template-columns: minmax(0, 1fr); }
  .inv-dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .inv-dl dd { margin-bottom: 6px; }
  .inv-items thead { display: none; }
  .inv-items, .inv-items tbody, .inv-items tr, .inv-items td { display: block; width: 100%; }
  .inv-items tr { padding: 8px 0; border-bottom: 1px solid #c9c5b8; }
  .inv-items td, .inv-items td:last-child { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; border: 0; text-align: right; white-space: normal; }
  .inv-items td::before { content: attr(data-label); flex: 0 1 auto; color: #5c5a52; font-size: .8125rem; text-align: left; }
  .inv-items td.inv-desc { display: block; font-weight: 600; text-align: left; }
  .inv-items td.inv-desc::before { content: none; }
  .inv-pay { flex-direction: column; align-items: stretch; }
  .inv-qr { align-self: center; }
}
/* Samostatná stránka faktura.html */
.inv-page { padding: 24px 0 72px; }
.inv-wrap { max-width: calc(52rem + 48px); }
.inv-bar { gap: 12px; margin-bottom: 20px; }
.inv-page-title { margin: 0; overflow-wrap: anywhere; }
@media print {
  @page { size: A4; margin: 15mm; }
  body[data-page="faktura"] { background: #fff !important; padding: 0 !important; }
  body[data-page="faktura"] > :not(main), body[data-page="faktura"] .inv-bar { display: none !important; }
  body[data-page="faktura"] .inv-page { padding: 0; }
  body[data-page="faktura"] .inv-wrap { max-width: none; padding: 0; }
  .inv-paper { padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
  .inv { font-size: 10pt; color: #000; }
  .inv-title { font-size: 20pt; }
  .inv-items tr, .inv-pay, .inv-sum, .inv-foot { break-inside: avoid; page-break-inside: avoid; }
  .inv-qr-svg { width: 38mm; height: 38mm; }
  .inv-stamp, .inv .inv-cancel { border-color: #000; color: #000; }
}
/* ---------- Zápisník: kalendář, smlouvy a protokoly (zapisnik-kalendar.js, zapisnik-smlouvy.js) ---------- */
/* Kalendář */
.z-cal-bar { align-items: center; justify-content: space-between; gap: 8px 16px; }
.z-cal-range { margin: 0; }
.z-cal-nav { gap: 8px; }
.z-cal-nav .btn { flex: 1 1 auto; }
.z-cal-group { padding-top: 4px; }
.z-cal-dayhead { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.z-cal-day { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.z-cal-daylink { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.z-cal-daylink:hover { text-decoration: underline; }
.z-cal-plus { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; padding: 8px 12px; }
.z-cal-plus[aria-expanded="true"] { background: var(--louka); border-color: var(--mech); }
.z-cal-free { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 4px 0; border-top: 1px dashed var(--linka-2); }
.z-cal-free .z-cal-dayhead { flex: 1 1 12rem; }
.z-cal-free > p { margin: 0; }
.z-cal-hint { flex: 1 1 100%; margin: 0; }
.z-cal-added { align-items: center; gap: 8px 12px; padding: 12px 16px; }
.z-cal-added p { margin: 0; flex: 1 1 12rem; }
.z-cal-week { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.z-cal-cell { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 10px 12px; border: 1px solid var(--linka); border-radius: 16px; background: var(--papir); }
.z-cal-cell.is-today { border: 2px solid var(--mech); padding: 9px 11px; }
.z-cal-cell.is-off { background: var(--len); }
.z-cal-cellhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.z-cal-cellhead .z-cal-daylink { gap: 6px; font-weight: 600; }
.z-cal-dow { text-transform: uppercase; font-size: .8125rem; letter-spacing: .06em; color: var(--kura); }
.z-cal-cell .z-list .list-row { padding: 8px 0; }
.z-cal-item--compact .z-agenda-top { gap: 4px 8px; }
.z-cal-pick { max-width: 22rem; }
@media (min-width: 900px) {
  html:not(.simple) body:has(.z-cal-week) .z-wrap { max-width: calc(72rem + 48px); }
  html:not(.simple) .z-cal-week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
  html:not(.simple) .z-cal-cell { min-height: 12rem; padding: 8px; }
  html:not(.simple) .z-cal-cell.is-today { padding: 7px; }
  html:not(.simple) .z-cal-cell .z-agenda-top .tag { display: none; }
  html:not(.simple) .z-cal-cell .z-when { font-size: .8125rem; }
  html:not(.simple) .z-cal-cell .z-row-link strong { font-size: .875rem; line-height: 1.3; }
  html:not(.simple) .z-cal-cell .z-row-link .small { font-size: .75rem; }
  html:not(.simple) .z-cal-cell .z-cal-plus { min-width: 44px; padding: 4px 8px; }
  html:not(.simple) .z-cal-cellpanel .z-quick { position: relative; z-index: 2; width: max(100%, 15rem); }
}
/* Přidat na dvě klepnutí */
.z-quick { gap: 12px; padding: 16px; }
.z-quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.z-quick-btn { width: 100%; min-height: 52px; justify-content: center; text-align: center; white-space: normal; line-height: 1.2; }
html.simple .z-quick-grid { grid-template-columns: minmax(0, 1fr); }
html.simple .z-quick-btn { min-height: 60px; }
@media (max-width: 360px) { .z-quick-grid { grid-template-columns: minmax(0, 1fr); } }
/* Průvodce smlouvou: jedna otázka na obrazovku, velké volby */
.z-wiz { gap: 14px; }
.z-wiz-q { margin: 0; }
.z-wiz-q:focus { outline: none; }
.z-wiz-opts { gap: 10px; }
.z-wiz-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; min-height: 60px; padding: 14px 18px; border: 1px solid var(--linka-2); border-radius: 18px; background: var(--papir); color: var(--hlina); text-align: left; text-decoration: none; font: inherit; cursor: pointer; }
.z-wiz-opt strong { font-size: 1.0625rem; overflow-wrap: anywhere; }
.z-wiz-opt:hover, .z-wiz-opt:focus-visible { border-color: var(--mech); background: var(--louka); }
.z-wiz-opt:disabled { opacity: .6; cursor: progress; }
.z-wiz-help { border: 2px solid var(--mech); background: var(--louka); }
html.simple .z-wiz-opt { min-height: 72px; padding: 16px 20px; }
html.simple .z-wiz-opt strong { font-size: 1.1875rem; }
.z-tpl-list { gap: 8px; }
.z-warn { padding: 14px 16px; }
.z-warn p { margin: 0; }
.z-u36 { padding: 14px 16px; }
.z-u36 p { margin: 0; }
.z-hint { margin: 0; padding: 10px 12px; border-left: 3px solid var(--salvej); background: var(--papir); border-radius: 0 10px 10px 0; }
.z-hint--s { border-left-color: var(--terakota); }
.z-hint--v { border-left-color: var(--terakota); background: var(--maslo); }
/* Editor smlouvy */
.z-groups { gap: 10px; }
.z-group { padding: 0 18px; }
.z-group > summary { min-height: 56px; }
.z-group > summary h2 { margin: 0; }
.z-group[open] { padding-bottom: 18px; }
.z-vada { padding: 14px; }
.z-contract-actions .btn { flex: 1 1 auto; }
.z-sign { padding: 18px; }
.z-confirm { max-width: 600px; }
html.simple .z-group > summary { min-height: 64px; }
/* Dokument smlouvy na obrazovce (papír) */
.smlouva-paper { background: #fff; color: #1d1c18; border: 1px solid var(--linka); border-radius: 20px; padding: 28px; box-shadow: 0 18px 40px -30px rgba(43,42,36,.45); overflow-wrap: anywhere; }
.smlouva { font-family: var(--serif); font-size: 1rem; line-height: 1.5; color: #1d1c18; }
.smlouva p { margin: 0; }
.smlouva-p { white-space: pre-wrap; }
.smlouva-gap { height: .6em; }
.smlouva-h1 { font-family: var(--serif); font-weight: 600; font-size: 1.375rem; line-height: 1.2; margin: .4em 0 .2em; letter-spacing: .01em; }
.smlouva-h2 { font-size: 1.125rem; margin: .6em 0 .2em; }
.smlouva-h3 { font-size: 1rem; margin: .6em 0 .2em; }
.smlouva-banner { margin: 0 0 12px; padding: 10px 14px; border: 2px dashed #8A4426; border-radius: 10px; color: #8A4426; font-family: var(--sans); font-size: .9375rem; }
.smlouva-stamp { margin: 0 0 12px !important; font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A4426; }
.smlouva-zlom { border: 0; border-top: 1px dashed #b9b4a6; margin: 18px 0; height: 0; }
.smlouva-ul { margin: .2em 0; padding-left: 1.25rem; }
.smlouva-ul li { margin: .1em 0; }
.smlouva-tablewrap { overflow-x: auto; margin: .4em 0; }
.smlouva-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.smlouva-table th, .smlouva-table td { padding: 4px 6px; border: 1px solid #b9b4a6; text-align: left; vertical-align: top; }
.smlouva-table th { font-family: var(--sans); font-size: .8125rem; font-weight: 600; }
.smlouva-foot { margin-top: 18px !important; font-family: var(--sans); font-size: .75rem; color: #5c5a52; }
@media screen and (max-width: 600px) {
  .smlouva-paper { padding: 18px 14px; border-radius: 16px; }
  .smlouva { font-size: .9375rem; }
}
/* Tisk smlouvy (A4, jen dokument; ostatní skryje @media print v bloku #z-print) */
@media print {
  .smlouva-print { color: #000; }
  .smlouva-print .smlouva { font-size: 11pt; line-height: 1.4; color: #000; }
  .smlouva-print .smlouva-h1 { font-size: 15pt; }
  .smlouva-print .smlouva-h2 { font-size: 12pt; }
  .smlouva-print .smlouva-banner { border-color: #000; color: #000; font-size: 9.5pt; }
  .smlouva-print .smlouva-zlom { border: 0; margin: 0; break-after: page; page-break-after: always; }
  .smlouva-print .smlouva-table { font-size: 9.5pt; }
  .smlouva-print .smlouva-table th, .smlouva-print .smlouva-table td { border-color: #000; border-width: .5pt; }
  .smlouva-print .smlouva-tablewrap { overflow: visible; }
  .smlouva-print .smlouva-table tr, .smlouva-print .smlouva-p { break-inside: avoid; page-break-inside: avoid; }
  .smlouva-print .smlouva-h1, .smlouva-print .smlouva-h2, .smlouva-print .smlouva-h3 { break-after: avoid; page-break-after: avoid; }
  .smlouva-print .smlouva-foot { color: #000; }
}
/* ---------- Bezpečnostní opravy zápisníku (kolo 1): ukázková faktura, heslo před citlivou akcí, druhý krok správce ---------- */
/* Faktura z ukázky: velké razítko nahoře i v patičce, tiskne se (bez barev pozadí, jen rámeček a text). */
.inv-demo { display: flex; flex-direction: column; gap: 2px; margin: 0 0 14px; padding: 10px 14px; border: 3px solid #8A4426; border-radius: 8px; color: #8A4426; text-align: center; }
.inv-demo strong { font-size: 1.5rem; letter-spacing: .06em; line-height: 1.2; }
.inv-demo span { font-size: .875rem; font-weight: 600; }
.inv-stamp--demo { border-width: 3px; }
.inv .inv-demo-foot { font-weight: 700; color: #8A4426; }
@media print {
  .inv-demo { border-color: #000; color: #000; }
  .inv-demo strong { font-size: 22pt; }
  .inv .inv-demo-foot { color: #000; }
}
/* Heslo před změnou čísla účtu / stažením zálohy, varování po změně účtu */
.z-pass { padding: 12px 14px; border: 1px solid var(--linka); border-radius: 12px; background: var(--papir, #fff); }
.z-acc-warn p { margin: 0; overflow-wrap: anywhere; }
/* Správa: druhý krok (kód z aplikace) */
.a-mfa { max-width: 36rem; }
.a-mfa-qr { display: block; width: 220px; max-width: 100%; height: auto; margin: 4px 0; background: #fff; border: 1px solid var(--linka); border-radius: 8px; padding: 10px; }
.a-mfa-secret { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1rem; letter-spacing: .08em; overflow-wrap: anywhere; user-select: all; }
.a-mfa-code { max-width: 12rem; font-size: 1.375rem; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
/* Přihlášení: „Jsem na cizím zařízení“ */
.login-temp .small { display: block; }
/* Pole jen ke čtení (ukázka: jméno, IČO, účet) – je vidět, že nejdou měnit */
.z-form .input[readonly] { background: var(--papir); border-style: dashed; color: #5c5a52; }

/* Hesla: ovládání zůstává u pole, dobře dosažitelné i prstem. */
.password-field { display: flex; align-items: stretch; border: 1px solid var(--linka); border-radius: 8px; background: var(--papir); overflow: hidden; }
.password-field:focus-within { outline: 2px solid var(--mech); outline-offset: 2px; }
.password-field .input { min-width: 0; flex: 1; border: 0; border-radius: 0; background: transparent; }
.password-toggle { flex: 0 0 auto; min-height: 48px; padding: 0 14px; border: 0; border-left: 1px solid var(--linka); color: var(--mech); background: transparent; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.password-toggle:hover { background: var(--len); }
.z-app-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.z-wordmark { font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; text-decoration: none; color: var(--mech); }
.z-wordmark span { display: block; font: 500 .75rem var(--sans); letter-spacing: .14em; margin-top: 5px; }
.z-mode-switch { display: flex; padding: 4px; border: 1px solid var(--linka); border-radius: 24px; background: var(--papir); }
.z-mode-switch a { display: flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 20px; text-decoration: none; font-size: .875rem; color: var(--kura); }
.z-mode-switch a[aria-current] { background: var(--mech); color: #fff; }
.z-appbar { display: none; }
.z-inbox-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 20px; background: var(--terakota-text); color: #fff; font: 600 .75rem var(--sans); }
.z-inbox-count[hidden] { display: none; }
.z-tabs .z-inbox-count { margin-left: 6px; }
.z-personal-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.z-personal-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.z-personal-item { display: grid; gap: 14px; }
.z-personal-check { min-height: 44px; align-items: center; font-size: 1.0625rem; overflow-wrap: anywhere; }
.z-personal-check input { width: 24px; height: 24px; flex: 0 0 24px; accent-color: var(--mech); }
.z-personal-item.is-done .z-personal-check span { text-decoration: line-through; color: var(--kura); }
.z-personal-add { background: #f0f2e9; border-color: #d5dcc9; }
.z-inquiry { border-left: 3px solid var(--mech); }
.z-inquiry-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.z-inquiry-when { font-weight: 600; }
.z-preview-todos { margin: 0; padding-left: 22px; }
.z-preview-todos li { padding: 7px 0; overflow-wrap: anywhere; }
.z-preview-todos a { color: var(--hlina); text-decoration-color: var(--linka); }
body[data-page="zapisnik"] #z-view > * + * { margin-top: 0; }
body[data-page="zapisnik"] #z-view > div:empty { display: none; }
@media (max-width: 760px) {
  body[data-page="zapisnik"] { background: #f5f4ee; }
  body[data-page="zapisnik"] .site-header,
  body[data-page="zapisnik"] .site-footer,
  body[data-page="zapisnik"] .tabbar { display: none; }
  body[data-page="zapisnik"] .z-top { padding-top: 18px; background: var(--len); border-bottom: 1px solid var(--linka); }
  body[data-page="zapisnik"] .z-body { padding-top: 24px; padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  body[data-page="zapisnik"] .z-title { font-size: 1.85rem; line-height: 1.15; }
  body[data-page="zapisnik"] .z-main-actions { display: grid; grid-template-columns: 1fr; }
  body[data-page="zapisnik"] .z-main-actions .btn { min-height: 48px; }
  .z-appbar:not(.hidden) { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid #d8dece; background: #fbfcf8; box-shadow: 0 -4px 20px #26361a08; }
  .z-appbar a { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 52px; border-radius: 12px; font-size: .75rem; font-weight: 600; text-decoration: none; color: var(--kura); }
  .z-appbar a[aria-current] { background: #e7eddd; color: var(--mech); }
  .z-appbar .z-inbox-count { position: absolute; top: 0; right: 8px; }
  .z-personal-item .z-actions { gap: 8px; }
  .z-personal-item .btn { min-height: 44px; }
  .z-wordmark { font-size: 1.25rem; }
  .z-mode-switch a { padding: 6px 11px; }
}
@media print { .z-app-heading, .z-appbar { display: none !important; } }

/* Mobilní pracovní postupy: všechny části dosažitelné ze spodní navigace. */
.z-menu-grid, .z-quick-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.z-menu-item { display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 14px; min-height: 88px; padding: 18px; color: var(--hlina); text-decoration: none; }
.z-menu-icon { display: flex; flex: none; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 16px; background: var(--louka); color: var(--mech); }
.z-menu-item strong { min-width: 0; overflow-wrap: anywhere; }
.z-menu-item:active { background: var(--louka); }
.z-menu-item:hover { border-color: var(--mech); background: #edf1e5; }
.z-card-preview img { display: block; max-width: 100%; max-height: 250px; object-fit: contain; border-radius: 12px; }
.z-contact-scan { background: #f0f2e9; }
.z-contact-scan .z-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.z-contact-scan [role=status]:empty { display: none; }
@media (max-width: 380px) { .z-quick-links { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  #z-view .z-menu-item { flex-direction: column; justify-content: center; gap: 10px; min-height: 126px; padding: 14px 10px; border-radius: 22px; text-align: center; }
  .z-menu-item strong { font-size: .9375rem; }
}
.app-tools-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--mech); font: inherit; font-size: .875rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
#z-pwa-tools { display: flex; justify-content: flex-end; }
.app-install-icon { flex: none; border-radius: 14px; }
.app-install-dialog { max-height: calc(100dvh - 32px); }
.app-install-steps { padding-left: 24px; display: grid; gap: 12px; }
.app-card .btn { min-height: 44px; white-space: normal; }
.app-update { position: static; max-width: 540px; margin: 16px 0; padding: 18px; border: 1px solid var(--salvej); border-radius: 20px; background: var(--papir); }
.app-update[hidden] { display: none; }
.app-update p { margin: 6px 0 12px; }
.app-update .btn { min-height: 44px; }
@media (min-width: 761px) { .app-update { bottom: 24px; } }
@media (display-mode: standalone) { body { padding-top: env(safe-area-inset-top); } }
@media print { #z-pwa-tools, .app-update, .app-card { display: none !important; } }

/* Měsíc zůstává sedmisloupcový i na úzkém telefonu, podrobnosti jsou pod ním. */
.z-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.z-month-weekday { text-align: center; font-size: .8rem; color: var(--kura); padding: 6px 0; }
.z-month-day { font: inherit; min-width: 0; min-height: 64px; padding: 6px 1px; border: 1px solid #d8dece; background: #fff; border-radius: 10px; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.z-month-day.is-outside { opacity: .5; }
.z-month-day.is-today .z-month-number { font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.z-month-day.is-leave { background: #fff2d6; }
.z-month-day[aria-pressed=true] { outline: 2px solid var(--mech); outline-offset: -2px; background: #e7eddd; }
.z-month-dots { font-size: .65rem; min-height: 1.2em; color: var(--mech); }
.z-month-agenda { border-top: 1px solid #d8dece; padding-top: 16px; }
@media (max-width: 380px) { .z-month-grid { gap: 2px; } .z-month-day { min-height: 56px; border-radius: 7px; } }

@media (max-width: 760px) {
  body[data-page="zapisnik"] .z-tabs { display: none; }
  body[data-page="zapisnik"] #z-view { gap: 16px; }
  body[data-page="zapisnik"] .z-cal-main-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  body[data-page="zapisnik"] .z-cal-main-actions .btn { padding: 10px 8px; font-size: .875rem; }
  .z-cal-nav--month { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
  .z-cal-nav--month .btn { padding: 8px; font-size: .8125rem; min-width: 0; }
  .z-demo { padding: 8px 12px; }
  .z-demo p { font-size: .8125rem; line-height: 1.4; }
  #z-view .card { padding: 18px; }
}

.z-contact-scan > .row.z-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.z-contact-scan > .row.z-actions .btn { padding: 10px 8px; min-height: 48px; font-size: .875rem; }
.z-contact-scan > [role=status]:empty { display: none; }

/* Instalace nenarušuje práci; komunitní zprávy se zalamují i na malém telefonu. */
.app-offer { margin-block: 1rem; text-align: left; }
.app-offer .row, .comm-compose .row, .comm-message .row { flex-wrap: wrap; }
.comm-rooms { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 12px; }
.comm-room { text-align: left; min-height: 64px; font: inherit; cursor: pointer; color: inherit; overflow-wrap: anywhere; }
.comm-messages { list-style: none; padding: 0; display: grid; gap: 12px; max-height: 55vh; max-height: 55dvh; overflow-y: auto; overscroll-behavior: contain; }
.comm-message { min-width: 0; }
.comm-message--mine { background: var(--maslo, #f0f2e9); }
.comm-message .row { gap: 8px; }
.comm-message .row strong, .comm-body { overflow-wrap: anywhere; }
.comm-body { white-space: pre-wrap; margin-block: 12px; }
.comm-person { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.comm-person > span { flex: 1 1 130px; overflow-wrap: anywhere; }
.comm-person small { display: block; }
#community textarea, #community input { width: 100%; min-width: 0; font-size: 16px; }
#community button { min-height: 44px; }
#community-settings { display: grid; gap: 16px; margin-top: 24px; }
.comm-status:empty { display: none; }
.push-card .row { flex-wrap: wrap; }

/* Přihlášení je dostupné přímo, bez otevírání menu, i na malém telefonu. */
.site-header .header-account { display: inline-flex; flex: 0 0 auto; order: 4; min-height: 44px; white-space: nowrap; }
@media (max-width: 600px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 4px; }
  .site-header .header-account { flex-basis: 100%; margin-bottom: 8px; justify-content: center; }
  .site-header .nav, .site-header .header-actions { order: 5; }
}
.welcome-signature { border-left: 2px solid var(--salvej); padding-left: 14px; }
.welcome-login { display: inline-block; padding-block: 10px; font-weight: 600; }
.welcome-story summary { cursor: pointer; padding-block: 12px; font-weight: 600; min-height: 44px; }
.welcome-story > .stack { padding-top: 12px; }
#svety { scroll-margin-top: 140px; }
@media (max-width: 760px) {
  .hero--welcome .hero-art { display: none; }
  .hero--welcome .stack-lg { gap: 16px; }
  .hero--welcome .stack-lg > .lead { order: 0; }
  .hero--welcome .display { font-size: clamp(2.15rem, 8vw, 2.75rem); }
}

/* Osobní přivítání, obsah webu a zapamatované potvrzení zkušebního provozu. */
.proto-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 16px; }
.proto-confirm { min-height: 44px; padding: 8px 14px; border: 1px solid currentColor; border-radius: 16px; color: var(--len); background: transparent; font: inherit; cursor: pointer; }
.proto-confirm:hover { background: #45433A; }
.footer-preferences { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.footer-simple-toggle { min-height: 44px; padding: 8px 16px; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.footer-preferences > a { display: inline-flex; align-items: center; min-height: 44px; }
.welcome-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.welcome-topline > a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
#rozcestnik { scroll-margin-top: 150px; }
.welcome-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.directory-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; border: 1px solid var(--linka); border-radius: 24px; background: var(--len); }
.directory-icon { color: var(--mech); flex-shrink: 0; }
.directory-links { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: auto; }
.directory-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: .9375rem; }
@media (max-width: 1000px) { .welcome-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .proto-bar { justify-content: space-between; padding-block: 6px; }
  .proto-confirm { flex-basis: 100%; }
  .welcome-directory { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .directory-card { padding: 20px; }
}

/* Zprávy a upozornění i v samostatné mobilní hlavičce zápisníku. */
.z-communication { display: flex; flex-wrap: wrap; gap: 10px; }
.z-communication .z-communication-link { display: inline-flex; position: relative; align-items: center; justify-content: center; gap: 8px; width: auto; min-height: 48px; padding: 8px 30px 8px 14px; border: 1px solid var(--linka); border-radius: 16px; background: var(--papir); color: var(--mech); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.z-communication-link svg { flex-shrink: 0; }
.z-communication .bell-count { top: 3px; right: 3px; box-shadow: none; }
@media (max-width: 760px) {
  .z-communication { gap: 8px; }
  .z-communication .z-communication-link { flex: 1 1 0; min-width: 0; flex-direction: column; min-height: 64px; padding: 8px; gap: 4px; font-size: .875rem; }
}
@media print { .z-communication { display: none !important; } }

@media (max-width: 600px) { .site-header .wrap { padding-top: 8px; } }

.garden-offer { min-width: 0; }
.garden-offer h3, .garden-offer p { overflow-wrap: anywhere; }
.garden-description { white-space: pre-wrap; }
#garden-status:empty, #garden-form-status:empty { display: none; }
#project-demo summary { min-height: 44px; padding-block: 12px; cursor: pointer; font-weight: 600; }
#offer-form { scroll-margin-top: 150px; }

.app-card > summary, .app-update-fold > summary, .comm-settings > summary, .comm-new-message > summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-weight: 600; }
.app-card:not([open]) > :not(summary) { display: none; }
.app-card[open] > :not(summary) { margin-top: 14px; }
.comm-settings { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--linka); }
.comm-settings[open] > div { padding-top: 16px; }
.comm-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 12px; }
.comm-tab { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 72px; padding: 14px; border: 1px solid var(--linka); border-radius: 18px; background: var(--papir); color: var(--hlina); text-align: left; font: inherit; cursor: pointer; }
.comm-tab[aria-pressed=true] { border-color: var(--mech); background: var(--louka); }
.comm-room { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 10px; }
.comm-audience { padding: 12px 16px; background: var(--louka); border-radius: 12px; }
#community { min-width: 0; }
@media (max-width: 600px) { .comm-tab { padding: 12px; } }

/* Rychlý vstup: stejná čtveřice cest na webu i v průvodci. */
.home-start { padding: 56px 0 0; }
.home-start-grid { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: 72px; }
.home-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.home-intro .display { font-size: clamp(3rem, 5.3vw, 5.2rem); line-height: 1.02; }
.home-intro .display em { color: var(--mech); }
.home-paths { display: grid; gap: 12px; }
.home-path { display: flex; align-items: center; gap: 16px; padding: 18px 20px 18px 8px; border: 1px solid rgb(43 42 36 / 9%); border-radius: 22px; color: var(--hlina); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.home-path:hover { color: var(--hlina); transform: translateY(-2px); box-shadow: 0 8px 24px rgb(43 42 36 / 7%); }
.home-path-art { flex: 0 0 82px; }
.home-path > span:nth-child(2) { flex: 1; }
.home-path strong { display: block; font-size: 1.125rem; line-height: 1.3; }
.home-path small { display: block; font-size: .875rem; line-height: 1.45; margin-top: 5px; color: var(--kura); }
.home-path-arrow { font-size: 1.4rem; }
.home-shortcuts { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 28px; padding-top: 28px; padding-bottom: 28px; margin-top: 32px; border-top: 1px solid var(--linka); font-size: .9375rem; }
.home-shortcuts > span { color: var(--kura); }
.home-shortcuts a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.home-all-links > summary { cursor: pointer; min-height: 48px; padding: 12px 0; font-weight: 600; }
.home-all-links .welcome-directory { padding-top: 24px; }
.home-story { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; }
#prehled-webu { padding-block: 48px; }
#prehled-webu .stack-lg { gap: 20px; }
.guide-tone-garden { background: #E6EAD9; }
.guide-tone-work { background: #F2DED0; }
.guide-tone-help { background: #F5EBCB; }
.guide-tone-inspire { background: #E8E3EE; }

/* Průvodce: nativní dialog a svislé přehledy. Obsah se při zvětšení textu nezkracuje. */
html.guide-open, .guide-open body { overflow: hidden; overscroll-behavior: none; }
.guide { padding: 0; border: 1px solid rgb(255 255 255 / 50%); border-radius: 28px; background: var(--papir); color: var(--hlina); width: min(600px, calc(100vw - 48px)); max-width: none; height: min(860px, calc(100dvh - 48px)); max-height: none; overflow: hidden; box-shadow: 0 32px 120px rgb(25 30 20 / 30%); }
.guide[open] { display: flex; flex-direction: column; }
.guide::backdrop { background: rgb(28 34 24 / 65%); backdrop-filter: blur(8px); }
.guide-header { flex: none; padding: 12px 24px 0; background: var(--papir); border-bottom: 1px solid var(--linka); }
.guide-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .875rem; font-weight: 600; }
.guide-close { display: flex; align-items: center; gap: 12px; border: 0; background: none; min-height: 44px; padding: 4px 0 4px 12px; cursor: pointer; font-size: .8125rem; }
.guide-close > span { font-size: 1.5rem; font-weight: 400; }
.guide-progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.guide-progress button { position: relative; min-height: 44px; background: transparent; border: 0; padding: 12px 0 7px; color: var(--kura); font-size: .6875rem; cursor: pointer; }
.guide-progress button::before { content: ''; height: 3px; border-radius: 2px; background: var(--linka); position: absolute; top: 3px; left: 0; right: 0; }
.guide-progress button[aria-current] { color: var(--mech-tmavy); font-weight: 600; }
.guide-progress button[aria-current]::before { background: var(--mech); }
.guide-viewport { position: relative; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scroll-snap-type: y proximity; scrollbar-width: thin; scroll-padding: 0; }
.guide-slide { min-height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; gap: 18px; padding: 30px 36px; }
.guide-slide p, .guide-slide h2 { margin: 0; }
.guide-heading { font-family: var(--serif); font-weight: 400; font-size: clamp(2.25rem, 5.5vw, 3.4rem); line-height: 1.04; letter-spacing: -.035em; white-space: pre-line; }
.guide-intro { font-size: 1.0625rem; line-height: 1.5; max-width: 38ch; }
.guide-eyebrow { color: var(--kura); font-size: .6875rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.guide-question { font-size: .9375rem; font-weight: 600; }
.guide-welcome { background: var(--papir); gap: 16px; }
.guide-welcome .guide-heading { max-width: 11ch; }
.guide-choices { display: grid; gap: 8px; }
.guide-choice { width: 100%; border: 1px solid rgb(43 42 36 / 8%); border-radius: 16px; padding: 10px 14px 10px 4px; display: flex; align-items: center; gap: 8px; text-align: left; cursor: pointer; color: var(--hlina); }
.guide-choice:hover { border-color: var(--mech); }
.guide-choice-art { flex: 0 0 58px; }
.guide-choice > span:first-of-type { flex: 1; min-width: 0; }
.guide-choice strong { display: block; font-size: .9375rem; line-height: 1.25; }
.guide-choice small { display: block; font-size: .75rem; line-height: 1.4; color: var(--kura); margin-top: 3px; }
.guide-hint { font-size: .75rem; color: var(--kura); text-align: center; }
.guide-note { font-size: .75rem; line-height: 1.5; color: var(--kura); }
.guide-visual { display: flex; align-items: center; gap: 12px; min-height: 90px; }
.guide-visual > p { flex: 1; max-width: 22ch; }
.guide-art { width: 140px; margin-left: auto; }
.guide-bullets { display: grid; gap: 10px; padding: 0; margin: 0 0 4px; list-style: none; font-size: .9375rem; }
.guide-bullets li { display: flex; align-items: baseline; gap: 12px; }
.guide-bullets li::before { content: '✓'; color: var(--mech-tmavy); font-weight: 600; }
.guide-primary { width: 100%; min-height: 50px; text-align: center; font-size: .9375rem; margin-top: auto; }
.guide-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.guide-links a, .guide-more-links a { display: flex; align-items: center; min-height: 44px; color: var(--hlina); font-size: .8125rem; font-weight: 600; }
.guide-more { border-top: 1px solid rgb(43 42 36 / 15%); }
.guide-more summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-size: .8125rem; }
.guide-more-links { display: grid; }
.guide-footer { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 24px; border-top: 1px solid var(--linka); background: var(--papir); }
.guide-nav { border: 1px solid var(--linka-2); border-radius: 999px; padding: 8px 16px; min-height: 44px; background: transparent; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.guide-nav:disabled { opacity: .4; cursor: default; }
.guide-nav-next { background: var(--hlina); color: var(--papir); border-color: var(--hlina); }
.guide-status { font-size: .6875rem; color: var(--kura); text-align: center; }
@media (max-width: 760px) {
  .home-start { padding-top: 32px; }
  .home-start-grid { grid-template-columns: 1fr; gap: 28px; }
  .home-intro { gap: 16px; }
  .home-intro .display { font-size: 3.2rem; }
  .home-path { padding: 14px 16px 14px 4px; gap: 10px; }
  .home-path-art { flex-basis: 66px; }
  .home-path strong { font-size: 1rem; }
  .home-path small { font-size: .8125rem; }
  .home-shortcuts { justify-content: flex-start; gap: 0 20px; }
  .home-shortcuts > span { flex-basis: 100%; }
  .home-story { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 600px) {
  .guide { width: 100%; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .guide-header { padding: max(6px, env(safe-area-inset-top)) 20px 0; }
  .guide-slide { padding: 24px; gap: 16px; }
  .guide-heading { font-size: 2.75rem; }
  .guide-visual { min-height: 76px; }
  .guide-art { width: 114px; }
  .guide-welcome { gap: 14px; }
  .guide-welcome .guide-heading { font-size: 2.6rem; }
  .guide-intro { font-size: .9375rem; }
  .guide-footer { padding: 8px 20px max(8px, env(safe-area-inset-bottom)); }
}
@media (max-width: 360px), (max-height: 740px) {
  .guide-slide { padding: 18px 20px; gap: 12px; }
  .guide-heading, .guide-welcome .guide-heading { font-size: 2.25rem; }
  .guide-choice { padding-block: 8px; }
  .guide-choice-art { flex-basis: 48px; }
  .guide-choice strong { font-size: .875rem; }
  .guide-choice small { font-size: .6875rem; }
  .guide-visual { min-height: 58px; }
  .guide-art { width: 92px; }
  .guide-bullets { font-size: .875rem; gap: 8px; }
  .guide-footer { padding-inline: 16px; }
  .guide-nav { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-path { transition: none; }
  .guide-viewport { scroll-behavior: auto; }
}

/* Čtyři hlavní cesty; další funkce v popsaném rozcestníku. */
#top-header.site-header--clear .wrap { position:relative; gap:12px; min-height:76px; flex-wrap:nowrap; }
#top-header .logo { flex-shrink:0; margin-right:16px; }
#top-header .nav-primary { display:flex; align-items:center; gap:4px; margin-right:auto; }
#top-header .nav-primary a { padding:12px 13px; text-decoration:none; white-space:nowrap; color:var(--hlina); font-weight:600; border-radius:12px; }
#top-header .nav-primary a:hover, #top-header .nav-primary a[aria-current] { background:var(--louka); }
#top-header .nav-toggle { display:inline-flex; flex-shrink:0; margin:0; order:3; min-width:44px; min-height:44px; gap:7px; }
#top-header .header-search { order:1; margin:0; }
#top-header .header-messages { order:2; }
#top-header .header-bell:not([hidden]) { display:inline-flex!important; order:2; }
#top-header .header-actions { display:flex; order:4; width:auto; flex-basis:auto; padding:0; margin:0; }
#top-header .header-account { order:5; width:auto; margin:0; }
#top-header .nav-panel { position:absolute; top:100%; left:0; right:0; z-index:30; background:var(--papir); border:1px solid var(--linka); box-shadow:0 24px 50px #29282026; border-radius:0 0 24px 24px; padding:24px; max-height:calc(100dvh - 160px); overflow-y:auto; overscroll-behavior:contain; }
#top-header .nav-panel[hidden] { display:none!important; }
.nav-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.nav-panel-heading strong { display:block; font-size:1.35rem; }
.nav-panel-heading span, .nav-block p { color:var(--kura); font-size:.875rem; }
.nav-blocks { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.nav-block { padding:18px; border-radius:16px; min-width:0; background:var(--ruzova); }
.nav-block--garden { background:var(--louka); }
.nav-block--help { background:var(--maslo); }
.nav-block--ideas { background:#e8e3ee; }
.nav-block h2 { font-size:1rem; font-weight:700; margin:0 0 6px; }
.nav-block p { min-height:44px; margin:0 0 12px; }
.nav-block a { display:block; padding:10px 8px; margin-inline:-8px; border-radius:8px; color:var(--hlina); text-decoration:none; }
.nav-block a:hover, .nav-block a:focus-visible { background:#ffffffa8; }
.nav-block a strong { display:flex; justify-content:space-between; font-size:.9375rem; }
.nav-block a small,.nav-community small { display:block; font-size:.8125rem; color:var(--kura); margin-top:3px; line-height:1.45; }
.nav-community { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; padding-block:20px; margin-top:4px; border-bottom:1px solid var(--linka); }
.nav-community a { padding:8px; color:var(--hlina); text-decoration:none; border-radius:8px; }
.nav-community a:hover { background:var(--louka); }
.nav-panel-footer { display:flex; flex-wrap:wrap; gap:16px 24px; align-items:center; padding-top:18px; font-size:.875rem; }
.nav-panel-footer button { margin-left:auto; }
@media(max-width:1200px) {
 #top-header.site-header--clear .wrap { flex-wrap:wrap; gap:8px; padding-block:10px; }
 #top-header .logo { margin-right:auto; }
 #top-header .nav-primary { order:6; flex-basis:100%; justify-content:center; margin:0; }
 #top-header .header-actions, #top-header .header-account { display:none; }
 #top-header .nav-panel { max-height:calc(100dvh - 200px); }
 .nav-blocks { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
 #top-header.site-header--clear .wrap { gap:6px; padding-block:8px; }
 #top-header .logo { font-size:1.35rem; gap:5px; }
 #top-header .logo svg { width:23px; height:28px; }
 #top-header .btn--icon, #top-header .nav-toggle { width:40px; height:40px; min-width:40px; min-height:44px; padding:8px; }
 #top-header .nav-label, #top-header .search-label { display:none; }
 #top-header .nav-primary { justify-content:space-between; gap:0; }
 #top-header .nav-primary a { font-size:.875rem; padding:9px 8px; }
 #top-header .nav-panel { padding:16px; max-height:calc(100dvh - 170px); }
 .nav-panel-heading strong { font-size:1.125rem; }
 .nav-panel-heading span { display:none; }
 .nav-blocks, .nav-community { grid-template-columns:1fr; }
 .nav-block p { min-height:0; }
 .nav-panel-footer button { margin-left:0; }
}

@media(max-width:380px){
 #top-header.site-header--clear .wrap { gap:4px; }
 #top-header .logo { font-size:1.2rem; gap:4px; }
 #top-header .logo svg { width:20px; }
}
@media(max-width:600px){
 #top-header .nav-primary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); min-width:0; }
 #top-header .nav-primary a { padding-inline:4px; text-align:center; }
 .tabbar a { min-width:0; font-size:.75rem; }
}
@media(max-width:380px){
 html.simple #top-header .logo { font-size:1rem; }
 html.simple #top-header .nav-primary a { font-size:15px; }
}


/* Osobní přivítání: velká sazba na PC, široké karty na telefonu. */
.guide-welcome-copy, .guide-welcome-paths { display:flex; flex-direction:column; gap:14px; min-width:0; }
.guide-welcome-footnote { display:flex; flex-direction:column; gap:8px; }
.guide-welcome .guide-heading { max-width:12ch; }
.guide-welcome .guide-intro { font-size:1rem; max-width:40ch; }
.guide-choices { grid-template-columns:1fr; }
.guide-welcome-footnote .guide-hint { text-align:left; }
@media(min-width:1000px){
 .guide { width:min(1100px,calc(100vw - 64px)); height:min(820px,calc(100dvh - 64px)); }
 .guide-header { padding:16px 32px 0; }
 .guide-topline { font-size:1rem; }
 .guide-close { font-size:.9375rem; }
 .guide-progress { gap:12px; }
 .guide-progress button { font-size:.8125rem; min-height:48px; }
 .guide-slide { padding:36px 44px; }
 .guide-welcome { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.05fr); gap:28px 44px; align-content:center; align-items:center; }
 .guide-welcome-copy { gap:24px; }
 .guide-welcome .guide-heading { font-size:clamp(3.25rem,5.5vw,4.5rem); }
 .guide-welcome .guide-intro { font-size:1.25rem; line-height:1.55; }
 .guide-welcome .guide-eyebrow { font-size:.8125rem; }
 .guide-welcome-paths { gap:18px; }
 .guide-question { font-size:1.125rem; }
 .guide-choices { gap:12px; }
 .guide-choice { padding:14px 18px 14px 8px; gap:12px; min-height:88px; }
 .guide-choice-art { flex-basis:58px; }
 .guide-choice strong { font-size:1.125rem; }
 .guide-choice small { font-size:.9375rem; }
 .guide-welcome-footnote { grid-column:1/-1; flex-direction:row; justify-content:space-between; gap:32px; }
 .guide-welcome-footnote p { font-size:.8125rem; }
 .guide-footer { padding:14px 32px; }
 .guide-nav { font-size:.9375rem; }
 .guide-status { font-size:.8125rem; }
}
@media(min-width:1000px) and (max-height:760px){
 .guide-welcome { padding:24px 36px; gap:20px 32px; }
 .guide-welcome-copy { gap:18px; }
 .guide-welcome .guide-heading { font-size:3.25rem; }
 .guide-welcome .guide-intro { font-size:1.125rem; }
 .guide-choice { min-height:76px; padding-block:10px; }
 .guide-choice strong { font-size:1rem; }
 .guide-choice small { font-size:.8125rem; }
}
@media(max-width:600px){
 .guide-welcome { padding:20px; gap:16px; }
 .guide-welcome-copy { gap:14px; }
 .guide-welcome .guide-heading { font-size:2.75rem; }
 .guide-welcome .guide-intro { font-size:.9375rem; line-height:1.45; }
 .guide-welcome-paths { gap:12px; }
 .guide-choice { min-height:62px; padding:9px 12px 9px 4px; }
 .guide-choice-art { flex-basis:48px; }
 .guide-choice strong { font-size:.9375rem; }
 .guide-choice small { font-size:.75rem; }
 .guide-welcome-footnote { padding-top:4px; }
}
@media(max-width:600px) and (max-height:780px){
 .guide-welcome { padding:16px; gap:12px; }
 .guide-welcome-copy { gap:10px; }
 .guide-welcome .guide-heading { font-size:2.25rem; }
 .guide-welcome .guide-intro { font-size:.875rem; }
 .guide-welcome .guide-eyebrow { font-size:.625rem; }
 .guide-welcome-paths { gap:8px; }
 .guide-choice { min-height:56px; padding-block:7px; }
 .guide-choice-art { flex-basis:42px; }
 .guide-choice strong { font-size:.875rem; }
 .guide-choice small { font-size:.6875rem; }
}

/* Jednotný rozměr a optické zarovnání ovládání hlavičky. */
#top-header .header-search, #top-header .header-messages, #top-header .header-bell:not([hidden]) {
 display:inline-flex; align-items:center; justify-content:center; flex:0 0 44px;
 width:44px; height:44px; min-width:44px; min-height:44px; padding:0; border-radius:50%;
}
#top-header .header-search svg, #top-header .header-messages svg, #top-header .header-bell svg, #top-header .nav-toggle svg {
 display:block; width:20px; height:20px; flex:0 0 20px; stroke-width:1.7;
}
#top-header .nav-toggle { display:inline-flex; align-items:center; justify-content:center; gap:8px; height:44px; min-height:44px; padding:0 16px; border-radius:24px; line-height:1; font-size:.9375rem; }
#top-header .nav-toggle .nav-label { line-height:1; }
#top-header .header-actions .btn, #top-header .header-account { height:44px; min-height:44px; display:inline-flex; align-items:center; justify-content:center; padding:0 16px; font-size:.875rem; line-height:1; }
#top-header .header-account { color:var(--hlina); background:transparent; border-color:var(--linka-2); }
#top-header .header-account:hover { background:var(--louka); }
@media(max-width:1200px){ #top-header .header-actions, #top-header .header-account { display:none; } }
@media(max-width:600px){ #top-header .nav-toggle { flex:0 0 44px; width:44px; min-width:44px; padding:0; border-radius:50%; } }
@media(max-width:380px){ #top-header .logo, html.simple #top-header .logo { font-size:17px; gap:3px; } #top-header .logo svg { width:18px; } }
