/* Elektro Euron — industrial reliability (+ manual light/dark) */

/* Display řez je hostovaný lokálně: o jedno spojení méně a žádné volání
   na servery třetí strany (Google Fonts CDN je v EU z pohledu GDPR sporné).
   Sofia Sans Condensed, OFL 1.1. */
@font-face {
  font-family: "Sofia Sans Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/sofia-sans-condensed-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Sofia Sans Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/sofia-sans-condensed-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Sofia Sans Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/sofia-sans-condensed-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Sofia Sans Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/sofia-sans-condensed-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Skrýt lištu Google Translate / Immersive Translate, pokud ji prohlížeč stejně vloží */
.goog-te-banner-frame,
.skiptranslate,
#goog-gt-tt,
.goog-te-gadget,
.VIpgJd-ZVi9od-ORHb-OEYm4d,
iframe.skiptranslate {
  display: none !important;
  visibility: hidden !important;
}

body {
  top: 0 !important;
}

:root {
  color-scheme: light;

  --green: #1fa03a;
  --green-dark: #16802e;
  --green-soft: #e8f6eb;
  /* Zelená pro text a ikony na antracitu — #1fa03a by na tmavé neprošla 4,5 : 1 */
  --green-on-dark: #46c964;
  /* Plné tlačítko: bílý text na #1fa03a má jen 3,5 : 1, proto tmavší odstín (5,0 : 1) */
  --btn-bg: #16802e;
  --btn-bg-hover: #11621f;
  --btn-fg: #ffffff;
  --ink: #111111;
  --ink-soft: #2a2a2a;
  --muted: #5b6460;
  --line: #e2e7e3;
  --line-strong: #cfd6d1;
  --paper: #ffffff;
  --paper-alt: #f2f4f2;
  --surface: #ffffff;
  --surface-alt: #f7f8f7;
  --white: #ffffff;
  /* Antracit místo černé — footer a tmavá pásma */
  --panel: #23292e;
  --panel-deep: #1b2024;
  --panel-line: rgba(255, 255, 255, 0.14);
  --on-panel: #f2f5f2;
  --on-panel-muted: rgba(242, 245, 242, 0.78);
  --header-bg: #ffffff;
  --header-bg-solid: #ffffff;
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 10px 26px rgba(17, 17, 17, 0.06);
  --logo-filter: none;
  --font-display: "Sofia Sans Condensed", "Cabinet Grotesk", "Segoe UI Condensed", "Segoe UI", sans-serif;
  --font-body: "Satoshi", "Segoe UI", sans-serif;
  --r: 0.25rem;
  --r-sm: 0.2rem;
  --max: 64rem;
  --max-bleed: 72rem;
  --gutter: clamp(1.15rem, 3.2vw, 2rem);
  --nav-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --touch: 2.75rem;
  --hover-border: color-mix(in srgb, var(--green) 50%, var(--line));
}

@media (min-width: 1400px) {
  :root {
    --max: 68rem;
  }
}

@media (min-width: 1800px) {
  :root {
    --max: 70rem;
    --gutter: clamp(1.5rem, 3vw, 2.5rem);
  }
}

@media (min-width: 2400px) {
  :root {
    --max: 72rem;
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --green: #2ebd4d;
  --green-dark: #3dcf5c;
  --green-soft: #16321c;
  --green-on-dark: #46c964;
  /* V tmavém režimu nese tlačítko světlou zeleň a tmavý text (7,8 : 1) */
  --btn-bg: #2ebd4d;
  --btn-bg-hover: #46c964;
  --btn-fg: #0f1210;
  --ink: #e8ebe6;
  --ink-soft: #c8d0c9;
  --muted: #9aa39b;
  --line: #2c342e;
  --line-strong: #3b453e;
  --paper: #0f1210;
  --paper-alt: #141815;
  --surface: #171b18;
  --surface-alt: #1c211d;
  --white: #ffffff;
  --panel: #171d21;
  --panel-deep: #101417;
  --panel-line: rgba(255, 255, 255, 0.12);
  --on-panel: #eef2ee;
  --on-panel-muted: rgba(238, 242, 238, 0.74);
  --header-bg: #0f1210;
  --header-bg-solid: #0f1210;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  --logo-filter: brightness(1.08) contrast(1.05);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 0.92rem + 0.25vw, 1.1rem);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  transition: color 0.25s ease, background-color 0.25s ease;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

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

/* Titulky: kondenzovaný řez. Kondenzovaná písmena nesou o ~8 % méně optické
   šířky, proto mají titulky o stupeň větší velikosti než u předchozího řezu. */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.004em;
  text-wrap: balance;
}

/* Velká písmena jen tam, kde titulek funguje jako štítek nebo sekční hlavička.
   Odstavcové titulky v článcích (.prose) zůstávají čitelně v mixed case. */
.section-head h2,
.page-hero h1,
.hero--split h1,
.path-body h2,
.comp-feature-label strong,
.comp-tile-label strong,
.comp-list strong,
.tick-label strong,
.card-stack h3,
.banner-cta h2,
.cslide__title,
.store-body h3,
.ref-copy h3,
.service-link h3,
.aktualita-card-body h2,
.footer-grid h2,
.footer-grid h3,
.footer-claim p,
.certs-group,
.contact-side h2 {
  text-transform: uppercase;
  letter-spacing: 0.012em;
}

/* Zelené slovo v claimu (AMiT má takto červené) */
.hl {
  color: var(--green-dark);
}

.section--panel .hl,
.banner-cta .hl,
.site-footer .hl {
  color: var(--green-on-dark);
}

.site {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top));
}

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

a {
  color: var(--green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--panel);
  color: var(--on-panel);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

/* Header — fixed so menu is always reachable */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--header-bg-solid);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
  transition:
    box-shadow 0.3s var(--ease),
    background 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border-bottom-color: var(--line);
}

.nav {
  position: relative;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 1;
  min-width: 0;
  z-index: 2;
  transition: opacity 0.22s var(--ease), transform 0.28s var(--ease);
}

.brand:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.brand img {
  width: auto;
  height: clamp(2.1rem, 4.5vw, 2.65rem);
  max-width: min(11.5rem, 52vw);
  object-fit: contain;
  display: block;
  filter: var(--logo-filter);
  transition: transform 0.35s var(--ease);
}

.brand:hover img {
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 1.5vw, 1.35rem);
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0.15rem;
  white-space: nowrap;
  position: relative;
  transition: color 0.22s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0.15rem;
  right: 0.15rem;
  bottom: 0.05rem;
  height: 2px;
  border-radius: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--green-dark);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  flex-shrink: 0;
  z-index: 2;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding: 0.4rem 0.95rem;
  border: 2px solid transparent;
  border-radius: var(--r);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
}

.nav-phone:hover,
.nav-phone:focus-visible {
  background: var(--btn-bg-hover);
  color: var(--btn-fg);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch);
  height: var(--touch);
  flex-shrink: 0;
  margin-left: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.22s var(--ease);
}

