/* ==========================================================================
   Půjčovna Lešení Ostrava — Design tokens & base
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Rubik:wght@300;400;500;600;700&display=swap');

:root {
  /* Color tokens */
  --ink: #12141a;
  --ink-2: #1d212b;
  --ink-soft: #2a2e35;
  --surface-dark: linear-gradient(155deg, var(--ink-2) 0%, var(--ink) 65%);
  --steel: #4b5563;
  --steel-soft: #717a89;
  --steel-mist: #a7aeb9;
  --paper: #f7f6f3;
  --paper-dim: #efece5;
  --white: #ffffff;
  --red: #c8102e;
  --red-dark: #9e0b23;
  --red-soft: #fbe6e9;
  --amber: #f2a71b;
  --amber-soft: #fdf1da;
  --border: #e3e0d9;
  --border-dark: #383c43;
  --success: #1f8a4c;

  --color-on-primary: var(--white);
  --shadow-sm: 0 1px 2px rgba(21, 24, 28, 0.06), 0 1px 1px rgba(21, 24, 28, 0.04);
  --shadow-md: 0 0.5rem 1.5rem rgba(21, 24, 28, 0.10), 0 2px 0.5rem rgba(21, 24, 28, 0.06);
  --shadow-lg: 0 1.5rem 4rem rgba(21, 24, 28, 0.18), 0 0.5rem 1.5rem rgba(21, 24, 28, 0.10);

  /* Type */
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Rubik', sans-serif;

  /* Spacing scale (0.5rem rhythm) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-pill: 999px;

  --container: 77.5rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 600ms;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* Everything is sized in rem, so from 1440px wide upward the whole design
   scales continuously with the window and looks the same on any monitor. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-size: max(100%, 1.1111vw); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1rem;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ==========================================================================
   Page transitions — native cross-document View Transitions.
   The browser itself cross-fades the old and new page at the compositor
   level (no JS, no layout hacks, nothing fights position:fixed). Browsers
   without support simply navigate normally — pure progressive enhancement.
   ========================================================================== */

@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) {
    animation: page-fade-out 260ms var(--ease-in-out) both;
  }
  ::view-transition-new(root) {
    animation: page-fade-in 420ms var(--ease-out) both;
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(root),
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}

@keyframes page-fade-out {
  to { opacity: 0; }
}
@keyframes page-fade-in {
  from { opacity: 0; }
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

p { text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: '';
  width: 1.375rem;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--steel);
  max-width: 60ch;
}

:focus-visible {
  outline: 0.1875rem solid var(--red);
  outline-offset: 0.1875rem;
  border-radius: 0.25rem;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
@media (min-width: 768px) { .wrap { padding-inline: var(--space-7); } }

.section { padding-block: var(--space-8); }
.section--tight { padding-block: var(--space-7); }
.section--dark { background: var(--ink); color: var(--white); }
.section--dark .steel-text { color: var(--steel-mist); }
.section--paper-dim { background: var(--paper-dim); }

.section-head {
  max-width: 40rem;
  margin-bottom: var(--space-6);
}
.section-head.center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: var(--space-5); }
.g-2 { grid-template-columns: repeat(1, 1fr); }
.g-3 { grid-template-columns: repeat(1, 1fr); }
.g-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) {
  .g-2 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) { .g-4 { grid-template-columns: repeat(4, 1fr); } }

.stack { display: flex; flex-direction: column; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  touch-action: manipulation;
  min-height: 3rem;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--red-dark); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.section:not(.section--dark) .btn--ghost:hover { background: rgba(21, 24, 28, 0.06); }

.btn--light {
  background: var(--white);
  color: var(--ink);
}
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--block { width: 100%; }
.btn--sm { padding: 0.7rem 1.2rem; font-size: 0.88rem; min-height: 2.5rem; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding-block: var(--space-4);
  color: var(--white);
  transition: padding var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(247, 246, 243, 0.92);
  backdrop-filter: blur(0.875rem) saturate(1.4);
  -webkit-backdrop-filter: blur(0.875rem) saturate(1.4);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}
/* Always give the header a soft scrim at the top so the logo/nav stay
   readable over any hero photo, even before the solid scrolled background. */
.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,17,20,0.55) 0%, rgba(15,17,20,0.18) 75%, rgba(15,17,20,0) 100%);
  opacity: 1;
  transition: opacity var(--dur-base) var(--ease-out);
  pointer-events: none;
}
.site-header.is-scrolled { padding-block: var(--space-2); color: var(--ink); }
.site-header.is-scrolled::before { opacity: 1; border-bottom-color: var(--border); }
.site-header.is-scrolled::after { opacity: 0; }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  position: relative;
}

.brand { display: flex; align-items: center; gap: var(--space-2); position: relative; z-index: 2; }
.brand img {
  height: 2.125rem; width: auto; aspect-ratio: 560 / 120;
  transition: height var(--dur-base) var(--ease-out), filter var(--dur-base) var(--ease-out);
  filter: brightness(0) invert(1);
}
.site-header.is-scrolled .brand img { height: 1.75rem; filter: none; }

.main-nav { position: relative; z-index: 2; }
.main-nav ul { display: flex; align-items: center; gap: var(--space-6); position: relative; }
.main-nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  position: relative;
  padding-block: var(--space-1);
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--red);
  transition: right var(--dur-base) var(--ease-out);
  border-radius: 2px;
}
.main-nav a:hover::after, .main-nav a.is-active::after { right: 0; }
.main-nav a.is-active { color: var(--red); }

/* Pill that glides beneath whichever nav link is hovered/focused. Width is
   set instantly (no layout-thrash animation) and only `transform` — a
   compositor-only property — animates, which is what keeps this smooth
   instead of choppy even with many rapid hovers. */
.nav-indicator {
  position: absolute;
  top: -0.4rem; left: 0;
  height: calc(100% + 0.8rem);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.09));
  box-shadow: 0 2px 0.5rem rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  opacity: 0;
  transform: translateX(0);
  transition: transform 360ms var(--ease-out), opacity 200ms var(--ease-out), background 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
  pointer-events: none;
  z-index: -1;
}
.site-header.is-scrolled .nav-indicator {
  background: linear-gradient(180deg, rgba(21, 24, 28, 0.06), rgba(21, 24, 28, 0.025));
  box-shadow: 0 2px 0.375rem rgba(21, 24, 28, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.main-nav ul:hover .nav-indicator,
.main-nav ul:focus-within .nav-indicator { opacity: 1; }

.header-cta { display: flex; align-items: center; gap: var(--space-4); position: relative; z-index: 2; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  display: block;
  width: 1.375rem;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 0.4375rem; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(0.4375rem) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.main-nav .nav-mobile-extra { display: none; }

@media (max-width: 1279px) {
  .nav-toggle { display: flex; }
  .header-cta .btn--primary { display: none; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--ink);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-base) var(--ease-out);
  }
  .main-nav.is-open { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: var(--space-6); text-align: center; }
  .main-nav a { font-size: 1.6rem; }
  .main-nav .nav-indicator { display: none; }
  .main-nav .nav-mobile-extra { display: block; margin-top: var(--space-6); }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  padding-top: 5.625rem;
}
.hero__media { position: absolute; inset: 0; z-index: 0; background: var(--ink); }
.hero__media img, .hero__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
}
.hero__media-fallback { z-index: 1; filter: saturate(1.08) contrast(1.05); }
.hero__media-video {
  z-index: 2;
  opacity: 0;
  transition: opacity 900ms var(--ease-out);
  /* A touch of extra contrast/saturation plus grain (below) makes a soft
     1280x720 source read as intentionally cinematic instead of blurry. */
  filter: saturate(1.08) contrast(1.05);
}
.hero__media-video.is-playing { opacity: 1; }
.hero__grain {
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 11.25rem 11.25rem;
}
.hero__watermark-cover {
  position: absolute;
  right: 0; bottom: 0;
  width: min(30vw, 21.25rem);
  height: min(22vh, 13.75rem);
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(circle at 100% 100%, rgba(10, 11, 14, 0.85) 0%, rgba(10, 11, 14, 0.55) 40%, rgba(10, 11, 14, 0) 75%);
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,17,20,0.55) 0%, rgba(15,17,20,0.35) 30%, rgba(15,17,20,0.65) 72%, rgba(15,17,20,0.92) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-7);
  width: 100%;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(0.375rem);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-4);
}
.hero__kicker .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--amber); }

