/* ===== Design tokens ===== */
:root {
  --accent: #B4842A;
  --accent-dark: #8C6620;
  --accent-tint: #F2E6C8;
  --accent-2: #6E2A34;
  --ink: #241F19;
  --ink-soft: #5B5148;
  --bg: #FFFFFF;
  --bg-alt: #F8F4EC;
  --white: #FFFFFF;
  --border: #E4DAC4;
  --field-bg: #F6F1E4;
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 2px 16px rgba(36, 31, 25, 0.08);
  --shadow-lg: 0 10px 32px rgba(36, 31, 25, 0.14);
  --brown: #3B2415;
  --brown-deep: #22140B;
  --gold-light: #E3BE7A;
  --nav-h-top: clamp(88px, 4.4vw + 36px, 120px);
  --nav-h-mid: 84px;
  --nav-h-slim: 72px;
}

/* ===== Reset ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { overflow-x: hidden; }
body { overflow-x: clip; }
body {
  margin: 0;
  padding-top: var(--nav-h-top);
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 { font-family: var(--font-heading); color: var(--ink); margin: 0 0 0.5em; line-height: 1.12; font-weight: 700; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.2rem, 1.5rem + 2.9vw, 3.9rem); overflow-wrap: break-word; }
h2 { font-size: clamp(1.8rem, 1.45rem + 1.5vw, 2.7rem); }
h3 { font-size: 1.32rem; font-weight: 700; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: var(--font-body); cursor: pointer; }

.container { max-width: 1760px; margin: 0 auto; padding: 0 clamp(24px, 4vw, 80px); }

section {
  padding: clamp(56px, 7vw, 108px) 0;
  scroll-margin-top: calc(var(--nav-h-top) + 24px);
  box-sizing: border-box;
}
section > .container { width: 100%; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.08rem; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: currentColor;
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(180, 132, 42, 0.28);
}
.btn-accent:hover { background: var(--accent-dark); box-shadow: 0 6px 18px rgba(180, 132, 42, 0.34); transform: translateY(-1px); }
.btn-accent:active { transform: translateY(0); }
.btn-arrow { transition: transform 0.2s ease; flex-shrink: 0; }
.btn-accent:hover .btn-arrow { transform: translateX(3px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 253, 248, 0.97);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h-top);
  display: flex;
  align-items: center;
  transition: height 0.25s ease;
}
.site-header[data-state="down"] { height: var(--nav-h-slim); }
.site-header[data-state="up"] { height: var(--nav-h-mid); }

.site-header .container {
  width: 100%;
  display: grid;
  /* Boční sloupce jsou stejně široké, dokud se obsah vejde (nav je přesně na
     středu); když se nevejde, nav se raději posune, než aby se něco překrylo. */
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  gap: clamp(12px, 1.5vw, 24px);
}
.logo-link { justify-self: start; display: block; }
.logo-link img { height: calc(var(--nav-h-top) - 10px); width: auto; transition: height 0.25s ease; }
.site-header[data-state="down"] .logo-link img { height: 62px; }
.site-header[data-state="up"] .logo-link img { height: 74px; }

.main-nav { justify-self: center; display: flex; align-items: center; gap: clamp(14px, 1.7vw, 32px); }
.main-nav a {
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 0.64rem + 0.38vw, 1.08rem);
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--accent-dark); }

.nav-item-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 50;
}
.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}
.nav-dropdown-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown-card a {
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.12s ease, color 0.12s ease;
}
.nav-dropdown-card a:hover { background: var(--accent-tint); color: var(--accent-dark); }

