/* =========================================================
   Serža – servis žaluzií
   Paleta: omítka · antracit RAL 7016 · slunce
   ========================================================= */

:root {
  /* ===== Barvy – změnou těchto hodnot přebarvíte celý web ===== */
  --bg: #EEF1F4;              /* pozadí stránky – světle stříbrná */
  --bg-rgb: 238, 241, 244;
  --bg-2: #E1E6EC;            /* tónované sekce, ostění okna */
  --surface: #F8FAFC;         /* karty */
  --ink: #12233A;             /* hlavní text a tmavé prvky – tmavě modrá */
  --ink-2: #33445A;           /* běžný text */
  --muted: #5A6878;           /* popisky */
  --shadow-rgb: 18, 35, 58;   /* stíny a linky (RGB z --ink) */
  --line: rgba(var(--shadow-rgb), .13);
  --line-2: rgba(var(--shadow-rgb), .26);

  --accent: #1F6FB5;          /* modrá – tlačítka a akcenty */
  --accent-hover: #185C98;
  --accent-ink: #FFFFFF;      /* text na modré */
  --accent-light: #6DB0EE;    /* modrá na tmavém pozadí */

  --dark: #0E1E31;            /* tmavé sekce a patička */
  --dark-rgb: 14, 30, 49;
  --on-dark: #E9EEF3;         /* text na tmavém pozadí */
  --on-dark-rgb: 233, 238, 243;

  /* stříbrný hliník (žaluzie v úvodu, parapet) */
  --metal-hi: #F2F4F6;
  --metal: #C3CAD1;
  --metal-mid: #A4ADB6;
  --metal-lo: #7F8892;

  --f-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --r: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

/* ---------- Základ ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* jemná textura omítky */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .07 0 0 0 0 .14 0 0 0 0 .23 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.no-scroll { overflow: hidden; }

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.75rem);
  font-stretch: 112%;
  letter-spacing: -.03em;
  max-width: 17ch;
}

h3 {
  font-size: 1.375rem;
  font-stretch: 108%;
  letter-spacing: -.01em;
  line-height: 1.15;
}

p { margin: 0 0 1em; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
strong { font-weight: 650; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--on-dark);
  text-decoration: none;
  border-radius: var(--r);
}
.skip:focus { top: 12px; }

/* ---------- Drobné prvky ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: .75em;
  margin: 0 0 1.25rem;
  font-family: var(--f-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
/* malá žaluzie před nadpisem */
.eyebrow::before {
  content: "";
  flex: none;
  width: 18px;
  height: 11px;
  background: repeating-linear-gradient(to bottom, currentColor 0 2px, transparent 2px 4.5px);
}
.eyebrow--light { color: rgba(var(--on-dark-rgb), .65); }

/* text „z lamel“ */
.slatted {
  background: repeating-linear-gradient(to bottom, var(--ink) 0 .074em, transparent .074em .1em);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--on-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 52px;
  padding: .9rem 1.4rem;
  border: 0;
  border-radius: var(--r);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 700 1rem/1 var(--f-sans);
  font-stretch: 105%;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -14px rgba(var(--shadow-rgb), .6); }
.btn:active { transform: translateY(0); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); }
.btn--accent:hover { --btn-bg: var(--accent-hover); }
.btn--sm { min-height: 42px; padding: .55rem 1rem; font-size: .9375rem; }