.hero h1 { max-width: 15ch; margin-bottom: var(--space-4); }
.hero h1 .accent { color: var(--amber); }

.hero__lede { max-width: 52ch; font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: rgba(255,255,255,0.86); margin-bottom: var(--space-5); }

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-4); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: var(--space-4);
  max-width: 45rem;
}
@media (min-width: 640px) { .hero__stats { grid-template-columns: repeat(4, 1fr); } }
.hero__stat b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
}
.hero__stat span { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* Windows/browser display scaling can make a "tall" physical monitor act
   like a short one in CSS pixels — this targets that effective height
   directly instead of guessing from window width. */
@media (max-height: 820px), (min-width: 1440px) and (min-aspect-ratio: 72/41) {
  .hero { padding-top: 4rem; }
  .hero__content { padding-bottom: var(--space-5); }
  .hero__kicker { margin-bottom: var(--space-3); }
  .hero h1 { margin-bottom: var(--space-3); font-size: clamp(1.9rem, 4vw, 3rem); }
  .hero__lede { margin-bottom: var(--space-4); font-size: 1rem; }
  .hero__actions { margin-bottom: var(--space-3); }
  .hero__stats { padding-top: var(--space-3); gap: var(--space-4); }
  .hero__stat b { font-size: 1.5rem; }
}

.scroll-cue {
  position: absolute;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 1;
  display: none;
  align-items: center;
  gap: var(--space-2);
  writing-mode: vertical-rl;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.scroll-cue::after { content: ''; width: 1px; height: 2.5rem; background: rgba(255,255,255,0.5); animation: scrollcue 2s var(--ease-in-out) infinite; }
@media (min-width: 1024px) { .scroll-cue { display: flex; } }
@keyframes scrollcue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Page header (non-home hero, shorter) */
.page-hero {
  position: relative;
  padding-top: 10rem;
  padding-bottom: var(--space-8);
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; opacity: 0.4; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,17,20,0.55), var(--ink) 92%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .breadcrumb { font-size: 0.85rem; color: var(--steel-mist); margin-bottom: var(--space-4); }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero h1 { max-width: 22ch; }
.page-hero .lede { color: rgba(255,255,255,0.78); margin-top: var(--space-4); }

/* ==========================================================================
   Trust strip
   ========================================================================== */

.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.trust-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: space-between;
  padding-block: var(--space-6);
}
.trust-item { display: flex; align-items: center; gap: var(--space-3); }
.trust-item svg { width: 1.625rem; height: 1.625rem; color: var(--red); flex: none; }
.trust-item strong { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.trust-item span { font-size: 0.82rem; color: var(--steel); }

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }

.icon-tile {
  width: 3.5rem; height: 3.5rem;
  border-radius: var(--radius-md);
  background: var(--red-soft);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-5);
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.icon-tile svg { width: 1.75rem; height: 1.75rem; }
.card:hover .icon-tile { transform: scale(1.08) rotate(-4deg); background: var(--red); color: var(--white); }

.card h3 { margin-bottom: var(--space-3); }
.card p { color: var(--steel); font-size: 0.96rem; }
.card-link { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: auto; padding-top: var(--space-5); font-family: var(--font-head); font-weight: 600; color: var(--red); font-size: 0.9rem; }
.card-link svg { width: 1rem; height: 1rem; transition: transform var(--dur-fast) var(--ease-out); }
.card:hover .card-link svg { transform: translateX(0.25rem); }

/* Feature list */
.check-list li { display: flex; align-items: flex-start; gap: var(--space-3); padding-block: var(--space-2); }
.check-list svg { width: 1.25rem; height: 1.25rem; color: var(--red); flex: none; margin-top: 2px; }

/* ==========================================================================
   Service detail blocks
   ========================================================================== */

.service-block {
  display: grid;
  gap: var(--space-6);
  align-items: start;
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: none; }
@media (min-width: 900px) {
  .service-block { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
  /* Nudged down to start roughly level with the heading instead of the
     small eyebrow label above it. */
  .service-block__media { margin-top: 4rem; }
}
.service-block.is-reverse .service-block__media { order: -1; }
@media (min-width: 900px) { .service-block.is-reverse .service-block__media { order: 2; } }

.service-block__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-md); }
.service-block__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.service-block__media:hover img { transform: scale(1.05); }
.service-block__tag {
  position: absolute; top: var(--space-4); left: var(--space-4);
  background: rgba(21,24,28,0.72);
  color: var(--white);
  backdrop-filter: blur(0.375rem);
  font-family: var(--font-head);
  font-size: 0.78rem; font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
}

.service-block__body .eyebrow { margin-bottom: var(--space-2); }
.service-block__body h2 { margin-bottom: var(--space-3); font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.service-block__body p.lede { margin-bottom: var(--space-4); font-size: 0.98rem; line-height: 1.55; max-width: 56ch; }

@media (max-height: 860px), (min-width: 1440px) and (min-aspect-ratio: 72/43) {
  .service-block { padding-block: var(--space-5); }
  .service-block__body p.lede { font-size: 0.92rem; margin-bottom: var(--space-3); }
  .price-lines { margin-block: var(--space-3); }
  .price-lines__row { padding: var(--space-2) var(--space-4); }
}

/* Two pricing options inside a featured service block (e.g. s montáží / bez montáže) */
.option-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; margin-block: var(--space-5); }
@media (min-width: 480px) { .option-grid { grid-template-columns: 1fr 1fr; } }
.option-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  background: var(--white);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.option-card:hover { border-color: var(--red); box-shadow: var(--shadow-sm); }
.option-card.is-recommended { border-color: var(--red); position: relative; }
.option-card__badge {
  display: inline-block; margin-bottom: var(--space-3);
  background: var(--red-soft); color: var(--red-dark);
  font-family: var(--font-head); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: var(--radius-pill);
}
.option-card h4 { font-family: var(--font-head); font-size: 1.02rem; margin-bottom: var(--space-2); }
.option-card p { color: var(--steel); font-size: 0.88rem; margin-bottom: var(--space-3); }
.option-card__price { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--ink); }
.option-card__price span { font-size: 0.8rem; font-weight: 500; color: var(--steel); }

/* ==========================================================================
   Catalog grid — the full lineup with orientační prices. Items without a
   real photo yet get a clearly-marked placeholder tile instead of a random
   stock image, so it's obvious at a glance what still needs a real photo.
   ========================================================================== */

.catalog-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(1, 1fr); }
@media (min-width: 560px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .catalog-grid { grid-template-columns: repeat(4, 1fr); } }

.catalog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.catalog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.catalog-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-dim); }
.catalog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.catalog-card:hover .catalog-card__media img { transform: scale(1.06); }

.catalog-card__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2);
  background:
    repeating-linear-gradient(135deg, rgba(21,24,28,0.03) 0 2px, transparent 2px 0.875rem),
    var(--paper-dim);
  border: 1.5px dashed var(--border-dark);
  margin: 0.375rem;
  border-radius: calc(var(--radius-lg) - 0.375rem);
  color: var(--steel-soft);
}
.catalog-card__placeholder svg { width: 2.125rem; height: 2.125rem; }
.catalog-card__placeholder span { font-size: 0.72rem; font-family: var(--font-head); font-weight: 600; text-align: center; padding-inline: var(--space-3); }