.header-actions { justify-self: end; display: flex; align-items: center; gap: clamp(10px, 1.1vw, 18px); }
.header-actions .btn-accent { padding: clamp(9px, 0.7vw, 12px) clamp(13px, 1.25vw, 22px); font-size: clamp(0.84rem, 0.66rem + 0.26vw, 1rem); }
.cta-short { display: none; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-size: clamp(0.92rem, 0.7rem + 0.3vw, 1.05rem); white-space: nowrap; transition: color 0.15s ease; }
.header-phone:hover { color: var(--accent); }
.header-phone svg { flex-shrink: 0; color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Úvodní klikací obrázek =====
   Odkazy jsou v procentech obrázku, takže sedí při jakékoli velikosti. Desktop:
   obrázek pokryje plochu pod hlavičkou, dole je ukotvený (popisky nikdy neodříznou)
   a do stran ořízne max. 7 % z každé strany. Na výšku se použije mobilní varianta
   přes celou šířku; větší mezery vyplní rozmazaná kopie téhož obrázku. */
.hero-map {
  --r: 1.7768;
  --area: calc(100vh - var(--nav-h-top));
  --img: url("assets/hero-desktop-hd.webp");
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #4F2E19;
  height: max(var(--area), calc(100vw / var(--r) * 0.66));
}
@supports (height: 100svh) {
  .hero-map { --area: calc(100svh - var(--nav-h-top)); }
}
.hero-map-bg {
  position: absolute;
  inset: -40px;
  background: var(--img) center bottom / cover no-repeat;
  filter: blur(26px) brightness(0.82);
}
.hero-map-stage {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(max(100vw, calc(var(--area) * var(--r))), 114vw);
  aspect-ratio: 1672 / 941;
  transform: translateX(-50%);
  animation: heroIn 0.9s ease-out both;
}
.hero-art { position: absolute; inset: 0; background: var(--img) center / cover no-repeat; }
.hero-map-stage { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
@keyframes heroIn {
  from { opacity: 0; transform: translateX(-50%) scale(1.012); }
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}

.hs {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1%);
  height: calc(var(--h) * 1%);
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.28s cubic-bezier(.2, .8, .2, 1), box-shadow 0.28s ease;
}
/* Výřez téhož obrázku přesně na místě odkazu: při zvětšení vyskočí jako tlačítko. */
.hs::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--img);
  background-repeat: no-repeat;
  background-size: calc(10000% / var(--w)) calc(10000% / var(--h));
  background-position: calc(var(--x) / (100 - var(--w)) * 100%) calc(var(--y) / (100 - var(--h)) * 100%);
  opacity: 0;
  transition: opacity 0.12s ease;
}
/* Jemný odlesk, který postupně přejede po dlaždicích a napoví, že jsou klikací. */
.hs-tile::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 236, 190, 0.2), transparent);
  transform: skewX(-14deg);
  animation: hsSweep 12s ease-in-out infinite;
  pointer-events: none;
}
.hs-sachy::after { animation-delay: 0.5s; }
.hs-kuch::after { animation-delay: 1s; }
.hs-deska::after { animation-delay: 1.5s; }
.hs-dvere::after { animation-delay: 2s; }
@keyframes hsSweep {
  0%, 72% { left: -60%; }
  88%, 100% { left: 120%; }
}
.hs-oltar { --x: 0; --y: 51; --w: 19.7; --h: 49; }
.hs-sachy { --x: 19.7; --y: 51; --w: 20.9; --h: 49; }
.hs-kuch { --x: 40.6; --y: 51; --w: 19.6; --h: 49; }
.hs-deska { --x: 60.2; --y: 51; --w: 20.7; --h: 49; }
.hs-dvere { --x: 80.9; --y: 47; --w: 19.09; --h: 53; }
.hs-tile:hover, .hs-tile:focus-visible { --zoom: 1.05; }
.hs:focus-visible { z-index: 3; outline: none; transform: scale(var(--zoom)); box-shadow: 0 0 0 2px var(--gold-light), 0 18px 44px rgba(20, 10, 4, 0.6); }
.hs:focus-visible::before { opacity: 1; }
.hs:active { z-index: 3; transform: scale(1.03); box-shadow: 0 0 0 2px var(--gold-light), 0 14px 32px rgba(20, 10, 4, 0.55); }
.hs:active::before { opacity: 1; }
@media (hover: hover) {
  .hs:hover { z-index: 3; transform: scale(var(--zoom)); box-shadow: 0 0 0 2px var(--gold-light), 0 18px 44px rgba(20, 10, 4, 0.6); }
  .hs:hover::before { opacity: 1; }
}
.hero-map-more {
  position: absolute;
  right: clamp(10px, 1.3vw, 26px);
  bottom: clamp(6px, 0.55vw, 12px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: clamp(30px, 2.25vw, 44px);
  padding: 0 clamp(14px, 1.2vw, 24px);
  border: 1px solid var(--gold-light);
  border-radius: 999px;
  background: rgba(34, 20, 11, 0.88);
  color: #F4DFB4;
  font-family: var(--font-heading);
  font-size: clamp(0.92rem, 0.5rem + 0.56vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.hero-map-more:hover, .hero-map-more:active { transform: scale(1.05); background: var(--gold-light); color: var(--brown-deep); }

@media (max-aspect-ratio: 1/1) {
  .hero-map {
    --r: 0.5628;
    --img: url("assets/hero-mobile-hd.webp");
    --more: 48px;
    --stage-w: min(100vw, max(calc((var(--area) - var(--more)) * var(--r)), 430px));
    --stage-h: calc(var(--stage-w) / var(--r));
    --hero-h: max(var(--area), calc(var(--stage-h) * 0.88 + var(--more)));
    --stage-top: min(0px, calc(var(--hero-h) - var(--more) - var(--stage-h)));
    height: var(--hero-h);
  }
  .hero-map-stage { width: var(--stage-w); aspect-ratio: 941 / 1672; bottom: auto; top: var(--stage-top); }
  .hs { border-radius: 2.6vmin; }
  .hs-oltar { --x: 5.6; --y: 27.45; --w: 88.6; --h: 12.45; }
  .hs-sachy { --x: 5.6; --y: 41.15; --w: 88.6; --h: 12.45; }
  .hs-kuch { --x: 5.6; --y: 54.5; --w: 88.6; --h: 12.85; }
  .hs-deska { --x: 5.6; --y: 68.25; --w: 88.6; --h: 12.9; }
  .hs-dvere { --x: 5.6; --y: 82.05; --w: 88.6; --h: 14.4; }
  .hs-tile:hover, .hs-tile:focus-visible { --zoom: 1.03; }
  .hero-map-more {
    left: 50%;
    right: auto;
    top: calc(var(--stage-top) + var(--stage-h) * 0.9675);
    bottom: auto;
    width: calc(var(--stage-w) * 0.886);
    min-height: 52px;
    transform: translateX(-50%);
    border-color: rgba(227, 190, 122, 0.75);
    border-radius: 12px;
    background: var(--brown-deep);
    font-size: 1.15rem;
  }
  .hero-map-more:hover, .hero-map-more:active { transform: translateX(-50%) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-map-stage, .hs-tile::after { animation: none; }
  .hs { transition: none; }
}

/* ===== CTA band (index) ===== */
#cta-band {
  background: radial-gradient(90% 140% at 85% 10%, rgba(180, 132, 42, 0.2), transparent 60%), linear-gradient(160deg, var(--brown), var(--brown-deep));
}
#cta-band h2 { color: var(--white); font-style: italic; }
#cta-band .eyebrow { color: var(--gold-light); }
#cta-band .section-head p:not(.eyebrow) { color: rgba(255, 255, 255, 0.78); }
.cta-band-quote { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.7rem); max-width: 800px; }
.section-head p.cta-band-attrib { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-top: -8px; }

/* ===== Naše práce: čokoládová a zlatá z polepu dodávky ===== */
#nabidka {
  background:
    radial-gradient(70% 60% at 12% 25%, rgba(180, 132, 42, 0.2), transparent 70%),
    linear-gradient(170deg, var(--brown), var(--brown-deep));
  scroll-margin-top: calc(var(--nav-h-top) - 1px);
}
#nabidka h2 { color: var(--white); }
#nabidka .eyebrow { color: var(--gold-light); }
#nabidka .section-head p:not(.eyebrow) { color: rgba(255, 248, 235, 0.8); }
.product-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.product-tile {
  display: block;
  overflow: hidden;
  background: rgba(255, 245, 225, 0.05);
  border: 1px solid rgba(227, 190, 122, 0.38);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.product-tile:hover { transform: translateY(-4px); border-color: var(--gold-light); box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42); }
.product-tile-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--brown); }
.product-tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-tile:hover .product-tile-img img { transform: scale(1.05); }
.product-tile-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: clamp(12px, 1.2vw, 18px) clamp(14px, 1.4vw, 22px);
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.5rem);
  font-weight: 700;
  color: #F7E9CC;
}
.product-tile-label svg { color: var(--gold-light); flex-shrink: 0; transition: transform 0.2s ease; }
.product-tile:hover .product-tile-label svg { transform: translateX(3px); }

