/* M&L komaxit – první návrh */

:root {
  --black: #000;
  --panel: #111216;
  --line: #26282e;
  --pink: #e8338a;
  --pink-hi: #f45ea3;
  /* plochy s bílým textem: o kus tmavší, aby měl text kontrast aspoň 4,5 : 1 */
  --pink-fill: #d6297e;
  --pink-fill-hi: #c41f70;
  --cyan: #22b8d8;
  --steel-hi: #e4e7eb;
  --steel-lo: #8a929c;
  --text: #eef0f2;
  --muted: #a2a7b0;
  /* barvy z loga: růžová = hlavní akce, tyrkysová = vedlejší akce, navigace a průběh;
     přechod mezi nimi je prášek ze stříkací pistole v logu, jen na pár místech */
  --powder: linear-gradient(90deg, var(--pink), var(--cyan));

  --steel-grad: linear-gradient(176deg, #fff 0%, #dfe3e7 38%, #8a929c 52%, #c9ced4 64%, #f2f4f6 100%);
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --cut: clamp(24px, 4vw, 64px);
  /* místo, které nahoře zabírá plovoucí lišta */
  --header: 76px;

  /* silné křivky pro UI: rychlý start, měkký dojezd */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
  scrollbar-color: #2b2d34 #000;
}
html.menu-open { overflow: hidden; }
::selection { background: var(--pink-fill); color: #fff; }
a, button, input, textarea, label { touch-action: manipulation; }
a, button { -webkit-tap-highlight-color: rgba(34, 184, 216, .2); }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: "Saira", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #6fd6ec; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

h1, h2, h3 { margin: 0; }
p { margin: 0; }

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

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--pink-fill); color: #fff; padding: 10px 16px;
}
.skip:focus { top: 12px; }
.skip:hover { color: #fff; }

/* Typografie */

.display {
  font-stretch: 68%;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: .005em;
  text-wrap: balance;
}

.steel {
  background: var(--steel-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2.display { font-size: clamp(2.5rem, 5.4vw, 4.25rem); }

h3 {
  font-stretch: 85%;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
}

/* Tlačítka – šikmá plocha jako panely na letáku, ikona sedí ve vlastním šikmém čtverečku.
   Na myši se tlačítko lehce přitáhne ke kurzoru (main.js) a po růžovém přejede odlesk. */

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 12px 28px;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-stretch: 85%;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .5s var(--ease-out);
}
.btn:has(.btn-ico) { padding-right: 9px; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: skewX(-12deg);
  transition: background-color .25s ease, border-color .25s ease;
}
.btn:hover { color: #fff; }
.btn:focus-visible { outline: none; }
.btn:focus-visible::before { outline: 2px solid var(--cyan); outline-offset: 3px; }

.btn-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: rgba(0,0,0,.2);
  transform: skewX(-12deg);
  transition: transform .5s var(--ease-out);
}
.btn-ico .ico-ui { transform: skewX(12deg); transition: transform .5s var(--ease-out); }
.ico-ui {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* odlesk jako na čerstvě nalakovaném dílu; zpátky se vrací bez animace */
.btn-pink::before {
  background: linear-gradient(100deg, transparent 38%, rgba(255,255,255,.3) 50%, transparent 62%) no-repeat var(--pink-fill);
  background-size: 260% 100%;
  background-position: 130% 0;
}
.btn-pink:hover::before {
  background-color: var(--pink-fill-hi);
  background-position: -30% 0;
  transition: background-color .25s ease, background-position .9s var(--ease-out);
}

.btn-steel::before { border: 1.5px solid var(--steel-lo); }
.btn-steel:hover::before { border-color: var(--cyan); background: rgba(34,184,216,.07); }
.btn-steel .btn-ico { background: rgba(34,184,216,.12); color: var(--cyan); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn-ico { transform: skewX(-12deg) translateX(3px); }
  .btn:hover .btn-ico .ico-ui { transform: skewX(12deg) rotate(-8deg) scale(1.08); }
}

.btn-sm { min-height: 42px; padding: 8px 20px; font-size: 1rem; }
.btn-sm:has(.btn-ico) { gap: 12px; padding-right: 6px; }
.btn-sm .btn-ico { width: 30px; height: 30px; }

.ico {
  width: 32px;
  height: 32px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hlavička – plovoucí lišta z kouřového skla; logo lícuje s obsahem stránky */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 12px calc(var(--gutter) / 2) 0;
  pointer-events: none;
}
.header-inner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: calc(var(--wrap) - var(--gutter));
  height: 64px;
  margin-inline: auto;
  padding: 0 10px 0 calc(var(--gutter) / 2);
  pointer-events: auto;
}
/* sklo je na pseudoprvku, aby mobilní menu uvnitř lišty mohlo vyplnit celou obrazovku */
.header-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgba(10, 11, 14, .4);
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  transition: background-color .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.site-header.is-scrolled .header-inner::before {
  background-color: rgba(10, 11, 14, .78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 48px -28px rgba(0,0,0,.95);
}
.brand { display: block; }
/* logo má černé pozadí, takhle splyne se sklem */
.brand img { height: 48px; width: auto; mix-blend-mode: lighten; transition: transform .6s var(--ease-out); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  position: relative;
  padding: 6px 0;
  color: var(--text);
  text-decoration: none;
  font-stretch: 85%;
  font-weight: 600;
  transition: color .3s ease;
}
/* šikmá linka pod odkazem: najede zleva, odjede doprava; u sekce, kterou čtete, zůstane */
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--powder);
  transform: scaleX(0) skewX(-12deg);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav a:not(.btn):hover,
.nav a[aria-current="true"] { color: #fff; }
.nav a:not(.btn):hover::after,
.nav a[aria-current="true"]::after { transform: scaleX(1) skewX(-12deg); transform-origin: left; }
/* na úvodu ještě žádná sekce neběží */
.site-header.is-top .nav a[aria-current="true"]:not(:hover) { color: var(--text); }
.site-header.is-top .nav a[aria-current="true"]:not(:hover)::after { transform: scaleX(0) skewX(-12deg); }

@media (hover: hover) and (pointer: fine) {
  .brand:hover img { transform: scale(1.04); }
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: none; color: var(--text);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 24px; height: 2px;
  margin-inline: auto;
  background: currentColor;
  transition: transform .45s var(--ease-out), background-color .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background-color: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Úvod a postup – úvodní obrazovka při scrollu plynule přejde v cestu kola dílnou.
   Scéna (fotka vpravo, popisky vlevo) zůstane stát, main.js podle scrollu kreslí
   snímky videa a vysouvá popisky kroků. Bez JavaScriptu je postup obyčejná sekce. */

:root {
  /* scéna zabírá celou obrazovku, plovoucí lišta leží přes ni */
  --stage-h: 100svh;
  /* šikmý řez fotky ve stejném sklonu jako tlačítka (12°) */
  --slant: calc(var(--stage-h) * .2126);
}

.hero {
  --split: 54vw;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: var(--split) minmax(0, 1fr);
  min-height: var(--stage-h);
}
.hero-copy {
  align-self: center;
  justify-self: end;
  /* levý okraj textu lícuje s obsahem sekcí pod úvodem */
  width: min(100%, calc(var(--split) - (100vw - var(--wrap)) / 2));
  padding: clamp(32px, 7svh, 88px) clamp(28px, 4vw, 64px) clamp(32px, 7svh, 88px) var(--gutter);
}
.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: .95;
  /* kovový odlesk se posouvá za kurzorem (main.js) */
  background-size: 100% 180%;
  background-position: 50% 50%;
  transition: background-position .8s var(--ease-out);
}
.lead {
  max-width: 30em;
  margin-top: 28px;
  color: var(--muted);
  font-size: 1.1875rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 36px; }

.story {
  --intro: .5;   /* kolik výšky obrazovky trvá přechod z úvodu (jen desktop) */
  --step: .7;    /* kolik výšky obrazovky připadne na jeden krok */
  position: relative;
}
.story-media {
  position: relative;
  overflow: hidden;
  background: var(--panel);
}
.story-poster,
.story-spill,
.story-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* rozostřené pokračování scény vlevo od řezu: kreslí se v osminovém rozlišení,
   zvětšení obstará prohlížeč */
.story-spill { opacity: 0; }
.story-poster { object-fit: cover; }
.story-ai { margin: 10px 0 0; color: var(--muted); font-size: .8125rem; }

.story-title {
  color: var(--cyan);
  font-stretch: 85%;
  font-size: 1.125rem;
}
.story-bars {
  display: grid;
  grid-template-columns: repeat(var(--steps), 1fr);
  gap: 6px;
  max-width: 20rem;
  margin-top: 14px;
}
.story-bars i { height: 3px; overflow: hidden; background: var(--line); }
.story-bars b {
  display: block;
  height: 100%;
  background: var(--pink);
  /* úseky průběhu přecházejí z růžové do tyrkysové jako prášek v logu */
  background: color-mix(in oklab, var(--cyan) calc(var(--k, 0) * 100%), var(--pink));
  transform: scaleX(0);
  transform-origin: left;
}
.story-steps { margin: 0; padding: 0; list-style: none; }
.story-step h3 {
  font-size: clamp(2.25rem, 3.8vw, 3.5rem);
  line-height: 1;
}
.story-step p {
  max-width: 24em;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.125rem;
}

/* bez JavaScriptu: fotka a kroky pod sebou jako běžná sekce */
html:not(.js) .story { padding-block: var(--section); }
html:not(.js) .story-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
html:not(.js) .story-media { aspect-ratio: 1; }
html:not(.js) .story-bars { display: none; }
html:not(.js) .story-step { margin-top: 32px; }

/* s JavaScriptem: scéna stojí, dokud kolo neprojde všemi kroky */
.js .story-stage {
  position: sticky;
  top: 0;
  height: var(--stage-h);
  overflow: hidden;
}
/* okénko, kterým popisky projíždějí; nahoře a dole měkce mizí */
.js .story-steps {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 1.5rem, #000 calc(100% - 2.5rem), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 1.5rem, #000 calc(100% - 2.5rem), transparent);
}
.js .story-step {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  padding-top: 1.75rem;
  opacity: 0;
  transition: opacity .35s var(--ease-out);
}
/* popisek, který skončil, odletí nahoru; ten, který teprve přijde, čeká dole */
.js .story-step > * {
  transform: translate3d(0, -32px, 0);
  transition: transform .45s var(--ease-out);
}
.js .story-step.is-next > * { transform: translate3d(0, 72px, 0); }
.js .story-step.is-active { opacity: 1; transition: opacity .5s var(--ease-out) .1s; }
.js .story-step.is-active > * { transform: none; transition: transform .8s var(--ease-out) .1s; }
.js .story-step.is-active > p { transition-delay: .18s; }
.js .story.no-anim .story-step,
.js .story.no-anim .story-step > * { transition: none; }

@media (min-width: 861px) {
  /* úvod leží přes začátek scény, při scrollu odjede a zůstane jen fotka */
  .js .hero {
    height: var(--stage-h);
    margin-bottom: calc(var(--stage-h) * -1);
  }
  .js .story { height: calc(var(--stage-h) * (1 + var(--intro) + var(--steps) * var(--step))); }
  .js .story-anchor {
    position: absolute;
    top: calc(var(--stage-h) * (var(--intro) + var(--step) * .3));
  }
  .js .story-media {
    position: absolute;
    inset: 0;
    background: none;
  }
  /* šikmý řez kreslí main.js do canvasu; fotka před jeho spuštěním má stejný výřez */
  .js .story-poster {
    left: 54%;
    width: 46%;
    clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
  }
  .js .story-text {
    --left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
    position: absolute;
    top: 0; bottom: 0;
    left: var(--left);
    /* fotka se v příběhu přisune až k pravému okraji textu (main.js) */
    width: min(28rem, calc(50% - var(--left)));
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .js .story-title,
  .js .story-bars,
  .js .story-ai { opacity: 0; }
  .js .story-steps { height: 17rem; margin-top: clamp(4px, 1.5svh, 16px); }
}

/* Sekce */

.section { padding-block: var(--section); }

/* šedé panely se šikmými hranami jako na letáku */
.section.section-panel {
  padding-block: calc(var(--section) + var(--cut));
  background: var(--panel);
  clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}

.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { max-width: 40em; margin-top: 20px; color: var(--muted); }

/* Služby */

.services-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.services-intro > p { margin-top: 24px; max-width: 30em; color: var(--muted); }
@media (min-width: 861px) {
  /* nadpis a „Co u nás nalakujete“ zůstanou při scrollu vedle seznamu služeb */
  .services-intro { position: sticky; top: calc(var(--header) + 40px); }
}

.fits { margin-top: 44px; }
.fits h3 { font-size: 1.125rem; }
.fits ul { margin: 12px 0 0; padding-left: 1.1em; list-style: square; }
.fits li { padding: 3px 0; }
.fits li::marker { color: var(--steel-lo); }
.fits-note { margin-top: 12px; font-weight: 600; }

.services { margin: 0; padding: 0; list-style: none; }
.services li {
  position: relative;
  isolation: isolate;
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.services li:first-child { padding-top: 4px; border-top: 0; }
.services .ico { margin-top: 2px; color: var(--cyan); transition: transform .5s var(--ease-out), color .3s ease; }
@media (hover: hover) and (pointer: fine) {
  .services li:hover .ico { transform: translateX(4px); }
}
.services p { margin-top: 6px; color: var(--muted); max-width: 36em; }

/* Realizace */

/* sloupcová galerie – nové fotky od klienta se samy zařadí, bez děr v mřížce */
.gallery {
  columns: 3;
  column-gap: 20px;
}
.g-item {
  margin: 0 0 28px;
  break-inside: avoid;
}
.g-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  overflow: hidden;
  cursor: zoom-in;
}
.g-open img { width: 100%; transition: transform 1.1s var(--ease-out), filter .6s ease; }
@media (hover: hover) and (pointer: fine) {
  .g-item figcaption strong { transition: color .3s ease; }
  .g-item:hover figcaption strong { color: var(--cyan); }
  .g-open:hover img { transform: scale(1.045); filter: brightness(1.08); }
}
.g-item figcaption {
  padding-top: 12px;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.4;
}
.g-item figcaption strong {
  display: block;
  color: var(--text);
  font-stretch: 85%;
  font-size: 1.0625rem;
}

/* Pruh s výzvou – oblak prášku z úvodní fotky FB */

.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(88px, 11vw, 150px);
  background: var(--black);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0 -4% 0 34%;
  z-index: -1;
  background: url("../img/prasek.jpg") center / cover;
  filter: blur(5px) saturate(1.25);
  /* měkké okraje na všech stranách, aby oblak nikde neměl ostrou hranu */
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
  mask-image: radial-gradient(closest-side, #000 55%, transparent);
}
.cta-heading {
  max-width: 8.5em;
  color: #fff;
  font-size: clamp(2.75rem, 6.4vw, 5.25rem);
}
.cta-text {
  max-width: 28em;
  margin-top: 24px;
  font-size: 1.1875rem;
}

.btn-light { color: var(--black); }
.btn-light:hover { color: var(--black); }
.btn-light::before { background: #fff; }
.btn-light .btn-ico { background: rgba(0,0,0,.08); }
.btn-light:hover::before { background: var(--steel-hi); }

/* Kontakt */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-info > p { margin-top: 24px; max-width: 30em; color: var(--muted); }

.phone {
  display: inline-block;
  margin-top: 28px;
  color: var(--pink-hi);
  font-stretch: 75%;
  font-weight: 800;
  font-style: italic;
  font-size: clamp(2.25rem, 4.6vw, 3.25rem);
  line-height: 1;
  text-decoration: none;
}
.phone:hover { color: #ff86bd; }
.phone-person { margin-top: 6px; color: var(--text); font-weight: 600; }

.contact-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 28px;
  margin: 32px 0 0;
}
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; }

.map {
  margin-top: 36px;
  aspect-ratio: 16 / 10;
  background: var(--panel);
  clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 0 100%);
}
/* náhled místo mapy; Mapy Google se načtou až po kliknutí */
.map-load {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100%;
  color: var(--text);
  text-decoration: none;
  background: radial-gradient(120% 90% at 50% 40%, rgba(34,184,216,.14), transparent 70%), var(--panel);
  transition: background-color .3s ease;
}
.map-load .ico-ui { width: 32px; height: 32px; color: var(--cyan); transition: transform .5s var(--ease-out); }
.map-load span { display: grid; gap: 2px; color: var(--muted); font-size: .875rem; }
.map-load strong { color: var(--text); font-stretch: 85%; font-size: 1.0625rem; }
.map-load:hover { color: var(--text); }
@media (hover: hover) and (pointer: fine) {
  .map-load:hover .ico-ui { transform: translateY(-3px); }
}
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(.9) contrast(.9);
}

.form {
  padding: clamp(24px, 4vw, 44px);
  background: var(--black);
}
.form-hint { margin: 8px 0 24px; color: var(--muted); }
.field-note { color: var(--muted); font-size: .875rem; }
.form-privacy { margin-top: 16px; color: var(--muted); font-size: .875rem; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field label { font-weight: 600; font-size: .9375rem; }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #3a3d45;
  border-radius: 0;
  background: #000;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.field input:focus,
.field textarea:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 1px var(--cyan); }
.field textarea { resize: vertical; }
.field input[type="file"] { padding: 10px; color: var(--muted); }
.field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 6px 14px;
  border: 1px solid var(--steel-lo);
  background: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.form .btn { margin-top: 8px; }
.hp { position: absolute; left: -9999px; }
.files { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.files legend { margin-bottom: 6px; padding: 0; font-weight: 600; font-size: .9375rem; }
.field-note.is-error { color: var(--pink); }
.form-error { margin-top: 16px; color: var(--pink); }

/* Poděkování po odeslání: fajfka se dokreslí jako odpověď na odeslání */
.form-done { align-self: start; outline: none; }
.form-done-ico {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form-done-ico path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-check .6s var(--ease-out) forwards; }
.form-done-ico path + path { animation-delay: .35s; }
@keyframes draw-check { to { stroke-dashoffset: 0; } }
.form-done h3 { margin-top: 20px; font-size: clamp(2.25rem, 4vw, 3rem); }
.form-done p { max-width: 40ch; margin-top: 14px; color: var(--muted); }
.form-done .actions { margin-top: 28px; }

/* Obsah při scrollu jemně vyjede zespodu (main.js přidá is-in), úvodní text při načtení */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .hero-copy > * {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
}
.js.is-loaded .hero-copy > * { opacity: 1; transform: none; }
.js.is-loaded .hero-copy > :nth-child(2) { transition-delay: .08s; }
.js.is-loaded .hero-copy > :nth-child(3) { transition-delay: .16s; }

/* Patička – tečka za stránkou: kontakty, odkazy a údaje firmy */

.site-footer {
  position: relative;
  padding-block: clamp(56px, 7vw, 88px) 32px;
  color: var(--muted);
  font-size: .9375rem;
}
/* tenká linka v barvách prášku z loga */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--powder);
  opacity: .7;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px clamp(24px, 4vw, 56px);
}
.footer-brand img { width: 140px; mix-blend-mode: lighten; }
.footer-brand p { margin-top: 16px; max-width: 18em; }
.footer-col h2 {
  margin-bottom: 14px;
  color: var(--text);
  font-stretch: 85%;
  font-size: 1rem;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { color: var(--muted); text-decoration: none; transition: color .2s ease; }
.footer-col a:hover { color: var(--cyan); }
.footer-phone { color: var(--text) !important; font-weight: 700; font-stretch: 85%; font-size: 1.125rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .875rem;
}
.footer-bottom p:first-child { max-width: 62ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--cyan); }

/* Děkovací stránka po odeslání poptávky */

.thanks {
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding-block: calc(var(--header) + 48px) 64px;
}
.thanks h1 { font-size: clamp(3rem, 7vw, 5.5rem); line-height: .95; }

/* Zásady ochrany osobních údajů */

.legal { padding-block: calc(var(--header) + 48px) 80px; }
.legal h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
.legal-date { margin-top: 12px; color: var(--muted); font-size: .875rem; }
.legal h2 { margin: 40px 0 12px; font-stretch: 85%; font-size: 1.375rem; line-height: 1.2; }
.legal p,
.legal li { max-width: 68ch; color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 0 0 12px; padding-left: 1.2em; }
.legal li + li { margin-top: 8px; }
.legal strong { color: var(--text); }
.legal a { color: var(--cyan); }
.legal .actions { margin-top: 48px; }

/* Lightbox */

.lightbox {
  max-width: min(1100px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: #000;
  color: var(--text);
}
.lightbox::backdrop { background: rgba(0,0,0,.88); }
.lightbox { overscroll-behavior: contain; }
/* šipky na předchozí a další fotku (taky klávesami ← →) */
.lightbox-nav {
  position: absolute;
  top: calc(50% - 32px);
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 0;
  background: rgba(0,0,0,.7);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s ease;
}
.lightbox-nav:hover { background: var(--pink-fill); }
.lightbox-nav .ico-ui { width: 22px; height: 22px; }
.lightbox-prev { left: 8px; }
.lightbox-prev .ico-ui { transform: rotate(135deg); }
.lightbox-next { right: 8px; }
.lightbox-next .ico-ui { transform: rotate(-45deg); }
.lightbox-nav[hidden] { display: none; }
.lightbox[open] { animation: lb-in .18s ease-out; }
.lightbox img { max-height: calc(92vh - 64px); width: auto; margin-inline: auto; }
.lightbox-caption { padding: 14px 64px 16px 16px; color: var(--muted); }
.lightbox-caption strong { color: var(--text); }
.lightbox-close {
  position: absolute;
  top: 8px; right: 8px;
  width: 44px; height: 44px;
  border: 0;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
@keyframes lb-in { from { opacity: 0; transform: scale(.98); } }

/* Mobilní lišta s telefonem */

.call-bar { display: none; }

/* Responzivita */

@media (max-width: 1000px) {
  .gallery { columns: 2; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; position: relative; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: -2;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 96px var(--gutter) 40px;
    background: var(--black);
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s var(--ease-out), visibility 0s .45s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease-out); }
  .nav a:not(.btn) {
    padding: 4px 0;
    font-stretch: 68%;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    font-size: clamp(2.5rem, 11vw, 3.5rem);
    line-height: 1.1;
  }
  .nav a:not(.btn)::after { bottom: 8px; height: 3px; }
  .nav .btn { margin-top: 32px; }
  /* odkazy vyjedou jeden po druhém */
  .nav > * {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
    transition: opacity .3s ease, transform .3s ease;
  }
  .nav.is-open > * { opacity: 1; transform: none; transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
  .nav.is-open > :nth-child(1) { transition-delay: .08s; }
  .nav.is-open > :nth-child(2) { transition-delay: .14s; }
  .nav.is-open > :nth-child(3) { transition-delay: .2s; }
  .nav.is-open > :nth-child(4) { transition-delay: .26s; }
  .nav.is-open > :nth-child(5) { transition-delay: .32s; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { justify-self: stretch; width: auto; padding: calc(var(--header) + 36px) var(--gutter) 44px; }

  .story { --intro: 0; --step: .55; }
  html:not(.js) .story-stage { grid-template-columns: 1fr; }
  .story-media { clip-path: polygon(0 9%, 100% 0, 100% 100%, 0 100%); }
  .js .story { height: calc(var(--stage-h) * (1 + var(--steps) * var(--step))); }
  .js .story-anchor { position: absolute; top: calc(var(--stage-h) * var(--step) * .3); }
  .js .story-stage { display: flex; flex-direction: column; padding-top: var(--header); }
  .js .story-media { flex: none; height: min(100vw, 46svh); }
  .js .story-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    /* dole místo pro lištu Zavolat */
    padding: 20px var(--gutter) 88px;
  }
  .js .story-steps { flex: 1; }
  .story-step h3 { font-size: clamp(1.875rem, 8vw, 2.5rem); }
  .story-step p { margin-top: 12px; font-size: 1.0625rem; }

  .services-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band::before { inset: 0; opacity: .4; -webkit-mask-image: none; mask-image: none; }
  .cta-heading, .cta-text { text-shadow: 0 2px 16px rgba(0,0,0,.8); }

  .call-bar {
    position: fixed;
    left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    background: var(--pink-fill);
    color: #fff;
    font-stretch: 85%;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(0,0,0,.6);
  }
  .call-bar:hover { color: #fff; }
  .site-footer { padding-bottom: 96px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .brand img { height: 40px; }
  .gallery { columns: 1; }
  .field-row { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; gap: 2px; }
  .contact-list dd { margin-bottom: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lightbox[open] { animation: none; }
  .form-done-ico path { animation: none; stroke-dashoffset: 0; }
  .js [data-reveal],
  .js .hero-copy > *,
  .js .story-step > *,
  .nav > *,
  .g-open img { transform: none !important; }
}
