/* Glass-ABC — design system (logo: červená / černá / bílá) */
:root {
  --color-primary: #D71920;
  --color-primary-dark: #A90F14;
  --color-primary-light: #FDECEC;

  --color-black: #111111;
  --color-dark: #1F1F1F;
  --color-text: #2B2B2B;
  --color-muted: #666666;

  --color-white: #FFFFFF;
  --color-bg: #F7F7F7;
  --color-bg-soft: #FAFAFA;
  --color-border: #E2E2E2;

  --color-glass: #DDEFF1;
  --color-glass-dark: #6D8F95;

  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extra-bold: 800;

  /* aliasy pro stávající CSS */
  --red: var(--color-primary);
  --red-dark: var(--color-primary-dark);
  --red-light: var(--color-primary-light);
  --ink: var(--color-black);
  --muted: var(--color-muted);
  --line: var(--color-border);
  --bg: var(--color-bg);
  --white: var(--color-white);
  --footer: var(--color-black);

  --max: 1180px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.09);
  --font: "Inter", "Segoe UI", Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.65s;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  overflow-x: clip;
  scrollbar-gutter: auto;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: var(--font-regular);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  opacity: 1;
  overflow-x: clip;
}
body.page-enter {
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
body.page-enter.is-ready { opacity: 1; }

h1, h2, h3, h4 {
  color: var(--color-black);
  margin-top: 0;
}
h1 {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: var(--font-extra-bold);
  line-height: 1.05;
}
h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: var(--font-bold);
  line-height: 1.15;
}
h3 {
  font-size: 20px;
  font-weight: var(--font-bold);
  line-height: 1.3;
}

img { max-width: 100%; height: auto; display: block; }
main { overflow-x: clip; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

.container {
  box-sizing: border-box;
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
  padding-inline: 0;
}
.section { padding: 72px 0; }
.section--gray { background: var(--color-bg-soft); }
.section-title {
  text-align: center;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: var(--font-bold);
  color: var(--color-black);
  margin: 0 0 2rem;
  letter-spacing: -0.02em;
}

/* Top bar */
.topbar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
}
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 0.5rem 0;
}
.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
  font-weight: 500;
}
.topbar a:hover { color: var(--red); text-decoration: none; }
.topbar svg { color: var(--red); flex-shrink: 0; }

/* Header */
.site-header {
  background: var(--color-white);
  color: var(--color-black);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.35s var(--ease-soft);
}
body.is-ready .site-header { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 0;
}
.brand { margin-right: auto; }   /* logo vlevo, zbytek doprava */

/* ---- Kontakt v hlavičce ----
   Dřív byl v samostatném pruhu nad hlavičkou, který při rolování odjel pryč.
   Tady zůstává vidět pořád, protože hlavička je lepivá. */