.nabidka-fallback {
  margin-top: clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.nabidka-fallback p { margin: 0; color: rgba(255, 248, 235, 0.8); font-size: 1.02rem; }

/* ===== Ostatní ===== */
.other-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 28px); }
.other-card { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); scroll-margin-top: calc(var(--nav-h-top) + 16px); }
.other-card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--field-bg); }
.other-card-img img { width: 100%; height: 100%; object-fit: cover; }
.other-card-img--brand { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--accent-tint), #FBF6EA); }
.other-card-img--brand img { width: 46%; height: auto; object-fit: contain; }
.other-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(18px, 1.6vw, 26px); }
.other-card-body p { flex: 1; }

/* ===== About page ===== */
.about-wrap { width: 100%; max-width: 1480px; }
.about-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 92px) 0;
  color: rgba(255, 248, 235, 0.85);
  background:
    radial-gradient(60% 120% at 80% 30%, rgba(180, 132, 42, 0.28), transparent 70%),
    linear-gradient(160deg, var(--brown), var(--brown-deep));
}
.about-hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: clamp(-90px, 4vw, 90px);
  width: clamp(240px, 30vw, 460px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: url("assets/emblem.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.07;
  pointer-events: none;
}
.about-hero .container { position: relative; z-index: 1; }
.about-hero h1 { color: var(--white); }
.about-hero .eyebrow { color: var(--gold-light); }
.about-hero .eyebrow { margin-bottom: 6px; }
.about-hero h1 { margin-bottom: 6px; }
.about-hero-sub { margin: 0; color: inherit; font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.2rem); }