.catalog-card__body { padding: var(--space-5); }
.catalog-card__body h3 { font-size: 1.02rem; margin-bottom: var(--space-2); }
.catalog-card__body p { color: var(--steel); font-size: 0.86rem; margin-bottom: var(--space-4); }
.catalog-card__price { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); border-top: 1px dashed var(--border); padding-top: var(--space-3); }
.catalog-card__price b { font-family: var(--font-head); font-size: 1.05rem; color: var(--red); }
.catalog-card__price span { font-size: 0.76rem; color: var(--steel-soft); }
.catalog-card__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.catalog-card__meta .tag { font-size: 0.7rem; font-family: var(--font-head); font-weight: 600; color: var(--steel); background: var(--paper-dim); padding: 0.2rem 0.55rem; border-radius: var(--radius-pill); }
.catalog-card__meta .tag--warn { color: #8a5c0a; background: var(--amber-soft); }

/* Compact variant — used on the tools page, where there are many items */
.catalog-grid--compact { gap: var(--space-4); }
@media (min-width: 560px) { .catalog-grid--compact { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .catalog-grid--compact { grid-template-columns: repeat(5, 1fr); } }
.catalog-grid--compact .catalog-card__media { aspect-ratio: 1/1; }
.catalog-grid--compact .catalog-card__placeholder svg { width: 1.5rem; height: 1.5rem; }
.catalog-grid--compact .catalog-card__placeholder span { font-size: 0.64rem; }
.catalog-grid--compact .catalog-card__body { padding: var(--space-4); }
.catalog-grid--compact .catalog-card__body h3 { font-size: 0.92rem; margin-bottom: 0.2rem; }
.catalog-grid--compact .catalog-card__body p { font-size: 0.78rem; margin-bottom: var(--space-3); }
.catalog-grid--compact .catalog-card__price b { font-size: 0.95rem; }

.catalog-group-head { margin-block: var(--space-8) var(--space-5); }
.catalog-group-head:first-child { margin-top: 0; }
.catalog-group-head h3 { font-size: 1.15rem; }

/* Itemised real pricing (nájem / montáž / doprava …) inside a service block */
.price-lines { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; margin-block: var(--space-4); }
.price-lines__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-5); background: var(--white); }
.price-lines__row + .price-lines__row { border-top: 1px solid var(--border); }
.price-lines__row span { color: var(--steel); font-size: 0.92rem; }
.price-lines__row b { font-family: var(--font-head); font-weight: 700; color: var(--red); white-space: nowrap; }
.price-lines__row b small { font-weight: 500; color: var(--steel-soft); font-size: 0.78em; }

/* Compact "od X Kč" tiles for items with height/size tiers (full breakdown lives in the calculator) */
.mini-price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin-block: var(--space-5); }
.mini-price-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-4); background: var(--white); }
.mini-price-card h4 { font-family: var(--font-head); font-size: 0.9rem; margin-bottom: var(--space-2); }
.mini-price-card b { font-family: var(--font-head); font-size: 1.15rem; color: var(--red); }
.mini-price-card b small { font-size: 0.7rem; font-weight: 500; color: var(--steel-soft); }

/* ==========================================================================
   Calculator
   ========================================================================== */

.calc {
  background: var(--surface-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  display: grid;
  gap: var(--space-7);
  position: relative;
  overflow: hidden;
}
.calc::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 1.375rem);
  pointer-events: none;
}
@media (min-width: 960px) { .calc { grid-template-columns: 1.1fr 0.9fr; } }

.calc__form { display: grid; gap: var(--space-5); position: relative; }
.field { display: grid; gap: var(--space-2); }
.field label { font-family: var(--font-head); font-size: 0.86rem; font-weight: 600; color: var(--steel-mist); }
.field select, .field input {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--white);
  min-height: 3rem;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.field select:focus, .field input:focus { border-color: var(--red); background: rgba(255,255,255,0.1); }
.field select option { color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field--checkbox { justify-content: center; }
.field--checkbox label { display: flex; align-items: center; gap: var(--space-3); font-weight: 500; color: var(--white); cursor: pointer; }
.field--checkbox input[type="checkbox"] { width: 1.25rem; height: 1.25rem; accent-color: var(--red); flex-shrink: 0; }

.calc__result {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-3);
}
.calc__result .label { font-size: 0.85rem; color: var(--steel-mist); font-family: var(--font-head); }
.calc__price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.4vw, 2.7rem);
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  padding: 0.8rem 1.7rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 0.625rem 1.75rem rgba(200, 16, 46, 0.4);
}
.calc__price span { font-size: 1rem; color: rgba(255,255,255,0.85); font-weight: 600; }
.calc__note { font-size: 0.82rem; color: var(--steel-mist); }
.calc__add-btn { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-2); }
.calc__add-btn svg { width: 1.125rem; height: 1.125rem; }

.calc__cart-hint {
  display: none;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: rgba(200, 16, 46, 0.16);
  border: 1px solid rgba(200, 16, 46, 0.4);
  border-radius: var(--radius-pill);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.86rem;
}
.calc__cart-hint.is-visible { display: inline-flex; }
.calc__cart-hint svg { width: 1rem; height: 1rem; color: var(--red); animation: calc-hint-bounce 1400ms ease-in-out infinite; flex-shrink: 0; }
@keyframes calc-hint-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(0.25rem); }
}

.calc-cart {
  display: none;
  max-width: 56.25rem;
  margin-inline: auto;
  margin-top: var(--space-6);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  box-shadow: var(--shadow-md);
}
.calc-cart.is-visible { display: block; }
.calc-cart h3 { margin-bottom: var(--space-5); }
.calc-cart__list { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); list-style: none; padding: 0; }
.calc-cart__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
}
.calc-cart__item-info { display: grid; gap: 2px; min-width: 0; }
.calc-cart__item-name { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; }
.calc-cart__item-detail { font-size: 0.82rem; color: var(--steel); }
.calc-cart__item-price { display: flex; align-items: center; gap: var(--space-4); flex-shrink: 0; }
.calc-cart__item-price b { font-family: var(--font-head); font-size: 1.05rem; color: var(--red); white-space: nowrap; }
.calc-cart__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--steel-soft);
  width: 1.875rem; height: 1.875rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  flex-shrink: 0;
}
.calc-cart__remove svg { width: 1rem; height: 1rem; }
.calc-cart__remove:hover { background: var(--red-soft); color: var(--red); }
.calc-cart__total { display: flex; align-items: baseline; justify-content: space-between; padding-top: var(--space-5); border-top: 1px dashed var(--border); }
.calc-cart__total span { font-family: var(--font-head); font-weight: 600; color: var(--steel); }
.calc-cart__total b { font-family: var(--font-head); font-size: 1.6rem; color: var(--red); }

/* ==========================================================================
   Stats / counters
   ========================================================================== */

.stats-band { background: var(--surface-dark); color: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); text-align: center; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.stat span { color: var(--steel-mist); font-size: 0.9rem; }

/* ==========================================================================
   Gallery
   ========================================================================== */

.filter-bar { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-7); }
.filter-btn {
  border: 1.5px solid var(--border);
  background: var(--white);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--steel);
  transition: all var(--dur-fast) var(--ease-out);
}
.filter-btn:hover { border-color: var(--red); color: var(--red); }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--paper-dim);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,24,28,0) 45%, rgba(21,24,28,0.82) 100%);
  display: flex; align-items: flex-end;
  padding: var(--space-4);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__overlay span { color: var(--white); font-family: var(--font-head); font-size: 0.88rem; font-weight: 600; }
