/* Styly pro web Vojtěch Hrzina, barvy se mění nahoře v :root. */

:root {
  /* Barvy pro světlé sekce. */
  --bg: #ededea;
  --surface: #ffffff;
  --text: #1b1a18;
  --muted: #5c5852;
  --line: #d3d0ca;
  --bronze: #8f5b2c;

  /* Tmavé sekce, ty zůstávají stejné i v tmavém režimu. */
  --ink-bg: #141311;
  --ink-surface: #1d1c1a;
  --ink-raise: #262422;
  --ink-line: #33302c;
  --ink-text: #efeeea;
  --ink-muted: #aaa59e;
  --ink-bronze: #cf9865;

  --btn-bg: #cf9865;
  --btn-hover: #e0ae80;
  --btn-text: #16130f;
  --led: #ffdeab;
  --led-rgb: 255, 182, 96;
  --steel: linear-gradient(180deg, #ffffff 0%, #e2dfd9 38%, #96918a 52%, #d9d6d0 66%, #b9b4ad 100%);

  --radius: 2px;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1c1a;
    --surface: #262422;
    --text: #ecebe7;
    --muted: #a39f98;
    --line: #383430;
    --bronze: #cf9865;
    color-scheme: dark;
  }
}

/* Základní nastavení stránky. */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(207, 152, 101, 0.2);
}
body:has(.lightbox:target) { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, figure { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font);
  font-stretch: 125%;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); }

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

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

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  background: var(--btn-bg); color: var(--btn-text);
  padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Kovový efekt na nadpisu a telefonu. */
.steel { color: var(--ink-text); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .steel {
    background: var(--steel);
    -webkit-background-clip: text; background-clip: text;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
    color: transparent;
  }
}

/* Hlavička, drží se nahoře při scrollování. */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 19, 17, 0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink-text);
}
.topbar-inner {
  max-width: calc(var(--wrap) + 80px);
  margin-inline: auto; padding-inline: var(--pad);
  height: var(--header-h);
  display: flex; align-items: center; gap: 36px;
}
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand img { height: 54px; width: auto; }
.brand-name {
  font-stretch: 125%; font-weight: 500; font-size: 0.88rem;
  letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap;
  color: #dcd9d3;
}
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a {
  position: relative;
  text-decoration: none; font-size: 0.95rem; color: var(--ink-muted);
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: color 0.2s;
}
@media (hover: hover) {
  .nav a:hover { color: var(--ink-text); }
}
/* Podtržení odkazu v menu se po najetí myší "rozsvítí" zleva doprava. */
@media (hover: hover) and (min-width: 1081px) {
  .nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: var(--ink-bronze); box-shadow: 0 0 8px rgba(var(--led-rgb), 0.6);
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.35s var(--ease);
  }
  .nav a:hover::after { transform: scaleX(1); transform-origin: left; }
}
.top-phone {
  font-stretch: 118%; font-weight: 600; font-size: 1rem; white-space: nowrap;
  text-decoration: none; color: var(--ink-bronze);
  padding: 10px 16px; border: 1px solid rgba(207, 152, 101, 0.55); border-radius: var(--radius);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.3s;
}
.top-phone-call { display: none; }
.top-phone:hover {
  background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg);
  box-shadow: 0 0 22px -4px rgba(var(--led-rgb), 0.6);
}

.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-btn {
  display: none; cursor: pointer; font-weight: 600; font-size: 0.95rem;
  padding: 9px 14px; border: 1px solid var(--ink-line); border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s;
}
.menu-toggle:checked + .menu-btn { font-size: 0; border-color: var(--ink-bronze); color: var(--ink-bronze); }
.menu-toggle:checked + .menu-btn::after { content: "Zavřít"; font-size: 0.95rem; }
.menu-toggle:focus-visible + .menu-btn { outline: 2px solid var(--ink-bronze); outline-offset: 3px; }