.about-body {
  padding: clamp(36px, 4vw, 64px) 0 clamp(40px, 5vw, 72px);
  background: radial-gradient(50% 45% at 100% 0%, var(--accent-tint), transparent 75%), var(--bg-alt);
}
.about-quote {
  margin: 8px 0 22px;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 1.2rem + 1vw, 2.05rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.25;
  color: var(--brown);
}
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.about-story { display: flex; flex-direction: column; }
.about-story p { font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.2rem); line-height: 1.65; margin: 0 0 16px; }
.about-social { margin-top: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.about-why-cta { margin-top: 24px; align-self: flex-start; }
.about-social-label { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.social-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 1px solid var(--border); border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; color: var(--ink);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.social-btn:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-tint); }
.social-btn-facebook { background: #1877F2; border-color: #1877F2; color: #fff; }
.social-btn-facebook:hover { background: #1465D8; border-color: #1465D8; color: #fff; }
.social-btn-instagram { background: linear-gradient(45deg,#F58529,#DD2A7B,#8134AF,#515BD4); border-color: transparent; color: #fff; }
.social-btn-instagram:hover { filter: brightness(1.08); color: #fff; }

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-stat-card {
  background: var(--white);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.about-stat-num { display: block; font-family: var(--font-heading); font-weight: 800; font-size: 2.3rem; color: var(--ink); line-height: 1; margin-bottom: 8px; }
.about-stat-desc { font-size: 1.02rem; color: var(--ink-soft); line-height: 1.55; }

.van-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(20px, 3vw, 36px); }
.van-strip img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; height: 100%; }

.about-why {
  padding: clamp(48px, 6vw, 90px) 0 clamp(56px, 6.5vw, 96px);
  scroll-margin-top: calc(var(--nav-h-top) + 24px);
  background: linear-gradient(170deg, var(--brown), var(--brown-deep));
}
.about-why .eyebrow { margin-bottom: 20px; color: var(--gold-light); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.why-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.why-item h3 { margin-bottom: 8px; font-size: 1.15rem; padding-top: 14px; position: relative; }
.why-item h3::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--accent);
}
.why-item p { margin: 0; font-size: 0.98rem; color: var(--ink-soft); }

/* ===== Process steps ===== */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 8px; width: 100%; }
.process-steps.process-steps-6 { grid-template-columns: repeat(3, 1fr); }
.process-step { position: relative; padding-top: 8px; transition: transform 0.2s ease; }
.process-step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 40px;
  right: -28px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.process-steps-6 .process-step:nth-child(3)::before { display: none; }
.process-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.process-step:hover { transform: translateY(-3px); }
.process-step:hover .process-step-num { background: var(--accent); color: var(--white); }
.process-step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.process-step p { font-size: 0.98rem; margin: 0; }
.process-cta { display: flex; justify-content: center; margin-top: 56px; }

/* ===== Timeline (jak-pracujeme — chronologický seznam kroků) =====
   Nahrazuje mřížku o více řádcích, kde spojnice mezi kroky nedávala smysl,
   jakmile se zalomilo do druhé řady (3→4 vypadalo jako skok zpět doleva).
   Svislá čára prochází středy všech koleček shora dolů bez ohledu na počet
   kroků, takže posloupnost je jednoznačná při libovolném počtu bodů. */
.timeline { display: flex; flex-direction: column; max-width: 820px; margin: 8px auto 0; width: 100%; }
.timeline-step { display: grid; grid-template-columns: 52px 1fr; gap: 26px; position: relative; padding-bottom: 44px; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 52px;
  bottom: -44px;
  width: 2px;
  background: var(--border);
}
.timeline-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.timeline-content { padding-top: 6px; }
.timeline-content h3 { margin-bottom: 6px; }
.timeline-content p { margin: 0; font-size: 1rem; }

/* ===== CNC vysvětlivky — statistiky ===== */
.cnc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; width: 100%; }
.cnc-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cnc-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.cnc-stat-num { display: block; font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; color: var(--accent); line-height: 1.2; margin-bottom: 8px; }
.cnc-stat-label { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.45; }

/* ===== CNC vs ruční práce — srovnání ve dvou sloupcích ===== */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 32px; width: 100%; }
.compare-col h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.compare-col-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
}
.compare-machine .compare-col-icon { background: var(--accent-tint); color: var(--accent-dark); }
.compare-hand .compare-col-icon { background: rgba(110, 42, 52, 0.12); color: var(--accent-2); }
.compare-hand .feature-list li svg { color: var(--accent-2); }

