/* =========================================================================
   LOSENKA s.r.o. — Web
   Design tokens + base styles
   ========================================================================= */

:root {
  /* Brand */
  --red:        #A82418;     /* logo red, tuned for screen */
  --red-700:    #7E1B12;
  --red-50:     #F7E5E2;
  --clay:       #C26B3A;     /* secondary accent — B2B */
  --clay-50:    #F3E2D2;

  /* Neutrals — warm */
  --bg:         #FAF5EE;     /* page */
  --paper:      #FFFFFF;     /* cards / elevated */
  --sand:       #F2EADC;     /* alt section */
  --sand-2:     #EADFCD;
  --border:     #E8DFD2;
  --border-2:   #D8CCB6;

  /* Ink */
  --ink:        #1B1714;
  --ink-2:      #3A322C;
  --ink-3:      #6B6157;
  --muted:      #8E8478;

  /* Status */
  --success:    #2F7D4F;

  /* Type */
  --font-display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --font-body:    "Manrope", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Radii */
  --r-sm: 6px;
  --r:    10px;
  --r-md: 14px;
  --r-lg: 22px;

  /* Shadow */
  --shadow-1: 0 1px 0 rgba(27,23,20,0.04), 0 2px 6px rgba(27,23,20,0.04);
  --shadow-2: 0 1px 0 rgba(27,23,20,0.04), 0 12px 32px -12px rgba(27,23,20,0.16);

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
*::selection { background: var(--red); color: #fff; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 5.6vw, 76px); letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 3.6vw, 48px); }
h3 { font-size: clamp(20px, 1.8vw, 24px); }

p  { margin: 0 0 1em; color: var(--ink-2); text-wrap: pretty; }
p.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); }

/* červený akcent v nadpisech (jedno klíčové slovo) */
.hl { color: var(--red); font-style: normal; }

/* ===== Layout primitives ===== */

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

section { padding: clamp(64px, 9vw, 120px) 0; }
section.tight { padding: clamp(48px, 6vw, 80px) 0; }
section.alt   { background: var(--sand); }
section.paper { background: var(--paper); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--red);
  display: inline-block;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: clamp(40px, 5vw, 64px);
  max-width: 760px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { margin-left: auto; margin-right: auto; }

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 80ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn .arr { transition: transform 200ms ease; }
.btn:hover .arr { transform: translateX(3px); }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 6px 18px -6px rgba(168,36,24,0.45);
}
.btn-primary:hover { background: var(--red-700); }

.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: #000; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-2);
}
.btn-secondary:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
}
.btn-outline:hover { background: var(--red); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding-left: 6px; padding-right: 6px;
}
.btn-ghost:hover { color: var(--red); }

.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 17px 28px; font-size: 16px; }

/* ===== Topbar ===== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 238, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, background 180ms ease;
}
.topbar.scrolled {
  background: rgba(250, 245, 238, 0.96);
  border-bottom-color: var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 88px;
  flex-wrap: nowrap;
}
.topbar .logo { display: flex; align-items: center; flex-shrink: 0; }
.topbar .logo img { height: 52px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  white-space: nowrap;
}
.nav a {
  position: relative;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 8px;
  transition: color 140ms ease, background 140ms ease;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--red); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}
.topbar-actions .btn { padding: 12px 24px; font-size: 14px; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 100%; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile nav panel */
.mobilenav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(250, 245, 238, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 88px var(--gutter) 32px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  overflow-y: auto;
}
.mobilenav.is-open { display: flex; }
.mobilenav > a {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  padding: 10px 24px;
  color: var(--ink);
}
.mobilenav > a:hover { color: var(--red); }
.mobilenav .mn-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 360px;
}
.mobilenav .mn-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 0;
}
.mobilenav .mn-contact a:hover { color: var(--red); }
.mobilenav .mn-contact svg { color: var(--red); flex-shrink: 0; }
.mobilenav .mn-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  width: 100%;
  max-width: 300px;
}
.mobilenav .mn-actions .btn { width: 100%; padding: 11px 18px; font-size: 14.5px; }

/* ===== Hero ===== */

.hero p.lead {
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* cream wash sampled from the image's left edge — extends to infinity
     on wide viewports so 4K screens don't push the photo content off-axis */
  background-color: #F6F2EC;
}