.header-kontakt {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  flex-shrink: 0;
}
.header-kontakt__tel {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.05rem;
  font-weight: var(--font-extra-bold);
  color: var(--color-black);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.header-kontakt__tel svg { color: var(--color-primary); flex-shrink: 0; }
.header-kontakt__tel:hover { color: var(--color-primary); text-decoration: none; }
.header-kontakt__mail {
  font-size: 0.76rem;
  color: var(--color-muted);
  white-space: nowrap;
}
.header-kontakt__mail:hover { color: var(--color-primary); text-decoration: none; }

/* Na užším displeji se e-mail nevejde vedle menu — telefon zůstává */
@media (max-width: 1150px) {
  .header-kontakt__mail { display: none; }
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand img { height: 52px; width: auto; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 1px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: 0.55rem 0.5rem;
  margin: 0 0.15rem;
  color: var(--color-black);
  font-size: 0.9rem;
  font-weight: var(--font-semibold);
  border-radius: 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: color 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft);
}
.site-nav a:hover,
.site-nav a.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: transparent;
}
.site-nav {
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
@media (max-width: 768px) {
  .site-nav.is-open {
    animation: nav-in 0.35s var(--ease-out);
  }
}
@keyframes nav-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(420px, 52vh, 540px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--color-white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 88% center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
  transform-origin: 88% center;
  transition: opacity 1.35s var(--ease-soft);
  will-change: transform, opacity;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide.is-zoomed {
  animation: hero-zoom 18s var(--ease-out) forwards;
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 3.25rem 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.hero--light::before {
  background: linear-gradient(
    90deg,
    rgba(247, 247, 247, 0.98) 0%,
    rgba(247, 247, 247, 0.92) 28%,
    rgba(247, 247, 247, 0.65) 42%,
    rgba(255, 255, 255, 0.25) 58%,
    rgba(0, 0, 0, 0.12) 100%
  );
}
.hero .hero-content {
  max-width: 34rem;
  text-align: left;
}
.hero-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 100ms + 200ms);
}
.hero-reveal--play .hero-reveal {
  opacity: 1;
  transform: none;
}
.hero h1 {
  color: var(--color-white);
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: var(--font-extra-bold);
  line-height: 1.08;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}
.hero--light h1 { color: var(--color-black); }
.hero-title {
  display: block;
  white-space: nowrap;
}
.hero-lead {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: var(--font-bold);
  line-height: 1.2;
  color: var(--color-primary);
}
.hero-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 32rem;
  margin: 0 0 1.5rem;
  line-height: 1.65;
}
.hero--light .hero-text { color: var(--color-text); }
.hero--light .hero-location { color: var(--color-muted); }
.hero--light .btn--outline {
  color: var(--color-black);
  border-color: rgba(17, 17, 17, 0.5);
}
.hero--light .btn--outline:hover {
  background: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.3s var(--ease-soft),
    color 0.3s var(--ease-soft),
    border-color 0.3s var(--ease-soft),
    transform 0.3s var(--ease-soft),
    box-shadow 0.3s var(--ease-soft);
}
.btn:active { transform: scale(0.98); }
.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border: 1px solid var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  text-decoration: none;
}
.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.75);
}
.btn--outline:hover {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
  text-decoration: none;
}
.btn--outline-dark {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn--outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}

/* Service cards */
/* Šest služeb na jeden řádek na desktopu, dvě vedle sebe na mobilu.
   Při přidání sedmé služby se řádek zalomí — viz poznámka v js/site-data.js. */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.35rem 0.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition:
    box-shadow 0.35s var(--ease-soft),
    border-color 0.35s var(--ease-soft),
    transform 0.35s var(--ease-out);
  box-shadow: var(--shadow);
}
.service-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  text-decoration: none;
  color: inherit;
}
.service-card__icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 0.7rem;
  padding: 8px;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 10px;
  box-sizing: content-box;
  flex-shrink: 0;
}
.service-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: var(--font-bold);
  color: var(--color-black);
  line-height: 1.25;
  hyphens: auto;
}
.service-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.45;
}

/* Zvýrazněná služba (to, čím se firma liší) */
.service-card--highlight {
  border-color: var(--color-primary);
}
.service-card__badge {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: var(--font-bold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-radius: 999px;
  white-space: nowrap;
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem 1.5rem;
  text-align: center;
}
.benefit__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.75rem;
  padding: 8px;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 10px;
  box-sizing: content-box;
}
.benefit h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
}
.benefit p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Gallery preview */
.gallery-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.gallery-preview[data-count="4"] {
  grid-template-columns: repeat(2, 1fr);
  max-width: 52rem;
  margin-inline: auto;
}
.gallery-preview button,
.gallery-full button {
  border: none;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--line);
  position: relative;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-soft);
}
.gallery-preview button span {
  position: absolute;
  inset: auto 0 0;
  padding: 0.45rem 0.6rem;
  font-size: 0.75rem;
  font-weight: var(--font-semibold);
  color: var(--color-white);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  text-align: left;
  line-height: 1.3;
}
.gallery-preview button img,
.gallery-full button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out);
}
.gallery-preview button:hover,
.gallery-full button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.gallery-preview button:hover img,
.gallery-full button:hover img { transform: scale(1.05); }
.gallery-more { text-align: center; margin-top: 1.75rem; }

/* Full gallery (subpages) */
.gallery-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.gallery-full button { position: relative; }
.gallery-full button span {
  position: absolute;
  inset: auto 0 0;
  padding: 0.45rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  text-align: left;
}
.gallery-full--ornament {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.gallery-full--ornament button { aspect-ratio: 1; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 50ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Page hero (subpages) */
.page-hero {
  background: var(--color-bg-soft);
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
}
.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: var(--font-bold);
  color: var(--color-black);
}
.page-hero p { margin: 0; color: var(--color-muted); max-width: 40rem; line-height: 1.65; }

/* Content blocks */
.prose { max-width: 48rem; }
.prose p { color: var(--muted); margin: 0 0 1rem; }
.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.content-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: box-shadow 0.35s var(--ease-soft), transform 0.35s var(--ease-out);
}
.content-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.content-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.content-card__body { padding: 1.25rem; }
.content-card__body p { margin: 0; font-size: 0.95rem; color: var(--muted); }

