/* ==========================================================================
   Mafell Morava – one-page, mobile-first
   Základ = mobil, větší obrazovky přes min-width media queries.
   ========================================================================== */

/* Fonty – self-hosted (Barlow, Barlow Condensed) */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --hero-pad-l: clamp(40px, 7.5vw, 112px); /* levý okraj textu v hero i loga v hlavičce (desktop) */
  --red: #e30613;
  --red-dark: #b8000f;
  --red-ink: #ff5a64;   /* červená pro text na tmavém (≥4.5:1) */
  --ink: #16181b;
  --anthracite: #23262a;
  --graphite: #33373d;
  --steel: #eef0f2;
  --line: #d9dde1;
  --muted: #5f6670;
  --white: #fff;

  --gutter: 1.25rem;
  --max: 1240px;
  --radius: 6px;
  --header-h: 64px;
  --shadow: 0 12px 34px rgba(16, 18, 21, .12);

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 960px) {
  :root { --gutter: 2rem; --header-h: 80px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}
/* Lenis (smooth scroll) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }
html {
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  /* místo pro spodní mobilní lištu */
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
body.menu-open { overflow: hidden; }
@media (min-width: 960px) {
  body { font-size: 17px; padding-bottom: 0; }
}

::selection { background: var(--red); color: var(--white); }
html { scrollbar-color: var(--graphite) var(--steel); accent-color: var(--red); }
input, textarea, select { caret-color: var(--red); }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1;
  margin: 0 0 .45em;
  text-transform: uppercase;
}
h2 { font-size: clamp(2.1rem, 8vw, 3.8rem); letter-spacing: .005em; }
h3 { font-size: 1.35rem; font-weight: 600; text-transform: none; line-height: 1.15; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--red); color: var(--white); padding: 10px 16px;
}
.skip-link:focus { left: 10px; top: 10px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.lead { font-size: 1.1rem; }
@media (min-width: 960px) { .lead { font-size: 1.25rem; } }

/* ---------- Tlačítka (min. 48 px dotyková plocha) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .7em 1.6em;
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: var(--white); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--graphite); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions .btn { flex: 1 1 auto; }
@media (min-width: 640px) { .actions .btn { flex: 0 0 auto; } }

/* ==========================================================================
   Hlavička – průhledná přes hero, po scrollu tmavá
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--header-h);
  color: var(--white);
  transition: background .35s, box-shadow .35s;
}
.site-header.scrolled,
.menu-open .site-header {
  background: rgba(22, 24, 27, .97);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; gap: 10px;
}
@media (min-width: 960px) {
  .header-inner { width: 100%; max-width: none; padding-inline: var(--hero-pad-l) var(--gutter); }
}

.brand {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  margin-right: auto; min-height: 44px;
  color: var(--white); text-decoration: none;
}
.brand img { height: 28px; width: auto; filter: brightness(0) invert(1); }
.brand-region {
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  letter-spacing: .16em; text-transform: uppercase; line-height: 1;
  padding-left: 12px; border-left: 2px solid rgba(255, 255, 255, .35);
}
@media (min-width: 960px) {
  .brand img { height: 36px; }
  .brand-region { font-size: 1.45rem; }
}

.icon-btn {
  position: relative; z-index: 2;
  display: inline-grid; place-items: center;
  width: 48px; height: 48px;
  color: var(--white); background: none; border: 0; border-radius: 50%;
  cursor: pointer;
}
.icon-btn svg { width: 22px; height: 22px; }
.header-call { background: var(--red); width: 44px; height: 44px; }

.nav-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: currentColor;
  transition: transform .3s var(--ease), opacity .3s;
}
.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobilní menu přes celou obrazovku */
.main-nav {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  background: var(--ink);
  opacity: 0; visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.menu-open .main-nav { opacity: 1; visibility: visible; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li {
  opacity: 0; transform: translateY(16px);
  transition: opacity .4s, transform .4s var(--ease);
}
.menu-open .main-nav li { opacity: 1; transform: none; }
.menu-open .main-nav li:nth-child(2) { transition-delay: .05s; }
.menu-open .main-nav li:nth-child(3) { transition-delay: .1s; }
.menu-open .main-nav li:nth-child(4) { transition-delay: .15s; }
.menu-open .main-nav li:nth-child(5) { transition-delay: .2s; }
.main-nav a {
  display: block; padding: .35em 0;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 9vw, 2.6rem);
  text-transform: uppercase; color: var(--white); text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.main-nav a[aria-current="true"] { color: var(--red-ink); }
.nav-contact { margin-top: 2rem; display: grid; gap: .4rem; color: #aab0b7; }
.main-nav .nav-contact a { font-family: var(--font); text-transform: none; border: 0; padding: .15em 0; color: var(--white); font-weight: 600; font-size: 1.1rem; }

.header-cta { display: none; }

@media (min-width: 960px) {
  .main-nav {
    position: static; opacity: 1; visibility: visible;
    flex-direction: row; padding: 0; background: none;
  }
  .main-nav li { opacity: 1; transform: none; }
  .main-nav ul { display: flex; gap: .2rem; }
  .main-nav a {
    position: relative; border: 0; padding: .5em .8em;
    font-size: 1.08rem; font-weight: 600; letter-spacing: .05em;
  }
  .main-nav a::after {
    content: ""; position: absolute; left: .8em; right: .8em; bottom: .2em; height: 2px;
    background: var(--red); transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease);
  }
  .main-nav a:hover::after, .main-nav a[aria-current="true"]::after { transform: scaleX(1); }
  .main-nav a[aria-current="true"] { color: var(--white); }
  .nav-contact, .nav-toggle, .header-call { display: none; }
  .header-cta { display: inline-flex; min-height: 44px; padding: .45em 1.3em; margin-left: .8rem; }
}

/* ==========================================================================
   HERO – fotka přes celou obrazovku jako pozadí, text v kartě z matného skla.
   Mobil: karta přes celé hero. Desktop: karta zabírá skoro levou polovinu.
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: stretch;
  color: var(--white); background: var(--ink);
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-slides { position: absolute; inset: 0; }
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.6s ease, transform 9s cubic-bezier(.15, .5, .3, 1);
}
.hero-slides img.is-active { opacity: 1; transform: scale(1); }
/* hlavní motiv fotek je vpravo – ořez drží pravou část */
.hero-slides img { object-position: 72% 50%; }
/* jemné ztmavení nahoře kvůli hlavičce */
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 15, 17, .6) 0%, rgba(14, 15, 17, 0) 28%);
}

