/* Dusanovo.cz: tmavě šedá galerie. Jedno písmo pro celý web, mění se jen v --font. */
/* PÍSMO: soubory se musí nahrát do assets/fonts/ (návod v README, část Písmo).
   Po nahrání smažte tento komentář kolem bloku @font-face níže (první a poslední řádek komentáře).
   Do té doby se použije systémové písmo.

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  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;
}
*/

:root {
  --bg: #232426;
  --surface: #2b2c2f;
  --raise: #333438;
  --line: #3d3f43;
  --fg: #ecebe7;
  --muted: #a5a49e;
  --accent: #dccdad;
  --on-accent: #2a2620;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.55 var(--font);
  padding-inline: 20px; padding-block: 0;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin-inline: auto; }
.notice { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 12px 16px; margin: 18px 0 0; color: var(--muted); }

/* hlavička */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  margin-inline: -20px; padding-inline: 20px;
}
.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.brand { font-weight: 600; font-size: 1.25rem; line-height: 1; letter-spacing: -.005em; text-decoration: none; white-space: nowrap; }
.brand small { display: block; font-weight: 500; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
nav a { text-decoration: none; color: var(--muted); font-size: .92rem; }
nav a:hover { color: var(--fg); }
.cartbtn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--on-accent); border: 0; border-radius: 4px; padding: 10px 16px; font-weight: 600; font-size: .92rem; }
.cartbtn .n { background: var(--on-accent); color: var(--accent); border-radius: 99px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: .78rem; padding-inline: 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { nav { gap: 14px; } }
@media (max-width: 640px) { nav a { display: none; } }

/* úvod */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; }
.intro { padding-block: 26px 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.intro p { margin: 0; color: var(--muted); font-size: .95rem; max-width: 74ch; text-wrap: pretty; }
.intro .sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-s { border: 1px solid var(--line); border-radius: 4px; padding: 4px 10px; font-size: .8rem; color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* nástroje galerie */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; padding-block: 14px; border-block: 1px solid var(--line);
  position: sticky; top: calc(var(--topH, 64px) - 1px); z-index: 15; margin-inline: -20px; padding-inline: 20px;
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); }
@media (max-width: 560px) {
  .cats { flex: 0 0 calc(100% + 40px); }
  .toolbar { gap: 10px; padding-block: 10px; }
  .search { flex: 1 1 100%; max-width: none; }
  .cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; width: calc(100% + 40px); }
  .cats::-webkit-scrollbar { display: none; }
  .cat { white-space: nowrap; flex: none; }
}
.search { position: relative; flex: 1 1 260px; max-width: 380px; }
.search input { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; color: var(--fg); font: inherit; padding: 11px 38px 11px 40px; }
.search input::placeholder { color: var(--muted); }
.search svg { position: absolute; left: 13px; top: 50%; translate: 0 -50%; color: var(--muted); }
.search .clear { position: absolute; right: 6px; top: 50%; translate: 0 -50%; background: none; border: 0; color: var(--muted); padding: 6px 9px; font-size: 1.1rem; line-height: 1; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cat { text-decoration: none; background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 99px; padding: 7px 15px; font-size: .88rem; }
.cat:hover { color: var(--fg); border-color: var(--muted); }
.cat[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 500; }
.cat .c { opacity: .6; margin-left: 6px; font-variant-numeric: tabular-nums; }
.count { color: var(--muted); font-size: .85rem; padding-block: 14px 18px; font-variant-numeric: tabular-nums; }

/* mřížka: fotky v řádcích stejné výšky. Na šířku jsou širší, na výšku užší, ale vedle sebe působí vyváženě. */
.grid { --rh: 270px; --gap: 14px; display: flex; flex-wrap: wrap; gap: var(--gap); }
.grid::after { content: ""; flex-grow: 1000000; }
@media (max-width: 1000px) { .grid { --rh: 220px; } }
@media (max-width: 560px) { .grid { --gap: 8px; } }
.tile { flex: calc(var(--ar) * 100) 1 calc(var(--ar) * var(--rh)); max-width: calc(var(--ar) * var(--rh) * 1.6); min-width: 0; margin: 0; position: relative; display: block; background: var(--surface); border-radius: 3px; overflow: hidden; text-decoration: none; color: inherit; }
@media (max-width: 560px) { .tile { flex: 0 0 100%; max-width: 100%; } }
.tile img { display: block; width: 100%; height: auto; transition: transform .5s ease, filter .3s; }
.tile:hover img { transform: scale(1.025); filter: brightness(1.06); }
.tile .cap { position: absolute; inset: auto 0 0 0; padding: 36px 14px 12px; background: linear-gradient(to top, rgba(20,20,22,.82), transparent); display: flex; justify-content: space-between; align-items: end; gap: 8px; opacity: 0; transition: opacity .25s; }
.tile:hover .cap, .tile:focus-visible .cap { opacity: 1; }
@media (hover: none) { .tile .cap { opacity: 1; padding-top: 28px; } }
.cap b { font-weight: 600; font-size: .95rem; line-height: 1.2; color: #f3f2ee; }
.cap span { font-size: .75rem; color: #d3d2cc; }
.tile .in { position: absolute; top: 10px; right: 10px; background: var(--accent); color: var(--on-accent); border-radius: 99px; font-size: .72rem; font-weight: 600; padding: 3px 9px; letter-spacing: .02em; }
.empty { text-align: center; padding: 70px 10px; color: var(--muted); }
.empty h3 { font-weight: 500; font-size: 1.4rem; color: var(--fg); margin: 0 0 8px; }
.empty .btn { margin-top: 14px; }
.btn { background: transparent; border: 1px solid var(--muted); border-radius: 4px; padding: 10px 18px; font-weight: 500; text-decoration: none; display: inline-block; text-align: center; }
.btn:hover { border-color: var(--fg); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* text pro vyhledávače a čtečky, když je detail otevřený v překryvu */
.seo-detail { padding-block: 10px 30px; max-width: 70ch; }
.seo-detail h1 { font-weight: 500; font-size: 1.8rem; margin: 0 0 8px; }
.seo-detail p { color: var(--muted); }
.seo-detail img { display: block; height: auto; margin-top: 16px; border-radius: 3px; }
.js .seo-detail { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; margin: -1px; }

/* jak objednat + kontakt */
.how { padding-block: 84px 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 36px; }
.how h2, .contact h2 { font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps h3 { font-weight: 600; font-size: .98rem; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: .92rem; }
.steps .k { font-weight: 500; font-size: 1.8rem; line-height: 1; color: var(--accent); display: block; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
@media (max-width: 820px) { .how { grid-template-columns: minmax(0, 1fr); padding-top: 56px; } .steps { grid-template-columns: minmax(0, 1fr); } }
.contact { padding-block: 60px 50px; margin-top: 56px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 40px; align-items: end; }
.contact p { margin: 10px 0 0; color: var(--muted); max-width: 44ch; }
.contact dl { margin: 0; display: grid; gap: 4px 20px; grid-template-columns: auto 1fr; font-size: 1.02rem; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; }
.contact a { text-decoration-color: var(--line); text-underline-offset: 3px; }
@media (max-width: 760px) { .contact { grid-template-columns: minmax(0, 1fr); } }
footer { color: var(--muted); font-size: .8rem; padding-block: 0 34px; }

/* detail fotky */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(12,12,14,.72); backdrop-filter: blur(3px); }
.detail { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; overflow-y: auto; overscroll-behavior: contain; padding: 18px; padding-top: calc(18px + env(safe-area-inset-top, 0px)); padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.sheetwrap { position: relative; width: min(1120px, 100%); display: grid; margin-block: auto; }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; width: 100%; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.sheet .pic { background: #1b1c1e; display: grid; place-items: center; padding: 18px; position: relative; min-height: 260px; }
.sheet .pic img { max-height: min(76vh, 76dvh); width: auto; height: auto; max-width: 100%; border-radius: 2px; box-shadow: 0 10px 40px rgba(0,0,0,.45); }
.nav-arrow { position: absolute; top: 50%; translate: 0 -50%; width: 42px; height: 42px; border-radius: 99px; border: 1px solid var(--line); background: rgba(35,36,38,.8); display: grid; place-items: center; font-size: 1.1rem; }
.nav-arrow.l { left: 12px; } .nav-arrow.r { right: 12px; }
.sheet .info { padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.sheet h2 { font-weight: 500; font-size: 1.8rem; line-height: 1.12; margin: 0 0 10px; letter-spacing: -.015em; }
.meta { color: var(--muted); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.meta .catlink { color: var(--fg); margin-right: 4px; }
.tag { border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; font-size: .78rem; background: none; color: var(--muted); }
.tag:hover { color: var(--accent); border-color: var(--accent); }
.story { color: #d6d5cf; font-size: .96rem; }
.story-text p { margin: 0 0 .8em; }
.story-text p:last-child { margin-bottom: 0; }
.story-text.clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.story .more { background: none; border: 0; color: var(--accent); padding: 6px 0 0; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend, .qty .lab { font-weight: 500; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 0; }
legend { margin-bottom: 9px; }
.opts { display: grid; gap: 8px; }
.opts.sz { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.opt label { display: block; border: 1px solid var(--line); border-radius: 4px; padding: 11px 12px; background: var(--raise); font-size: .92rem; cursor: pointer; }
.opts.sz label { text-align: center; font-variant-numeric: tabular-nums; }
.opts.sz label small { display: block; color: var(--muted); font-size: .72rem; }
.opt input:checked + label { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, var(--raise)); }
.opt input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt label small.d { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.qty { display: flex; align-items: center; gap: 12px; }
.stepper { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--raise); }
.stepper button { background: none; border: 0; width: 38px; height: 38px; font-size: 1.1rem; }
.stepper output { min-width: 38px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.add { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.add .btn { width: 100%; padding: 14px; font-size: 1rem; }
.hint { font-size: .8rem; color: var(--muted); margin: 0; text-align: center; }
.xbtn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 99px; border: 1px solid var(--line); background: rgba(35,36,38,.85); font-size: 1.15rem; line-height: 1; }
@media (max-width: 860px) { .sheet { grid-template-columns: minmax(0, 1fr); } .sheet .pic img { max-height: min(46vh, 46dvh); } .sheet h2 { font-size: 1.55rem; } }

/* koš poptávek */
.drawer { position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); translate: 100% 0; transition: translate .3s ease; visibility: hidden; }
.drawer.open { translate: 0 0; visibility: visible; }
.drawer > header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer > header h2 { font-weight: 500; font-size: 1.4rem; margin: 0; }
.drawer > header .btn { padding: 6px 12px; }
.drawer .body { overflow: auto; padding: 8px 20px 20px; flex: 1; min-height: 0; }
.line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); align-items: start; }
.line img { width: 76px; height: 76px; object-fit: cover; border-radius: 3px; display: block; }
.line h4 { margin: 0; font-weight: 600; font-size: 1rem; line-height: 1.2; }
.line .sub { color: var(--muted); font-size: .84rem; margin-top: 2px; }
.line .ctl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.line select { background: var(--raise); color: var(--fg); border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; font: inherit; font-size: .84rem; max-width: 100%; }
.line .right { display: grid; gap: 8px; justify-items: end; }
.line .stepper button { width: 30px; height: 30px; }
.line .stepper output { min-width: 30px; font-size: .88rem; }
.rm { background: none; border: 0; color: var(--muted); font-size: .8rem; text-decoration: underline; padding: 4px; }
.rm:hover { color: #e6a3a3; }
.cartempty { text-align: center; padding: 56px 12px; color: var(--muted); }
.cartempty h3 { font-weight: 500; font-size: 1.3rem; color: var(--fg); margin: 0 0 6px; }
.form { display: grid; gap: 12px; padding-top: 22px; }
.form h3 { font-weight: 500; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 460px) { .form .row { grid-template-columns: minmax(0, 1fr); } }
.form label { display: grid; gap: 5px; font-size: .84rem; color: var(--muted); }
.form input, .form textarea { background: var(--raise); border: 1px solid var(--line); border-radius: 4px; color: var(--fg); font: inherit; padding: 10px 12px; width: 100%; }
.form textarea { min-height: 84px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.drawer > footer { padding: 16px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--surface); }
.drawer > footer .tot { display: flex; justify-content: space-between; font-size: .92rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.drawer > footer .tot b { color: var(--fg); font-weight: 600; }
.drawer > footer .btn { width: 100%; padding: 14px; font-size: 1rem; }
.result { border: 1px solid var(--accent); border-radius: 6px; padding: 18px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); display: grid; gap: 10px; margin-top: 18px; }
.result h3 { margin: 0; font-weight: 500; font-size: 1.2rem; }
.result p { margin: 0; font-size: .9rem; color: var(--muted); }
.result textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; color: var(--fg); font: .8rem/1.5 ui-monospace, "SF Mono", Menlo, monospace; padding: 10px; width: 100%; min-height: 170px; resize: vertical; }
.result .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.result .acts .btn { padding: 9px 14px; font-size: .9rem; }
.toast { position: fixed; z-index: 90; left: 50%; translate: -50% 0; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); background: var(--fg); color: var(--bg); border-radius: 4px; padding: 11px 18px; font-size: .92rem; font-weight: 500; box-shadow: 0 8px 30px rgba(0,0,0,.4); max-width: calc(100% - 32px); }

@media (max-width: 480px) {
  .top .wrap { gap: 12px; }
  .brand { font-size: 1.1rem; }
  .cartbtn { padding: 9px 12px; gap: 8px; }
}

/* detail fotky: kompaktní, vejde se na displej bez posouvání; hlavička s menu zůstává vidět */
:root { --hh: 84px; }
.top { z-index: 45; }
.detail { inset: var(--hh) 0 0 0; padding: 10px 14px; padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.sheetwrap { max-height: 100%; margin-block: 0; }
.sheet { max-height: calc(100dvh - var(--hh) - 20px - env(safe-area-inset-bottom, 0px)); overflow: auto; }
.sheet .pic { padding: 12px; min-height: 0; }
.sheet .pic img { max-height: calc(100dvh - var(--hh) - 44px); }
.sheet .info { padding: 18px 22px 16px; gap: 12px; }
.sheet h2 { font-size: 1.4rem; margin: 0 0 6px; }
.meta { gap: 5px 6px; }
.tag { padding: 1px 9px; font-size: .74rem; }
.story-text.clamped { -webkit-line-clamp: 3; }
.story { font-size: .9rem; }
legend { margin-bottom: 6px; }
.opts { gap: 6px; }
.opt label { padding: 7px 10px; font-size: .88rem; }
.opts.sz label small { display: inline; margin-left: 4px; }
.opt label small.d { font-size: .72rem; margin-top: 0; }
.qty .stepper button { width: 34px; height: 34px; }
.add { gap: 6px; }
.add .btn { padding: 11px; font-size: .95rem; }
.hint { font-size: .74rem; }
.xbtn { top: 8px; right: 8px; width: 34px; height: 34px; }
@media (max-width: 860px) {
  .sheet .pic img { max-height: 34dvh; }
  .sheet .info { padding: 14px 16px 14px; gap: 10px; }
  .sheet h2 { font-size: 1.25rem; }
  .opts.fin, #dFinish { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hint { display: none; }
  .nav-arrow { width: 36px; height: 36px; }
}
@media (max-width: 600px) {
  .detail { padding: 8px; }
  .sheet .pic img { max-height: 28dvh; }
  #dFinish { grid-template-columns: 1fr; }
  #dFinish label small.d { display: none; }
  .meta { flex-wrap: nowrap; overflow: hidden; }
  .meta .tag { white-space: nowrap; }
}
.sheet { grid-auto-rows: max-content; align-content: start; }
@media (min-width: 861px) { .sheet { align-content: stretch; grid-auto-rows: auto; } }
@media (max-width: 600px) {
  .sheet .pic img { max-height: 22dvh; }
  .sheet .pic { padding: 8px; }
  .story-text.clamped { -webkit-line-clamp: 2; }
  .sheet .info { gap: 8px; padding: 12px 14px; }
  .sheet h2 { font-size: 1.15rem; }
  .opt label { padding: 6px 10px; }
}

/* ceny */
.opts.sz label .pr { display: block; color: var(--accent); font-size: .78rem; margin-top: 2px; min-height: 1em; }
.line .lp { font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.drawer > footer .tot.big { color: var(--fg); font-size: 1.05rem; margin-top: 4px; }
.drawer > footer .hint { margin: 2px 0 0; text-align: left; }

/* ceny */
.opts.sz label .pr { display: block; color: var(--accent); font-size: .78rem; margin-top: 2px; min-height: 1em; }
.line .lp { font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.drawer > footer .tot.big { color: var(--fg); font-size: 1.05rem; margin-top: 4px; }
.drawer > footer .hint { margin: 2px 0 0; text-align: left; }

/* dárkové poukazy */
.vouchers { padding-block: 56px 8px; border-top: 1px solid var(--line); margin-top: 56px; }
.vhead h2 { font-weight: 500; font-size: 1.7rem; margin: 0 0 8px; letter-spacing: -.01em; }
.vhead p { margin: 0 0 24px; color: var(--muted); max-width: 70ch; }
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.vcard { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.vcard img { display: block; width: 100%; height: auto; }
.vrow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: center; padding: 14px; }
.vrow b { font-size: 1.2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.vto, .vto2 { background: var(--raise); color: var(--fg); border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: .9rem; padding: 9px 10px; min-width: 0; width: 100%; }
.vto::placeholder, .vto2::placeholder { color: var(--muted); }
.vrow .vadd { grid-column: 1 / -1; padding: 11px; }
.line img.vimg { object-fit: contain; background: var(--raise); height: 76px; }
@media (max-width: 900px) { .vgrid { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }

/* hlavička: logo datla + užší menu */
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand .logo { height: 54px; width: auto; display: block; }
.brand span { display: block; }
nav { gap: 18px; }
nav a { font-size: .86rem; white-space: nowrap; }
.cartbtn { font-size: .86rem; padding: 9px 14px; white-space: nowrap; }
@media (max-width: 860px) { nav { gap: 14px; } nav a { font-size: .82rem; } .top .wrap { gap: 14px; } }
@media (max-width: 520px) { .brand .logo { height: 46px; } .brand { gap: 9px; } }

/* vlastní křížek ve vyhledávání; skryje ten, který přidává prohlížeč */
.search input::-webkit-search-cancel-button,
.search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.search input::-ms-clear { display: none; }

/* detail: fotka na šířku dostane širší okno, aby nebyla proti fotce na výšku zbytečně malá */
@media (min-width: 861px) {
  .sheetwrap.land { width: min(1420px, 100%); }
  .sheetwrap.land .sheet { grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); }
}

/* Stránkování galerie */
.more { text-align: center; margin: 30px 0 6px; }
.more .btn { padding: 12px 28px; }
.more .rest { margin-left: 10px; color: var(--muted); font-weight: 400; }
.more .rest::before { content: "zbývá "; }

/* Celá obrazovka */
.sheet .pic img { cursor: zoom-in; }
.zoombtn { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 99px; border: 1px solid var(--line); background: rgba(35,36,38,.8); color: var(--fg); display: grid; place-items: center; opacity: .8; }
.zoombtn:hover { opacity: 1; border-color: var(--muted); }
.fs { position: fixed; inset: 0; z-index: 70; background: #09090a; color: rgba(255,255,255,.8); touch-action: pan-y; overflow: hidden; }
.fs[hidden] { display: none; }
.fs > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 56px 0; transition: opacity .25s; user-select: none; -webkit-user-select: none; cursor: pointer; }
.fs > img.swap { opacity: .25; }
.fs-top, .fs-bar, .fs-nav { transition: opacity .35s; text-shadow: 0 1px 10px rgba(0,0,0,.85), 0 0 2px rgba(0,0,0,.6); }
.fs.idle .fs-top, .fs.idle .fs-bar, .fs.idle .fs-nav { opacity: 0; pointer-events: none; }
.fs.idle { cursor: none; }
.fs-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 18px; padding: calc(12px + env(safe-area-inset-top, 0px)) 18px 28px; background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent); }
.fs-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fs-t b { font-weight: 500; font-size: 1.05rem; color: rgba(255,255,255,.88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-t span { font-size: .78rem; color: rgba(255,255,255,.55); }
.fs button { color: inherit; background: none; border: 0; font: inherit; cursor: pointer; text-shadow: inherit; }
.fs-link { font-size: .92rem; letter-spacing: .02em; color: rgba(255,255,255,.75); }
.fs-link span { display: inline-block; min-width: 1.5em; margin-left: 4px; padding: 0 6px; border-radius: 99px; background: rgba(255,255,255,.18); font-size: .78rem; text-align: center; }
.fs-x { font-size: 2rem; line-height: 1; padding: 0 6px; color: rgba(255,255,255,.75); }
.fs-link:hover, .fs-x:hover, .fs-nav:hover { color: #fff; }
.fs-nav { position: absolute; top: 50%; translate: 0 -50%; font-size: 3.4rem; line-height: 1; padding: 20px 18px; color: rgba(255,255,255,.45); }
.fs-nav.l { left: 4px; } .fs-nav.r { right: 4px; }
.fs-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 10px 38px; padding: 46px 70px calc(16px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, rgba(0,0,0,.62), transparent); }
.fs-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.fs-opts button { padding: 4px 0; font-size: 1.02rem; letter-spacing: .02em; color: rgba(255,255,255,.55); border-bottom: 1px solid transparent; }
.fs-opts button small { display: block; font-size: .74rem; letter-spacing: 0; opacity: .8; }
.fs-opts button:hover { color: rgba(255,255,255,.85); }
.fs-opts button[aria-pressed="true"] { color: #fff; border-bottom-color: rgba(255,255,255,.75); }
.fs-opts.fin button { font-size: .9rem; }
.fs-add { padding: 8px 20px; border: 1px solid rgba(255,255,255,.5) !important; border-radius: 99px; color: #fff; font-size: .95rem; letter-spacing: .02em; }
.fs-add:hover { background: rgba(255,255,255,.14) !important; }
@media (max-width: 700px) {
  .fs > img { padding: 52px 0 150px; }
  .fs-nav { display: none; }
  .fs-bar { padding: 36px 14px calc(12px + env(safe-area-inset-bottom, 0px)); gap: 8px 14px; }
  .fs-opts { gap: 2px 14px; }
  .fs-opts button { font-size: .9rem; }
  .fs-opts.fin button { font-size: .82rem; }
}
.fs:focus { outline: none; }
.fs:not([hidden]) ~ .toast { bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }

/* Celá obrazovka: decentní písmo laděné do barev fotky */
.fs { --fs-rgb: 255,255,255; --fs-bg: #09090a; background: var(--fs-bg); color: rgba(var(--fs-rgb), .6); transition: background .5s; }
.fs-top, .fs-bar, .fs-nav { text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.fs-top { background: linear-gradient(to bottom, rgba(0,0,0,.32), transparent); }
.fs-bar { background: linear-gradient(to top, rgba(0,0,0,.38), transparent); gap: 8px 32px; }
.fs-t b { font-size: .95rem; font-weight: 400; color: rgba(var(--fs-rgb), .78); }
.fs-t span { font-size: .72rem; color: rgba(var(--fs-rgb), .45); }
.fs-link { font-size: .82rem; color: rgba(var(--fs-rgb), .62); }
.fs-link span { background: rgba(var(--fs-rgb), .14); font-size: .7rem; }
.fs-x { font-size: 1.7rem; color: rgba(var(--fs-rgb), .6); }
.fs-nav { font-size: 2.6rem; color: rgba(var(--fs-rgb), .32); }
.fs-link:hover, .fs-x:hover, .fs-nav:hover { color: rgba(var(--fs-rgb), .95); }
.fs-opts button { font-size: .9rem; font-weight: 400; color: rgba(var(--fs-rgb), .42); }
.fs-opts button small { font-size: .68rem; }
.fs-opts button:hover { color: rgba(var(--fs-rgb), .8); }
.fs-opts button[aria-pressed="true"] { color: rgba(var(--fs-rgb), .92); border-bottom-color: rgba(var(--fs-rgb), .5); }
.fs-opts.fin button { font-size: .8rem; }
.fs-add { border-color: rgba(var(--fs-rgb), .35) !important; color: rgba(var(--fs-rgb), .85); font-size: .85rem; padding: 6px 18px; }
.fs-add:hover { background: rgba(var(--fs-rgb), .12) !important; }
@media (max-width: 700px) { .fs-opts button { font-size: .82rem; } .fs-opts.fin button { font-size: .76rem; } }

.fs.idle { cursor: default; }

/* Nabídka má být pod fotkou, ne přes ni; menší tlačítko */
.fs > img { padding: 52px 0 74px; }
.fs-add { padding: 4px 14px; font-size: .78rem; letter-spacing: .02em; }
.fs-bar { padding-top: 30px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 1200px) and (min-width: 701px) { .fs > img { padding-bottom: 150px; } }
@media (max-width: 700px) { .fs > img { padding: 52px 0 150px; } .fs-add { font-size: .8rem; padding: 5px 16px; } }

/* Velké klikací plochy šipek u okrajů, ikona fullscreenu prohlížeče */
.fs-nav { top: 70px; bottom: 100px; translate: none; width: 90px; padding: 0; display: flex; align-items: center; font-size: 3rem; }
.fs-nav.l { left: 0; justify-content: flex-start; padding-left: 18px; }
.fs-nav.r { right: 0; justify-content: flex-end; padding-right: 18px; }
.fs-nav:hover { background: linear-gradient(to right, rgba(var(--fs-rgb), .07), transparent); }
.fs-nav.r:hover { background: linear-gradient(to left, rgba(var(--fs-rgb), .07), transparent); }
.fs-ico { display: inline-flex; align-items: center; padding: 4px; }
.fs-ico[hidden] { display: none; }
.fs-ico[aria-pressed="true"] { color: #fff; }

/* menu na úzkých displejích (telefon, tablet na výšku) */
.burger { display: none; background: transparent; border: 1px solid var(--line); border-radius: 4px; color: var(--fg); width: 42px; height: 40px; padding: 0; place-items: center; cursor: pointer; }
.burger:hover { background: var(--surface); }
.mmenu { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 6px 20px 12px; box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.mmenu a { display: block; padding: 13px 2px; color: var(--fg); text-decoration: none; font-size: 1rem; border-bottom: 1px solid var(--line); }
.mmenu a:last-child { border-bottom: 0; }
@media (max-width: 640px) { .burger { display: inline-grid; } }
@media (min-width: 641px) { .mmenu { display: none; } }

/* právní stránky a patička */
.legal { max-width: 860px; padding-block: 36px 20px; }
.legal h1 { font-size: 1.7rem; margin: 0 0 18px; }
.legal h2 { font-size: 1.12rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--fg); line-height: 1.6; text-wrap: pretty; }
.legal ol, .legal ul { padding-left: 1.3em; }
.legal li { margin: 6px 0; }
.legal a { color: var(--accent); }
.legal .tblwrap { overflow-x: auto; margin: 10px 0; }
.legal table { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 560px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--surface); }
.legal .form-sample { list-style: none; padding: 0; border: 1px solid var(--line); border-radius: 4px; padding: 6px 14px; }
.legal-nav { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.legal-nav a { color: var(--muted); }
main > footer { text-align: center; font-size: .76rem; line-height: 1.6; color: color-mix(in srgb, var(--muted) 70%, transparent); padding-top: 28px; }
main > footer .fl { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: center; margin-bottom: 6px; }
main > footer a { color: inherit; text-decoration: none; }
main > footer a:hover { color: var(--fg); text-decoration: underline; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--muted); line-height: 1.45; margin: 4px 0 2px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.consent a { color: var(--fg); }

/* Masonry galerie (od 561 px): fotky zůstávají celé v původním poměru stran, řádky se skládají podle výšky.
   Rozmístění dopočítává assets/app.js. Do té doby se galerie krátce skryje, aby se nic nepřeskupovalo. */
@media (min-width: 561px) {
  .js .grid:not(.msn) { visibility: hidden; animation: msnshow 0s 1.2s forwards; }
  @keyframes msnshow { to { visibility: visible; } }
  .grid.msn { --min: 280px; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--min), 1fr)); grid-auto-rows: 2px; column-gap: var(--gap); row-gap: 0; }
  .grid.msn::after { display: none; }
  .grid.msn .tile { flex: none; max-width: none; align-self: start; }
  .grid.msn .tile.snap { aspect-ratio: var(--snap); }
  .grid.msn .tile.snap img { width: 100%; height: 100%; object-fit: cover; }
}
@media (min-width: 561px) and (max-width: 1000px) { .grid.msn { --min: 240px; } }

/* pozvánka do prohlížení přes celou obrazovku */
.invite { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-block: 26px 4px; }
.invite-btn { background: var(--accent); color: var(--on-accent); border: 0; border-radius: 4px; padding: 13px 24px; font-weight: 600; font-size: 1rem; letter-spacing: .01em; transition: filter .2s, transform .2s; }
.invite-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.invite-t { color: var(--muted); font-size: .9rem; }
@media (max-width: 560px) { .invite { padding-block: 18px 2px; } .invite-btn { width: 100%; } }

/* blog */
.blog .post-date { color: var(--muted); font-size: .85rem; margin: 0 0 6px; }
.blog .post-date a { color: var(--muted); }
.blog h1 { font-size: 1.9rem; line-height: 1.25; }
.blog .muted { color: var(--muted); }
.post-body { max-width: 62ch; font-size: 1.08rem; }
.post-body p { margin: 0 0 1.05em; line-height: 1.7; }
.post-cover { margin: 34px 0 0; }
.post-cover img { width: 100%; height: auto; border-radius: 4px; display: block; }
.post-cover figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); }
.post-cover figcaption a { color: var(--muted); }
.post-nav { display: flex; justify-content: space-between; gap: 18px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .92rem; }
.post-nav a { color: var(--accent); text-decoration: none; max-width: 48%; }
.post-list { list-style: none; padding: 0; margin: 22px 0 0; }
.post-list li { border-top: 1px solid var(--line); }
.post-list a { display: block; padding: 18px 0; color: var(--fg); text-decoration: none; }
.post-list a:hover b { color: var(--accent); }
.post-list small { display: block; color: var(--muted); font-size: .8rem; margin-bottom: 3px; }
.post-list b { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.post-list span { color: var(--muted); line-height: 1.5; }

.post-cover { margin: 30px 0; }
.post-cover.last { margin-bottom: 0; }
.post-list a { display: flex; gap: 18px; align-items: flex-start; }
.post-list .pl-th { width: 150px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; flex: none; }
.post-list .pl-t { display: block; min-width: 0; flex: 1; }
@media (max-width: 560px) { .post-list .pl-th { width: 96px; } }

/* odběr e-mailem */
.subf { margin: 36px 0 8px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); max-width: 560px; position: relative; }
.subf b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.subf p { margin: 0 0 12px; color: var(--muted); font-size: .92rem; }
.subf .subrow { display: flex; gap: 10px; flex-wrap: wrap; }
.subf input[type=email] { flex: 1 1 220px; min-width: 0; height: 44px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; }
.subf button { height: 44px; padding: 0 18px; border: 0; border-radius: 4px; background: var(--accent); color: #1a1a1a; font: inherit; font-weight: 600; cursor: pointer; }
.subf small { display: block; margin-top: 10px; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.subf small a { color: var(--muted); }
.submsg { padding: 14px 16px; border-radius: 4px; border: 1px solid var(--line); }
.submsg.ok { border-color: #5a8a5a; }
.submsg.err { border-color: #a85a5a; }

/* sdílení článku */
.sharebar { margin: 34px 0 0; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }
.sharebar b { display: block; font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.sharebar .sb-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.sharebar .sb { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; color: #fff; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, filter .15s; }
.sharebar .sb svg { width: 23px; height: 23px; display: block; }
.sharebar .sb:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.35); filter: brightness(1.08); }
.sharebar .sb:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sharebar .sb-fb { background: #1877f2; }
.sharebar .sb-wa { background: #25d366; color: #0b3d1e; }
.sharebar .sb-x { background: #000; box-shadow: inset 0 0 0 1px #4a4a4a; }
.sharebar .sb-mail { background: #c9b98f; color: #1a1a1a; }
.sharebar .sb-link { background: #4a4d52; }
.sharebar .sb-share { background: var(--accent); color: #1a1a1a; }
.sharebar .sb-link.done { background: #3f8f5a; }
.sharebar .sb[hidden] { display: none; }

/* sloupec blogu: vycentrovaný, text i fotky stejně široké */
.legal.blog { max-width: 660px; }
.blog .post-body { max-width: none; font-size: 1.14rem; color: color-mix(in srgb, var(--fg) 62%, var(--bg)); }
.blog .post-body p { color: color-mix(in srgb, var(--fg) 62%, var(--bg)); line-height: 1.78; margin: 0 0 1.25em; text-wrap: pretty; }
.blog .post-body h2 { font-size: 1.3rem; margin: 1.8em 0 .6em; }
.blog h1 { margin: 0 0 22px; }
.blog .subf { max-width: none; margin-inline: 0; }