.equipment-grid {
  display: grid;
  /* Po odebrání lokalit zbyl jen kontaktní box — drží se uprostřed v rozumné šířce */
  grid-template-columns: minmax(0, 30rem);
  justify-content: center;
  gap: 1.25rem;
}
.equipment-grid h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.equipment-grid p { margin: 0; font-size: 0.9rem; color: var(--muted); }

.lacobel-img {
  max-width: 100%;
  margin: 0 auto 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.color-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.color-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.color-table th, .color-table td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.color-table th { background: var(--bg); font-weight: 700; }

/* Site footer */
.site-footer {
  background: var(--color-bg);
  padding: 3rem 0 0;
}
.footer-grid {
  display: grid;
  /* Po odebrání lokalit zbyl jen kontaktní box — drží se uprostřed v rozumné šířce */
  grid-template-columns: minmax(0, 30rem);
  justify-content: center;
  gap: 2rem;
  align-items: start;
}
.footer-grid h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: var(--font-bold);
  color: var(--color-black);
}
.locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.locations li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.locations svg { color: var(--red); flex-shrink: 0; }

.contact-box {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-box h3 { color: var(--color-white); margin-top: 0; }
.contact-box p { margin: 0 0 0.5rem; font-size: 0.9rem; opacity: 0.95; }
.contact-box a { color: var(--color-white); font-weight: var(--font-semibold); }
.contact-box a:hover { opacity: 0.9; text-decoration: underline; }

/* Spodní řádek patičky — světlý, jen s jemnou linkou, ať neruší */
.footer-bar {
  margin-top: 2.5rem;
  background: transparent;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
}
.footer-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
}
.footer-bar a { color: var(--color-muted); }   /* mezeru mezi texty drží gap */
.footer-bar a:hover { color: var(--color-primary); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  padding: 1rem;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-soft), background 0.35s var(--ease-soft), visibility 0.35s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: rgba(0,0,0,.88);
}
.lightbox img {
  max-width: min(95vw, 1100px);
  max-height: 88vh;
  border-radius: 6px;
  object-fit: contain;
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
}
.lightbox.is-open img {
  transform: scale(1);
  opacity: 1;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.lightbox-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.95rem;
}

/* Procházení fotek ve zvětšeném náhledu */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-black);
  font-size: 2rem;
  line-height: 1;
  padding-bottom: 4px;
  cursor: pointer;
  transition: background 0.25s var(--ease-soft), transform 0.25s var(--ease-soft);
}
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
.lightbox-prev:hover,
.lightbox-next:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}
.lightbox-prev[hidden],
.lightbox-next[hidden],
.lightbox-count[hidden] { display: none; }