.hero-inner { display: flex; width: 100%; margin-inline: 0; }

/* Karta: tmavé matné sklo (72 %), fotka za ní prosvítá a mění se */
.hero-card {
  width: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 28px) var(--gutter) 32px;
  background: rgba(22, 24, 27, .72);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero-card { background: rgba(22, 24, 27, .9); }
}

.hero h1 {
  font-size: clamp(2.3rem, 9.5vw, 4.4rem);
  line-height: .98; letter-spacing: -.005em;
  margin-bottom: .35em;
}
.hero .lead { color: #d3d8dd; max-width: 34em; margin-bottom: 0; }
.hero .actions { margin-top: 1.4rem; }
.hero .btn-ghost { border-color: rgba(255, 255, 255, .4); background: rgba(14, 15, 17, .45); }
.hero .btn-ghost:hover, .hero .btn-ghost:focus-visible { background: var(--white); border-color: var(--white); color: var(--ink); }

/* důvěra hned pod tlačítky */
.hero-trust {
  list-style: none; margin: 1.2rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
  color: #c3c8ce; font-size: .95rem;
}
.hero-trust li { display: flex; align-items: center; gap: 10px; }
.hero-trust img { height: 18px; width: auto; filter: brightness(0) invert(1); }
.hero-trust li:first-child span { padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .3); color: var(--white); font-weight: 600; }
.hero-trust svg { width: 18px; height: 18px; color: var(--red-ink); flex: none; }