.ico { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .4rem 0;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 2px solid var(--line-2);
  transition: border-color .2s;
}
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover { border-color: var(--ink); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Hlavička ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, box-shadow .3s;
}
.header.is-scrolled,
.header.is-menu {
  background: rgba(var(--bg-rgb), .9);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-menu { background: var(--bg); }

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-right: auto;
  text-decoration: none;
}
.logo__mark {
  width: 34px;
  height: 29px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 5.5;
}
.logo__accent { stroke: var(--accent); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__word {
  font-size: 1.5rem;
  font-weight: 850;
  font-stretch: 120%;
  letter-spacing: -.035em;
}
.logo__sub {
  margin-top: 4px;
  font-family: var(--f-mono);
  font-size: .625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; gap: 1.75rem; }
.nav a {
  position: relative;
  padding: .4rem 0;
  font-size: .9375rem;
  font-weight: 550;
  text-decoration: none;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav__phone { display: none; }

.menu-btn { display: none; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(24px, 4vw, 56px) clamp(72px, 9vw, 128px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.hero__title {
  margin-bottom: 1.75rem;
  font-size: clamp(2.4rem, 5vw, 4.75rem);
  font-stretch: 115%;
  font-weight: 850;
  line-height: .95;
  letter-spacing: -.04em;
}

.hero__lead {
  max-width: 36ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.25rem;
}

/* okno se žaluzií */
.hero__visual {
  position: relative;
  width: 100%;
  max-width: min(430px, 56vh);
  justify-self: end;
}

.reveal-wall {
  padding: 14px;
  border-radius: 3px;
  background: var(--bg-2);
  box-shadow:
    inset 0 12px 18px -12px rgba(var(--shadow-rgb), .4),
    inset 12px 0 18px -16px rgba(var(--shadow-rgb), .25),
    inset -12px 0 18px -16px rgba(var(--shadow-rgb), .25);
}

.window {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: var(--ink);
  box-shadow: 0 0 0 1px rgba(var(--shadow-rgb), .3);
  cursor: pointer;
}
.window__view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.window__box {
  position: absolute;
  inset: 0 0 auto;
  height: 9%;
  z-index: 3;
  background: linear-gradient(to bottom, var(--metal-hi), var(--metal) 45%, var(--metal-lo));
  box-shadow: 0 3px 8px rgba(var(--shadow-rgb), .35);
}
.window__rail {
  position: absolute;
  top: 9%;
  bottom: 0;
  z-index: 3;
  width: 12px;
  background: linear-gradient(to right, var(--metal-lo), var(--metal-hi) 45%, var(--metal-lo));
}
.window__rail--l { left: 0; }
.window__rail--r { right: 0; }

.window__blind {
  position: absolute;
  top: 9%;
  bottom: 0;
  left: 6px;
  right: 6px;
  z-index: 2;
  perspective: 900px;
  perspective-origin: 50% 35%;
}
.slat {
  position: absolute;
  inset: 0 0 auto;
  height: 26px;
  transform-origin: 50% 50%;
  background: linear-gradient(to bottom, var(--metal-hi) 0, var(--metal) 16%, var(--metal-mid) 60%, var(--metal-lo) 100%);
  border-top: 1px solid rgba(255, 255, 255, .7);
  will-change: transform;
}
.slat--bottom {
  background: linear-gradient(to bottom, var(--metal), var(--metal-lo));
  border-radius: 0 0 2px 2px;
}
.cord {
  position: absolute;
  top: 0;
  width: 2px;
  height: 0;
  background: rgba(var(--shadow-rgb), .35);
}
.cord--0 { left: 21%; }
.cord--1 { right: 21%; }

/* bez JS: statická zavřená žaluzie */
.window__blind:empty {
  background: repeating-linear-gradient(to bottom, var(--metal) 0 22px, var(--metal-lo) 22px 26px);
}

.sill {
  display: block;
  height: 12px;
  margin: 0 -10px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--metal-hi), var(--metal-mid));
  box-shadow: 0 8px 14px -6px rgba(var(--shadow-rgb), .45);
}

.control {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.switch {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  width: 56px;
  height: 72px;
  padding: 5px;
  flex: none;
  border-radius: 8px;
  background: #FBFCFD;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 0 0 1px rgba(var(--shadow-rgb), .12),
    0 10px 20px -12px rgba(var(--shadow-rgb), .5);
}
.switch__btn {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(#fff, #EDF0F3);
  box-shadow: 0 0 0 1px rgba(var(--shadow-rgb), .1), 0 1px 2px rgba(var(--shadow-rgb), .14);
  color: var(--ink);
  cursor: pointer;
  transition: transform .1s, color .2s;
}
.switch__btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.switch__btn:active { transform: translateY(1px); background: linear-gradient(#E9EDF1, #E1E6EB); }
.switch__btn.is-running { color: var(--accent); }
.switch__btn[aria-disabled="true"] { color: rgba(var(--shadow-rgb), .28); cursor: default; }
.switch__btn[aria-disabled="true"]:active { transform: none; }

.control__text { display: flex; flex-direction: column; gap: .2rem; margin: 0; }
.control__state {
  font-family: var(--f-mono);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .04em;
}
.control__hint { font-size: .875rem; color: var(--muted); }

/* na desktopu visí vypínač na zdi vedle okna */
@media (min-width: 900px) {
  .control {
    position: absolute;
    right: calc(100% + 28px);
    bottom: 56px;
    flex-direction: column;
    align-items: flex-end;
    gap: .9rem;
    margin: 0;
    text-align: right;
    white-space: nowrap;
  }
  .control__text { align-items: flex-end; }
}

/* na tabletu visí vypínač vpravo od okna */
@media (min-width: 640px) and (max-width: 899px) {
  .control {
    position: absolute;
    left: calc(100% + 28px);
    bottom: 56px;
    flex-direction: column;
    align-items: flex-start;
    gap: .9rem;
    margin: 0;
    white-space: nowrap;
  }
}

/* ---------- Sekce ---------- */

.section { padding-block: clamp(72px, 10vw, 136px); }
.section--tint { background: var(--bg-2); }
.section--flush { padding-bottom: clamp(72px, 10vw, 136px); }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

/* ---------- Služby ---------- */

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.service {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 340px);
  gap: clamp(20px, 4vw, 64px);
  align-items: start;
  padding-block: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line-2);
}

.service__num {
  padding-top: .85rem;
  font-family: var(--f-mono);
  font-size: .8125rem;
  color: var(--muted);
}

.service h3 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.6rem, 5.6vw, 4.75rem);
  font-stretch: 120%;
  font-weight: 850;
  letter-spacing: -.04em;
}

.service__body p { max-width: 50ch; color: var(--ink-2); }

.service__img {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--bg-2);
}
.service__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.service:hover .service__img img { transform: scale(1.04); }

.ticks {
  display: grid;
  gap: .6rem;
  max-width: 56ch;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding-left: 1.75rem;
  font-size: .96875rem;
}
.service__link { margin-top: 1.5rem; }

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .74em;
  width: 14px;
  height: 2px;
  background: var(--ink);
}