.lightbox-count {
  position: absolute;
  top: 1.35rem;
  left: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: var(--font-semibold);
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next { width: 42px; height: 42px; font-size: 1.6rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (max-width: 768px) {
  .hero-slide { background-position: 75% center; transform-origin: 75% center; }
  .hero-inner { padding: 2.5rem 0; }
  .hero .hero-content { max-width: none; }
  .hero-title { white-space: normal; }
  .hero--light::before {
    background: linear-gradient(
      180deg,
      rgba(247, 247, 247, 0.94) 0%,
      rgba(247, 247, 247, 0.82) 45%,
      rgba(0, 0, 0, 0.2) 100%
    );
  }
  .nav-toggle { display: block; }
  /* Na mobilu zbyde z kontaktu jen ikona telefonu, ať se vejde vedle menu */
  .header-inner { gap: 0.6rem; }
  .header-kontakt__tel span { display: none; }
  .header-kontakt__tel svg { width: 26px; height: 26px; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1rem;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .gallery-preview { grid-template-columns: repeat(2, 1fr); }
  .locations { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .gallery-preview { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}

.reduce-motion body,
.reduce-motion .reveal,
.reduce-motion .hero-reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}
.reduce-motion .hero-slide.is-zoomed { animation: none !important; }
.reduce-motion .lightbox,
.reduce-motion .lightbox img {
  transition: none !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ============ Logo s nápisem „Sklenářství“ ============ */
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-size: 1.35rem;
  font-weight: var(--font-extra-bold);
  letter-spacing: -0.02em;
  /* Prosté slovo, bez verzálek — vedle loga nemá konkurovat názvu firmy */
}
.brand-name strong { color: var(--color-primary); font-weight: var(--font-extra-bold); }
.brand-place {
  font-size: 0.66rem;
  font-weight: var(--font-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 0.15rem;
}
@media (max-width: 480px) {
  .brand-name { font-size: 1.1rem; }
  .brand-place { font-size: 0.58rem; }
}

/* ============ Tři hesla v banneru, pod tlačítky ============ */
.hero-claims {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.6rem;
  list-style: none;
  margin: 1.9rem 0 0;
  padding: 1.15rem 0 0;
  border-top: 1px solid rgba(17, 17, 17, 0.14);
}
.hero-claims li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: var(--font-bold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-black);
  white-space: nowrap;
}
.hero-claims svg {
  width: 21px;
  height: 21px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Na tmavém banneru (kdyby se hero--light nepoužilo) */
.hero:not(.hero--light) .hero-claims {
  border-top-color: rgba(255, 255, 255, 0.25);
}
.hero:not(.hero--light) .hero-claims li { color: var(--color-white); }

@media (max-width: 560px) {
  .hero-claims { gap: 0.7rem 1.1rem; }
  .hero-claims li { font-size: 0.68rem; }
  .hero-claims svg { width: 18px; height: 18px; }
}

/* ============ Dlaždice kategorií (služeb) ============ */
/* Flex místo gridu schválně: mřížka s auto-fit při jediné dlaždici roztáhne
   sloupec přes celou šířku. Takhle má dlaždice vždycky rozumný strop —
   při jedné i při osmi vypadá stejně. */
.tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
/* Bez rámečku a bílé podložky — fotka sedí přímo na pozadí stránky
   a dlaždice nepůsobí jako kartička. */
.tile {
  flex: 1 1 130px;
  max-width: 190px;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease-out);
}
.tile:hover {
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}
.tile:hover .tile__label { color: var(--color-primary); }

.tile__img {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--color-bg);
  overflow: hidden;
}
.tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.tile:hover .tile__img img { transform: scale(1.05); }

.tile__prazdne {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--color-glass-dark);
  background: var(--color-glass);
  opacity: 0.55;
}
.tile__prazdne svg { width: 38%; height: 38%; }

.tiles--male .tile { max-width: 165px; }

.tile__label {
  display: block;
  padding: 0.6rem 0.15rem 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: var(--font-bold);
  line-height: 1.3;
  color: var(--color-black);
  hyphens: auto;
  transition: color 0.25s var(--ease-soft);
}

/* Červený podtržený zvýrazněný výraz v nadpisu sekce */
.section-title span {
  color: var(--color-primary);
  position: relative;
}

/* ============ Oznamovací pruh (dovolená, zavírací dny) ============ */
.site-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: var(--font-semibold);
  text-align: center;
}
.site-notice svg { flex-shrink: 0; }

/* ============ Záložky kategorií v galerii ============ */
.gallery-intro {
  text-align: center;
  color: var(--color-muted);
  margin: -1.2rem 0 1.5rem;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.gallery-tab {
  padding: 0.55rem 1.15rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: var(--font-semibold);
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.25s var(--ease-soft),
    color 0.25s var(--ease-soft),
    border-color 0.25s var(--ease-soft);
}
.gallery-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.gallery-tab.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}
.gallery-tab:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ============ Krátký text o firmě na úvodní stránce ============ */
.about-text {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}
.about-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text);
  margin: 0 0 1rem;
}
.about-text p:last-child {
  margin-bottom: 0;
  color: var(--color-muted);
}