/* Prodáme / Půjčíme / Předvedeme – odkazy na sekce.
   Při najetí: zleva se vysune jemný podklad, červená ryska se prodlouží,
   slovo se posune a vyjede šipka. */
.hero-services {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-services li { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.hero-service {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  min-height: 56px; padding: 8px 4px 8px 0;
  color: var(--white); text-decoration: none;
}
.hero-service::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .06);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.hero-service i {
  display: block; width: 16px; height: 2px; background: var(--red);
  transform-origin: left; transition: transform .45s var(--ease);
}
.hero-service b {
  font-family: var(--font-head); font-weight: 700; font-size: 1.55rem; line-height: 1.1;
  text-transform: uppercase; letter-spacing: .02em;
  transition: transform .45s var(--ease);
}
.hero-service b em { font-style: normal; color: var(--red-ink); }
.hero-service small {
  display: block; font-family: var(--font); font-weight: 500; font-size: .9rem;
  letter-spacing: 0; text-transform: none; color: #aab0b7;
}
.hero-service svg {
  width: 22px; height: 22px; color: var(--red-ink);
  opacity: .45; transform: translateX(-6px);
  transition: opacity .35s, transform .45s var(--ease);
}
.hero-service:hover::before, .hero-service:focus-visible::before { transform: scaleX(1); }
.hero-service:hover i, .hero-service:focus-visible i { transform: scaleX(1.9); }
.hero-service:hover b, .hero-service:focus-visible b { transform: translateX(4px); }
.hero-service:hover svg, .hero-service:focus-visible svg { opacity: 1; transform: none; }
.hero-service:focus-visible { outline: 2px solid var(--red-ink); outline-offset: -2px; }

/* přepínač fotek: vpravo dole na fotce (mobil: nahoře pod hlavičkou) */
.hero-dots {
  position: absolute; right: var(--gutter); top: calc(var(--header-h) + 4px); z-index: 2;
  display: flex; gap: 4px;
}
.hero-dots button {
  width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center;
}
.hero-dots button span {
  display: block; width: 100%; height: 3px; background: rgba(255, 255, 255, .35);
  position: relative; overflow: hidden;
}
.hero-dots button span::after {
  content: ""; position: absolute; inset: 0; background: var(--white);
  transform: scaleX(0); transform-origin: left;
}
.hero-dots button.is-active span::after { animation: dotFill 6s linear forwards; }

@media (min-width: 640px) {
  .hero-card { padding-inline: 40px; }
}
@media (min-width: 960px) {
  /* karta přilepená k levému kraji přes celou výšku; šířka roste jen do 720 px,
     na širších monitorech už přibývá jen fotka */
  .hero-inner { width: clamp(560px, 48vw, 720px); }
  .hero-card {
    padding: calc(var(--header-h) + 36px) clamp(32px, 4.5vw, 72px) 40px var(--hero-pad-l);
    border-right: 1px solid rgba(255, 255, 255, .1);
  }
  .hero-card > * { max-width: 560px; }
  .hero h1 { font-size: clamp(3rem, 4.3vw, 4.3rem); }
  .hero .lead { font-size: 1.2rem; }
  .hero-service { min-height: 58px; }
  /* na šířku: popisek vedle slova */
  .hero-service b { display: flex; align-items: baseline; gap: .7em; font-size: 1.75rem; }
  .hero-service small { font-size: .95rem; }
  .hero-dots { top: auto; bottom: 22px; right: var(--gutter); }
}

@keyframes lineUp { to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes dotFill { to { transform: scaleX(1); } }
@keyframes scrollLine { 0% { top: -40%; } 100% { top: 100%; } }

/* ==========================================================================
   Běžící pás jako pravítko: produkty MAFELL s kategorií
   ========================================================================== */
.marquee {
  position: relative; overflow: hidden;
  background: var(--red); color: var(--white);
  padding: 22px 0 12px;
}
/* stupnice pravítka: krátká ryska každých 8 px, dlouhá každých 40 px */
.marquee::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .9) 0 2px, transparent 2px 40px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 1px, transparent 1px 8px);
  background-size: 100% 14px, 100% 7px;
  background-repeat: no-repeat;
}
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
/* Dvě identické skupiny bez mezery mezi sebou: posun o -50 % = přesně jedna skupina,
   takže smyčka navazuje bez švu. Každá skupina je aspoň široká jako obrazovka,
   takže pás není nikdy (ani zčásti) prázdný. */