.led {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--led) 12%, var(--led) 88%, transparent);
  box-shadow: 0 0 10px 1px rgba(var(--led-rgb), 0.75), 0 4px 30px 4px rgba(var(--led-rgb), 0.3);
  animation: led-on 1.6s linear 0.3s both;
}
@keyframes led-on {
  0% { opacity: 0.1; } 6% { opacity: 1; } 10% { opacity: 0.15; }
  17% { opacity: 0.9; } 21% { opacity: 0.25; } 30%, 100% { opacity: 1; }
}

/* Úvodní část s fotkami přes celou šířku. */
.hero {
  position: relative; isolation: isolate;
  min-height: min(calc(100svh - var(--header-h)), 900px);
  display: flex; align-items: flex-end;
  background: var(--ink-bg); color: var(--ink-text);
  overflow: hidden;
}
.hero-photos {
  position: absolute; inset: 0; z-index: -2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px;
}
/* Fotky se rozsvěcují postupně zleva doprava, jako světla podél ulice. */
.hero-photos img {
  width: 100%; height: 100%; object-fit: cover;
  animation: lights-up 1.3s ease-out 0.5s both;
}
.hero-photos img:nth-child(2) { animation-delay: 0.7s; }
.hero-photos img:nth-child(3) { animation-delay: 0.9s; }
.hero-photos img:nth-child(4) { animation-delay: 1.1s; }
@keyframes lights-up {
  0% { filter: brightness(0.3) saturate(0.5); }
  100% { filter: brightness(1) saturate(1); }
}
.hero::before { /* Světlo od LED pásku, bliká společně s ním. */
  content: ""; position: absolute; inset: 0 0 auto; height: 55%; z-index: -1;
  background: radial-gradient(ellipse 70% 100% at 50% 0, rgba(var(--led-rgb), 0.22), transparent 70%);
  pointer-events: none;
  animation: led-on 1.6s linear 0.3s both;
}
.hero::after { /* Ztmaví fotky, aby byl text čitelný. */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--ink-bg) 4%, rgba(20, 19, 17, 0.88) 34%, rgba(20, 19, 17, 0.35) 68%, rgba(20, 19, 17, 0.2)),
    linear-gradient(to right, rgba(20, 19, 17, 0.75), transparent 62%);
}
.hero-content {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: 120px var(--pad) clamp(48px, 7vw, 88px);
}
.hero h1 {
  font-size: clamp(2.3rem, 6.1vw, 5.6rem);
  font-weight: 800; line-height: 1.02; letter-spacing: 0.004em;
  text-transform: uppercase;
  max-width: 13ch;
}
.hero-bottom {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 28px 48px; margin-top: 36px;
}
.lead { font-size: 1.2rem; line-height: 1.55; color: #cfcbc5; max-width: 44ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.tagline {
  display: flex; align-items: center; gap: 18px;
  margin-top: clamp(40px, 6vw, 64px);
  font-stretch: 125%; font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-bronze);
}
.tagline::before, .tagline::after { content: ""; height: 1px; width: 56px; background: currentColor; opacity: 0.6; }
.tagline span + span::before { content: "•"; margin-right: 18px; opacity: 0.7; }

/* Nástup textu v úvodu a odlesk přes ocelový nadpis. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: rise 1s var(--ease) 0.15s both; }
  .hero .lead { animation: rise 0.9s var(--ease) 0.35s both; }
  .hero .actions { animation: rise 0.9s var(--ease) 0.5s both; }
  .hero .tagline { animation: rise 0.9s var(--ease) 0.7s both; }
  @supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero h1 .steel {
      background:
        linear-gradient(110deg, transparent 44%, rgba(255, 255, 255, 0.95) 50%, transparent 56%) no-repeat,
        var(--steel);
      background-size: 300% 100%, 100% 100%;
      background-position: 150% 0, 0 0;
      -webkit-background-clip: text; background-clip: text;
      animation: glint 1.6s ease-in-out 1.3s both;
    }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes glint {
  from { background-position: 150% 0, 0 0; }
  to { background-position: -50% 0, 0 0; }
}

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 26px;
  font: 600 1rem/1 var(--font); font-stretch: 112%;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.35s, transform 0.25s var(--ease);
}
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { border-color: rgba(239, 238, 234, 0.4); color: var(--ink-text); }
.btn-ghost:hover { border-color: var(--ink-text); background: rgba(239, 238, 234, 0.08); }
@media (hover: hover) {
  /* Hlavní tlačítko po najetí myší lehce povyskočí, zazáří a přejede po něm odlesk. */
  .btn-primary::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
    transform: translateX(-110%);
  }
  .btn-primary:hover::after { transform: translateX(110%); transition: transform 0.7s var(--ease); }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -12px rgba(var(--led-rgb), 0.85); }
  .btn:active { transform: translateY(0); }
}