/* ============ Banner s tmavým panelem zaříznutým do fotky ============ */
.hero--panel {
  position: relative;
  /* Výška se odvíjí od ŠÍŘKY okna, ne od jeho výšky. Fotka má pevný poměr
     stran, takže když výška roste společně se šířkou, vejde se do banneru
     celá i na menším monitoru a nevznikají prázdné pruhy nad ní a pod ní. */
  min-height: clamp(400px, 30vw, 580px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Bez tohohle by se zdědilo align-items: center z .hero a pruh s hesly
     by se scvrknul na šířku obsahu místo přes celý banner. */
  align-items: stretch;
  overflow: hidden;
  background: #15171a;
  color: var(--color-white);
}
.hero--panel::before { display: none; }   /* místo přechodu je tu panel */

/* Fotka nezabírá celý banner, ale jen plochu vpravo od panelu — začíná pod
   jeho levým okrajem, takže mezi panelem a fotkou nikdy nevznikne mezera,
   ať už je monitor jakkoli široký. Výřez se drží uprostřed téhle plochy,
   takže schodiště zůstává vidět i na širokoúhlých displejích.

   Pohyb je jen pomalé přiblížení sem a tam, aby banner nebyl úplně statický. */
.hero-foto {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 33%;
  right: 0;
  z-index: 0;
  /* contain, ne cover — fotka se nikde neořízne, jen se vejde do plochy
     vpravo od panelu. Případný zbytek plochy je stejně tmavý jako banner,
     takže není poznat. */
  background-size: contain;
  background-position: right center;
  background-repeat: no-repeat;
  transform-origin: 70% center;
  animation: hero-pohyb 26s ease-in-out infinite alternate;
  will-change: transform;
}
/* Pohyb je záměrně malý — při větším přiblížení by se okraje fotky ořízly
   a to je přesně to, čemu se tu vyhýbáme. */
@keyframes hero-pohyb {
  from { transform: scale(1); }
  to   { transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-foto { animation: none; }
}
/* Tmavá plocha ve tvaru písmene L: svislý pruh vlevo, který se směrem dolů
   zužuje, a vodorovný pruh přes celou šířku podél spodní hrany. Na tom
   spodním leží tři hesla. */
.hero-panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #15171a;
  clip-path: polygon(0 0, 42% 0, 31% 88%, 100% 88%, 100% 100%, 0 100%);
}

/* Text v banneru se drží u levého okraje, ne v prostředním sloupci stránky —
   jinak by ho vycentrovaný kontejner vytlačil ze zúžené části panelu na fotku. */
.hero--panel .hero-inner,
.hero-pas > .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: clamp(1rem, 4.5vw, 4.5rem);
  padding-right: 1rem;
}
.hero--panel .hero-inner {
  position: relative;
  z-index: 2;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
}
.hero--panel .hero-content { max-width: 26rem; }

/* Vodorovná část „L“ */
/* Spodní pruh je jen o málo vyšší než samotný text */
.hero-pas {
  position: relative;
  z-index: 2;
  padding: 0.85rem 0 0.95rem;
}
.hero-pas .hero-claims {
  margin: 0;
  padding: 0;
  border: 0;
  justify-content: flex-start;
  gap: 1rem 3.5rem;
}
/* Jedna obyčejná věta místo hesel — bez verzálek, s krátkou červenou linkou
   před textem, ať pruh nepůsobí prázdně. */
.hero--panel .hero-pas .hero-claims li {
  gap: 0.85rem;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  font-weight: var(--font-regular);
  letter-spacing: 0.005em;
  text-transform: none;
  white-space: normal;
  color: rgba(255, 255, 255, 0.82);
}
.hero--panel .hero-pas .hero-claims li::before {
  content: "";
  width: 2.25rem;
  height: 3px;
  flex-shrink: 0;
  background: var(--color-primary);
}
.hero--panel .hero-pas .hero-claims strong {
  color: var(--color-white);
  font-weight: var(--font-bold);
}
@media (max-width: 820px) {
  /* Na mobilu je věta vycentrovaná na dva řádky — linka by tam překážela */
  .hero--panel .hero-pas .hero-claims li { text-align: center; line-height: 1.45; }
  .hero--panel .hero-pas .hero-claims li::before { display: none; }
  .hero--panel .hero-pas .hero-claims strong { white-space: nowrap; }
}

.hero--panel h1 {
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: -0.015em;
  /* Menší než výchozí nadpis, aby se vešel do svislé části panelu */
  font-size: clamp(25px, 2.3vw, 36px);
  line-height: 1.14;
}
.hero-title__zvyrazneni { display: block; color: var(--color-primary); }
.hero--panel .hero-text { color: rgba(255, 255, 255, 0.78); }

.btn--sipka { text-transform: uppercase; letter-spacing: 0.04em; }