/* Cap the hero image at a sensible width AND align its right edge with the
   content wrap's right edge — otherwise on FHD/4K the food/van anchors to
   the viewport edge and visually overhangs far to the right of the text.
   Small overflow (~240px) past content edge so the cut isn't visually rigid;
   the rightmost slice fades into the cream wash via a mask gradient. */
.hero-bg-wrap {
  position: absolute;
  top: 0;
  bottom: 0;
  right: max(0px, calc((100vw - var(--maxw)) / 2 - 240px));
  width: 100%;
  max-width: 1500px;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 98%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 98%, transparent 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* anchor bottom-left so the van + cream wash never get cropped under
     the visible edge as the hero stretches; right/top crop instead */
  object-position: left bottom;
  pointer-events: none;
  user-select: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  position: relative;
}
.hero-text { max-width: 720px; position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.05;
  margin-bottom: 22px;
}

.hero .lead {
  font-size: clamp(15.5px, 1.15vw, 17px);
  color: var(--ink-2);
  max-width: 500px;
  margin-bottom: 28px;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-cta .btn-lg { padding: 16px 24px; font-size: 15.5px; }

.hero-chips {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.4vw, 18px);
}
.hero-chips li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.32;
}
.hero-chips li b {
  display: inline;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
}
.chip-ico {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.chip-ico.red   { background: var(--red-50);  color: var(--red); }
.chip-ico.blue  { background: #DCE7F4;        color: #2F5FB0; }
.chip-ico.green { background: #DCE7DA;        color: var(--success); }
.chip-ico.clay  { background: var(--clay-50); color: var(--clay); }

.hero-price-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--red-50);
  border: 1px solid rgba(168,36,24,0.12);
  border-radius: 14px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.hero-price-note strong { color: var(--red); font-weight: 700; }
.hero-price-note .hpn-ico {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(168,36,24,0.12);
  color: var(--red);
  display: grid; place-items: center;
}

/* ===== Hero visual — photo + floating cards ===== */

/* ===== Hero visual — single product image ===== */

.hero-visual {
  position: relative;
  align-self: center;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Right column — sits over the image, top-aligned */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: start;
  position: relative;
  z-index: 1;
  max-width: 225px;
  width: 100%;
}
.ht-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px -2px rgba(27,23,20,0.08), 0 8px 20px -10px rgba(27,23,20,0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  color: inherit;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.ht-domu  { background: #FCF4E9; }
.ht-firmy { background: #F7F7EF; }
.ht-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px -2px rgba(27,23,20,0.10), 0 14px 28px -12px rgba(27,23,20,0.18);
}

.hv-ico {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  flex-shrink: 0;
  background: transparent;
  border-radius: 0;
}
.hv-ico svg { width: 28px; height: 28px; }
.hv-ico.red   { color: var(--red); }
.hv-ico.green { color: var(--success); }
.hv-ico.blue  { color: #2C5BA0; }
.hv-ico.clay  { color: var(--clay); }

.hv-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.ht-domu  .hv-title { color: var(--red); }
.ht-firmy .hv-title { color: var(--success); }

.hv-desc {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.35;
  margin-top: 4px;
}

/* ===== Co nabízíme — cards ===== */

.offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.6vw, 24px);
}
.offer {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.offer:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--border-2); }
.offer .num {
  position: absolute;
  right: 24px; top: 22px;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  color: var(--sand);
  line-height: 1;
}
.offer .tag {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 44px;
  font-family: var(--font-mono);
}
.offer.b2c .tag { background: var(--red-50); color: var(--red); }
.offer.b2b .tag { background: var(--clay-50); color: var(--clay); }
.offer.kantyna .tag { background: #DCE7DA; color: #2F7D4F; }
.offer h3 { font-size: 26px; margin-bottom: 12px; }
.offer p  { font-size: 15px; color: var(--ink-3); margin-bottom: 22px; }
.offer ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.offer li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.offer li::before {
  content: "";
  flex-shrink: 0;
  width: 8px; height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--red);
}
.offer.b2b li::before { background: var(--clay); }
.offer.kantyna li::before { background: var(--success); }
.offer .cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.offer .cta:hover { color: var(--red); }
.offer .cta .arr { transition: transform 180ms ease; }
.offer:hover .cta .arr { transform: translateX(4px); }

/* ===== Jídelní lístek (jeden sloupec) ===== */
.menu-board {
  max-width: 1040px;
  margin: 0 auto;
}
.menu-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 22px;
}
.menu-tab {
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 26px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.menu-tab:hover { border-color: var(--red); color: var(--red); }
.menu-tab.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.menu-sheet {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(10px, 1.4vw, 18px);
  box-shadow: var(--shadow-1);
  min-height: 220px;
}
.menu-sheet img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--r-lg) - 8px);
}
.menu-image.is-hidden { visibility: hidden; }