@media (max-width: 980px) {
  .cnc-stats { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .cnc-stats { grid-template-columns: 1fr; }
  .timeline-step { grid-template-columns: 40px 1fr; gap: 16px; }
  .timeline-num { width: 40px; height: 40px; font-size: 1.05rem; }
  .timeline-step:not(:last-child)::before { left: 19px; top: 40px; bottom: -32px; }
  .timeline-step { padding-bottom: 32px; }
}

/* ===== Service/product detail sections ===== */
.service-section .service-intro,
.product-detail-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
  width: 100%;
}
.feature-list { display: flex; flex-direction: column; gap: 13px; margin-top: 8px; }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; color: var(--ink); }
.feature-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}
.gallery-grid a, .gallery-grid .tile {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--field-bg);
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-wide { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-wide a { aspect-ratio: 1 / 1; }

/* ===== Věci na míru — cyklující políčko ===== */
.cycle-tile { position: relative; }
.cycle-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.cycle-tile img.is-active { opacity: 1; }
.cycle-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(36, 31, 25, 0.75); color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  display: flex; align-items: center; gap: 6px;
}
.cycle-badge svg { flex-shrink: 0; }

/* ===== Contact ===== */
#kontakt, #poptavka { padding: 32px 0 320px; scroll-margin-top: calc(var(--nav-h-top) - 40px); }
/* #faq je teď poslední sekce na stránce, hned nad patičkou — velký spodní
   odsazení zajistí, že po kliknutí na tlačítko "Časté dotazy" v kontaktní
   sekci nekoukne patička do zorného pole (stejný důvod jako u #kontaktu výše). */
#faq { padding-bottom: 420px; }
#kontakt .section-head, #poptavka .section-head { margin-bottom: 16px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; width: 100%; max-width: 1080px; }
.contact-form { display: flex; flex-direction: column; gap: 8px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.86rem; font-weight: 700; color: var(--ink); }
.form-row input, .form-row textarea, .form-row select {
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--field-bg);
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.15s ease;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.hidden-field { position: absolute; left: -9999px; top: -9999px; }
.contact-form .btn { align-self: flex-start; margin-top: 8px; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin: -6px 0 0; }
.form-status { margin: 10px 0 0; font-size: 0.9rem; }