@media (max-width: 820px) {
  /* Na mobilu se banner rozpadne do tří pater pod sebou: tmavý panel
     s nadpisem, pod ním fotka v plné síle (bez ztmavení, bez textu přes ni)
     a dole pruh s hesly. */
  .hero--panel { min-height: 0; }
  .hero-panel { display: none; }
  .hero--panel .hero-inner {
    order: 1;
    flex: 0 0 auto;
    padding-top: 2rem;
    padding-bottom: 1.75rem;
  }
  .hero--panel .hero-content { max-width: none; }
  .hero--panel .hero-text { margin-bottom: 0; }
  .hero-foto {
    order: 2;
    position: relative;
    inset: auto;
    left: 0;
    width: 100%;
    /* Poměr stran odpovídá samotné fotce (1916 × 821 px), takže je vidět
       celá, bez ořezu po stranách. */
    aspect-ratio: 1916 / 821;
    background-size: cover;
    background-position: center;
    animation: none;
    will-change: auto;
  }
  .hero-pas { order: 3; }
  .hero-pas .hero-claims { justify-content: center; gap: 0.8rem 1.6rem; }
}

/* ============ Sekce o firmě — koláž strojů přes celou šířku ============ */
/* Fotky z dílny tvoří pás přes celou šířku okna, na krajích se vytrácejí
   do ztracena. Uprostřed je koláž přikrytá světlým závojem, takže ustoupí
   do pozadí a text na ní zůstane dobře čitelný. */
.o-firme-kolaz {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--color-bg-soft);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}
.o-firme-kolaz__fotky {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 6px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
}
.o-firme-kolaz__fotky img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Závoj: uprostřed za textem silnější, k okrajům slábne, ať jsou fotky vidět */
.o-firme-kolaz::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    60% 85% at 50% 50%,
    rgba(250, 250, 250, 0.55) 0%,
    rgba(250, 250, 250, 0.35) 45%,
    rgba(250, 250, 250, 0.05) 100%
  );
}
.o-firme-kolaz > .container { position: relative; z-index: 2; }
.o-firme-kolaz__text {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.25rem 2.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-top: 3px solid var(--color-primary);
  box-shadow: var(--shadow);
}
.o-firme-kolaz__text .section-title { margin-bottom: 1rem; }
.o-firme-kolaz__text p { line-height: 1.75; margin: 0 0 1rem; font-size: 1.05rem; }
.o-firme-kolaz__text p:last-child { margin: 1.5rem 0 0; }

@media (max-width: 820px) {
  /* Na mobilu 3 sloupce × 4 řady, ať fotky nejsou nudle */
  /* Víc místa nad a pod kartou, ať je koláž vidět i na úzkém displeji */
  .o-firme-kolaz { padding: 6rem 0; }
  .o-firme-kolaz__fotky {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
  }
  .o-firme-kolaz__text { padding: 1.75rem 1.25rem; }
}

/* ============ Koláž fotek jako podkres sekce (zatím nepoužito) ============ */
.sekce-podkres {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.podkres {
  position: absolute;
  inset: 0 6%;
  z-index: 0;
  pointer-events: none;
  /* Tímhle jediným číslem se ladí, jak moc je koláž vidět. */
  opacity: 0.55;
  filter: blur(2.5px) saturate(0.55) brightness(1.1);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 20%, #000 80%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 20%, #000 80%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-composite: intersect;
}
.podkres__mrizka {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 6px;
  width: 100%;
  height: 100%;
}
.podkres__mrizka img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Závoj, ať je text čitelný i přes koláž */
.sekce-podkres::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    70% 80% at 50% 50%,
    rgba(250, 250, 250, 0.55) 0%,
    rgba(250, 250, 250, 0.35) 60%,
    rgba(250, 250, 250, 0.12) 100%
  );
}
.sekce-podkres > .container { position: relative; z-index: 2; }

/* Sekce musí být dost vysoká, aby koláž nebyla jen proužek */
.sekce-podkres { min-height: 420px; display: flex; align-items: center; }