.theme-toggle:hover,
.nav-toggle:hover {
  border-color: var(--green);
  color: var(--green-dark);
  background: var(--green-soft);
}

.theme-toggle:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.theme-toggle:active {
  transform: scale(0.96);
}

.theme-toggle .theme-icon {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  background: currentColor;
  pointer-events: none;
  -webkit-mask: var(--theme-icon) center / contain no-repeat;
  mask: var(--theme-icon) center / contain no-repeat;
}

.theme-toggle .icon-sun {
  --theme-icon: url("../media/icons/sun.svg");
}

.theme-toggle .icon-moon {
  --theme-icon: url("../media/icons/moon.svg");
}

html:not([data-theme="dark"]) .theme-toggle .icon-sun,
html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.nav-toggle {
  display: none;
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
  width: var(--touch);
  height: var(--touch);
  border-radius: var(--r);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  z-index: 60;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.28s var(--ease), opacity 0.2s;
}

.nav-toggle span:nth-child(1) {
  transform: translate(-50%, calc(-50% - 6px));
}

.nav-toggle span:nth-child(2) {
  transform: translate(-50%, -50%);
}

.nav-toggle span:nth-child(3) {
  transform: translate(-50%, calc(-50% + 6px));
}

.nav.is-open .nav-toggle span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav.is-open .nav-toggle span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 980px) {
  /* One row: brand | theme + phone + hamburger */
  .nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    height: var(--nav-h);
    overflow: visible;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand img {
    height: clamp(1.85rem, 7vw, 2.25rem);
    max-width: min(9.5rem, 42vw);
  }

  .nav-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    flex: 0 0 auto;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-phone {
    padding: 0.35rem 0.7rem;
    font-size: 0.92rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: calc(var(--nav-h) + env(safe-area-inset-top));
    bottom: 0;
    transform: none;
    margin: 0;
    z-index: 55;
  }

  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--header-bg-solid);
    padding: 0.75rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom));
    border-bottom: 1px solid var(--line);
    gap: 0.15rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nav.is-open .nav-links a {
    display: block;
    padding: 0.85rem 0.25rem;
    font-size: 1.05rem;
    white-space: normal;
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open .nav-links a::after {
    display: none;
  }

  body.nav-locked {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    touch-action: none;
  }
}

@media (max-width: 420px) {
  .nav-phone {
    font-size: 0;
    letter-spacing: 0;
    width: var(--touch);
    min-width: var(--touch);
    padding: 0;
  }

  .nav-phone::before {
    content: "Tel";
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
  }
}

/* Buttons — jeden jazyk: plné (primary) a obrys (ghost / secondary) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--touch);
  padding: 0.65rem 1.45rem;
  border-radius: var(--r);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
  text-align: center;
  max-width: 100%;
}

.btn:active:not(:disabled) {
  filter: brightness(0.94);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--btn-bg-hover);
  color: var(--btn-fg);
}

.btn-secondary,
.btn-secondary.on-light,
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover,
.btn-secondary:focus-visible,
.btn-secondary.on-light:hover,
.btn-secondary.on-light:focus-visible,
.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--green-dark);
  border-color: var(--green);
  background: var(--green-soft);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section--panel .btn-secondary,
.section--panel .btn-ghost,
.banner-cta .btn-secondary,
.banner-cta .btn-ghost,
.site-footer .btn-ghost {
  color: var(--on-panel);
  border-color: rgba(255, 255, 255, 0.45);
}

.section--panel .btn-secondary:hover,
.section--panel .btn-secondary:focus-visible,
.section--panel .btn-ghost:hover,
.section--panel .btn-ghost:focus-visible,
.banner-cta .btn-secondary:hover,
.banner-cta .btn-secondary:focus-visible,
.banner-cta .btn-ghost:hover,
.banner-cta .btn-ghost:focus-visible,
.site-footer .btn-ghost:hover,
.site-footer .btn-ghost:focus-visible {
  color: var(--white);
  border-color: var(--green-on-dark);
  background: rgba(70, 201, 100, 0.14);
}

.section-more {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
}

/* Hero — editorial left/bottom, brand-led */
.hero {
  position: relative;
  min-height: min(72svh, 42rem);
  min-height: min(72dvh, 42rem);
  max-height: none;
  display: grid;
  align-items: end;
  justify-items: stretch;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 35%;
  transform: scale(1.05);
  animation: kenburns 18s var(--ease) forwards;
}

@keyframes kenburns {
  to {
    transform: scale(1);
  }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(17, 17, 17, 0.88) 0%,
      rgba(17, 17, 17, 0.62) 34%,
      rgba(17, 17, 17, 0.22) 58%,
      rgba(17, 17, 17, 0.08) 100%
    ),
    linear-gradient(180deg, rgba(17, 17, 17, 0.12) 0%, rgba(17, 17, 17, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - (var(--gutter) * 2), var(--max));
  max-width: 36rem;
  margin: 0 auto 0 max(var(--gutter), calc((100% - var(--max)) / 2));
  padding: 1.5rem 0 4.25rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 1.15rem;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero-brand:hover,
.hero-brand:focus-visible {
  color: inherit;
}

.hero-brand img {
  width: clamp(13.5rem, 52vw, 21rem);
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.4));
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 0.95rem + 0.75vw, 1.45rem);
  line-height: 1.28;
  max-width: 30ch;
  margin: 0 0 0.7rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  text-wrap: balance;
  color: rgba(255, 255, 255, 0.94);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.35s forwards;
}

.hero-lead {
  margin: 0 0 1.5rem;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
  text-wrap: pretty;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.5s forwards;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.65s forwards;
}

.hero-secondary {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

.hero-secondary:hover,
.hero-secondary:focus-visible {
  color: var(--white);
}

.hero-continue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  cursor: pointer;
  transform: translateX(-50%);
}

.hero-continue:hover,
.hero-continue:focus-visible {
  color: var(--white);
}

.hero-continue span {
  display: block;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: hero-nudge 1.6s var(--ease) infinite;
}