.product-select-summary { display: none; }
.product-select-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.product-select-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.product-select-toggle:hover { border-color: var(--accent); color: var(--accent-dark); }
.product-select-toggle .icon-close { display: none; }
.product-select-toggle.is-multi .icon-list { display: none; }
.product-select-toggle.is-multi .icon-close { display: inline-flex; }
.product-select-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.interest-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--field-bg);
  font-size: 0.65rem;
  line-height: 1.2;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.interest-tile:hover:not(:has(input:checked)) {
  border-color: var(--accent);
  background: rgba(180, 132, 42, 0.08);
  color: var(--accent-dark);
}
.interest-tile input { position: absolute; opacity: 0; pointer-events: none; }
.interest-tile:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--white); }

.contact-info { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
}
.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--accent-tint);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-card h3 { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 4px; }
.contact-info-card a, .contact-info-card p { color: var(--ink); font-weight: 600; font-size: 1.02rem; margin: 0; }
.contact-info-card a { transition: color 0.15s ease; }
.contact-info-card a:hover { color: var(--accent-dark); }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.contact-map iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; width: 100%; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 22px; }
.faq-item summary {
  padding: 18px 0;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 20px; margin: 0; color: var(--ink-soft); }

/* ===== Product detail pages ===== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--ink-soft); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

.product-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
}
.product-hero p.lead { font-size: 1.14rem; max-width: 56ch; }
.product-hero .product-cta { margin-top: 26px; display: flex; gap: 16px; flex-wrap: wrap; }
.product-hero-highlights { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.product-hero-highlights li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--ink); font-size: 0.97rem; }
.product-hero-highlights li svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.product-hero-img {
  align-self: start;
  aspect-ratio: 4 / 3;
  margin-left: -20px;
  margin-top: -8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--field-bg);
}
.product-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-img {
  align-self: start;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--field-bg);
}
.product-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-content { display: flex; flex-direction: column; justify-content: center; }
.product-detail-content h2 { margin-bottom: 14px; }
.product-detail-content > p { font-size: 1.03rem; margin-bottom: 22px; }
.product-detail-content .detail-cta { margin-top: 26px; align-self: flex-start; }

/* ===== Simple content pages (legal) ===== */
.page-hero { padding: 64px 0 8px; }
.page-hero h1 { margin-bottom: 6px; }
.legal-content { max-width: 760px; width: 100%; }
.legal-content h2 { font-size: 1.4rem; margin-top: 1.6em; }
.legal-content p, .legal-content li { font-size: 1rem; }
.legal-content ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.legal-content li { margin-bottom: 0.4em; }