/* Loader nad obrázkem — princip převzatý z fantovi */
.menu-loader {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border-radius: var(--r-lg);
  z-index: 2;
}
.menu-loader.is-active { display: flex; }
.menu-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid var(--border-2);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: menu-spin 0.7s linear infinite;
}
@keyframes menu-spin { to { transform: rotate(360deg); } }
.menu-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}
.menu-register {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

/* ===== Ceník ===== */

.price-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.price-table {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--border);
}
.price-row:last-child { border-bottom: 0; }
.price-row .left { display: flex; flex-direction: column; gap: 4px; }
.price-row .tag-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}
.price-row .name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}
.price-row .desc { font-size: 13.5px; color: var(--ink-3); }
.price-row .price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.price-row .price .unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 4px;
  font-family: var(--font-body);
}

.b2b-callout {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.b2b-callout::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--clay);
  opacity: 0.5;
  filter: blur(20px);
}
.b2b-callout .label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 14px;
  position: relative;
}
.b2b-callout h3 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 14px;
  position: relative;
}
.b2b-callout p {
  color: rgba(255,255,255,0.78);
  font-size: 15px;
  position: relative;
  margin-bottom: 24px;
}
.b2b-callout .btn-clay {
  background: var(--clay);
  color: #fff;
  position: relative;
}
.b2b-callout .btn-clay:hover { background: #A85725; }

/* ===== Jak to funguje ===== */

.flow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
}
.flow {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
}
.flow.b2b { background: var(--ink); color: #fff; border-color: var(--ink); }
.flow .flow-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.flow .flow-head .ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--red-50);
  color: var(--red);
  display: grid; place-items: center;
}
.flow.b2b .flow-head .ico { background: rgba(194,107,58,0.25); color: var(--clay); }
.flow .flow-head .who {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.flow.b2b .flow-head .who { color: rgba(255,255,255,0.7); }
.flow h3 { font-size: 26px; margin: 0; }
.flow.b2b h3 { color: #fff; }
.flow ol {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 0;
}
.flow ol li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  font-size: 15.5px;
  color: var(--ink-2);
  counter-increment: step;
  align-items: baseline;
}
.flow.b2b ol li { border-top-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.86); }
.flow ol li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--red);
}
.flow.b2b ol li::before { color: var(--clay); }

/* ===== Jak to funguje & ceník (spojeno) ===== */
.howprice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.howprice-info {
  display: grid;
  gap: clamp(18px, 2vw, 24px);
  align-content: start;
}
.howprice-cta {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 28px;
}

/* ===== Kam rozvážíme (jeden sloupec) ===== */

.map-image {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.map-image img {
  display: block;
  width: 100%;
  height: auto;
}
/* placeholder dokud není dodán obrázek mapy */
.map-image.is-placeholder {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  border: 1px dashed var(--border-2);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(168,36,24,0.06), transparent 60%),
    repeating-linear-gradient(45deg, var(--paper) 0 16px, var(--sand) 16px 17px);
}
#kam-rozvazime .section-head a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#kam-rozvazime .section-head a:hover { color: var(--red-700); }

/* ===== Galerie ===== */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(10px, 1.4vw, 18px);
}
.g {
  grid-column: span 3;
  aspect-ratio: 1 / 1;
}
.g.wide { grid-column: span 6; aspect-ratio: 2 / 1; }
.g.tall { grid-column: span 3; aspect-ratio: 1 / 1.5; }

/* ===== Proč LOSENKA ===== */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.6vw, 24px);
}
.why {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
}
.why .ico {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--red-50);
  color: var(--red);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.why h3 { font-size: 19px; margin-bottom: 10px; }
.why p  { font-size: 14.5px; color: var(--ink-3); margin: 0; }

/* ===== Reference ===== */

/* Navazuje na mapu rozvozu na stejném pozadí, horní odsazení by mezi nimi dělalo díru. */
#reference { padding-top: 0; }
.ref-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--border);
}
.ref-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.ref-list .ref-name { font-weight: 600; color: var(--ink); font-size: 15px; }
.ref-list .ref-city { font-size: 13.5px; color: var(--ink-3); }