.gallery-item.is-hidden { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10, 11, 13, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-6);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(68.75rem, 92vw); max-height: 84vh; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: var(--space-5); right: var(--space-5); width: 3rem; height: 3rem; border-radius: 50%; background: rgba(255,255,255,0.1); color: var(--white); display: flex; align-items: center; justify-content: center; }
.lightbox__close:hover { background: rgba(255,255,255,0.2); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 3.25rem; height: 3.25rem; border-radius: 50%; background: rgba(255,255,255,0.1); color: var(--white); display: flex; align-items: center; justify-content: center; }
.lightbox__nav:hover { background: rgba(255,255,255,0.2); }
.lightbox__nav svg { width: 1.375rem; height: 1.375rem; }
.lightbox__prev { left: var(--space-5); }
.lightbox__next { right: var(--space-5); }

/* ==========================================================================
   Forms (contact / poptávka)
   ========================================================================== */

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; gap: var(--space-5); }
.form-grid .field-row { grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-grid .field-row { grid-template-columns: 1fr 1fr; } }
.form-grid .field label { color: var(--steel); }
.form-grid .field select, .form-grid .field input, .form-grid .field textarea {
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  min-height: 3rem;
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.form-grid .field textarea { min-height: 7.5rem; resize: vertical; }
.form-grid .field select:focus, .form-grid .field input:focus, .form-grid .field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 0.25rem var(--red-soft);
  outline: none;
}
.field-error { font-size: 0.8rem; color: var(--red); min-height: 1.1em; }
.field.has-error select, .field.has-error input, .field.has-error textarea { border-color: var(--red); }

.consent { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 0.85rem; color: var(--steel); }
.consent input { margin-top: 0.25rem; width: 1.125rem; height: 1.125rem; accent-color: var(--red); flex: none; }

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-8) var(--space-5);
}
.form-success.is-visible { display: block; }
.form-success svg { display: block; width: 3.5rem; height: 3.5rem; color: var(--success); margin: 0 auto var(--space-4); }
.form-card.is-submitted .form-grid,
.form-card.is-submitted .form-card__heading { display: none; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--surface-dark); color: var(--white); padding-block: var(--space-8) var(--space-6); }
.footer-grid { display: grid; gap: var(--space-7); grid-template-columns: 1fr; margin-bottom: var(--space-7); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand img { height: 1.875rem; width: auto; aspect-ratio: 560 / 120; margin-bottom: var(--space-4); filter: brightness(0) invert(1); }
.footer-brand p { color: var(--steel-mist); font-size: 0.9rem; max-width: 32ch; }
.footer-col h4 { font-family: var(--font-head); font-size: 0.92rem; margin-bottom: var(--space-4); }
.footer-col ul { display: grid; gap: var(--space-3); }
.footer-col a, .footer-col address { color: var(--steel-mist); font-size: 0.92rem; font-style: normal; }
.footer-col a:hover { color: var(--white); }
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.footer-social a { width: 2.375rem; height: 2.375rem; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: background var(--dur-fast) var(--ease-out); }
.footer-social a:hover { background: var(--red); }
.footer-social svg { width: 1.0625rem; height: 1.0625rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: var(--space-5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); font-size: 0.82rem; color: var(--steel-mist); }
.footer-bottom a:hover { color: var(--white); }

/* Sticky mobile call bar */
.mobile-call-bar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 90;
  display: flex; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(247, 246, 243, 0.92);
  backdrop-filter: blur(0.75rem);
  border-top: 1px solid var(--border);
}
@media (min-width: 1100px) { .mobile-call-bar { display: none; } }
.mobile-call-bar .btn { flex: 1; }

@media (max-width: 1099px) {
  body { padding-bottom: 4.875rem; }
  .hero__content { padding-bottom: calc(var(--space-9) + 4.875rem); }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal="scale"].is-visible { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Misc components
   ========================================================================== */

.badge-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--amber-soft); color: #8a5c0a;
  padding: 0.4rem 0.9rem; border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 600; font-family: var(--font-head);
}

.cta-band {
  background: var(--surface-dark);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: grid;
  gap: var(--space-6);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(200,16,46,0.35) 0%, rgba(200,16,46,0) 70%);
  pointer-events: none;
}
.cta-band::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 1.625rem);
  pointer-events: none;
}
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { position: relative; margin-bottom: var(--space-2); }
.cta-band p { position: relative; color: rgba(255,255,255,0.72); }
.cta-band .cluster { position: relative; gap: var(--space-4); }

.map-embed {
  background: var(--white);
  padding: 0.625rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.map-embed__frame {
  position: relative;
  border-radius: calc(var(--radius-lg) - 0.375rem);
  overflow: hidden;
  min-height: 21.25rem;
  box-shadow: inset 0 0 0 1px rgba(21, 24, 28, 0.06);
}
.map-embed iframe { width: 100%; height: 100%; min-height: 21.25rem; border: 0; display: block; }

.contact-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-4); }
.contact-card__row { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-card__row svg { width: 1.375rem; height: 1.375rem; color: var(--red); flex: none; margin-top: 2px; }
.contact-card__row strong { display: block; font-family: var(--font-head); font-size: 0.9rem; }
.contact-card__row span, .contact-card__row a { color: var(--steel); font-size: 0.95rem; }
.contact-card__row a:hover { color: var(--red); }

.value-list { display: grid; gap: var(--space-6); }
@media (min-width: 768px) { .value-list { grid-template-columns: repeat(2, 1fr); } }
.value-item { display: flex; gap: var(--space-4); }
.value-item .num { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--red); flex: none; width: 2.4ch; }
.value-item h3 { margin-bottom: var(--space-2); }
.value-item p { color: var(--steel); font-size: 0.95rem; }