.marquee-group { display: flex; flex: none; min-width: 100vw; justify-content: space-around; }
.marquee-group span {
  flex: none; white-space: nowrap;
  display: inline-flex; align-items: baseline; gap: .45em;
  padding: 0 1.6rem; border-left: 2px solid rgba(255, 255, 255, .9);
  font-size: .95rem; font-weight: 500; line-height: 1.1;
}
.marquee-group b {
  font-family: var(--font-head); font-weight: 700; font-size: 1.45rem;
  letter-spacing: .03em; text-transform: uppercase;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (min-width: 960px) { .marquee-group b { font-size: 1.6rem; } .marquee-group span { font-size: 1rem; } }

/* ==========================================================================
   Sekce
   ========================================================================== */
.section { padding-block: clamp(64px, 12vw, 130px); }
.section-alt { background: var(--steel); }
.section-dark { background: var(--anthracite); color: #d7dbe0; }
.section-dark h2, .section-dark h3 { color: var(--white); }

/* ---------- Panely služeb (obrázek + text) ---------- */
.panel { display: grid; }
.panel-media { position: relative; overflow: hidden; }

/* ---------- Scéna služby: fotka v kruhu + vystupující stroj + abstraktní vrstvy ----------
   Každá vrstva má data-speed a jede při scrollu jinou rychlostí (parallax). */
.stage { aspect-ratio: 1 / 1; background: var(--steel); isolation: isolate; }
.section-dark .stage { background: #1d2024; }
.stage > * { position: absolute; }
/* jen jemná grafika: tenké kruhy, drobné tečky, linky */
.stage-circle {
  width: 72%; aspect-ratio: 1; left: 14%; top: 14%;
  border-radius: 50%; z-index: 1;
  border: 1.5px solid rgba(22, 24, 27, .16);
}
.stage-ring {
  width: 46%; aspect-ratio: 1; right: -8%; top: 4%;
  border: 1px solid rgba(22, 24, 27, .12); border-radius: 50%; z-index: 0;
}
.section-dark .stage-circle { border-color: rgba(255, 255, 255, .16); }
.section-dark .stage-ring { border-color: rgba(255, 255, 255, .1); }
.stage-dot { width: 2.4%; aspect-ratio: 1; border-radius: 50%; background: var(--red); left: 12%; bottom: 18%; z-index: 3; }
.stage-dot--soft { width: 1.6%; left: auto; right: 16%; bottom: auto; top: 22%; background: rgba(22, 24, 27, .3); }
.section-dark .stage-dot--soft { background: rgba(255, 255, 255, .35); }
.stage-line { width: 34%; height: 22%; left: 4%; top: 10%; z-index: 0; overflow: visible; }
.stage-line line { stroke: rgba(22, 24, 27, .16); stroke-width: 1; vector-effect: non-scaling-stroke; }
.section-dark .stage-line line { stroke: rgba(255, 255, 255, .14); }

/* stroj: vrstva přes celou scénu, obrázek na středu; parallax hýbe celou vrstvou */
.stage-cut { inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; will-change: transform; }
.stage-route { width: 70%; left: 22%; top: 12%; z-index: 2; overflow: visible; }
.stage-route path { fill: none; stroke: var(--red-ink); stroke-width: 2; stroke-dasharray: 2 12; stroke-linecap: round; opacity: .7; }
.stage-route circle { fill: var(--red-ink); }

/* varianty rozložení, ať každá služba vypadá jinak */
.stage--b .stage-ring { right: auto; left: -10%; top: auto; bottom: 2%; width: 52%; }
.stage--b .stage-dot { left: auto; right: 10%; bottom: 12%; }
.stage--b .stage-dot--soft { right: auto; left: 18%; top: 14%; bottom: auto; }
.stage--b .stage-line { left: auto; right: 4%; top: auto; bottom: 8%; transform-origin: center; }
.stage--c .stage-circle { width: 78%; left: 11%; top: 11%; }
.stage--c .stage-ring { width: 30%; right: 6%; top: auto; bottom: 6%; }
.stage--c .stage-dot { left: auto; right: 12%; bottom: auto; top: 14%; }
.stage--c .stage-dot--soft { right: auto; left: 10%; top: auto; bottom: 22%; }
.stage-float { width: 60%; }
.stage--b .stage-float { width: 58%; }
.stage--c .stage-float { width: 70%; }
/* desktop: sloupec je vyšší než široký – kruh svisle na střed
   (margin v % se počítá ze šířky: -36 % = polovina kruhu o šířce 72 %).
   Stroj sedí na středu viditelné části (pod hlavičkou). */
@media (min-width: 960px) {
  .stage .stage-circle { top: 50%; margin-top: -36%; }
  .stage--c .stage-circle { margin-top: -39%; }
  .stage-cut { padding-top: calc(var(--header-h) * .5); }
}

/* jemné vznášení stroje (vnitřní obrázek; parallax hýbe vnější vrstvou) */
.stage-float {
  filter: drop-shadow(0 26px 26px rgba(0, 0, 0, .3)) drop-shadow(0 4px 6px rgba(0, 0, 0, .18));
  animation: floatTool 6.5s ease-in-out infinite;
}
.stage--b .stage-float { animation-duration: 8s; animation-delay: -2s; }
.stage--c .stage-float { animation-duration: 9s; animation-delay: -4s; }
@keyframes floatTool {
  0%, 100% { transform: translate(0, 0) rotate(-1.6deg); }
  30% { transform: translate(3px, -11px) rotate(.2deg); }
  55% { transform: translate(-1px, -19px) rotate(1.4deg); }
  80% { transform: translate(-4px, -7px) rotate(-.4deg); }
}

.panel-body { padding: 44px var(--gutter) 56px; }
.panel-body .lead { color: var(--muted); }
.section-dark .panel-body .lead { color: #c3c8ce; }

@media (min-width: 960px) {
  .panel { grid-template-columns: 1fr 1fr; min-height: min(88vh, 820px); }
  .panel-media { min-height: 100%; }
  .stage { aspect-ratio: auto; }
  .panel.reverse .panel-media { order: 2; }
  .panel-body {
    align-self: center;
    padding: 80px clamp(40px, 6vw, 100px);
    max-width: 680px;
  }
}


/* ---------- Body služeb: řádky oddělené linkou (stejný jazyk jako kontakty) ---------- */
.points {
  list-style: none; margin: 1.8rem 0 2rem; padding: 0;
  border-top: 1px solid var(--line);
  counter-reset: krok;
}
.points li {
  position: relative;
  display: grid; gap: 2px;
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--line);
}
/* značka: krátká červená ryska, u postupu číslo */
.points li::before {
  content: ""; position: absolute; left: 0; top: 1.45em;
  width: 18px; height: 2px; background: var(--red);
}
.points--steps li { counter-increment: krok; }
.points--steps li::before {
  content: counter(krok); width: auto; height: auto; background: none; top: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; line-height: 1.2; color: var(--red);
}
.points strong {
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .02em;
}
.points span { color: var(--muted); }
.section-dark .points, .section-dark .points li { border-color: rgba(255, 255, 255, .12); }
.section-dark .points strong { color: var(--white); }
.section-dark .points span { color: #c3c8ce; }
.points + .place { margin-top: 0; }
@media (min-width: 960px) {
  .points strong { font-size: 1.4rem; }
}

/* ---------- Úvod ke službám ---------- */
.intro { padding-block: clamp(64px, 12vw, 120px) clamp(32px, 6vw, 64px); }
.intro h2 { font-size: clamp(2.8rem, 13vw, 6rem); line-height: .92; margin: 0; }

.place { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 1.4rem 0 1.8rem; }
.place svg { width: 22px; height: 22px; color: var(--red); flex: none; }

/* ---------- Heslo / proč MAFELL ---------- */
.statement {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--white); background: var(--ink);
  min-height: 70vh; min-height: 70svh;
  display: flex; align-items: center;
}
/* pozadí je o 30 % vyšší než sekce, aby měl parallax kam jet */
.statement > .statement-bg {
  position: absolute; left: 0; right: 0; top: -15%; height: 130%; z-index: -2; display: block;
}
.statement-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.statement::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14, 15, 17, .78), rgba(14, 15, 17, .9));
}
.statement h2 { font-size: clamp(2.8rem, 12vw, 6rem); line-height: .92; max-width: 11ch; }
.statement h2 em { font-style: normal; color: var(--red-ink); display: block; }
.statement .lead { color: #d0d5da; max-width: 560px; margin: 0; }
@media (min-width: 960px) {
  .statement::before { background: linear-gradient(90deg, rgba(14, 15, 17, .92) 0%, rgba(14, 15, 17, .65) 55%, rgba(14, 15, 17, .3) 100%); }
}

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 5fr 6fr; gap: 56px; align-items: start; }
}
/* Kontakty: řádky oddělené linkou, bez karet a stínů – splývají s pozadím sekce */
.quick-actions { display: grid; margin: 1.5rem 0 2rem; border-top: 1px solid var(--line); }
.quick-actions a {
  display: flex; align-items: center; gap: 16px;
  min-height: 68px; padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
  transition: color .25s;
}
.quick-actions a:hover strong { color: var(--red); }
.quick-actions svg { width: 22px; height: 22px; color: var(--red); flex: none; }
.quick-actions small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.3; }
.quick-actions strong { font-size: 1.12rem; transition: color .25s; }