@keyframes hero-nudge {
  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
    opacity: 0.55;
  }
  50% {
    transform: rotate(45deg) translate(0.15rem, 0.15rem);
    opacity: 1;
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Hero — dělený: text na pozadí stránky vlevo (zarovnaný s containerem),
   fotka sídla vpravo až k okraji okna */
.hero.hero--split {
  display: grid;
  grid-template-columns:
    minmax(var(--gutter), 1fr)
    minmax(0, calc(var(--max) / 2))
    minmax(0, calc(var(--max) / 2))
    minmax(var(--gutter), 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  background: var(--paper-alt);
  color: var(--ink);
  min-height: 0;
  height: clamp(16.5rem, 38vw, 22.5rem);
}

.hero--split .hero-content {
  grid-column: 2;
  grid-row: 1;
  width: auto;
  max-width: none;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.5rem) clamp(2.25rem, 4vw, 2.75rem) 0;
  justify-content: center;
}

.hero--split .hero-brand {
  margin-bottom: 0.7rem;
}

.hero--split .hero-brand img {
  width: clamp(9.5rem, 22vw, 13.5rem);
  filter: var(--logo-filter);
}

.hero--split .hero-brand:hover img {
  filter: var(--logo-filter);
}

.hero--split h1 {
  color: var(--ink);
  text-shadow: none;
  font-size: clamp(1.05rem, 0.95rem + 0.55vw, 1.35rem);
  margin: 0 0 0.4rem;
  max-width: none;
}

.hero--split .hero-lead {
  color: var(--muted);
  text-shadow: none;
  margin: 0;
  font-size: 0.95rem;
  max-width: 42rem;
}

.hero--split .hero-secondary {
  color: var(--ink-soft);
}

.hero--split .hero-secondary:hover,
.hero--split .hero-secondary:focus-visible {
  color: var(--green-dark);
}

.hero--split .hero-media {
  grid-column: 3 / 5;
  grid-row: 1;
  position: relative;
  inset: auto;
  min-height: 100%;
  overflow: hidden;
}

.hero--split .hero-media img {
  object-position: 42% 38%;
}

.hero--split .hero-media::after {
  background: none;
}

/* Šipka „pokračovat“ na středu stránky */
.hero--split .hero-continue {
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: var(--touch);
  height: var(--touch);
  padding: 0;
  display: grid;
  place-items: center;
  gap: 0;
  /* Šipka leží na švu světlý panel / tmavá fotka. Střední šedá drží kontrast
     nad 3 : 1 na obou polovinách; v tmavém režimu je pod ní tma, proto bílá. */
  --arrow: #737373;
  color: var(--arrow);
  transition: color 0.25s;
  animation: hero-drift 1.6s var(--ease) infinite;
}

html[data-theme="dark"] .hero--split .hero-continue {
  --arrow: #ffffff;
}

.hero--split .hero-continue:hover,
.hero--split .hero-continue:focus-visible {
  color: var(--green);
  animation-play-state: paused;
}

.hero--split .hero-continue:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

/* Šipka je otočený kvadrát se dvěma okraji — kresba leží v dolní polovině
   svého obalu, proto posun vzhůru o čtvrtinu úhlopříčky (0,354 × strana). */
.hero--split .hero-continue span {
  width: 0.62rem;
  height: 0.62rem;
  margin: 0;
  opacity: 1;
  animation: none;
  transform: translateY(-0.22rem) rotate(45deg);
}

/* Posouvá se celé tlačítko, ne kresba uvnitř — šipka tak zůstane vycentrovaná.
   translateX(-50%) musí být součástí keyframů, jinak by se vyrušil. */
@keyframes hero-drift {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 0.3rem);
  }
}

@media (max-width: 900px) {
  .hero.hero--split {
    grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, var(--max)) minmax(var(--gutter), 1fr);
    grid-template-rows: auto auto;
    height: auto;
    min-height: 0;
  }

  .hero--split .hero-media {
    grid-column: 1 / -1;
    grid-row: 1;
    aspect-ratio: 16 / 9;
    max-height: 28svh;
    max-height: 28dvh;
    min-height: 0;
  }

  .hero--split .hero-content {
    grid-column: 2;
    grid-row: 2;
    padding: 1.1rem 0 1.35rem;
    justify-content: flex-start;
  }

  /* Ve sloupcovém layoutu šipka leží na textu — pryč, obsah už je pod fotkou. */
  .hero--split .hero-continue {
    display: none;
  }
}

/* Sections */
.section {
  padding: clamp(3.25rem, 7vw, 5.5rem) 0 clamp(2.75rem, 6vw, 4.5rem);
  background: var(--paper);
}

/* Střídavá pásma: světlé a antracitové (AMiT střídá #fff / #f7f7f7 / #101010) */
.section--alt {
  background: var(--paper-alt);
}

.section--panel {
  background: var(--panel);
  color: var(--on-panel);
}

.section--panel .section-head h2 {
  color: var(--on-panel);
}

.section--panel .section-head p {
  color: var(--on-panel-muted);
}

.section--panel a {
  color: var(--green-on-dark);
}

.section--tight {
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}

/* Prvek přes celou šířku okna i uvnitř containeru */
.bleed {
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
}

.section-head {
  margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
  max-width: 46rem;
  text-align: center;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1.04;
  margin: 0 0 0.6rem;
}

.section-head p {
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.2rem);
  max-width: 38rem;
  text-wrap: pretty;
}

/* Hlavička vlevo — pro sekce, pod kterými pokračuje textový sloupec */
.section-head--left {
  margin-inline: 0;
  text-align: left;
  max-width: 40rem;
}

.section-head--left p {
  margin-inline: 0;
}

/* Clear break after full-bleed / photo sections */
.paths + .section,
.section-comp + .section,
.section-refs + .section {
  padding-top: clamp(3.25rem, 7vw, 5.5rem);
}

.section-refs {
  padding-top: clamp(3.25rem, 7vw, 5.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background: transparent;
}

.section-refs .section-head {
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.section-trust {
  display: none;
}

#prodejny {
  padding-top: clamp(3.25rem, 7vw, 5.5rem);
  background: transparent;
}

#prodejny .section-head {
  margin-bottom: clamp(1.75rem, 3vw, 2.25rem);
}

.trust-line {
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  max-width: 42rem;
}

.trust-line strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal.is-instant,
html.scroll-fast .reveal,
html.scroll-fast .reveal.is-visible {
  transition: none !important;
  transition-delay: 0ms !important;
}

/* Photo blocks must not visually slide over the next heading */
.ref-feature.reveal,
.ref-feature.reveal.is-visible {
  transform: none;
}

.reveal-child {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible .reveal-child {
  opacity: 1;
  transform: none;
}

.reveal.is-instant .reveal-child,
html.scroll-fast .reveal-child {
  opacity: 1;
  transform: none;
  transition: none !important;
  transition-delay: 0ms !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img,
  .hero-brand,
  .hero h1,
  .hero-lead,
  .hero-actions {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-continue span,
  .hero--split .hero-continue {
    animation: none !important;
  }

  .reveal,
  .reveal-child {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Paths split — constrained, not edge-to-edge */
.paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
  border-radius: var(--r);
  overflow: hidden;
  min-height: clamp(15rem, 28vw, 20rem);
}

.path {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(14rem, 26vw, 19rem);
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  text-decoration: none;
  color: var(--white);
  overflow: hidden;
  min-width: 0;
}

.path:hover,
.path:focus,
.path:focus-visible {
  color: var(--white);
}

.path img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.path::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(17, 17, 17, 0.32), rgba(17, 17, 17, 0.32)),
    linear-gradient(
      180deg,
      rgba(17, 17, 17, 0.25) 0%,
      rgba(17, 17, 17, 0.5) 35%,
      rgba(17, 17, 17, 0.92) 100%
    );
  transition: background 0.35s;
}

.path:hover img {
  transform: scale(1.04);
}

.path-shop img {
  object-position: center 55%;
}

.path:hover::after,
.path:focus-visible::after {
  background:
    linear-gradient(rgba(17, 17, 17, 0.24), rgba(17, 17, 17, 0.24)),
    linear-gradient(
      180deg,
      rgba(17, 17, 17, 0.22) 0%,
      rgba(17, 17, 17, 0.52) 40%,
      rgba(17, 17, 17, 0.8) 75%,
      rgba(22, 128, 46, 0.4) 100%
    );
}

.path:focus-visible {
  outline-offset: -4px;
}

.path-body {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.path-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1.4vw, 2rem);
  margin: 0 0 0.5rem;
  color: var(--white);
  text-wrap: balance;
}