/* ===== Kontakt ===== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 38px);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
}
.contact-card--empty { min-height: 380px; }

.card-head {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 48px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.contact-blocks {
  display: grid;
  gap: 22px;
}
.cb {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}
.cb-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cb-ico.red   { background: var(--red-50);  color: var(--red); }
.cb-ico.blue  { background: #DCE7F4;        color: #2F5FB0; }
.cb-ico.green { background: #DCE7DA;        color: var(--success); }
.cb-ico.clay  { background: var(--clay-50); color: var(--clay); }
.cb p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
.cb-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 5px;
}
.cb a {
  color: var(--red);
  font-weight: 600;
}
.cb a:hover { text-decoration: underline; }
.cb-note {
  display: inline-block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--ink-3);
}
.map-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.map-link:hover { color: var(--red-700); }
.cb-contact { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

.cb-hours { border-collapse: collapse; margin-top: 4px; }
.cb-hours td { padding: 1px 0; font-size: 15px; color: var(--ink-2); }
.cb-hours td:first-child { padding-right: 18px; font-weight: 600; color: var(--ink); }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 28px;
}
.contact-actions .btn { padding: 12px 20px; font-size: 15px; }

.contact-legal {
  margin: 24px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

/* ===== Footer ===== */

footer.foot {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
}
.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px 40px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.foot .brand-block { display: flex; flex-direction: column; align-items: flex-start; }
.foot .brand-block .logo-w {
  background: var(--paper);
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.foot .brand-block .logo-w img { height: 30px; }
.foot .brand-block p { color: rgba(255,255,255,0.55); font-size: 13.5px; margin: 0; }
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 14.5px;
}
.foot-nav a { color: rgba(255,255,255,0.7); }
.foot-nav a:hover { color: #fff; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 28px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.foot-legal a { color: rgba(255,255,255,0.6); text-decoration: underline; text-underline-offset: 2px; }
.foot-legal a:hover { color: #fff; }
.foot-platform { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.7); }
.foot-platform:hover { color: #fff; }
.foot-platform img { height: 48px; width: auto; opacity: 0.9; }

/* ===== Striped placeholder ===== */
.ph {
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(27,23,20,0.045) 12px 13px),
    var(--sand);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ph .ph-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: rgba(255,255,255,0.92);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.ph::before, .ph::after {
  content: "";
  position: absolute;
  width: 1px;
  background: rgba(27,23,20,0.06);
}
.ph::before { inset: 0 0 0 auto; transform: rotate(-90deg); transform-origin: top right; }
/* tiny corner ticks */

/* ===== Responsive ===== */

/* Hide nav on narrower screens — show hamburger instead.
   Czech labels + 6 items don't fit comfortably under ~1180px. */
@media (max-width: 1180px) {
  .nav { display: none; }
  .hamburger { display: inline-flex; }
}

@media (max-width: 1024px) {
  .ref-list { grid-template-columns: repeat(2, 1fr); }
  /* Image fills the whole hero (no aspect-ratio cap that would leave a
     cream strip at the bottom). object-fit: cover with right-top anchor
     keeps the food + van visible behind the text column. */
  .hero-bg-wrap {
    overflow: hidden;
    inset: 0;
    width: auto;
    max-width: 100%;
    aspect-ratio: auto;
    height: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-bg {
    object-fit: cover;
    object-position: right top;
  }

  /* Light translucent background on chips so they stay legible when
     they sit over the food/van portion of the image. */
  .hero-chips li {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 8px 12px;
  }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .offers, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .offers > .offer:last-child { grid-column: 1 / -1; max-width: 400px; justify-self: center; }
  .menu-wrap, .price-wrap, .flow-grid, .howprice-grid, .delivery-grid, .contact-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust .t:nth-child(3) { border-left: 0; border-top: 1px solid var(--border); }
  .trust .t:nth-child(4) { border-top: 1px solid var(--border); }
  .ref-logos { grid-template-columns: repeat(3, 1fr); }
  .ref-logos .l:nth-child(4) { border-left: 0; border-top: 1px solid var(--border); }
  .ref-logos .l:nth-child(5) { border-top: 1px solid var(--border); }
}

@media (max-width: 800px) {
  /* Slight darkening on the hero image at phone sizes — gives the light
     text-shadow more contrast to push against, making headline + lead
     more legible without obscuring the food/van. */
  .hero-bg {
    filter: brightness(0.86) saturate(0.96);
  }

  /* Bring back a translucent pill behind each chip, but much lighter than
     before — readable without feeling like a chunky box. */
  .hero-chips li {
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 8px 12px;
    border-radius: 10px;
  }
}

@media (max-width: 720px) {
  .ref-list { gap: 0 16px; }
  .ref-list li { padding: 11px 0; }
  .ref-list .ref-name { font-size: 13.5px; }
  .ref-list .ref-city { font-size: 12.5px; }
  html { scroll-padding-top: 92px; }
  .topbar-inner { height: 76px; gap: 12px; }
  .topbar .logo img { height: 44px; }
  .mobilenav { padding-top: 76px; }
  .topbar-actions .desktop-only { display: none; }
  .topbar-actions .btn { padding: 10px 14px; font-size: 13.5px; }
  .offers, .why-grid { grid-template-columns: 1fr; }
  .offers > .offer:last-child { max-width: none; justify-self: stretch; }
  .menu-actions { grid-template-columns: 1fr; }
  /* Jídelní lístek: na mobilu skryjeme náhled (drobný, nečitelný) — necháme jen stažení PDF */
  .menu-tabs, .menu-sheet { display: none; }
  .menu-cta { margin-top: 0; }
  .gallery > .g, .gallery > .g.wide, .gallery > .g.tall { grid-column: span 6; aspect-ratio: 1 / 1; }
  .gallery > .g.wide:first-child { grid-column: span 12; aspect-ratio: 16 / 9; }
  .price-row { grid-template-columns: 1fr; align-items: flex-start; }
  .price-row .price { font-size: 26px; }
  .city-list { grid-template-columns: 1fr; }
  .city-list li:nth-child(even) { padding-left: 0; border-left: 0; }
  .ref-logos { grid-template-columns: 1fr 1fr; }
  .ref-logos .l:nth-child(odd):not(:first-child) { border-left: 0; border-top: 1px solid var(--border); }
  .ref-logos .l:nth-child(even):not(:nth-child(2)) { border-top: 1px solid var(--border); }
  .foot-top { flex-direction: column; align-items: center; text-align: center; gap: 22px; margin-bottom: 26px; }
  .foot .brand-block { align-items: center; }
  .foot-nav { justify-content: center; }
  .foot-bottom { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
  .foot-legal { flex-direction: column; gap: 10px; }

  /* Pin chips to the bottom of hero — no more growing the section by piling
     on margin. Hero gets a min-height so there's a stable bottom to anchor
     against, minus the sticky topbar height (76px on phone) so the section
     fits within the visible viewport. */
  .hero { min-height: calc(100svh - 160px); }
  /* Restore top breathing room on phone — desktop uses default section
     padding; phone needs the chips reserved space at the bottom. */
  .hero { padding-bottom: 110px; }
  /* IMPORTANT: hero-grid AND hero-text both have position:relative from
     desktop styles. Reset both on phone so absolute-positioned chips
     resolve their containing block against .hero (the section). */
  .hero-grid { position: static; }
  .hero-text { position: static; }
  .hero-chips {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 24px;
    margin: 0;
    z-index: 1;
    grid-template-columns: 1fr 1fr;
  }
  .hero-side { gap: 10px; }

  /* Chips: pill bg + radius come from the 800px block above; we just keep
     legibility on the text + bold parts. */
  .hero-chips li b,
  .hero-chips li > span:last-child {
    text-shadow: 0 1px 6px rgba(246, 242, 236, 0.95);
  }

  /* Boost legibility of hero text over the image */
  .hero h1 {
    text-shadow: 0 1px 2px rgba(246, 242, 236, 0.6), 0 2px 16px rgba(246, 242, 236, 0.9);
  }
  .hero p.lead {
    text-shadow: 0 1px 8px rgba(246, 242, 236, 0.92);
  }
  .hero-eyebrow {
    text-shadow: 0 1px 6px rgba(246, 242, 236, 0.92);
  }

  /* Phone: image fills hero (no aspect-ratio cap). object-fit: cover on a
     wide source (1.78:1) inside a tall-ish phone hero naturally crops the
     left side away, so right top — food + van — stays prominent without
     any transform scale that could overflow into the next section. */
  .hero-bg-wrap {
    overflow: hidden;
    inset: 0;
    aspect-ratio: auto;
    height: auto;
  }
  .hero-bg {
    transform: none;
    object-fit: cover;
    object-position: right top;
  }
}