/* Společné odsazení sekcí. */
.section { padding-block: clamp(84px, 11vw, 144px); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px 64px; align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 44ch; }

/* Seznam služeb, po najetí myší se mění fotka vpravo. */
.services {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: clamp(32px, 6vw, 88px); align-items: start;
}
.svc-list { border-bottom: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 8px 40px; align-items: baseline;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.svc-thumb { display: none; }
.svc h3 {
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  transition: color 0.25s, transform 0.25s;
}
.svc p { color: var(--muted); }
@media (hover: hover) {
  .svc:hover h3,
  .svc-list:not(:hover) .svc:first-child h3 { color: var(--bronze); }
  .svc:hover h3 { transform: translateX(10px); }
}

.svc-preview {
  position: sticky; top: calc(var(--header-h) + 32px);
  aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius);
  background: var(--ink-bg);
}
.svc-preview img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 0.45s ease, transform 0.9s var(--ease);
}
.svc-preview img:first-child { opacity: 1; transform: none; }
.services:has(.svc:hover) .svc-preview img:first-child { opacity: 0; transform: scale(1.06); }
.services:has(.svc:nth-child(1):hover) .svc-preview img:nth-child(1),
.services:has(.svc:nth-child(2):hover) .svc-preview img:nth-child(2),
.services:has(.svc:nth-child(3):hover) .svc-preview img:nth-child(3),
.services:has(.svc:nth-child(4):hover) .svc-preview img:nth-child(4),
.services:has(.svc:nth-child(5):hover) .svc-preview img:nth-child(5),
.services:has(.svc:nth-child(6):hover) .svc-preview img:nth-child(6) { opacity: 1; transform: none; }
.svc-preview::after { /* LED linka pod náhledem. */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--led); box-shadow: 0 0 14px 2px rgba(var(--led-rgb), 0.7);
}

/* Tmavá sekce s detaily a materiály. */
.detail { background: var(--ink-bg); color: var(--ink-text); }
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: clamp(24px, 3vw, 40px); align-items: start;
}
.detail h2 { margin-bottom: 24px; }
.detail-text > p { color: var(--ink-muted); max-width: 42ch; }
.spec { margin: 40px 0 0; border-top: 1px solid var(--ink-line); }
.spec div {
  display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--ink-line);
}
.spec dt { color: var(--ink-bronze); font-stretch: 112%; font-size: 0.95rem; }
.spec dd { margin: 0; color: var(--ink-text); font-size: 0.98rem; }
.detail-photo { overflow: clip; } /* clip, ne hidden: hidden by rozbilo animace při scrollu */
.detail-photo img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius);
  transition: transform 0.8s var(--ease);
}
@media (hover: hover) {
  .detail-photo:hover img { transform: scale(1.04); }
}
.detail-photo figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--ink-muted); }

/* Postup ve čtyřech krocích. */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.step { border-top: 1px solid var(--line); padding-top: 22px; }
.step-num {
  display: block; margin-bottom: 26px;
  font-stretch: 125%; font-weight: 300; font-size: clamp(3.2rem, 5vw, 4.6rem); line-height: 0.9;
  color: var(--bronze);
}
.step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { color: var(--muted); }