/* ---------- Produkty ---------- */

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

.product__img {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-2);
}
.product__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.product:hover .product__img img { transform: scale(1.04); }

.product__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(20px, 2.4vw, 32px);
}

.product h3 {
  margin-bottom: .75rem;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-stretch: 112%;
  letter-spacing: -.025em;
}
.product__body > p { color: var(--ink-2); }

/* pergoly – zatím bez fotky a textu */
.product-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 2rem;
  margin-top: clamp(16px, 2vw, 24px);
  padding: clamp(20px, 2.4vw, 28px) clamp(20px, 2.4vw, 32px);
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
}
.product-extra h3 { font-size: 1.375rem; }
.product-extra p { flex: 1; min-width: 220px; margin: 0; color: var(--ink-2); }

.specs { margin: .5rem 0 0; border-top: 1px solid var(--line); }
.specs div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
}
.specs dt,
.contact__meta dt {
  padding-top: .22rem;
  font-family: var(--f-mono);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.specs dd { margin: 0; font-size: .9375rem; }

.more { margin-top: auto; padding-top: 1.25rem; }
.more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after {
  content: "+";
  font-family: var(--f-mono);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1;
  transition: transform .25s var(--ease);
}
.more[open] summary::after { transform: rotate(45deg); }
.more__body { padding-top: .5rem; font-size: .9375rem; color: var(--ink-2); }
.more__body p:last-child { margin-bottom: 0; }

/* ---------- Postup (pravítko) ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 64px 0 0;
  list-style: none;
}
.steps::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 24px;
  border-top: 2px solid var(--ink);
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10px) 0 0 / 100% 7px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 50px) 0 0 / 100% 13px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 100px) 0 0 / 100% 22px no-repeat;
}

.step { position: relative; padding-right: clamp(12px, 2vw, 28px); }
/* značka na pravítku */
.step::before {
  content: "";
  position: absolute;
  left: 0;
  top: -64px;
  width: 3px;
  height: 50px;
  background: var(--accent);
}
.step__n {
  display: block;
  margin-bottom: .6rem;
  font-family: var(--f-mono);
  font-size: .8125rem;
  color: var(--muted);
}
.step h3 { margin-bottom: .5rem; font-size: 1.25rem; }
.step p { margin: 0; font-size: .9375rem; color: var(--ink-2); }

/* ---------- Realizace ---------- */

.gallery {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  columns: 3 280px;
  column-gap: 16px;
}
.g { margin: 0 0 16px; break-inside: avoid; }
.g button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--r);
  background: var(--bg-2);
  cursor: zoom-in;
}
.g img { width: 100%; transition: transform .8s var(--ease); }
.g button:hover img { transform: scale(1.03); }
.g figcaption {
  padding-top: .55rem;
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--muted);
}

/* ---------- Kam jezdíme ---------- */

.area {
  padding-block: clamp(72px, 10vw, 136px);
  overflow: hidden;
  background: var(--dark);
  color: var(--on-dark);
}
.area__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.area h2 { max-width: 14ch; margin-bottom: 1.5rem; }
.area p { max-width: 42ch; color: rgba(var(--on-dark-rgb), .75); }
.area .area__lead {
  max-width: 24ch;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--on-dark);
}

