/* MECNER s.r.o. – sdílené styly */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --c: #f4f0e8; --c2: #ece7db; --stone: #d6d0c3;
  --ink: #111110; --ink2: #1a1a18; --ink3: #242421;
  --y: #f5c800; --y2: #ffdd2e; --red: #e8181a; --muted: #6f6c63;
  --line-d: rgba(255,255,255,.09);
  --fh: 'Bebas Neue', Impact, sans-serif; --fb: 'DM Sans', system-ui, sans-serif;
  --nav: 76px; --pad: clamp(1.25rem, 6vw, 6rem); --max: 1320px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
html { scroll-behavior: smooth; scroll-padding-top: var(--nav); }
body { background: var(--c); color: var(--ink); font-family: var(--fb); line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--y); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -999px; top: 0; background: var(--y); padding: .6rem 1rem; z-index: 2000; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- NAV ---------- */
#nav { position: fixed; inset: 0 0 auto; z-index: 900; height: var(--nav); background: rgba(244,240,232,.9); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid rgba(17,17,16,.12); transition: box-shadow .3s, background .3s; }
#nav.scrolled { box-shadow: 0 6px 30px rgba(0,0,0,.08); background: rgba(244,240,232,.97); }
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; max-width: 1480px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.nav-logo { height: 100%; display: flex; align-items: center; padding: 20px 0; flex-shrink: 0; }
.nav-logo img { height: 100%; width: auto; }
.nav-links { display: flex; list-style: none; gap: .25rem; }
.nav-links a { position: relative; display: block; padding: .6rem .95rem; font-weight: 600; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-links a::after { content: ''; position: absolute; left: .95rem; right: .95rem; bottom: .25rem; height: 2px; background: var(--y); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 1.25rem; }
.nav-tel { font-weight: 700; font-size: .85rem; text-decoration: none; white-space: nowrap; display: flex; align-items: center; gap: .45rem; }
.nav-tel svg { width: 16px; height: 16px; color: var(--ink); }
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: var(--ink); border: none; cursor: pointer; align-items: center; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--y); transition: .3s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mob { position: fixed; inset: var(--nav) 0 0; background: var(--ink); z-index: 899; padding: 2rem var(--pad) 3rem; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .35s var(--ease); }
.mob.open { opacity: 1; visibility: visible; transform: none; }
.mob a { font-family: var(--fh); font-size: 2.6rem; letter-spacing: .03em; line-height: 1.25; color: var(--c); text-decoration: none; border-bottom: 1px solid var(--line-d); padding: .5rem 0; display: flex; justify-content: space-between; align-items: center; }
.mob a::after { content: '→'; font-family: var(--fb); font-size: 1.2rem; color: var(--y); }
.mob a.active { color: var(--y); }
.mob .mob-foot { margin-top: auto; color: rgba(244,240,232,.5); font-size: .9rem; }
.mob .mob-foot a { font-family: var(--fb); font-size: 1.1rem; border: none; color: var(--y); }
.mob .mob-foot a::after { content: none; }

/* ---------- BUTTONS / TYPO ---------- */
.btn { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--fb); font-weight: 700; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 1rem 1.7rem; border: 2px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .2s, color .2s; white-space: nowrap; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-y { background: var(--y); color: var(--ink); border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-y:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); background: var(--y2); }
.on-dark .btn-y, .btn-y.on-dark { border-color: var(--y); box-shadow: 4px 4px 0 rgba(245,200,0,.3); }
.on-dark .btn-y:hover, .btn-y.on-dark:hover { box-shadow: 6px 6px 0 rgba(245,200,0,.4); }
.btn-ink { background: var(--ink); color: var(--c); border-color: var(--ink); }
.btn-ink:hover { background: var(--ink3); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--c); }
.btn-sm { padding: .7rem 1.2rem; font-size: .7rem; }