.path-body p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 34ch;
}

.path-cta {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.3s var(--ease), gap 0.3s var(--ease);
}

.path:hover .path-cta,
.path:focus-visible .path-cta {
  transform: translateX(4px);
}

.path:hover .path-body,
.path:hover .path-body h2,
.path:hover .path-body p,
.path:hover .path-cta,
.path:focus-visible .path-body,
.path:focus-visible .path-body h2,
.path:focus-visible .path-body p,
.path:focus-visible .path-cta {
  color: var(--white);
}

@media (max-width: 900px) {
  .paths {
    grid-template-columns: 1fr;
  }
}

/* Competencies — featured photo strips + typographic list */
.section-comp {
  position: relative;
  color: var(--ink);
  padding: clamp(3.25rem, 7vw, 5.5rem) 0;
  background: transparent;
}

.section-comp .section-head h2,
.section-comp .section-head p {
  color: inherit;
}

.section-comp .section-head p {
  color: var(--muted);
}

.comp-featured {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.4vw, 1rem);
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.comp-feature {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  color: var(--green-dark);
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

.comp-feature .comp-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}

.comp-feature .comp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.comp-feature-label {
  display: block;
  padding: 0.85rem 0 0;
}

.comp-feature-label strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--green-dark);
}

.comp-feature-label strong::after {
  content: " →";
  font-weight: 700;
  color: inherit;
}

.comp-feature:hover .comp-feature-label strong,
.comp-feature:focus-visible .comp-feature-label strong,
.comp-feature:active .comp-feature-label strong {
  color: var(--green);
}

.comp-feature:focus-visible .comp-media {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.comp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.comp-list li {
  border-bottom: 1px solid var(--line);
}

.comp-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 0;
  text-decoration: none;
  color: var(--green-dark);
}

.comp-list a:focus-visible {
  outline-offset: 4px;
}

.comp-list a:hover,
.comp-list a:focus-visible,
.comp-list a:active {
  color: var(--green);
}

.comp-list strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: inherit;
}

.comp-list a::after {
  content: "→";
  color: inherit;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
}

/* Legacy equal-card grid kept for any leftover markup */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.6vw, 1.15rem);
}

.comp-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.3s;
}

.comp-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper);
}

.comp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.comp-tile-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.05rem 1.15rem;
  text-shadow: none;
}

.comp-tile-label strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.15rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.comp-tile-label small {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.comp-tile:hover,
.comp-tile:focus-visible {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--green) 40%, var(--line));
}

.comp-tile:hover .comp-media img,
.comp-tile:focus-visible .comp-media img {
  transform: scale(1.04);
}

.comp-tile:focus-visible {
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .comp-featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .comp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .comp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .comp-grid {
    grid-template-columns: 1fr;
  }
}

/* Reference — stacked blocks, aligned titles, clear separation */
.ref-feature {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(0.85rem, 2vw, 1.25rem);
  background: transparent;
  color: var(--ink);
  isolation: isolate;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(1.5rem, 3.5vw, 2.5rem) 0;
  border-top: 1px solid var(--line);
}

.ref-feature:first-child {
  border-top: none;
  padding-top: 0.35rem;
}

.section-head + .ref-feature {
  border-top: none;
  padding-top: 0.35rem;
}

.ref-feature:last-child {
  padding-bottom: 0;
}

.ref-media {
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  width: 100%;
}

.ref-media img {
  width: 100%;
  height: auto;
  max-height: min(22rem, 42vw);
  object-fit: cover;
  display: block;
}

.ref-copy {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
  max-width: 46rem;
}

.ref-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem);
  margin: 0 0 0.75rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.ref-copy p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  max-width: 40rem;
  font-size: 1.02rem;
}

.ref-copy .btn {
  margin-top: 0.15rem;
}

.ref-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.55rem, 1.2vw, 0.85rem);
  width: 100%;
}

.ref-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--paper);
  display: block;
}

/* legacy reverse class — keep stacked, ignore side swap */
.ref-feature.reverse .ref-media,
.ref-feature.reverse .ref-copy {
  order: unset;
}

@media (max-width: 900px) {
  .ref-media img {
    max-height: 22rem;
  }

  .ref-gallery {
    grid-template-columns: 1fr;
  }

  .ref-gallery img {
    aspect-ratio: 16 / 10;
  }
}

/* Stores */
.stores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.35rem);
}

.store {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: none;
  transition: border-color 0.3s;
}

.store:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--hover-border);
}

.store > img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  max-height: 18rem;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s var(--ease);
}

.store-body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.store-body h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.store-body p {
  margin: 0 0 0.4rem;
  color: var(--muted);
}

.store-body .hours {
  margin-top: 0.85rem;
  color: var(--ink-soft);
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

/* Jediná prodejna — široká karta: fotka vlevo, údaje vpravo */
.stores--single {
  grid-template-columns: 1fr;
}

.store--wide {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.store--wide > img {
  height: 100%;
  min-height: 17rem;
  max-height: none;
  aspect-ratio: auto;
  object-position: 55% 50%;
}

.store--wide .store-body {
  align-self: center;
  padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.4rem);
}

@media (max-width: 760px) {
  .stores {
    grid-template-columns: 1fr;
  }

  .store--wide {
    grid-template-columns: 1fr;
  }

  .store--wide > img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

/* Trust strip */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 500;
}

.trust strong {
  color: var(--ink);
  font-family: var(--font-display);
}

@media (max-width: 640px) {
  .trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
}

/* Page hero (inner) */
.page-hero {
  padding: clamp(4rem, 8vw, 5.5rem) 0 1.15rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.prose {
  max-width: 42rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose h2 {
  font-family: var(--font-display);
  margin: 2rem 0 0.75rem;
  font-size: 1.45rem;
}

.prose h3 {
  font-family: var(--font-display);
  margin: 1.5rem 0 0.5rem;
  font-size: 1.15rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li {
  margin: 0.35rem 0;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 760px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.service-link {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: start;
  min-height: 11.5rem;
  padding: 1.2rem 1.15rem 1.25rem;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-decoration: none;
  color: #fff;
}

.service-link-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.service-link-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.service-link-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(10, 12, 11, 0.88) 0%,
    rgba(10, 12, 11, 0.62) 48%,
    rgba(10, 12, 11, 0.38) 100%
  );
}

.service-link-copy {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1 / span 2;
  min-width: 0;
}

.service-link::after {
  content: "→";
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  align-self: start;
}

.service-link:active h3,
.service-link:active::after {
  color: #d8ffd9;
}

.service-link h3 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  color: #fff;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.service-link p {
  margin: 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.page-cover {
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.page-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 22rem;
  object-fit: cover;
  display: block;
}

.page-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 1.25rem;
}

.page-cta-row .text-link {
  font-weight: 700;
  color: var(--green-dark);
  text-underline-offset: 0.18em;
}

.page-cta-row .text-link:hover,
.page-cta-row .text-link:focus-visible {
  color: var(--green);
}

.media-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.1rem);
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
}