.radar { margin: 0; }
.radar svg { display: block; width: 100%; height: auto; overflow: visible; }
.radar__grid { fill: none; stroke: rgba(var(--on-dark-rgb), .16); stroke-width: 1; }
.radar__grid circle:nth-child(4) { stroke: rgba(var(--on-dark-rgb), .32); }
.radar__rings text {
  fill: rgba(var(--on-dark-rgb), .45);
  font-family: var(--f-mono);
  font-size: 10px;
}
.radar__compass text {
  fill: rgba(var(--on-dark-rgb), .55);
  font-family: var(--f-mono);
  font-size: 11px;
  text-anchor: middle;
}
.radar__towns circle { fill: var(--on-dark); }
.radar__towns text {
  fill: var(--on-dark);
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
}
.radar__towns .end { text-anchor: end; }
.radar__towns .mid { text-anchor: middle; }
.radar__base circle { fill: var(--accent-light); }
.radar__base text {
  fill: var(--accent-light);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-anchor: middle;
  text-transform: uppercase;
}
.radar__pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.6s ease-out infinite;
}
.radar__sweep {
  transform-box: view-box;
  transform-origin: 0 0;
  animation: sweep 10s linear infinite;
}
.radar figcaption {
  margin-top: .75rem;
  text-align: center;
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  color: rgba(var(--on-dark-rgb), .5);
}

@keyframes pulse {
  from { transform: scale(1); opacity: .7; }
  to { transform: scale(4.5); opacity: 0; }
}
@keyframes sweep {
  to { transform: rotate(-360deg); }
}

/* ---------- Kontakt ---------- */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.contact h2 { max-width: 14ch; margin-bottom: 1.5rem; }
.contact__intro p { max-width: 36ch; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--ink-2); }

.contact__phone {
  display: inline-block;
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  font-weight: 850;
  font-stretch: 118%;
  line-height: 1.05;
  letter-spacing: -.035em;
  text-decoration: none;
  white-space: nowrap;
}
.contact__phone:hover {
  background: repeating-linear-gradient(to bottom, var(--ink) 0 .074em, transparent .074em .1em);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact__mail {
  display: inline-block;
  margin-top: .75rem;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}
.contact__mail:hover { border-color: var(--ink); }

.contact__info > a { display: table; }

.contact__meta {
  max-width: 460px;
  margin: 2.25rem 0 0;
  border-top: 1px solid var(--line-2);
}
.contact__meta div {
  display: grid;
  grid-template-columns: 80px 1fr;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line-2);
}
.contact__meta dd { margin: 0; }
.contact__fb { margin-top: 1.75rem; }

/* ---------- Patička ---------- */

.footer {
  padding-block: 2rem;
  border-top: 1px solid rgba(var(--on-dark-rgb), .1);
  background: var(--dark);
  color: rgba(var(--on-dark-rgb), .7);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 2rem;
  font-size: .875rem;
}
.footer p { margin: 0; }
.footer__name { font-family: var(--f-mono); letter-spacing: .06em; }
.footer__name b { font-weight: 500; color: var(--accent-light); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--on-dark); text-decoration: underline; }

/* ---------- Plovoucí tlačítko ---------- */