/* Galerie realizací, filtr funguje bez JavaScriptu. */
.realizace { padding-top: 0; }
.filter-input { position: absolute; opacity: 0; pointer-events: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters label {
  cursor: pointer; user-select: none;
  padding: 10px 18px; font-size: 0.95rem; font-weight: 500;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.filters label:hover { border-color: var(--text); }
.filters small { margin-left: 6px; color: var(--muted); font-size: 0.82em; }

#f-vse:checked ~ .filters [for="f-vse"],
#f-zab:checked ~ .filters [for="f-zab"],
#f-schody:checked ~ .filters [for="f-schody"],
#f-prist:checked ~ .filters [for="f-prist"],
#f-terasy:checked ~ .filters [for="f-terasy"],
#f-dilna:checked ~ .filters [for="f-dilna"] { background: var(--text); color: var(--bg); border-color: var(--text); }
#f-vse:checked ~ .filters [for="f-vse"] small,
#f-zab:checked ~ .filters [for="f-zab"] small,
#f-schody:checked ~ .filters [for="f-schody"] small,
#f-prist:checked ~ .filters [for="f-prist"] small,
#f-terasy:checked ~ .filters [for="f-terasy"] small,
#f-dilna:checked ~ .filters [for="f-dilna"] small { color: inherit; opacity: 0.65; }
#f-vse:focus-visible ~ .filters [for="f-vse"],
#f-zab:focus-visible ~ .filters [for="f-zab"],
#f-schody:focus-visible ~ .filters [for="f-schody"],
#f-prist:focus-visible ~ .filters [for="f-prist"],
#f-terasy:focus-visible ~ .filters [for="f-terasy"],
#f-dilna:focus-visible ~ .filters [for="f-dilna"] { outline: 2px solid var(--bronze); outline-offset: 3px; }

#f-zab:checked ~ .gallery li:not([data-cat~="zab"]),
#f-schody:checked ~ .gallery li:not([data-cat~="schody"]),
#f-prist:checked ~ .gallery li:not([data-cat~="prist"]),
#f-terasy:checked ~ .gallery li:not([data-cat~="terasy"]),
#f-dilna:checked ~ .gallery li:not([data-cat~="dilna"]) { display: none; }

.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense; gap: 6px;
}
.gallery li { overflow: hidden; }
.gallery li.big { grid-column: span 2; grid-row: span 2; }
.gallery a { display: block; height: 100%; position: relative; text-decoration: none; background: var(--ink-bg); }
.gallery figure { height: 100%; }
.gallery img {
  width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.4s;
}
.gallery figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 48px 16px 14px;
  font-size: 0.875rem; line-height: 1.35; color: #f4f2ee;
  background: linear-gradient(transparent, rgba(14, 13, 12, 0.85));
}
.gallery a::after { /* LED linka, rozsvítí se po najetí myší. */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--led); box-shadow: 0 0 12px 1px rgba(var(--led-rgb), 0.8);
  transform: scaleX(0); transition: transform 0.5s var(--ease);
}
.gallery a:focus-visible { outline-offset: -2px; }
.gallery a:focus-visible::after { transform: scaleX(1); }
@media (hover: hover) {
  .gallery a:hover img { transform: scale(1.05); filter: brightness(1.06); }
  .gallery a:hover::after { transform: scaleX(1); }
}

.more-btn {
  display: none; cursor: pointer; justify-content: center; align-items: center;
  min-height: 52px; margin-top: 12px;
  font-weight: 600; border: 1px solid var(--line); border-radius: var(--radius);
}
#vice-fotek:focus-visible ~ .more-btn { outline: 2px solid var(--bronze); outline-offset: 3px; }