.text-steel { color: var(--steel); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mb-5 { margin-bottom: var(--space-5); }
.center { text-align: center; }

/* Click ripple — see main.js */
.cursor-ripple {
  position: fixed;
  top: 0; left: 0;
  width: 2.25rem; height: 2.25rem;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  pointer-events: none;
  z-index: 999;
  opacity: 0.55;
  transform: scale(0.25);
  animation: cursor-ripple 520ms var(--ease-out) forwards;
}
@keyframes cursor-ripple {
  to { transform: scale(1.9); opacity: 0; }
}

/* 3D výtah GEDA v kartě nářadí (táhnutí do stran otáčí, stránka se dál posouvá) */
.catalog-grid--compact .catalog-card__media--3d, .catalog-card__media--3d { aspect-ratio: 3/5; background: radial-gradient(120% 90% at 50% 30%, #fff 0%, var(--paper-dim) 100%); }
.catalog-card__media--3d iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.catalog-grid--compact .catalog-card__media--sq { aspect-ratio: 1/1; }
/* Vyříznuté fotky nářadí v kartách (průhledné pozadí, celé vidět, nic se neořezává) */
.catalog-card__media--cutout { background: radial-gradient(120% 90% at 50% 30%, #fff 0%, var(--paper-dim) 100%); }
.catalog-card__media--cutout img { object-fit: contain; padding: 9%; box-sizing: border-box; }
/* Ilustrace věže (na výšku) - malá, vystředěná, celá vidět */
.service-block__media--illustr { aspect-ratio: auto; display: flex; justify-content: center; padding: 1.25rem 0; background: radial-gradient(120% 90% at 50% 30%, #fff 0%, var(--paper-dim) 100%); }
.service-block__media--illustr img { width: auto; height: 20rem; max-width: 100%; object-fit: contain; }
@media (min-width: 900px) { .service-block__media--illustr img { height: 26rem; } }
/* Vozidla - tři karty dodávek (foto, popis, parametry, cena) */
.catalog-grid--vehicles { grid-template-columns: 1fr; }
@media (min-width: 640px) { .catalog-grid--vehicles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .catalog-grid--vehicles { grid-template-columns: repeat(3, 1fr); } }
.catalog-grid--vehicles .catalog-card__body { padding: var(--space-6); }
.catalog-grid--vehicles .catalog-card__body h3 { font-size: 1.15rem; }
.catalog-card__specs { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; gap: 0.35rem; font-size: 0.85rem; color: var(--steel); }
.catalog-card__specs li { display: flex; justify-content: space-between; gap: var(--space-3); }
.catalog-card__specs b { font-family: var(--font-head); color: var(--ink, inherit); font-weight: 600; }
.catalog-card__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
/* Menu s 9 položkami: na užších monitorech menší mezery, aby se vešlo na jeden řádek */
@media (min-width: 1280px) { .main-nav ul { gap: var(--space-4); } .main-nav a { font-size: 0.88rem; } .site-header .wrap { gap: var(--space-3); } }
/* Fotka stroje s průhledným pozadím v bloku služby (celá vidět, na světlém podkladu) */
.service-block__media--cutout { background: radial-gradient(120% 90% at 50% 30%, #fff 0%, var(--paper-dim) 100%); }
.service-block__media--cutout img { object-fit: contain; padding: 6%; box-sizing: border-box; }
/* Fotka na výšku (rozložená plošina s košem) */
.service-block__media--portrait { aspect-ratio: 4/5; width: 100%; max-width: calc(min(54svh, 32rem) * 0.8); margin-inline: auto; } /* celá fotka se vejde na obrazovku bez rolování */
.service-block__media--portrait img { object-position: 50% 20%; }

/* Stránka Plošina: graf dosahu, fotky, tabulka údajů */
.reach-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .reach-grid { grid-template-columns: 1.15fr 1fr; gap: var(--space-8, 3rem); } }
.reach-fig { margin: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5); }
.reach-fig figcaption { margin-top: var(--space-3); font-size: 0.82rem; color: var(--steel); text-align: center; }
.reach-svg { display: block; width: 100%; height: auto; max-width: 28rem; margin-inline: auto; font-family: var(--font-head), system-ui, sans-serif; }
.reach-fig--plan .reach-svg { max-width: 22rem; }
.rg-grid { stroke: #d9dde3; stroke-width: 1; }
.rg-ground { stroke: #4b5563; stroke-width: 2; }
.rg-ax { font-size: 15px; fill: #6b7280; }
.rg-env { fill: rgba(70, 120, 175, 0.20); stroke: #4678af; stroke-width: 2; stroke-linejoin: round; }
.rg-ring { fill: none; stroke: #c8102e; stroke-width: 1.5; stroke-dasharray: 5 4; }
.rg-machine rect, .rg-machine circle { fill: #1f2933; stroke: #1f2933; stroke-width: 1; }
.rg-machine line { stroke: #1f2933; stroke-width: 3; stroke-linecap: round; }
.rg-mast { stroke: #1f2933; stroke-width: 6; stroke-linecap: round; }
.rg-boom { stroke: #1f2933; stroke-width: 3.5; stroke-linecap: round; opacity: 0.85; }
.rg-basket { fill: #fff; stroke: #1f2933; stroke-width: 2; }
.rg-dim { stroke: #c8102e; stroke-width: 1.6; }
.rg-dim--red { stroke: #c8102e; }
.rg-lab { font-size: 19px; font-weight: 700; fill: #c8102e; }
.rg-sub { font-size: 14px; fill: #6b7280; }
.photo-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .photo-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.photo-tile { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--paper-dim); box-shadow: var(--shadow-sm); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile--cutout { background: radial-gradient(120% 90% at 50% 30%, #fff 0%, var(--paper-dim) 100%); }
.photo-tile--cutout img { object-fit: contain; padding: 6%; box-sizing: border-box; }
.spec-table-wrap { max-width: 44rem; margin-inline: auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.spec-table th, .spec-table td { padding: 0.7rem var(--space-5); text-align: left; border-bottom: 1px solid var(--border); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { font-weight: 500; color: var(--steel); width: 55%; }
.spec-table td { font-family: var(--font-head), system-ui, sans-serif; font-weight: 600; }

/* Hero stránky s rychlým přehledem čísel a výzvou k posunu dolů (zkouška na stránce Plošina) */
.hero-facts { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); max-width: 40rem; }
@media (min-width: 700px) { .hero-facts { grid-template-columns: repeat(4, 1fr); } }
.hero-facts li { background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-md, 0.75rem); padding: 0.7rem 0.9rem; backdrop-filter: blur(4px); }
.hero-facts b { display: block; font-family: var(--font-head), system-ui, sans-serif; font-size: 1.25rem; line-height: 1.15; color: var(--white); white-space: nowrap; }
.hero-facts span { display: block; margin-top: 0.15rem; font-size: 0.74rem; color: rgba(255,255,255,0.72); }
.hero-more { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: var(--space-6); padding: 0.6rem 1.1rem; border: 1px solid rgba(255,255,255,0.4); border-radius: 999px; color: var(--white); font-family: var(--font-head), system-ui, sans-serif; font-weight: 600; font-size: 0.9rem; transition: background var(--dur-fast, 150ms) ease, border-color var(--dur-fast, 150ms) ease; }
.hero-more:hover { background: rgba(255,255,255,0.14); border-color: #fff; }
.hero-more svg { width: 1.1rem; height: 1.1rem; animation: hero-bounce 1.6s ease-in-out infinite; }
@keyframes hero-bounce { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .hero-more svg { animation: none; } }
#cenik { scroll-margin-top: 5.9rem; }
#dosah, #fotky, #technicke-udaje { scroll-margin-top: 4.5rem; }

/* Pruh "Na stránce dále" pod prvním blokem: ukazuje, že stránka pokračuje (+ další sekce má jiné pozadí a vykukuje zespodu) */
#plosina { padding-bottom: var(--space-4); }
.next-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem; margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px dashed var(--border-dark, #cfd4da); }
.next-strip__label { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); font-family: var(--font-head), system-ui, sans-serif; font-weight: 600; margin-right: 0.4rem; }
.next-strip a { padding: 0.4rem 0.9rem; border: 1px solid var(--border-dark, #cfd4da); border-radius: 999px; background: var(--white); font-family: var(--font-head), system-ui, sans-serif; font-weight: 600; font-size: 0.85rem; transition: border-color 150ms ease, color 150ms ease; }
.next-strip a:hover { border-color: var(--red); color: var(--red); }
.next-strip__arrow { width: 1.4rem; height: 1.4rem; color: var(--red); animation: hero-bounce 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .next-strip__arrow { animation: none; } }
#dosah.section { padding-top: 3rem; }
/* Boční graf dosahu je výškou omezený, aby byl celý vidět na jedné obrazovce (poměr stran 576:988) */
.reach-svg--side { width: min(100%, calc(max(100svh - 18rem, 24rem) * 0.583)); }

/* Dosah: na počítači vlevo nadpis + půdorys, vpravo velký boční graf, který se celý vejde na obrazovku */
.reach-layout { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
.reach-intro .lede { margin-top: var(--space-3); }
@media (min-width: 900px) {
  .reach-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "intro side" "plan side"; align-items: start; column-gap: var(--space-8, 3rem); }
  .reach-intro { grid-area: intro; }
  .reach-fig--side { grid-area: side; }
  .reach-fig--plan { grid-area: plan; }
  .reach-fig--side .reach-svg--side { width: min(100%, calc(max(100svh - 14rem, 24rem) * 0.583)); }
}

/* Rozšíření vzoru hlavičky na všechny záložky */
.hero-facts--wide { max-width: 56rem; }
.catalog-group-head[id] { scroll-margin-top: 5rem; }
.next-strip a { white-space: nowrap; }

/* Bez velkého světlého pruhu mezi hlavičkou a prvním obsahem - obsah začíná hned pod hlavičkou */
.page-hero + .section { padding-top: 2rem; }
.page-hero + .section .service-block:first-child { align-items: start; }
.page-hero + .section > .wrap > .grid.g-2:first-child { align-items: start !important; }
.page-hero + .section .service-block:first-child { padding-top: 0; }
@media (min-width: 900px) { .page-hero + .section .service-block:first-child .service-block__media { margin-top: 0; } }

/* Stejná výška hlavičky na každé záložce -> po načtení je dole vždy stejně velký pruh obsahu */
.page-hero { min-height: 100vh; min-height: 100svh; padding-top: 7rem; padding-bottom: 3rem; display: flex; flex-direction: column; justify-content: center; }
.page-hero > .wrap { width: 100%; }
.page-hero + .section > .wrap > :first-child { margin-top: 0; }
@media (max-width: 899px) { .page-hero { padding-top: 7rem; } }

/* Po kliknutí na šipku v hlavičce se obsah zastaví hned pod horní lištou (lišta ~4,5 rem + sekce má 2 rem odsazení) */
.page-hero + .section[id] { scroll-margin-top: 4.6rem; }
.brand { flex-shrink: 0; }

/* Hlavička je širší než obsah stránky, aby na velkých monitorech nebyla všechno nacpané doprostřed */
.site-header .wrap { max-width: 100rem; }
@media (min-width: 1440px) { .main-nav ul { gap: var(--space-5); } .main-nav a { font-size: 0.92rem; } }
@media (min-width: 1700px) { .main-nav ul { gap: var(--space-6); } .main-nav a { font-size: 0.95rem; } }
@media (min-width: 1280px) { .site-header .wrap { max-width: 120rem; padding-inline: 1.5rem; } }
@media (min-width: 768px) { .stats-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .stats-grid--3 .stat:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.calc__add-btn[disabled] { opacity: 0.45; cursor: not-allowed; }
/* Lešení: fotka UNI začíná na úrovni nadpisu, stejně jako fotka věží */
@media (min-width: 900px) { #fasadni-leseni .service-block:first-child .service-block__media { margin-top: 3.32rem; } }
@media (min-width: 768px) { .stats-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 48rem; margin-inline: auto; } }
@media (min-width: 640px) { .hero__stats--3 { grid-template-columns: repeat(3, 1fr); } }
/* Šipka Posuňte dolů i v levém rohu hlavičky úvodní stránky */
.scroll-cue--left { right: auto; left: var(--space-5); }
/* Odkaz Lešeňové věže z úvodní stránky: blok věží se zastaví hned pod horní lištou */
#leseňové-veze { scroll-margin-top: 4.6rem; }
/* Formulář: skrytá past na roboty a chybová hláška */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-top: var(--space-3); padding: 0.75rem 1rem; border-radius: var(--radius-md, 0.75rem); background: #fdecea; color: #8a1c1c; font-size: 0.9rem; }


/* ==== Kalkulačka na mobilu: nesmí se roztáhnout za okraj obrazovky ==== */
.calc { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .calc { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.calc__form, .calc__result, .calc-cart { min-width: 0; }
.field select, .field input { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
@media (max-width: 559px) {
  .calc { padding: var(--space-5); gap: var(--space-5); }
  .calc__form { gap: var(--space-4); }
  .calc__result { padding: var(--space-5); }
  .calc__price { font-size: 2rem; padding: 0.6rem 1.3rem; }
  .field--checkbox { justify-content: stretch; }
  .field--checkbox label { align-items: center; justify-content: flex-start; line-height: 1.35; }
  .calc-cart { padding: var(--space-5); }
  .calc-cart__item { flex-wrap: wrap; gap: var(--space-2); }
  .calc-cart__item-info { flex: 1 1 100%; }
  .calc-cart__item-price { flex: 1 1 100%; justify-content: space-between; }
}

/* ==== Zbytečná tlačítka s telefonem: pruh „Zavolat“ dole na mobilu už je, na počítači se nekliká ==== */
.cta-band a[href^="tel:"] { display: none; }
@media (min-width: 1100px) { .footer-social { display: none; } }

/* ==========================================================================
   MOBIL - pilot na stránce Lešení (třída m-compact na úvodní sekci stránky)
   Počítač se nemění. Po schválení se použije na všech stránkách.
   ========================================================================== */
@media (max-width: 559px) {
  /* úvod: už ne celá obrazovka, obsah vykukuje hned */
  .page-hero.m-compact { min-height: 0; display: block; padding-top: 5.4rem; padding-bottom: 1.5rem; }
  .m-compact .breadcrumb { margin-bottom: 0.5rem; }
  .m-compact h1 { font-size: 1.85rem; line-height: 1.12; }
  .m-compact .lede { font-size: 0.93rem; line-height: 1.5; margin-top: 0.6rem; }
  .m-compact .hero-facts { margin-top: 1rem; gap: 0.5rem; }
  .m-compact .hero-facts li { padding: 0.5rem 0.7rem; }
  .m-compact .hero-facts b { font-size: 1.05rem; }
  .m-compact .hero-facts span { font-size: 0.7rem; }
  .m-compact .hero-more { display: none; }

  /* menší mezery mezi sekcemi */
  .m-compact ~ .section { padding-block: 1.5rem; }
  .m-compact ~ .section--tight { padding-block: 1.2rem; }

  /* bloky služeb: menší fotka, kompaktnější text */
  .m-compact ~ .section .service-block { gap: 0.9rem; padding-block: 1.2rem; }
  .m-compact ~ .section .service-block__media { aspect-ratio: 16 / 9; margin-top: 0; }
  .m-compact ~ .section .service-block__media--illustr { aspect-ratio: auto; padding: 0.6rem 0; }
  .m-compact ~ .section .service-block__media--illustr img { height: 11rem; }
  .m-compact ~ .section .service-block__body h2 { font-size: 1.4rem; margin-bottom: 0.45rem; }
  .m-compact ~ .section .service-block__body p.lede { font-size: 0.88rem; line-height: 1.5; margin-bottom: 0.7rem; }
  .m-compact ~ .section .price-lines { margin-block: 0.7rem; }
  .m-compact ~ .section .price-lines__row { padding: 0.45rem 0.9rem; }
  .m-compact ~ .section .price-lines__row span { font-size: 0.86rem; }
  .m-compact ~ .section .service-block__body .text-steel { font-size: 0.78rem !important; line-height: 1.45; }
  .m-compact ~ .section .mini-price-grid { margin-block: 0.7rem; gap: 0.5rem; }
  .m-compact ~ .section .mini-price-card { padding: 0.6rem 0.75rem; }
  .m-compact ~ .section .mini-price-card h4 { font-size: 0.82rem; margin-bottom: 0.2rem; }
  .m-compact ~ .section .mini-price-card b { font-size: 1rem; }
  .m-compact ~ .section .check-list { margin-block: 0.4rem; }
  .m-compact ~ .section .check-list li { padding-block: 0.18rem; font-size: 0.87rem; gap: 0.6rem; }
  .m-compact ~ .section .service-block__body .btn { width: 100%; justify-content: center; margin-top: 0.55rem; padding-block: 0.75rem; }

  /* odkaz na vybavení staveniště: kompaktní řádek */
  .m-compact ~ .section--paper-dim a.card { grid-template-columns: auto 1fr !important; padding: 1rem; gap: 0.8rem !important; }
  .m-compact ~ .section--paper-dim .icon-tile { width: 2.6rem; height: 2.6rem; }
  .m-compact ~ .section--paper-dim .icon-tile svg { width: 1.3rem; height: 1.3rem; }
  .m-compact ~ .section--paper-dim a.card h3 { font-size: 1rem; margin-bottom: 0.2rem; }
  .m-compact ~ .section--paper-dim a.card p { font-size: 0.84rem; }
  .m-compact ~ .section--paper-dim a.card .card-link { grid-column: 1 / -1; padding-top: 0 !important; }

  /* výzva k poptávce */
  .m-compact ~ .section .cta-band { padding: 1.3rem; gap: 0.9rem; }
  .m-compact ~ .section .cta-band h2 { font-size: 1.35rem; }
  .m-compact ~ .section .cta-band p { font-size: 0.9rem; }
  .m-compact ~ .section .cta-band .btn { width: 100%; justify-content: center; }

  /* patička: dva sloupce místo dlouhého seznamu */
  body:has(.m-compact) .site-footer { padding-top: 1.8rem; }
  body:has(.m-compact) .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.3rem 1rem; margin-bottom: 1.3rem; }
  body:has(.m-compact) .footer-brand { grid-column: 1 / -1; }
  body:has(.m-compact) .footer-brand p { display: none; }
  body:has(.m-compact) .footer-brand img { margin-bottom: 0; }
  body:has(.m-compact) .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
  body:has(.m-compact) .footer-col h4 { margin-bottom: 0.6rem; }
  body:has(.m-compact) .footer-col ul { gap: 0.45rem; }
}

/* ==== Mobil (pilot Lešení): produkty vedle sebe, přejíždí se prstem do strany ==== */
@media (max-width: 559px) {
  .m-compact ~ #fasadni-leseni > .wrap {
    display: flex; gap: 0.8rem; align-items: flex-start;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding-bottom: 0.6rem; scrollbar-width: none;
  }
  .m-compact ~ #fasadni-leseni > .wrap::-webkit-scrollbar { display: none; }
  .m-compact ~ #fasadni-leseni .service-block {
    flex: 0 0 86%; scroll-snap-align: start; scroll-margin-left: 1rem;
    background: var(--white); border: 1px solid var(--border); border-radius: 1rem;
    padding: 0.8rem; border-bottom: 1px solid var(--border);
    gap: 0.7rem;
  }
  .m-compact ~ #fasadni-leseni .service-block:last-child { border-bottom: 1px solid var(--border); }
  .m-compact ~ #fasadni-leseni .service-block__media { margin: 0; box-shadow: none; }
}

@media (max-width: 559px) {
  .m-compact ~ #fasadni-leseni::before { content: "Přejeďte prstem do strany \2192"; display: block; text-align: center; font-size: 0.78rem; font-family: var(--font-head); font-weight: 600; color: var(--steel); padding-bottom: 0.6rem; }
}

/* ==========================================================================
   MOBIL - všechny záložky: produkty a fotky vedle sebe (přejíždí se prstem)
   ========================================================================== */
@media (max-width: 559px) {
  /* společný vzor: vodorovná řada s přichytáváním */
  .m-compact ~ #dodavky .catalog-grid--vehicles,
  .m-compact ~ #vybaveni .catalog-grid--compact,
  .m-compact ~ #fotky .photo-grid,
  .m-compact ~ #hodnoty .value-list {
    display: flex; gap: 0.75rem; align-items: flex-start;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-inline: calc(var(--space-5) * -1); padding-inline: var(--space-5); scroll-padding-inline: var(--space-5);
    padding-bottom: 0.4rem;
  }
  .m-compact ~ #dodavky .catalog-grid--vehicles::-webkit-scrollbar,
  .m-compact ~ #vybaveni .catalog-grid--compact::-webkit-scrollbar,
  .m-compact ~ #fotky .photo-grid::-webkit-scrollbar,
  .m-compact ~ #hodnoty .value-list::-webkit-scrollbar { display: none; }
  .m-compact ~ #dodavky .catalog-grid--vehicles > *,
  .m-compact ~ #fotky .photo-grid > *,
  .m-compact ~ #hodnoty .value-list > * { flex: 0 0 82%; scroll-snap-align: start; }

  /* Vybavení staveniště: karty 2 vedle sebe, třetí vykukuje */
  .m-compact ~ #vybaveni .catalog-grid--compact > .catalog-card { flex: 0 0 43%; scroll-snap-align: start; display: block; }
  .m-compact ~ #vybaveni .catalog-card .catalog-card__media { aspect-ratio: 1 / 1; }
  .m-compact ~ #vybaveni .catalog-card .catalog-card__body { padding: 0.6rem 0.7rem 0.7rem; }
  .m-compact ~ #vybaveni .catalog-card__body h3 { font-size: 0.82rem; line-height: 1.25; margin-bottom: 0.25rem; min-height: 2.05rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .m-compact ~ #vybaveni .catalog-card__body p { display: none; }
  .m-compact ~ #vybaveni .catalog-card__price { padding-top: 0.35rem; flex-wrap: wrap; }
  .m-compact ~ #vybaveni .catalog-card__price b { font-size: 0.92rem; }
  .m-compact ~ #vybaveni .catalog-card__price span { font-size: 0.68rem; }
  .m-compact ~ #vybaveni .catalog-card__meta { margin-top: 0.3rem; }
  .m-compact ~ #vybaveni .catalog-card__meta .tag { font-size: 0.62rem; padding: 0.12rem 0.4rem; }
  .m-compact ~ #vybaveni .catalog-group-head { margin-bottom: 0.5rem; }
  .m-compact ~ #vybaveni .catalog-group-head h3 { font-size: 1.15rem; }
  .m-compact ~ #vybaveni .catalog-group-head::after { content: "Přejeďte prstem \2192"; display: block; font-size: 0.72rem; font-family: var(--font-head); font-weight: 600; color: var(--steel-soft); margin-top: 0.1rem; }
  .m-compact ~ #vybaveni .next-strip { margin-top: 0.8rem; padding-top: 0.6rem; }
  .m-compact ~ #vybaveni .catalog-group-head { margin-top: 1rem; }

  /* Vozidla */
  .m-compact ~ #dodavky .catalog-card__media { aspect-ratio: 16 / 10; }
  .m-compact ~ #dodavky .catalog-card__body { padding: 0.9rem; }
  .m-compact ~ #dodavky .wrap::after { content: "Přejeďte prstem do strany \2192"; display: block; text-align: center; font-size: 0.78rem; font-family: var(--font-head); font-weight: 600; color: var(--steel); padding-top: 0.2rem; }

  /* Plošina: fotky vedle sebe, tabulka a dosah kompaktněji */
  .m-compact ~ #fotky .photo-tile { aspect-ratio: 4 / 3; margin: 0; }
  .m-compact ~ #fotky .photo-tile img { width: 100%; height: 100%; object-fit: cover; }
  .m-compact ~ #fotky .photo-tile--cutout img { object-fit: contain; }
  .m-compact ~ #fotky .wrap::after { content: "Přejeďte prstem do strany \2192"; display: block; text-align: center; font-size: 0.78rem; font-family: var(--font-head); font-weight: 600; color: var(--steel); padding-top: 0.2rem; }
  .m-compact ~ .section .next-strip { display: none; }
  .m-compact ~ #dosah .reach-figs {
    display: flex; gap: 0.8rem; align-items: flex-start; margin-top: 1rem;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-inline: calc(var(--space-5) * -1); padding-inline: var(--space-5); scroll-padding-inline: var(--space-5);
  }
  .m-compact ~ #dosah .reach-figs::-webkit-scrollbar { display: none; }
  .m-compact ~ #dosah .reach-figs > .reach-fig { flex: 0 0 86%; scroll-snap-align: start; min-width: 0; }
  .m-compact ~ #dosah .reach-layout { gap: 0.4rem; }
  .m-compact ~ #dosah .reach-fig--side .reach-svg--side { width: auto; max-width: 100%; max-height: 23rem; margin-inline: auto; display: block; }
  .m-compact ~ .section .next-strip { display: none; }
  .m-compact ~ #dosah .wrap::after { content: "Přejeďte prstem do strany \2192"; display: block; text-align: center; font-size: 0.78rem; font-family: var(--font-head); font-weight: 600; color: var(--steel); padding-top: 0.5rem; }
  .m-compact ~ #technicke-udaje .spec-table-wrap td, .m-compact ~ #technicke-udaje .spec-table-wrap th { padding: 0.4rem 0.6rem; font-size: 0.82rem; }

  /* O nás: hodnoty vedle sebe */
  .m-compact ~ #hodnoty .value-item { margin: 0; }
  .m-compact ~ #hodnoty .wrap::after { content: "Přejeďte prstem do strany \2192"; display: block; text-align: center; font-size: 0.78rem; font-family: var(--font-head); font-weight: 600; color: var(--steel); padding-top: 0.2rem; }
}

.reach-figs { display: contents; }

/* Kontakt na mobilu: kompaktní formulář */
@media (max-width: 559px) {
  .m-compact ~ #poptavka .grid { gap: 1rem !important; }
  .m-compact ~ #poptavka .form-card { padding: 1rem; border-radius: 1rem; }
  .m-compact ~ #poptavka .form-card__heading h2, .m-compact ~ #poptavka .form-card h2 { font-size: 1.35rem; margin-bottom: 0.3rem; }
  .m-compact ~ #poptavka .form-card p { font-size: 0.86rem; }
  .m-compact ~ #poptavka .form-grid { gap: 0.7rem; }
  .m-compact ~ #poptavka .form-grid .field { gap: 0.25rem; }
  .m-compact ~ #poptavka .form-grid .field label { font-size: 0.8rem; }
  .m-compact ~ #poptavka .form-grid .field select,
  .m-compact ~ #poptavka .form-grid .field input,
  .m-compact ~ #poptavka .form-grid .field textarea { min-height: 2.6rem; padding: 0.55rem 0.8rem; font-size: 0.95rem; }
  .m-compact ~ #poptavka .form-grid .field textarea { min-height: 4.5rem; }
  .m-compact ~ #poptavka .field-error { min-height: 0; }
  .m-compact ~ #poptavka .consent { font-size: 0.8rem; }
  .m-compact ~ #poptavka .btn { width: 100%; justify-content: center; }
}

/* Úvodní stránka na mobilu */
@media (max-width: 559px) {
  .hero.m-compact { min-height: 0; }
  .hero.m-compact .hero__content { padding-top: 5.2rem; padding-bottom: 1.6rem; }
  .hero.m-compact .hero__kicker { font-size: 0.78rem; padding: 0.35rem 0.8rem; margin-bottom: 0.6rem; }
  .hero.m-compact h1 { font-size: 1.95rem; line-height: 1.1; margin-bottom: 0.6rem; }
  .hero.m-compact .hero__lede { font-size: 0.92rem; line-height: 1.5; margin-bottom: 0.9rem; }
  .hero.m-compact .hero__actions { gap: 0.5rem; margin-bottom: 0.9rem; }
  .hero.m-compact .hero__actions .btn { padding-block: 0.7rem; }
  .hero.m-compact .hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.7rem; padding-top: 0.7rem; }
  .hero.m-compact .hero__stat b { font-size: 1.3rem; }
  .hero.m-compact .hero__stat span { font-size: 0.7rem; }
  .hero.m-compact ~ .trust-strip { padding-block: 0.8rem; }
  .hero.m-compact ~ .trust-strip .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 0.8rem; }
  .hero.m-compact ~ .section .section-head { margin-bottom: 0.8rem; }
  .hero.m-compact ~ .section .section-head p:not(.eyebrow) { font-size: 0.88rem; }

  /* dvě sekce s kartami: menší karty v mřížce 2 sloupce, bez přejíždění */
  .hero.m-compact ~ section:nth-of-type(3) .grid.g-3,
  .hero.m-compact ~ section:nth-of-type(4) .grid.g-3 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .hero.m-compact ~ section:nth-of-type(3) .grid.g-3 > .card:last-child:nth-child(odd),
  .hero.m-compact ~ section:nth-of-type(4) .grid.g-3 > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .hero.m-compact ~ section:nth-of-type(3) .grid.g-3 > .card,
  .hero.m-compact ~ section:nth-of-type(4) .grid.g-3 > .card { padding: 0.8rem; min-width: 0; }
  .hero.m-compact ~ section:nth-of-type(3) .card h3,
  .hero.m-compact ~ section:nth-of-type(4) .card h3 { font-size: 0.92rem; line-height: 1.25; margin-bottom: 0.3rem; }
  .hero.m-compact ~ section:nth-of-type(3) .card p,
  .hero.m-compact ~ section:nth-of-type(4) .card p { font-size: 0.76rem; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .hero.m-compact ~ section:nth-of-type(3) .icon-tile,
  .hero.m-compact ~ section:nth-of-type(4) .icon-tile { width: 2.1rem; height: 2.1rem; margin-bottom: 0.5rem; border-radius: 0.6rem; }
  .hero.m-compact ~ section:nth-of-type(3) .icon-tile svg,
  .hero.m-compact ~ section:nth-of-type(4) .icon-tile svg { width: 1.05rem; height: 1.05rem; }
  .hero.m-compact ~ section:nth-of-type(3) .card-link,
  .hero.m-compact ~ section:nth-of-type(4) .card-link { padding-top: 0.45rem; font-size: 0.78rem; }
  .hero.m-compact ~ .section .card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
  .hero.m-compact ~ .section .card p { font-size: 0.86rem; }
  .hero.m-compact ~ .section .icon-tile { width: 2.6rem; height: 2.6rem; margin-bottom: 0.7rem; }
  .hero.m-compact ~ .section .icon-tile svg { width: 1.3rem; height: 1.3rem; }
  .hero.m-compact ~ .section .card-link { padding-top: 0.6rem; }
  .hero.m-compact ~ .section { padding-block: 1.4rem; }
  .hero.m-compact ~ .section--tight { padding-block: 1rem; }
  .hero.m-compact ~ .section .cta-band { padding: 1.3rem; gap: 0.9rem; }
  .hero.m-compact ~ .section .cta-band h2 { font-size: 1.35rem; }
  .hero.m-compact ~ .section .cta-band p { font-size: 0.9rem; }
  .hero.m-compact ~ .section .cta-band .btn { width: 100%; justify-content: center; }
  body:has(.hero.m-compact) .site-footer { padding-top: 1.8rem; }
  body:has(.hero.m-compact) .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.3rem 1rem; margin-bottom: 1.3rem; }
  body:has(.hero.m-compact) .footer-brand { grid-column: 1 / -1; }
  body:has(.hero.m-compact) .footer-brand p { display: none; }
  body:has(.hero.m-compact) .footer-brand img { margin-bottom: 0; }
  body:has(.hero.m-compact) .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
  body:has(.hero.m-compact) .footer-col h4 { margin-bottom: 0.6rem; }
  body:has(.hero.m-compact) .footer-col ul { gap: 0.45rem; }
}

/* Podporované projekty na mobilu: širší text v kartě */
@media (max-width: 559px) {
  .m-compact ~ #projekt .form-card { padding: 1rem; }
  .m-compact ~ #projekt .form-card p { font-size: 0.9rem; line-height: 1.5; }
}

/* Malé telefony: nic nesmí přetéct (dlouhý e-mail, formulář) */
@media (max-width: 559px) {
  .m-compact ~ #poptavka .grid { grid-template-columns: minmax(0, 1fr); }
  .contact-card, .contact-card__row, .contact-card a { min-width: 0; overflow-wrap: anywhere; }
}

/* Nejmenší telefony (do 359 px): karty vybavení o něco širší, ať se do nich vejde text */
@media (max-width: 359px) {
  .m-compact ~ #vybaveni .catalog-grid--compact > .catalog-card { flex-basis: 52%; }
  .m-compact h1 { font-size: 1.65rem; }
}