.eyebrow { display: inline-flex; align-items: center; gap: .75rem; font-weight: 700; font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--y); }
.on-dark .eyebrow { color: rgba(244,240,232,.55); }
.on-y .eyebrow { color: rgba(17,17,16,.6); }
.on-y .eyebrow::before { background: var(--ink); }
.sh { font-family: var(--fh); font-weight: 400; font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: .9; letter-spacing: .01em; margin-bottom: 1.4rem; }
.sh em { font-style: normal; color: var(--y); }
.on-y .sh em { color: var(--ink); }
.sh em.ink { color: var(--ink); background: linear-gradient(transparent 60%, var(--y) 60%, var(--y) 88%, transparent 88%); padding-inline: .04em; }
.lead { font-size: 1.05rem; color: var(--muted); line-height: 1.8; max-width: 46ch; }
.on-dark { color: var(--c); }
.on-dark .lead, .on-dark p { color: rgba(244,240,232,.6); }
.prose p { color: var(--muted); line-height: 1.85; margin-bottom: 1.1rem; max-width: 58ch; }
.on-dark .prose p { color: rgba(244,240,232,.6); }
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head .sh { margin-bottom: 0; }
.sec-head p { max-width: 36ch; }
.ico { width: 44px; height: 44px; display: grid; place-items: center; background: var(--y); color: var(--ink); flex-shrink: 0; }
.ico svg { width: 22px; height: 22px; }

/* ---------- PAGE HEADER (podstránky) ---------- */
.ph { position: relative; margin-top: var(--nav); min-height: clamp(380px, 56vh, 560px); display: flex; align-items: flex-end; background: var(--ink); color: var(--c); overflow: hidden; isolation: isolate; }
.ph-bg { position: absolute; inset: 0; z-index: -2; }
.ph-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: phzoom 14s var(--ease) forwards; }
@keyframes phzoom { to { transform: scale(1); } }
.ph::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(17,17,16,.94) 0%, rgba(17,17,16,.75) 45%, rgba(17,17,16,.25) 100%), linear-gradient(0deg, rgba(17,17,16,.85), transparent 55%); }
.ph::after { content: attr(data-w); position: absolute; right: -.5rem; bottom: -2.2rem; font-family: var(--fh); font-size: clamp(7rem, 18vw, 16rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.12); pointer-events: none; white-space: nowrap; z-index: -1; }
.ph-in { width: 100%; max-width: var(--max); margin-inline: auto; padding: 4rem var(--pad) 3.5rem; display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: end; }
.ph h1 { font-family: var(--fh); font-weight: 400; font-size: clamp(3.6rem, 9vw, 7.5rem); line-height: .86; letter-spacing: .01em; }
.ph h1 em { font-style: normal; color: var(--y); display: block; }
.ph-in > p { color: rgba(244,240,232,.7); font-size: 1.02rem; line-height: 1.8; max-width: 40ch; }
.ph-in > p::before { content: ''; display: block; width: 48px; height: 3px; background: var(--y); margin-bottom: 1.1rem; }
.crumbs { display: flex; gap: .5rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: rgba(244,240,232,.5); margin-bottom: 1.2rem; }
.crumbs a { text-decoration: none; color: rgba(244,240,232,.5); }
.crumbs a:hover { color: var(--y); }
.ybar { height: 6px; background: repeating-linear-gradient(-45deg, var(--y) 0 18px, var(--ink) 18px 36px); }