.fab { display: none; }

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(var(--dark-rgb), .95);
  color: var(--on-dark);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox__fig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  max-width: min(92vw, 1200px);
  margin: 0;
}
.lightbox__fig img {
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  max-height: 80dvh;
  border-radius: 2px;
}
.lightbox__fig figcaption {
  font-family: var(--f-mono);
  font-size: .8125rem;
  color: rgba(var(--on-dark-rgb), .7);
}
.lightbox__btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(var(--on-dark-rgb), .25);
  border-radius: 50%;
  background: rgba(var(--shadow-rgb), .7);
  color: var(--on-dark);
  font-size: 1.15rem;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.lightbox__btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.lightbox__btn:focus-visible { outline-color: var(--accent-light); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Animace při scrollu ---------- */

@property --o {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* fotky se „roztáhnou“ jako žaluzie */
.js [data-slats] {
  --o: 0px;
  -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 var(--o), transparent var(--o) 16px);
  mask-image: repeating-linear-gradient(to bottom, #000 0 var(--o), transparent var(--o) 16px);
  transition: --o 1.1s var(--ease);
}
.js [data-slats].is-in { --o: 16px; }
.js [data-slats].is-done { -webkit-mask-image: none; mask-image: none; }

/* =========================================================
   Responzivita
   ========================================================= */

@media (max-width: 1080px) {
  .service { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 260px); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 3rem; }
  .steps .step:nth-child(n + 4)::before { display: none; }
}

@media (max-width: 999px) {
  .products { grid-template-columns: 1fr; }
  .product { flex-direction: row; }
  .product__img { flex: 0 0 42%; aspect-ratio: auto; min-height: 300px; }
}

@media (max-width: 899px) {
  :root { --header-h: 64px; }

  .header__inner { gap: .75rem; }
  .header__call { width: 44px; min-height: 44px; padding: 0; }
  .header__call span { display: none; }
  .header__call .ico { width: 20px; height: 20px; }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    height: 44px;
    padding: 0 .25rem 0 .5rem;
    border: 0;
    background: none;
    color: var(--ink);
    font: 600 .9375rem var(--f-sans);
    cursor: pointer;
  }
  .menu-btn__icon { position: relative; display: block; width: 22px; height: 14px; }
  .menu-btn__icon i {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
    transition: transform .3s var(--ease), opacity .2s;
  }
  .menu-btn__icon i:nth-child(1) { top: 0; }
  .menu-btn__icon i:nth-child(2) { top: 6px; }
  .menu-btn__icon i:nth-child(3) { top: 12px; }
  .menu-btn[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* menu sjede dolů jako roleta */
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    gap: 0;
    padding: .5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: var(--bg);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .5s var(--ease), visibility 0s .5s;
  }
  .nav.is-open {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition: clip-path .5s var(--ease);
  }
  .nav a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line-2);
    font-size: 2rem;
    font-weight: 800;
    font-stretch: 115%;
    letter-spacing: -.03em;
  }
  .nav a::after { display: none; }
  .nav .nav__phone {
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding: 1.1rem;
    border: 0;
    border-radius: var(--r);
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 1.5rem;
  }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { justify-self: start; max-width: 420px; }

  .area__grid { grid-template-columns: 1fr; }
  .radar { max-width: 520px; width: 100%; justify-self: center; }

  .contact__grid { grid-template-columns: 1fr; }

  .fab {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    height: 54px;
    padding: 0 1.3rem;
    border-radius: 6px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 28px -10px rgba(var(--shadow-rgb), .55);
    transform: translateY(calc(100% + 32px));
    transition: transform .4s var(--ease);
  }
  .fab.is-visible { transform: none; }
  .footer { padding-bottom: 96px; }
}

@media (max-width: 759px) {
  body { font-size: 1rem; }

  .hero { padding-top: 16px; }
  .hero__actions .btn { width: 100%; }
  .window { aspect-ratio: 5 / 6; }

  .service {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .service__num { padding-top: 0; }
  .service__img { aspect-ratio: 16 / 10; }

  .specs div { grid-template-columns: 84px 1fr; gap: .75rem; }

  /* pravítko na výšku */
  .steps {
    grid-template-columns: 1fr;
    row-gap: 2rem;
    padding: 0 0 0 52px;
  }
  .steps::before {
    inset: 0 auto 0 0;
    width: 24px;
    height: auto;
    border-top: 0;
    border-left: 2px solid var(--ink);
    background:
      repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 10px) 0 0 / 7px 100% no-repeat,
      repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 50px) 0 0 / 13px 100% no-repeat,
      repeating-linear-gradient(to bottom, var(--ink) 0 2px, transparent 2px 100px) 0 0 / 22px 100% no-repeat;
  }
  .steps .step::before,
  .steps .step:nth-child(n + 4)::before {
    display: block;
    left: -52px;
    top: .55rem;
    width: 40px;
    height: 3px;
  }

  /* galerie jako vodorovný pás */
  .gallery {
    display: flex;
    gap: 12px;
    columns: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .g { flex: 0 0 80%; margin: 0; scroll-snap-align: start; }
  .g button { aspect-ratio: 4 / 5; }
  .g img { height: 100%; object-fit: cover; }

  .radar__towns text { font-size: 18px; }
  .radar__rings text { font-size: 13px; }
  .radar__compass text,
  .radar__base text { font-size: 14px; }


  .lightbox__prev,
  .lightbox__next { top: auto; bottom: calc(20px + env(safe-area-inset-bottom)); transform: none; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
}

@media (max-width: 639px) {
  .product { flex-direction: column; }
  .product__img { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-slats] { -webkit-mask-image: none; mask-image: none; }
  .radar__sweep,
  .radar__pulse { display: none; }
}