.media-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  max-height: 16rem;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--paper);
}

@media (max-width: 760px) {
  .media-row {
    grid-template-columns: 1fr;
  }

  .media-row img {
    aspect-ratio: 16 / 10;
  }
}

/* Photo collage — bento on desktop, stacked/wrapping on small screens.
   Never clip the grid shorter than its photos (that spilled onto the next heading). */
.photo-collage {
  display: grid;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
  position: relative;
  contain: layout;
  border-radius: var(--r);
  overflow: hidden;
  background: transparent;
  border: none;
}

.photo-collage > * {
  min-width: 0;
  min-height: 0;
}

.photo-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.photo-collage--3 {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  height: clamp(13rem, 28vw, 20rem);
}

.photo-collage--3 > :first-child {
  grid-row: 1 / -1;
}

.photo-collage--4 {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  height: clamp(13.5rem, 30vw, 21rem);
}

.photo-collage--4 > :first-child {
  grid-row: 1 / -1;
}

.photo-collage--4 > :nth-child(2) {
  grid-column: 2 / -1;
}

.photo-collage--2 {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: clamp(12rem, 26vw, 18rem);
}

.photo-collage--stack {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto;
  height: auto;
  min-height: 0;
}

.photo-collage--stack img {
  aspect-ratio: 4 / 3;
  height: auto;
}

.contact-side .photo-collage--2 {
  height: 9.5rem;
}

.contact-side .photo-collage img {
  border-radius: var(--r-sm);
}

.ref-media.photo-collage {
  background: transparent;
  border: none;
  overflow: hidden;
}

.ref-media.photo-collage img {
  max-height: none;
}

.store-media {
  display: block;
  overflow: hidden;
}

.store-media.photo-collage {
  border-radius: 0;
  height: clamp(14rem, 24vw, 18rem);
}

.store-media.photo-collage img {
  border-radius: 0;
  border: none;
  border-right: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

@media (max-width: 900px) {
  .photo-collage--2,
  .photo-collage--3,
  .photo-collage--4,
  .store-media.photo-collage,
  .contact-side .photo-collage--2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto;
    height: auto;
    max-height: none;
    min-height: 0;
  }

  .photo-collage--2 img,
  .photo-collage--3 img,
  .photo-collage--4 img {
    height: auto;
    max-height: none;
  }

  .photo-collage--2 > :first-child,
  .photo-collage--3 > :first-child,
  .photo-collage--4 > :first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }

  .photo-collage--2 > :last-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }

  .photo-collage--4 > :nth-child(2) {
    grid-column: auto;
  }

  .photo-collage--3 > :not(:first-child),
  .photo-collage--4 > :not(:first-child) {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-collage img {
    transition: none !important;
    transform: none !important;
  }
}

.brand-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: center;
  margin-top: 2rem;
}

.brand-strip img {
  height: 2rem;
  width: auto;
  object-fit: contain;
  opacity: 1;
}

html[data-theme="dark"] .brand-strip img {
  opacity: 1;
  filter: none;
}

.sortiment {
  margin-top: 2.75rem;
}

.sortiment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.sortiment-card {
  min-width: 0;
  padding: 1.05rem 1.1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
}

.sortiment-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.7rem;
  color: var(--ink);
}