/* ---------- Formulář ---------- */
/* Formulář bez karty: leží přímo na pozadí sekce, bílá jsou jen pole */
.form {
  display: grid; gap: 16px;
  padding: 0;
}
@media (min-width: 640px) {
  .form { grid-template-columns: 1fr 1fr; gap: 18px 20px; }
  .form .full { grid-column: 1 / -1; }
}
.form h3 { font-family: var(--font-head); font-size: 1.7rem; text-transform: uppercase; margin: 0; }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 52px;
  font: inherit; font-size: 16px; /* 16 px = iOS nezoomuje */
  color: var(--ink);
  padding: .7em .9em; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--red); background: var(--white);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, .15);
}
.form textarea { min-height: 130px; resize: vertical; }
.form label small, .form legend small { font-weight: 400; color: var(--muted); }
.choices { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choices legend { font-weight: 600; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.form .chip { position: relative; display: inline-flex; margin: 0; font-weight: 500; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 48px; padding: .5em 1.15em;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: background .2s, border-color .2s, color .2s;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.form ::placeholder { color: #6b7178; opacity: 1; }
.form .btn { width: 100%; }
.form .note { font-size: .85rem; color: var(--muted); margin: 0; }
.form-status { margin: 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { color: #1b7f3b; }

/* ==========================================================================
   Patička: o nás · služby · kontakt (s živým „otevřeno“) · mapka Moravy
   ========================================================================== */
.site-footer { background: var(--ink); color: #9aa1a9; font-size: .98rem; }
.footer-grid {
  display: grid; gap: 40px 32px;
  padding-block: 64px 40px;
}
.footer-brand { display: inline-flex; margin-bottom: 18px; }
.footer-brand img { height: 26px; }
.footer-about p { max-width: 34ch; margin: 0; color: #aab0b7; }
.footer-col h3 {
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--white); margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-col a { color: #c3c8ce; text-decoration: none; transition: color .2s; }
.footer-col ul a { display: inline-block; padding: 6px 0; }
.footer-col a:hover { color: var(--white); }
.footer-col ul a::before {
  content: ""; display: inline-block; width: 0; height: 2px; margin-right: 0; vertical-align: middle;
  background: var(--red); transition: width .3s var(--ease), margin .3s var(--ease);
}
.footer-col ul a:hover::before, .footer-col ul a:focus-visible::before { width: 14px; margin-right: 8px; }

.footer-contact { display: grid; align-content: start; gap: 10px; }
.footer-contact a { display: flex; align-items: center; gap: 10px; }
.footer-contact svg { width: 18px; height: 18px; flex: none; color: var(--red-ink); }
.footer-phone { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; letter-spacing: .02em; color: var(--white) !important; }
.footer-hours { margin: 6px 0 0; display: grid; gap: 4px; font-size: .95rem; }

/* živý stav prodejny */
.open-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--white); }
.open-status[hidden] { display: none; }
.open-status i { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #6b7178; flex: none; }
.open-status.is-open i { background: #3ec46d; }
.open-status.is-open i::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3ec46d;
  animation: openPulse 2s ease-out infinite;
}
@keyframes openPulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3); opacity: 0; } }

/* mapka Moravy */
.footer-map { margin: 0; max-width: 360px; }
.footer-map svg { width: 100%; height: auto; display: block; overflow: visible; }
.map-land { fill: rgba(255, 255, 255, .03); }
.map-edge { fill: none; stroke: rgba(255, 255, 255, .4); stroke-width: 1.5; stroke-linejoin: miter; }
/* vlny: kruhy rostou z Olomouce přes celou Moravu, za obrysem je ořízne clipPath */
.map-waves circle {
  fill: rgba(227, 6, 19, .04); stroke: var(--red); stroke-width: 2.5;
  vector-effect: non-scaling-stroke; /* tloušťka se nemění se zvětšením kruhu */
  transform-box: fill-box; transform-origin: center;
  transform: scale(.02); opacity: 0;
  animation: mapWave 6s cubic-bezier(.25, .6, .4, 1) infinite;
}
.map-waves circle:nth-child(2) { animation-delay: 1.5s; }
.map-waves circle:nth-child(3) { animation-delay: 3s; }
.map-waves circle:nth-child(4) { animation-delay: 4.5s; }
@keyframes mapWave {
  0% { transform: scale(.02); opacity: .8; }
  70% { opacity: .5; }
  100% { transform: scale(1); opacity: .18; }
}
.map-city circle { fill: #c3c8ce; }
.map-city text, .map-home text { font-family: var(--font); font-size: 13px; fill: #c3c8ce; paint-order: stroke; stroke: var(--ink); stroke-width: 3px; }
.map-home circle { fill: var(--red); stroke: var(--white); stroke-width: 2; }
.map-home text { fill: var(--white); font-weight: 600; font-size: 15px; }
.footer-map figcaption {
  margin-top: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: .03em; color: var(--white);
}

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px;
  padding-block: 18px; font-size: .85rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-top { color: #c3c8ce; text-decoration: none; font-family: var(--font-head); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.footer-top:hover { color: var(--white); }
.footer-credit { margin: 0 auto; padding-bottom: 22px; font-size: .8rem; color: #868d95; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.footer-legal a { color: #c3c8ce; }
.footer-legal a:hover { color: var(--white); }

/* ---------- Jednoduché stránky (zásady, 404) ---------- */
.page-plain { padding-bottom: 0; display: flex; flex-direction: column; min-height: 100svh; }
.plain-header { background: var(--ink); }
.plain-header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.plain-back { color: #c3c8ce; text-decoration: none; font-family: var(--font-head); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.plain-back:hover { color: var(--white); }
.doc { max-width: 760px; padding-block: clamp(40px, 8vw, 88px); flex: 1; }
.doc h1 { font-size: clamp(2.4rem, 9vw, 4rem); }
.doc h2 { font-size: clamp(1.5rem, 5vw, 2rem); margin-top: 1.6em; }
.doc .lead { color: var(--muted); }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: .4em; }
.doc li::marker { color: var(--red); }
.doc-updated { margin-top: 2.5em; font-size: .9rem; color: var(--muted); }
.doc-kicker { font-family: var(--font-head); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: .6em; }
.doc-404 { display: flex; flex-direction: column; justify-content: center; }
.doc-404 .actions { max-width: 520px; }
.plain-footer .footer-bottom { border-top: 0; }

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 1.3fr .7fr 1fr 1.1fr; padding-block: 88px 56px; }
  .footer-map { justify-self: end; }
}

/* ==========================================================================
   Spodní akční lišta (jen mobil)
   ========================================================================== */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(22, 24, 27, .97);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .2);
  transform: translateY(110%); transition: transform .4s var(--ease);
}
.show-bar .mobile-bar { transform: none; }
.menu-open .mobile-bar { transform: translateY(110%); }
.mobile-bar .btn { min-height: 50px; padding: .5em 1em; font-size: 1.05rem; }
.mobile-bar .btn-ghost { border-color: rgba(255, 255, 255, .35); }
@media (min-width: 960px) { .mobile-bar { display: none; } }

/* ==========================================================================
   Animace při scrollu
   ========================================================================== */

/* Omezení pohybu: bez zoomu, bez najíždění a bez běžícího pásu.
   Fotky se dál prolínají (jen opacity), stav přepínače zůstává čitelný. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slides img { transform: none; transition: opacity .6s ease; }
  .hero-dots button.is-active span::after { animation: none; transform: scaleX(1); }
  .hero-service::before, .hero-service i, .hero-service b, .hero-service svg { transition: none; }
  .marquee-track { animation: none; }
  [data-speed] { transform: none !important; }
  .stage-float { animation: none; }
  .open-status.is-open i::after { animation: none; }
  .map-waves circle { animation: none; opacity: .35; }
  .map-waves circle:nth-child(1) { transform: scale(.35); }
  .map-waves circle:nth-child(2) { transform: scale(.65); }
  .map-waves circle:nth-child(3) { transform: scale(.95); }
}

/* Typografie: vyvážené nadpisy, bez osiřelých slov; nadpisy panelů nesou váhu místo čísel */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.panel-body h2 { font-size: clamp(2.8rem, 12vw, 5rem); }

/* ==========================================================================
   Mobilní doladění (do 639 px): větší hero nadpis, o kousek větší text,
   formulář skoro přes celou obrazovku.
   ========================================================================== */
@media (max-width: 639px) {
  body { font-size: 17px; }
  .lead { font-size: 1.2rem; }
  h2 { font-size: clamp(2.4rem, 10vw, 3.8rem); }
  h3 { font-size: 1.5rem; }

  .hero .actions .btn { min-height: 56px; font-size: 1.2rem; }

  .marquee-group b { font-size: 1.6rem; }
  .marquee-group span { font-size: 1.02rem; }
  .place { font-size: 1.05em; }
  .quick-actions a { min-height: 74px; }
  .quick-actions strong { font-size: 1.18rem; }
  .quick-actions small { font-size: .88rem; }

  /* Formulář: přes celou šířku a skoro celou výšku obrazovky */
  .form {
    gap: 22px;
    padding: 0 0 8px;
  }
  .form h3 { font-size: 2.3rem; }
  .form label, .choices legend { font-size: 1.08rem; margin-bottom: 8px; }
  .form input, .form select, .form textarea { min-height: 60px; font-size: 18px; padding: .8em 1em; }
  .form textarea { min-height: 190px; }
  .form .chip { flex: 1 1 0; }
  .chip span { width: 100%; justify-content: center; min-height: 54px; padding: .4em .25em; font-size: 1rem; }
  .form .btn { min-height: 62px; font-size: 1.25rem; }
  .form .note { font-size: .95rem; }
}