@media (max-width: 820px) {
  .podkres { inset: 0; opacity: 0.12; }
  .podkres__mrizka { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .podkres { display: none; }
}

/* ============ Video jako podkres sekce ============
   Video je jen dekorace — je rozmazané, ztlumené a okraje se rozplývají do
   stránky, takže text nad ním zůstane čitelný. Načítá se až když sekce
   doroluje do záběru a na mobilu vůbec (viz js/main.js). */
.sekce-video {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Užší než celá sekce — po stranách zůstane vzduch a přechod do ztracena
   je pak vidět líp. Číslo vlevo/vpravo = jak moc je pás zúžený. */
.video-podklad {
  position: absolute;
  inset: 0 8%;
  z-index: 0;
  pointer-events: none;
}
.video-podklad__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Záběr posunutý dolů — v horní části videa bývá obloha a stropy,
     zajímavá práce se odehrává ve spodní polovině. */
  object-position: center 78%;
  opacity: 0;
  filter: blur(3px) saturate(0.92) brightness(1.14);
  transform: scale(1.06);           /* schová rozmazané okraje */
  transition: opacity 1.2s var(--ease-soft);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
  mask-composite: intersect;
}
/* Síla podkresu. Tohle je to jediné číslo, kterým se ladí, jak moc je
   video vidět — výš = výraznější, níž = decentnější. */
.video-podklad__media.je-videt { opacity: 0.62; }

/* Zesvětlení, ať je text čitelný i přes běžící video. Je to jemný závoj přes
   celou plochu, ne silná skvrna uprostřed — ta předtím video schovávala právě
   tam, kde ho má být vidět nejvíc. */
.sekce-video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    75% 85% at 50% 50%,
    rgba(250, 250, 250, 0.52) 0%,
    rgba(250, 250, 250, 0.4) 60%,
    rgba(250, 250, 250, 0.2) 100%
  );
}
.sekce-video > .container { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .video-podklad { display: none; }
}

/* ============ Pás ukázek realizací přes celou šířku okna ============
   Stejná logika jako u banneru a mapy — obsah jde od kraje ke kraji, aby to
   mělo napříč stránkou jednotný rytmus. Selektor přes #id schválně: přebíjí
   pravidla .gallery-preview, která JavaScript prvku doplní. */
/* Koláž: první fotka velká přes čtyři pole, zbylé čtyři kolem ní.
   Rozvržení na širokém displeji:
       ┌───────┬───┬───┐
       │       │ 2 │ 3 │
       │   1   ├───┼───┤
       │       │ 4 │ 5 │
       └───────┴───┴───┘ */
#home-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* Pevná výška řádku schválně. Kdyby ji určoval obsah, velká fotka
     s vysokým rozlišením by řádek roztáhla a koláž by zabrala půl stránky. */
  grid-auto-rows: clamp(110px, 17vw, 250px);
  gap: 4px;
  width: 100%;
  max-width: none;
  margin: 0;
}
#home-gallery button {
  border-radius: 0;
  aspect-ratio: auto;
  height: 100%;
  /* Bez tohohle by se mřížka mohla roztáhnout podle rozměru obrázku uvnitř. */
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
#home-gallery button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#home-gallery button:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
#home-gallery button:hover {
  transform: none;          /* v souvislém pásu by nadzvednutí rozbilo řadu */
  box-shadow: none;
}
#home-gallery button:hover img { transform: scale(1.04); }

@media (max-width: 900px) {
  /* Na užších displejích velká fotka přes celou šířku a pod ní čtyři malé */
  #home-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(100px, 28vw, 190px);
  }
  #home-gallery button:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
}

/* ============ Kontaktní údaje ve třech sloupcích ============ */
.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.kontakt-grid h2 {
  font-size: 1.05rem;
  font-weight: var(--font-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 0.75rem;
}
.kontakt-grid p { margin: 0; line-height: 1.8; }

/* ============ Mapa jako obrázek s přechodem do ztracena ============ */
.mapa {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-soft);
  isolation: isolate;
  min-height: 440px;
  display: flex;
  align-items: center;
}

/* Obrázek mapy — celá šířka, klikací */
.mapa__podklad {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
}
.mapa__podklad img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
  /* Okraje se rozplývají do stránky — obrázek nemá ostrou hranu.
     Vlevo silněji, aby na něm byl čitelný text. */
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 16%, #000 42%, #000 82%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 16%, #000 42%, #000 82%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}

/* Přechod do ztracena: vlevo plná barva pozadí kvůli čitelnosti textu,
   vpravo a po okrajích se mapa rozplyne do stránky. */
.mapa::before,
.mapa::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
/* Zesvětlení pod textem, aby byl čitelný i na tmavší fotce */
.mapa::before {
  background: linear-gradient(
    90deg,
    var(--color-bg-soft) 0%,
    rgba(250, 250, 250, 0.92) 22%,
    rgba(250, 250, 250, 0.6) 38%,
    rgba(250, 250, 250, 0.12) 58%,
    rgba(250, 250, 250, 0) 74%
  );
}
.mapa::after { display: none; }