.sortiment-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sortiment-card li {
  max-width: 100%;
  padding: 0.22rem 0.58rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

@media (min-width: 720px) {
  .sortiment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (min-width: 1100px) {
  .sortiment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Form */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.form-card label {
  display: block;
  font-weight: 600;
  margin: 0.9rem 0 0.35rem;
}

.form-card label:first-child {
  margin-top: 0;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font: inherit;
  background: var(--paper);
}

.form-card textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  background: var(--surface);
}

.form-card input.is-invalid,
.form-card textarea.is-invalid {
  border-color: #c62828;
  background: color-mix(in srgb, #c62828 6%, var(--paper));
}

.form-card input.is-invalid:focus,
.form-card textarea.is-invalid:focus {
  outline-color: #c62828;
}

.field-error {
  margin: 0.35rem 0 0;
  color: #c62828;
  font-size: 0.88rem;
  line-height: 1.35;
}

.field-error[hidden] {
  display: none;
}

.form-note {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-success {
  display: none;
  padding: 1rem;
  background: var(--green-soft);
  border: 1px solid #b7e3c1;
  border-radius: var(--r);
  margin-bottom: 1rem;
}

.form-success.is-visible {
  display: block;
}

.contact-side h2 {
  font-family: var(--font-display);
  margin: 0 0 1rem;
}

.contact-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 55% 50%;
  border-radius: var(--r);
  margin: 0 0 1.25rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.contact-list li {
  margin: 0 0 1rem;
}

.contact-list strong {
  display: block;
  font-family: var(--font-display);
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* O nás — jedna fotka sídla */
.about-photo {
  margin: 0 0 2.5rem;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: 55% 52%;
  border-radius: var(--r);
}

.about-photo figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .about-photo img {
    aspect-ratio: 4 / 3;
  }
}

/* Certifikáty a oprávnění */
.certs-section {
  margin: 3.5rem 0 0;
}

.certs-section .section-head {
  max-width: 46rem;
}

.certs-group {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 2.25rem 0 1.1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.cert-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr));
  gap: clamp(1.1rem, 2.2vw, 1.75rem) clamp(1rem, 2vw, 1.5rem);
}

.cert {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.cert-open {
  display: block;
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.cert-open img {
  width: 100%;
  height: auto;
  aspect-ratio: 210 / 297;
  object-fit: cover;
  object-position: top;
  padding: 0.5rem;
  background: var(--surface);
}

.cert-open::after {
  content: "Zobrazit";
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  background: rgba(17, 17, 17, 0.72);
  border-radius: var(--r-sm);
  transition: background-color 0.25s;
}

.cert-open:hover,
.cert-open:focus-visible {
  border-color: var(--hover-border);
}

.cert-open:hover::after,
.cert-open:focus-visible::after {
  background: var(--green-dark);
}

.cert-open:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.cert-open:active {
  transform: scale(0.99);
}

.cert-body h4 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.cert-body p {
  margin: 0 0 0.3rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.cert-body .cert-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Lightbox (dialog) pro dokumenty */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(96vw, 100rem);
  max-height: 96vh;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(7, 9, 8, 0.86);
}

body:has(dialog.lightbox[open]) {
  overflow: hidden;
}

.lightbox-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  width: 100%;
  color: var(--white);
}

.lightbox-caption {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.lightbox-open {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.lightbox-open:hover,
.lightbox-open:focus-visible {
  color: var(--white);
}

.lightbox-close {
  width: var(--touch);
  height: var(--touch);
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-close:focus-visible,
.lightbox-open:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.lightbox img {
  display: block;
  max-width: min(96vw, 100rem);
  max-height: calc(96vh - 4.75rem);
  width: auto;
  height: auto;
  object-fit: contain;
  background: var(--white);
  border-radius: var(--r);
}

.lightbox.is-loading img {
  min-width: min(80vw, 22rem);
  min-height: 12rem;
  opacity: 0;
}

.lightbox.is-loading .lightbox-frame::after {
  content: "Načítám dokument…";
  position: absolute;
  inset: 4.5rem 0 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.lightbox-frame {
  position: relative;
}

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.team article {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.team h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.team p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer — antracit, čtyři sloupce, claim pás, copyright lišta */
.site-footer {
  margin-top: 0;
  background: var(--panel);
  color: var(--on-panel-muted);
}

.site-footer a {
  color: var(--on-panel);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--green-on-dark);
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(2.75rem, 5vw, 3.75rem) 0 clamp(2.25rem, 4vw, 3rem);
}

.footer-grid h2,
.footer-grid h3 {
  font-family: var(--font-display);
  color: var(--white);
  margin: 0 0 1rem;
  font-size: 1.15rem;
  position: relative;
  padding-left: 0.7rem;
}

/* Zelená čárka před titulkem — stejný motiv jako u štítků a karet */
.footer-grid h2::before,
.footer-grid h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.16em;
  width: 3px;
  background: var(--green-on-dark);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin: 0.4rem 0;
  font-size: 0.95rem;
}

.footer-address {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-contact {
  font-size: 0.95rem;
}

.footer-claim {
  background: var(--panel-deep);
  border-top: 1px solid var(--panel-line);
}

.footer-claim-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
}

.footer-claim p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1rem + 1.1vw, 1.75rem);
  line-height: 1.1;
  color: var(--white);
  overflow-wrap: anywhere;
}

.footer-bar {
  background: var(--panel-deep);
  border-top: 1px solid var(--panel-line);
}

.footer-meta {
  padding: 1rem 0;
  margin: 0;
  font-size: 0.88rem;
  color: var(--on-panel-muted);
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-company {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-claim-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ===== Responsive polish: phone / tablet / ultrawide ===== */
@media (max-width: 640px) {
  :root {
    --nav-h: 3.85rem;
  }

  .btn-group,
  .hero .btn-group,
  .store-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero .btn,
  .store-actions .btn,
  .btn-group .btn {
    width: 100%;
  }

  .path-body p {
    max-width: none;
  }

  .page-hero {
    padding-top: clamp(3.25rem, 12vw, 4.5rem);
  }

  .page-hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }

  .form-card {
    padding: 1.15rem;
  }

  .brand-strip {
    gap: 1rem 1.35rem;
    justify-content: center;
  }

  .brand-strip img {
    height: 1.65rem;
  }
}

@media (min-width: 641px) and (max-width: 980px) {
  .hero-content {
    width: min(100% - (var(--gutter) * 2), 36rem);
  }

  .nav-links {
    gap: 1rem;
  }
}

@media (min-width: 1400px) {
  .hero-content {
    width: min(100% - (var(--gutter) * 2), 46rem);
  }

  .section-head {
    max-width: 48rem;
  }

  .ref-copy {
    padding-inline: 0;
  }
}

@media (min-width: 1800px) {
  .comp-tile {
    min-height: 13rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .nav-links a,
  .service-link,
  .comp-list a,
  .comp-feature,
  .comp-tile,
  .path,
  .btn {
    -webkit-tap-highlight-color: transparent;
  }

  .path:hover img,
  .comp-tile:hover img,
  .comp-feature:hover .comp-media img,
  .news-card:hover img,
  .store:hover > img,
  .tile:hover .tile-media img {
    transform: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .comp-feature:hover .comp-media img,
  .news-card:hover img,
  .store:hover > img,
  .tile:hover .tile-media img {
    transform: scale(1.03);
  }

  .service-link:hover h3,
  .service-link:hover::after {
    color: #d8ffd9;
  }

  .service-link:hover .service-link-media::after {
    background: linear-gradient(
      115deg,
      rgba(10, 12, 11, 0.78) 0%,
      rgba(10, 12, 11, 0.48) 48%,
      rgba(10, 12, 11, 0.28) 100%
    );
  }

  .comp-list a:hover::after,
  .service-link:hover::after {
    transform: translateX(0.2rem);
  }

  .comp-list a::after,
  .service-link::after {
    transition: transform 0.2s var(--ease), color 0.2s;
  }
}

@media (max-width: 640px) {
  .hero:not(.hero--split) {
    min-height: min(62svh, 34rem);
    min-height: min(62dvh, 34rem);
  }

  .hero-brand img {
    width: clamp(9.5rem, 48vw, 14rem);
  }
}

@media (orientation: landscape) and (max-height: 480px) {
  .hero:not(.hero--split) {
    min-height: auto;
    padding-block: 3rem;
  }

  .hero:not(.hero--split) .hero-content {
    padding-block: calc(var(--nav-h) + 0.75rem) 1.5rem;
  }

  .hero:not(.hero--split) .hero-brand {
    margin-bottom: 0.85rem;
  }

  .hero:not(.hero--split) .hero-brand img {
    width: clamp(9rem, 28vw, 14rem);
  }
}

/* ===== Aktuality (public) ===== */
.aktualita-status {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.aktualita-status.is-error {
  color: #c62828;
}

.aktuality-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.aktualita-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
  border-top: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.aktualita-card:first-child {
  border-top: none;
  padding-top: 0.25rem;
}

.aktualita-card--empty {
  display: block;
  padding: 1.5rem 0;
  border: 0;
}

.aktualita-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  max-height: 18rem;
  object-fit: cover;
  display: block;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--paper);
}

.aktualita-cover--detail {
  min-height: 14rem;
  max-height: 22rem;
  border-radius: var(--r);
  margin-bottom: 1.25rem;
}

.aktualita-card-body {
  padding: 0;
  max-width: 46rem;
}

.aktualita-card-body time,
.aktualita-header time {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
}

.aktualita-card-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.7rem);
  margin: 0 0 0.55rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.aktualita-card-body h2 a {
  color: inherit;
  text-decoration: none;
}

.aktualita-card-body h2 a:hover,
.aktualita-card-body h2 a:focus-visible {
  color: var(--green-dark);
}

.aktualita-card-body p {
  margin: 0 0 0.65rem;
  color: var(--muted);
}

.aktualita-card-body p:last-child {
  margin-bottom: 0;
}

.aktualita-back {
  margin: 0 0 1rem;
}

.aktualita-header h1 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.aktualita-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
}

.aktualita-body p {
  margin: 0 0 1rem;
  max-width: 42rem;
}

.aktualita-foot {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 720px) {
  .aktualita-cover {
    max-height: 14rem;
  }
}

/* ===== Karusel =====
   Posun řeší nativní scroll se scroll-snap: funguje i bez JS (vodorovný
   scroller), na mobilu dává přirozené swipování a klávesnice funguje sama.
   JS nad tím doplní šipky, tečky a označení středového slidu. */
.carousel {
  position: relative;
  --cslide-w: clamp(16rem, 38vw, 29rem);
}

.carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-padding-inline: 0;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: clamp(0.75rem, 1.8vw, 2rem);
  list-style: none;
  margin: 0;
  /* Krajní slidy se díky výplni doscrollují na střed okna */
  padding: 0.35rem max(var(--gutter), calc((100% - var(--cslide-w)) / 2));
}

.cslide {
  flex: 0 0 var(--cslide-w);
  min-width: 0;
  scroll-snap-align: center;
}

.cslide-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--panel);
  text-decoration: none;
  color: var(--white);
  aspect-ratio: 16 / 10;
}

.cslide-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Vedlejší slidy jsou odbarvené, středový je v plné barvě (vzor AMiT) */
  filter: grayscale(1) contrast(1.02);
  transform: scale(1.01);
  transition: filter 0.55s var(--ease), transform 0.8s var(--ease);
}