/* Zvětšená fotka po kliknutí. */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none; place-items: center;
  padding: 64px 80px;
  background: rgba(12, 11, 10, 0.95);
  color: var(--ink-text);
}
.lightbox:target { display: grid; }
.lightbox:target figure { animation: lb-in 0.45s var(--ease) both; }
@keyframes lb-in { from { opacity: 0; transform: scale(0.96); } }
.lb-backdrop { position: absolute; inset: 0; }
.lightbox figure { position: relative; }
.lightbox img { max-height: calc(100vh - 160px); max-height: calc(100svh - 160px); width: auto; margin-inline: auto; border-radius: var(--radius); }
.lightbox figcaption { margin-top: 14px; text-align: center; color: var(--ink-muted); }
.lb-close, .lb-prev, .lb-next {
  position: absolute; z-index: 1;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 10px 16px; border: 1px solid var(--ink-line); border-radius: var(--radius);
  background: rgba(20, 19, 17, 0.7);
}
.lb-close, .lb-prev, .lb-next { transition: border-color 0.2s, color 0.2s; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { border-color: var(--ink-bronze); color: var(--ink-bronze); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* Kontakt a formulář. */
.contact { background: var(--ink-bg); color: var(--ink-text); }
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 104px); align-items: start;
}
.contact h2 { margin-bottom: 22px; }
.contact .section-lead { color: var(--ink-muted); margin-bottom: 44px; }
.contact-phone {
  display: inline-block; text-decoration: none;
  font-stretch: 125%; font-weight: 800;
  font-size: clamp(1.75rem, 3.2vw, 2.9rem); line-height: 1.1; letter-spacing: -0.01em;
  margin-bottom: 40px;
}
.contact-phone:hover .steel { filter: brightness(1.12); }
.contact-list { margin: 0; border-top: 1px solid var(--ink-line); }
.contact-list div {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--ink-line);
}
.contact-list dt { color: var(--ink-bronze); font-stretch: 112%; font-size: 0.95rem; }
.contact-list dd { margin: 0; }
.contact-list a { text-decoration-color: var(--ink-bronze); text-underline-offset: 4px; }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px;
  background: var(--ink-surface);
  border: 1px solid var(--ink-line);
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: var(--radius);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink-text);
  background: var(--ink-raise);
  border: 1px solid var(--ink-line); border-radius: var(--radius);
  padding: 13px 14px;
  color-scheme: dark;
  transition: border-color 0.2s, box-shadow 0.25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #807b74; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink-bronze); outline: none;
  box-shadow: 0 0 0 3px rgba(207, 152, 101, 0.18);
}
.form .btn { grid-column: 1 / -1; justify-self: start; border: 0; }
.form-note { grid-column: 1 / -1; font-size: 0.85rem; color: var(--ink-muted); }