/* ---------- MARQUEE ---------- */
.marquee { background: var(--y); border-block: 2px solid var(--ink); overflow: hidden; display: flex; user-select: none; }
.marquee-track { display: flex; flex-shrink: 0; gap: 2.5rem; padding: 1rem 1.25rem; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--fh); font-size: 1.7rem; letter-spacing: .04em; white-space: nowrap; display: flex; align-items: center; gap: 2.5rem; }
.marquee span::after { content: '✦'; font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- CTA ---------- */
.cta { background: var(--ink); color: var(--c); position: relative; overflow: hidden; }
.cta::before { content: 'MECNER'; position: absolute; right: -1rem; top: 50%; transform: translateY(-50%); font-family: var(--fh); font-size: clamp(7rem, 20vw, 18rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.07); pointer-events: none; }
.cta-in { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; padding-block: clamp(4rem, 8vw, 6.5rem); }
.cta .sh { margin-bottom: .8rem; }
.cta .sh em { display: block; }
.cta p { color: rgba(244,240,232,.55); }
.cta-side { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; justify-self: end; }
.cta-tel { font-family: var(--fh); font-size: clamp(2rem, 3.4vw, 2.8rem); color: var(--c); text-decoration: none; letter-spacing: .02em; line-height: 1; }
.cta-tel:hover { color: var(--y); }
.cta-tel small { display: block; font-family: var(--fb); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(244,240,232,.4); margin-bottom: .4rem; font-weight: 600; }

/* ---------- FOOTER ---------- */
footer { background: var(--ink2); color: rgba(244,240,232,.55); border-top: 4px solid var(--y); }
.f-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-block: 4rem 3rem; }
.f-logo img { height: 38px; width: auto; margin-bottom: 1.2rem; }
.f-top p { font-size: .88rem; line-height: 1.75; max-width: 32ch; }
.f-top h4 { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--y); margin-bottom: 1rem; font-weight: 700; }
.f-top ul { list-style: none; }
.f-top li { padding: .2rem 0; font-size: .9rem; }
.f-top a { text-decoration: none; color: rgba(244,240,232,.7); transition: color .2s; }
.f-top a:hover { color: var(--y); }
.f-bot { border-top: 1px solid var(--line-d); padding-block: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .76rem; color: rgba(244,240,232,.35); }

/* ---------- MISC ---------- */
#scrolltop { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 50px; height: 50px; background: var(--y); color: var(--ink); border: 2px solid var(--ink); cursor: pointer; display: grid; place-items: center; z-index: 800; opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; box-shadow: 3px 3px 0 var(--ink); }
#scrolltop svg { width: 20px; height: 20px; }
#scrolltop.show { opacity: 1; transform: none; pointer-events: auto; }
#scrolltop:hover { transform: translateY(-3px); }
#cookie { position: fixed; left: 1rem; bottom: 1rem; max-width: 420px; background: var(--ink2); color: var(--c); border: 1px solid var(--line-d); border-top: 3px solid var(--y); padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .9rem; z-index: 1000; transform: translateY(calc(100% + 2rem)); transition: transform .5s var(--ease); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
#cookie.show { transform: none; }
#cookie p { font-size: .82rem; color: rgba(244,240,232,.65); line-height: 1.6; }
#cookie .btn { align-self: flex-start; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform .9s var(--ease); }
.img-zoom:hover img { transform: scale(1.045); }

/* ---------- LIGHTBOX ---------- */
.lb { position: fixed; inset: 0; z-index: 1500; background: rgba(10,10,9,.94); display: none; align-items: center; justify-content: center; padding: 4rem 1rem; }
.lb.open { display: flex; }
.lb img { max-width: min(1400px, 92vw); max-height: 84vh; object-fit: contain; border: 2px solid var(--y); }
.lb button { position: absolute; background: var(--y); border: 2px solid var(--ink); width: 52px; height: 52px; font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; font-weight: 700; }
.lb .lb-x { top: 1rem; right: 1rem; }
.lb .lb-p { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb .lb-n { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb .lb-c { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); color: rgba(244,240,232,.6); font-size: .8rem; letter-spacing: .2em; }

/* ---------- RESPONSIVE (shared) ---------- */
@media (max-width: 1080px) {
  .nav-links, .nav-tel { display: none; }
  .hamburger { display: flex; }
  .f-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .ph-in { grid-template-columns: 1fr; gap: 1.5rem; }
  .cta-in { grid-template-columns: 1fr; }
  .cta-side { justify-self: start; }
}
@media (max-width: 560px) {
  :root { --nav: 66px; }
  .nav-cta .btn { display: none; }
  .f-top { grid-template-columns: 1fr; }
  #cookie { left: .75rem; right: .75rem; bottom: .75rem; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