.cslide.is-active .cslide-link img {
  filter: none;
}

/* Překrytí z boku — tmavý antracitový panel se zelenou značkou */
.cslide__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.3rem;
  padding: clamp(0.9rem, 2vw, 1.5rem);
  background: linear-gradient(
    100deg,
    rgba(27, 32, 36, 0.95) 0%,
    rgba(27, 32, 36, 0.88) 32%,
    rgba(27, 32, 36, 0.55) 62%,
    rgba(27, 32, 36, 0.18) 100%
  );
  transition: background 0.55s var(--ease);
}

/* Na středovém slidu je překrytí slabší, aby fotka vynikla */
.cslide.is-active .cslide__overlay {
  background: linear-gradient(
    100deg,
    rgba(27, 32, 36, 0.92) 0%,
    rgba(27, 32, 36, 0.7) 26%,
    rgba(27, 32, 36, 0.24) 54%,
    rgba(27, 32, 36, 0) 78%
  );
}

.cslide__mark {
  display: block;
  width: clamp(4.5rem, 9vw, 6.5rem);
  height: clamp(1.35rem, 2.7vw, 2rem);
  margin-bottom: auto;
  background: var(--green-on-dark);
  -webkit-mask: url("../media/mark-solid.svg") left center / contain no-repeat;
  mask: url("../media/mark-solid.svg") left center / contain no-repeat;
}

.cslide__eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-on-dark);
}

.cslide__title {
  margin: 0;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.6rem);
  line-height: 1.1;
  color: var(--white);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  overflow-wrap: anywhere;
}

.cslide__sub {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.4;
  max-width: 26ch;
  color: rgba(255, 255, 255, 0.86);
  overflow-wrap: anywhere;
}

.cslide__title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: 0.5rem;
  background: var(--green-on-dark);
}

.cslide-link:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .cslide-link:hover img {
    transform: scale(1.05);
  }

  .cslide-link:hover .cslide__sub {
    color: var(--white);
  }
}

/* Ovládání */
.carousel-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--r);
  background: rgba(27, 32, 36, 0.6);
  color: var(--white);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, opacity 0.25s;
}

.carousel-nav:hover,
.carousel-nav:focus-visible {
  background: var(--green-dark);
  border-color: var(--green);
}

.carousel-nav:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.carousel-nav[disabled] {
  opacity: 0.35;
  cursor: default;
}

.carousel-prev {
  left: clamp(0.5rem, 2vw, 1.5rem);
}

.carousel-next {
  right: clamp(0.5rem, 2vw, 1.5rem);
}

.carousel-nav span {
  display: block;
  width: 0.6rem;
  height: 0.6rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.carousel-prev span {
  transform: translateX(0.1rem) rotate(-135deg);
}

.carousel-next span {
  transform: translateX(-0.1rem) rotate(45deg);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: clamp(1rem, 2vw, 1.5rem);
}

.carousel-dot {
  width: 0.6rem;
  height: 0.6rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line-strong);
  cursor: pointer;
  transition: width 0.3s var(--ease), background 0.3s;
}

.carousel-dot[aria-current="true"] {
  width: 1.85rem;
  background: var(--green);
}

.carousel-dot:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.section--panel .carousel-dot {
  background: var(--panel-line);
}

.section--panel .carousel-dot[aria-current="true"] {
  background: var(--green-on-dark);
}

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

/* Bez JS zůstává karusel plnohodnotným scrollerem, jen bez šipek a teček */
.carousel:not([data-carousel-ready]) .carousel-nav,
.carousel:not([data-carousel-ready]) .carousel-dots {
  display: none;
}

.carousel:not([data-carousel-ready]) .cslide-link img {
  filter: none;
}

@media (max-width: 700px) {
  .carousel {
    --cslide-w: min(82vw, 24rem);
  }

  .carousel-nav {
    display: none;
  }
}

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

  .cslide-link img,
  .cslide__overlay {
    transition: none;
  }
}

/* ===== Claim blok — velký titulek se zeleným slovem ===== */
.claim {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
  background: var(--paper-alt);
}

.claim-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}

.claim h2 {
  margin: 0;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.claim p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem);
  max-width: 38rem;
}

@media (max-width: 860px) {
  .claim-inner {
    grid-template-columns: 1fr;
  }
}

/* ===== Štítek se zelenou čárkou ===== */
.tick-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.tick-label::before {
  content: "";
  flex: 0 0 3px;
  align-self: stretch;
  min-height: 1.1em;
  background: var(--green);
}

.tick-label strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 0.94rem + 0.35vw, 1.2rem);
  line-height: 1.15;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ===== Foto dlaždice se štítkem (mřížka „co děláme“) ===== */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.5vw, 1.1rem);
}

.tile {
  position: relative;
  display: block;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  overflow: hidden;
  border-radius: var(--r);
}

.tile-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-alt);
}

.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.tile .tick-label {
  padding: 0.75rem 0.85rem;
  background: var(--surface);
  color: var(--ink);
}