.mapa__vrstva {
  position: relative;
  z-index: 2;
  padding: 4.5rem 0;
  pointer-events: none;              /* klik projde na mapu pod tím */
}
.mapa__karta {
  max-width: 27rem;
  pointer-events: auto;              /* ale obsah karty klikací zůstává */
}
.mapa__karta h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: var(--font-bold);
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
}
.mapa__adresa { margin: 0 0 0.9rem; line-height: 1.6; }
.mapa__adresa strong { font-size: 1.15rem; color: var(--color-black); }
.mapa__hodiny { margin: 0 0 1.2rem; line-height: 1.7; color: var(--color-muted); }
.mapa__karta .google-rating { margin-bottom: 1.2rem; }
.mapa__akce { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Bez nahraného obrázku se sekce chová jako běžný blok s textem */
.mapa--bez-obrazku { background: var(--color-bg-soft); }
.mapa--bez-obrazku::before,
.mapa--bez-obrazku::after { display: none; }

@media (max-width: 820px) {
  /* Na mobilu se mapa rozplývá odspodu, aby text nahoře zůstal čitelný */
  .mapa::before {
    background: linear-gradient(
      180deg,
      var(--color-bg-soft) 0%,
      rgba(250, 250, 250, 0.95) 40%,
      rgba(250, 250, 250, 0.6) 62%,
      rgba(250, 250, 250, 0.1) 88%
    );
  }
  .mapa__vrstva { padding: 2.75rem 0 12rem; }
  .mapa__karta { max-width: none; }
}

/* ============ Jak se k nám dostanete (mapa + hodnocení) ============ */
.visit-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) 1.15fr;
  gap: 2rem;
  align-items: stretch;
}
@media (max-width: 820px) {
  .visit-grid { grid-template-columns: 1fr; }
}

.visit-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.visit-info p { margin: 0; line-height: 1.7; }
.visit-address strong { font-size: 1.1rem; color: var(--color-black); }

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.visit-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
}
.visit-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* Hodnocení z Googlu — jen odkaz na profil, žádná strukturovaná data */
.google-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  align-self: flex-start;
  padding: 0.7rem 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft);
}
.google-rating:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}
.google-rating__score {
  font-size: 1.6rem;
  font-weight: var(--font-extra-bold);
  color: var(--color-black);
  line-height: 1;
}
.google-rating__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.google-rating__stars {
  color: #F5A623;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  line-height: 1;
}
.google-rating__text {
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* ============ Seznam úprav skla ============ */
.feature-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  display: grid;
  gap: 0.85rem;
}
.feature-list li {
  position: relative;
  padding-left: 1.9rem;
  line-height: 1.6;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}
.feature-list strong { color: var(--color-black); }

/* ============ O nás — co zpracováváme a čím ============ */
.dilna {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 2rem;
  align-items: stretch;
}
.dilna__blok {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  padding: 1.75rem 1.75rem 1.5rem;
}
.dilna__blok h2 {
  font-size: clamp(22px, 2vw, 26px);
  margin: 0 0 1rem;
}
.dilna__blok p { margin: 0 0 1rem; line-height: 1.7; }
.dilna__blok p:last-child { margin-bottom: 0; }
.dilna__tloustka {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 1.5rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
}
.dilna__tloustka strong {
  font-size: 2rem;
  font-weight: var(--font-extra-bold);
  color: var(--color-black);
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.dilna__blok .feature-list { max-width: none; margin: 0; }
@media (max-width: 820px) {
  .dilna { grid-template-columns: 1fr; gap: 1.25rem; }
  .dilna__blok { padding: 1.35rem 1.25rem 1.25rem; }
  .dilna__tloustka { flex-direction: column; gap: 0.2rem; }
}

/* Na stránce Kontakt je patička jen s pruhem dole — bez mezery nad ním */
.site-footer--bez-kontaktu { padding-top: 0; }
.site-footer--bez-kontaktu .footer-bar { margin-top: 0; }

/* Patička vždy dole: když má stránka málo obsahu, main se roztáhne
   a patička nezůstane viset uprostřed obrazovky. */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body > .site-footer { flex-shrink: 0; }