/* Patička s logem. */
.footer { background: var(--ink-bg); color: var(--ink-text); padding: 0 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.6fr);
  gap: 40px; align-items: center;
  padding-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--ink-line);
}
.footer-logo { width: min(100%, 300px); }
.footer-contact, .footer-nav { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-contact a, .footer-nav a { text-decoration: none; }
.footer-phone { font-stretch: 125%; font-weight: 700; font-size: 1.5rem; }
.footer-nav a { color: var(--ink-muted); }
.footer-contact a, .footer-nav a, .footer-credit a { transition: color 0.2s, text-decoration-color 0.2s; }
.footer-contact a:hover, .footer-nav a:hover { color: var(--ink-bronze); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--ink-line);
  font-size: 0.85rem; color: var(--ink-muted);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-credit a {
  color: var(--ink-text); font-weight: 600;
  text-decoration: underline; text-decoration-color: rgba(239, 238, 234, 0.4);
  text-underline-offset: 4px;
}
.footer-credit a:hover { color: var(--ink-bronze); text-decoration-color: var(--ink-bronze); }

/* Úpravy pro tablet a mobil. */
@media (max-width: 1080px) {
  .menu-btn { display: block; order: 3; }
  .top-phone { margin-left: auto; }
  .nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--ink-bg);
    padding: 8px var(--pad) 22px;
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--ink-line); color: var(--ink-text); }
  .menu-toggle:checked ~ .nav { display: flex; animation: menu-in 0.3s var(--ease) both; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .detail-text { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
}

@media (max-width: 860px) {
  .services { grid-template-columns: 1fr; }
  .svc-preview { display: none; }
  .svc { grid-template-columns: 104px minmax(0, 1fr); gap: 6px 20px; align-items: start; padding: 22px 0; }
  .svc-thumb { display: block; grid-row: span 2; width: 104px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
  .svc:hover h3 { transform: none; }
  .section-head, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 8px 22px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery li.big { grid-column: auto; grid-row: auto; }
  #f-vse:checked ~ #vice-fotek:not(:checked) ~ .gallery li:nth-child(n+9) { display: none; }
  #f-vse:checked ~ #vice-fotek:not(:checked) ~ .more-btn { display: flex; }
  .filters {
    flex-wrap: nowrap; overflow-x: auto;
    margin-inline: calc(var(--pad) * -1); padding: 6px var(--pad);
    scrollbar-width: none; scroll-snap-type: x proximity;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters label { flex: none; white-space: nowrap; scroll-snap-align: start; }
  .nav { max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
  .hero-photos { grid-template-columns: repeat(2, 1fr); }
  .hero-photos img:nth-child(odd) { display: none; }
  .lightbox { padding: 72px 16px 92px; }
  .lb-prev, .lb-next { top: auto; bottom: 22px; transform: none; }
}

@media (max-width: 680px) {
  .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (max-width: 560px) {
  :root { --header-h: 68px; }
  .brand img { height: 44px; }
  .topbar-inner { gap: 12px; }
  .top-phone { padding: 10px 14px; font-size: 0.95rem; }
  .top-phone-num { display: none; }
  .top-phone-call { display: inline; }
  .section { padding-block: 64px; }
  .realizace { padding-top: 0; }
  .section-head { margin-bottom: 32px; }
  .hero-content { padding-top: 96px; }
  .lead { font-size: 1.08rem; }
  .actions, .actions .btn { width: 100%; }
  .tagline { font-size: 0.68rem; letter-spacing: 0.14em; gap: 10px; }
  .tagline::before, .tagline::after { width: 20px; }
  .tagline span + span::before { margin-right: 10px; }
  .detail-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .detail h2 { margin-bottom: 18px; }
  .spec { margin: 28px 0 8px; }
  .detail-photo figcaption { font-size: 0.8rem; margin-top: 8px; }
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .step { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; padding-top: 18px; }
  .step-num { grid-row: span 2; font-size: 2.6rem; margin: 0; }
  .steps > .step:nth-child(n) { --d: 0px; } /* Pod sebou se kroky nezpožďují. */
  .contact-phone { font-size: clamp(1.45rem, 7.4vw, 2rem); margin-bottom: 28px; }
  .contact .section-lead { margin-bottom: 28px; }
  .contact-list a, .footer-contact a, .footer-nav a { display: inline-block; padding-block: 6px; }
  .footer-logo { width: 240px; }
  .spec div, .contact-list div { grid-template-columns: 1fr; gap: 2px; }
  .gallery { gap: 4px; }
  .gallery figcaption { font-size: 0.78rem; padding: 32px 10px 8px; }
  .form { grid-template-columns: 1fr; }
}

@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

/* Animace při scrollování: obsah jemně najede, fotky se odkryjí, u kroků se rozsvítí LED linka
   a fotky v úvodu se posouvají pomaleji než stránka. Řídí je přímo scroll, bez JavaScriptu.
   Prohlížeče, které to neumí, prostě ukážou obsah hned. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .section-head, .svc, .detail-text, .step, .gallery li, .contact-grid > * {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry calc(var(--d, 0px)) entry calc(var(--d, 0px) + 220px);
    }
    .step:nth-child(2), .gallery li:nth-child(even) { --d: 50px; }
    .step:nth-child(3) { --d: 100px; }
    .step:nth-child(4) { --d: 150px; }

    .detail-photo img {
      animation: wipe linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 45%;
    }
    .detail-photo:nth-of-type(2) img { animation-range: entry 25% cover 55%; }

    .step { position: relative; }
    .step::before {
      content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
      background: var(--bronze); box-shadow: 0 0 10px rgba(var(--led-rgb), 0.55);
      transform-origin: left;
      animation: draw linear both;
      animation-timeline: view();
      animation-range: entry calc(var(--d, 0px) + 60px) entry calc(var(--d, 0px) + 360px);
    }

    .hero-photos {
      animation: parallax linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(40px); } }
@keyframes wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes parallax { to { transform: translateY(18%); } }

/* Plynulé přeskládání galerie při změně filtru (spouští ho skript v index.html). */
::view-transition-group(*) { animation-duration: 0.5s; animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .led, .hero::before, .hero-photos img, .menu-toggle:checked ~ .nav, .lightbox:target figure { animation: none; }
  .svc h3, .svc-preview img, .gallery img, .detail-photo img, .btn { transition: none; }
  .svc-preview img, .btn-primary:hover { transform: none; }
}