.tile::after {
  content: "→";
  position: absolute;
  right: 0.85rem;
  bottom: 0.72rem;
  font-weight: 700;
  color: var(--green-dark);
  opacity: 0;
  transform: translateX(-0.35rem);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.tile:hover,
.tile:focus-visible {
  color: var(--ink);
}

.tile:hover::after,
.tile:focus-visible::after {
  opacity: 1;
  transform: none;
}

.tile:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile-media img {
    transform: scale(1.03);
  }
}

@media (max-width: 1040px) {
  .tile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 400px) {
  .tile-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Tmavá karta s fotkou dole („jak pracujeme“) ===== */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.5vw, 1.1rem);
  counter-reset: step;
}

.card-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--panel);
  color: var(--on-panel);
  border-radius: var(--r);
  overflow: hidden;
}

.card-stack-body {
  flex: 1 1 auto;
  padding: 1.2rem 1.15rem 1.3rem;
}

.card-stack h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
  line-height: 1.15;
  color: var(--white);
  position: relative;
  padding-left: 0.7rem;
}

.card-stack h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  bottom: 0.18em;
  width: 3px;
  background: var(--green-on-dark);
}

.card-stack h3 .card-step {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green-on-dark);
  margin-bottom: 0.3rem;
}

.card-stack p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--on-panel-muted);
}

.card-stack img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (max-width: 1040px) {
  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .stack-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Full-bleed banner s CTA ===== */
.banner-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--panel);
  color: var(--on-panel);
}

.banner-cta-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.banner-cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.banner-cta-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    rgba(27, 32, 36, 0.97) 0%,
    rgba(27, 32, 36, 0.9) 38%,
    rgba(27, 32, 36, 0.62) 62%,
    rgba(22, 128, 46, 0.42) 100%
  );
}

.banner-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  padding: clamp(2.5rem, 5.5vw, 4rem) 0;
}

.banner-cta h2 {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.5rem);
  line-height: 1.05;
  color: var(--white);
}

.banner-cta p {
  margin: 0.65rem 0 0;
  max-width: 44ch;
  color: var(--on-panel-muted);
}

.banner-cta .btn-group {
  flex: 0 0 auto;
}

/* ===== Pás log dodavatelů ===== */
.logo-strip-label {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  margin: clamp(1.75rem, 3.5vw, 2.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.logo-strip img {
  height: clamp(1.5rem, 3.5vw, 2.1rem);
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.3s, opacity 0.3s;
}

.logo-strip li:hover img,
.logo-strip a:focus-visible img {
  filter: none;
  opacity: 1;
}

html[data-theme="dark"] .logo-strip img {
  filter: grayscale(1) invert(1) brightness(1.6);
  opacity: 0.85;
}

html[data-theme="dark"] .logo-strip li:hover img {
  filter: none;
  opacity: 1;
}

/* ===== Kontaktní blok na konci stránky ===== */
.contact-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.contact-teaser-copy h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.4rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.012em;
  color: var(--white);
}

.contact-teaser-copy p {
  margin: 0 0 1.5rem;
  max-width: 42ch;
  color: var(--on-panel-muted);
}

.contact-teaser-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--panel-line);
}

.contact-teaser-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--panel-line);
}

.contact-teaser-list span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-panel-muted);
}

.contact-teaser-list a,
.contact-teaser-list strong {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.3rem);
  color: var(--white);
  text-decoration: none;
  overflow-wrap: anywhere;
  text-align: right;
}

.contact-teaser-list strong {
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
}

.contact-teaser-list a:hover,
.contact-teaser-list a:focus-visible {
  color: var(--green-on-dark);
  text-decoration: underline;
}

@media (max-width: 880px) {
  .contact-teaser {
    grid-template-columns: 1fr;
  }

  .contact-teaser-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .contact-teaser-list a,
  .contact-teaser-list strong {
    text-align: left;
  }
}

/* ===== Aktuality na homepage ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.35rem);
}

.news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.3s;
}

.news-card:hover {
  border-color: var(--hover-border);
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.news-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 auto;
  padding: 1.1rem 1.15rem 1.25rem;
}

.news-card time {
  color: var(--muted);
  font-size: 0.86rem;
}

.news-card h3 {
  margin: 0;
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
  line-height: 1.18;
  text-transform: uppercase;
  letter-spacing: 0.012em;
}

.news-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.news-card .news-more {
  margin-top: auto;
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
}

.news-card .news-more:hover,
.news-card .news-more:focus-visible,
.news-card h3 a:hover,
.news-card h3 a:focus-visible {
  color: var(--green-dark);
  text-decoration: underline;
}

@media (max-width: 880px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Micro-interactions ===== */
.site-header.is-scrolled {
  backdrop-filter: none;
}

html[data-theme="dark"] .site-header.is-scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .store:hover {
  box-shadow: none;
}

.comp-tile-label {
  transition: transform 0.35s var(--ease);
}

.brand-strip img {
  transition: opacity 0.3s, filter 0.35s, transform 0.35s var(--ease);
}

.brand-strip img:hover {
  opacity: 1;
  transform: translateY(-2px) scale(1.04);
}

html[data-theme="dark"] .brand-strip img:hover {
  filter: none;
}

.form-card input,
.form-card select,
.form-card textarea {
  transition: border-color 0.22s, background 0.22s, box-shadow 0.22s var(--ease);
}

.form-card input:hover,
.form-card select:hover,
.form-card textarea:hover {
  border-color: color-mix(in srgb, var(--green) 40%, var(--line));
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent);
}

.page-hero {
  animation: pageIn 0.7s var(--ease) both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.nav.is-open .nav-links a {
  animation: menuItemIn 0.35s var(--ease) both;
}

.nav.is-open .nav-links li:nth-child(1) a { animation-delay: 0.03s; }
.nav.is-open .nav-links li:nth-child(2) a { animation-delay: 0.06s; }
.nav.is-open .nav-links li:nth-child(3) a { animation-delay: 0.09s; }
.nav.is-open .nav-links li:nth-child(4) a { animation-delay: 0.12s; }
.nav.is-open .nav-links li:nth-child(5) a { animation-delay: 0.15s; }

@keyframes menuItemIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-brand {
  transition: transform 0.35s var(--ease), filter 0.35s;
}

.hero-brand:hover {
  transform: translateY(-2px);
}

.hero-brand:hover img {
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.5));
}

@media (prefers-reduced-motion: reduce) {
  .page-hero,
  .nav.is-open .nav-links a,
  .brand,
  .brand img,
  .btn,
  .store,
  .store > img,
  .store-media img,
  .photo-collage img,
  .service-link,
  .comp-tile-label,
  .path-cta,
  .media-row img,
  .brand-strip img,
  .hero-brand,
  .nav-toggle span {
    animation: none !important;
    transition: none !important;
  }

  .btn:hover,
  .store:hover,
  .store:hover > img,
  .store:hover .store-media img,
  .service-link:hover,
  .brand:hover,
  .brand:hover img,
  .comp-tile:hover .comp-tile-label,
  .path:hover .path-cta {
    transform: none !important;
  }
}