/* ===== Footer ===== */
.site-footer { background: var(--brown-deep); border-top: 3px solid var(--accent); color: #D5CAB6; padding: clamp(40px, 4vw, 56px) 0 28px; }
.site-footer .container { display: flex; flex-direction: column; gap: 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.footer-logo img { width: auto; height: clamp(84px, 7vw, 110px); filter: brightness(0) invert(1); opacity: 0.95; }
.footer-blurb { max-width: 320px; font-size: 0.92rem; color: #A69C8A; margin-top: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; max-width: 460px; }
.footer-nav a { font-size: 0.9rem; color: #C9C1B4; }
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem; color: #93897A;
}
.footer-bottom a { color: #93897A; }
.footer-bottom a:hover { color: var(--white); }
.footer-bottom-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* Credit widget — kept 1:1 identical across every site this is deployed on. */
.sz-credit {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; opacity: 0.5;
  transition: opacity 0.22s; flex-shrink: 0;
  transform: translateY(-5px);
}
.sz-credit:hover { opacity: 1; }
.sz-credit-bar {
  width: 3px; height: 32px;
  background: #3B82F6; border-radius: 2px; flex-shrink: 0;
}
.sz-credit-text { display: flex; flex-direction: column; gap: 1px; }
.sz-credit-made { font-size: 9px; font-weight: 700; color: rgba(255,255,255,0.35); letter-spacing: 1px; text-transform: uppercase; line-height: 1.2; }
.sz-credit-name { font-size: 12px; font-weight: 700; color: #fff; letter-spacing: -0.2px; line-height: 1.2; }
.sz-credit-sub { font-size: 9.5px; color: rgba(255,255,255,0.4); letter-spacing: 0.3px; line-height: 1.2; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .product-hero .container {
    grid-template-columns: 1fr;
    gap: 14px;
    grid-template-areas: "breadcrumb" "eyebrow" "h1" "lead" "img" "highlights" "cta";
  }
  .product-hero-copy { display: contents; }
  .product-hero-copy .breadcrumb { grid-area: breadcrumb; margin-bottom: 0; }
  .product-hero-copy .eyebrow { grid-area: eyebrow; }
  .product-hero-copy h1 { grid-area: h1; }
  .product-hero-copy p.lead { grid-area: lead; }
  .product-hero-highlights { grid-area: highlights; margin-top: 4px; }
  .product-hero .product-cta { grid-area: cta; margin-top: 4px; }
  .product-hero-img { grid-area: img; order: initial; height: auto; min-height: 0; aspect-ratio: 16 / 10; max-height: 340px; margin-left: 0; margin-top: 0; }
  .service-section .service-intro, .product-detail-split { grid-template-columns: 1fr; gap: 28px; }
  .product-detail-img { order: -1; height: auto; min-height: 0; aspect-ratio: 16 / 10; max-height: 340px; }
  .process-steps, .process-steps-6 { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .process-step::before { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .van-strip { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .other-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-wide { grid-template-columns: repeat(3, 1fr); }
}

/* Telefon bez čísla, než se začne hlavička tlačit. */
@media (max-width: 1280px) {
  .header-phone span { display: none; }
}
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header .container { display: flex; justify-content: space-between; }

  body.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--nav-h-slim));
    overflow-y: auto;
  }
  body.nav-open .main-nav a { padding: 13px 0; width: 100%; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  body.nav-open .nav-item-dropdown { width: 100%; flex-direction: column; align-items: flex-start; }
  body.nav-open .nav-item-dropdown > a { border-bottom: none; }
  body.nav-open .nav-dropdown-menu {
    position: static;
    padding-top: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: 100%;
  }
  body.nav-open .nav-dropdown-card {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0 0 4px 16px;
    min-width: 0;
  }
  body.nav-open .nav-dropdown-card a { padding: 10px 0; border-bottom: 1px solid var(--border); border-radius: 0; }
}

@media (max-width: 768px) {
  :root { --nav-h-top: 76px; --nav-h-mid: 76px; --nav-h-slim: 76px; }
  .logo-link img, .site-header[data-state="down"] .logo-link img, .site-header[data-state="up"] .logo-link img { height: 68px; }
  .logo-link { flex-shrink: 0; min-width: 0; }
  .logo-link img { max-width: 100%; }
  .container { padding: 0 16px; }
  .header-actions { gap: 8px; }
  .header-actions .btn-accent { padding: 9px 12px; font-size: 0.86rem; }
  .header-actions .btn-arrow { display: none; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
  #kontakt, #poptavka { padding: 44px 0 200px; scroll-margin-top: 25px; }
  #faq { padding-bottom: 160px; }
  .why-grid { grid-template-columns: 1fr; gap: 20px; }
  .van-strip { grid-template-columns: 1fr; }
  .product-tiles { gap: 12px; }
  .product-tile-label svg { display: none; }
  .about-grid { gap: 24px; }
  .about-stat-num { font-size: 1.7rem; }
  .about-stat-desc { font-size: 0.92rem; }
  .other-cards { grid-template-columns: 1fr; }
  .btn { white-space: normal; text-align: center; }
  .contact-info-card a, .contact-info-card p { font-size: 0.95rem; overflow-wrap: anywhere; }
  .contact-form .btn { align-self: stretch; }
  .product-select-summary {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    padding: 13px 16px; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--field-bg); color: var(--ink); font-family: var(--font-body);
    font-size: 0.92rem; font-weight: 600; cursor: pointer;
  }
  .product-select-summary svg { transition: transform 0.2s ease; color: var(--ink-soft); flex-shrink: 0; }
  .product-select-summary.is-open svg { transform: rotate(180deg); }
  .product-select-head, .product-select-grid { display: none; }
  .product-select-summary.is-open ~ .product-select-head { display: flex; }
  .product-select-summary.is-open ~ .product-select-grid { display: grid; }
  .process-steps, .process-steps-6 { grid-template-columns: 1fr; }
  .gallery-wide { grid-template-columns: repeat(2, 1fr); }
  .product-select-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .contact-map iframe { height: 220px; }
}

/* ===== Lightbox (galerie) ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(18, 14, 10, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}
.lightbox-overlay.is-open { opacity: 1; visibility: visible; }
body.lightbox-open { overflow: hidden; }

.lightbox-frame { position: relative; display: flex; align-items: center; justify-content: center; }
.lightbox-img {
  display: block;
  max-width: 88vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: var(--field-bg);
}
.lightbox-counter {
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.lightbox-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.5); }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
}

@media (max-width: 768px) {
  .lightbox-overlay { gap: 8px; padding: 16px; }
  .lightbox-img { max-width: 88vw; max-height: 78vh; }
  .lightbox-btn { width: 38px; height: 38px; }
  .lightbox-close { top: 12px; right: 12px; }
  .lightbox-counter { bottom: -28px; font-size: 0.76rem; }
}

@media (max-width: 980px) {
  .product-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet na výšku: měkký přechod obrázku do rozmazaného pozadí místo ostré hrany. */
@media (max-aspect-ratio: 1/1) and (min-width: 560px) {
  .hero-map-stage {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(#000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(#000 96%, transparent);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
}

/* Telefon: pod obrázkem plynule navazuje jednolitá hnědá. */
@media (max-aspect-ratio: 1/1) and (max-width: 559px) {
  .hero-map { background: #2E1B0F; }
  .hero-map-bg { display: none; }
  .hero-map-stage {
    -webkit-mask-image: linear-gradient(#000 97%, transparent);
    mask-image: linear-gradient(#000 97%, transparent);
  }
}
#ukazky .gallery-grid, #ze-stroje .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#nabidka { scroll-margin-top: var(--nav-h-slim); }

/* Měkký přechod spodku úvodního obrázku do hnědé sekce Naše práce (bez tvrdé hrany). */
.hero-map::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(56px, 8vw, 120px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(59, 36, 21, 0) 0%, rgba(59, 36, 21, 0.35) 40%, rgba(59, 36, 21, 0.78) 75%, #3B2415 100%);
}
@media (max-aspect-ratio: 1/1) and (max-width: 559px) { .hero-map::after { height: 84px; background: linear-gradient(to bottom, rgba(59, 36, 21, 0), rgba(59, 36, 21, 0.7) 60%, #3B2415); } }

/* Chybové hlášky formuláře */
.form-row.has-error input, .form-row.has-error textarea { border-color: #B33A3A; background: #FFF8F6; }
.form-row.has-error input:focus, .form-row.has-error textarea:focus { outline-color: #B33A3A; }
.field-error {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 2px 0 0; padding: 9px 12px;
  font-size: 0.86rem; line-height: 1.4; font-weight: 500; color: #8E2B2B;
  background: #FBEDEA; border: 1px solid #EBC6BF; border-left: 3px solid #B33A3A;
  border-radius: var(--radius);
  animation: fieldErrorIn 0.22s ease-out;
}
.field-error::before {
  content: "!"; flex: 0 0 auto;
  width: 18px; height: 18px; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800; color: #fff; background: #B33A3A; border-radius: 50%;
}
@keyframes fieldErrorIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .field-error { animation: none; } }

/* Stav odeslání formuláře */
.contact-form .btn:disabled { opacity: 0.75; cursor: default; transform: none; box-shadow: none; }
.contact-form .btn.is-success, .contact-form .btn.is-success:hover, .contact-form .btn.is-success:disabled {
  background: #2E8B57; border-color: #2E8B57; color: #fff; opacity: 1; box-shadow: 0 6px 18px rgba(46, 139, 87, 0.3);
}
.form-note { margin: 10px 0 0; padding: 0; font-size: 0.92rem; line-height: 1.45; }
.form-note:empty { display: none; }
.form-note.is-success { padding: 10px 14px; color: #1F6B40; background: #E8F5EE; border: 1px solid #BFE0CD; border-left: 3px solid #2E8B57; border-radius: var(--radius); animation: fieldErrorIn 0.22s ease-out; }
.form-note.is-error { padding: 10px 14px; color: #8E2B2B; background: #FBEDEA; border: 1px solid #EBC6BF; border-left: 3px solid #B33A3A; border-radius: var(--radius); }
